* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0A1F1A;
    color: #FFFFFF;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ===== HERO ===== */
.hero {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 38vh;
    background: radial-gradient(ellipse 80% 60% at 50% 45%, #133D32 0%, #0D2B24 40%, #0A1F1A 70%);
}

.hero-shield {
    position: relative;
    width: 88px;
    height: 88px;
    color: #FFFFFF;
    z-index: 2;
}
.hero-shield svg { width: 100%; height: 100%; }
.hero-shield.dimmed { color: #4A6B60; opacity: 0.4; }

.hero-rings {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.hero-rings circle { fill: none; stroke-width: 1; }
.hero-rings .ring1 { stroke: #1E5C4C; opacity: 0.4; }
.hero-rings .ring2 { stroke: #1E5C4C; opacity: 0.25; }
.hero-rings .ring3 { stroke: #1E5C4C; opacity: 0.12; }

/* ===== BOTTOM CARD ===== */
.bottom-card {
    background: linear-gradient(180deg, #112E26 0%, #0E2520 100%);
    border-top: 1px solid rgba(30, 92, 76, 0.25);
    border-radius: 24px 24px 0 0;
    padding: 28px 16px 36px;
    flex-shrink: 0;
    margin: 0;
    width: 100%;
}

/* Info row: username/status left — date/plan right */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 0 2px;
}
.info-left .username {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.info-left .status {
    font-size: 13px;
    color: #8BA89E;
    margin-top: 3px;
}
.info-right { text-align: right; }
.info-right .date {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.2px;
}
.info-right .plan-label {
    font-size: 13px;
    color: #2DD4A0;
    margin-top: 3px;
}
.info-right .plan-label.none { color: #8BA89E; }

/* ===== BUTTONS ===== */
.btn-accent {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #2DD4A0;
    color: #000000;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: opacity 0.15s;
    gap: 12px;
}
.btn-accent:active { opacity: 0.75; }

.btn-accent .btn-icon { width: 22px; height: 22px; color: #0A1F1A; flex-shrink: 0; }
.btn-accent .price { margin-left: auto; font-weight: 600; }

.btn-outline {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(30, 92, 76, 0.35);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.15s;
    gap: 10px;
}
.btn-outline:active { background: rgba(30, 92, 76, 0.15); }
.btn-outline .btn-icon { width: 20px; height: 20px; flex-shrink: 0; color: #8BA89E; }
.btn-outline .accent { color: #2DD4A0; margin-left: auto; font-weight: 500; }

.btn-row {
    display: flex;
    gap: 10px;
}
.btn-row .btn-outline {
    flex: 1;
    margin-bottom: 0;
    justify-content: center;
}

/* ===== SCREENS (plans/setup/profile) ===== */
.screen {
    min-height: 100vh;
    min-height: 100dvh;
    background: #0A1F1A;
    padding: 16px 20px 32px;
}

.screen-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.screen-subtitle { font-size: 14px; color: #8BA89E; margin-bottom: 20px; }

/* ===== CARDS ===== */
.card {
    background: #112E26;
    border: 1px solid rgba(30, 92, 76, 0.2);
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 12px;
}
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.card-sub { font-size: 13px; color: #8BA89E; margin-bottom: 4px; }

/* ===== PLANS SCREEN ===== */
.plans-screen {
    background: #0A1F1A;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.plans-outer-card {
    background: linear-gradient(180deg, #0F2B1F 0%, #0A1E15 100%);
    border: 1px solid rgba(26, 77, 53, 0.5);
    border-radius: 20px;
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
}
/* Subtle radial glow */
.plans-outer-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(13, 51, 34, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.plans-outer-card > * { position: relative; z-index: 1; }

.plans-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.plans-subtitle {
    font-size: 13px;
    color: #8BA89E;
    line-height: 1.4;
    margin-bottom: 18px;
}

/* Device row */
.device-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    background: #0D2520;
    border: 1px solid rgba(45, 212, 160, 0.25);
    border-radius: 16px;
    padding: 14px 16px;
}
.device-icon-box {
    width: 48px; height: 48px;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A3D2E;
    flex-shrink: 0;
}
.device-count {
    font-size: 24px;
    font-weight: 700;
    color: #4ADE80;
}
.device-info { flex: 1; }
.device-label {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.device-sub { font-size: 13px; color: #8BA89E; margin-top: 1px; }

.savings-badge {
    background: #E53935;
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    margin-left: auto;
}

/* Dot slider — 5 dots on a track bar */
.dot-slider {
    position: relative;
    margin-bottom: 20px;
    height: 36px;
    touch-action: none;
}
.dot-track {
    position: absolute;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    height: 32px;
    background: #1A3D2E;
    border-radius: 16px;
    overflow: hidden;
}
.dot-track-fill {
    height: 100%;
    background: linear-gradient(90deg, #1A6B4A, #2DD4A0);
    border-radius: 16px 0 0 16px;
}
.dot-positions {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}
.dot-pos {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(13, 37, 32, 0.6);
    border: none;
    cursor: pointer;
    z-index: 2;
}
.dot-pos.filled {
    background: #4ADE80;
}
.dot-pos.thumb {
    width: 28px; height: 28px;
    background: #FFFFFF;
    border: 3px solid #2DD4A0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(45, 212, 160, 0.4);
    z-index: 3;
}

/* Plan grid 2x2 */
.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.plan-tile {
    background: rgba(15, 43, 31, 0.6);
    border: 1px solid rgba(30, 92, 76, 0.35);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.plan-tile.selected {
    border-color: #2DD4A0;
    background: rgba(45, 212, 160, 0.08);
}
.plan-tile:active { opacity: 0.85; }

.plan-tile-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #FFFFFF;
}
.plan-tile-badge {
    display: inline-block;
    background: #2DD4A0;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.plan-tile-price {
    font-size: 26px;
    font-weight: 700;
    color: #2DD4A0;
    margin-bottom: 2px;
}
.plan-tile-per {
    font-size: 12px;
    color: #8BA89E;
}

/* Pay section (sticky bottom) */
.plans-pay-section {
    margin-top: 0;
    padding-top: 20px;
}
.btn-pay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, #00D68F 0%, #00B577 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 214, 143, 0.25);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-pay:active { background: linear-gradient(135deg, #00B577 0%, #009960 100%); box-shadow: 0 2px 10px rgba(0, 214, 143, 0.2); }
.btn-pay .old-price {
    text-decoration: line-through;
    color: #2DD4A0;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
}

/* ===== SETUP ===== */
.platform-tabs { display: flex; gap: 8px; margin: 12px 0 16px; }
.platform-tab {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    border: 1px solid rgba(30, 92, 76, 0.3);
    border-radius: 10px;
    color: #8BA89E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}
.platform-tab.active {
    background: rgba(45, 212, 160, 0.12);
    border-color: #2DD4A0;
    color: #2DD4A0;
}

.vless-box {
    background: #0A1F1A;
    border: 1px solid rgba(30, 92, 76, 0.3);
    border-radius: 10px;
    padding: 14px;
    font-size: 12px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    color: #8BA89E;
    word-break: break-all;
    cursor: pointer;
    margin: 10px 0 12px;
    line-height: 1.5;
}

.qr-container { text-align: center; margin: 16px 0; }
.qr-container img { width: 180px; height: 180px; border-radius: 12px; }
.qr-label { font-size: 13px; color: #8BA89E; margin-top: 8px; }

.step { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.step-num {
    width: 28px; height: 28px;
    background: rgba(45, 212, 160, 0.12);
    color: #2DD4A0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.step-text { font-size: 14px; color: #FFFFFF; line-height: 1.5; padding-top: 3px; }

/* ===== PROFILE (UltimaVPN style) ===== */
.prof-screen { padding-top: 8px; }

.prof-header {
    text-align: center;
    padding: 20px 0 28px;
}
.prof-name {
    font-size: 22px;
    font-weight: 600;
    color: #FFFFFF;
}
.prof-id {
    font-size: 14px;
    color: #8BA89E;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.prof-copy-icon {
    cursor: pointer;
    color: #8BA89E;
    display: inline-flex;
    align-items: center;
}
.prof-copy-icon:active { color: #2DD4A0; }

/* Menu list */
.prof-menu {
    background: #0D2B24;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}
.prof-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: background 0.15s;
}
.prof-menu-item:active {
    background: rgba(45, 212, 160, 0.06);
}
.prof-menu-item + .prof-menu-item {
    border-top: 1px solid rgba(30, 92, 76, 0.15);
}
.prof-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.prof-icon-green {
    background: rgba(45, 212, 160, 0.12);
    color: #2DD4A0;
}
.prof-icon-orange {
    background: rgba(251, 146, 60, 0.12);
    color: #FB923C;
}
.prof-icon-yellow {
    background: rgba(250, 204, 21, 0.12);
    color: #FACC15;
}
.prof-icon-red {
    background: rgba(248, 113, 113, 0.12);
    color: #F87171;
}
.prof-menu-text {
    font-size: 15px;
    font-weight: 500;
    color: #FFFFFF;
}

/* Subscription link section */
.prof-sub-section {
    margin-bottom: 16px;
}
.prof-sub-label {
    font-size: 14px;
    color: #8BA89E;
    margin-bottom: 10px;
}
.prof-sub-link {
    background: #0D2B24;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}
.prof-sub-link:active {
    background: #0F332B;
}
.prof-sub-url {
    font-size: 14px;
    color: #8BA89E;
    word-break: break-all;
    flex: 1;
}
.prof-sub-copy {
    color: #5A7D72;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Instructions button */
.prof-instructions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #0D2B24;
    border: none;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s;
}
.prof-instructions-btn:active {
    background: #0F332B;
}
.prof-instructions-icon {
    color: #2DD4A0;
    display: flex;
    align-items: center;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 40px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #112E26;
    border: 1px solid rgba(30, 92, 76, 0.3);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
    pointer-events: none;
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, #112E26 25%, #1A3D34 50%, #112E26 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    margin-bottom: 12px;
}
.skeleton-card { height: 100px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== CONFIRM BOTTOM SHEET ===== */
.confirm-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    display: flex; align-items: flex-end;
}
.confirm-overlay.visible { background: rgba(0,0,0,0.6); }

.confirm-sheet {
    width: 100%;
    background: linear-gradient(180deg, #152E26 0%, #0F231D 100%);
    border-radius: 24px 24px 0 0;
    padding: 28px 24px 32px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.confirm-overlay.visible .confirm-sheet { transform: translateY(0); }

.confirm-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.confirm-title { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.confirm-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; color: #8BA89E;
    transition: background 0.15s;
}
.confirm-close:active { background: rgba(255,255,255,0.15); }
.confirm-close svg { width: 18px; height: 18px; }

.confirm-info {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 4px 0;
    margin-bottom: 16px;
}
.confirm-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 18px;
}
.confirm-info-row + .confirm-info-row {
    border-top: 1px solid rgba(255,255,255,0.06);
}
.confirm-info-label { font-size: 14px; color: #7A9E91; }
.confirm-info-value { font-size: 14px; font-weight: 500; color: #E8F0EC; }
.confirm-info-row.total .confirm-info-label { font-weight: 600; color: #A0C4B6; }
.confirm-info-row.total .confirm-info-value { font-size: 17px; font-weight: 700; color: #fff; }

.confirm-method {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.15s;
}
.confirm-method:active { background: rgba(255,255,255,0.08); }
.confirm-method-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 4px;
}
.confirm-method-icon svg { width: 26px; height: 26px; }
.confirm-method-icon img { width: 100%; height: 100%; object-fit: contain; }
.confirm-method-body { flex: 1; }
.confirm-method-text { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.confirm-method-sub { display: block; font-size: 12px; color: #7A9E91; margin-top: 2px; }
.confirm-method-arrow { color: #5A7D6F; flex-shrink: 0; }
.confirm-method-arrow svg { width: 20px; height: 20px; }

/* Quick-pay radio selection */
.confirm-method--selected {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.25);
}
.confirm-method-radio {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.radio-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid #5A7D6F;
    transition: all 0.2s;
}
.radio-dot.active {
    border-color: #4ADE80;
    background: #4ADE80;
    box-shadow: inset 0 0 0 3px #0D2520;
}

.confirm-pay-btn {
    width: 100%; padding: 17px;
    background: linear-gradient(135deg, #00D68F 0%, #00B577 100%);
    color: #fff;
    font-size: 17px; font-weight: 700;
    border: none; border-radius: 14px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(0, 214, 143, 0.25);
    letter-spacing: -0.2px;
}
.confirm-pay-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 214, 143, 0.2);
}

.confirm-secure {
    text-align: center; font-size: 12px; color: #5A7D6F;
    margin-top: 14px; letter-spacing: 0.1px;
}

/* ===== AGREEMENT SHEET ===== */
.agreement-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    display: flex; align-items: flex-end;
    pointer-events: none;
}
.agreement-overlay.visible { background: rgba(0,0,0,0.6); pointer-events: auto; }

.agreement-sheet {
    width: 100%;
    max-height: 80vh;
    background: linear-gradient(180deg, #152E26 0%, #0F231D 100%);
    border-radius: 24px 24px 0 0;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}
.agreement-overlay.visible .agreement-sheet { transform: translateY(0); }

.agreement-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px 16px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(30, 92, 76, 0.2);
}
.agreement-title { font-size: 18px; font-weight: 700; color: #fff; }
.agreement-close {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: none; color: #8BA89E;
}
.agreement-close:active { background: rgba(255,255,255,0.15); }

.agreement-body {
    padding: 16px 24px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}
.agreement-body h3 {
    font-size: 15px; font-weight: 600; color: #2DD4A0;
    margin: 16px 0 8px;
}
.agreement-body h3:first-child { margin-top: 0; }
.agreement-body p {
    font-size: 13px; color: #B0C9C0; line-height: 1.6;
    margin: 0 0 8px;
}

/* ===== REFERRAL MODAL ===== */
.referral-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    display: flex; align-items: flex-end;
    pointer-events: none;
}
.referral-overlay.visible { background: rgba(0,0,0,0.5); pointer-events: auto; }

.referral-sheet {
    width: 100%;
    max-height: 85vh;
    background: #0d1117;
    border-radius: 16px 16px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}
.referral-overlay.visible .referral-sheet { transform: translateY(0); }

.referral-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.referral-header h2 {
    font-size: 20px; font-weight: 700; color: #fff; margin: 0;
}
.referral-close {
    background: none; border: none; color: #666;
    font-size: 22px; cursor: pointer; padding: 4px;
    line-height: 1;
}

.referral-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.referral-info-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}
.referral-info-card p {
    font-size: 13px; color: #888; line-height: 1.5; margin: 0 0 8px;
}
.referral-info-card p:last-child { margin-bottom: 0; }
.referral-info-divider {
    border: none; border-top: 1px solid rgba(255,255,255,0.1);
    margin: 12px 0;
}
.referral-info-stat {
    font-size: 13px; color: #888;
}
.referral-info-stat span { color: #fff; }

.referral-section-title {
    font-size: 14px; color: #fff; font-weight: 400;
    margin: 0 0 10px;
}

.referral-link-field {
    display: flex; justify-content: space-between; align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 12px 16px;
    margin-bottom: 20px;
    cursor: pointer;
}
.referral-link-text {
    font-size: 13px; color: #888;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1; margin-right: 12px;
}
.referral-copy-icon { flex-shrink: 0; }

.referral-share-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 20px;
    justify-content: center;
}
.referral-share-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.referral-share-chip:active {
    background: rgba(255,255,255,0.15);
}
.referral-share-chip svg {
    flex-shrink: 0;
}

.referral-history-empty {
    display: flex; flex-direction: column; align-items: center;
    padding: 32px 0; gap: 8px;
}
.referral-history-empty p {
    font-size: 13px; color: #555; margin: 0;
}

.referral-loading { color: #888; text-align: center; padding: 40px 0; }
.referral-error { color: #ff6b6b; text-align: center; padding: 20px 0; }

/* ===== WIZARD ===== */
.wizard {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #0A1F1A;
}

.wizard .hero { flex: 0 0 auto; min-height: 38vh; }

.wizard-hero-icon {
    position: relative;
    width: 72px; height: 72px;
    color: #2DD4A0;
    z-index: 2;
}
.wizard-hero-icon svg { width: 100%; height: 100%; }
.wizard-hero-icon.success-pulse { animation: wizardPulse 2s ease-in-out infinite; }

@keyframes wizardPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.85; }
}

.wizard-progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    z-index: 1;
}
.wizard-progress-track {
    fill: none;
    stroke: rgba(74, 222, 128, 0.15);
    stroke-width: 3;
}
.wizard-progress-bar {
    fill: none;
    stroke: #4ADE80;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.wizard-progress-bar.complete {
    animation: progressPulse 2s ease-in-out infinite;
}
@keyframes progressPulse {
    0%, 100% { stroke-opacity: 1; filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.3)); }
    50% { stroke-opacity: 0.7; filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.6)); }
}

.wizard-body {
    text-align: center;
    padding: 8px 28px 0;
}
.wizard-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}
.wizard-desc {
    font-size: 15px;
    color: #8BA89E;
    line-height: 1.5;
}

.wizard-actions .btn-accent,
.wizard-actions .btn-outline {
    justify-content: center;
}
.wizard-actions {
    padding: 24px 20px 36px;
    margin-top: auto;
}

/* ===== PAYMENT SCREEN (UltimaVPN style) ===== */
.pay-screen { padding-top: 8px; }
.pay-title { font-size: 26px; font-weight: 700; margin-bottom: 20px; }

.pay-empty-card {
    background: #0D2B24; border-radius: 16px; padding: 32px 20px;
    text-align: center; margin-bottom: 12px;
}
.pay-empty-icon { color: #8BA89E; margin-bottom: 12px; display: flex; justify-content: center; }
.pay-empty-text { font-size: 15px; color: #FFFFFF; }

.pay-method-card {
    background: #0D2B24; border-radius: 16px; padding: 16px 18px;
    display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.pay-method-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(45, 212, 160, 0.12); color: #2DD4A0;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
/* СБП icon — match confirm-method-icon style */
.pay-method-icon--sbp {
    width: 44px; height: 44px;
    background: #fff;
    padding: 4px;
    overflow: hidden;
}
.pay-method-icon--sbp img {
    width: 100%; height: 100%; object-fit: contain; border-radius: 8px;
}
.pay-method-info { flex: 1; }
.pay-method-type { font-size: 15px; font-weight: 500; }
.pay-method-detail { font-size: 13px; color: #8BA89E; margin-top: 2px; }
.pay-method-delete { color: #5A7D72; cursor: pointer; padding: 8px; }
.pay-method-delete:active { color: #F87171; }

.pay-autorenew-card {
    background: #0D2B24; border-radius: 16px; padding: 16px 18px;
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px;
}
.pay-autorenew-text { font-size: 15px; font-weight: 500; }

/* Toggle switch */
.toggle { position: relative; width: 51px; height: 31px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #3A5A50; border-radius: 31px; cursor: pointer;
    transition: background 0.3s;
}
.toggle-slider:before {
    content: ""; position: absolute; width: 27px; height: 27px;
    left: 2px; bottom: 2px; background: #fff; border-radius: 50%;
    transition: transform 0.3s;
}
.toggle input:checked + .toggle-slider { background: #2DD4A0; }
.toggle input:checked + .toggle-slider:before { transform: translateX(20px); }

/* History section */
.pay-history-btn {
    background: #0D2B24; border: none; border-radius: 16px;
    padding: 16px 18px; width: 100%; display: flex; align-items: center;
    justify-content: space-between; color: #FFFFFF; font-size: 15px;
    font-weight: 500; cursor: pointer; margin-top: 12px;
}
.pay-history-list { margin-top: 8px; }
.pay-history-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid rgba(30, 92, 76, 0.15);
}
.pay-history-item:last-child { border-bottom: none; }
.pay-history-date { font-size: 13px; color: #8BA89E; }
.pay-history-amount { font-size: 14px; font-weight: 600; }
.pay-history-status { font-size: 12px; color: #2DD4A0; }
.pay-history-status.failed { color: #F87171; }

/* ===== DISCOUNT ===== */
.price-old {
    text-decoration: line-through;
    color: var(--text-secondary, #8BA89E);
    font-size: 14px;
    margin-right: 8px;
}

.price-new {
    color: #ff4444;
    font-weight: 700;
    font-size: 18px;
}

.discount-badge {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.discount-timer {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
}

.referral-timeline {
    margin-top: 20px;
    padding: 0 4px;
}
.rt-header {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.rt-total {
    font-size: 12px;
    color: #4CAF50;
    margin-bottom: 12px;
    font-weight: 500;
}
.rt-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.rt-dot {
    color: #2AABEE;
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.rt-dot-empty {
    color: #555;
}
.rt-content {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.rt-date {
    color: #888;
    min-width: 45px;
    font-size: 12px;
}
.rt-separator {
    color: #333;
    font-size: 10px;
}
.rt-name {
    color: #fff;
    font-weight: 500;
}
.rt-days {
    color: #4CAF50;
    font-weight: 600;
    margin-left: auto;
}
.rt-line {
    color: #333;
    font-size: 10px;
    padding-left: 5px;
    line-height: 1;
    height: 12px;
}
.rt-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}
.rt-empty-dot {
    color: #555;
    font-size: 14px;
    width: 16px;
    text-align: center;
}
.rt-empty-text {
    color: #888;
    font-size: 13px;
}
.rt-empty-hint {
    color: #555;
    font-size: 12px;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   TRANSACTIONS BOTTOM SHEET
   ═══════════════════════════════════════════════════════ */

/* ── Overlay (копия .referral-overlay) ────────────────── */
.txn-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
    display: flex; align-items: flex-end;
    pointer-events: none;
}
.txn-overlay.visible { background: rgba(0,0,0,0.5); pointer-events: auto; }

/* ── Sheet (копия .referral-sheet) ────────────────────── */
.txn-sheet {
    width: 100%;
    max-height: 85vh;
    background: #0d1117;
    border-radius: 16px 16px 0 0;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.txn-overlay.visible .txn-sheet { transform: translateY(0); }

/* ── Drag handle ──────────────────────────────────────── */
.txn-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 0;
    flex-shrink: 0;
}
.txn-handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
}

/* ── Header ───────────────────────────────────────────── */
.txn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 12px;
    flex-shrink: 0;
}
.txn-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.txn-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
    flex-shrink: 0;
}
.txn-close:active { background: rgba(255, 255, 255, 0.2); }
.txn-close svg { display: block; }

/* ── Summary card ─────────────────────────────────────── */
.txn-summary {
    margin: 0 20px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    gap: 16px;
}
.txn-summary-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.txn-summary-label {
    font-size: 12px;
    color: #8BA89E;
    letter-spacing: 0.02em;
}
.txn-summary-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}
.txn-summary-value.accent { color: #2DD4A0; }

/* ── Filter chips ─────────────────────────────────────── */
.txn-filters {
    display: flex;
    gap: 6px;
    padding: 0 20px 14px;
    flex-shrink: 0;
}
.txn-filter-chip {
    padding: 7px 14px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s;
    color: #8BA89E;
    background: rgba(255, 255, 255, 0.05);
}
.txn-filter-chip.active {
    color: #000;
    background: #2DD4A0;
}
.txn-filter-chip:not(.active):active {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Scrollable body ──────────────────────────────────── */
.txn-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 0 20px 24px;
}
.txn-body::-webkit-scrollbar { width: 0; }

/* ── Date group ───────────────────────────────────────── */
.txn-date-group { margin-bottom: 20px; }
.txn-date-label {
    font-size: 12px;
    font-weight: 500;
    color: #8BA89E;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 2px 10px;
}

/* ── Transaction row ──────────────────────────────────── */
.txn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}
.txn-item:last-child { border-bottom: none; }
.txn-item:active { background: rgba(255, 255, 255, 0.03); border-radius: 10px; }

/* ── Status icon ──────────────────────────────────────── */
.txn-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.txn-icon.completed { background: rgba(45, 212, 160, 0.12); }
.txn-icon.pending   { background: rgba(245, 158, 11, 0.12); }
.txn-icon.failed    { background: rgba(239, 68, 68, 0.12); }

/* ── Info (plan + date) ───────────────────────────────── */
.txn-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.txn-plan {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}
.txn-meta {
    font-size: 13px;
    color: #8BA89E;
    display: flex;
    align-items: center;
    gap: 6px;
}
.txn-auto-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #2DD4A0;
    background: rgba(45, 212, 160, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* ── Amount + status ──────────────────────────────────── */
.txn-right {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.txn-amount {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}
.txn-status { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.txn-status.completed { color: #2DD4A0; }
.txn-status.pending   { color: #F59E0B; }
.txn-status.failed    { color: #EF4444; }

/* ── Empty state ──────────────────────────────────────── */
.txn-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 16px;
}
.txn-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
.txn-empty-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    letter-spacing: -0.01em;
}
.txn-empty-desc {
    font-size: 14px;
    color: #8BA89E;
    text-align: center;
    line-height: 1.5;
    max-width: 240px;
}

/* ── Loading spinner ──────────────────────────────────── */
.txn-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px;
    gap: 12px;
}
.txn-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: #2DD4A0;
    border-radius: 50%;
    animation: txn-spin 0.7s linear infinite;
}
@keyframes txn-spin { to { transform: rotate(360deg); } }

/* ── Responsive (small screens) ───────────────────────── */
@media (max-width: 380px) {
    .txn-summary { gap: 10px; padding: 14px; }
    .txn-summary-value { font-size: 16px; }
    .txn-header { padding: 14px 18px 10px; }
    .txn-filters { padding: 0 18px 12px; }
    .txn-body { padding: 0 18px 20px; }
    .txn-summary { margin: 0 18px 14px; }
}

/* ===== REFERRAL BANNER ===== */
.ref-banner {
    margin-top: 14px;
    background: linear-gradient(160deg, rgba(22,68,52,0.95) 0%, rgba(14,42,34,0.98) 50%, rgba(12,36,28,1) 100%);
    border: 1px solid rgba(45,212,160,0.2);
    border-radius: 20px;
    padding: 20px 18px 18px;
    position: relative;
    overflow: hidden;
}
/* Ambient glow top-right */
.ref-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(45,212,160,0.08) 0%, transparent 65%);
    pointer-events: none;
}
/* Subtle bottom-left glow */
.ref-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -10px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(45,212,160,0.04) 0%, transparent 65%);
    pointer-events: none;
}

/* ===== REFERRAL BANNER — TOP ROW ===== */
.ref-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.ref-gift {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(45,212,160,0.15) 0%, rgba(45,212,160,0.06) 100%);
    border: 1px solid rgba(45,212,160,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.ref-gift-icon {
    width: 24px;
    height: 24px;
    color: #2DD4A0;
    filter: drop-shadow(0 0 6px rgba(45,212,160,0.3));
}
.ref-top-text {
    flex: 1;
}
.ref-top-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.25;
}
.ref-top-sub {
    font-size: 12.5px;
    color: #6B9B8E;
    margin-top: 3px;
    letter-spacing: -0.1px;
}
.ref-earned {
    background: linear-gradient(135deg, rgba(45,212,160,0.14) 0%, rgba(45,212,160,0.08) 100%);
    color: #2DD4A0;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 10px;
    white-space: nowrap;
    border: 1px solid rgba(45,212,160,0.12);
    letter-spacing: -0.2px;
}

/* ===== REFERRAL BANNER — MILESTONE TRACK ===== */
.ms-track {
    position: relative;
    margin: 0 6px 14px;
    padding: 0;
}
.ms-line {
    position: absolute;
    top: 18px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    z-index: 0;
}
.ms-line-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #2DD4A0 0%, #3BEAB8 100%);
    box-shadow: 0 0 8px rgba(45,212,160,0.3);
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.ms-dots {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.ms-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 56px;
}
.ms-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.08);
    background: rgba(12,38,30,0.9);
    color: rgba(255,255,255,0.25);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.ms-circle.done {
    background: linear-gradient(135deg, #2DD4A0, #25B98D);
    border-color: transparent;
    color: #0A1F1A;
    box-shadow: 0 2px 12px rgba(45,212,160,0.3);
}
.ms-circle.done svg {
    width: 16px;
    height: 16px;
}
.ms-circle.next {
    border-color: #2DD4A0;
    color: #2DD4A0;
    background: rgba(45,212,160,0.06);
    box-shadow: 0 0 0 5px rgba(45,212,160,0.1), 0 0 16px rgba(45,212,160,0.08);
    animation: pulse-ring 2.5s ease-in-out infinite;
}
.ms-circle.mega {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,200,55,0.4);
    background: linear-gradient(135deg, rgba(255,200,55,0.1) 0%, rgba(255,170,30,0.05) 100%);
    color: #FFD23F;
    font-size: 18px;
    box-shadow: 0 0 20px rgba(255,200,55,0.08);
    animation: glow-gold 3s ease-in-out infinite;
}

/* ===== REFERRAL BANNER — ANIMATIONS ===== */
@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 5px rgba(45,212,160,0.1), 0 0 16px rgba(45,212,160,0.08); }
    50% { box-shadow: 0 0 0 8px rgba(45,212,160,0.18), 0 0 24px rgba(45,212,160,0.12); }
}
@keyframes glow-gold {
    0%, 100% { box-shadow: 0 0 20px rgba(255,200,55,0.08); }
    50% { box-shadow: 0 0 28px rgba(255,200,55,0.15); }
}

/* ===== REFERRAL BANNER — LABELS ===== */
.ms-label {
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.2px;
}
.ms-label.done-label {
    color: rgba(45,212,160,0.55);
}
.ms-label.mega-label {
    color: #FFD23F;
    font-weight: 800;
    font-size: 10.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255,200,55,0.15);
}

/* ===== REFERRAL BANNER — INFO ROW ===== */
.ref-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 2px;
}
.ref-info-left {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}
.ref-info-left b {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}
.ref-info-right {
    font-size: 12px;
    color: #2DD4A0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.85;
}

/* ===== REFERRAL BANNER — CTA BUTTON ===== */
.ref-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #2DD4A0 0%, #25BA8E 100%);
    color: #0A1F1A;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 24px rgba(45,212,160,0.25), 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.15s, box-shadow 0.2s;
    letter-spacing: -0.2px;
}
.ref-cta:active {
    transform: scale(0.97);
    box-shadow: 0 2px 12px rgba(45,212,160,0.15);
}

/* ===== REFERRAL BANNER — FOOTER ===== */
.ref-footer {
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    margin-top: 10px;
    line-height: 1.4;
    letter-spacing: -0.1px;
}
/* ═══════════════════════════════════════════════════════
   ONBOARDING SPOTLIGHT OVERLAY
   Premium coach mark with SVG mask cutout
   ═══════════════════════════════════════════════════════ */

/* ── Overlay container ────────────────────────────────── */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.onboarding-overlay.visible {
    opacity: 1;
}

/* ── SVG mask (full-screen darkening with cutout) ─────── */
.onboarding-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Pulsing ring around the cutout button ────────────── */
.onboarding-ring {
    position: fixed;
    z-index: 101;
    border-radius: 16px;
    border: 2px solid rgba(45, 212, 160, 0.6);
    box-shadow:
        0 0 0 0 rgba(45, 212, 160, 0.3),
        0 0 20px rgba(45, 212, 160, 0.15),
        inset 0 0 20px rgba(45, 212, 160, 0.04);
    cursor: pointer;
    animation: onboarding-ring-pulse 2s ease-in-out infinite;
}

@keyframes onboarding-ring-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(45, 212, 160, 0.3),
            0 0 20px rgba(45, 212, 160, 0.15),
            inset 0 0 20px rgba(45, 212, 160, 0.04);
    }
    50% {
        box-shadow:
            0 0 0 8px rgba(45, 212, 160, 0.08),
            0 0 40px rgba(45, 212, 160, 0.25),
            inset 0 0 24px rgba(45, 212, 160, 0.06);
    }
}

/* ── Tooltip ──────────────────────────────────────────── */
.onboarding-tooltip {
    position: fixed;
    z-index: 103;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2DD4A0 0%, #22C08A 100%);
    color: #0A1F1A;
    padding: 13px 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.2px;
    box-shadow:
        0 8px 32px rgba(45, 212, 160, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.25);
    animation: onboarding-bounce 2s ease-in-out infinite;
    pointer-events: none;
}

/* Arrow pointing down */
.onboarding-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #27B88A;
}

@keyframes onboarding-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

/* ── Skip button — subtle, non-distracting ────────────── */
.onboarding-skip {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 104;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 14px;
    background: rgba(10, 14, 12, 0.85);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s, color 0.2s;
    letter-spacing: -0.1px;
}
.onboarding-skip:active {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

/* === APK-SPECIFIC === */

/* Button reset — low specificity, any class selector (.btn-accent etc.) overrides naturally */
button {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

/* CSS variables for safe area */
:root {
    --safe-bottom: 0px;
    --safe-top: 0px;
    --nav-base-height: 76px;
}

/* Bottom nav — positioned via inline style: bottom:calc(var(--safe-bottom) + 8px) */
/* Height fixed at h-[76px] via Tailwind class, no stretching */

#screens-container {
    bottom: calc(var(--nav-base-height) + var(--safe-bottom) + 8px) !important;
}

/* Web back button */
.web-back-btn {
    position: fixed;
    top: calc(var(--safe-top, 0px) + 12px);
    left: 16px;
    z-index: 40;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(4,9,6,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    padding: 0;
}
.web-back-btn svg { width: 20px; height: 20px; }

/* Landing page */
header {
    padding: 3rem 1rem 1rem;
    text-align: center;
}
.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}
.logo span { color: #10B981; }
.tagline {
    margin-top: 0.5rem;
    font-size: 1.05rem;
    color: #8BA89E;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15vh 1rem 2rem;
    width: 100%;
}

@media (max-height: 500px) {
    main { padding-top: 2vh !important; }
    header { padding: 1rem 1rem 0.5rem !important; }
}

.field { margin-bottom: 1rem; }
.field label {
    display: block;
    font-size: 0.85rem;
    color: #8BA89E;
    margin-bottom: 0.4rem;
}
.field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(30, 92, 76, 0.3);
    background: #0D2520;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.field input:focus { border-color: #10B981; }
.field input:disabled { opacity: 0.5; cursor: not-allowed; }

.btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    background: #10B981;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}
.btn:hover { background: #25B98D; }
.btn:active { opacity: 0.8; }

#code-step { display: none; }
.back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #10B981;
    font-size: 0.85rem;
    cursor: pointer;
    background: none;
    border: none;
}

footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

/* Legacy hero (APK uses legacy-hero instead of hero in wizard) */
.legacy-hero {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 38vh;
    background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(16,185,129,0.05) 0%, transparent 70%);
}

.legacy-hero-shield {
    position: relative;
    width: 88px;
    height: 88px;
    color: #ffffff;
    z-index: 2;
}
.legacy-hero-shield svg { width: 100%; height: 100%; }
.legacy-hero-shield.dimmed { color: #4A6B60; opacity: 0.4; }

.legacy-hero-rings {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.legacy-hero-rings circle { fill: none; stroke-width: 1; }
.legacy-hero-rings .ring1 { stroke: rgba(16,185,129,0.15); opacity: 0.4; }
.legacy-hero-rings .ring2 { stroke: rgba(16,185,129,0.15); opacity: 0.25; }
.legacy-hero-rings .ring3 { stroke: rgba(16,185,129,0.15); opacity: 0.12; }

/* Legacy bottom card */
.legacy-bottom-card {
    background: linear-gradient(180deg, #112E26 0%, #0E2520 100%);
    border-top: 1px solid rgba(30, 92, 76, 0.25);
    border-radius: 24px 24px 0 0;
    padding: 28px 16px 36px;
    flex-shrink: 0;
    margin: 0;
    width: 100%;
}

/* Wizard override for legacy-hero */
.wizard .legacy-hero { flex: 0 0 auto; min-height: 38vh; }

/* VpnBridge native app styles */
.vpn-active {
    background: linear-gradient(135deg, #059669, #10B981) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.vpn-connecting {
    opacity: 0.7;
    animation: vpn-pulse 1.5s infinite;
}
@keyframes vpn-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* PWA Install Banner */
.pwa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    padding-bottom: calc(14px + var(--safe-bottom, 0px));
    background: #112E26;
    border-top: 1px solid rgba(30, 92, 76, 0.3);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease-out;
}
.pwa-banner.visible {
    transform: translateY(0);
    opacity: 1;
}
.pwa-banner.hiding {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.25s ease-in, opacity 0.25s ease-in;
}

.pwa-banner__icon img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}

.pwa-banner__text {
    flex: 1;
    min-width: 0;
}
.pwa-banner__title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}
.pwa-banner__desc {
    font-size: 13px;
    color: #8BA89E;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.pwa-banner__share-icon {
    vertical-align: middle;
    color: #10B981;
    flex-shrink: 0;
}

.pwa-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.pwa-banner__btn {
    padding: 8px 18px;
    background: #10B981;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.pwa-banner__btn:active {
    background: #25B98D;
}
.pwa-banner__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #8BA89E;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s;
    flex-shrink: 0;
}
.pwa-banner__close:active {
    background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 600px) {
    .pwa-banner {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100%);
        max-width: 480px;
        border-radius: 16px;
        margin-bottom: 16px;
        border: 1px solid rgba(30, 92, 76, 0.3);
    }
    .pwa-banner.visible {
        transform: translateX(-50%) translateY(0);
    }
    .pwa-banner.hiding {
        transform: translateX(-50%) translateY(100%);
    }
}

/* #app max-width for APK */
#app {
    max-width: 480px;
    margin: 0 auto;
}

/* Card extras for APK */
.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #fff;
}

/* Safe-area padding for agreement-body in APK */
.agreement-body {
    padding: 16px 24px calc(var(--safe-bottom, 0px) + 24px);
}

/* Safe-area padding for confirm-sheet in APK */
.confirm-sheet {
    padding: 28px 24px calc(var(--safe-bottom, 0px) + 32px);
}

/* Safe-area padding for referral-sheet in APK */
.referral-sheet {
    padding: 24px 24px calc(var(--safe-bottom, 0px) + 24px);
}

/* Safe-area padding for txn-body in APK */
.txn-body {
    padding: 0 20px calc(var(--safe-bottom, 0px) + 24px);
}

/* ═══════════════════════════════════════════════════════
   NEW DESIGN — V12 ENGINE UI (2026 Redesign)
   Appended: 2026-02-23
   DO NOT EDIT ABOVE — legacy styles still in use
   ═══════════════════════════════════════════════════════ */

/* ── New CSS Variables ────────────────────────────────── */
:root {
    --brand: #00FFA3;
    --brand-dark: #10B981;
    --mech-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --smooth-flow: cubic-bezier(0.25, 1, 0.3, 1);
}

/* ── Body override for new design ─────────────────────── */
body {
    background: #020503;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* ── Utility: hide scrollbar ──────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ── Background Layers ────────────────────────────────── */
.carbon-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, #0a1f14 0%, #030805 100%);
    z-index: 0;
}

.carbon-texture {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/cOM0AAAACHRSTlMAMwBf/3//+wc0GqkAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAwSURBVDjLxY0xDQAwDAMAy0D+f64t0iE7oJ4o+t7uR1V1e+/37u7u7u7u7t7b22/fO2RkM2R/4oQAAAAASUVORK5CYII=");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

.engine-glow {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.05;
    transition: all 1.5s var(--smooth-flow);
}
[data-state="connecting"] .engine-glow {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(0.9);
}
[data-state="connected"] .engine-glow {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(1.2);
    background: radial-gradient(circle, var(--brand) 0%, transparent 60%);
}

/* ═════════════════════════════════════════════════════════
   V12 ENGINE BUTTON
   ═════════════════════════════════════════════════════════ */
.engine-btn {
    position: relative;
    width: 312px; height: 312px;
    border-radius: 50%;
    cursor: pointer; outline: none;
    transition: transform 0.6s var(--mech-spring);
    z-index: 20;
}
.engine-btn:active {
    transform: scale(0.96) rotate(-1deg);
    transition: transform 0.1s ease;
}

.bezel {
    position: absolute; inset: 0; border-radius: 50%;
    background: linear-gradient(145deg, #1f2723 0%, #0a120e 100%);
    box-shadow: 0 30px 60px rgba(0,0,0,0.9), inset 0 2px 4px rgba(255,255,255,0.05), inset 0 -4px 10px rgba(0,0,0,0.8);
    padding: 4px;
    transition: all 0.8s var(--smooth-flow);
}

.turbine {
    position: absolute; inset: 6px; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, #050a08 0deg, #0a140f 10deg, #050a08 20deg);
    box-shadow: inset 0 0 20px rgba(0,0,0,1); overflow: hidden;
}

.turbine-blade {
    position: absolute; inset: -20px;
    background: conic-gradient(from 0deg, transparent 0%, rgba(0, 255, 163, 0.8) 10%, transparent 40%, transparent 50%, rgba(0, 255, 163, 0.8) 60%, transparent 90%);
    opacity: 0;
    animation: turbine-spool 4s linear infinite;
    transition: opacity 0.8s ease;
}

.ignition-core {
    position: absolute; inset: 26px; border-radius: 50%;
    background: linear-gradient(135deg, #0a120e 0%, #030604 100%);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8), inset 0 2px 5px rgba(255,255,255,0.05);
    transition: all 0.8s var(--smooth-flow); z-index: 10;
    overflow: hidden;
}

.turbine::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: linear-gradient(145deg, var(--brand-dark) 0%, #015939 100%);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
    opacity: 0; transition: opacity 0.8s var(--smooth-flow);
}
.ignition-core::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #66ffcc 0%, var(--brand-dark) 60%, #00593a 100%);
    opacity: 0; transition: opacity 0.8s var(--smooth-flow);
}
.icon-power {
    z-index: 10;
}

@keyframes turbine-spool { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes gentle-pulse { 0%, 100% { filter: drop-shadow(0 0 4px var(--brand)); opacity: 0.8; } 50% { filter: drop-shadow(0 0 12px var(--brand)); opacity: 1; } }

/* ── [STATE: DISCONNECTED] ────────────────────────────── */
[data-state="disconnected"] .ignition-core { box-shadow: inset 0 2px 5px rgba(255,255,255,0.05); }
[data-state="disconnected"] .icon-power { color: #52525b; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); transform: scale(1); opacity: 1; transition: all 0.8s ease; }

/* ── [STATE: CONNECTING] ──────────────────────────────── */
[data-state="connecting"] .engine-btn { transform: scale(0.97); }
[data-state="connecting"] .bezel { box-shadow: 0 15px 30px rgba(0,0,0,0.9), inset 0 2px 10px rgba(0,255,163,0.15); }
[data-state="connecting"] .turbine-blade { opacity: 0.4; }
[data-state="connecting"] .ignition-core { border-color: rgba(0,255,163,0.2); box-shadow: inset 0 0 20px rgba(0,255,163,0.05); }
[data-state="connecting"] .icon-power { color: var(--brand); transform: scale(0.95); animation: gentle-pulse 1.5s ease-in-out infinite; }

/* ── [STATE: CONNECTED] ───────────────────────────────── */
[data-state="connected"] .engine-btn { transform: scale(1.02); }
[data-state="connected"] .bezel { box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 40px rgba(0,255,163,0.2), inset 0 2px 10px rgba(0,255,163,0.3); }
[data-state="connected"] .turbine-blade { opacity: 0; }
[data-state="connected"] .turbine::after,
[data-state="connected"] .ignition-core::before { opacity: 1; }
[data-state="connected"] .ignition-core { border-color: rgba(255,255,255,0.3); box-shadow: inset 0 4px 15px rgba(255,255,255,0.3), 0 0 40px rgba(0,255,163,0.5); }
[data-state="connected"] .icon-power { opacity: 1; transform: scale(1.05); color: #ffffff; filter: drop-shadow(0 0 12px rgba(255,255,255,0.6)); transition: all 0.8s ease; }

/* ═════════════════════════════════════════════════════════
   INTERFACE CARDS & PILLS
   ═════════════════════════════════════════════════════════ */
.session-pill {
    opacity: 0; transform: translateY(15px);
    pointer-events: none;
    transition: all 0.6s var(--smooth-flow);
}
[data-state="connected"] .session-pill {
    opacity: 1; transform: translateY(0);
    pointer-events: auto;
}

.luxury-card {
    background: #0d120f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.2s var(--smooth-flow), border-color 0.3s;
    position: relative;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translateZ(0);
}
.luxury-card:active { transform: scale(0.98); background: #111814; }

/* ═════════════════════════════════════════════════════════
   TARIFF MODAL — STEPPER & CARDS
   ═════════════════════════════════════════════════════════ */
.stepper-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.stepper-btn:active {
    background: rgba(255,255,255,0.08);
    transform: scale(0.9);
}

/* ── Hero tariff card (1 Year) ────────────────────────── */
.tariff-hero {
    background: #0d120f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    transition: all 0.3s var(--mech-spring);
    position: relative;
}
.tariff-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(0,255,163,0.1) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s;
    border-radius: 20px;
}
.tariff-hero.active-tariff {
    background: linear-gradient(135deg, rgba(0,255,163,0.15) 0%, rgba(0,0,0,0) 100%);
    border-color: var(--brand);
    box-shadow: 0 0 25px rgba(0,255,163,0.15), inset 0 0 10px rgba(0,255,163,0.05);
}
.tariff-hero.active-tariff::before { opacity: 1; }

/* ── Badge "Популярный" ──────────────────────────────── */
.hero-badge { transition: all 0.3s var(--mech-spring); }
.badge-icon { transition: all 0.3s var(--mech-spring); }

.tariff-hero:not(.active-tariff) .hero-badge {
    background: #151a17;
    color: #71717a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.05);
}
.tariff-hero:not(.active-tariff) .badge-icon {
    fill: transparent;
    color: #71717a;
}

/* ── Micro tariff cards (1, 3, 6 months) ─────────────── */
.tariff-micro {
    background: #0a0e0c;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    transition: all 0.3s var(--mech-spring);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
}
.tariff-micro:active { transform: scale(0.95); }
.tariff-micro.active-tariff {
    background: #0d1612;
    border-color: var(--brand);
    box-shadow: 0 4px 15px rgba(0,255,163,0.1);
}

.tariff-btn .t-period { color: #a1a1aa; transition: color 0.3s; }
.tariff-btn .t-price { color: #ffffff; transition: color 0.3s; }
.tariff-btn.active-tariff .t-period { color: var(--brand); }
.tariff-btn.active-tariff .t-price { color: var(--brand); text-shadow: 0 0 8px rgba(0,255,163,0.4); }

@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

/* ═════════════════════════════════════════════════════════
   PROFILE — BENTO DESIGN
   ═════════════════════════════════════════════════════════ */
.bento-panel {
    background: var(--panel-bg, rgba(13, 18, 15, 0.95));
    border: 1px solid var(--panel-border, rgba(255, 255, 255, 0.05));
    border-radius: 24px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03), 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.interactive-panel {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.interactive-panel:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.premium-glow {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 255, 163, 0.02) 100%);
    border: 1px solid rgba(0, 255, 163, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 163, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.menu-item {
    transition: background-color 0.2s ease;
}
.menu-item:active {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ── Tech ring (avatar) ───────────────────────────────── */
.tech-ring {
    background: conic-gradient(from 0deg, transparent 0%, rgba(0, 255, 163, 0.5) 15%, transparent 30%, transparent 50%, rgba(0, 255, 163, 0.5) 65%, transparent 80%);
    mask-image: radial-gradient(closest-side, transparent 75%, black 78%);
    -webkit-mask-image: radial-gradient(closest-side, transparent 75%, black 78%);
}

/* ── Stagger animation delays ─────────────────────────── */
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.15s; opacity: 0; }
.stagger-3 { animation-delay: 0.2s; opacity: 0; }
.stagger-4 { animation-delay: 0.25s; opacity: 0; }
.stagger-5 { animation-delay: 0.3s; opacity: 0; }

/* ═════════════════════════════════════════════════════════
   FLOATING NAV — Safe Area Adaptation
   ═════════════════════════════════════════════════════════ */
.floating-nav {
    bottom: calc(var(--safe-bottom, 0px) + 8px);
}
.floating-sheet {
    bottom: calc(var(--safe-bottom, 0px) + 8px);
}

/* ═════════════════════════════════════════════════════════
   P2: CSS-only Tab Switching
   ═════════════════════════════════════════════════════════ */

/* === Base nav button (inactive) === */
.nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 100%;
    border-radius: 22px;
    color: rgb(113 113 122);
    transition: all 500ms ease;
    overflow: hidden;
    padding: 0;
    border: 1px solid transparent;
    background: transparent;
}
.nav-btn:hover {
    color: white;
    background: rgba(255,255,255, 0.04);
}

/* === Active nav button === */
.nav-btn--active {
    gap: 12px;
    padding: 0 24px;
    background: linear-gradient(to bottom, #0a1510, #020503);
    border-color: rgba(0,255,163, 0.2);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.1),
        0 8px 20px -4px rgba(0,255,163,0.3);
    color: white;
}
.nav-btn--active:hover {
    background: linear-gradient(to bottom, #0a1510, #020503);
}

/* === Glow line === */
.nav-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 2px;
    background: var(--brand);
    box-shadow: 0 0 15px var(--brand);
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
}
.nav-btn--active .nav-glow {
    opacity: 1;
}

/* === Hover overlay === */
.nav-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,255,163, 0.05);
    opacity: 0;
    transition: opacity 500ms ease;
    pointer-events: none;
}
.nav-btn--active:hover .nav-hover-overlay {
    opacity: 1;
}

/* === Nav icon === */
.nav-icon {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    transition: transform 500ms var(--mech-spring),
                color 400ms ease,
                filter 400ms ease;
}
.nav-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    transition: width 300ms ease, height 300ms ease, stroke-width 300ms ease;
}
.nav-btn:hover .nav-icon {
    transform: scale(1.1);
}
.nav-btn:active .nav-icon {
    transform: scale(0.95);
}

/* Active icon: smaller, bolder, colored */
.nav-btn--active .nav-icon {
    color: var(--brand);
    filter: drop-shadow(0 0 10px var(--brand));
}
.nav-btn--active .nav-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}
.nav-btn--active:active .nav-icon {
    transform: scale(0.95);
}
.nav-btn--active:hover .nav-icon {
    transform: none;
}

/* === Label (hidden by default, shown in active) === */
.nav-label {
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 400ms ease, opacity 300ms ease;
}
.nav-btn--active .nav-label {
    max-width: 120px;
    opacity: 1;
}

/* === News badge === */
.nav-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 500ms ease, opacity 300ms ease;
}
.nav-btn:hover .nav-badge {
    transform: scale(1.1);
}
.nav-btn--active .nav-badge {
    opacity: 0;
    pointer-events: none;
}
.nav-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--brand);
    animation: pulse 2s infinite;
}

/* P3 fix: Tailwind CLI can't compile from-[var(--brand)]/[0.08] and border-[var(--brand)]/30 */
.from-\[var\(--brand\)\]\/\[0\.08\] {
    --tw-gradient-from: rgba(0, 255, 163, 0.08) var(--tw-gradient-from-position);
    --tw-gradient-to: rgba(0, 255, 163, 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.border-\[var\(--brand\)\]\/30 {
    border-color: rgba(0, 255, 163, 0.3);
}
