:root {
    --vpn-bg: #0a0a0a;
    --vpn-surface: #1a1a1a;
    --vpn-primary: #75c9a8;
    --vpn-primary-bright: #c5f2e0;
    --vpn-primary-deep: #4a9d7e;
    --vpn-secondary: #5fb896;
    --vpn-accent: #f2751a;
    --neutral-400: #a3a3a3;
    --neutral-700: #404040;
    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;
    --warning-200: #fde68a;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --error-200: #fecaca;
    --error-400: #f87171;
    --error-500: #ef4444;
    --banned: #ff0040;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }
    
    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; font-family: var(--font); background: #050508; color: #fff; }
    
    @keyframes usage-pulse {
        0% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.005); opacity: 0.9; }
        100% { transform: scale(1); opacity: 1; }
    }
    
    .usage-updating {
        animation: usage-pulse 0.3s ease-in-out;
    }
    
    .realtime-indicator {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        font-size: 12px;
        color: var(--success-400);
        opacity: 0.8;
    }
    
    .realtime-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--success-400);
        animation: realtime-blink 2s infinite;
    }
    
    @keyframes realtime-blink {
        0%, 50% { opacity: 1; }
        50.1%, 100% { opacity: 0.3; }
    }
    
    .realtime-text {
        font-weight: 500;
        letter-spacing: 0.025em;
    }
    
    .hidden { display: none !important; }
    
    .page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(117, 201, 168, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(95, 184, 150, 0.12), transparent 50%),
    radial-gradient(ellipse 55% 45% at 0% 70%, rgba(242, 117, 26, 0.08), transparent 45%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(26, 26, 26, 0.9), transparent 50%),
    linear-gradient(165deg, #0c0c10 0%, #060608 38%, #0a0a0e 72%, #08080b 100%);
    }
    
    .particles-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.45;
    mix-blend-mode: screen;
    }
    body.state-banned .particles-canvas { opacity: 0.18; mix-blend-mode: normal; }
    body.state-main .particles-canvas { opacity: 0.5; }
    body.state-loading .particles-canvas { opacity: 0.4; }
    
    .screen { min-height: 100vh; position: relative; z-index: 2; }
    .screen-main { padding-bottom: 2rem; }
    
    .screen-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    }
    .loading-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(22, 22, 26, 0.88), rgba(6, 6, 10, 0.92));
    opacity: 0.92;
    z-index: 1;
    }
    .loading-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1rem;
    min-height: 40vh;
    }
    .loading-mascot {
    width: min(44vw, 168px);
    height: auto;
    max-height: min(44vw, 168px);
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(117, 201, 168, 0.25));
    }
    .loading-text { color: #fff; font-weight: 500; font-size: 1rem; }
    @keyframes spin { to { transform: rotate(360deg); } }

    .container--dashboard {
    position: relative;
    }
    
    .screen-banned {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    overflow: hidden;
    min-height: 100vh;
    }
    .screen-banned .particles-canvas { opacity: 0.2; }
    .banned-overlay-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, rgba(255,0,64,0.2), rgba(0,0,0,0.9), rgba(0,0,0,0.8));
    z-index: 1;
    }
    .banned-overlay-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    z-index: 2;
    }
    .banned-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
    }
    .banned-blob {
    position: absolute;
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background: rgba(255,0,64,0.1);
    filter: blur(48px);
    animation: blob-pulse 4s ease-in-out infinite;
    }
    .banned-blob-a { top: -25%; right: -25%; }
    .banned-blob-b { bottom: -25%; left: -25%; animation-duration: 5s; animation-delay: 1s; }
    @keyframes blob-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.85; }
    }
    .banned-wrap {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 42rem;
    margin: 0 1rem;
    animation: fade-in 0.5s ease;
    }
    @keyframes fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
    }
    .banned-plate-top, .banned-plate-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--banned), transparent);
    border-radius: 3px;
    }
    .banned-plate-top { top: -12px; }
    .banned-plate-bottom { bottom: -12px; }
    .banned-card {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(24px);
    border-radius: 1rem;
    border: 1px solid rgba(255,0,64,0.2);
    box-shadow: 0 0 50px -12px rgba(255,0,64,0.3);
    overflow: hidden;
    position: relative;
    }
    .banned-header {
    background: linear-gradient(90deg, #000, rgba(255,0,64,0.1), #000);
    padding: 3rem 2rem;
    }
    .banned-intro { text-align: center; }
    .banned-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    background: rgba(255,0,64,0.1);
    border: 1px solid rgba(255,0,64,0.2);
    color: var(--banned);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    }
    .banned-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--banned);
    animation: pulse-dot 2s ease-in-out infinite;
    }
    @keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
    }
    .banned-title { font-size: 1.875rem; font-weight: 700; margin: 0 0 0.5rem; color: #fff; }
    .banned-sub { color: var(--neutral-400); font-size: 0.875rem; margin: 0; }
    .banned-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem;
    }
    @media (min-width: 768px) {
    .banned-grid { grid-template-columns: 1fr 1fr; }
    }
    .banned-info-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom right, rgba(0,0,0,0.6), rgba(255,0,64,0.05));
    border: 1px solid rgba(255,0,64,0.1);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    }
    .banned-info-card:hover {
    border-color: rgba(255,0,64,0.3);
    box-shadow: 0 0 30px -12px rgba(255,0,64,0.3);
    transform: scale(1.02);
    }
    .banned-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background: linear-gradient(to bottom right, rgba(255,0,64,0.1), rgba(255,0,64,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--banned);
    }
    .banned-info-h { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 500; color: #fff; }
    .banned-info-p { margin: 0; font-size: 0.875rem; color: var(--neutral-400); line-height: 1.6; }
    .banned-actions { padding: 0 2rem 2rem; display: flex; flex-direction: column; gap: 1rem; }
    .btn-banned-primary {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--banned);
    color: #fff;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 0 30px -12px rgba(255,0,64,0.5);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    }
    .btn-banned-primary:hover {
    background: rgba(255,0,64,0.9);
    transform: scale(1.02);
    box-shadow: 0 0 30px -6px rgba(255,0,64,0.5);
    }
    .btn-banned-outline {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,0,64,0.2);
    background: transparent;
    color: var(--banned);
    font-family: var(--font);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    }
    .btn-banned-outline:hover {
    border-color: rgba(255,0,64,0.4);
    background: rgba(255,0,64,0.05);
    transform: scale(1.02);
    }
    .banned-footer {
    border-top: 1px solid rgba(255,0,64,0.1);
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #000, rgba(255,0,64,0.05), #000);
    }
    .banned-track {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255,0,64,0.05);
    border: 1px solid rgba(255,0,64,0.1);
    color: var(--banned);
    font-size: 0.875rem;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    }
    .banned-footer { display: flex; justify-content: center; }
    
    .screen-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--vpn-bg);
    }
    .error-inner { text-align: center; }
    .error-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; color: #fff; }
    .btn-primary {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--neutral-700);
    background: var(--vpn-surface);
    color: #fff;
    font-family: var(--font);
    cursor: pointer;
    }
    .btn-primary:hover { background: #262626; }
    
    .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
    }
    .grid-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    }
    @media (min-width: 1024px) {
    .grid-main { grid-template-columns: 1fr 2fr; }
    }
    .col-left { display: flex; flex-direction: column; }
.dashboard-top-row {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: nowrap;
gap: 0.75rem;
margin-bottom: 0.45rem;
direction: ltr;
}
    .usage-overline {
    display: flex;
    align-items: center;
    gap: 0.45rem;
margin: 0;
    padding: 0 0.125rem;
    border: none;
    background: none;
    box-shadow: none;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.25;
    }
    .usage-overline-cat {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    }
    .usage-overline-vpn {
    font-weight: 700;
    color: rgba(197, 242, 224, 0.95);
    }
.top-logout-btn {
display: none;
padding: 0.35rem 0.7rem;
min-height: 34px;
border-radius: 0.6rem;
font-size: 0.75rem;
color: #e5faf2;
border-color: rgba(117, 201, 168, 0.5);
background: rgba(12, 12, 18, 0.45);
white-space: nowrap;
}
body.layout-mobile .top-logout-btn,
body.layout-mobile #btn-top-logout {
display: inline-flex !important;
}
body.layout-mobile .guide-logout-btn,
body.layout-mobile #btn-guide-logout {
display: none !important;
}
body.layout-desktop .top-logout-btn,
body.layout-desktop #btn-top-logout {
display: none !important;
}
body.layout-desktop .guide-logout-btn,
body.layout-desktop #btn-guide-logout {
display: inline-flex !important;
}
@media (max-width: 767.98px) {
.dashboard-top-row {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: nowrap;
}
.top-logout-btn,
#btn-top-logout {
display: inline-flex !important;
}
.guide-logout-btn,
#btn-guide-logout {
display: none !important;
}
}
@media (min-width: 768px) {
.top-logout-btn,
#btn-top-logout {
display: none !important;
}
.guide-logout-btn,
#btn-guide-logout {
display: inline-flex !important;
}
}
    @media (min-width: 640px) {
    .usage-overline {
    font-size: 0.875rem;
    gap: 0.5rem;
    }
    .usage-overline-cat {
    width: 2rem;
    height: 2rem;
    }
.dashboard-top-row { margin-bottom: 0.55rem; }
}
    .card-mt { margin-top: 1rem; }
    @media (min-width: 640px) { .card-mt { margin-top: 1.5rem; } }
    
    .card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--neutral-700);
    border-radius: 0.75rem;
    overflow: hidden;
    }
    .card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem 0.5rem;
    }
.card-head-with-action .guide-logout-btn {
margin-inline-start: auto;
}
.guide-logout-btn {
padding: 0.35rem 0.7rem;
min-height: 34px;
border-radius: 0.6rem;
font-size: 0.75rem;
display: none;
}
    @media (min-width: 640px) {
    .card-head { padding: 1rem 1.5rem 0.5rem; gap: 0.75rem; }
.guide-logout-btn {
font-size: 0.8rem;
}
    }
    .card-title { margin: 0; font-size: 1rem; font-weight: 600; }
    @media (min-width: 640px) { .card-title { font-size: 1.125rem; } }
    .icon-box {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    }
    @media (min-width: 640px) {
    .icon-box { width: 36px; height: 36px; }
    }
    .icon-box-grad {
    background: linear-gradient(135deg, var(--vpn-primary-bright) 0%, var(--vpn-primary) 42%, var(--vpn-secondary) 100%);
    color: var(--vpn-bg);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    }
    .icon-box-wifi {
    background: linear-gradient(to bottom right, var(--vpn-secondary), var(--vpn-primary));
    color: var(--vpn-bg);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    }
    .card-body { padding: 1rem 1.25rem 1.5rem; position: relative; }
    @media (min-width: 640px) { .card-body { padding: 1rem 1.5rem 1.5rem; } }
    .card-body-usage { padding-top: 0.5rem; }
    .usage-glow {
    position: absolute;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(117, 201, 168, 0.1);
    filter: blur(48px);
    pointer-events: none;
    }
    .usage-glow-r { right: -3rem; top: -2.5rem; }
    .usage-glow-l { left: -3rem; bottom: -2.5rem; }
    .usage-glow.sm { width: 96px; height: 96px; }
    .usage-ring-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0.5rem auto 0;
    }
    @media (min-width: 640px) {
    .usage-ring-wrap { width: 220px; height: 220px; }
    }
    @media (min-width: 768px) {
    .usage-ring-wrap { width: 192px; height: 192px; }
    }
    .usage-ring-glow {
    position: absolute;
    inset: 0;
    background: rgba(117, 201, 168, 0.06);
    border-radius: 50%;
    filter: blur(24px);
    }
    .usage-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    }
    .usage-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    }
    .usage-pct { font-size: 1.75rem; font-weight: 700; }
    @media (min-width: 640px) { .usage-pct { font-size: 2.25rem; } }
    @media (min-width: 768px) { .usage-pct { font-size: 2.5rem; } }
    .usage-label { font-size: 0.75rem; color: var(--neutral-400); margin-top: 0.25rem; }
    @media (min-width: 640px) { .usage-label { font-size: 0.875rem; } }
    .usage-pct.warn { color: #fb923c; }
    .usage-pct.danger { color: #f87171; }
    .usage-rows { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
    @media (min-width: 640px) { .usage-rows { gap: 1rem; } }
    .usage-row { display: flex; justify-content: space-between; align-items: center; }
    .muted { color: var(--neutral-400); font-size: 0.875rem; }
    .strong { font-size: 0.875rem; font-weight: 500; color: #fff; }
    .strong.warn { color: #fb923c; }
    .strong.danger { color: #f87171; }
    .strong.ok { color: #4ade80; }
    
    .btn-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    }
    @media (min-width: 640px) { .btn-grid-2 { gap: 1rem; } }
    .btn-grad, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    border: none;
    position: relative;
    overflow: hidden;
    }
    .btn-grad {
    background: linear-gradient(90deg, var(--vpn-primary), var(--vpn-secondary));
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    }
    .btn-grad:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 12px 24px -4px rgba(0,0,0,0.4);
    }
    .btn-grad:disabled { opacity: 0.7; cursor: not-allowed; }
    .btn-outline {
    background: transparent;
    border: 2px solid rgba(117, 201, 168, 0.35);
    color: var(--vpn-secondary);
    backdrop-filter: blur(4px);
    }
    .btn-outline:hover:not(:disabled) {
    background: rgba(117, 201, 168, 0.12);
    border-color: rgba(117, 201, 168, 0.55);
    transform: scale(1.05);
    }
    .btn-outline:disabled { opacity: 0.7; cursor: not-allowed; }
    #btn-regenerate.regenerating { pointer-events: none; }
    .regen-spin-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(117, 201, 168, 0.08);
    border-radius: 0.75rem;
    }
    .regen-spin {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(95, 184, 150, 0.4);
    border-top-color: var(--vpn-secondary);
    animation: spin 0.7s linear infinite;
    }
    #btn-regenerate { position: relative; min-height: 44px; }
    .config-regenerate-btn { width: 100%; margin-top: 10px; }
    .config-qr-wrap {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    }
    .config-qr-title {
    font-size: 13px;
    color: var(--neutral-400);
    }
.config-buttons-under-qr {
margin-top: 24px;
}
    
    .card-body-guide { padding-top: 0.5rem; }
    .guide-blob {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(117, 201, 168, 0.06);
    filter: blur(48px);
    pointer-events: none;
    }
    .guide-blob-t { right: -4rem; top: 0; }
    .guide-blob-b { left: -4rem; bottom: 0; }
    .guide-intro {
    position: relative;
    background: linear-gradient(to left, rgba(117, 201, 168, 0.1), transparent);
    border: 1px solid rgba(117, 201, 168, 0.22);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    }
    @media (min-width: 640px) {
    .guide-intro { padding: 1.5rem; border-radius: 1rem; margin-bottom: 1.25rem; }
    }
    .guide-pulse-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--vpn-primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    }
    .guide-h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; color: #fff; }
    @media (min-width: 640px) { .guide-h3 { font-size: 1.125rem; margin-bottom: 0.75rem; } }
    .guide-p { margin: 0; font-size: 0.875rem; color: #d4d4d4; line-height: 1.6; }
    .guide-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid;
    margin-bottom: 1rem;
    }
    .guide-alert.warn {
    background: linear-gradient(to left, rgba(245, 158, 11, 0.1), rgba(242, 117, 26, 0.1));
    border-color: rgba(245, 158, 11, 0.2);
    }
    .guide-alert.danger {
    background: linear-gradient(to left, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: rgba(239, 68, 68, 0.2);
    }
    .guide-alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    }
    .guide-alert.warn .guide-alert-icon { background: rgba(245, 158, 11, 0.2); color: var(--warning-500); }
    .guide-alert.danger .guide-alert-icon { background: rgba(239, 68, 68, 0.2); color: var(--error-500); }
    .guide-alert-title { margin: 0 0 0.25rem; font-size: 0.875rem; font-weight: 500; }
    @media (min-width: 640px) { .guide-alert-title { font-size: 1rem; } }
    .guide-alert.warn .guide-alert-title { color: var(--warning-400); }
    .guide-alert.danger .guide-alert-title { color: var(--error-400); }
    .guide-alert-text { margin: 0; font-size: 0.75rem; line-height: 1.5; }
    @media (min-width: 640px) { .guide-alert-text { font-size: 0.875rem; } }
    .guide-alert.warn .guide-alert-text { color: var(--warning-200); }
    .guide-alert.danger .guide-alert-text { color: var(--error-200); }
    
    .dl-section {
    margin-top: 0.25rem;
    padding: 1rem 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(117, 201, 168, 0.22);
    background: linear-gradient(160deg, rgba(26, 26, 26, 0.75) 0%, rgba(14, 14, 18, 0.9) 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 12px 40px -20px rgba(0, 0, 0, 0.65);
    }
    @media (min-width: 640px) {
    .dl-section { padding: 1.25rem 1.25rem 1.5rem; }
    }
    .dl-section-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(64, 64, 64, 0.6);
    text-align: center;
    }
    .dl-section-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgba(197, 242, 224, 0.14), rgba(95, 184, 150, 0.1));
    border: 1px solid rgba(117, 201, 168, 0.28);
    color: var(--vpn-primary);
    flex-shrink: 0;
    }
    .dl-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fafafa;
    letter-spacing: 0.01em;
    line-height: 1.35;
    max-width: 20rem;
    }
    @media (min-width: 640px) { .dl-section-title { font-size: 1.05rem; max-width: none; } }
    @media (min-width: 768px) { .dl-section-title { font-size: 1.1rem; } }
    .dl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: stretch;
    }
    @media (min-width: 640px) { .dl-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
    @media (min-width: 1024px) { .dl-grid { grid-template-columns: 1fr 1fr 1fr; } }
    .dl-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(34, 34, 38, 0.65) 0%, rgba(18, 18, 22, 0.85) 100%);
    border: 1px solid rgba(64, 64, 64, 0.75);
    border-radius: 0.85rem;
    padding: 1rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    }
    @media (min-width: 640px) { .dl-card { padding: 1.15rem; } }
    .dl-card:hover {
    border-color: rgba(117, 201, 168, 0.38);
    box-shadow: 0 8px 28px -12px rgba(117, 201, 168, 0.14);
    }
    .dl-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    flex: 1;
    min-height: 0;
    }
    .dl-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    transition: transform 0.3s;
    }
    .dl-card:hover .dl-icon { transform: scale(1.05); }
    .dl-icon-win {
    background: linear-gradient(135deg, #f2751a 0%, #f5933a 100%);
    box-shadow: 0 10px 15px -3px rgba(242, 117, 26, 0.2);
    }
    .dl-icon-and {
    background: linear-gradient(to bottom right, var(--success-500), var(--success-600));
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.2);
    }
    .dl-icon-ios {
    background: linear-gradient(to bottom right, #737373, #525252);
    box-shadow: 0 10px 15px -3px rgba(115, 115, 115, 0.2);
    }
    .dl-meta { flex: 1; min-width: 0; }
    .dl-title-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; flex-wrap: wrap; }
    .dl-title { margin: 0; font-size: 1rem; font-weight: 600; color: #fff; }
    .badge-free {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-400);
    }
    .dl-desc { margin: 0; font-size: 0.875rem; color: var(--neutral-400); }
    a.btn-dl {
    text-decoration: none;
    color: #fff;
    }
    .btn-dl {
    width: 100%;
    margin-top: auto;
    padding: 0.55rem 0.85rem;
    min-height: 42px;
    border: none;
    border-radius: 0.55rem;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-shrink: 0;
    box-sizing: border-box;
    }
    .btn-dl svg {
    flex-shrink: 0;
    opacity: 0.95;
    }
    .btn-dl-win {
    background: linear-gradient(135deg, #e86812, #f5933a);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
    .btn-dl-win:hover { filter: brightness(1.06); }
    .btn-dl-and {
    background: linear-gradient(180deg, var(--success-600), #0f7a32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    .btn-dl-and:hover { filter: brightness(1.05); }
    .btn-dl-ios {
    background: linear-gradient(180deg, #5c5c5c, #3d3d42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    .btn-dl-ios:hover { filter: brightness(1.06); }
    
    .help-box {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--neutral-700);
    border-radius: 0.75rem;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(8px);
    }
    @media (min-width: 640px) { .help-box { padding: 1.25rem; margin-top: 1.25rem; } }
    .help-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
    .help-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: rgba(117, 201, 168, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vpn-primary);
    flex-shrink: 0;
    }
    .help-h4 { margin: 0; font-size: 0.875rem; font-weight: 600; color: #fff; }
    @media (min-width: 768px) { .help-h4 { font-size: 1rem; } }
    .help-p { margin: 0 0 0.75rem; font-size: 0.75rem; color: #d4d4d4; line-height: 1.6; }
    @media (min-width: 640px) { .help-p { font-size: 0.875rem; margin-bottom: 1rem; } }
    .btn-help {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(117, 201, 168, 0.28);
    border-radius: 0.75rem;
    background: transparent;
    color: var(--vpn-primary);
    font-family: var(--font);
    font-size: 0.75rem;
    cursor: pointer;
    }
    @media (min-width: 640px) { .btn-help { font-size: 0.875rem; } }
    .btn-help:hover { background: rgba(117, 201, 168, 0.1); }


    .about-frame-body {
    padding-top: 0.35rem;
    }
    .about-frame-body p {
    font-size: 0.8125rem;
    }
    @media (min-width: 640px) {
    .about-frame-body p {
    font-size: 0.875rem;
    }
    }
    .help-box--compact {
    margin-top: 0.9rem;
    padding: 0.85rem;
    }
    .help-box--compact .help-h4 {
    font-size: 0.8rem;
    }
    .help-box--compact .help-p {
    font-size: 0.72rem;
    margin-bottom: 0;
    }
.about-emoji {
    width: 22px;
    height: 22px;
    vertical-align: text-bottom;
    margin-right: 0.25rem;
}

    .modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    }
    .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    }
    .modal-panel--qr {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 17.5rem;
    padding: 0;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(64, 64, 64, 0.85);
    background: linear-gradient(180deg, rgba(34, 34, 38, 0.95) 0%, rgba(12, 12, 16, 0.98) 100%);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(117, 201, 168, 0.1);
    }
    .modal-qr-header {
    text-align: center;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(55, 55, 60, 0.9);
    background: linear-gradient(180deg, rgba(117, 201, 168, 0.08) 0%, transparent 100%);
    }
    .modal-qr-header-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.4rem;
    border-radius: 0.6rem;
    background: rgba(117, 201, 168, 0.12);
    border: 1px solid rgba(117, 201, 168, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vpn-primary);
    }
    .modal-qr-header-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    }
    .modal-qr-header-desc {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
    }
    .modal-qr-body {
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    }
    .qr-compact-card {
    width: 100%;
    max-width: 11.5rem;
    margin: 0 auto;
    padding: 0.5rem 0.5rem 0.55rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(64, 64, 64, 0.8);
    background: linear-gradient(165deg, #1a1a1f 0%, #0e0e12 100%);
    }
    .qr-compact-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vpn-secondary);
    margin-bottom: 0.35rem;
    opacity: 0.9;
    }
    .qr-white--compact {
    display: block;
    margin: 0 auto;
    padding: 0.35rem;
    border-radius: 0.45rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }
    .qr-white--compact canvas {
    display: block;
    width: 192px !important;
    height: 192px !important;
    }
    .qr-hint-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.65rem 0 0;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #a1a1aa;
    max-width: 13rem;
    }
    .qr-hint-compact svg {
    flex-shrink: 0;
    color: var(--vpn-primary);
    opacity: 0.85;
    }
    .btn-modal-close {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.45rem 1rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(64, 64, 64, 0.9);
    background: rgba(30, 30, 34, 0.8);
    color: #e4e4e7;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    }
    .btn-modal-close:hover {
    background: rgba(45, 45, 52, 0.95);
    border-color: rgba(117, 201, 168, 0.38);
    color: #fff;
    }
    
    .site-footer-minimal {
    position: fixed;
    left: 50%;
    bottom: max(0.6rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 120;
    text-align: center;
    direction: ltr;
    unicode-bidi: isolate;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0.38rem;
    flex-wrap: nowrap;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(12, 12, 18, 0.74), rgba(22, 22, 30, 0.45));
    border: 1px solid rgba(117, 201, 168, 0.24);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    }
    .site-footer-minimal .footer-author-link {
    color: #e5faf2;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
    }
    .site-footer-minimal .footer-author-link:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(117, 201, 168, 0.55);
    transform: translateY(-1px);
    }
    .site-footer-minimal .footer-made-with {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    }
    .site-footer-minimal .footer-made-with img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    }

    .notify-host {
    position: fixed;
    top: max(1.25rem, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    width: min(24rem, calc(100vw - 1.5rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    pointer-events: none;
    }
    .notify {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 38%,
    rgba(117, 201, 168, 0.08) 100%
    );
    backdrop-filter: blur(28px) saturate(1.5);
    -webkit-backdrop-filter: blur(28px) saturate(1.5);
    box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(117, 201, 168, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
    opacity: 0;
    transform: translateY(-0.75rem) scale(0.97);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .notify-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    }
    .notify-out {
    opacity: 0;
    transform: translateY(-0.5rem) scale(0.98);
    }
    .notify-rail {
    width: 4px;
    flex-shrink: 0;
    }
    .notify--success .notify-rail {
    background: linear-gradient(180deg, var(--vpn-primary), var(--vpn-secondary));
    }
    .notify--error .notify-rail {
    background: linear-gradient(180deg, rgba(252, 165, 165, 0.95), rgba(220, 38, 38, 0.85));
    }
    .notify--info .notify-rail { background: linear-gradient(180deg, #a3a3a3, #737373); }
    .notify-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.5rem 0.85rem 0.75rem;
    min-width: 0;
    }
    .notify-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    margin-top: 0.05rem;
    }
    .notify--success .notify-ico {
    background: rgba(117, 201, 168, 0.16);
    color: var(--vpn-primary);
    border: 1px solid rgba(117, 201, 168, 0.2);
    }
    .notify--error .notify-ico {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    }
    .notify--info .notify-ico {
    background: rgba(163, 163, 163, 0.12);
    color: #d4d4d4;
    }
    .notify-col { min-width: 0; flex: 1; text-align: start; }
    .notify-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
    margin-bottom: 0.15rem;
    }
    .notify--success .notify-title { color: var(--vpn-primary); }
    .notify--error .notify-title { color: #fca5a5; }
    .notify--info .notify-title { color: #a3a3a3; }
    .notify-msg {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #f4f4f5;
    word-break: break-word;
    }
    .notify-actions {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    }
    .notify-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.9rem;
    border-radius: 0.55rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: #0a0a0e;
    background: linear-gradient(135deg, var(--vpn-primary-bright), var(--vpn-primary));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(117, 201, 168, 0.25);
    transition: filter 0.15s ease, transform 0.15s ease;
    }
    .notify-link:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    }
    .notify--error .notify-link {
    color: #fff;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.95), rgba(220, 38, 38, 0.9));
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    }
    .notify-close {
    flex-shrink: 0;
    align-self: flex-start;
    width: 2rem;
    height: 2rem;
    margin: 0.35rem 0.25rem 0 0;
    border: none;
    border-radius: 0.4rem;
    background: transparent;
    color: #71717a;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    }
    .notify-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    }

    body.terms-dialog-open {
    overflow: hidden;
    }

    .terms-dialog {
    position: fixed;
    inset: 0;
    z-index: 550;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    }
    .terms-dialog.hidden {
    display: none !important;
    }
    .terms-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    }
    .terms-dialog__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    max-height: min(88vh, 36rem);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid rgba(117, 201, 168, 0.35);
    background: linear-gradient(165deg, rgba(26, 26, 30, 0.97) 0%, rgba(10, 10, 14, 0.98) 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    }
    .terms-dialog__body {
    padding: 1.1rem 1.25rem 1rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #e4e4e7;
    text-align: right;
    }
    .terms-dialog__body.markdown-body h1 {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fafafa;
    line-height: 1.35;
    }
    .terms-dialog__body.markdown-body h2 {
    margin: 1rem 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--vpn-primary-bright);
    }
    .terms-dialog__body.markdown-body p {
    margin: 0 0 0.75rem;
    }
    .terms-dialog__body.markdown-body p:last-child {
    margin-bottom: 0;
    }
    .terms-dialog__body.markdown-body strong {
    font-weight: 700;
    color: #f4f4f5;
    }
    .terms-dialog__body.markdown-body hr {
    border: none;
    border-top: 1px solid rgba(64, 64, 64, 0.75);
    margin: 0.85rem 0;
    }
    .terms-dialog__body.markdown-body blockquote {
    margin: 0.5rem 0 0;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    background: rgba(117, 201, 168, 0.08);
    border-right: 3px solid rgba(117, 201, 168, 0.45);
    color: #d4d4d8;
    font-size: 0.8125rem;
    }
    .terms-dialog__body.markdown-body ol.terms-md-ol {
    margin: 0 0 0.5rem;
    padding: 0 1.25rem 0 0;
    list-style: decimal;
    }
    .terms-dialog__body.markdown-body ul.terms-md-ul {
    margin: 0;
    padding: 0 1.1rem 0 0;
    list-style: disc;
    }
    .terms-dialog__body.markdown-body li {
    margin-bottom: 0.55rem;
    }
    .terms-dialog__body.markdown-body li:last-child {
    margin-bottom: 0;
    }
    .terms-dialog__actions {
    padding: 0.85rem 1.25rem 1.1rem;
    border-top: 1px solid rgba(64, 64, 64, 0.65);
    flex-shrink: 0;
    }
    .terms-dialog__accept {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    border: none;
    }
    .terms-dialog__accept:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    }
