:root {
    --sage-50: #edfbfe;
    --sage-100: #d1f4fc;
    --sage-300: #6ed5f2;
    --sage-500: #0f99c7;
    --sage-600: #107caa;
    --sage-700: #14648a;
    --stone-50: #ffffff;
    --stone-100: #d1f4fc;
    --mist-100: #d1f4fc;
    --graphite-900: #0b2c41;
    --graphite-700: #14648a;
    --graphite-500: #195371;
    --glass: rgba(255, 255, 255, .68);
    --glass-strong: rgba(255, 255, 255, .82);
    --glass-border: rgba(255, 255, 255, .72);
    --shadow-soft: 0 24px 80px rgba(11, 44, 65, .10);
    --shadow-card: 0 18px 50px rgba(11, 44, 65, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 8%, rgba(110, 213, 242, .30), transparent 30%),
        radial-gradient(circle at 88% 6%, rgba(11, 44, 65, .10), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #edfbfe 44%, #d1f4fc 100%);
    color: var(--graphite-900);
    font-family: "IRANSansX", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

@font-face {
    font-family: "IRANSansX";
    src: url("/assets/fonts/woff2/IRANSansX-Regular.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "IRANSansX";
    src: url("/assets/fonts/woff2/IRANSansX-DemiBold.woff2") format("woff2");
    font-weight: 600;
}

@font-face {
    font-family: "IRANSansX";
    src: url("/assets/fonts/woff2/IRANSansX-Bold.woff2") format("woff2");
    font-weight: 700;
}

.premium-shell {
    position: relative;
    overflow-x: hidden;
}

.premium-shell::before,
.premium-shell::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.premium-shell::before {
    width: 520px;
    height: 520px;
    inset: -180px auto auto -140px;
    background: rgba(15, 153, 199, .12);
}

.premium-shell::after {
    width: 620px;
    height: 620px;
    inset: auto -220px -240px auto;
    background: rgba(11, 44, 65, .08);
}

.glass-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .48));
    border: 1px solid rgba(255, 255, 255, .76);
    box-shadow: var(--shadow-card);
}

.glass-panel-strong {
    background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .62));
    border: 1px solid rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-soft);
}

.hairline {
    border-color: rgba(11, 44, 65, .08);
}

.sage-gradient {
    background: linear-gradient(135deg, #0b2c41 0%, #0f99c7 100%);
}

.premium-focus:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 153, 199, .24);
    border-color: rgba(15, 153, 199, .72);
}

.interactive-lift {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.interactive-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 70px rgba(11, 44, 65, .12);
}

.soft-enter {
    animation: soft-enter .55s cubic-bezier(.2, .8, .2, 1) both;
}

.soft-enter-delay {
    animation: soft-enter .7s cubic-bezier(.2, .8, .2, 1) .08s both;
}

@keyframes soft-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .58);
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
}

.details-card[open] summary .summary-icon {
    transform: rotate(180deg);
}

.summary-icon {
    transition: transform .2s ease;
}

.wizard-selected {
    border-color: rgba(15, 153, 199, .88) !important;
    background: #d1f4fc !important;
    box-shadow: 0 18px 44px rgba(15, 153, 199, .18);
}

.guide-panel.is-visible {
    display: block;
    animation: soft-enter .35s cubic-bezier(.2, .8, .2, 1) both;
}

.ltr {
    direction: ltr;
}

.account-days {
    display: block;
    max-width: 100%;
    direction: ltr;
    font-size: clamp(7.4rem, 36vw, 12rem);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.service-days {
    display: block;
    max-width: 100%;
    direction: ltr;
    font-size: clamp(4.4rem, 16vw, 7rem);
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-shadow: 0 0 18px rgba(110, 213, 242, .28);
}

/* ── Aurora background ── */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(145deg, #ffffff 0%, #edfbfe 52%, #d1f4fc 100%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
}

.bg-orb-a {
    width: 75vw;
    height: 75vw;
    min-width: 300px;
    min-height: 300px;
    top: -18%;
    left: -12%;
    background: radial-gradient(circle at center, rgba(110, 213, 242, .52) 0%, rgba(43, 185, 229, .22) 50%, transparent 72%);
    opacity: .72;
}

.bg-orb-b {
    width: 60vw;
    height: 60vw;
    min-width: 240px;
    min-height: 240px;
    top: 5%;
    right: -14%;
    background: radial-gradient(circle at center, rgba(209, 244, 252, .70) 0%, rgba(110, 213, 242, .30) 50%, transparent 72%);
    opacity: .68;
}

.bg-orb-c {
    width: 66vw;
    height: 66vw;
    min-width: 260px;
    min-height: 260px;
    bottom: -20%;
    left: 20%;
    background: radial-gradient(circle at center, rgba(43, 185, 229, .38) 0%, rgba(15, 153, 199, .16) 50%, transparent 72%);
    opacity: .58;
}


.panel-enter {
    animation: panel-enter .38s cubic-bezier(.2, .8, .2, 1) both;
}

.panel-exit {
    animation: panel-exit .24s cubic-bezier(.4, 0, 1, 1) both;
}

@keyframes panel-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes panel-exit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-16px) scale(.96);
    }
}


/* ── Account status dot ── */
.acct-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.acct-active {
    background: #0f99c7;
    box-shadow: 0 0 0 4px rgba(15, 153, 199, .15);
}

.acct-expired {
    background: #dc2626;
}

.acct-new {
    background: #6ed5f2;
    box-shadow: 0 0 0 4px rgba(110, 213, 242, .18);
}

/* ── Connection status badge ── */
.conn-badge {
    border: 1px solid transparent;
}

.conn-online {
    background: rgba(16, 185, 129, .10);
    border-color: rgba(16, 185, 129, .20);
    color: #065f46;
}

.conn-offline {
    background: rgba(148, 163, 184, .12);
    border-color: rgba(148, 163, 184, .22);
    color: #475569;
}

.conn-live-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}

.conn-off-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

/* ── Days card inner animations ── */
.card-orb-tl {
    opacity: .85;
}

.card-orb-br {
    opacity: .75;
}

.card-sweep {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -45%;
    width: 38%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(110, 213, 242, .09) 35%,
        rgba(255, 255, 255, .11) 50%,
        rgba(110, 213, 242, .09) 65%,
        transparent
    );
    transform: skewX(-14deg);
    pointer-events: none;
    opacity: .42;
}

.guide-cta {
    position: relative;
    overflow: hidden;
}

.guide-cta::after {
    content: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
