* {
    box-sizing: border-box;
}

:root {
    --bg: #030914;
    --panel: rgba(8, 21, 38, 0.95);
    --panel-soft: rgba(12, 30, 52, 0.84);
    --gold: #e2bd62;
    --gold-bright: #f5d982;
    --text: #f5f7fb;
    --muted: #96a4b7;
    --line: rgba(226, 189, 98, 0.2);
    --green: #32d583;
    --red: #ff6b7a;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at 18% 0%,
            rgba(22, 68, 108, 0.38),
            transparent 34%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(202, 149, 44, 0.1),
            transparent 26%
        ),
        var(--bg);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.customer-login-body {
    display: grid;
    place-items: center;
    padding: 28px;
}

.customer-login-shell {
    width: min(100%, 500px);
}

.customer-login-card {
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(14, 34, 59, 0.98),
            rgba(4, 13, 25, 0.98)
        );
    box-shadow:
        0 36px 90px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.customer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.customer-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.customer-brand strong {
    display: block;
    color: var(--gold-bright);
    font-size: 1.65rem;
    letter-spacing: 0.08em;
}

.customer-brand span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
}

.customer-kicker {
    display: inline-block;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.customer-login-card > .customer-kicker {
    margin-top: 34px;
}

.customer-login-card h1 {
    margin: 9px 0;
    font-size: 2.3rem;
}

.customer-login-card > p,
.customer-welcome p {
    color: var(--muted);
    line-height: 1.65;
}

.customer-login-card form {
    display: grid;
    gap: 19px;
    margin-top: 27px;
}

label {
    display: grid;
    gap: 9px;
    color: #dce5ef;
    font-size: 0.86rem;
    font-weight: 750;
}

input {
    min-height: 49px;
    width: 100%;
    padding: 0 14px;
    color: var(--text);
    border: 1px solid rgba(150, 164, 183, 0.23);
    border-radius: 11px;
    outline: none;
    background: rgba(2, 10, 20, 0.78);
}

input:focus {
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px rgba(226, 189, 98, 0.1);
}

.customer-login-card button,
.customer-download-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    color: #07101c;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 900;
    background:
        linear-gradient(
            135deg,
            #f1d47d,
            #c89332
        );
    box-shadow:
        0 14px 34px rgba(202, 147, 48, 0.22);
}

.login-help {
    margin-top: 20px;
    padding: 13px 15px;
    color: var(--muted);
    border: 1px solid rgba(226, 189, 98, 0.14);
    border-radius: 10px;
    background: rgba(226, 189, 98, 0.04);
    font-size: 0.8rem;
    line-height: 1.55;
}

.back-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.85rem;
}

.customer-alert {
    margin: 18px 0;
    padding: 14px 17px;
    border-radius: 11px;
}

.customer-alert.error {
    color: #ffc2c9;
    border: 1px solid rgba(255, 107, 122, 0.26);
    background: rgba(255, 107, 122, 0.08);
}

.customer-header {
    min-height: 82px;
    padding: 10px clamp(20px, 5vw, 76px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 10, 20, 0.91);
    backdrop-filter: blur(18px);
}

.customer-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.customer-header-actions > a {
    color: var(--muted);
    font-size: 0.86rem;
}

.customer-header-actions button {
    padding: 9px 14px;
    color: #f5dfe2;
    border: 1px solid rgba(255, 107, 122, 0.25);
    border-radius: 9px;
    cursor: pointer;
    background: rgba(255, 107, 122, 0.07);
}

.customer-main {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 80px;
}

.customer-welcome {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.customer-welcome h1 {
    margin: 9px 0 6px;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.customer-code-card {
    width: min(390px, 100%);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--panel-soft);
}

.customer-code-card span,
.customer-code-card small {
    display: block;
    color: var(--muted);
}

.customer-code-card strong {
    display: block;
    margin: 9px 0;
    color: var(--gold-bright);
    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 1.45rem;
    letter-spacing: 0.06em;
}

.customer-code-card small {
    line-height: 1.5;
}

.customer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.customer-stats article {
    padding: 22px;
    border: 1px solid rgba(150, 164, 183, 0.13);
    border-radius: 17px;
    background: var(--panel-soft);
}

.customer-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.customer-stats strong {
    display: block;
    margin-top: 10px;
    color: var(--gold-bright);
    font-size: 1.8rem;
}

.customer-stats .small-value {
    overflow-wrap: anywhere;
    font-size: 0.95rem;
}

.customer-panel {
    margin-top: 23px;
    padding: 28px;
    border: 1px solid rgba(150, 164, 183, 0.14);
    border-radius: 21px;
    background: var(--panel);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.panel-heading h2 {
    margin: 7px 0 22px;
    font-size: 1.55rem;
}

.license-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(310px, 1fr));
    gap: 18px;
}

.license-card {
    padding: 22px;
    border: 1px solid rgba(226, 189, 98, 0.17);
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(14, 34, 59, 0.88),
            rgba(5, 15, 28, 0.94)
        );
}

.license-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
}

.status {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
}

.status.active {
    color: #a5f1c7;
    background: rgba(50, 213, 131, 0.1);
}

.status.revoked,
.status.expired {
    color: #ffc1c8;
    background: rgba(255, 107, 122, 0.1);
}

.license-plan {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 800;
}

.license-card h3 {
    margin: 17px 0;
    font-size: 1.25rem;
}

.license-card dl {
    display: grid;
    gap: 13px;
    margin: 0 0 20px;
}

.license-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom:
        1px solid rgba(150, 164, 183, 0.1);
}

.license-card dt {
    color: var(--muted);
    font-size: 0.75rem;
}

.license-card dd {
    margin: 0;
    text-align: right;
    font-size: 0.8rem;
}

.license-card code {
    color: #c9dcf3;
    font-size: 0.72rem;
}

.customer-download-button {
    width: 100%;
    min-height: 44px;
    font-size: 0.82rem;
}

.download-disabled {
    padding: 13px;
    color: var(--muted);
    text-align: center;
    border: 1px solid rgba(150, 164, 183, 0.15);
    border-radius: 9px;
    background: rgba(150, 164, 183, 0.04);
    font-size: 0.8rem;
}

.license-warning {
    margin: 13px 0 0;
    color: #ffb4bd;
    font-size: 0.78rem;
    line-height: 1.5;
}

.customer-empty-state {
    padding: 38px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed rgba(150, 164, 183, 0.2);
    border-radius: 13px;
}

@media (max-width: 900px) {
    .customer-welcome {
        flex-direction: column;
    }

    .customer-code-card {
        width: 100%;
    }

    .customer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .customer-header {
        gap: 15px;
    }

    .customer-brand img {
        width: 45px;
        height: 45px;
    }

    .customer-brand strong {
        font-size: 1.25rem;
    }

    .customer-header-actions > a {
        display: none;
    }

    .customer-main {
        width: calc(100% - 24px);
        padding-top: 30px;
    }

    .customer-stats {
        grid-template-columns: 1fr;
    }

    .customer-panel {
        padding: 20px;
    }

    .license-card dl > div {
        flex-direction: column;
        gap: 5px;
    }

    .license-card dd {
        text-align: left;
    }
}


/* =========================================================
   PREMIUM CUSTOMER HEADER BUTTONS
========================================================= */

.customer-header-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}

.customer-header-actions form {
    margin: 0;
}

.customer-top-button {
    position: relative;
    min-height: 43px;
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.customer-top-button > span {
    position: relative;
    z-index: 2;
}

.customer-top-button:hover {
    transform: translateY(-2px);
}

.customer-top-primary {
    color: #100b03 !important;

    border-color:
        rgba(244, 210, 127, 0.66);

    background:
        linear-gradient(
            135deg,
            #a97120,
            #ecc75f,
            #93601a
        );

    box-shadow:
        0 10px 28px
        rgba(220, 174, 78, 0.22),
        inset 0 1px 0
        rgba(255, 255, 255, 0.35);

    animation:
        customer-button-pulse
        2.8s
        ease-in-out
        infinite;
}

.customer-top-primary:hover {
    box-shadow:
        0 16px 36px
        rgba(220, 174, 78, 0.34),
        0 0 20px
        rgba(244, 210, 127, 0.14);
}

.customer-top-secondary {
    color: #eef8ff !important;

    border-color:
        rgba(87, 190, 244, 0.48);

    background:
        linear-gradient(
            135deg,
            rgba(16, 77, 117, 0.96),
            rgba(8, 37, 66, 0.98),
            rgba(22, 82, 119, 0.94)
        );

    box-shadow:
        0 11px 28px
        rgba(0, 0, 0, 0.24),
        0 0 19px
        rgba(69, 178, 232, 0.11),
        inset 0 1px 0
        rgba(255, 255, 255, 0.08);

    animation:
        customer-website-glow
        3.4s
        ease-in-out
        infinite;
}

.customer-top-secondary:hover {
    color: #ffffff !important;

    border-color:
        rgba(244, 210, 127, 0.62);

    background:
        linear-gradient(
            135deg,
            rgba(21, 96, 143, 0.98),
            rgba(9, 44, 76, 0.98),
            rgba(30, 105, 149, 0.96)
        );

    box-shadow:
        0 17px 38px
        rgba(0, 0, 0, 0.31),
        0 0 24px
        rgba(69, 178, 232, 0.18),
        0 0 13px
        rgba(220, 174, 78, 0.1);
}

.customer-top-danger {
    color: #ffd7de !important;

    border-color:
        rgba(255, 107, 122, 0.34) !important;

    background:
        linear-gradient(
            145deg,
            rgba(58, 20, 30, 0.9),
            rgba(31, 11, 18, 0.96)
        ) !important;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.2);
}

.customer-top-danger:hover {
    border-color:
        rgba(255, 107, 122, 0.58) !important;

    box-shadow:
        0 15px 32px
        rgba(0, 0, 0, 0.28),
        0 0 16px
        rgba(255, 107, 122, 0.1);
}

.customer-button-shine {
    position: absolute !important;
    z-index: 1 !important;
    inset: 0;

    background:
        linear-gradient(
            115deg,
            transparent 20%,
            rgba(255, 255, 255, 0.28) 48%,
            transparent 74%
        );

    transform: translateX(-135%);
    animation:
        customer-button-shine
        4.2s
        ease-in-out
        infinite;
}

@keyframes customer-button-shine {
    0%,
    58% {
        transform: translateX(-135%);
    }

    100% {
        transform: translateX(135%);
    }
}

@keyframes customer-website-glow {
    0%,
    100% {
        box-shadow:
            0 11px 28px
            rgba(0, 0, 0, 0.24),
            0 0 14px
            rgba(69, 178, 232, 0.07);
    }

    50% {
        box-shadow:
            0 15px 34px
            rgba(0, 0, 0, 0.28),
            0 0 24px
            rgba(69, 178, 232, 0.17);
    }
}


@keyframes customer-button-pulse {
    0%,
    100% {
        box-shadow:
            0 10px 28px
            rgba(220, 174, 78, 0.2);
    }

    50% {
        box-shadow:
            0 15px 35px
            rgba(220, 174, 78, 0.34),
            0 0 18px
            rgba(244, 210, 127, 0.1);
    }
}

@media (max-width: 700px) {

    .customer-header {
        gap: 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .customer-header-actions {
        width: 100%;
        justify-content: center;
    }

    .customer-top-button {
        flex: 1;
        min-width: 140px;
    }

    .customer-header-actions form {
        display: flex;
        flex: 1;
    }

    .customer-header-actions form button {
        width: 100%;
    }
}

