﻿.activation-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    padding: 3.5rem 0;
    background: radial-gradient(circle at 15% 20%, rgba(99,102,241,.25), transparent 45%), radial-gradient(circle at 85% 80%, rgba(20,184,166,.20), transparent 45%), linear-gradient(135deg, #0f172a, #111827 55%, #1e1b4b);
}

.activation-card {
    position: relative;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,.45);
}

    .activation-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, #6366f1, #14b8a6, #6366f1);
        background-size: 200% 100%;
        animation: shimmer 4s linear infinite;
    }

@keyframes shimmer {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.activation-header {
    text-align: center;
    padding: 2.75rem 2rem 1.5rem;
}

.license-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 1.1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #0f172a);
    box-shadow: 0 12px 24px -6px rgba(79,70,229,.55);
}

.activation-header h3 {
    font-weight: 800;
    margin-bottom: .35rem;
    letter-spacing: -.01em;
}

.activation-header p {
    color: #6b7280;
    font-size: .92rem;
    margin: 0;
}

.activation-body {
    padding: 0 2rem 2.5rem;
}

/* ===== Status ===== */
.license-status {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .85rem;
    padding: .55rem 1.1rem;
    border-radius: 999px;
    letter-spacing: .01em;
}

.status-active {
    color: #14532d;
    background: #dcfce7;
    box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.status-expired {
    color: #7f1d1d;
    background: #fee2e2;
    box-shadow: 0 0 0 4px rgba(239,68,68,.12);
}

.status-pending {
    color: #78350f;
    background: #fef3c7;
    box-shadow: 0 0 0 4px rgba(245,158,11,.12);
}

    .status-pending i {
        animation: pulse 1.6s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

.status-hint {
    text-align: center;
    color: #6b7280;
    font-size: .85rem;
    line-height: 1.45;
    max-width: 28rem;
    margin: 0 auto 1.75rem;
}

/* ===== Info grid ===== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-card {
    position: relative;
    background: #f8fafc;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: .9rem 1rem;
    min-width: 0;
}

.info-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: .3rem;
}

.info-card strong {
    display: block;
    font-size: .88rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: #111827;
    word-break: break-all;
    padding-right: 1.5rem;
}

.info-note {
    display: block;
    margin-top: .35rem;
    font-size: .74rem;
    color: #64748b;
}

.scope-badge {
    display: inline-block;
    margin-top: .45rem;
    font-size: .72rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 999px;
    color: #3730a3;
    background: #e0e7ff;
}

.copy-btn {
    position: absolute;
    top: .7rem;
    right: .7rem;
    border: none;
    background: #fff;
    color: #6b7280;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: .75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    transition: color .15s ease, transform .15s ease;
}

    .copy-btn:hover {
        color: #4f46e5;
        transform: translateY(-1px);
    }

    .copy-btn:focus-visible {
        outline: 2px solid #4f46e5;
        outline-offset: 2px;
    }

/* ===== Modules ===== */
.modules-block {
    margin-bottom: 1.5rem;
}

.module-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.module-chip {
    font-size: .78rem;
    font-weight: 600;
    padding: .25rem .7rem;
    border-radius: 8px;
    color: #0f766e;
    background: #ccfbf1;
}

/* ===== Expiry card ===== */
.expiry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
}

    .expiry-card strong {
        display: block;
        font-size: .78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #9ca3af;
        margin-bottom: .15rem;
    }

    .expiry-card > div:first-child > div {
        font-size: .95rem;
        font-weight: 600;
    }

    .expiry-card small {
        display: block;
        margin-top: .2rem;
        color: #9ca3af;
        font-size: .74rem;
    }

.expiry-counter {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .95rem;
    font-weight: 700;
    color: #5eead4;
    background: rgba(255,255,255,.08);
    padding: .4rem .75rem;
    border-radius: 10px;
    white-space: nowrap;
}

/* ===== Form ===== */
.activation-form .form-label {
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .5rem;
}

.activation-form .input-group {
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    border-radius: 12px;
    overflow: hidden;
}

.activation-form .form-control {
    border: 1px solid #e5e7eb;
    padding: .75rem 1rem;
    font-size: .95rem;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    letter-spacing: .04em;
}

    .activation-form .form-control:focus {
        box-shadow: none;
        border-color: #4f46e5;
    }

.activation-form .btn-dark {
    padding: .75rem 1.4rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4f46e5, #111827);
    border: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .activation-form .btn-dark:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px -6px rgba(79,70,229,.5);
    }

    .activation-form .btn-dark:disabled {
        opacity: .7;
        transform: none;
    }

.activation-message {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
}

    .activation-message.success {
        color: #14532d;
        background: #dcfce7;
    }

    .activation-message.error {
        color: #7f1d1d;
        background: #fee2e2;
    }

.activation-note {
    margin-top: 1.75rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    color: #6b7280;
    font-size: .82rem;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 480px) {
    .activation-body {
        padding: 0 1.25rem 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .expiry-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .activation-card::before, .status-pending i {
        animation: none;
    }

    .copy-btn, .activation-form .btn-dark {
        transition: none;
    }
}
