/* Vanilla CSS Design System - Shish Web v2 */
:root {
    --bg-color: #0b0c10;
    --text-primary: #ffffff;
    --text-secondary: #8b92a5;
    --accent: #bb86fc;
    --accent-hover: #9965f4;
    --surface: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --auth-surface: rgba(14, 17, 26, 0.72);
    --auth-border: rgba(255, 255, 255, 0.12);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

button, .btn, a.auth-btn, .support-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background:
        radial-gradient(circle at top left, rgba(157, 80, 187, 0.12) 0%, rgba(157, 80, 187, 0.05) 15%, transparent 35%),
        radial-gradient(circle at bottom right, rgba(0, 210, 255, 0.09) 0%, rgba(0, 210, 255, 0.04) 15%, transparent 34%),
        var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background effects */
.glass-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

#entropy-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out;
}

.orb-1 {
    top: 0;
    left: 0;
    transform: translate(-25%, -20%);
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle at center, 
        rgba(157, 80, 187, 0.8) 0%, 
        rgba(157, 80, 187, 0.4) 40%, 
        rgba(157, 80, 187, 0.1) 70%, 
        transparent 100%);
}

.orb-2 {
    right: 0;
    bottom: 0;
    transform: translate(20%, 15%);
    width: 38vw;
    height: 38vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle at center, 
        rgba(0, 210, 255, 0.7) 0%, 
        rgba(0, 210, 255, 0.3) 45%, 
        rgba(0, 210, 255, 0.1) 75%, 
        transparent 100%);
    opacity: 0.22;
}

/* Layout */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 12px 0;
    min-height: 78px;
    width: min(100%, 1160px);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 64px;
    height: 64px;
    overflow: visible;
    transform: translateY(4px);
}

.draw-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bolt-v5 {
    animation-delay: 0.4s;
}

@keyframes draw-in {
    to {
        stroke-dashoffset: 0;
    }
}

.wifi-arc {
    opacity: 0;
}

.wifi-1 {
    animation: arc-appear 0.4s ease-out 0.7s forwards;
}

.wifi-2 {
    animation: arc-appear 0.4s ease-out 0.9s forwards;
}

.wifi-3 {
    animation: arc-appear 0.4s ease-out 1.1s forwards, arc-flicker-3 12s 2s infinite;
}

.wifi-4 {
    animation: arc-appear 0.4s ease-out 1.3s forwards, arc-flicker-4 12s 2s infinite;
}

@keyframes arc-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes arc-flicker-3 {
    0%,
    58% {
        opacity: 1;
    }

    60%,
    75% {
        opacity: 0;
    }

    77%,
    100% {
        opacity: 1;
    }
}

@keyframes arc-flicker-4 {
    0%,
    8% {
        opacity: 1;
    }

    10%,
    15% {
        opacity: 0;
    }

    17%,
    23% {
        opacity: 1;
    }

    25%,
    43% {
        opacity: 0;
    }

    45%,
    53% {
        opacity: 1;
    }

    55%,
    79% {
        opacity: 0;
    }

    81%,
    100% {
        opacity: 1;
    }
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.bottom-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

/* Support Widget */
#support-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
}

.support-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.support-btn-icon {
    line-height: 1;
}

.support-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff5d73;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 93, 115, 0.35);
}

.support-unread-hidden {
    display: none;
}

.support-btn:hover {
    transform: scale(1.05);
    background-color: rgba(0, 210, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}

/* Auth screen */
body.auth-page {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.016), rgba(255, 255, 255, 0) 14%, rgba(255, 255, 255, 0.012) 28%, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0.015) 62%, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, 0.012)),
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.018), transparent 20%),
        radial-gradient(circle at 14% 18%, rgba(157, 80, 187, 0.11), transparent 24%),
        radial-gradient(circle at 88% 82%, rgba(0, 210, 255, 0.09), transparent 24%),
        var(--bg-color);
}

body.auth-page .glass-orbs {
    opacity: 0.8;
}

body.auth-page .orb-1 {
    top: 8%;
    left: 12%;
    width: 28vw;
    height: 28vw;
    max-width: 300px;
    max-height: 300px;
    transform: translate(-42%, -42%);
    opacity: 0.11;
}

body.auth-page .orb-2 {
    right: 10%;
    bottom: 6%;
    width: 26vw;
    height: 26vw;
    max-width: 280px;
    max-height: 280px;
    transform: translate(40%, 34%);
    opacity: 0.08;
}

body.auth-page .content {
    max-width: 100%;
    padding-top: 0;
    padding-bottom: 12px;
}

body.auth-page .logo-icon {
    width: 70px;
    height: 70px;
}

body.auth-page .logo {
    font-size: 1.36rem;
}

.auth-shell {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 228px);
    padding: clamp(36px, 10vh, 96px) 0 72px;
}

.auth-container {
    width: min(100%, 420px);
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(24, 28, 40, 0.8), var(--auth-surface));
    padding: 32px;
    border-radius: 18px;
    border: 1px solid var(--auth-border);
    backdrop-filter: blur(18px) saturate(130%);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.auth-methods {
    display: flex;
    flex-direction: column;
}

.auth-divider {
    text-align: center;
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form-hidden {
    display: none;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.auth-input:focus {
    border-color: rgba(0, 210, 255, 0.35);
    background: rgba(3, 7, 18, 0.34);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.08);
}

.auth-input-otp {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.18em;
}

.auth-btn {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
}

.auth-btn:disabled {
    cursor: progress;
    transform: none;
    opacity: 0.72;
}

.auth-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: currentColor;
    animation: spin 0.9s linear infinite;
}

.auth-btn-loading .auth-btn-spinner {
    display: inline-block;
}

.auth-btn-label {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-btn-primary {
    background: var(--accent);
    color: #05070c;
}

.auth-btn-primary:hover {
    background: var(--accent-hover);
}

.auth-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.08);
}

.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-btn-telegram {
    align-self: center;
    width: 80%;
    padding: 10px 24px;
    margin-bottom: 20px;
    background: #0088cc;
    color: #fff;
    font-size: 0.95rem;
}

.auth-btn-telegram:hover {
    background: #0099e6;
}

.auth-note {
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.88);
}

.auth-link-btn {
    align-self: center;
    margin-top: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
}

.auth-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.auth-socials a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.18s ease;
}

.auth-socials a:hover,
.auth-link-btn:hover {
    color: #fff;
}

/* Tablet & Desktop Scaling */
@media (min-width: 768px) {
    .logo-icon {
        width: 77px;
        height: 77px;
    }

    .logo {
        font-size: 1.5rem;
    }

    body.auth-page .auth-container {
        width: min(100%, 432px);
        padding: 34px;
    }
}

@media (max-width: 767px) {
    .top-nav {
        padding-top: 14px;
    }

    .content {
        padding: 16px;
    }

    .auth-shell {
        min-height: calc(100vh - 196px);
        padding-top: 28px;
    }

    .auth-container {
        width: min(100%, 392px);
        padding: 24px 20px;
    }

    .auth-title {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

    #support-widget {
        right: 16px;
        bottom: 16px;
    }
}


/* Dashboard styles */
.dashboard-container {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
    }
    .db-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }
    .balance-badge {
        background: rgba(255,255,255,0.1);
        padding: 6px 12px;
        border-radius: 20px;
        font-weight: 500;
    }
    .dashboard-panel {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 24px;
        border-radius: 16px;
        margin-bottom: 24px;
        position: relative;
        overflow: hidden;
    }
    .panel-title {
        margin-top: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .sub-card {
        background: rgba(0, 210, 255, 0.1);
        border: 1px solid rgba(0, 210, 255, 0.3);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }
    .sub-card-no {
        background: rgba(255, 100, 100, 0.1);
        border: 1px solid rgba(255, 100, 100, 0.3);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }
    .progress-container {
        width: 100%;
        height: 6px;
        background: rgba(255,255,255,0.1);
        border-radius: 3px;
        overflow: hidden;
        margin-top: 8px;
    }
    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #00d2ff, #9d50bb);
        transition: width 0.3s ease;
    }
    .stats-grid {
        display: flex;
        gap: 16px;
        margin-bottom: 20px;
    }
    .stat-box {
        flex: 1;
        background: rgba(0,0,0,0.2);
        padding: 12px;
        border-radius: 12px;
        text-align: center;
    }
    .stat-value {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 4px;
    }
    .stat-label {
        font-size: 13px;
        opacity: 0.7;
    }
    .copy-box {
        display: flex;
        gap: 8px;
        background: rgba(0,0,0,0.2);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 8px;
        padding: 4px;
        margin-bottom: 16px;
    }
    .copy-input {
        flex: 1;
        background: transparent;
        border: none;
        color: white;
        padding: 10px 12px;
        font-size: 13px;
        outline: none;
        width: 100%;
        text-overflow: ellipsis;
    }
    .btn-qr {
        width: 100%;
        padding: 12px;
        background: transparent;
        border: 1px solid rgba(255,255,255,0.2);
        color: white;
    }
    #qr-container {
        display: none;
        text-align: center;
        margin-top: 20px;
    }
    .qr-wrapper {
        background: white;
        padding: 16px;
        border-radius: 12px;
        display: inline-block;
    }
/* Support Chat Window */
.support-chat-window { display: none; position: absolute; bottom: 70px; right: 0; width: 320px; background: rgba(14, 17, 26, 0.95); border: 1px solid var(--border); border-radius: 16px; backdrop-filter: blur(20px); flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.support-widget-open .support-chat-window { display: flex; animation: slide-up 0.3s ease; }
.support-widget-open .support-btn { background-color: var(--accent); }
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.support-chat-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border); }
.support-chat-header h3 { margin: 0; font-size: 16px; }
.close-support-btn { background: none; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; line-height: 1; }
.close-support-btn:hover { color: white; }
.support-chat-body { padding: 16px; min-height: 200px; max-height: 300px; overflow-y: auto; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.support-msg-system { background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; text-align: center; color: var(--text-secondary); }
.support-msg-support { background: rgba(255,255,255,0.08); color: white; padding: 10px; border-radius: 12px 12px 12px 0; align-self: flex-start; max-width: 85%; word-wrap: break-word; }
.support-msg-user { background: var(--accent); color: #000; padding: 10px; border-radius: 12px 12px 0 12px; align-self: flex-end; max-width: 85%; word-wrap: break-word; }
.support-msg-accent { color: var(--accent); }
.support-msg-error { color: #ff8f8f; }
.support-chat-footer { display: flex; flex-direction: column; padding: 16px; background: rgba(0,0,0,0.2); border-top: 1px solid var(--border); gap: 8px; }
.support-chat-footer textarea { width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 8px; color: white; padding: 8px 12px; font-family: inherit; resize: none; outline: none; }
.support-chat-footer textarea:focus { border-color: var(--accent); }
.support-send-btn { background: var(--accent); color: #000; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.support-send-btn:hover { background: var(--accent-hover); }
.support-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 640px) {
    .support-chat-window {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 88px;
        width: auto;
        max-height: min(72vh, 520px);
    }

    .support-chat-body {
        max-height: 42vh;
    }
}

/* Dashboard & Polish additions */
.balance-badge {
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.btn-copy {
    width: auto;
    flex: 0 0 auto;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    font-size: 14px;
    white-space: nowrap;
    border-radius: 10px;
    font-weight: 600;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-primary);
}

.footer-nav {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.footer-link:hover {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .copy-box {
        flex-direction: column;
        gap: 12px;
    }
    .btn-copy {
        width: 100%;
    }
    .db-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .db-header-side {
        width: 100%;
        min-width: 0;
        align-items: center;
    }

    .account-summary-card {
        width: 100%;
        max-width: none;
    }

    .account-summary-row {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }

    .account-summary-email {
        text-align: center;
    }
}

/* Checkout Wizard Styles */
.wizard-stepper {
    display: flex;
    gap: 8px;
    width: 100%;
}
.wizard-step {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.wizard-step.active {
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
}
.step-num {
    background: rgba(255,255,255,0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}
.wizard-step.active .step-num {
    background: #00d2ff;
    color: #000;
}

.checkout-step.hidden {
    display: none;
}

.plans-grid, .terms-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-card, .term-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
    cursor: pointer;
}
.plan-card:hover, .term-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.plan-card.recommended, .term-card.recommended {
    border-color: var(--accent);
    background: rgba(187, 134, 252, 0.05);
    box-shadow: 0 4px 20px rgba(187, 134, 252, 0.1);
}
.plan-card.selected {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.12);
}
.plan-card:focus-visible {
    outline: 2px solid rgba(0, 210, 255, 0.7);
    outline-offset: 2px;
}
.badge-pop {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(90deg, #9d50bb, #00d2ff);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.plan-header h3 {
    margin: 0;
    font-size: 22px;
}
.plan-header .price {
    font-size: 26px;
    font-weight: 700;
    margin-top: 8px;
    color: #00d2ff;
}
.per-month {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}
.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-size: 14px;
    opacity: 0.8;
}
.plan-features li {
    margin-bottom: 10px;
}

.term-card {
    text-align: center;
}
.term-card.selected {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
}
.term-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}
.term-discount {
    color: #4caf50;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.term-price b {
    font-size: 22px;
    color: #00d2ff;
}

.term-monthly {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Summary Card */
.summary-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}
.summary-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}
.summary-total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.total-price {
    font-size: 28px;
    color: #00d2ff;
}

.payment-option {
    display: block;
    cursor: pointer;
}
.payment-option .option-content {
    display: flex;
    align-items: center;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 16px;
    border-radius: 12px;
}
.pay-icon {
    font-size: 24px;
    margin-right: 16px;
}
.pay-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pay-text .option-title {
    font-weight: bold;
}
.pay-text .option-desc {
    font-size: 13px;
    color: var(--text-secondary);
}
.pay-check {
    color: #00d2ff;
    font-size: 20px;
    font-weight: bold;
}

/* 2026 issue-fix overrides */
.top-nav {
    width: min(100%, 1920px);
    padding-inline: 24px;
}

.content {
    max-width: min(100%, 1920px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logout {
    width: auto;
    min-width: 112px;
    padding-inline: 18px;
}

#support-widget {
    right: max(24px, calc((100vw - 1920px) / 2 + 24px));
    bottom: max(24px, calc((100vh - 1080px) / 2 + 24px));
}

.dashboard-container {
    max-width: 980px;
    padding: 24px;
}

.dashboard-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.db-header-main {
    min-width: 0;
}

.db-header-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 240px;
}

.dashboard-subtitle {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.account-summary-card {
    width: 100%;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 10px;
}

.account-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.account-summary-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.account-summary-email {
    max-width: 100%;
    text-align: right;
    overflow-wrap: anywhere;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 28px;
}

.panel-title {
    margin-bottom: 20px;
    font-size: 1.35rem;
}

.sub-card,
.sub-card-no,
.summary-card,
.waiting-card-details {
    background: rgba(6, 10, 18, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.sub-card {
    margin-bottom: 18px;
}

.sub-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.sub-card-header h3,
.sub-card-no h3 {
    margin: 0;
}

.sub-card-pill {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #04111f;
    background: #00d2ff;
}

.sub-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.sub-info-box {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.sub-info-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.sub-meta-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.sub-info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.dashboard-cta-row,
.step-actions,
.waiting-actions,
.setup-footer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.dashboard-cta-link,
.checkout-action-link {
    width: auto;
    min-width: 180px;
}

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

.invite-note,
.setup-help {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 14px;
}

.copy-box,
.setup-copy-box {
    align-items: center;
}

.copy-box {
    width: 100%;
}

.copy-input {
    min-width: 0;
}

.btn-qr {
    margin-top: 12px;
}

#qr-container {
    display: none;
}

#qr-container.qr-open,
#qr-container:not(.qr-open) {
    transition: opacity 0.2s ease;
}

#qr-container.qr-open {
    display: block;
}

.invite-qr-image {
    width: 200px;
    height: 200px;
}

.dashboard-btn-success {
    background: #4caf50 !important;
    border-color: #4caf50 !important;
    color: #fff !important;
}

.checkout-header {
    align-items: flex-start;
    gap: 16px;
}

.checkout-container .wizard-stepper {
    margin-bottom: 24px;
}

.checkout-step {
    display: block;
}

.checkout-step.hidden {
    display: none;
}

.plan-card,
.term-card {
    align-items: stretch;
}

.plan-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 14px;
}

.term-card {
    border: 1px solid var(--border);
    appearance: none;
    color: inherit;
}

.payment-methods {
    margin-top: 24px;
}

.payment-method-title {
    margin-bottom: 12px;
    font-size: 16px;
}

.checkout-error {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ff9fa8;
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.24);
}

.hidden {
    display: none !important;
}

.waiting-shell {
    width: 100%;
    max-width: 760px;
    margin: 32px auto 0;
    padding: 0 20px 20px;
}

.waiting-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(16px);
}

.waiting-card h1 {
    margin-bottom: 10px;
}

.waiting-card p {
    color: var(--text-secondary);
}

.waiting-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
}

.waiting-card-success .waiting-state-icon {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.12);
}

.waiting-card-rejected .waiting-state-icon {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.12);
}

.waiting-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00d2ff;
    margin: 0 auto 18px;
    animation: spin 0.9s linear infinite;
}

.waiting-card-details,
.checkout-payment-card {
    margin-top: 20px;
    padding: 20px;
}

.waiting-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.waiting-detail-row:last-child {
    border-bottom: 0;
}

.waiting-public-id {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.setup-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px;
}

.setup-intro,
.setup-device-head {
    margin-bottom: 24px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.platform-card {
    display: block;
    padding: 20px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.platform-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 210, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

.platform-card-detected {
    border-color: rgba(0, 210, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.18) inset;
}

.platform-emoji {
    font-size: 34px;
    margin-bottom: 12px;
}

.platform-title {
    font-weight: 700;
}

.platform-note {
    margin-top: 10px;
    color: #00d2ff;
    font-size: 13px;
}

.setup-device-emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

.setup-step-panel p {
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .top-nav {
        padding-inline: 16px;
    }

    .dashboard-container,
    .setup-container,
    .waiting-shell {
        padding-inline: 16px;
    }

    .sub-info-grid,
    .plans-grid,
    .terms-grid {
        grid-template-columns: 1fr;
    }

    .sub-info-row,
    .waiting-detail-row,
    .summary-row,
    .summary-total-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-actions,
    .dashboard-cta-row,
    .step-actions,
    .waiting-actions,
    .setup-footer-actions {
        width: 100%;
    }

    .dashboard-cta-link,
    .checkout-action-link,
    .step-actions .auth-btn,
    .waiting-actions .auth-btn,
    .setup-footer-actions .auth-btn {
        width: 100%;
    }

    .nav-actions {
        width: auto;
    }

    .nav-logout {
        width: auto;
        min-width: 88px;
        padding: 10px 14px;
        font-size: 0.92rem;
    }
}
