:root {
    --bg: #0a0e17;
    --bg-card: #111827;
    --bg-elevated: #1a2332;
    --border: #243044;
    --text: #e8edf5;
    --text-muted: #8b9cb3;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

/* Custom scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #0d1320;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: #0d1320;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6 0%, #22d3ee 100%);
    border-radius: 10px;
    border: 2px solid #0d1320;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #67e8f9 100%);
}

*::-webkit-scrollbar-corner {
    background: #0d1320;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4,
.logo-text,
.section-title,
.page-header h1,
.pricing-price,
.hero h1 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease,
                backdrop-filter 0.35s ease;
}

/* Главная: шапка между hero и «Почему FastVPN», при скролле липнет к верху */
.is-home .site-header--dock {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
}

.is-home .site-header--dock.header-scrolled {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.is-home .hero-full {
    margin-bottom: 0;
}

.is-home .main-home > .section.features {
    padding-top: 3rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    color: var(--accent);
}

.logo-icon i { font-size: 1.1rem; }

.site-nav a i,
.site-footer ul a i {
    width: 1.1rem;
    text-align: center;
    margin-right: 0.35rem;
    opacity: 0.85;
}

.site-nav a:not(.btn) { display: inline-flex; align-items: center; gap: 0.35rem; }

.feature-icon {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feature-icon i { display: block; }

.app-card h3 i,
.page-header h1 i { margin-right: 0.5rem; color: var(--accent); }

.alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: var(--text);
}

.alert i { color: var(--accent); }

.contact-list li i { width: 1.25rem; color: var(--text-muted); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a:not(.btn) { color: var(--text-muted); font-size: 0.9rem; }
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active { color: var(--text); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* CTA: «Начать бесплатно» */
.btn-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff !important;
    background: linear-gradient(
        120deg,
        #2563eb 0%,
        #3b82f6 25%,
        #22d3ee 50%,
        #3b82f6 75%,
        #2563eb 100%
    );
    background-size: 220% 220%;
    animation: btn-cta-gradient 5s ease infinite, btn-cta-pulse 2.8s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 42%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 58%,
        transparent 100%
    );
    transform: translateX(-120%);
    animation: btn-cta-shine 3.2s ease-in-out infinite;
}

.btn-cta::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(120deg, #3b82f6, #22d3ee, #3b82f6);
    background-size: 200% 200%;
    animation: btn-cta-gradient 5s ease infinite;
    opacity: 0.5;
    filter: blur(12px);
}

.btn-cta i,
.btn-cta span {
    position: relative;
    z-index: 1;
}

.btn-cta i {
    margin-right: 0.45rem;
    animation: btn-cta-rocket 2.2s ease-in-out infinite;
}

.btn-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 40px rgba(59, 130, 246, 0.55), 0 0 24px rgba(34, 211, 238, 0.35);
    animation: btn-cta-gradient 2.5s ease infinite, btn-cta-pulse 1.5s ease-in-out infinite;
}

.btn-cta:hover::before {
    animation-duration: 1.8s;
}

.btn-cta:active {
    transform: translateY(-1px) scale(1.01);
}

@keyframes btn-cta-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes btn-cta-pulse {
    0%, 100% {
        box-shadow: 0 4px 18px rgba(59, 130, 246, 0.45), 0 0 0 0 rgba(34, 211, 238, 0.35);
    }
    50% {
        box-shadow: 0 8px 28px rgba(59, 130, 246, 0.6), 0 0 0 6px rgba(34, 211, 238, 0.12);
    }
}

@keyframes btn-cta-shine {
    0% { transform: translateX(-120%); }
    45%, 100% { transform: translateX(120%); }
}

@keyframes btn-cta-rocket {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    35% { transform: translateY(-3px) rotate(-12deg); }
    70% { transform: translateY(-1px) rotate(6deg); }
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-full {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    left: -50%;
    top: -50%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(500px) rotateX(58deg) translateY(-8%);
    transform-origin: center top;
    animation: grid-drift 24s linear infinite;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 72%);
}

.hero-grid-bg--fine {
    background-size: 28px 28px;
    opacity: 0.45;
    animation-duration: 36s;
    animation-direction: reverse;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: glow-pulse 8s ease-in-out infinite;
}

.hero-glow--1 {
    width: 420px;
    height: 420px;
    background: rgba(59, 130, 246, 0.35);
    top: 10%;
    left: 15%;
}

.hero-glow--2 {
    width: 360px;
    height: 360px;
    background: rgba(34, 211, 238, 0.22);
    bottom: 15%;
    right: 10%;
    animation-delay: -4s;
}

.hero-full .hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(17, 24, 39, 0.6);
    color: var(--text-muted);
    backdrop-filter: blur(8px);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.hero-scroll-hint:hover {
    color: var(--accent);
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-lead { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.5rem; max-width: 520px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat-item strong { display: block; font-size: 1.5rem; }
.hero-stat-item span { font-size: 0.85rem; color: var(--text-muted); }

.hero-stats strong { display: block; font-size: 1.5rem; }
.hero-stats span { font-size: 0.85rem; color: var(--text-muted); }

.hero-actions .btn i { margin-right: 0.4rem; }

.terminal-card {
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow), 0 0 60px rgba(59, 130, 246, 0.12);
    backdrop-filter: blur(12px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.terminal-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.terminal-header span:nth-child(1) { background: #ef4444; }
.terminal-header span:nth-child(2) { background: #f59e0b; }
.terminal-header span:nth-child(3) { background: #10b981; }

.terminal-header code { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); }

.terminal-body {
    padding: 1.25rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--success);
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-card); }
.section-title { text-align: center; font-size: 1.75rem; margin-bottom: 2.5rem; }

.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: 2rem; }
.page-header p { color: var(--text-muted); margin-top: 0.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.feature-card, .app-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover, .app-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.pricing-card {
    transition: transform 0.35s ease, border-color 0.25s, box-shadow 0.35s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.btn {
    transition: transform 0.2s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-primary:not(.btn-cta):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn-outline:hover {
    transform: translateY(-2px);
}

.feature-card h3, .app-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
}

.pricing-price { font-size: 2rem; font-weight: 700; margin: 1rem 0; }
.pricing-price small { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }

.pricing-card ul { list-style: none; margin-bottom: 1.5rem; }
.pricing-card li {
    padding: 0.4rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
.pricing-card li::before { content: '✓ '; color: var(--success); }

/* Home — single subscription offer */
.sub-offer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0.5rem 0;
}

.sub-offer-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.sub-offer-tag i {
    font-size: 0.85rem;
    color: var(--accent);
}

.sub-offer-heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 0.85rem;
    max-width: 36rem;
}

.sub-offer-text {
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 44rem;
}

.sub-offer-price-block {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.sub-offer-amount {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 4rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sub-offer-currency {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
}

.sub-offer-currency small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.sub-offer-btn {
    margin: 0 auto;
}

.sub-offer-meta {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: #5a6578;
}

/* Tables */
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th, .table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.table-compact th, .table-compact td { padding: 0.6rem 0.75rem; }

code {
    font-family: var(--mono);
    font-size: 0.82rem;
    background: var(--bg-elevated);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Badges & progress */
.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.badge-muted { background: var(--bg-elevated); color: var(--text-muted); }

.progress-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 999px;
    overflow: hidden;
    min-width: 80px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.progress-bar.progress-sm { height: 4px; min-width: 60px; }

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
    transition: width 0.3s;
}

.progress-fill.warning { background: var(--warning); }

/* FAQ */
.faq-list { max-width: 720px; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    padding: 0 1.25rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Auth */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.auth-card h1 { margin-bottom: 0.5rem; }
.auth-hint { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.auth-error {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: 0.9rem; color: var(--text-muted); }

.auth-recaptcha-note {
    margin-top: 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

.auth-recaptcha-note a {
    color: var(--text-muted);
    text-decoration: underline;
}

.auth-recaptcha-note a {
    color: var(--text-muted);
    text-decoration: underline;
}

.auth-submit {
    position: relative;
    min-height: 46px;
    overflow: hidden;
}

.auth-btn-face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-btn-face[aria-hidden="true"] {
    display: none;
}

.auth-submit.is-busy {
    pointer-events: none;
    opacity: 0.92;
}

.auth-btn-face--busy {
    font-weight: 600;
    font-size: 0.92rem;
}

.auth-btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: authBtnSpin 0.65s linear infinite;
    flex-shrink: 0;
}

.auth-form .form-check {
    margin-bottom: 1.25rem;
}

/* Auth modal — блокировка скролла без сдвига контента */
html.auth-modal-open {
    overflow: hidden;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.text-required {
    color: var(--accent);
}

@media (max-width: 480px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.auth-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.72);
    backdrop-filter: blur(6px);
}

.auth-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    transform: translateY(12px) scale(0.96);
    transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.auth-modal.is-open .auth-modal-dialog {
    transform: translateY(0) scale(1);
}

.auth-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
}

.auth-modal-icon[aria-hidden="true"] {
    display: none;
}

.auth-modal--success .auth-modal-icon--success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35);
    animation: authModalPop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.auth-modal--error .auth-modal-icon--error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.35);
    animation: authModalPop 0.45s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.auth-modal-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.auth-modal-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.auth-modal-actions {
    margin-top: 0.25rem;
}

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

@keyframes authModalPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-btn-spinner,
    .auth-modal-icon {
        animation: none !important;
    }

    .auth-modal-dialog {
        transition: none;
        transform: none;
    }
}

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--text-muted); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }

.site-footer h4 { font-size: 0.85rem; margin-bottom: 0.75rem; color: var(--text-muted); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--text-muted); font-size: 0.9rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

.server-ip-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.server-flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.server-flag--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 15px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-radius: 2px;
}

.server-ip-masked {
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.server-ping {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--text);
}

.table .row-current {
    background: rgba(59, 130, 246, 0.06);
}


.mt-sm { margin-top: 0.5rem; }
.mt-lg { margin-top: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }

/* Cabinet */
.section-compact { padding: 2.5rem 0; }

.page-header-cabinet {
    padding-top: 2.5rem;
    background: transparent;
    border-bottom: 0;
}

.cabinet-page .section,
.cabinet-page .section-alt {
    background: transparent;
}

.cabinet-page .cabinet-stat-card,
.cabinet-page .cabinet-panel,
.cabinet-page .cabinet-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.cabinet-page .cabinet-table-wrap {
    border-radius: var(--radius);
    overflow: hidden;
}

.cabinet-page .cabinet-table-wrap .table th {
    background: rgba(26, 35, 50, 0.65);
}

.cabinet-page .import-btn {
    background: rgba(26, 35, 50, 0.85);
}

.cabinet-page .import-btn-primary {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
}

.cabinet-page .import-btn:hover {
    background: rgba(59, 130, 246, 0.12);
}

.cabinet-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.cabinet-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
    font-size: 1.5rem;
}

.cabinet-empty-state h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.cabinet-empty-state p {
    max-width: 28rem;
    margin: 0 auto 1.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cabinet-empty-state p strong {
    color: var(--text);
    font-weight: 600;
}

.cabinet-empty-state .btn {
    gap: 0.6rem;
}

.cabinet-head-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.cabinet-promo-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cabinet-empty-state {
    text-align: left;
}

.cabinet-offer-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cabinet-offer-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.cabinet-offer-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.cabinet-offer-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cabinet-offer-list {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.cabinet-offer-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cabinet-offer-list i {
    color: var(--success);
    margin-top: 0.15rem;
}

.cabinet-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.cabinet-perk-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem;
}

.cabinet-perk-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.65rem;
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
}

.cabinet-perk-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.cabinet-perk-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.cabinet-steps-panel .cabinet-section-title {
    margin-bottom: 1rem;
}

.cabinet-start-steps {
    margin: 0 0 1.15rem 1.15rem;
    color: var(--text-muted);
    display: grid;
    gap: 0.55rem;
}

.cabinet-start-steps strong {
    color: var(--text);
}

.cabinet-steps-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.cabinet-main-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1rem;
    align-items: start;
}

.cabinet-side-stack {
    display: grid;
    gap: 1rem;
}

.cabinet-side-note {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.cabinet-help-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.cabinet-help-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.cabinet-help-list i {
    color: var(--primary);
    margin-top: 0.15rem;
    width: 1rem;
    text-align: center;
}

.cabinet-help-list a {
    color: var(--primary);
}

.cabinet-table-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem !important;
    line-height: 1.5;
}

.cabinet-table-empty i {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    opacity: 0.85;
}

.cabinet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cabinet-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cabinet-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    flex-shrink: 0;
}

.cabinet-flash {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: 36rem;
}

.cabinet-flash-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--text);
}

.cabinet-flash-success i {
    color: var(--success);
    margin-top: 0.1rem;
}

.cabinet-flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--text);
}

.cabinet-flash-error i {
    color: var(--danger);
    margin-top: 0.1rem;
}

.cabinet-manage-dialog {
    max-width: 520px;
    text-align: left;
}

.cabinet-manage-actions {
    display: grid;
    gap: 0.85rem;
}

.cabinet-manage-form {
    margin: 0;
}

.cabinet-manage-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(26, 35, 50, 0.45);
}

.cabinet-manage-item strong {
    display: block;
    margin-bottom: 0.35rem;
}

.cabinet-manage-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.cabinet-manage-item-danger {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.06);
}

.cabinet-manage-item-freeze {
    position: relative;
    overflow: hidden;
    border-color: rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(34, 211, 238, 0.06) 100%);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.cabinet-manage-item-freeze strong {
    color: #bfdbfe;
}

.cabinet-manage-item-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.cabinet-freeze-snow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cabinet-freeze-snow i {
    position: absolute;
    color: rgba(147, 197, 253, 0.35);
    animation: cabinet-freeze-drift linear infinite;
}

.cabinet-freeze-snow i:nth-child(1) {
    top: -8%;
    left: 12%;
    font-size: 0.65rem;
    animation-duration: 7s;
    animation-delay: 0s;
}

.cabinet-freeze-snow i:nth-child(2) {
    top: -10%;
    left: 55%;
    font-size: 0.85rem;
    animation-duration: 9s;
    animation-delay: -2s;
}

.cabinet-freeze-snow i:nth-child(3) {
    top: -6%;
    left: 78%;
    font-size: 0.55rem;
    animation-duration: 6.5s;
    animation-delay: -4s;
}

.cabinet-freeze-snow i:nth-child(4) {
    top: -12%;
    left: 32%;
    font-size: 0.75rem;
    animation-duration: 8.5s;
    animation-delay: -1s;
}

@keyframes cabinet-freeze-drift {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    90% { opacity: 0.5; }
    100% {
        transform: translateY(130px) rotate(360deg);
        opacity: 0;
    }
}

.cabinet-manage-btn-freeze {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    border: 1px solid rgba(96, 165, 250, 0.55);
    color: #dbeafe;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(34, 211, 238, 0.12) 100%);
    gap: 0.4rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.cabinet-manage-btn-freeze:hover:not(:disabled) {
    border-color: var(--accent);
    color: #fff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.38) 0%, rgba(34, 211, 238, 0.22) 100%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.cabinet-freeze-btn-icon {
    animation: cabinet-freeze-spin 4s linear infinite;
}

@keyframes cabinet-freeze-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cabinet-manage-btn-freeze:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cabinet-manage-btn-freeze:disabled .cabinet-freeze-btn-icon {
    animation: none;
}

.cabinet-manage-btn-danger {
    flex-shrink: 0;
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.cabinet-manage-btn-danger:hover:not(:disabled) {
    border-color: var(--danger);
    color: #fff;
    background: rgba(239, 68, 68, 0.18);
}

.cabinet-manage-btn-danger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cabinet-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cabinet-stat-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color 0.2s, transform 0.2s;
}

.cabinet-stat-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.cabinet-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    flex-shrink: 0;
}

.cabinet-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.cabinet-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.cabinet-stat-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cabinet-progress {
    display: block;
    width: 100%;
    margin-top: 0.65rem;
}

.cabinet-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.cabinet-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.cabinet-panel-head h2 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.cabinet-panel-head h2 i {
    color: var(--accent);
    margin-right: 0.45rem;
}

.cabinet-panel-head p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.sub-url-field {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.sub-url-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.sub-url-input:focus {
    outline: none;
    border-color: var(--primary);
}

.cabinet-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.cabinet-hint i {
    color: var(--primary);
    margin-top: 0.15rem;
}

.ios-a2hs-banner {
    margin-bottom: 1.25rem;
    display: none;
}

.ios-a2hs-banner.is-visible {
    display: block;
}

.ios-a2hs-banner-inner {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem 1rem 1rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(34, 211, 238, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.28);
    box-shadow: var(--shadow);
}

.ios-a2hs-banner--fresh .ios-a2hs-banner-inner {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.18);
}

.ios-a2hs-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(10, 14, 23, 0.45);
    color: var(--text);
    font-size: 1.35rem;
}

.ios-a2hs-content {
    flex: 1;
    min-width: 0;
    padding-right: 1.5rem;
}

.ios-a2hs-title {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text);
}

.ios-a2hs-text {
    margin: 0 0 0.65rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.ios-a2hs-steps {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.ios-a2hs-steps li + li {
    margin-top: 0.25rem;
}

.ios-a2hs-share {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.18);
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

.ios-a2hs-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(10, 14, 23, 0.35);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.ios-a2hs-close:hover {
    color: var(--text);
    background: rgba(10, 14, 23, 0.55);
}

@media (max-width: 480px) {
    .ios-a2hs-banner-inner {
        flex-direction: column;
    }

    .ios-a2hs-content {
        padding-right: 0;
    }
}

.import-btns {
    display: grid;
    gap: 0.65rem;
}

.import-btn {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.import-btn:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
    color: var(--text);
    transform: translateX(4px);
}

.import-btn-primary {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
}

button.import-btn {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.streisand-modal-dialog {
    max-width: 560px;
    text-align: left;
}

.streisand-modal-subtitle {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 400;
}

.admin-modal-head h2 i {
    color: var(--accent);
    margin-right: 0.35rem;
}

.import-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.35rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(26, 35, 50, 0.85);
}

.import-mode-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.import-mode-switch-btn:hover {
    color: var(--text);
}

.import-mode-switch-btn.is-active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.import-mode-switch-btn i {
    font-size: 0.85rem;
    line-height: 1;
}

.import-mode-panel-lead {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}

.streisand-modal-setup {
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.streisand-modal-setup summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    list-style: none;
}

.streisand-modal-setup summary::-webkit-details-marker {
    display: none;
}

.streisand-modal-setup summary i {
    color: var(--primary);
}

.streisand-modal-setup-body {
    margin-top: 0.85rem;
}

.streisand-modal-setup-body .cabinet-hint {
    margin-top: 0.85rem;
}

.streisand-modal .sub-meta-row {
    margin-bottom: 1rem;
}

.streisand-modal .sub-url-field {
    margin-bottom: 0.5rem;
}

.import-steps {
    margin: 0 0 1.25rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.import-steps li {
    margin-bottom: 0.45rem;
}

.import-launch-panel h1 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.import-launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.import-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.import-method-card {
    padding: 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
}

.import-method-card--primary {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.06);
}

.import-method-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.import-method-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    font-size: 1.1rem;
}

.import-method-head h2 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.import-method-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.import-method-note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.import-back-row {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.import-fallback {
    margin-top: 0.5rem;
}

.sub-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sub-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
}

.sub-meta-pill-accent {
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.25);
    background: rgba(34, 211, 238, 0.08);
}

.cabinet-hint-success {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
}

.cabinet-hint-success > i {
    color: var(--success);
}

.import-steps-compact {
    margin: 0.5rem 0 0 1rem;
}

.import-debug {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.import-debug summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
}

.import-debug ul {
    margin: 0.75rem 0 0 1rem;
}

.import-debug li {
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.setup-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.setup-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.setup-checklist li:last-child {
    border-bottom: none;
}

.setup-checklist i {
    color: var(--accent);
    margin-top: 0.15rem;
}

.setup-steps {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.setup-step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.setup-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.setup-step strong {
    display: block;
    margin-bottom: 0.15rem;
}

.setup-step p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.setup-step-highlight {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.setup-step-highlight .setup-step-num {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.import-debug code {
    font-size: 0.75rem;
}

.text-warning-inline {
    color: var(--warning);
    font-weight: 600;
}

.streisand-setup-panel {
    height: 100%;
}

.import-btn i {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.15rem;
}

.import-btn span {
    font-weight: 600;
}

.import-btn small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.cabinet-link-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.88rem;
}

.cabinet-section-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.cabinet-device-icon {
    color: var(--text-muted);
    margin-right: 0.35rem;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 0.9rem;
    z-index: 300;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.copy-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes grid-drift {
    0% { transform: perspective(500px) rotateX(58deg) translateY(-8%) translateX(0); }
    100% { transform: perspective(500px) rotateX(58deg) translateY(-8%) translateX(56px); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.08); }
}

@keyframes terminal-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.anim-fade-up {
    opacity: 0;
    animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.anim-float {
    animation: float-y 5s ease-in-out infinite;
}

.anim-bounce {
    animation: bounce-soft 2s ease-in-out infinite;
}

.terminal-body {
    animation: terminal-blink 4s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title.reveal.is-visible {
    transform: translateY(0) scale(1);
}

.feature-card,
.pricing-card,
.app-card {
    transition: transform 0.35s ease, border-color 0.25s, box-shadow 0.35s, opacity 0.7s;
}

.page-header {
    animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body:not(.is-home) .site-header.header-scrolled {
    background: rgba(10, 14, 23, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

/* Legal documents */
.legal-section {
    padding-top: 2rem;
}

.legal-doc {
    max-width: 760px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.legal-nav a:hover,
.legal-nav a.active {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(59, 130, 246, 0.1);
}

.legal-notice {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.legal-notice i {
    color: var(--accent);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.legal-block {
    margin-bottom: 2rem;
}

.legal-block h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.legal-block p,
.legal-block li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.legal-block ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.legal-block strong {
    color: var(--text);
    font-weight: 600;
}

.legal-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.table tbody tr {
    transition: background 0.2s;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.06);
}

.faq-item {
    transition: border-color 0.25s, transform 0.25s;
}

.faq-item[open] {
    border-color: rgba(59, 130, 246, 0.4);
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }

    .anim-fade-up {
        opacity: 1;
        animation: none;
    }

    .btn-cta,
    .btn-cta::before,
    .btn-cta::after,
    .btn-cta i {
        animation: none;
    }

    .btn-cta {
        background: var(--primary);
    }

    .hero-grid-bg {
        animation: none;
    }
}

/* Admin panel */
.layout-admin {
    min-height: 100vh;
    background: var(--bg);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 40;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.admin-sidebar-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--text);
}

.admin-sidebar-brand .logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(34, 211, 238, 0.15));
    color: var(--accent);
}

.admin-sidebar-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

.admin-sidebar-user {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem;
    margin-bottom: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.admin-sidebar-user-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent);
    flex-shrink: 0;
}

.admin-sidebar-user strong {
    display: block;
    font-size: 0.9rem;
}

.admin-sidebar-user span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.admin-nav-link i {
    width: 1.1rem;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.admin-nav-link:hover i {
    color: var(--accent);
}

.admin-nav-link.active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--text);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-nav-link.active i {
    color: var(--primary);
}

.admin-sidebar-foot {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.admin-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.admin-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.admin-topbar-meta {
    flex: 1;
    min-width: 0;
}

.admin-topbar-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.admin-topbar-meta strong {
    font-size: 1rem;
}

.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-content {
    padding: 1.75rem 4rem 2.5rem;
    flex: 1;
}

.admin-page-head {
    margin-bottom: 1.5rem;
}

.admin-page-head h1 {
    margin-bottom: 0.35rem;
}

.admin-page-head p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.cabinet-badge-admin {
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
}

.admin-stats {
    margin-bottom: 1.5rem;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-users-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.admin-users-search,
.admin-users-status-trigger {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 42px;
    padding: 0 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-elevated);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font: inherit;
    color: var(--text);
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.admin-users-search:focus-within,
.admin-users-status-dropdown.is-open .admin-users-status-trigger,
.admin-users-status-trigger:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
    outline: none;
}

.admin-users-search {
    flex: 1 1 220px;
    min-width: 0;
}

.admin-users-status-dropdown {
    position: relative;
    flex: 0 0 auto;
    min-width: 13.5rem;
}

.admin-users-status-trigger {
    position: relative;
    min-width: 13.5rem;
    padding-right: 2rem;
}

.admin-users-search i,
.admin-users-status-trigger > i:first-child {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 1rem;
    text-align: center;
}

.admin-users-status-label {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-users-status-chevron {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.admin-users-status-dropdown.is-open .admin-users-status-chevron {
    transform: translateY(-50%) rotate(180deg);
}

.admin-users-status-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.admin-users-status-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-users-status-option:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text);
}

.admin-users-status-option.is-selected {
    background: rgba(59, 130, 246, 0.16);
    color: var(--primary);
    font-weight: 500;
}

.admin-users-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    outline: none;
}

.admin-users-search input::placeholder {
    color: var(--text-muted);
}

.admin-users-table-wrap {
    margin-top: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.35);
}

.admin-users-table th,
.admin-users-table td {
    padding: 1.05rem 1.35rem;
    vertical-align: middle;
}

.admin-users-table th {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    background: rgba(26, 35, 50, 0.65);
}

.admin-users-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-users-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

.admin-users-loading td,
.admin-users-empty td {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1.35rem !important;
}

.admin-users-loading i {
    margin-right: 0.45rem;
}

.admin-users-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: auto;
    flex: 0 1 auto;
}

.admin-users-page-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.admin-users-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.admin-users-page-btn--nav i {
    font-size: 0.72rem;
    line-height: 1;
}

.admin-users-page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

.admin-users-page-btn.is-active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    pointer-events: none;
}

.admin-users-page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.admin-users-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 36px;
    color: var(--text-muted);
    font-size: 0.85rem;
    user-select: none;
}

.admin-user-edit-muted {
    color: var(--text-muted);
}

.admin-users-actions {
    width: 44px;
    text-align: center;
    white-space: nowrap;
}

.admin-user-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.admin-user-edit-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

.admin-user-edit-btn i {
    font-size: 0.85rem;
    line-height: 1;
}

html.admin-modal-open {
    overflow: hidden;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.admin-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.72);
    backdrop-filter: blur(6px);
}

.admin-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    padding: 1.35rem 1.35rem 1.25rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.admin-modal.is-open .admin-modal-dialog {
    transform: translateY(0) scale(1);
}

.admin-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.admin-modal-head h2 {
    font-size: 1.15rem;
    line-height: 1.3;
}

.admin-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}

.admin-modal-close:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.admin-user-edit-form .form-group:last-of-type {
    margin-bottom: 0.5rem;
}

.admin-user-edit-status-dropdown {
    width: 100%;
    min-width: 0;
}

.admin-user-edit-status-dropdown .admin-users-status-trigger {
    width: 100%;
}

.admin-user-edit-error {
    margin-top: 0.85rem;
    color: var(--danger);
    font-size: 0.88rem;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.admin-token,
.admin-vless {
    font-size: 0.75rem;
    word-break: break-all;
    max-width: 180px;
    display: inline-block;
}

.admin-vless {
    max-width: 280px;
}

.auth-card-admin h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
}

.auth-card-admin h1 i {
    color: var(--primary);
}

@media (max-width: 1024px) {
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .admin-nav-toggle {
        display: flex;
    }

    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-105%);
        transition: transform 0.3s ease;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-topbar-actions .btn span,
    .admin-topbar-actions .btn:not(.btn-sm) {
        font-size: 0;
    }

    .admin-topbar-actions .btn i {
        margin: 0;
    }

    .admin-content {
        padding: 1.25rem 2rem 2rem;
    }

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

    .admin-users-toolbar {
        gap: 0.65rem;
    }

    .admin-users-search,
    .admin-users-status-dropdown,
    .admin-users-pagination {
        flex: 1 1 100%;
        margin-left: 0;
    }

    .admin-users-status-trigger {
        width: 100%;
    }

    .admin-users-pagination {
        justify-content: center;
    }

    .admin-users-table th,
    .admin-users-table td {
        padding: 0.9rem 1rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-full {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 4.5rem;
    }

    .hero-grid-bg {
        transform: perspective(400px) rotateX(52deg) translateY(-5%);
    }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s;
        pointer-events: none;
    }

    .site-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .import-method-grid { grid-template-columns: 1fr; }
    .cabinet-stats { grid-template-columns: repeat(2, 1fr); }
    .cabinet-grid { grid-template-columns: 1fr; }
    .cabinet-promo-grid,
    .cabinet-main-grid,
    .cabinet-perks { grid-template-columns: 1fr; }
    .cabinet-header-actions { width: 100%; }
    .cabinet-manage-item {
        flex-direction: column;
        align-items: stretch;
    }
    .cabinet-manage-btn-danger {
        width: 100%;
    }
    .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; }
    .cabinet-stats { grid-template-columns: 1fr; }
    .sub-url-field .btn { width: 100%; }
}
