@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
/* NOVA VISUALS - UI VERSION 1022 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════
   AUTH STATE VISIBILITY (ULTIMATE FIX)
   ═══════════════════════════════════════════ */
body.is-guest .user-nav-balance,
body.is-guest #navbarBalance,
body.is-guest .is-logged-in-only { 
    display: none !important; 
}

body.is-logged-in .user-nav-balance,
body.is-logged-in #navbarBalance,
body.is-logged-in .is-logged-in-only { 
    display: flex !important; 
}

body.is-logged-in .guest-login-trigger,
body.is-logged-in #guestLoginBtn {
    display: none !important;
}

body.is-guest .user-nav-trigger,
body.is-guest #userNavTrigger {
    display: none !important;
}

body.is-guest .guest-login-trigger,
body.is-guest #guestLoginBtn {
    display: flex !important;
    background: linear-gradient(135deg, #a259ff, #6366f1) !important;
    color: white !important;
    padding: 5px 14px !important;
    border-radius: 9px !important;
    font-weight: 900 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    height: 32px !important;
    line-height: 22px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(162, 89, 255, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.is-guest .guest-login-trigger:hover,
body.is-guest #guestLoginBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(162, 89, 255, 0.45) !important;
    filter: brightness(1.1);
}

/* ═══════════════════════════════════════════════════════════
   NOVA VISUALS v13.5 — PURPLE TINT, LIVE FPS, IOS ISLAND
   ═══════════════════════════════════════════════════════════ */

:root {
    /* PulseVisuals: Deep Obsidian & Neon Accents */
    --bg-absolute: #06060a;
    --bg-deep: #08080c;
    --accent-violet: #a259ff;
    --accent-violet-hover: #9146f0;
    --accent-violet-glow: rgba(162, 89, 255, 0.4);
    --accent-green: #22c55e;
    --accent-green-glow: rgba(34, 197, 94, 0.3);

    /* Glass Morphism */
    --glass-bg: rgba(22, 16, 32, 0.6);
    --glass-border: rgba(162, 89, 255, 0.1);
    --glass-border-light: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: #8a8a93;
    --font-main: 'Inter', sans-serif;
    --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
    --radius-premium: 20px;
    --space-premium: 160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-absolute); overscroll-behavior: auto !important; }
body { background-color: var(--bg-absolute); color: var(--text-primary); font-family: var(--font-main), sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior: auto !important; overflow-x: hidden; touch-action: pan-y !important; }
*:not(input):not(textarea) { overscroll-behavior: auto !important; }

/* -------------------------------------
 * PRELOADER
 * ------------------------------------- */
#novaPreloader { position: fixed; inset: 0; z-index: 99999; background: var(--bg-absolute); display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease; pointer-events: all; }
#novaPreloader img { width: 90px; opacity: 0; animation: preloaderFadeIn 1.2s ease forwards; filter: drop-shadow(0 0 40px rgba(162, 89, 255, 0.5)); }
@keyframes preloaderFadeIn { 0% { opacity: 0; transform: scale(0.8); filter: drop-shadow(0 0 0px transparent); } 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 40px rgba(162, 89, 255, 0.6)); } }

.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 10; }
.container.narrow { max-width: 1100px; }

/* Flatter Dot Menus */
.nuw-dots-menu rect, .config-menu-container svg rect {
    transition: all 0.2s ease;
}
.nuw-dots-menu:hover rect, .config-menu-container:hover svg rect {
    fill: var(--accent-violet);
}

/* Утилиты центрирования */
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.text-center { text-align: center !important; }
.flex-column-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.w-100 { width: 100%; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-column { flex-direction: column; }

/* AMBIENT - Усиленный фиолетовый */
.ambient-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bg-absolute); }
.ambient-glow-1 { position: absolute; top: -10%; left: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(162, 89, 255, 0.08) 0%, transparent 60%); filter: blur(120px); }
.ambient-glow-2 { position: absolute; bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 60%); filter: blur(150px); }
.obsidian-texture { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0); background-size: 24px 24px; opacity: 0.6; }

/* NAVBAR */
.navbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 2000000 !important; 
    background: rgba(12, 8, 18, 0.85); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border-bottom: 1px solid var(--glass-border); 
    transition: 0.4s; 
    padding: 12px 0; 
    pointer-events: auto !important;
    overflow: visible !important;
}
.navbar .container { max-width: 1600px; padding: 0 64px; overflow: visible !important; }
.nav-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 60px; 
    overflow: visible !important;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: visible !important;
}
.logo { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    gap: 14px; 
    transition: transform 0.3s var(--ease-apple);
}
.logo:hover { transform: scale(1.02); }
.logo-img { 
    filter: drop-shadow(0 0 15px var(--accent-violet-glow)); 
    animation: ufoFloat 3s ease-in-out infinite;
}
@keyframes ufoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-3deg); }
}
.logo-text {
    font-weight: 800;
    font-size: 1.7rem;
    color: white;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.violet {
    background: linear-gradient(135deg, #a259ff 0%, #d1abff 50%, #a259ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    font-style: normal;
    filter: drop-shadow(0 0 10px rgba(162, 89, 255, 0.3));
}
@keyframes shine {
    to { background-position: 200% center; }
}
.green-accent { color: var(--accent-green); text-shadow: 0 0 15px var(--accent-green-glow); }

.user-nav-balance {
    font-weight: 800;
    font-family: var(--font-mono), monospace;
    font-size: 0.95rem;
    color: white;
    background: rgba(162, 89, 255, 0.1);
    border: 1px solid rgba(162, 89, 255, 0.2);
    padding: 8px 14px;
    border-radius: 12px;
    margin-right: 15px;
    box-shadow: inset 0 0 10px rgba(162, 89, 255, 0.1);
}.nav-links { 
    display: flex !important; 
    gap: 40px !important; 
    align-items: center !important; 
    flex-shrink: 0 !important;
    margin: 0 40px !important;
    min-width: fit-content;
}
.nav-link { 
    color: #a1a1aa !important; 
    text-decoration: none !important; 
    font-weight: 600 !important; 
    font-size: 0.95rem !important; 
    padding: 10px 0 !important; 
    transition: all 0.3s var(--ease-apple) !important; 
    white-space: nowrap !important;
    position: relative !important;
    display: block !important;
}
.nav-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--accent-violet) !important;
    transition: all 0.3s var(--ease-apple) !important;
    border-radius: 2px !important;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100% !important;
}
.nav-link:hover { 
    color: white !important;
}
.nav-link.active { 
    color: white !important;
}

/* Buttons */
.nav-actions { display: flex; gap: 16px; align-items: center; }
#openLoginBtn { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 12px 28px; border-radius: 14px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.3s var(--ease-apple); }
#openLoginBtn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.nav-actions .btn-primary-premium { background: linear-gradient(135deg, var(--accent-violet), #7a3bd0); color: white; padding: 12px 28px; border-radius: 14px; font-size: 1rem; font-weight: 700; text-decoration: none; box-shadow: 0 4px 20px var(--accent-violet-glow); transition: 0.3s var(--ease-apple); display: flex; align-items: center; justify-content: center; }
.nav-actions .btn-primary-premium:hover { background: linear-gradient(135deg, var(--accent-violet-hover), #8a4be0); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(162, 89, 255, 0.5); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer; transition: 0.3s var(--ease-apple); text-decoration: none; }
.btn-primary-premium { background: var(--accent-violet); color: white; box-shadow: 0 4px 15px var(--accent-violet-glow); }
.btn-primary-premium:hover { background: var(--accent-violet-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(162, 89, 255, 0.5); }
.btn-ghost-premium { background: rgba(255,255,255,0.05); color: white; border: 1px solid var(--glass-border); backdrop-filter: blur(6px); }
.btn-ghost-premium:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-xl { padding: 18px 48px; font-size: 1.1rem; border-radius: 14px; }

/* HERO - ЖЕСТКОЕ ЦЕНТРИРОВАНИЕ */
.hero-ultimate { padding-top: 220px; padding-bottom: 80px; position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.hero-center-content { max-width: 950px; z-index: 10; position: relative; margin-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 50px; }
.hero-title-massive { font-size: clamp(3rem, 6.5vw, 5.5rem); font-weight: 900; line-height: 1.25; letter-spacing: -0.04em; color: white; width: 100%; text-align: center; margin: 0; }
.violet-static { color: var(--accent-violet); text-shadow: 0 0 20px var(--accent-violet-glow); }
.hero-sub-centered { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.75; max-width: 750px; text-align: center; margin: 0; }
.ufo-status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 28px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 100px; font-size: 0.85rem; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 0.1em; margin: 0; }
.pulse-dot-purple { width: 8px; height: 8px; background: var(--accent-violet); border-radius: 50%; box-shadow: 0 0 12px var(--accent-violet); animation: pulse 2s infinite; }
.cta-group-centered { display: flex; justify-content: center; width: 100%; margin: 0; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.4; } 100% { transform: scale(1); opacity: 1; } }

/* SCENE */
.hero-ui-showcase-wrapper { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; height: 740px; perspective: 2000px; display: flex; justify-content: center; align-items: center; z-index: 5; }
.fog-layer { position: absolute; pointer-events: none; }
.fog-rear { inset: -20%; z-index: 5; background: radial-gradient(ellipse at center, rgba(9,9,12,0.6) 0%, transparent 70%); filter: blur(60px); }
.fog-front { bottom: -20%; left: -10%; width: 120%; height: 50%; z-index: 40; background: linear-gradient(to top, var(--bg-absolute) 0%, transparent 100%); }
.cinematic-scene { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; display: flex; justify-content: center; align-items: center; }

/* ОКНО НАСТРОЕК (МЕНЮ ИЗ ИГРЫ) */
.nova-unified-window { position: relative; z-index: 20; width: 1100px; height: 640px; flex-shrink: 0; display: flex; background: rgba(14, 10, 20, 0.75); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--glass-border); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.9); font-family: var(--font-main), sans-serif; color: white; }
.nuw-spotify-panel { width: 320px; flex-shrink: 0; background: transparent; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; }
.nuw-sp-cover-wrapper { width: 100%; aspect-ratio: 1/1; margin-bottom: 32px; position: relative; }
/* CSS Обложка для меню */
.css-sp-cover { width: 100%; height: 100%; border-radius: 16px; position: relative; z-index: 2; box-shadow: 0 20px 40px rgba(0,0,0,0.4); background: #ff8933; overflow: hidden; display: flex; align-items: center; justify-content: center;}
.css-sp-orange-bg { width: 100%; height: 100%; position: relative; }
.css-sp-text-pattern { font-family: var(--font-main), sans-serif; font-weight: 900; font-size: 24px; color: rgba(0,0,0,0.7); line-height: 0.9; position: absolute; top: 10px; left: 10px; width: 200%; transform: rotate(-10deg); letter-spacing: -1px;}
.nuw-sp-cover-shadow { position: absolute; inset: 0; background: #ff8933; filter: blur(50px) brightness(1.2) saturate(1.5); z-index: 1; opacity: 0.6; transform: scale(1.1); }

.nuw-sp-info { text-align: center; margin-bottom: auto; width: 100%; }
.nuw-sp-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.5px; color: #ff7a00; }
.nuw-sp-info p { color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 500; }
.nuw-sp-player { width: 100%; }
/* Spotify-style scrubber: thin track + glowing thumb at the head of the fill.
   overflow stays visible so the thumb can stick out above/below the 4px line. */
.nuw-sp-progress-container { width: 100%; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; margin-bottom: 12px; cursor: pointer; overflow: visible; }
.nuw-sp-line { position: relative; width: 100%; height: 100%; }
.nuw-sp-fill {
    position: absolute; left: 0; top: 0;
    height: 100%; background: linear-gradient(90deg, #ffffff 0%, #d6b3ff 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(168, 85, 247, .55);
    will-change: width;
}
.nuw-sp-fill::after {
    content: "";
    position: absolute;
    right: -5px; top: 50%;
    width: 10px; height: 10px;
    background: #ffffff;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(255, 255, 255, .65), 0 0 18px rgba(168, 85, 247, .45);
}
.nuw-sp-times { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.4); margin-bottom: 24px;}
.nuw-sp-controls { display: flex; justify-content: center; align-items: center; gap: 28px; }
.ctrl-icon { width: 18px; height: 18px; fill: rgba(255,255,255,0.4); cursor: pointer; transition: 0.2s; }
.ctrl-icon:hover { fill: white; }
.play-btn-wrap { width: 46px; height: 46px; border-radius: 50%; background: #ffffff; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: 0.2s; color: #000000; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.play-btn-wrap:hover { transform: scale(1.05); }
.play-btn-wrap svg { width: 20px; height: 20px; fill: currentColor; }
.nuw-settings-panel { flex-grow: 1; padding: 40px 40px 40px 0; display: flex; flex-direction: column; background: transparent; }
.nuw-settings-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 12px; }
.nuw-breadcrumbs { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 0.05em; }
.nuw-breadcrumbs .active { color: #ffffff; }
.nuw-breadcrumbs .sep { margin: 0 8px; font-weight: 400; color: rgba(255,255,255,0.1); }
.nuw-user-profile { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.06); padding: 4px 16px 4px 4px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.05); }
.nuw-user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-violet); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.nuw-user-nav-name { font-size: 0.95rem; font-weight: 700; color: var(--accent-violet); text-shadow: 0 0 10px rgba(162, 89, 255, 0.3); }
.nuw-modules-grid { display: grid; grid-template-columns: 1fr 1fr; overflow-y: auto; padding-right: 16px; align-content: start; row-gap: 12px; column-gap: 24px; }
.nuw-modules-grid::-webkit-scrollbar { width: 4px; }
.nuw-modules-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.nuw-category-title { grid-column: 1 / -1; font-size: 12px; color: rgba(255, 255, 255, 0.3); margin-top: 12px; margin-bottom: 4px; font-weight: 600; }
.nuw-module-v2 { display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: rgba(255, 255, 255, 0.03); border-radius: 14px; padding: 12px 16px; border: 1px solid transparent; transition: 0.2s var(--ease-apple); }
.nuw-module-v2:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.05); }
.nuw-module-v2.spotify-mod { background: rgba(30, 215, 96, 0.08); border: 1px solid rgba(30, 215, 96, 0.3); }
.nuw-mod-icon-wrap { width: 24px; height: 24px; margin-right: 12px; display: flex; align-items: center; justify-content: center; }
.nuw-mod-texts { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.nuw-mod-name { font-size: 14px; font-weight: 600; color: #ffffff; }
.text-green { color: #1ed760; }
.nuw-mod-desc { font-size: 11px; color: rgba(255, 255, 255, 0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.nuw-mod-controls { display: flex; align-items: center; gap: 12px; }
.nuw-mod-arrow { color: rgba(255, 255, 255, 0.3); font-size: 18px; font-weight: 300; margin-right: 4px; }
.nuw-checkbox-hidden { display: none; }
.nuw-switch-apple { width: 42px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); position: relative; transition: 0.3s var(--ease-apple); }
.nuw-switch-apple::after { content: ''; position: absolute; width: 18px; height: 18px; background: #a1a1aa; border-radius: 50%; top: 3px; left: 3px; transition: 0.3s var(--ease-apple); box-shadow: 0 2px 5px rgba(0,0,0,0.4); }
.nuw-checkbox-hidden:checked + .nuw-switch-apple { background: var(--accent-violet); }
.nuw-checkbox-hidden:checked + .nuw-switch-apple::after { transform: translateX(18px); background: #ffffff; }


/* ════════════════════════════════════════════════
   СЕКЦИЯ BENTO BOX & HEADERS
   ════════════════════════════════════════════════ */
.section-head-premium { margin-bottom: 60px; max-width: 800px; padding: 0 20px; text-align: center; margin-left: auto; margin-right: auto; }
.section-head-premium h2 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 24px; margin-top: 20px; color: white; }
.section-head-premium p { color: var(--text-secondary); font-size: 1.2rem; line-height: 1.6; }
.micro-label { display: inline-block; font-family: var(--font-mono), monospace; color: var(--accent-violet); font-size: 1.1rem; letter-spacing: 0.1em; background: rgba(162, 89, 255, 0.1); padding: 8px 20px; border-radius: 100px; border: 1px solid rgba(162, 89, 255, 0.2); }

.bento-features-section { padding: var(--space-premium) 0; position: relative; z-index: 10; font-family: var(--font-main), sans-serif; }
.grid-header-premium { margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; text-align: center; }
.grid-header-premium h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 20px; color: white; }
.grid-header-premium p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6; }

/* Сетка Bento Box */
.premium-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.eb-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: 0.4s var(--ease-apple);
    cursor: pointer;
}
.eb-card:hover {
    transform: translateY(-5px);
    border-color: rgba(162, 89, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(162, 89, 255, 0.1);
}

.card-island { grid-column: span 2; grid-row: span 1; }
.card-hud { grid-column: span 1; grid-row: span 1; }
.card-perf { grid-column: span 1; grid-row: span 1; }
.card-net { grid-column: span 2; grid-row: span 1; }

.eb-content { padding: 32px; z-index: 2; }
.eb-content h3 { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 12px; letter-spacing: -0.02em; }
.eb-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }

.eb-visual-center { flex-grow: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 20px; }
.eb-visual-bottom { flex-grow: 1; display: flex; align-items: flex-end; justify-content: center; position: relative; padding-bottom: 32px;}

/* 1. iOS DYNAMIC ISLAND (Точная копия, в ряд) */
.ios-dynamic-island {
    background: #000000;
    border-radius: 32px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.08);
    width: 320px;
    max-width: 100%;
    animation: islandBreathe 6s infinite cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.ios-di-cover {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.ios-di-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
}

.ios-di-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-overflow: ellipsis;
    overflow: hidden;
}

.ios-di-artist {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.2;
}

.ios-di-eq {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 20px;
    flex-shrink: 0;
}

.ios-di-eq i {
    width: 3px;
    background: #ff7a00;
    border-radius: 2px;
    animation: eqLive 1s infinite alternate ease-in-out;
}
.ios-di-eq i:nth-child(1) { height: 10px; animation-delay: 0.1s; }
.ios-di-eq i:nth-child(2) { height: 18px; animation-delay: 0.3s; }
.ios-di-eq i:nth-child(3) { height: 12px; animation-delay: 0.0s; }
.ios-di-eq i:nth-child(4) { height: 16px; animation-delay: 0.2s; }

@keyframes eqLive { 0% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }
@keyframes islandBreathe {
    0%, 15% { width: 60px; padding: 8px 10px; border-radius: 30px; transform: translateY(-10px); }
    20%, 80% { width: 320px; padding: 8px 16px; border-radius: 32px; transform: translateY(0); }
    85%, 100% { width: 60px; padding: 8px 10px; border-radius: 30px; transform: translateY(-10px); }
}

/* 2. LIVE FPS GRAPH */
.live-fps-widget {
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lfw-header { display: flex; align-items: baseline; gap: 8px; }
.lfw-value { font-family: var(--font-mono), monospace; font-size: 48px; font-weight: 800; color: white; line-height: 1; text-shadow: 0 0 20px var(--accent-violet-glow); font-variant-numeric: tabular-nums; }
.lfw-label { font-size: 16px; font-weight: 600; color: var(--accent-violet); letter-spacing: 1px; }
.lfw-graph { display: flex; align-items: flex-end; gap: 4px; height: 60px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 2px; }
.lfw-bar { flex: 1; background: linear-gradient(to top, rgba(162, 89, 255, 0.2), var(--accent-violet)); border-radius: 2px 2px 0 0; animation: graphPulse 1.5s infinite alternate ease-in-out; }
@keyframes graphPulse { 0% { height: 20%; opacity: 0.5; } 100% { height: 90%; opacity: 1; } }

/* 3. Игровые Виджеты HUD */
.hud-stack { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 180px; }
.hud-minimap { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hm-map { width: 140px; height: 140px; border: 2px solid var(--accent-violet); border-radius: 16px; background: #1a4d2e; box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: relative; overflow: hidden; }
.hm-water { position: absolute; bottom: 0; left: 0; width: 60%; height: 50%; background: #2b5c92; border-radius: 0 30px 0 0; }
.hm-land { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; background: #3c8a45; border-radius: 8px;}
.hm-dot-player { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; background: #ff00ff; border-radius: 50%; box-shadow: 0 0 10px #ff00ff; }
.hm-dot-enemy { position: absolute; top: 20%; left: 70%; width: 6px; height: 6px; background: #ff4e4e; border-radius: 50%; box-shadow: 0 0 10px #ff4e4e; animation: pingDot 2s infinite;}
.hm-label { background: rgba(15, 15, 20, 0.85); border: 2px solid var(--accent-violet); border-radius: 12px; padding: 4px 12px; font-family: var(--font-mono), monospace; font-size: 13px; color: white; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.hud-armor { background: rgba(15, 15, 20, 0.85); border: 2px solid var(--accent-violet); border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; flex-direction: column; gap: 10px;}
.ha-row { display: flex; align-items: center; gap: 10px; }
.ha-icon { width: 14px; height: 14px; background: #55ffff; border: 1px solid #00aaaa; }
.ha-helmet { border-radius: 6px 6px 0 0; }
.ha-chest { border-radius: 2px; }
.ha-stats { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.ha-text { font-family: var(--font-mono), monospace; font-size: 13px; color: white; line-height: 1; }
.ha-text.alert { color: #ff5555; }
.ha-bar { width: 100%; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px;}
.ha-fill { height: 100%; background: var(--accent-violet); border-radius: 2px;}
.alert-fill { background: #ff5555; animation: pingDot 1s infinite alternate; }

@keyframes pingDot { 0% { opacity: 0.5; } 100% { opacity: 1; } }

/* 4. Легальный Буст (AutoSwap CSS) */
.mc-autoswap-scene { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; }
.as-slot { width: 44px; height: 44px; background: rgba(0,0,0,0.6); border: 2px solid rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.as-slot.active { border-color: var(--accent-violet); box-shadow: inset 0 0 15px rgba(162, 89, 255, 0.4), 0 0 10px rgba(162, 89, 255, 0.2); }
.as-slot svg { width: 26px; height: 26px; }
.icon-shield { color: #a1a1aa; }
.icon-totem { color: #ffbd2e; filter: drop-shadow(0 0 5px rgba(255, 189, 46, 0.5)); animation: totemPulse 2s infinite alternate; }
.as-arrow { color: rgba(255,255,255,0.4); width: 24px; height: 24px; animation: swapArrowMove 1s infinite alternate; filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }
@keyframes totemPulse { 0% { transform: scale(0.9); } 100% { transform: scale(1.1); } }
@keyframes swapArrowMove { 0% { transform: translateX(-4px); color: rgba(255,255,255,0.2); } 100% { transform: translateX(4px); color: white; } }


/* =========================================
   СЛАЙДЕР ДО/ПОСЛЕ
   ========================================= */
.compare-v2 { padding: var(--space-premium) 0; font-family: var(--font-main), sans-serif; }
.compare-premium { width: 100%; aspect-ratio: 1512/948; border-radius: var(--radius-premium); border: 5px solid rgba(162, 89, 255, 0.7); overflow: hidden; box-shadow: 0 0 20px rgba(162, 89, 255, 0.45), 0 0 40px rgba(162, 89, 255, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 25px 60px rgba(0,0,0,0.7); cursor: ew-resize; position: relative; transition: border-color 0.3s, box-shadow 0.3s; user-select: none; -webkit-user-select: none; }
.compare-premium:hover { border-color: rgba(162, 89, 255, 0.9); box-shadow: 0 0 35px rgba(162, 89, 255, 0.8), 0 0 60px rgba(162, 89, 255, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.25) inset, 0 25px 65px rgba(0,0,0,0.8); }
.compare-img { position: absolute; inset: 0; background-size: cover; background-position: center; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.ph-img { display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.05); }
.compare-img.before { background-image: url('./stf1.png?v=4'); background-color: #111; filter: grayscale(0.3) saturate(0.82) brightness(0.98); }
.compare-img.after { background-image: url('./stf2.png?v=4'); background-color: var(--bg-absolute); width: 100%; clip-path: inset(0 0 0 50%); -webkit-clip-path: inset(0 0 0 50%); }
.handle-v2 { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); pointer-events: none; display: flex; align-items: center; justify-content: center; z-index: 5;}
.handle-line { position: absolute; width: 2px; height: 100%; background: var(--accent-violet); }
.handle-circle { width: 44px; height: 44px; background: var(--accent-violet); border-radius: 12px; color: white; display: flex; align-items: center; justify-content: center; z-index: 2; box-shadow: 0 0 20px var(--accent-violet-glow); }
.handle-circle svg { width: 20px; height: 20px; }
.compare-label { position: absolute; bottom: 24px; padding: 12px 24px; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); border-radius: 12px; font-weight: 800; font-size: 1.35rem; border: 1.5px solid rgba(255,255,255,0.15); letter-spacing: 0.5px; pointer-events: none; user-select: none; -webkit-user-select: none; }
.l-before { left: 54px; color: white; }
.l-after { right: 54px; color: var(--accent-violet); }

@media (max-width: 768px) {
  .compare-label {
    bottom: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
    border-width: 1px;
    letter-spacing: 1px;
  }
  .l-before {
    left: 12px;
  }
  .l-after {
    right: 12px;
  }
}

/* =========================================
   ЛАУНЧЕР
   ========================================= */
.ecosystem-section { padding: var(--space-premium) 0; position: relative; z-index: 10; font-family: var(--font-main), sans-serif; }
.ecosystem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.eco-text-content h2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 24px; color: white; }
.eco-text-content p { color: var(--text-secondary); font-size: 1.15rem; line-height: 1.6; margin-bottom: 48px; max-width: 90%; }
.eco-features { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.eco-features li { display: flex; gap: 20px; align-items: flex-start; }
.eco-icon { width: 56px; height: 56px; min-width: 56px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--accent-violet); }
.eco-icon svg { width: 28px; height: 28px; }
.eco-features h4 { font-size: 1.2rem; font-weight: 800; color: white; margin-bottom: 8px; }
.eco-features span { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; display: block; }
.eco-visual-content { perspective: 1200px; }

.launcher-mockup-wrapper.photorealistic { background: #1a1a1a; border-radius: 16px; padding: 0; box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1); display: flex; flex-direction: column; overflow: hidden; transform: rotateY(-12deg) rotateX(5deg); transform-style: preserve-3d; transition: transform 0.5s var(--ease-apple); }
.launcher-mockup-wrapper.photorealistic:hover { transform: rotateY(-5deg) rotateX(2deg) scale(1.02); }
.nl-top-bar { height: 28px; background: #2d2d2d; display: flex; align-items: center; padding: 0 12px; position: relative; }
.nl-mac-btns { display: flex; gap: 6px; z-index: 2; }
.mac-btn { width: 10px; height: 10px; border-radius: 50%; }
.mac-btn.close { background: #ff5f56; } .mac-btn.min { background: #ffbd2e; } .mac-btn.max { background: #27c93f; }
.nl-title { position: absolute; left: 0; width: 100%; text-align: center; color: #a0a0a0; font-size: 12px; font-weight: 600; pointer-events: none; }
.nl-main-bg { flex-grow: 1; position: relative; display: flex; justify-content: center; align-items: center; height: 500px; overflow: hidden; }
.nl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: brightness(1) saturate(1.1); }
.nl-glass-card { position: relative; z-index: 2; width: 360px; background: rgba(18, 18, 26, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.06); border-radius: 28px; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.nl-avatar-ring { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--accent-violet); background: transparent; display: flex; justify-content: center; align-items: center; margin-bottom: 24px; }
.nl-avatar-text { font-size: 32px; font-weight: 800; color: white; }
.nl-welcome { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.nl-username { font-size: 26px; font-weight: 800; color: white; margin-bottom: 36px; }
.nl-version-toggle { display: flex; background: rgba(0,0,0,0.3); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 14px; width: 100%; padding: 4px; margin-bottom: 24px; height: 48px; }
.nl-v-btn { flex: 1; text-align: center; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.5); border-radius: 10px; cursor: pointer; transition: 0.3s; }
.nl-v-btn.active { background: var(--accent-violet); color: white; box-shadow: 0 2px 10px rgba(162, 89, 255, 0.3); }
.nl-play-button { width: 100%; background: var(--accent-violet); color: white; border: none; height: 52px; border-radius: 14px; font-size: 16px; font-weight: 800; letter-spacing: 0.05em; cursor: pointer; transition: 0.3s; text-transform: uppercase; box-shadow: 0 4px 15px rgba(162, 89, 255, 0.2); }
.nl-play-button:hover { background: var(--accent-violet-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(162, 89, 255, 0.4); }

/* =========================================
   ТАРИФЫ
   ========================================= */
.pricing-v2 { padding: var(--space-premium) 0; font-family: var(--font-main), sans-serif; margin-bottom: 60px; }
.pricing-grid-premium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: stretch; padding: 0 40px;}
.price-card-v4 {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    gap: 14px;
}
.price-content-top {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}
.price-title-v4 {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--accent-violet);
    text-transform: uppercase;
}
.price-mini-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
.price-value-v2 {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 20px;
}
.price-card-v4:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-10px);
    border-color: var(--accent-violet);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(162, 89, 255, 0.1);
}
.popular-label-drip { 
    position: absolute; 
    top: -14px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #fff; 
    color: #000; 
    padding: 5px 16px; 
    border-radius: 4px; 
    font-weight: 900; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    z-index: 10;
}
.price-card-v4.featured-v4 { padding-top: 65px !important; }
.profile-basic-info h2 { font-size: 2.2rem; font-weight: 900; color: #ffffff; margin-bottom: 8px; letter-spacing: -0.03em; text-shadow: 0 0 30px rgba(162, 89, 255, 0.5); background: linear-gradient(135deg, #fff 0%, #a259ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.profile-basic-info p { color: var(--text-secondary); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }

/* Role Badges */
.role-badge-premium { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: linear-gradient(135deg, rgba(162, 89, 255, 0.25), rgba(122, 59, 208, 0.4)); border: 1px solid rgba(162, 89, 255, 0.4); border-radius: 100px; color: #ffffff; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 0 25px rgba(162, 89, 255, 0.25); text-shadow: 0 0 10px rgba(162, 89, 255, 0.5); }
.role-badge-standard { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 100px; color: #a1a1aa; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.price-tag-v2 { font-size: 1.6rem; font-weight: 800; color: white; margin-bottom: 12px; }
.price-desc-premium { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 48px; flex-grow: 1; line-height: 1.5; }
.price-value-v2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 40px; }
.old-price { color: rgba(255,255,255,0.4); text-decoration: line-through; font-size: 1.4rem; font-weight: 600; }
.new-price-premium { font-size: 4rem; font-weight: 900; color: white; line-height: 1; letter-spacing: -0.04em; }
.new-price-premium em { color: var(--accent-violet); font-style: normal; font-size: 1.8rem; margin-left: 4px; }

/* =========================================
   AUTH & FOOTER
   ========================================= */
.auth-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; justify-content: center; align-items: center; pointer-events: none; opacity: 0; transition: opacity .5s; will-change: opacity; }
.auth-overlay.active { pointer-events: all; opacity: 1; }
.auth-overlay-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(15px); will-change: backdrop-filter; transform: translateZ(0); }
.auth-split-modal { position: relative; z-index: 2; width: 100%; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; background: #0d0d12; border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.8); transform: scale(0.9) translateY(30px); transition: .5s ease; opacity: 0; }
.auth-overlay.active .auth-split-modal { transform: scale(1) translateY(0); opacity: 1; }
.auth-modal-close { position: absolute; top: 18px; right: 18px; z-index: 10; width: 36px; height: 36px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(255,255,255,0.6); transition: 0.2s; }
.auth-modal-close:hover { color: white; background: rgba(255,255,255,0.1); }
.auth-carousel-side { background: rgba(0,0,0,0.2); display: flex; flex-direction: column; min-height: 560px; border-right: 1px solid rgba(255,255,255,0.05); position: relative; }
.auth-carousel { width: 100%; height: 100%; position: absolute; inset: 0; overflow: hidden; }
.auth-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; width: 100%; height: 100%; }
.auth-slide.active { opacity: 1; z-index: 1; }
.auth-slide-img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.auth-slide-text { padding: 32px; background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); position: absolute; bottom: 0; width: 100%; padding-bottom: 50px; z-index: 2; text-align: left; }
.auth-slide-text h3 { font-size: 1.4rem; font-weight: 800; color: white; line-height: 1.35; letter-spacing: -0.02em; }
.auth-carousel-indicators { display: flex; gap: 8px; position: absolute; bottom: 24px; right: 24px; z-index: 3; }
.auth-carousel-indicators .indicator { width: 24px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s; }
.auth-carousel-indicators .indicator.active { background: white; }
.auth-form-side { padding: 48px; display: flex; flex-direction: column; justify-content: center; background: #111116; }
.auth-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 32px; }
.input-field-v2 { position: relative; margin-bottom: 16px; width: 100%; top: 0; }
.input-field-v2 input { width: 100%; box-sizing: border-box; padding: 14px 16px; background: #1a1a24; border: 1px solid rgba(255,255,255,0.02); color: white; font-size: 0.95rem; border-radius: 12px; font-family: var(--font-main); outline: none; transition: .3s; }
.input-field-v2 input:focus { background: #1c1c28; border-color: rgba(162, 89, 255, 0.4); box-shadow: 0 0 10px rgba(162, 89, 255, 0.1); }
.input-field-v2 input::placeholder { color: rgba(255,255,255,0.4); }

.password-field { position: relative; }
.eye-icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.eye-icon:hover { color: white; }
.auth-links { display: flex; font-size: 0.9rem; color: var(--text-secondary); }
.flex-start { justify-content: flex-start; }
.flex-between { justify-content: space-between; }
.auth-link { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.2s; margin-left: 6px; }
.auth-link:hover { color: white; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }

.auth-view { display: none; }
.auth-view.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Turnstile container styling */
.cf-turnstile-container {
    margin: 16px 0;
    display: flex;
    justify-content: center;
}


/* Custom Login/Register Buttons */
#regBtn { background: linear-gradient(90deg, #7b42f6, #a67cff); border-radius: 12px; border: none; box-shadow: 0 4px 20px rgba(123, 66, 246, 0.4); color: white; cursor: pointer; transition: 0.3s; }
#regBtn:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(123, 66, 246, 0.6); background: linear-gradient(90deg, #8c57ff, #b795ff); }

.site-footer-v2 { padding: 90px 0 40px; background: var(--bg-absolute); border-top: 1px solid rgba(255,255,255,0.05); position: relative; z-index: 100; font-family: var(--font-main), sans-serif; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
.foot-copy { color: var(--text-secondary); font-size: 0.95rem; margin-top: 16px; }
.footer-links-premium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.foot-col h4 { color: white; font-weight: 600; margin-bottom: 24px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em; }
.foot-col a, .foot-col button { display: block; color: var(--text-secondary); text-decoration: none; font-size: 1rem; margin-bottom: 12px; transition: color 0.3s; background: none; border: none; cursor: pointer; text-align: left; padding: 0;}
.foot-col a:hover, .foot-col button:hover { color: var(--accent-violet); }

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */
.nova-toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    width: 320px;
    max-width: calc(100vw - 48px);
}
.nova-toast {
    pointer-events: auto;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.03);
    animation: toast-slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}
.nova-toast.hiding {
    animation: toast-fade-out 0.4s ease forwards;
}
.nova-toast-icon {
    width: 36px; height: 36px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.nova-toast.success .nova-toast-icon { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.nova-toast.error .nova-toast-icon   { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.nova-toast.warning .nova-toast-icon { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.nova-toast-body { flex: 1; min-width: 0; }
.nova-toast-title { font-size: 0.85rem; font-weight: 800; color: #fff; margin-bottom: 2px; }
.nova-toast-msg { font-size: 0.78rem; color: #a1a1aa; line-height: 1.4; font-weight: 500; }

/* ─── Universal purchase-success overlay (Apple celebration) ─── */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 2, 6, 0.55);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483645;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.success-overlay.visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.15s ease-out;
}
.success-card {
    background: linear-gradient(180deg, rgba(22, 18, 32, 0.96), rgba(12, 10, 20, 0.98));
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 28px;
    padding: 38px 48px 32px;
    text-align: center;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(34, 197, 94, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: scale(0.94) translateY(8px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    max-width: 92vw;
    min-width: 280px;
}
.success-overlay.visible .success-card {
    transform: scale(1) translateY(0);
    opacity: 1;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease-out;
}
.success-check {
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.success-check circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 0;
}
.success-check path {
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
}
.success-overlay.visible .success-check circle {
    animation: success-draw-circle 0.55s ease-out backwards;
}
.success-overlay.visible .success-check path {
    animation: success-draw-check 0.4s 0.45s ease-out backwards;
}
@keyframes success-draw-circle { from { stroke-dashoffset: 151; } to { stroke-dashoffset: 0; } }
@keyframes success-draw-check  { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.success-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.success-sub {
    font-size: 0.95rem;
    color: #bbf7d0;
    font-weight: 700;
}
@media (max-width: 480px) {
    .success-card { padding: 30px 32px 26px; min-width: 240px; }
    .success-check { width: 68px; height: 68px; }
    .success-title { font-size: 1.2rem; }
    .success-sub { font-size: 0.85rem; }
}
.nova-toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #a1a1aa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    line-height: 1;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.nova-toast-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: scale(1.06);
}
.nova-toast-close:active { transform: scale(0.94); }
.nova-toast-progress {
    position: absolute;
    left: 0; bottom: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, rgba(162, 89, 255, 0.9), rgba(99, 102, 241, 0.7));
    transform-origin: left;
    animation: toast-progress 4s linear forwards;
}
.nova-toast.success .nova-toast-progress { background: linear-gradient(90deg, #4ade80, #22c55e); }
.nova-toast.error   .nova-toast-progress { background: linear-gradient(90deg, #f87171, #ef4444); }
.nova-toast.warning .nova-toast-progress { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes toast-slide-in { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-fade-out { to { transform: scale(0.95); opacity: 0; } }

/* =========================================
   USER MENU (LOGGED IN NAVBAR)
   ========================================= */
.user-nav-menu { 
    position: relative; 
    display: flex !important; 
    align-items: center; 
    z-index: 1000000 !important;
    pointer-events: auto !important;
}
.user-nav-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    cursor: pointer !important;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
    pointer-events: auto !important;
    user-select: none;
    position: relative;
    z-index: 2147483647;
}
/* Force every descendant of the trigger to be transparent to clicks so the
   trigger itself receives every tap (avatar / name / chevron all bubble up). */
.user-nav-trigger * { pointer-events: none !important; }
.user-nav-trigger:hover { 
    background: rgba(12, 8, 18, 0.8) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-color: rgba(162, 89, 255, 0.3) !important;
}
.user-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, #a259ff, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(162, 89, 255, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}
.user-nav-name { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }
.user-nav-chevron { width: 18px; height: 18px; color: rgba(255,255,255,0.3); transition: 0.3s; }
.user-nav-menu.open .user-nav-chevron { transform: rotate(180deg); }
.user-nav-chevron { transition: transform 0.3s var(--ease-apple); }

.user-nav-dropdown-v2 {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 270px;
    /* Translucent Apple-glass: only the small dropdown surface is blurred,
       the rest of the page (and the navbar) stay sharp. */
    background: rgba(20, 17, 28, 0.55) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 22px !important;
    padding: 8px !important;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(162, 89, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    display: none !important;
    opacity: 0;
    visibility: hidden;
    z-index: 2147483647 !important;
    transform-origin: top right;
    animation: none; /* Only animate when open */
    overflow: hidden;
    will-change: opacity, transform;
    transform: translateZ(0);
}

/* No page-wide backdrop overlay — the rest of the page stays sharp.
   Keeping the rule here as an empty stub so legacy `.open` selector doesn't
   break if ever referenced. */
.user-nav-menu::before { content: none; }

@keyframes nova-dropdown-premium-in {
    from { opacity: 0; transform: scale(0.96) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes nova-apple-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.user-nav-dropdown-v2::before {
    content: 'ACCOUNT';
    display: block;
    font-size: 0.65rem;
    font-weight: 900;
    color: #71717a;
    letter-spacing: 2px;
    margin: 8px 16px 12px;
    opacity: 0.8;
}

.user-nav-menu.open .user-nav-dropdown-v2 {
    display: block !important;
    opacity: 1;
    visibility: visible;
    animation: nova-dropdown-premium-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.user-nav-dropdown-v2 a, .user-nav-dropdown-v2 button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    line-height: 1;
}
.user-nav-dropdown-v2 a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}
.user-nav-dropdown-v2 a:hover .dropdown-icon { 
    color: #a259ff !important; 
    opacity: 1; 
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(162, 89, 255, 0.4));
}

.user-nav-dropdown-v2 .logout-item:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}
.user-nav-dropdown-v2 .logout-item:hover .dropdown-icon {
    color: #ef4444 !important;
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}


.dropdown-icon { width: 18px; height: 18px; opacity: 0.5; transition: 0.3s; margin-bottom: 1px; }

.user-nav-dropdown-v2 .dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 6px 12px;
}
/* Hover bridge */
.user-nav-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 10;
}
.logout-item { color: #f87171 !important; }
.logout-item:hover { background: rgba(248, 113, 113, 0.08) !important; }

.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; height: 100vh; padding-top: 84px; box-sizing: border-box; max-width: 1600px; margin: 0 auto; position: relative; z-index: 100; }
.profile-sidebar { background: #08080c; border-right: 1px solid rgba(255,255,255,0.03); padding: 48px 0; height: 100%; overflow-y: auto; }
.profile-sidebar-title { padding: 0 32px; font-size: 1.4rem; font-weight: 900; color: white; margin-bottom: 40px; letter-spacing: -0.02em; }
.profile-sidebar-nav { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.profile-sidebar-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: #52525b; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: all 0.3s var(--ease-apple); border-radius: 16px; border: 1px solid transparent; text-transform: uppercase; letter-spacing: 0.5px; }
.profile-sidebar-nav a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.05); transform: translateX(4px); }
.profile-sidebar-nav a.active { color: #ffffff; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.profile-sidebar-nav a.active .sidebar-icon { color: #a259ff; }
.profile-sidebar-nav a.active .sidebar-icon { color: var(--accent-violet); }
.profile-sidebar-nav .sidebar-icon { width: 22px; height: 22px; color: #3f3f46; transition: 0.2s; }
.profile-sidebar-nav a:hover .sidebar-icon { color: rgba(255,255,255,0.6); }

.profile-main { padding: 48px 64px; height: 100%; overflow-y: auto; scroll-behavior: smooth; }
.profile-breadcrumbs { display: flex; align-items: center; font-size: 0.85rem; color: #3f3f46; margin-bottom: 32px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.profile-breadcrumbs .bc-sep { margin: 0 10px; opacity: 0.3; display: flex; align-items: center; }
.profile-breadcrumbs #breadcrumbCurrent { color: #a259ff; opacity: 1; margin: 0; font-weight: 800; text-shadow: 0 0 15px rgba(162, 89, 255, 0.4); }
.profile-breadcrumbs a { color: #3f3f46; text-decoration: none; transition: 0.2s; }
.profile-breadcrumbs a:hover { color: #ffffff; }
.profile-welcome { font-size: 3rem; font-weight: 900; color: white; margin-bottom: 48px; letter-spacing: -0.04em; }
.profile-welcome .green-accent { color: var(--accent-green); text-shadow: 0 0 20px var(--accent-green-glow); }

.profile-info-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
@media (max-width: 1100px) {
    .profile-info-grid { padding: 0 20px; }
}
.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-label {
    font-size: 0.9rem;
    color: #a1a1aa;
    font-weight: 500;
    opacity: 1;
}
.profile-info-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 12px;
}
.profile-info-value .role-badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 8px 20px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 900;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.profile-password-edit { color: #3f3f46; cursor: pointer; transition: 0.2s; display: flex; padding: 4px; }
.profile-password-edit:hover { color: white; }

.profile-key-section { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 24px; }
.profile-key-section h3 { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 8px; }
.profile-key-section p { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.profile-key-row { display: flex; gap: 10px; }
.profile-key-row input { flex: 1; padding: 14px 16px; background: #1a1a24; border: 1px solid rgba(255,255,255,0.05); color: white; font-size: 0.95rem; border-radius: 12px; font-family: var(--font-main); outline: none; transition: 0.3s; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.profile-key-row input:focus { border-color: rgba(162, 89, 255, 0.4); box-shadow: 0 0 10px rgba(162, 89, 255, 0.1); }
.profile-key-row button { padding: 14px 28px; background: var(--accent-violet); color: white; border: none; border-radius: 12px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: 0.3s; white-space: nowrap; box-shadow: 0 4px 15px rgba(162, 89, 255, 0.3); }
.profile-key-row button:hover { background: var(--accent-violet-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(162, 89, 255, 0.4); }

@media (max-width: 768px) {
    .profile-layout { grid-template-columns: 1fr; }
    .profile-sidebar { display: none; }
    .profile-main { padding: 24px 20px; }
}

/* Removed old redundant media query block */
/* ════════════════════════════════════════════════
   PROFILE SECTIONS SYSTEM
   ════════════════════════════════════════════════ */
.profile-section { display: none; animation: fadeIn 0.4s ease; }
.profile-section.active { display: block; }

.profile-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 36px;
    margin-bottom: 14px;
}
.profile-section-title:first-child,
.profile-welcome + .profile-section-title {
    margin-top: 10px;
}

/* Prevent background scroll when a modal is open */
.profile-main.modal-scroll-lock { overflow-y: hidden !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-small { padding: 8px 16px; font-size: 0.85rem; border-radius: 10px; }

/* Dashboard Sections Visuals */
.balance-card-premium { background: var(--bg-deep); border: 1px solid var(--glass-border-light); padding: 32px; border-radius: 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; background-image: radial-gradient(circle at top right, rgba(162, 89, 255, 0.05), transparent); }
.balance-label { font-size: 0.9rem; color: #52525b; font-weight: 600; margin-bottom: 8px; }
.balance-amount { font-size: 2.5rem; font-weight: 900; color: white; letter-spacing: -0.04em; }

.payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.payment-method-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 24px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; transition: 0.2s; cursor: pointer; text-align: center; }
.payment-method-card:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); transform: translateY(-2px); }
.payment-method-card.active { border-color: var(--accent-violet); background: rgba(162, 89, 255, 0.05); }
.payment-icon { width: 32px; height: 32px; color: var(--accent-violet); }

.transaction-list { display: flex; flex-direction: column; gap: 8px; }
.transaction-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: rgba(255,255,255,0.02); border-radius: 12px; border: 1px solid rgba(255,255,255,0.03); }
.transaction-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.03); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent-green); }

/* Store */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.store-card { background: #0c0c12; border: 1px solid rgba(255,255,255,0.05); padding: 32px; border-radius: 24px; display: flex; flex-direction: column; position: relative; transition: 0.3s; }
.store-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.store-card.featured { border-color: var(--accent-violet); background: radial-gradient(circle at top right, rgba(162, 89, 255, 0.08), #0c0c12); }
.store-card-popular { position: absolute; top: 16px; right: 24px; background: var(--accent-violet); color: white; font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; }
.store-card-badge { font-size: 1rem; font-weight: 800; color: #52525b; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.store-card.featured .store-card-badge { color: var(--accent-violet); }
.store-card-price { font-size: 2.2rem; font-weight: 900; color: white; margin-bottom: 24px; }
.store-card-features { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; flex-grow: 1; }
.store-card-features li { font-size: 0.9rem; color: #a1a1aa; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.store-card-features li svg { width: 14px; height: 14px; color: var(--accent-green); }

/* Configs Store */
.configs-store-search { position: relative; margin-bottom: 32px; }
.configs-store-search input { width: 100%; background: #0c0c12; border: 1px solid rgba(255,255,255,0.08); padding: 16px 20px 16px 52px; border-radius: 12px; color: white; font-family: var(--font-main); font-weight: 600; font-size: 1rem; transition: 0.2s; }
.configs-store-search input:focus { border-color: var(--accent-violet); outline: none; box-shadow: 0 0 15px var(--accent-violet-glow); }
.configs-store-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #3f3f46; transition: 0.2s; }
.configs-store-search input:focus + svg { color: var(--accent-violet); }

.config-item-v2 { display: flex; align-items: center; gap: 16px; padding: 16px; background: rgba(255,255,255,0.02); border-radius: 16px; border: 1px solid rgba(255,255,255,0.03); margin-bottom: 12px; transition: 0.2s; }
.config-item-v2:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.config-icon { width: 44px; height: 44px; background: var(--accent-violet); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.2rem; }
.config-name { font-weight: 700; color: white; font-size: 1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.badge-mini { background: #3f3f46; color: #a1a1aa; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 800; }
.config-meta { font-size: 0.8rem; color: #52525b; font-weight: 600; }

/* Content application */
.content-application-card { background: #0c0c12; border: 1px solid rgba(255,255,255,0.05); padding: 40px; border-radius: 24px; max-width: 600px; }
.media-badge { background: rgba(249, 115, 22, 0.1); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.2); width: fit-content; padding: 4px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 800; margin-bottom: 16px; }
.form-group-v2 { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group-v2 label { font-size: 0.85rem; color: #52525b; font-weight: 700; margin-left: 4px; }
.form-group-v2 input { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px; color: white; font-family: inherit; font-weight: 600; transition: 0.2s; }
.form-group-v2 input:focus { border-color: var(--accent-violet); outline: none; background: rgba(255,255,255,0.04); }

/* Cosmetics */
.cosmetic-category-tabs { display: flex; gap: 12px; margin-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; }
.cos-tab { padding: 8px 16px; font-size: 0.9rem; font-weight: 700; color: #52525b; cursor: pointer; transition: 0.2s; border-radius: 8px; }
.cos-tab:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.03); }
.cos-tab.active { color: white; background: rgba(255,255,255,0.05); }

.cosmetic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cosmetic-item { aspect-ratio: 1; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 16px; cursor: pointer; transition: 0.2s; position: relative; }
.cosmetic-item:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); }
.cosmetic-item.locked::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>') center center / 24px no-repeat; border-radius: 16px; opacity: 0.4; }
.cos-name { font-size: 0.75rem; color: #52525b; font-weight: 700; text-align: center; }
.cosmetic-item:hover .cos-name { color: white; }
.cos-preview { flex-grow: 1; display: flex; align-items: center; justify-content: center; }


/* Download Center */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.download-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 40px; text-align: center; transition: 0.3s; }
.download-card:hover { border-color: var(--accent-violet); background: rgba(162, 89, 255, 0.04); }
.download-card h3 { font-size: 1.5rem; margin-bottom: 12px; font-weight: 800; }
.download-card p { color: rgba(255,255,255,0.5); margin-bottom: 30px; font-size: 0.9rem; font-weight: 500; }

/* Configs List */
.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 12px;
}
.config-name { font-weight: 700; color: white; }
.config-meta { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
/* =========================================
   ELITE DASHBOARD ENHANCEMENTS (v306)
   ========================================= */

/* Compact Author Code Bar */
.promo-bar-premium {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(162, 89, 255, 0.05);
    border: 1px solid rgba(162, 89, 255, 0.15);
    border-radius: 20px;
    padding: 15px 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}
.promo-bar-premium:hover { background: rgba(162, 89, 255, 0.08); border-color: rgba(162, 89, 255, 0.3); }
.promo-input-premium-mini {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 10px 15px;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    width: 160px;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.promo-input-premium-mini:focus { border-color: #a259ff; outline: none; box-shadow: 0 0 15px rgba(162, 89, 255, 0.2); }

/* Support Hub Grid */
.support-hub-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.support-chip-v3 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s var(--ease-apple);
    cursor: pointer;
}
.support-chip-v3:hover { 
    transform: translateY(-8px); 
    border-color: rgba(162, 89, 255, 0.3); 
    background: rgba(162, 89, 255, 0.04);
}
.support-chip-icon {
    width: 60px; height: 60px;
    background: rgba(162, 89, 255, 0.08);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: #a259ff;
    transition: all 0.3s ease;
}
.support-chip-v3:hover .support-chip-icon {
    background: #a259ff;
    color: white;
    box-shadow: 0 0 20px rgba(162, 89, 255, 0.4);
}

/* =========================================
   ELITE BALANCE DASHBOARD (v310)
   ========================================= */

/* Premium Balance Card */
.balance-card-premium {
    background: linear-gradient(135deg, #1a1a24 0%, #0d0d12 100%);
    border: 1px solid rgba(162, 89, 255, 0.2);
    border-radius: 28px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    min-height: 180px;
}
@media (max-width: 768px) {
    .balance-card-premium {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 30px 20px;
        align-items: center;
        justify-content: center;
    }
    .profile-mobile-tabs a.active {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }
    .profile-mobile-tabs a.active svg {
        color: #a259ff !important;
        transform: scale(1.05);
    }
}
.balance-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(162, 89, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.balance-card-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--accent-violet);
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

/* Payment Methods Grid Upgrade */
.payment-grid-premium {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}
.payment-item-v3 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.payment-item-v3::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.payment-item-v3 > * {
    position: relative;
    z-index: 1;
}
.payment-item-v3:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.payment-item-v3:hover::before {
    opacity: 1;
}
.payment-item-v3:hover .payment-icon-v3 {
    transform: scale(1.1) rotate(-3deg);
    background: rgba(255, 255, 255, 0.08);
}
.payment-item-v3.active {
    background: rgba(162, 89, 255, 0.08);
    border-color: rgba(162, 89, 255, 0.6);
    box-shadow: 0 0 25px rgba(162, 89, 255, 0.15), inset 0 0 10px rgba(162, 89, 255, 0.05);
}
.payment-item-v3.active .payment-icon-v3 {
    color: #fff;
    background: linear-gradient(135deg, #a259ff, #d659ff);
    box-shadow: 0 0 15px rgba(162, 89, 255, 0.4);
    transform: scale(1.1);
}
.payment-icon-v3 {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52525b;
    transition: all 0.3s ease;
}

/* Transaction List Styling */
.transaction-item-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s;
}
.transaction-item-premium:hover { background: rgba(255,255,255,0.01); }
.transaction-item-premium:last-child { border-bottom: none; }

/* ================================================
   BALANCE / TOP-UP (v320)
   ================================================ */
.denom-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    padding: 18px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: #eeeeff;
    font-weight: 800; font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
    user-select: none;
}
.denom-btn:hover { border-color: rgba(162, 89, 255, 0.4); background: rgba(162, 89, 255, 0.05); }
.denom-btn:active { transform: scale(0.97); }
.denom-btn.selected {
    border-color: #a259ff;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.18), rgba(122, 59, 208, 0.1));
    box-shadow: 0 8px 26px rgba(162, 89, 255, 0.25);
}
.denom-btn .denom-label { font-size: 0.7rem; color: #71717a; font-weight: 600; letter-spacing: 0.05em; }

/* Transaction rows — receipt style */
.tx-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    gap: 14px;
    transition: background 0.2s ease;
}
.tx-row:hover { background: rgba(255,255,255,0.02); }
.tx-row:last-child { border-bottom: none; }

.tx-icon-wrap {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.tx-icon-wrap.topup  { background: rgba(126,242,157,0.1); color: #7ef29d; }
.tx-icon-wrap.charge { background: rgba(255,107,107,0.1); color: #ff6b6b; }
.tx-icon-wrap.refund { background: rgba(255,209,102,0.1); color: #ffd166; }
.tx-icon-wrap.bonus  { background: rgba(162,89,255,0.1);  color: #a259ff; }

.tx-kind {
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 6px;
}
.tx-kind.topup     { color: #7ef29d; background: rgba(126, 242, 157, 0.08); }
.tx-kind.charge    { color: #ff6b6b; background: rgba(255, 107, 107, 0.08); }
.tx-kind.refund    { color: #ffd166; background: rgba(255, 209, 102, 0.08); }
.tx-kind.bonus     { color: #a259ff; background: rgba(162, 89, 255, 0.08); }

.tx-method-badge {
    font-size: 0.65rem; font-weight: 700; color: #71717a;
    background: rgba(255,255,255,0.04); padding: 2px 7px; border-radius: 4px;
    letter-spacing: 0.03em;
}
.tx-note {
    font-size: 0.78rem; color: #a1a1aa; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: block;
}
.tx-meta {
    font-size: 0.7rem; color: #52525b; letter-spacing: 0.02em;
}

.tx-amount.positive { color: #7ef29d; font-weight: 800; font-size: 0.95rem; }
.tx-amount.negative { color: #ff6b6b; font-weight: 800; font-size: 0.95rem; }
.tx-status {
    font-size: 0.65rem; color: #71717a; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.tx-status.pending   { color: #ffd166; }
.tx-status.confirmed { color: #7ef29d; }
.tx-status.failed, .tx-status.canceled { color: #ff6b6b; }

/* Lifetime subscription badge */
.sub-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 100px;
    font-size: 0.8rem; font-weight: 800;
}
.sub-badge.sub-active   { background: rgba(126, 242, 157, 0.1); color: #7ef29d; }
.sub-badge.sub-expired  { background: rgba(255, 107, 107, 0.08); color: #ff6b6b; }
.sub-badge.sub-lifetime {
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.25), rgba(255, 209, 102, 0.2));
    color: #fff;
    box-shadow: 0 0 14px rgba(162, 89, 255, 0.35);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Subscription state hero card (profile → account)
   Three visual states: lifetime (amber glow), active (green), expired (red).
   ========================================================================== */
.sub-state-card {
    position: relative;
    border-radius: 24px;
    padding: 26px 28px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.sub-state-card:hover { transform: translateY(-2px); }
.sub-state-card .sub-state-glow {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(162,89,255,0.15) 0%, transparent 55%);
    z-index: 0; pointer-events: none;
    opacity: 0.7;
}
.sub-state-card.sub-state-lifetime {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(162,89,255,0.08));
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.12);
}
.sub-state-card.sub-state-lifetime .sub-state-glow {
    background: radial-gradient(circle at 80% 20%, rgba(245,158,11,0.22) 0%, transparent 60%);
    opacity: 1;
}
.sub-state-card.sub-state-active {
    border-color: rgba(34, 197, 94, 0.28);
    background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(162,89,255,0.04));
}
.sub-state-card.sub-state-active .sub-state-glow {
    background: radial-gradient(circle at 15% 40%, rgba(34,197,94,0.16) 0%, transparent 55%);
}
.sub-state-card.sub-state-expired {
    border-color: rgba(239, 68, 68, 0.22);
    background: linear-gradient(135deg, rgba(239,68,68,0.04), rgba(15,15,20,0.6));
}
.sub-state-card.sub-state-expired .sub-state-glow {
    background: radial-gradient(circle at 20% 50%, rgba(239,68,68,0.1) 0%, transparent 55%);
}
.sub-state-card.sub-state-loading {
    border-color: rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.015);
}
.sub-state-body {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.sub-state-left { flex-grow: 1; min-width: 220px; }
.sub-state-label {
    font-size: 0.7rem; font-weight: 800;
    letter-spacing: 2.4px; text-transform: uppercase;
    color: #a1a1aa; margin-bottom: 10px;
}
.sub-state-card.sub-state-lifetime .sub-state-label { color: #fbbf24; }
.sub-state-card.sub-state-active   .sub-state-label { color: #22c55e; }
.sub-state-card.sub-state-expired  .sub-state-label { color: #ef4444; }
.sub-state-title {
    font-size: 1.8rem; font-weight: 900; letter-spacing: -0.5px;
    color: #fff; line-height: 1.15;
    display: flex; align-items: center; gap: 12px;
}
.sub-state-sub {
    margin-top: 8px; font-size: 0.88rem; color: #a1a1aa; font-weight: 500;
}
.sub-state-right {
    display: flex; align-items: center; gap: 18px;
}
.sub-state-days {
    display: flex; flex-direction: column; align-items: center;
    min-width: 84px;
    padding: 12px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.sub-state-card.sub-state-lifetime .sub-state-days {
    background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25);
}
.sub-state-card.sub-state-active .sub-state-days {
    background: rgba(34,197,94,0.06); border-color: rgba(34,197,94,0.25);
}
.sub-state-days-value {
    font-size: 2rem; font-weight: 950; color: #fff; line-height: 1;
    letter-spacing: -1px;
}
.sub-state-days-unit {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; color: #a1a1aa; margin-top: 4px;
}

/* ==========================================================================
   Nova modal — shared polished dialog used for change-password & plan confirm
   ========================================================================== */
.nova-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: flex-start; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    z-index: 2100000;
    padding: 40px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    will-change: opacity;
    transform: translateZ(0);
}
.nova-modal-overlay.visible { opacity: 1; visibility: visible; }
.nova-modal {
    position: relative;
    width: 100%; max-width: 464px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(162, 89, 255, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(24, 22, 34, 0.97) 0%, rgba(12, 11, 20, 0.98) 100%);
    border: 1px solid rgba(162, 89, 255, 0.28);
    border-radius: 26px;
    padding: 36px 34px 28px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 70px rgba(162, 89, 255, 0.12);
    transform: translateY(12px) scale(0.96);
    transition: transform 0.26s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nova-modal-overlay.visible .nova-modal { transform: translateY(0) scale(1); }
.nova-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #a1a1aa; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.nova-modal-close:hover {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.3);
    color: #ef4444;
}
.nova-modal-header { text-align: center; margin-bottom: 24px; }
.nova-modal-icon {
    width: 62px; height: 62px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.28), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(162, 89, 255, 0.38);
    color: #b884ff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 10px 30px rgba(162, 89, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.nova-modal-header h3 {
    font-size: 1.55rem; font-weight: 900; color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
}
.nova-modal-header p {
    font-size: 0.85rem; color: #a1a1aa; margin: 0;
}
.nova-modal-form { display: flex; flex-direction: column; gap: 14px; }
.nova-field { display: flex; flex-direction: column; gap: 6px; }
.nova-field > span {
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.6px; color: #71717a;
}
.nova-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 13px;
    padding: 13px 15px;
    color: #fff; font-size: 0.95rem; font-weight: 500;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nova-field input:focus {
    outline: none;
    border-color: rgba(162, 89, 255, 0.5);
    background: rgba(162, 89, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.08);
}
.nova-strength {
    height: 4px; border-radius: 2px;
    background: rgba(255,255,255,0.05);
    overflow: hidden; margin-top: 2px;
}
.nova-strength-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
    transition: width 0.25s ease;
}
.nova-modal-msg {
    min-height: 18px; font-size: 0.82rem; font-weight: 600;
    color: #a1a1aa; text-align: center;
}
.nova-modal-msg.err     { color: #ef4444; }
.nova-modal-msg.ok      { color: #22c55e; }
.nova-modal-actions {
    display: flex; gap: 10px; margin-top: 8px;
}
.nova-modal-actions .btn { flex: 1; }

/* Plan-confirmation rows */
.plan-confirm-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem; color: #a1a1aa;
}
.plan-confirm-row:last-child { border-bottom: none; }
.plan-confirm-row b { color: #fff; font-weight: 800; }
.plan-confirm-row-final {
    margin-top: 4px; padding-top: 14px;
    border-top: 1px solid rgba(162, 89, 255, 0.2);
    border-bottom: none;
    font-size: 1rem;
}
.plan-confirm-row-final b { color: #a259ff; font-size: 1.2rem; }

/* Shop card — current plan highlight */
.shop-card.is-current {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.06) !important;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.12);
}
.shop-card .shop-current-badge {
    display: none;
    position: absolute; top: 12px; left: 12px;
    background: #22c55e;
    color: #000; font-size: 0.65rem; font-weight: 900;
    padding: 4px 8px; border-radius: 8px;
    letter-spacing: 0.8px; text-transform: uppercase;
}
.shop-card.is-current .shop-current-badge { display: block; }
.shop-card.is-current .buy-plan-btn { display: none; }
.shop-card .current-plan-note {
    display: none; margin-top: 8px;
    font-size: 0.75rem; color: #22c55e; font-weight: 700;
}
.shop-card.is-current .current-plan-note { display: block; }

/* Denomination button polishing (already existed, enhance selected state) */
.denom-btn {
    position: relative; overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.denom-btn:hover:not(.selected) { transform: translateY(-1px); }
.denom-btn.selected {
    box-shadow: 0 8px 22px rgba(162, 89, 255, 0.35);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════════════════
   Payment method modal — card / sbp / crypto
   ═══════════════════════════════════════════════════════════════════════ */
.pay-modal { max-width: 480px; overflow: hidden; position: relative; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.pay-body { position: relative; transition: opacity 0.25s ease, filter 0.25s ease; overflow-y: auto; overflow-x: hidden; max-height: calc(100vh - 220px); padding-right: 4px; margin-right: -4px; }
.pay-body::-webkit-scrollbar { width: 6px; }
.pay-body::-webkit-scrollbar-thumb { background: rgba(162, 89, 255, 0.3); border-radius: 3px; }
.pay-modal.is-success .pay-body { opacity: 0.15; filter: blur(3px); pointer-events: none; }
.pay-pane { display: flex; flex-direction: column; gap: 14px; }
.cc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Credit card visual */
.credit-card-preview {
    position: relative;
    height: 180px;
    border-radius: 18px;
    margin-bottom: 22px;
    padding: 22px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(162, 89, 255, 0.9) 0%, rgba(109, 40, 217, 0.9) 55%, rgba(30, 18, 69, 1) 100%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.14) 0%, transparent 50%);
    background-blend-mode: screen, normal;
    box-shadow: 0 20px 45px rgba(109, 40, 217, 0.35), inset 0 0 0 1px rgba(255,255,255,0.08);
    overflow: hidden;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    transform: translateZ(0);
}
.credit-card-preview::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 120% 110%, rgba(255,255,255,0.15) 0%, transparent 45%);
    pointer-events: none;
}
.cc-chip {
    width: 42px; height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #d4c179, #8a741f);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -2px 0 rgba(0,0,0,0.25);
    position: relative;
}
.cc-chip::before, .cc-chip::after {
    content: ''; position: absolute; inset: 5px 4px;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 3px;
}
.cc-chip::after { inset: 8px 4px 9px; border-top: 0; border-bottom: 0; }
.cc-brand {
    position: absolute; top: 22px; right: 22px;
    font-size: 0.85rem; font-weight: 900; letter-spacing: 2px;
    color: rgba(255,255,255,0.9);
    font-family: 'Manrope', sans-serif;
}
.cc-number {
    position: absolute; left: 22px; right: 22px; top: 90px;
    font-size: 1.4rem; letter-spacing: 3px; font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
    transition: letter-spacing 0.3s ease;
}
.cc-footer {
    position: absolute; left: 22px; right: 22px; bottom: 22px;
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 14px;
    font-size: 0.72rem;
}
.cc-foot-col { display: flex; flex-direction: column; min-width: 0; max-width: 62%; }
.cc-foot-right { text-align: right; align-items: flex-end; }
.cc-footer span { color: rgba(255,255,255,0.55); font-size: 0.6rem; letter-spacing: 1.5px; margin-bottom: 3px; font-family: 'Manrope', sans-serif; display: block; }
.cc-footer b { font-weight: 700; letter-spacing: 1.5px; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* SBP hero */
.sbp-hero {
    display: flex; flex-direction: column; align-items: center;
    padding: 28px 20px 22px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0));
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: 16px;
    gap: 10px;
}
.sbp-logo {
    font-size: 1.8rem; font-weight: 900; letter-spacing: 4px;
    background: linear-gradient(135deg, #10b981, #6366f1 60%, #ec4899);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sbp-sub { font-size: 0.8rem; color: #a1a1aa; text-align: center; }

/* Crypto hero */
.crypto-hero {
    display: flex; gap: 18px; margin-bottom: 18px;
    padding: 18px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 16px;
    align-items: center;
}
.qr-frame {
    width: 120px; height: 120px; flex-shrink: 0;
    position: relative;
    background: #fff; border-radius: 12px; padding: 8px;
    box-shadow: 0 6px 18px rgba(162, 89, 255, 0.25);
}
.qr-pattern {
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 15% 15%, #000 0 14%, transparent 14.5%),
        radial-gradient(circle at 85% 15%, #000 0 14%, transparent 14.5%),
        radial-gradient(circle at 15% 85%, #000 0 14%, transparent 14.5%),
        linear-gradient(90deg, #000 50%, transparent 50%),
        linear-gradient(0deg, #000 50%, transparent 50%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 8px 8px, 8px 8px;
    image-rendering: pixelated;
    position: relative;
}
.qr-logo {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 34px; height: 34px;
    background: #a259ff; color: #fff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.1rem;
    box-shadow: 0 0 0 4px #fff;
}
.crypto-info { flex: 1; min-width: 0; }
.crypto-label { font-size: 0.7rem; color: #a1a1aa; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.crypto-address {
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 8px 10px; margin-bottom: 8px;
}
.crypto-address code {
    flex: 1; font-size: 0.78rem; color: #e4e4e7;
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.crypto-copy {
    background: rgba(162, 89, 255, 0.15); border: 1px solid rgba(162, 89, 255, 0.3);
    color: #a259ff; border-radius: 8px; padding: 6px 8px; cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.crypto-copy:hover { background: rgba(162, 89, 255, 0.3); }
.crypto-copy:active { transform: scale(0.94); }
.crypto-note { font-size: 0.72rem; color: #71717a; line-height: 1.45; }

/* Shared select styling inside nova-field */
.nova-field select {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    background: rgba(0,0,0,0.35); color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.92rem; font-weight: 600; font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23a259ff' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px; cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.nova-field select:hover { border-color: rgba(162, 89, 255, 0.4); }
.nova-field select:focus { outline: none; border-color: #a259ff; box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.15); }

/* Success overlay */
.pay-success {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px;
    opacity: 0; pointer-events: none;
    transform: scale(0.92);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.08) 0%, rgba(10, 7, 22, 0.96) 70%);
    backdrop-filter: blur(6px);
    border-radius: inherit;
}
.pay-modal.is-success .pay-success { opacity: 1; pointer-events: auto; transform: scale(1); }
.pay-success-check { width: 84px; height: 84px; }
.pay-success-check circle { stroke-dasharray: 151; stroke-dashoffset: 0; }
.pay-success-check path   { stroke-dasharray: 60;  stroke-dashoffset: 0; }
.pay-modal.is-success .pay-success-check circle { animation: pay-draw-circle 0.5s ease-out backwards; }
.pay-modal.is-success .pay-success-check path   { animation: pay-draw-check  0.35s 0.4s ease-out backwards; }
@keyframes pay-draw-circle { from { stroke-dashoffset: 151; } to { stroke-dashoffset: 0; } }
@keyframes pay-draw-check  { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.pay-success-title { font-size: 1.25rem; font-weight: 800; color: #fff; }
.pay-success-sub   { font-size: 0.95rem; color: #bbf7d0; font-weight: 700; }

/* Button processing state with inline spinner */
.btn-processing { pointer-events: none; opacity: 0.85; position: relative; color: transparent !important; }
.btn-processing::after {
    content: ''; position: absolute; inset: 0; margin: auto;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pay-spin 0.7s linear infinite;
}
@keyframes pay-spin { to { transform: rotate(360deg); } }

/* Saved-cards chip row */
.saved-cards {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px;
}
.saved-cards-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.saved-cards-head span {
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px;
    font-weight: 800; color: #71717a;
}
.saved-cards-clear {
    background: none; border: none; color: #a259ff;
    font-size: 0.72rem; font-weight: 700; cursor: pointer; padding: 0;
    transition: color 0.15s;
}
.saved-cards-clear:hover { color: #ef4444; }
.saved-cards-list { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-card-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 10px 8px 12px;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.15), rgba(109, 40, 217, 0.1));
    border: 1px solid rgba(162, 89, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
    font-size: 0.82rem; font-weight: 700; color: #e4e4e7;
}
.saved-card-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(162, 89, 255, 0.6);
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.25), rgba(109, 40, 217, 0.18));
}
.saved-card-chip .sc-brand {
    font-size: 0.6rem; font-weight: 900; letter-spacing: 1.2px;
    padding: 2px 6px; border-radius: 4px;
    background: rgba(162, 89, 255, 0.25); color: #c4b5fd;
}
.saved-card-chip .sc-last4 { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.saved-card-chip .sc-del {
    background: none; border: none; color: #71717a; cursor: pointer;
    padding: 2px 4px; font-size: 1rem; line-height: 1;
    transition: color 0.12s;
}
.saved-card-chip .sc-del:hover { color: #ef4444; }

/* Save-card toggle switch */
.save-card-toggle {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; user-select: none;
    padding: 2px 0;
}
.save-card-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.save-card-track {
    position: relative; flex-shrink: 0;
    width: 36px; height: 20px; border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s, border-color 0.2s;
}
.save-card-dot {
    position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #a1a1aa;
    transition: transform 0.2s ease, background 0.2s;
}
.save-card-toggle input:checked ~ .save-card-track {
    background: rgba(162, 89, 255, 0.35);
    border-color: rgba(162, 89, 255, 0.5);
}
.save-card-toggle input:checked ~ .save-card-track .save-card-dot {
    transform: translateX(16px); background: #ffffff;
}
.save-card-label { font-size: 0.82rem; color: #a1a1aa; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   CONFIGS HEADER (desktop default)
   ═══════════════════════════════════════════════════════════ */
.configs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.configs-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   APPLE-STYLE MOBILE BURGER (header)
   ═══════════════════════════════════════════════════════════ */
.nav-burger {
    display: none;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 8px;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.nav-burger:active { background: rgba(162,89,255,0.12); border-color: rgba(162,89,255,0.3); }
.nav-burger span {
    display: block;
    width: 18px; height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.nav-burger span::before,
.nav-burger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
body.nav-drawer-open .nav-burger span { background: transparent; }
body.nav-drawer-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
body.nav-drawer-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

/* Slide-down nav drawer (mobile) */
.mobile-nav-drawer {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9990;
    background: rgba(10,10,15,0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 88px 22px 28px;
    transform: translateY(-110%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
body.nav-drawer-open .mobile-nav-drawer {
    transform: translateY(0);
    pointer-events: auto;
}
.mobile-nav-drawer a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-drawer a:last-child { border-bottom: none; }
.mobile-nav-drawer a::after {
    content: '›';
    color: #71717a;
    font-size: 1.4rem;
    font-weight: 400;
}
.mobile-nav-drawer .mnd-cta {
    margin-top: 22px;
    display: flex;
    gap: 10px;
}
.mobile-nav-drawer .mnd-cta .btn { flex: 1; height: 50px; border-radius: 14px; }

/* ═══════════════════════════════════════════════════════════
   PROFILE: MOBILE TAB BAR (replaces sidebar on phones)
   ═══════════════════════════════════════════════════════════ */
.profile-mobile-tabs {
    display: none;
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 10000 !important; /* Always on top */
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.profile-mobile-tabs::-webkit-scrollbar { display: none; }
.profile-mobile-tabs .pmt-track {
    display: flex;
    gap: 6px;
    min-width: max-content;
}
.profile-mobile-tabs a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    border: 1px solid transparent;
}
.profile-mobile-tabs a svg {
    width: 16px; height: 16px; flex-shrink: 0;
    color: currentColor;
    opacity: 0.8;
}
.profile-mobile-tabs a.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(162,89,255,0.32), rgba(122,59,208,0.22));
    box-shadow: 0 4px 16px rgba(162,89,255,0.25);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — ≤ 768px: site-wide Apple polish
   The mod-menu visual (.nova-unified-window) is intentionally
   left alone — only its wrapper is allowed to scale, per
   existing rules above.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* iOS-style smooth scroll & no horizontal slop */
    html, body { -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
    body { overflow-x: hidden; }

    /* Hide the duplicate "Логин" link in the footer on mobile —
       there is already a primary login button in the top navbar. */
    .footer-login-link { display: none !important; }

    /* === NAVBAR === */
    .navbar { height: 64px !important; padding: 0 !important; }
    .navbar .container.nav-inner {
        padding: 0 16px !important;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .logo-img { height: 44px !important; margin-bottom: 0 !important; }
    .logo-text { font-size: 1.1rem !important; margin-bottom: 0 !important; }
    .nav-links { display: none !important; }
    .nav-actions .btn-ghost-premium { 
        display: flex; 
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
        background: rgba(162, 89, 255, 0.1) !important;
        border: 1px solid rgba(162, 89, 255, 0.2) !important;
        color: #a259ff !important;
    }
    .nav-actions .btn-primary-premium { display: none !important; }
    .nova-toast-container { 
        top: 74px !important; 
        left: 16px !important; 
        right: 16px !important; 
        width: auto !important; 
        bottom: auto !important;
    }
    .guest-login-trigger {
        background: #fff !important;
        color: #000 !important;
        padding: 0 8px !important;
        font-size: 0.58rem !important;
        font-weight: 900 !important;
        border-radius: 6px !important;
        height: 20px !important;
        line-height: 20px !important;
        min-height: 20px !important;
        box-shadow: 0 3px 8px rgba(255,255,255,0.18) !important;
    }

    /* ─── Pass 4: Apple-canon mobile finish ─── */

    /* Navbar — shorter, content vertically centred, no extra padding-top */
    .navbar { height: 54px !important; padding: 0 !important; }
    .navbar .container.nav-inner { height: 54px !important; padding: 0 14px !important; }

    /* Profile circle — clean ring outline */
    .user-nav-avatar {
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        font-size: 0.82rem !important;
        font-weight: 800 !important;
        background: linear-gradient(135deg, #a259ff, #6366f1);
        color: #fff !important;
        box-shadow:
            0 0 0 1.5px rgba(255, 255, 255, 0.18),
            0 4px 12px rgba(162, 89, 255, 0.35);
    }

    /* All buttons — uniform Apple-tight sizing on phones */
    .btn,
    .btn-primary-premium,
    .btn-ghost-premium,
    .btn-small {
        padding: 8px 14px !important;
        font-size: 0.78rem !important;
        border-radius: 11px !important;
        height: auto !important;
        min-height: 36px !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
    }
    .btn-xl { padding: 12px 22px !important; font-size: 0.9rem !important; min-height: 44px !important; }

    /* Pricing — kill empty vertical space */
    .pricing-v2 { padding: 36px 0 !important; margin-bottom: 24px !important; }
    .pricing-grid-premium { gap: 10px !important; padding: 0 12px !important; margin-top: 18px !important; }
    .price-card-v4 {
        padding: 22px 20px !important;
        border-radius: 20px !important;
        gap: 8px !important;
        min-height: 0 !important;
    }
    .price-content-top { gap: 8px !important; }
    .price-title-v4 { font-size: 0.95rem !important; letter-spacing: 0.5px !important; margin: 0 !important; }
    .price-card-v4 p,
    .price-card-v4 .price-meta { font-size: 0.78rem !important; line-height: 1.35 !important; margin: 0 !important; }
    .new-price-premium { font-size: 1.85rem !important; line-height: 1 !important; margin: 8px 0 !important; }
    .old-price-main { font-size: 0.85rem !important; }
    .price-card-v4 ul,
    .price-card-v4 .features-list { font-size: 0.75rem !important; margin: 8px 0 !important; gap: 4px !important; }
    .price-card-v4 ul li { padding: 3px 0 !important; }
    .price-card-v4 .btn { margin-top: 8px !important; min-height: 38px !important; height: 38px !important; }
    .popular-label-drip { top: 10px !important; right: 10px !important; padding: 3px 8px !important; font-size: 0.55rem !important; }
    .price-bg-digit { font-size: 6rem !important; opacity: 0.05 !important; }

    /* Shop — 2 per row, PC-like proportions, much shorter cards */
    .apple-cosmetic-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 0 4px !important;
    }
    .apple-cosmetic-card {
        padding: 10px !important;
        border-radius: 16px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }
    .apple-cosmetic-preview {
        aspect-ratio: 1 / 1 !important;
        border-radius: 12px !important;
        max-height: 140px !important;
    }
    .apple-cosmetic-title {
        font-size: 0.82rem !important;
        margin: 4px 0 0 !important;
        line-height: 1.2 !important;
    }
    .apple-cosmetic-desc {
        font-size: 0.66rem !important;
        line-height: 1.3 !important;
        min-height: 0 !important;
        opacity: 0.7;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .apple-buy-btn {
        padding: 7px 10px !important;
        font-size: 0.72rem !important;
        min-height: 32px !important;
        border-radius: 9px !important;
        margin-top: 4px !important;
    }

    /* Configs — slimmer cards, smaller fonts */
    .config-card-v3 { padding: 12px !important; border-radius: 14px !important; }
    .config-card-v3 .config-card-header { margin-bottom: 8px !important; }
    .config-card-v3 .btn,
    .config-card-v3 .btn-small {
        padding: 5px 9px !important;
        font-size: 0.65rem !important;
        min-height: 28px !important;
        border-radius: 8px !important;
    }
    .config-item-v2 { padding: 9px 14px !important; gap: 12px !important; border-radius: 12px !important; }
    .config-item-v2 .config-icon { width: 28px !important; height: 28px !important; font-size: 0.7rem !important; }
    .config-item-v2 .config-name { font-size: 0.85rem !important; }
    .config-item-v2 .config-meta { font-size: 0.65rem !important; }
    .pc-panel { padding: 14px !important; border-radius: 14px !important; }
    .pc-panel-title { font-size: 0.92rem !important; }
    .pc-panel-sub   { font-size: 0.72rem !important; }
    .pc-input { padding: 9px 12px !important; font-size: 0.85rem !important; border-radius: 10px !important; }
    .pc-radio { padding: 8px 10px !important; }
    .pc-radio-text { font-size: 0.78rem !important; }
    .config-quick-apply { padding: 8px 12px !important; border-radius: 12px !important; }
    .config-quick-apply input { font-size: 0.85rem !important; }
    .live-status-pill { padding: 9px 12px !important; font-size: 0.75rem !important; border-radius: 11px !important; }
    .user-nav-balance {
        font-size: 0.78rem !important;
        padding: 6px 10px !important;
        margin-right: 0 !important;
    }
    .user-nav-trigger { padding: 4px 12px 4px 4px !important; gap: 8px !important; border-radius: 100px !important; }
    /* Full navbar name and chevron visibility restored */
    .user-nav-trigger .user-nav-chevron { display: block !important; width: 14px !important; }
    .user-nav-avatar { width: 30px !important; height: 30px !important; border-radius: 50% !important; }

    .hero-ultimate { 
        min-height: auto !important;
        padding-top: 80px !important; 
        padding-bottom: 24px !important; 
    }
    .hero-center-content {
        margin-bottom: 40px !important;
        gap: 24px !important;
    }
    /* PRICING MOBILE OPTIMIZATION */
    .pricing-grid-premium {
        gap: 12px !important;
        padding: 0 10px !important;
    }
    .price-card-v4 {
        padding: 20px !important;
        min-height: auto !important;
        border-radius: 18px !important;
    }
    .price-mini-desc {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
        opacity: 0.7;
        line-height: 1.4 !important;
    }
    .price-title-v4 {
        font-size: 0.85rem !important;
        letter-spacing: 1px !important;
    }
    .new-price-premium {
        font-size: 1.8rem !important;
    }

    /* Show burger on mobile */
    .nav-burger { display: flex; }

    /* === HERO === */
    .hero-ultimate { padding-top: 72px !important; padding-bottom: 36px !important; }
    .hero-title-massive {
        font-size: clamp(2rem, 9vw, 2.6rem) !important;
        line-height: 1.05 !important;
        letter-spacing: -0.04em !important;
        padding: 0 8px;
    }
    .hero-sub-centered {
        font-size: 0.98rem !important;
        line-height: 1.55 !important;
        padding: 0 12px;
        margin-top: 14px !important;
    }
    .cta-group-centered { width: 100%; padding: 0 16px; }
    .cta-group-centered .btn,
    .btn-xl {
        width: 100% !important;
        height: 54px !important;
        font-size: 1rem !important;
        border-radius: 16px !important;
    }

    /* Mod-menu showcase: keep visualization, just tame the wrapper */
    .hero-ui-showcase-wrapper {
        padding: 20px 0 !important;
        min-height: 320px !important;
        overflow: hidden;
    }

    /* === SECTION HEAD === */
    .section-head-premium { padding: 0 16px; margin-bottom: 36px; }
    .section-head-premium h2 {
        font-size: clamp(1.9rem, 7vw, 2.4rem) !important;
        line-height: 1.1 !important;
        letter-spacing: -0.035em !important;
    }
    .section-head-premium p { font-size: 0.98rem !important; }
    .micro-label { font-size: 0.7rem !important; }

    /* === COMPARE SLIDER === */
    .compare-premium { aspect-ratio: 1512/948 !important; border-radius: 18px !important; }

    /* === PRICING — Apple-glass cards, even rhythm, refined typography === */
    .pricing-v2 { padding: 56px 0 !important; }
    .pricing-grid-premium {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 0 14px !important;
        margin-top: 24px !important;
    }
    .price-card-v4 {
        padding: 26px 22px 24px !important;
        min-height: 0 !important;
        border-radius: 22px !important;
        background: linear-gradient(180deg, rgba(28, 22, 42, 0.92), rgba(10, 8, 16, 0.96)) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        backdrop-filter: blur(16px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
        box-shadow:
            0 18px 48px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
        overflow: hidden !important;
        position: relative !important;
    }
    .featured-v4 { transform: none !important; }
    .featured-v4:hover { transform: translateY(-4px) !important; }
    .featured-v4 {
        border-color: rgba(162, 89, 255, 0.45) !important;
        box-shadow:
            0 22px 60px rgba(0, 0, 0, 0.55),
            0 0 0 1px rgba(162, 89, 255, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    }
    /* Background numeric digit — keep it but subtler so it stops fighting the price */
    .price-bg-digit {
        font-size: 8rem !important;
        opacity: 0.06 !important;
        right: 8px !important;
        bottom: -4px !important;
    }
    .price-title-v4 {
        font-size: 1.05rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 4px !important;
    }
    .price-card-v4 p,
    .price-card-v4 .price-meta {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }
    .new-price-premium {
        font-size: 2.1rem !important;
        line-height: 1.1 !important;
        margin-top: 14px !important;
    }
    .old-price-main { font-size: 0.95rem !important; margin-right: 8px !important; }
    .price-card-v4 ul,
    .price-card-v4 .features-list {
        font-size: 0.82rem !important;
        margin: 12px 0 !important;
    }
    .price-card-v4 ul li {
        padding: 5px 0 !important;
    }
    .price-card-v4 .btn {
        height: 44px !important;
        border-radius: 12px !important;
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        margin-top: 12px !important;
    }
    /* Popular badge — anchor cleanly to top-right corner */
    .popular-label-drip {
        top: 14px !important;
        right: 14px !important;
        font-size: 0.6rem !important;
        padding: 4px 9px !important;
    }

    /* === ECOSYSTEM (launcher) === */
    .ecosystem-section { padding: 24px 0 !important; }
    .ecosystem-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 16px !important;
    }
    .eco-features li { padding: 14px !important; border-radius: 16px !important; }
    .launcher-mockup-wrapper { border-radius: 20px !important; }

    /* === FOOTER === */
    .site-footer-v2 { padding: 32px 0 24px !important; margin-top: 24px !important; }
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 22px !important;
    }
    .foot-col h4 { margin-bottom: 14px !important; }
    .foot-brand p { max-width: 100% !important; }

    /* === AUTH MODAL (MOBILE REFRESH) === */
    .auth-overlay.active { display: flex !important; align-items: center !important; justify-content: center !important; padding: 15px !important; }
    .auth-split-modal {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        max-width: 420px !important;
        width: 100% !important;
        border-radius: 32px !important;
        overflow: hidden !important;
        padding: 0 !important;
        height: auto !important;
        max-height: 90vh !important;
    }
    .auth-carousel-side {
        display: block !important;
        height: 200px !important;
        width: 100% !important;
    }
    .auth-carousel-side::after {
        background: linear-gradient(to bottom, transparent, #0d0d12) !important;
    }
    .auth-form-side {
        padding: 30px 24px 40px !important;
    }
    .auth-modal-close {
        top: 15px !important;
        right: 15px !important;
        background: rgba(0,0,0,0.5) !important;
        backdrop-filter: blur(6px) !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 100 !important;
    }
    
    /* === SMALLER TOASTS === */
    .nova-toast {
        padding: 10px 14px !important;
        min-width: 240px !important;
        max-width: 280px !important;
    }
    .nova-toast-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }
    .nova-toast-title { font-size: 0.75rem !important; }
    .nova-toast-msg { font-size: 0.7rem !important; }

    /* === PROFILE LAYOUT (mobile) === */
    .profile-layout {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px 0 0 !important;
        height: auto !important;
        min-height: calc(100vh - 64px);
        gap: 0 !important;
        padding: 0 12px 140px !important;
        overflow-x: hidden;
    }
    /* Hide desktop sidebar — mobile uses bottom tab bar instead */
    .profile-sidebar { display: none !important; }
    .profile-mobile-tabs { display: block; }
    
    .user-nav-dropdown-v2 {
        width: 200px !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        padding: 8px !important;
    }
    .user-nav-dropdown-v2 a, .user-nav-dropdown-v2 button {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
    }

    .profile-main {
        padding: 18px 4px 100px !important;  /* Wider content, reduced bottom space */
        border-radius: 0 !important;
        overflow-y: visible !important;
        min-height: 0 !important;
    }
    .old-price, .old-price-main { display: none !important; } /* Global mobile hide */
    /* Profile.html sets html/body to overflow:hidden; undo that on phone */
    html, body { overflow: auto !important; height: auto !important; }
    .theme-nova-premium { display: block !important; }

    .profile-breadcrumbs { font-size: 0.78rem !important; margin-bottom: 18px !important; }
    .profile-welcome { font-size: 1.6rem !important; line-height: 1.2 !important; }
    .profile-section-title {
        font-size: 1.1rem !important;
        margin: 28px 0 14px !important;
    }

    /* Profile info → iOS-style grouped list */
    .profile-info-grid {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 16px;
        padding: 0 16px;
    }
    .profile-info-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.04) !important;
        gap: 12px;
    }
    .profile-info-row:last-child { border-bottom: none !important; }
    .profile-info-label { font-size: 0.85rem !important; color: #a1a1aa !important; flex-shrink: 0; }
    .profile-info-value {
        font-size: 0.9rem !important;
        text-align: right;
        word-break: break-word;
        max-width: 60%;
    }

    /* Subscription state card */
    .sub-state-card { padding: 22px !important; border-radius: 22px !important; }
    .sub-state-body {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px !important;
    }
    .sub-state-right {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 14px !important;
    }
    .sub-state-days { width: auto !important; }
    .sub-state-days-value { font-size: 2.4rem !important; }

    /* Activation key row */
    .profile-key-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .profile-key-row input,
    .profile-key-row button {
        width: 100% !important;
        height: 48px !important;
        font-size: 16px !important;
    }

    /* === BALANCE === */
    .balance-card-premium {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 24px !important;
        padding: 24px !important;
        margin-bottom: 22px !important;
        border-radius: 24px !important;
        text-align: left !important;
    }
    .balance-card-premium > div:last-child { text-align: left !important; }
    .balance-card-premium .btn {
        width: 100% !important;
        height: 56px !important;
        padding: 0 !important;
        font-size: 1rem !important;
        border-radius: 16px !important;
    }
    #topupDenoms { grid-template-columns: repeat(3, 1fr) !important; }
    .payment-grid-premium { gap: 10px !important; }
    .payment-item-v3 { padding: 14px !important; border-radius: 16px !important; }
    /* Stack the two-column grid in balance section */
    #section-balance > div[style*="grid-template-columns: 1.2fr"] {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* === SHOP === */
    .shop-grid-v2,
    #section-shop .shop-grid-v2[style*="repeat(3"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
    .shop-card { padding: 22px !important; border-radius: 20px !important; }
    .promo-bar-premium {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        text-align: left;
    }
    .promo-bar-premium > div[style*="display: flex"] { flex-wrap: wrap; }
    .promo-input-premium-mini { flex: 1 1 100%; }
    .apple-cosmetic-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
    .apple-cosmetic-card { padding: 28px 22px !important; border-radius: 26px !important; }
    .apple-cosmetic-preview { height: 200px !important; }
    .apple-cosmetic-title { font-size: 1.35rem !important; }

    /* === DOWNLOAD === */
    .download-grid,
    #section-download > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .download-card { padding: 22px !important; border-radius: 20px !important; }

    /* === CONFIGS === */
    .configs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .configs-header-actions { width: 100%; gap: 8px; }
    .configs-header-actions .btn {
        flex: 1;
        height: 44px;
        padding: 0 12px !important;
        font-size: 0.85rem !important;
    }
    .search-dual-container { flex-direction: column !important; gap: 10px !important; }
    .search-input-wrap.code-search { width: 100% !important; }
    .search-input-wrap input { height: 48px; font-size: 16px !important; }
    .config-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .config-card-v3 { padding: 16px !important; border-radius: 16px !important; }
    .config-card-v3 .btn-small { flex: 1; padding: 8px 6px !important; font-size: 0.78rem !important; }
    .config-item-v2 {
        flex-wrap: wrap;
        padding: 14px !important;
    }
    .config-item-v2 .btn { width: 100%; margin-top: 8px; }

    /* === PARTNERSHIP / SERVERS / SUPPORT === */
    #section-partnership > div[style*="grid-template-columns: 1fr 1fr"],
    #section-servers > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .partner-card-v3 { padding: 26px 22px !important; border-radius: 22px !important; }
    .support-hub-premium {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .support-chip-v3 { padding: 22px !important; border-radius: 20px !important; }

    /* === GENERIC MODALS === */
    .nova-modal {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin: 0 12px !important;
        border-radius: 24px !important;
        padding: 26px 22px !important;
        max-height: 92vh;
        overflow-y: auto;
    }
    .nova-modal input,
    .nova-modal textarea,
    .nova-modal select { font-size: 16px !important; height: 48px; }
    .nova-modal textarea { height: auto; min-height: 84px; }
    .nova-modal-actions { flex-direction: column-reverse !important; gap: 8px !important; }
    .nova-modal-actions .btn { width: 100% !important; height: 48px !important; }

    /* === BUTTONS GLOBAL — Apple-style large taps === */
    .btn { letter-spacing: -0.01em; }
    .btn-primary-premium, .btn-ghost-premium {
        min-height: 44px;
        border-radius: 14px;
    }

    /* === FORM INPUTS GLOBAL: prevent iOS zoom === */
    input, textarea, select { font-size: 16px !important; }

    /* === PAY MODAL (CARD) REFRESH === */
    .credit-card-preview {
        transform: scale(0.8) !important;
        margin: -15px -25px 0 !important;
        width: calc(100% + 50px) !important;
        height: 155px !important;
    }
    .cc-number { 
        top: 75px !important; 
        font-size: 1.15rem !important; 
        letter-spacing: 1.5px !important; 
        white-space: nowrap !important;
        left: 18px !important; right: 18px !important;
    }
    .cc-brand { top: 18px !important; right: 18px !important; font-size: 0.75rem !important; }
    .cc-chip { width: 34px !important; height: 25px !important; top: 0px !important; }
    .cc-footer { bottom: 18px !important; left: 18px !important; right: 18px !important; }
    .cc-foot-col span { font-size: 0.55rem !important; }
    .cc-foot-col b { font-size: 0.75rem !important; }
    .cc-row-2 { gap: 10px !important; }
    .nova-modal.pay-modal { padding: 20px 15px !important; }
    
    /* Toasts on phones — pinned to right edge with safe-area padding,
       compact size, slide in from the side (Apple-style). */
    .nova-toast-container {
        left: auto !important;
        right: 12px !important;
        top: calc(70px + env(safe-area-inset-top, 0px)) !important;
        bottom: auto !important;
        width: min(76vw, 320px) !important;
        max-width: calc(100vw - 24px) !important;
        gap: 8px !important;
    }
    .nova-toast {
        padding: 10px 12px !important;
        border-radius: 14px !important;
        gap: 10px !important;
        animation: toast-slide-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }
    .nova-toast-icon {
        width: 28px !important;
        height: 28px !important;
        border-radius: 9px !important;
        font-size: 0.9rem !important;
    }
    .nova-toast-title { font-size: 0.78rem !important; }
    .nova-toast-msg   { font-size: 0.72rem !important; }
    .nova-toast-close { width: 24px !important; height: 24px !important; font-size: 0.65rem !important; }
}

/* Tighter pass for very small phones */
@media (max-width: 380px) {
    .logo-text { font-size: 1rem !important; }
    .logo-img { height: 40px !important; }
    .hero-title-massive { font-size: 1.85rem !important; }
    .price-card-v4 { padding: 30px 22px !important; }
    .new-price-premium { font-size: 2.1rem !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE REFINEMENT — pass 2
   - Hide the hero mod-menu mockup on phones (per user request)
   - Shrink launcher mockup + title
   - Compact navbar with visible balance + tappable avatar→profile
   - Profile sections: tighten paddings, fix overflow, perfect taps
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Show the hero mod-menu showcase scaled to fit phone screens. Earlier we
       hid it entirely; user requested it stay visible. The .nova-unified-window
       was 1100x640 hard-coded — let it flow with viewport instead. */
    .hero-ui-showcase-wrapper {
        display: flex !important;
        height: auto !important;
        padding: 16px 0 !important;
        perspective: none !important;
        max-width: 100% !important;
    }
    .cinematic-scene {
        transform: none !important;
        width: 100% !important;
    }
    .nova-unified-window {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 96vw !important;
        height: auto !important;
        border-radius: 16px !important;
    }
    .nuw-spotify-panel {
        width: 100% !important;
        padding: 18px !important;
    }
    .hero-ultimate { padding-top: 80px !important; padding-bottom: 36px !important; }

    /* === Launcher mockup: smaller card + title === */
    .ecosystem-section { padding: 40px 0 !important; }
    .launcher-mockup-wrapper {
        max-width: 360px !important;
        margin: 0 auto !important;
        border-radius: 18px !important;
    }
    .nl-top-bar { height: 30px !important; padding: 0 12px !important; }
    .nl-mac-btns { gap: 6px !important; }
    .nl-mac-btns .mac-btn { width: 9px !important; height: 9px !important; }
    .nl-title { font-size: 0.72rem !important; letter-spacing: 0.5px !important; }
    .nl-main-bg { aspect-ratio: 16/10 !important; }
    .nl-glass-card { padding: 18px !important; border-radius: 14px !important; }
    .nl-avatar-ring { width: 56px !important; height: 56px !important; }
    .nl-avatar-ring img { width: 36px !important; }
    .nl-welcome { font-size: 0.7rem !important; }
    .nl-username { font-size: 1.1rem !important; margin-bottom: 8px !important; }
    .nl-version-toggle { transform: scale(0.85); margin-bottom: 8px !important; }
    .nl-play-button {
        height: 38px !important;
        font-size: 0.85rem !important;
        padding: 0 22px !important;
    }

    /* === Navbar (mobile, refined): balance + avatar visible & smaller === */
    .navbar { height: 58px !important; }
    .navbar .container.nav-inner { height: 58px; padding: 0 12px !important; }
    .logo-img { height: 38px !important; }
    .logo-text { font-size: 1rem !important; }
    .nav-actions { display: flex !important; align-items: center !important; gap: 6px !important; }
    .nav-burger { width: 36px; height: 36px; border-radius: 11px; margin-left: 4px; }
    .nav-burger span, .nav-burger span::before, .nav-burger span::after { width: 16px; }

    /* Balance pill — visible, compact */
    .user-nav-balance {
        font-size: 0.74rem !important;
        padding: 5px 9px !important;
        border-radius: 10px !important;
        margin-right: 0 !important;
        gap: 4px !important;
    }

    /* Avatar acts as direct link to profile on phones (no dropdown) */
    .user-nav-trigger {
        padding: 4px !important;
        background: rgba(255,255,255,0.04) !important;
        border-radius: 11px !important;
        gap: 0 !important;
    }
    .user-nav-trigger:active { background: rgba(162,89,255,0.18) !important; }
    .user-nav-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
        border-radius: 9px !important;
    }
    /* Suppress dropdown on mobile — tap navigates instead (handled in JS) */
    .user-nav-menu .user-nav-dropdown { display: none !important; }

    /* === PROFILE: ensure no leftover side panels on mobile === */
    .profile-sidebar,
    aside.profile-sidebar { display: none !important; }
    .profile-layout {
        padding: 0 10px 110px !important;
        margin-top: 12px !important;
    }
    .profile-main {
        padding: 18px 16px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(162, 89, 255, 0.08) !important;
    }
    .profile-breadcrumbs { display: none !important; } /* sidebar replaces this */

    /* Section titles tighter */
    .profile-section-title {
        font-size: 1.05rem !important;
        margin: 24px 0 12px !important;
        letter-spacing: -0.01em !important;
    }
    .profile-welcome { font-size: 1.4rem !important; }

    /* Inline grids that were left fixed → collapse */
    .profile-section [style*="grid-template-columns: 1fr 1fr"],
    .profile-section [style*="grid-template-columns: repeat(3"],
    .profile-section [style*="grid-template-columns: 1.2fr"],
    .profile-section [style*="grid-template-columns: 1fr 300px"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    /* Dangerous-zone block: stack */
    #section-account > div[style*="display: flex"][style*="border: 1px solid rgba(239, 68, 68"] {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }
    #section-account > div[style*="border: 1px solid rgba(239, 68, 68"] .btn {
        width: 100%;
    }

    /* Big-number balance: no overflow on small screens */
    #profileBalanceDisplay { font-size: 2.6rem !important; }
    .balance-card-premium > div:first-child > div[style*="font-size: 3.5rem"] { font-size: 2.4rem !important; }

    /* Top-up denominations: 3 columns instead of 6 */
    #topupDenoms { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
    #topupPanel { padding: 18px !important; border-radius: 18px !important; }

    /* Promo bar inputs full-width */
    .promo-bar-premium .promo-input-premium-mini { flex: 1 1 100% !important; min-width: 0 !important; }
    .promo-bar-premium .btn { flex: 1 0 auto !important; }

    /* Search input wrap stretches */
    .search-input-wrap { width: 100% !important; }

    /* Cosmetic preview cards: trim */
    .apple-cosmetic-card { padding: 24px 20px !important; }
    .apple-cosmetic-preview { height: 180px !important; }

    /* Support hub one column */
    .support-hub-premium { grid-template-columns: 1fr !important; }

    /* Plan-confirm rows: keep readable */
    .plan-confirm-row { padding: 12px 0 !important; font-size: 0.9rem !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE REFINEMENT — pass 3 (Apple-tight)
   - Smaller logo/text
   - Balance moved to left (DOM moved by JS, styled here)
   - Smaller, thinner burger
   - Tighter spacing across all profile sections
   - Smaller launcher mockup + description
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* === NAVBAR — ultra-compact === */
    .navbar { height: 52px !important; }
    .navbar .container.nav-inner {
        height: 52px;
        padding: 0 10px !important;
        gap: 8px;
    }
    .logo { gap: 8px !important; padding-bottom: 0 !important; }
    .logo-img {
        height: 30px !important;
        margin-bottom: 0 !important;
        filter: drop-shadow(0 0 10px rgba(162,89,255,0.5)) !important;
    }
    .logo-text {
        font-size: 0.82rem !important;
        letter-spacing: -0.02em !important;
    }

    /* Balance pill — when JS moves it to .nav-inner (left side) */
    .navbar .nav-inner > .user-nav-balance {
        margin-right: auto !important;
        margin-left: 4px !important;
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
        border-radius: 8px !important;
        height: 26px;
        line-height: 1;
        align-self: center;
    }

    /* nav-actions: shrink gaps */
    .nav-actions { gap: 4px !important; }

    /* Avatar trigger — smaller, thinner */
    .user-nav-trigger {
        padding: 3px !important;
        border-radius: 9px !important;
    }
    .user-nav-avatar {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    /* Burger — smaller, thinner lines */
    .nav-burger {
        width: 30px !important;
        height: 30px !important;
        border-radius: 9px !important;
        margin-left: 2px !important;
    }
    .nav-burger span,
    .nav-burger span::before,
    .nav-burger span::after {
        width: 14px !important;
        height: 1.5px !important;
    }
    .nav-burger span::before { top: -5px !important; }
    .nav-burger span::after { top: 5px !important; }

    /* Drawer items: tighter */
    .mobile-nav-drawer { padding: 76px 18px 22px !important; }
    .mobile-nav-drawer a {
        padding: 14px 4px !important;
        font-size: 1rem !important;
    }
    .mobile-nav-drawer a::after { font-size: 1.2rem !important; }
    .mobile-nav-drawer .mnd-cta { margin-top: 16px !important; }
    .mobile-nav-drawer .mnd-cta .btn {
        height: 44px !important;
        font-size: 0.9rem !important;
        border-radius: 12px !important;
    }

    /* === HERO — tighter === */
    .hero-ultimate { padding-top: 60px !important; padding-bottom: 44px !important; }
    .hero-title-massive {
        font-size: clamp(1.85rem, 8.5vw, 2.4rem) !important;
        line-height: 1.06 !important;
    }
    .hero-sub-centered {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
        margin-top: 12px !important;
    }
    .cta-group-centered .btn,
    .btn-xl {
        height: 50px !important;
        font-size: 0.95rem !important;
        border-radius: 14px !important;
    }

    /* === SECTION HEADS — tighter === */
    .section-head-premium { margin-bottom: 28px !important; padding: 0 14px !important; }
    .section-head-premium h2 {
        font-size: clamp(1.7rem, 6.5vw, 2.1rem) !important;
        margin-bottom: 14px !important;
    }
    .section-head-premium p { font-size: 0.92rem !important; line-height: 1.5 !important; }
    .micro-label { font-size: 0.66rem !important; letter-spacing: 1.5px !important; }

    /* === PRICING — slimmer cards === */
    .pricing-v2 { padding: 40px 0 !important; }
    .pricing-grid-premium { padding: 0 14px !important; gap: 12px !important; }
    .price-card-v4 {
        padding: 28px 22px !important;
        border-radius: 22px !important;
    }
    .price-bg-digit { font-size: 7rem !important; }
    .price-title-v4 { font-size: 1.05rem !important; margin-bottom: 6px !important; }
    .price-mini-desc {
        font-size: 0.78rem !important;
        margin-bottom: 22px !important;
        line-height: 1.5 !important;
    }
    .new-price-premium { font-size: 2.05rem !important; }
    .new-price-premium em { font-size: 1.1rem !important; }
    .price-card-v4 .btn {
        height: 44px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
    }

    /* === LAUNCHER SECTION — smaller mockup + tighter copy === */
    .ecosystem-section { padding: 36px 0 !important; }
    .ecosystem-grid { gap: 26px !important; padding: 0 14px !important; }
    .eco-text-content h2 {
        font-size: clamp(1.6rem, 6.2vw, 2rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 14px !important;
    }
    .eco-text-content > p {
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
        margin-bottom: 20px !important;
    }
    .eco-features li {
        padding: 12px 14px !important;
        border-radius: 14px !important;
        gap: 12px !important;
    }
    .eco-features li h4 { font-size: 0.92rem !important; margin-bottom: 2px !important; }
    .eco-features li span { font-size: 0.78rem !important; line-height: 1.45 !important; }
    .eco-icon { width: 36px !important; height: 36px !important; flex-shrink: 0 !important; }
    .eco-icon svg { width: 18px !important; height: 18px !important; }

    .launcher-mockup-wrapper {
        max-width: 300px !important;
        border-radius: 16px !important;
    }
    .nl-top-bar { height: 26px !important; padding: 0 10px !important; }
    .nl-mac-btns .mac-btn { width: 8px !important; height: 8px !important; }
    .nl-title { font-size: 0.62rem !important; letter-spacing: 0.4px !important; }
    .nl-glass-card { padding: 14px !important; border-radius: 12px !important; }
    .nl-avatar-ring { width: 46px !important; height: 46px !important; margin-bottom: 6px !important; }
    .nl-avatar-ring img { width: 28px !important; }
    .nl-welcome { font-size: 0.62rem !important; }
    .nl-username { font-size: 0.95rem !important; margin-bottom: 6px !important; }
    .nl-version-toggle { transform: scale(0.78); margin-bottom: 4px !important; }
    .nl-play-button {
        height: 32px !important;
        font-size: 0.75rem !important;
        padding: 0 18px !important;
        border-radius: 10px !important;
    }

    /* === FOOTER — tighter === */
    .site-footer-v2 { padding: 44px 0 26px !important; margin-top: 30px !important; }
    .footer-inner { gap: 26px !important; padding: 0 18px !important; }
    .foot-col h4 { font-size: 0.78rem !important; margin-bottom: 10px !important; }
    .foot-col a, .foot-link-btn { font-size: 0.85rem !important; margin-bottom: 8px !important; }
    .foot-brand p { font-size: 0.82rem !important; }

    /* === PROFILE — Apple-tight === */
    .profile-layout {
        padding: 0 8px 96px !important;
        margin-top: 8px !important;
    }
    .profile-main {
        padding: 16px 14px !important;
        border-radius: 18px !important;
    }
    .profile-welcome { font-size: 1.25rem !important; margin-bottom: 16px !important; }
    .profile-section-title {
        font-size: 0.95rem !important;
        margin: 22px 0 10px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #a1a1aa !important;
        font-weight: 700 !important;
    }

    /* iOS grouped list — tighter rows */
    .profile-info-grid { padding: 0 14px !important; border-radius: 14px !important; }
    .profile-info-row { padding: 11px 0 !important; gap: 10px !important; }
    .profile-info-label { font-size: 0.78rem !important; }
    .profile-info-value { font-size: 0.82rem !important; max-width: 60% !important; }

    /* Subscription card */
    .sub-state-card { padding: 18px !important; border-radius: 18px !important; }
    .sub-state-label { font-size: 0.7rem !important; }
    .sub-state-title { font-size: 1.05rem !important; }
    .sub-state-sub { font-size: 0.78rem !important; }
    .sub-state-days-value { font-size: 2rem !important; }
    .sub-state-days-unit { font-size: 0.7rem !important; }
    #subStateCTA {
        height: 38px !important;
        padding: 0 16px !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
    }

    /* Activation key */
    .profile-key-section p { font-size: 0.82rem !important; }
    .profile-key-row input,
    .profile-key-row button { height: 44px !important; font-size: 15px !important; }

    /* Balance card — slim */
    .balance-card-premium { padding: 20px !important; border-radius: 20px !important; gap: 16px !important; }
    #profileBalanceDisplay { font-size: 2.2rem !important; }
    .balance-card-premium > div:first-child > div[style*="font-size: 0.85rem"] {
        font-size: 0.7rem !important;
        margin-bottom: 4px !important;
    }
    .balance-card-premium .btn { height: 50px !important; font-size: 0.92rem !important; }

    /* Top-up panel */
    #topupPanel { padding: 16px !important; }
    #topupDenoms { gap: 6px !important; }
    #topupDenoms button {
        padding: 10px 6px !important;
        font-size: 0.78rem !important;
        border-radius: 10px !important;
    }
    #topupPanel .btn { height: 42px !important; font-size: 0.85rem !important; padding: 0 14px !important; }

    /* Payment list rows */
    .payment-item-v3 { padding: 12px !important; border-radius: 14px !important; gap: 10px !important; }
    .payment-icon-v3 { width: 36px !important; height: 36px !important; }
    .payment-icon-v3 svg { width: 18px !important; height: 18px !important; }
    .payment-item-v3 div[style*="font-weight: 800"] { font-size: 0.85rem !important; }
    .payment-item-v3 div[style*="font-size: 0.75rem"] { font-size: 0.7rem !important; }

    /* Transactions list */
    .transaction-list { padding: 6px !important; border-radius: 18px !important; min-height: 140px !important; }

    /* Shop tariff cards */
    .shop-card.compact { padding: 16px !important; border-radius: 16px !important; }
    .shop-card.compact h3 { font-size: 1rem !important; }
    .shop-card .shop-price { font-size: 1.3rem !important; margin: 10px 0 !important; }
    .shop-card .btn { height: 38px !important; font-size: 0.8rem !important; padding: 0 !important; border-radius: 10px !important; }

    /* Promo bar */
    .promo-bar-premium { padding: 14px !important; border-radius: 16px !important; gap: 10px !important; }
    .promo-bar-premium > div:first-child {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }
    .promo-bar-premium h4 { font-size: 0.85rem !important; }
    .promo-bar-premium p { font-size: 0.7rem !important; }
    .promo-input-premium-mini { height: 38px !important; font-size: 14px !important; padding: 0 12px !important; }
    .promo-bar-premium .btn { height: 38px !important; font-size: 0.78rem !important; padding: 0 14px !important; }

    /* Cosmetic cards */
    .apple-cosmetic-card { padding: 22px 18px !important; border-radius: 22px !important; }
    .apple-cosmetic-preview { height: 160px !important; margin-bottom: 18px !important; }
    .apple-cosmetic-title { font-size: 1.2rem !important; margin-bottom: 6px !important; }
    .apple-cosmetic-desc { font-size: 0.82rem !important; margin-bottom: 18px !important; }
    .apple-buy-btn { height: 42px !important; font-size: 0.85rem !important; padding: 0 !important; }

    /* Configs */
    .configs-header { gap: 10px !important; margin-bottom: 18px !important; }
    .configs-header-actions .btn {
        height: 40px !important;
        font-size: 0.78rem !important;
        padding: 0 10px !important;
    }
    .configs-header-actions .btn svg { width: 14px !important; }
    .search-input-wrap input { height: 44px !important; font-size: 15px !important; }
    .search-dual-container { gap: 8px !important; margin-bottom: 22px !important; }
    .config-card-v3 { padding: 14px !important; border-radius: 14px !important; }
    .config-card-v3 .btn-small {
        height: 34px !important;
        font-size: 0.72rem !important;
        padding: 0 8px !important;
    }
    .config-item-v2 { padding: 12px !important; border-radius: 12px !important; }
    .config-item-v2 .config-icon { width: 32px !important; height: 32px !important; font-size: 0.85rem !important; }
    .config-item-v2 .config-name { font-size: 0.85rem !important; }
    .config-item-v2 .config-meta { font-size: 0.7rem !important; }

    /* Partnership / servers / support */
    .partner-card-v3 { padding: 22px 18px !important; border-radius: 18px !important; }
    .partner-card-v3 h3 { font-size: 1.1rem !important; margin-bottom: 8px !important; }
    .partner-card-v3 p { font-size: 0.82rem !important; margin-bottom: 16px !important; }
    .partner-card-v3 .btn { height: 42px !important; font-size: 0.85rem !important; }

    .support-chip-v3 { padding: 18px !important; border-radius: 16px !important; }
    .support-chip-v3 h4 { font-size: 0.95rem !important; }
    .support-chip-v3 p { font-size: 0.75rem !important; }
    .support-chip-v3 .btn { height: 36px !important; font-size: 0.7rem !important; }

    /* Download cards */
    .download-card { padding: 18px !important; border-radius: 18px !important; }
    .download-card h3 { font-size: 1.05rem !important; }
    .download-card p { font-size: 0.78rem !important; margin-bottom: 14px !important; }
    .download-card .btn { height: 44px !important; font-size: 0.85rem !important; }

    /* Mobile profile tab bar — slimmer */
    .profile-mobile-tabs {
        left: 8px !important;
        right: 8px !important;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 6px !important;
        border-radius: 18px !important;
    }
    .profile-mobile-tabs a {
        padding: 8px 11px !important;
        font-size: 0.78rem !important;
        gap: 6px !important;
        border-radius: 11px !important;
    }
    .profile-mobile-tabs a svg { width: 16px !important; height: 16px !important; }

    /* Modals — slimmer */
    .nova-modal { padding: 22px 18px !important; border-radius: 22px !important; }
    .nova-modal-header h3 { font-size: 1.15rem !important; }
    .nova-modal-header p { font-size: 0.82rem !important; }
    .nova-field span { font-size: 0.72rem !important; }
    .nova-modal input,
    .nova-modal textarea { font-size: 15px !important; height: 44px; padding: 0 12px !important; }
    .nova-modal textarea { height: auto; padding: 10px 12px !important; }
    .nova-modal-actions .btn { height: 44px !important; font-size: 0.88rem !important; }

    /* Generic buttons: tighter */
    .btn-small { padding: 6px 12px !important; font-size: 0.78rem !important; border-radius: 10px !important; }

    /* Toasts above slimmer tab bar */
    .nova-toast-container { bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — APPLE CANON (final aggressive pass)
   Reference: apple.com / iOS Settings / iCloud Web
   - Body 13–14px, headers 16–22px (no chunky 32px+ on a phone)
   - Font-weight 500–600 default, 700 only on accents
   - Letter-spacing -0.01em on copy, +1px on uppercase micro
   - Buttons 36–40px tall, 13px label, 11–14px radius
   - Cards: 12–14px padding, 14–16px radius, 1px hairline border
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* === GLOBAL TYPE BASELINE === */
    body { font-size: 14px !important; -webkit-font-smoothing: antialiased; }
    h1, h2, h3, h4 { letter-spacing: -0.02em !important; }
    p { letter-spacing: -0.005em; }

    /* === NAVBAR — Apple-tiny === */
    .navbar { height: 46px !important; }
    .navbar .container.nav-inner {
        height: 46px !important;
        padding: 0 12px !important;
        gap: 6px !important;
    }
    .logo { gap: 6px !important; }
    .logo-img {
        height: 22px !important;
        animation: none !important;
        filter: drop-shadow(0 0 6px rgba(162,89,255,0.4)) !important;
    }
    .logo-text {
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em !important;
    }

    /* Balance pill — minimal */
    .navbar .nav-inner > .user-nav-balance {
        font-size: 0.62rem !important;
        padding: 3px 7px !important;
        height: 22px !important;
        border-radius: 7px !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em !important;
        margin-left: 4px !important;
    }

    /* Nav actions */
    .nav-actions { gap: 4px !important; }

    .user-nav-trigger {
        padding: 2px !important;
        border-radius: 7px !important;
        background: rgba(255,255,255,0.04) !important;
        border: none !important;
    }
    .user-nav-avatar {
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
    }

    /* Burger — micro */
    .nav-burger {
        width: 26px !important;
        height: 26px !important;
        border-radius: 7px !important;
        background: rgba(255,255,255,0.04) !important;
        border: none !important;
        margin-left: 2px !important;
    }
    .nav-burger span,
    .nav-burger span::before,
    .nav-burger span::after {
        width: 12px !important;
        height: 1.2px !important;
    }
    .nav-burger span::before { top: -4px !important; }
    .nav-burger span::after { top: 4px !important; }

    /* Drawer — Apple sheet vibe */
    .mobile-nav-drawer { padding: 64px 20px 24px !important; background: rgba(8,8,12,0.96) !important; }
    .mobile-nav-drawer a {
        padding: 13px 0 !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
    }
    .mobile-nav-drawer a::after { font-size: 1rem !important; color: #4b4b52 !important; }
    .mobile-nav-drawer .mnd-cta { gap: 8px !important; margin-top: 14px !important; }
    .mobile-nav-drawer .mnd-cta .btn {
        height: 38px !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
    }

    /* === HERO — restrained === */
    .hero-ultimate { padding-top: 50px !important; padding-bottom: 36px !important; }
    .hero-title-massive {
        font-size: 1.7rem !important;
        line-height: 1.05 !important;
        font-weight: 700 !important;
        letter-spacing: -0.035em !important;
    }
    .hero-sub-centered {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        font-weight: 400 !important;
        margin-top: 10px !important;
        color: rgba(255,255,255,0.65) !important;
    }
    .cta-group-centered { padding: 0 22px !important; margin-top: 20px !important; }
    .cta-group-centered .btn,
    .btn-xl {
        height: 42px !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
    }

    /* === SECTION HEADINGS — Apple H2 === */
    .section-head-premium { margin-bottom: 22px !important; padding: 0 16px !important; }
    .section-head-premium h2 {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
    }
    .section-head-premium p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
        color: rgba(255,255,255,0.55) !important;
    }
    .micro-label {
        font-size: 0.6rem !important;
        letter-spacing: 1.4px !important;
        font-weight: 600 !important;
        opacity: 0.55;
    }

    /* === COMPARE SLIDER === */
    .compare-v2 { padding: 36px 0 !important; }

    /* === PRICING === */
    .pricing-v2 { padding: 32px 0 !important; }
    .pricing-grid-premium { padding: 0 16px !important; gap: 10px !important; }
    .price-card-v4 {
        padding: 22px 18px !important;
        border-radius: 18px !important;
        border-width: 1px !important;
    }
    .price-bg-digit { font-size: 5.5rem !important; opacity: 0.4; }
    .price-title-v4 {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.6px !important;
        margin-bottom: 4px !important;
    }
    .price-mini-desc {
        font-size: 0.72rem !important;
        line-height: 1.45 !important;
        margin-bottom: 16px !important;
    }
    .new-price-premium {
        font-size: 1.65rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.03em !important;
    }
    .new-price-premium em { font-size: 0.85rem !important; }
    .old-price-main { font-size: 0.78rem !important; }
    .price-card-v4 .btn {
        height: 38px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        margin-top: 6px;
    }
    .popular-label-drip {
        font-size: 0.55rem !important;
        padding: 3px 8px !important;
        top: 14px !important;
        right: 14px !important;
    }

    /* === LAUNCHER SECTION === */
    .ecosystem-section { padding: 32px 0 !important; }
    .ecosystem-grid { gap: 22px !important; padding: 0 16px !important; }
    .eco-text-content h2 {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        margin-bottom: 10px !important;
    }
    .eco-text-content > p {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
        color: rgba(255,255,255,0.55) !important;
        margin-bottom: 16px !important;
    }
    .eco-features { gap: 8px !important; display: flex !important; flex-direction: column !important; }
    .eco-features li {
        padding: 11px 12px !important;
        border-radius: 12px !important;
        gap: 10px !important;
    }
    .eco-features li h4 {
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        margin-bottom: 1px !important;
    }
    .eco-features li span {
        font-size: 0.72rem !important;
        line-height: 1.4 !important;
        color: rgba(255,255,255,0.5) !important;
    }
    .eco-icon { width: 30px !important; height: 30px !important; border-radius: 8px !important; }
    .eco-icon svg { width: 14px !important; height: 14px !important; }

    /* Launcher mockup — small Apple chip */
    .launcher-mockup-wrapper {
        max-width: 240px !important;
        border-radius: 13px !important;
        margin: 0 auto !important;
    }
    .nl-top-bar { height: 22px !important; padding: 0 8px !important; }
    .nl-mac-btns { gap: 4px !important; }
    .nl-mac-btns .mac-btn { width: 6px !important; height: 6px !important; }
    .nl-title { font-size: 0.55rem !important; letter-spacing: 0.3px !important; font-weight: 500 !important; }
    .nl-glass-card { padding: 11px !important; border-radius: 10px !important; }
    .nl-avatar-ring { width: 36px !important; height: 36px !important; margin-bottom: 4px !important; }
    .nl-avatar-ring img { width: 22px !important; }
    .nl-welcome { font-size: 0.5rem !important; }
    .nl-username { font-size: 0.78rem !important; margin-bottom: 4px !important; font-weight: 600 !important; }
    .nl-version-toggle { transform: scale(0.65); margin-bottom: 0 !important; }
    .nl-play-button {
        height: 26px !important;
        font-size: 0.62rem !important;
        padding: 0 14px !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
    }

    /* === FOOTER === */
    .site-footer-v2 { padding: 36px 0 22px !important; margin-top: 24px !important; }
    .footer-inner { gap: 22px !important; padding: 0 18px !important; }
    .foot-col h4 {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.8px !important;
        margin-bottom: 8px !important;
    }
    .foot-col a, .foot-link-btn { font-size: 0.78rem !important; margin-bottom: 6px !important; font-weight: 400 !important; }
    .foot-brand p { font-size: 0.75rem !important; line-height: 1.5 !important; }
    .foot-brand .logo-text { font-size: 0.85rem !important; }

    /* ═══════════════ PROFILE — APPLE-CANON ═══════════════ */
    .profile-layout {
        padding: 0 8px 90px !important;
        margin-top: 8px !important;
    }
    .profile-main {
        padding: 14px 12px !important;
        border-radius: 16px !important;
        border-width: 1px !important;
    }
    .profile-welcome {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        margin-bottom: 14px !important;
        letter-spacing: -0.02em !important;
    }
    .profile-section-title {
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        color: rgba(255,255,255,0.4) !important;
        margin: 18px 0 8px !important;
    }
    /* First section title shouldn't have a giant top margin */
    .profile-section .profile-section-title:first-of-type { margin-top: 6px !important; }

    /* Grouped iOS list */
    .profile-info-grid {
        padding: 0 12px !important;
        border-radius: 12px !important;
    }
    .profile-info-row {
        padding: 9px 0 !important;
        gap: 10px !important;
    }
    .profile-info-label {
        font-size: 0.74rem !important;
        font-weight: 400 !important;
        color: rgba(255,255,255,0.55) !important;
    }
    .profile-info-value {
        font-size: 0.78rem !important;
        font-weight: 500 !important;
        max-width: 60%;
    }
    .profile-password-edit svg { width: 12px !important; height: 12px !important; }

    /* Subscription state card */
    .sub-state-card { padding: 14px !important; border-radius: 14px !important; }
    .sub-state-label { font-size: 0.6rem !important; letter-spacing: 0.8px !important; }
    .sub-state-title { font-size: 0.92rem !important; font-weight: 600 !important; }
    .sub-state-sub { font-size: 0.72rem !important; }
    .sub-state-days-value { font-size: 1.6rem !important; font-weight: 700 !important; }
    .sub-state-days-unit { font-size: 0.62rem !important; }
    #subStateCTA {
        height: 32px !important;
        padding: 0 12px !important;
        font-size: 0.72rem !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
    }

    /* Activation key */
    .profile-key-section p { font-size: 0.74rem !important; margin-bottom: 8px !important; }
    .profile-key-row input {
        height: 38px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }
    .profile-key-row button {
        height: 38px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
    }

    /* Danger zone */
    #section-account > div[style*="border: 1px solid rgba(239, 68, 68"] {
        padding: 14px !important;
        border-radius: 12px !important;
    }
    #section-account > div[style*="border: 1px solid rgba(239, 68, 68"] > div > div:first-child {
        font-size: 0.85rem !important;
    }
    #section-account > div[style*="border: 1px solid rgba(239, 68, 68"] > div > div:last-child {
        font-size: 0.72rem !important;
    }
    #openDeleteAccountBtn {
        height: 36px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
    }

    /* Balance card */
    .balance-card-premium {
        padding: 16px !important;
        border-radius: 16px !important;
        gap: 12px !important;
    }
    .balance-card-premium > div:first-child > div[style*="font-size: 0.85rem"] {
        font-size: 0.6rem !important;
        letter-spacing: 1.2px !important;
    }
    .balance-card-premium > div:first-child > div[style*="font-size: 3.5rem"] {
        font-size: 1.9rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.03em !important;
    }
    #profileBalanceDisplay { font-size: 1.9rem !important; }
    .balance-card-premium > div:first-child > div[style*="font-size: 0.75rem"] { font-size: 0.65rem !important; }
    .balance-card-premium .btn {
        height: 42px !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
    }

    /* Top-up panel */
    #topupPanel { padding: 12px !important; border-radius: 14px !important; margin-bottom: 18px !important; }
    #topupPanel h3 { font-size: 0.66rem !important; letter-spacing: 0.8px !important; margin-bottom: 10px !important; }
    #topupDenoms { grid-template-columns: repeat(3, 1fr) !important; gap: 5px !important; }
    #topupDenoms button {
        padding: 8px 4px !important;
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
    }
    #topupPanel .btn { height: 36px !important; font-size: 0.75rem !important; padding: 0 12px !important; border-radius: 10px !important; }
    #topupMsg { font-size: 0.7rem !important; }

    /* Section sub-headings (h3 in balance/etc.) */
    #section-balance h3,
    #section-shop h3,
    #section-configs h3 {
        font-size: 0.66rem !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        margin-bottom: 10px !important;
    }

    /* Payment list */
    .payment-grid-premium { gap: 6px !important; }
    .payment-item-v3 { padding: 10px !important; border-radius: 11px !important; gap: 9px !important; }
    .payment-icon-v3 { width: 30px !important; height: 30px !important; border-radius: 8px !important; }
    .payment-icon-v3 svg { width: 14px !important; height: 14px !important; }
    .payment-item-v3 div[style*="font-weight: 800"] { font-size: 0.78rem !important; font-weight: 600 !important; }
    .payment-item-v3 div[style*="font-size: 0.75rem"] { font-size: 0.65rem !important; }

    /* Transactions */
    .transaction-list { padding: 4px !important; border-radius: 14px !important; min-height: 100px !important; }
    #no-transactions { padding: 24px !important; }
    #no-transactions div { font-size: 0.74rem !important; }

    /* === SHOP (tariff cards) === */
    .shop-card.compact {
        padding: 14px !important;
        border-radius: 14px !important;
    }
    .shop-card.compact h3 {
        font-size: 0.92rem !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
    }
    .shop-card.compact > div[style*="font-size: 0.8rem"] { font-size: 0.7rem !important; }
    .shop-card .shop-price {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        margin: 6px 0 !important;
    }
    .shop-card .shop-price .old-price { font-size: 0.7rem !important; }
    .shop-card .shop-price em { font-size: 0.7rem !important; }
    .shop-card .btn {
        height: 32px !important;
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        border-radius: 9px !important;
        padding: 0 !important;
    }
    .shop-card.featured > div[style*="font-size: 0.65rem"] {
        font-size: 0.55rem !important;
        padding: 2px 5px !important;
        border-radius: 5px !important;
    }

    /* Promo bar (in shop) */
    .promo-bar-premium {
        padding: 12px !important;
        border-radius: 14px !important;
        gap: 8px !important;
        flex-wrap: wrap;
    }
    .promo-bar-premium > div:first-child {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
    }
    .promo-bar-premium > div:first-child svg { width: 16px !important; height: 16px !important; }
    .promo-bar-premium h4 { font-size: 0.78rem !important; font-weight: 600 !important; }
    .promo-bar-premium p { font-size: 0.65rem !important; line-height: 1.35 !important; }
    .promo-input-premium-mini {
        height: 32px !important;
        font-size: 13px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        letter-spacing: 1.5px !important;
    }
    .promo-bar-premium .btn {
        height: 32px !important;
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        padding: 0 12px !important;
        border-radius: 8px !important;
    }

    /* Cosmetic cards (in shop) */
    #section-shop > div[style*="margin-top: 80px"] {
        margin-top: 32px !important;
    }
    #section-shop > div[style*="margin-top: 80px"] h2 {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        margin-bottom: 6px !important;
    }
    #section-shop > div[style*="margin-top: 80px"] p {
        font-size: 0.78rem !important;
        margin-bottom: 22px !important;
    }
    .apple-cosmetic-card {
        padding: 18px 14px !important;
        border-radius: 18px !important;
    }
    .apple-cosmetic-preview { height: 140px !important; margin-bottom: 12px !important; }
    .apple-cosmetic-title {
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
    }
    .apple-cosmetic-desc {
        font-size: 0.74rem !important;
        margin-bottom: 14px !important;
        line-height: 1.4 !important;
    }
    .apple-buy-btn {
        height: 36px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        text-transform: none !important;
        letter-spacing: -0.01em !important;
    }

    /* === CONFIGS === */
    .configs-header { gap: 8px !important; margin-bottom: 14px !important; }
    .configs-header h2 { font-size: 0.68rem !important; }
    .configs-header-actions { gap: 6px !important; }
    .configs-header-actions .btn {
        height: 34px !important;
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
    }
    .configs-header-actions .btn svg { width: 12px !important; margin-right: 5px !important; }
    .search-input-wrap input {
        height: 38px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        padding: 0 12px 0 36px !important;
    }
    .search-input-wrap svg { width: 14px !important; height: 14px !important; left: 12px !important; }
    .search-dual-container { gap: 6px !important; margin-bottom: 16px !important; }

    .config-card-v3 { padding: 12px !important; border-radius: 12px !important; }
    .config-card-v3 > div:first-child > span:first-child {
        font-size: 0.6rem !important;
        padding: 2px 7px !important;
    }
    .config-card-v3 > div:first-child > span:last-child {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }
    .config-card-v3 > div[style*="font-weight: 800"] { font-size: 0.85rem !important; }
    .config-card-v3 > div[style*="font-size: 0.75rem"] { font-size: 0.65rem !important; }
    .config-card-v3 > div[style*="display: flex; gap"] { gap: 5px !important; }
    .config-card-v3 .btn-small {
        height: 30px !important;
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        padding: 0 7px !important;
        border-radius: 8px !important;
    }

    .config-item-v2 { padding: 10px !important; border-radius: 10px !important; gap: 10px !important; }
    .config-icon { width: 28px !important; height: 28px !important; font-size: 0.78rem !important; border-radius: 8px !important; }
    .config-name { font-size: 0.78rem !important; font-weight: 600 !important; }
    .config-meta { font-size: 0.65rem !important; }
    .config-item-v2 .btn { height: 30px !important; font-size: 0.68rem !important; padding: 0 10px !important; }

    /* === PARTNERSHIP === */
    .partner-card-v3 { padding: 18px 14px !important; border-radius: 16px !important; }
    .partner-card-v3 h3 { font-size: 0.95rem !important; font-weight: 600 !important; margin-bottom: 6px !important; }
    .partner-card-v3 p { font-size: 0.74rem !important; line-height: 1.45 !important; margin-bottom: 12px !important; }
    .partner-card-v3 .btn {
        height: 36px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
    }

    /* === SERVERS === */
    #section-servers div[style*="background: rgba(255,255,255,0.02)"] {
        padding: 16px !important;
        border-radius: 14px !important;
    }
    #section-servers div[style*="background: rgba(255,255,255,0.02)"] h3 {
        font-size: 0.92rem !important;
        font-weight: 600 !important;
        margin-bottom: 6px !important;
    }
    #section-servers div[style*="background: rgba(255,255,255,0.02)"] p {
        font-size: 0.74rem !important;
        margin-bottom: 12px !important;
    }
    #section-servers .btn { height: 36px !important; font-size: 0.78rem !important; font-weight: 600 !important; }

    /* === SUPPORT === */
    .support-chip-v3 { padding: 14px !important; border-radius: 14px !important; }
    .support-chip-icon { width: 30px !important; height: 30px !important; border-radius: 8px !important; }
    .support-chip-icon svg { width: 14px !important; height: 14px !important; }
    .support-chip-v3 h4 { font-size: 0.85rem !important; font-weight: 600 !important; margin-bottom: 4px !important; }
    .support-chip-v3 p { font-size: 0.7rem !important; margin-bottom: 10px !important; }
    .support-chip-v3 .btn { height: 30px !important; font-size: 0.66rem !important; }
    #section-support div[style*="margin-top: 50px"] {
        padding: 22px !important;
        border-radius: 16px !important;
        margin-top: 22px !important;
    }
    #section-support div[style*="margin-top: 50px"] p {
        font-size: 0.78rem !important;
        margin-bottom: 12px !important;
    }
    #section-support div[style*="margin-top: 50px"] .btn {
        height: 42px !important;
        font-size: 0.82rem !important;
        padding: 0 22px !important;
        border-radius: 12px !important;
    }

    /* === DOWNLOAD === */
    #section-download > div[style*="background: rgba(162, 89, 255, 0.05)"] {
        padding: 14px !important;
        border-radius: 14px !important;
        margin-bottom: 18px !important;
        gap: 12px !important;
    }
    #section-download > div[style*="background: rgba(162, 89, 255, 0.05)"] > div:first-child {
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
    }
    #section-download > div[style*="background: rgba(162, 89, 255, 0.05)"] h4 { font-size: 0.85rem !important; }
    #section-download > div[style*="background: rgba(162, 89, 255, 0.05)"] p { font-size: 0.7rem !important; }
    .download-card { padding: 16px !important; border-radius: 16px !important; }
    .download-card svg:first-of-type { width: 32px !important; height: 32px !important; margin-bottom: 10px !important; }
    .download-card h3 { font-size: 0.95rem !important; font-weight: 600 !important; margin-bottom: 4px !important; }
    .download-card p { font-size: 0.7rem !important; line-height: 1.45 !important; }
    .download-card .btn { height: 38px !important; font-size: 0.78rem !important; font-weight: 600 !important; border-radius: 10px !important; }
    #section-download > div[style*="margin-top: 30px"] { margin-top: 16px !important; gap: 10px !important; }
    #section-download > div[style*="margin-top: 30px"] > div { padding: 14px !important; border-radius: 12px !important; }
    #section-download > div[style*="margin-top: 30px"] h4 { font-size: 0.66rem !important; margin-bottom: 6px !important; }
    #section-download > div[style*="margin-top: 30px"] ol { font-size: 0.7rem !important; line-height: 1.55 !important; }

    /* === PROFILE MOBILE TAB BAR — refined === */
    .profile-mobile-tabs {
        left: 8px !important;
        right: 8px !important;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 5px !important;
        border-radius: 16px !important;
        background: rgba(15,15,22,0.78) !important;
    }
    .profile-mobile-tabs a {
        padding: 7px 9px !important;
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        gap: 5px !important;
        border-radius: 9px !important;
    }
    .profile-mobile-tabs a svg { width: 14px !important; height: 14px !important; }

    /* === MODALS — Apple sheet === */
    .nova-modal {
        padding: 20px 16px !important;
        border-radius: 18px !important;
    }
    .nova-modal-header h3 {
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
    }
    .nova-modal-header p {
        font-size: 0.75rem !important;
        color: rgba(255,255,255,0.55) !important;
    }
    .nova-modal-icon { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
    .nova-modal-icon svg { width: 16px !important; height: 16px !important; }
    .nova-field span {
        font-size: 0.66rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
    }
    .nova-modal input,
    .nova-modal textarea {
        font-size: 14px !important;
        height: 38px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
    }
    .nova-modal textarea { height: auto !important; min-height: 60px !important; padding: 9px 12px !important; }
    .nova-modal-actions { gap: 6px !important; margin-top: 14px !important; }
    .nova-modal-actions .btn {
        height: 38px !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
    }

    /* === GENERIC BUTTON SCALE === */
    .btn { font-weight: 600 !important; letter-spacing: -0.01em !important; }
    .btn-primary-premium, .btn-ghost-premium {
        min-height: 36px;
        padding: 0 14px;
        font-size: 0.82rem;
        border-radius: 11px;
    }
    .container { padding: 0 8px !important; }
    .btn-small { padding: 0 10px !important; font-size: 0.7rem !important; height: 30px !important; }

    /* === AUTH MODAL === */
    .auth-split-modal { padding: 22px 18px !important; border-radius: 20px !important; }
    .auth-split-modal h3 { font-size: 1.15rem !important; }
    .auth-split-modal .auth-subtitle { font-size: 0.78rem !important; margin-bottom: 16px !important; }
    .input-field-v2 input { height: 42px !important; font-size: 14px !important; border-radius: 11px !important; }

    /* Toast */
    .nova-toast-container { bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ≤ 380px — extra trim */
@media (max-width: 380px) {
    .logo-text { font-size: 0.66rem !important; }
    .logo-img { height: 20px !important; }
    .navbar .nav-inner > .user-nav-balance { font-size: 0.58rem !important; padding: 2px 6px !important; height: 20px !important; }
    .user-nav-avatar { width: 22px !important; height: 22px !important; font-size: 10px !important; }
    .nav-burger { width: 24px !important; height: 24px !important; }
    .hero-title-massive { font-size: 1.5rem !important; }
    .launcher-mockup-wrapper { max-width: 210px !important; }
    .profile-mobile-tabs a { font-size: 0.65rem !important; padding: 6px 7px !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — PASS 5 (final detailed fixes)
   - Always full-screen, no horizontal slop
   - Even smaller logo, role badge, subscription numbers
   - Bottom tab-bar within edges (no overflow past viewport)
   - Balance card layout — no overlap
   - Shop tariffs + download cards stack vertically
   - Configs cloud list — minimalist
   - Hide burger; avatar opens iOS bottom-sheet with Профиль/Выйти
   - Polished auth modal
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* === Always full-screen === */
    html { width: 100%; min-height: 100vh; }
    body {
        width: 100%;
        min-width: 100%;
        min-height: 100vh;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    main, .profile-layout, .container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* === LOGO — even smaller === */
    .logo-img { height: 18px !important; }
    .logo-text { font-size: 0.66rem !important; font-weight: 600 !important; }

    /* Tighten navbar */
    .navbar { height: 42px !important; }
    .navbar .container.nav-inner { height: 42px !important; padding: 0 10px !important; }

    /* Balance pill smaller */
    .navbar .nav-inner > .user-nav-balance {
        font-size: 0.6rem !important;
        height: 20px !important;
        padding: 2px 7px !important;
    }
    .user-nav-avatar { width: 26px !important; height: 26px !important; font-size: 11px !important; }

    /* === HIDE BURGER on mobile === */
    .nav-burger { display: none !important; }
    .mobile-nav-drawer { display: none !important; }

    /* Restore dropdown on mobile as a bottom sheet === */
    .user-nav-menu .user-nav-dropdown {
        display: block !important;
        position: fixed !important;
        top: auto !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        left: 12px !important;
        right: 12px !important;
        min-width: 0 !important;
        padding: 8px !important;
        border-radius: 18px !important;
        background: rgba(18, 14, 28, 0.96) !important;
        backdrop-filter: blur(18px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
        border: 1px solid rgba(255,255,255,0.06) !important;
        box-shadow: 0 24px 60px rgba(0,0,0,0.6) !important;
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1) !important;
        z-index: 9000 !important;
    }
    .user-nav-menu.open .user-nav-dropdown {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    .user-nav-dropdown a, .user-nav-dropdown button {
        padding: 13px 14px !important;
        font-size: 0.92rem !important;
        font-weight: 500 !important;
        border-radius: 12px !important;
    }
    .user-nav-dropdown .dropdown-icon { width: 16px !important; height: 16px !important; }
    .dropdown-divider { margin: 4px 8px !important; }

    /* For guest navbar on mobile, hide the "Получить" button to save space —
       login button remains. */
    #navActionsGuest .btn-primary-premium { display: none !important; }
    #navActionsGuest .btn-ghost-premium {
        height: 32px !important;
        padding: 0 14px !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
    }

    /* === ACCOUNT — role pill smaller === */
    .role-badge-premium,
    .role-badge-standard {
        font-size: 0.65rem !important;
        padding: 3px 9px !important;
        border-radius: 7px !important;
        font-weight: 600 !important;
        gap: 4px !important;
    }
    .role-badge-premium svg,
    .role-badge-standard svg {
        width: 10px !important;
        height: 10px !important;
    }

    /* === SUBSCRIPTION CARD — minimal numeric === */
    .sub-state-card {
        padding: 14px 16px !important;
        border-radius: 16px !important;
    }
    .sub-state-body {
        flex-direction: row !important;
        gap: 14px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .sub-state-left { flex: 1; min-width: 0; }
    .sub-state-label {
        font-size: 0.55rem !important;
        letter-spacing: 1.2px !important;
        font-weight: 600 !important;
        color: rgba(255,255,255,0.4) !important;
        margin-bottom: 2px !important;
    }
    .sub-state-title {
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .sub-state-sub { display: none !important; }
    .sub-state-right {
        flex-direction: column !important;
        align-items: flex-end !important;
        gap: 6px !important;
        flex-shrink: 0;
    }
    .sub-state-days {
        text-align: right !important;
        line-height: 1 !important;
    }
    .sub-state-days-value {
        font-size: 1.7rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.04em !important;
        background: linear-gradient(135deg, #fff, #c4a4ff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .sub-state-days-unit {
        font-size: 0.58rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        color: rgba(255,255,255,0.4) !important;
        margin-top: 1px !important;
    }
    #subStateCTA {
        height: 28px !important;
        padding: 0 10px !important;
        font-size: 0.66rem !important;
    }

    /* === BALANCE CARD — fix overlap === */
    .balance-card-premium {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 18px !important;
        gap: 14px !important;
        border-radius: 18px !important;
    }
    .balance-card-premium > div:first-child {
        width: 100% !important;
        max-width: 100% !important;
    }
    .balance-card-premium > div:last-child {
        width: 100% !important;
        text-align: left !important;
    }
    /* "Доступные средства" label */
    .balance-card-premium > div:first-child > div[style*="font-size: 0.85rem"] {
        font-size: 0.58rem !important;
        letter-spacing: 1.2px !important;
        font-weight: 600 !important;
        color: rgba(255,255,255,0.4) !important;
        margin-bottom: 6px !important;
    }
    /* Big balance number row */
    .balance-card-premium > div:first-child > div[style*="font-size: 3.5rem"] {
        font-size: 2rem !important;
        line-height: 1 !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        word-break: break-word;
    }
    .balance-card-premium > div:first-child > div[style*="font-size: 3.5rem"] > span:last-child {
        font-size: 1.3rem !important;
    }
    #profileBalanceDisplay { font-size: 2rem !important; }
    /* "Защищено..." line */
    .balance-card-premium > div:first-child > div[style*="font-size: 0.75rem"] {
        font-size: 0.62rem !important;
        margin-top: 10px !important;
    }
    .balance-card-premium > div:first-child > div[style*="font-size: 0.75rem"] svg {
        width: 11px !important;
        height: 11px !important;
    }
    .balance-card-premium .btn {
        width: 100% !important;
        height: 42px !important;
        padding: 0 !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        box-shadow: 0 6px 20px rgba(162,89,255,0.25) !important;
    }

    /* === SHOP — plans STACKED vertically === */
    #section-shop .shop-grid-v2,
    .shop-grid-v2[style*="repeat(3, 1fr)"],
    #section-shop > .shop-grid-v2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .shop-card.compact { text-align: left !important; padding: 16px !important; }
    .shop-card.compact h3 { font-size: 1rem !important; }
    .shop-card.compact .shop-price { font-size: 1.2rem !important; margin: 4px 0 10px !important; }
    .shop-card .btn { height: 36px !important; }

    /* Cosmetics grid stays 1 col on mobile (already is, ensure) */
    .apple-cosmetic-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* === DOWNLOAD — STACK + prettier === */
    #section-download .download-grid,
    #section-download > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .download-card {
        padding: 18px !important;
        border-radius: 18px !important;
        background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)) !important;
        border: 1px solid rgba(255,255,255,0.06) !important;
    }
    .download-card svg:first-of-type {
        width: 26px !important;
        height: 26px !important;
        margin-bottom: 12px !important;
        opacity: 0.85;
    }
    .download-card h3 { font-size: 1rem !important; font-weight: 600 !important; margin-bottom: 4px !important; }
    .download-card p { font-size: 0.72rem !important; color: rgba(255,255,255,0.5) !important; margin-bottom: 6px !important; }
    .download-card .btn {
        height: 40px !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        margin-top: 6px !important;
    }
    /* Top hint card in download */
    #section-download > div[style*="background: rgba(162, 89, 255, 0.05)"] {
        flex-direction: row !important;
        align-items: center !important;
        padding: 12px !important;
        gap: 10px !important;
    }
    /* Install instructions cards */
    #section-download > div[style*="margin-top: 30px"] { grid-template-columns: 1fr !important; gap: 8px !important; }

    /* === CONFIGS — minimalist global cloud list === */
    /* My configs — keep card style but tighter (already tightened) */
    /* Global cloud — flat row, NO heavy backgrounds */
    #configsList {
        gap: 4px !important;
        background: rgba(255,255,255,0.02);
        border: 1px solid rgba(255,255,255,0.04);
        border-radius: 14px;
        padding: 4px;
    }
    #configsList .config-item-v2 {
        background: transparent !important;
        border-radius: 10px !important;
        padding: 10px 12px !important;
        gap: 10px !important;
        position: relative;
        transition: background 0.2s ease;
    }
    #configsList .config-item-v2:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 50px; right: 12px; bottom: 0;
        height: 1px;
        background: rgba(255,255,255,0.04);
    }
    #configsList .config-item-v2:active { background: rgba(255,255,255,0.04) !important; }
    #configsList .config-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
    }
    #configsList .config-name {
        font-size: 0.82rem !important;
        font-weight: 500 !important;
        margin-bottom: 1px;
    }
    #configsList .config-name span { display: none !important; } /* hide CLOUD pill — not needed in this list */
    #configsList .config-meta {
        font-size: 0.65rem !important;
        color: rgba(255,255,255,0.4) !important;
        line-height: 1.3 !important;
    }
    #configsList .config-item-v2 .btn {
        height: 28px !important;
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        margin-top: 0 !important;
        width: auto !important;
        flex-shrink: 0;
    }

    /* === MOBILE TAB BAR — keep within edges, never overflow === */
    .profile-mobile-tabs {
        left: 6px !important;
        right: 6px !important;
        max-width: calc(100vw - 12px) !important;
        bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important;
        padding: 4px !important;
        border-radius: 14px !important;
        box-sizing: border-box;
        overflow-x: auto;
    }
    .profile-mobile-tabs .pmt-track { gap: 3px !important; }
    .profile-mobile-tabs a {
        padding: 6px 8px !important;
        font-size: 0.66rem !important;
        gap: 4px !important;
        border-radius: 8px !important;
    }
    .profile-mobile-tabs a svg { width: 13px !important; height: 13px !important; }

    /* Push profile content above the floating tab bar */
    .profile-layout { padding-bottom: 80px !important; }

    /* === AUTH MODAL — Apple-clean === */
    .auth-overlay { padding: 0 !important; }
    .auth-split-modal {
        grid-template-columns: 1fr !important;
        max-width: calc(100vw - 20px) !important;
        margin: 0 10px !important;
        padding: 26px 20px 22px !important;
        border-radius: 22px !important;
        max-height: 92vh;
        overflow-y: auto;
    }
    .auth-carousel-side { display: none !important; }
    .auth-form-side { padding: 0 !important; }
    .auth-modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
    }
    .auth-modal-close svg { width: 14px !important; height: 14px !important; }
    .auth-form-side h3 {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
        letter-spacing: -0.02em !important;
    }
    .auth-subtitle {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
        color: rgba(255,255,255,0.55) !important;
        margin-bottom: 16px !important;
    }
    .auth-error { font-size: 0.75rem !important; min-height: 14px !important; }
    .input-field-v2 {
        margin-bottom: 10px !important;
    }
    .input-field-v2 input {
        height: 42px !important;
        font-size: 14px !important;
        border-radius: 11px !important;
        padding: 0 14px !important;
    }
    .password-field .eye-icon { right: 12px !important; }
    .password-field .eye-icon svg { width: 14px !important; height: 14px !important; }
    .auth-links { font-size: 0.78rem !important; }
    .auth-link { font-size: 0.78rem !important; }
    /* reCAPTCHA on small screens — center & scale */
    #captchaSection, #loginCaptchaSection { transform: scale(0.85); transform-origin: center; margin: 6px 0 !important; }
    #loginBtn, #regBtn {
        height: 44px !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        border-radius: 12px !important;
        margin-top: 6px !important;
    }
    #login2FAView h4 { font-size: 1rem !important; }
    #login2FAView p { font-size: 0.78rem !important; }
    #loginTargetNumber {
        font-size: 2.2rem !important;
        width: 78px !important;
        padding: 6px !important;
        border-radius: 10px !important;
    }
    /* Remember-me + forgot row */
    .auth-links.mb-2 { gap: 8px !important; }
    .auth-links.mb-2 label { font-size: 0.78rem !important; }
}

/* ≤ 380px — tighter still on tiny phones */
@media (max-width: 380px) {
    .sub-state-days-value { font-size: 1.5rem !important; }
    #profileBalanceDisplay { font-size: 1.75rem !important; }
    .profile-mobile-tabs a { padding: 5px 6px !important; font-size: 0.6rem !important; }
    .profile-mobile-tabs a svg { width: 12px !important; height: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — FINAL LOGO + LAYOUT LOCK (highest priority)
   - "NovaVisuals" wordmark fully hidden on phone (just UFO icon)
   - UFO icon micro-sized (14px)
   - Balance sits flush LEFT next to logo (not centered)
   - Avatar firmly anchored RIGHT
   - No element ever leaks past the viewport
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Logo: Restore text but scale if needed */
    .navbar .logo-img {
        height: 28px !important;
        width: auto !important;
        margin: 0 !important;
        animation: none !important;
        filter: drop-shadow(0 0 8px rgba(162,89,255,0.4)) !important;
    }
    .navbar .logo .logo-text { font-size: 1.1rem !important; }

    /* === NAVBAR — transparent + thin === */
    .navbar {
        height: 48px !important;
        top: 0 !important;
        position: fixed !important;
        background: rgba(12, 10, 20, 0.7) !important;
        backdrop-filter: blur(16px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        padding: 0 !important;
        z-index: 10000 !important;
    }
    .navbar .container.nav-inner {
        height: 48px !important;
        padding: 0 16px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .navbar .nav-inner > .logo { margin-right: auto !important; }
    .navbar .nav-actions {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .navbar .nav-actions > .user-nav-balance {
        font-size: 0.8rem !important;
        height: 32px !important;
        padding: 0 12px !important;
        border-radius: 12px !important;
        font-weight: 800 !important;
        margin: 0 !important;
        background: rgba(162, 89, 255, 0.15) !important;
        border: 1px solid rgba(162, 89, 255, 0.3) !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Avatar — Restored to pill shape per request */
    .user-nav-trigger {
        padding: 4px 12px 4px 4px !important;
        border-radius: 100px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 0 15px rgba(162, 89, 255, 0.1) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: auto !important;
        height: 34px !important;
    }
    .user-nav-avatar {
        width: 100% !important;
        height: 100% !important;
        font-size: 13px !important;
        border-radius: 0 !important;
        background: linear-gradient(135deg, #a259ff, #7a3bd0) !important;
        color: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 900 !important;
    }
    /* Full visibility restored */
    .user-nav-name { display: block !important; font-size: 0.8rem !important; }
    .user-nav-chevron { display: block !important; width: 14px !important; height: 14px !important; }

    /* === BODY OFFSET === */
    body { padding-top: 48px !important; }
    #navActionsGuest .btn-ghost-premium {
        height: 28px !important;
        padding: 0 12px !important;
        font-size: 0.74rem !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
    }
}

/* ≤ 380px — even smaller logo icon */
@media (max-width: 380px) {
    .navbar .logo-img { height: 18px !important; }
    .navbar .logo .logo-text { font-size: 0.62rem !important; }
    .navbar .nav-actions > .user-nav-balance {
        font-size: 0.56rem !important;
        height: 18px !important;
        padding: 1px 6px !important;
    }
    .user-nav-avatar { width: 22px !important; height: 22px !important; font-size: 10px !important; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — PASS 6 (final positioning + Apple-canon polish)
   - Bring back "NovaVisuals" wordmark, slightly larger logo
   - Balance pill back on the RIGHT side
   - Navbar slightly more transparent
   - Hero/main content clears the fixed navbar (no overlap)
   - Smaller gaps between sections
   - Smaller launcher mockup height
   - Plan cards as horizontal "floors" — stylish split layout
   - Cloud-config rows ultra-thin
   - Bottom-sheet dropdown opens above tab bar without overlap
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* === LOGO — bring back wordmark, modest size === */
    .navbar .logo {
        gap: 6px !important;
        padding: 0 !important;
        align-items: center !important;
    }
    .navbar .logo-img {
        height: 22px !important;
        width: auto !important;
        margin: 0 !important;
        filter: drop-shadow(0 0 5px rgba(162,89,255,0.5)) !important;
    }
    .navbar .logo .logo-text {
        display: inline-flex !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.015em !important;
        margin: 0 !important;
    }

    /* === NAVBAR — transparent + thin === */
    .navbar {
        height: 44px !important;
        background: rgba(10, 10, 15, 0.55) !important;
        backdrop-filter: blur(12px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
        border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    }
    .navbar .container.nav-inner {
        height: 44px !important;
        padding: 0 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .navbar .nav-inner > .logo { margin-right: auto !important; }
    .navbar .nav-actions {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .navbar .nav-actions > .user-nav-balance {
        font-size: 0.62rem !important;
        height: 22px !important;
        padding: 3px 8px !important;
        border-radius: 7px !important;
        font-weight: 600 !important;
        margin: 0 !important;
        order: -1; /* sits before avatar */
    }

    /* Avatar — keep small */
    .user-nav-trigger {
        padding: 2px !important;
        border-radius: 7px !important;
        background: rgba(255,255,255,0.06) !important;
        border: 1px solid rgba(255,255,255,0.05) !important;
    }
    .user-nav-avatar {
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }

    /* === BODY OFFSET so content never sits behind the fixed navbar === */
    body { padding-top: 44px !important; }
    /* Profile page layout — remove extra top margin on mobile */
    body.theme-nova-premium > .profile-layout { margin-top: 0 !important; }
    /* Hero must not visually disappear under the bar */
    .hero-ultimate { padding-top: 0 !important; min-height: auto !important; }
    .hero-center-content { margin-bottom: 20px !important; gap: 15px !important; }

    /* === SMALLER GAPS BETWEEN SECTIONS === */
    .compare-v2 { padding: 24px 0 !important; }
    .ecosystem-section { padding: 24px 0 !important; }
    .pricing-v2 { padding: 24px 0 !important; }
    .site-footer-v2 { padding: 28px 0 18px !important; margin-top: 12px !important; }
    .section-head-premium { margin-bottom: 16px !important; }

    /* === LAUNCHER MOCKUP — smaller in HEIGHT === */
    .launcher-mockup-wrapper {
        max-width: 240px !important;
        margin: 0 auto !important;
        border-radius: 14px !important;
    }
    .nl-main-bg {
        aspect-ratio: 16/8 !important; /* shorter than 16/10 */
        min-height: 0 !important;
    }
    .nl-glass-card { padding: 9px !important; border-radius: 9px !important; }
    .nl-avatar-ring { width: 30px !important; height: 30px !important; margin-bottom: 3px !important; }
    .nl-avatar-ring img { width: 18px !important; }
    .nl-welcome { font-size: 0.46rem !important; }
    .nl-username { font-size: 0.7rem !important; margin-bottom: 3px !important; }
    .nl-version-toggle { transform: scale(0.55); margin: -2px 0 !important; }
    .nl-play-button {
        height: 22px !important;
        font-size: 0.55rem !important;
        padding: 0 12px !important;
        border-radius: 7px !important;
    }
    .nl-top-bar { height: 18px !important; padding: 0 7px !important; }
    .nl-mac-btns .mac-btn { width: 5px !important; height: 5px !important; }
    .nl-title { font-size: 0.5rem !important; }

    /* === PLAN CARDS — stylish horizontal "floors" === */
    .pricing-grid-premium {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 0 14px !important;
        margin-top: 18px !important;
    }
    .price-card-v4 {
        display: flex !important;
        flex-direction: column !important;
        padding: 30px 20px !important;
        border-radius: 24px !important;
        min-height: 420px !important;
        gap: 15px !important;
        background: rgba(25, 20, 40, 0.9) !important;
        text-align: center !important;
        align-items: center !important;
    }
    .price-content-top {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        align-items: center !important;
    }
    .price-card-v4 .price-title-v4 {
        font-size: 1.2rem !important;
        margin: 0 !important;
        position: static !important;
    }
    .price-card-v4 .price-mini-desc {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    .price-card-v4 .price-value-v2 {
        margin-top: auto !important;
        margin-bottom: 20px !important;
        gap: 8px !important;
    }
    .price-card-v4 .new-price-premium {
        font-size: 2.2rem !important;
    }
    .price-card-v4 .btn {
        width: 100% !important;
        margin-top: auto !important;
    }
    .price-card-v4:hover { transform: none !important; }
    .price-card-v4 .price-bg-digit { display: none !important; }
    .price-content-top {
        display: contents !important;
    }
    .price-card-v4 .price-title-v4 {
        grid-area: title;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
        text-align: left !important;
        margin: 0 !important;
        text-transform: uppercase !important;
        color: rgba(255,255,255,0.85) !important;
    }
    .price-card-v4 .price-mini-desc {
        grid-area: desc;
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
        color: rgba(255,255,255,0.5) !important;
        margin: 2px 0 10px !important;
        text-align: left !important;
        max-width: 100%;
    }
    .price-card-v4 .price-value-v2 {
        grid-area: price;
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 6px !important;
    }
    .price-card-v4 .new-price-premium {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        letter-spacing: -0.03em !important;
        background: linear-gradient(135deg, #fff, #c4a4ff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent !important;
    }
    .price-card-v4 .new-price-premium em {
        font-size: 0.78rem !important;
        color: rgba(255,255,255,0.6) !important;
        background: none !important;
        -webkit-text-fill-color: rgba(255,255,255,0.6) !important;
    }
    .price-card-v4 .old-price-main {
        font-size: 0.7rem !important;
        opacity: 0.45 !important;
    }
    .price-card-v4 .btn {
        grid-area: btn;
        width: 100% !important;
        height: 38px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        border-radius: 11px !important;
        margin-top: 4px !important;
    }
    .price-card-v4.featured-v4 {
        background: linear-gradient(135deg, rgba(162,89,255,0.18), rgba(162,89,255,0.05)) !important;
        border: 1px solid rgba(162,89,255,0.35) !important;
        box-shadow: 0 8px 24px rgba(162,89,255,0.15) !important;
        transform: none !important;
    }
    .price-card-v4.featured-v4:hover { transform: none !important; }
    .popular-label-drip {
        position: absolute !important;
        top: -8px !important;
        right: 14px !important;
        font-size: 0.5rem !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        z-index: 5;
    }

    /* === CLOUD-CONFIG ROWS — ultra thin === */
    #configsList {
        gap: 0 !important;
        padding: 0 !important;
        background: rgba(255,255,255,0.02) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255,255,255,0.04) !important;
        overflow: hidden;
    }
    #configsList .config-item-v2 {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 8px 12px !important;
        background: transparent !important;
        border-radius: 0 !important;
        position: relative;
    }
    #configsList .config-item-v2::after {
        content: '';
        position: absolute;
        left: 44px; right: 12px; bottom: 0;
        height: 1px;
        background: rgba(255,255,255,0.04);
    }
    #configsList .config-item-v2:last-child::after { display: none; }
    #configsList .config-item-v2 .config-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }
    #configsList .config-item-v2 > div[style*="flex-grow: 1"] {
        min-width: 0;
        overflow: hidden;
    }
    #configsList .config-item-v2 .config-name {
        font-size: 0.74rem !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #configsList .config-item-v2 .config-name span { display: none !important; }
    #configsList .config-item-v2 .config-meta {
        font-size: 0.58rem !important;
        color: rgba(255,255,255,0.35) !important;
        line-height: 1.25 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #configsList .config-item-v2 > div[style*="font-size: 0.75rem"],
    #configsList .config-item-v2 > div[style*="margin-top: 4px"] {
        display: none !important; /* hide secondary description on cloud rows */
    }
    #configsList .config-item-v2 .btn {
        height: 24px !important;
        font-size: 0.6rem !important;
        font-weight: 600 !important;
        padding: 0 8px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* === DROPDOWN BOTTOM-SHEET — never overlap above === */
    /* Anchor to the bottom; ensure it sits above the tab bar but below modals. */
    .user-nav-menu .user-nav-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
        left: 12px !important;
        right: 12px !important;
        max-height: 60vh;
        overflow-y: auto;
    }
    /* On the landing page (no profile tab bar), drop the bottom offset */
    body:not(.theme-nova-premium) .user-nav-menu .user-nav-dropdown,
    /* index.html doesn't have profile-mobile-tabs — distinguish with the
       presence of #profileMobileTabs via :has() (modern browsers); fall
       back: keep 78px which is harmless on hero too */
    body:not(:has(#profileMobileTabs)) .user-nav-menu .user-nav-dropdown {
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* === Reduce hero spacing & nicer rhythm === */
    .hero-ultimate { padding-bottom: 24px !important; }
    .hero-center-content > * + * { margin-top: 10px !important; }
}

/* Tiny phones */
@media (max-width: 380px) {
    .navbar .logo-img { height: 20px !important; }
    .navbar .logo .logo-text { font-size: 0.64rem !important; }
    .price-card-v4 .new-price-premium { font-size: 1.25rem !important; }
    .launcher-mockup-wrapper { max-width: 210px !important; }
}

/* ═══════════════════════════════════════════════════════════
   ULTIMATE APPLE-STYLE MOBILE PASS (FINAL)
   ═══════════════════════════════════════════════════════════ */
/* Desktop tweaks */
.nav-links.desktop-nav {
    display: flex !important;
}
.nav-links.desktop-nav .nav-link {
    margin-right: 25px !important; /* Closer together */
}

@media (max-width: 1024px) {
    /* Hide elements marked as PC-only on phones */
    .hero-ui-showcase-wrapper, #launcher, .pc-only {
        display: none !important;
    }

    /* Minimal mobile navigation - hide desktop nav completely */
    .nav-links.desktop-nav {
        display: none !important; 
    }

    /* Ensure navbar can fit everything compactly */
    .navbar .container.nav-inner {
        padding: 0 12px !important;
    }

    .user-nav-menu {
        position: static !important;
    }
    .user-nav-trigger {
        box-shadow: none !important;
        background: rgba(255,255,255,0.05) !important;
        border-color: rgba(255,255,255,0.1) !important;
    }
    .user-nav-avatar {
        box-shadow: none !important;
    }

    .user-nav-menu .user-nav-dropdown-v2 {
        display: none !important; 
        position: absolute !important;
        top: calc(100% + 12px) !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
        z-index: 2147483647 !important;
        background: rgba(12, 8, 18, 0.9) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 18px !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.8) !important;
        padding: 6px !important;
        box-sizing: border-box !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important; /* Divider will handle spacing */
        animation: nova-apple-mobile-fade-in 0.2s ease-out forwards !important;
    }

    @keyframes nova-apple-mobile-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .user-nav-menu.open .user-nav-dropdown-v2 {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        animation: nova-dropdown-premium-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    .user-nav-dropdown-v2 a, .user-nav-dropdown-v2 button {
        flex: 1 !important;
        justify-content: center !important;
        padding: 10px !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }

    /* Vertical divider for horizontal row */
    .user-nav-dropdown-v2 .dropdown-divider {
        display: block !important;
        width: 1px !important;
        height: 20px !important;
        background: rgba(255,255,255,0.1) !important;
        margin: 0 !important;
    }

    .user-nav-dropdown-v2::before {
        display: none !important;
    }

    /* Fix the massive gap left by the hidden showcase */
    .hero-ultimate {
        min-height: 0 !important;
        padding-top: 80px !important;
        padding-bottom: 20px !important;
    }
    
    .page-section {
        padding: 40px 0 !important;
    }

    /* Launcher exactly like PC - making it wide and scaling down */
    .eco-visual-content {
        height: 240px !important; 
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: relative !important;
        overflow: hidden !important;
        background: rgba(0,0,0,0.2) !important;
        border-radius: 20px !important;
    }
    .launcher-mockup-wrapper {
        width: 900px !important;
        max-width: none !important;
        transform: scale(0.35) !important; 
        transform-origin: center center !important;
        margin: 0 !important;
        position: absolute !important;
        flex-shrink: 0 !important;
    }
    .nl-main-bg { aspect-ratio: 16/10 !important; height: auto !important; width: 100% !important; }
    .nl-glass-card { bottom: 30px !important; right: 30px !important; width: 340px !important; height: auto !important; }

    /* Exact PC-style cards but for mobile - fix text overlap and empty space */
    .pricing-grid-premium {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 0 16px !important;
        margin-top: 24px !important;
    }
    
    .price-card-v4 {
        min-height: auto !important;
        padding: 16px 14px !important; /* Shorter padding */
        border-radius: 20px !important;
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        backdrop-filter: blur(10px) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important; /* Smaller gap */
        align-items: center !important;
        text-align: center !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .price-card-v4.featured-v4 {
        background: linear-gradient(165deg, rgba(162, 89, 255, 0.12) 0%, rgba(162, 89, 255, 0.04) 100%) !important;
        border: 1px solid rgba(162, 89, 255, 0.3) !important;
        box-shadow: 0 10px 30px rgba(162, 89, 255, 0.1) !important;
        padding-top: 36px !important;
    }

    .price-content-top { 
        display: flex !important; 
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        gap: 8px !important;
    } 

    .price-card-v4 .price-title-v4 {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.05em !important;
        color: #fff !important;
        margin: 0 !important;
        text-transform: uppercase !important;
    }

    .price-card-v4 .price-mini-desc {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
        color: rgba(255, 255, 255, 0.5) !important;
        margin: 0 !important;
        max-width: 260px !important;
    }

    .price-card-v4 .price-value-v2 {
        margin: 4px 0 10px !important;
        gap: 8px !important;
        display: flex !important;
        align-items: baseline !important;
        justify-content: center !important;
    }

    .price-card-v4 .new-price-premium {
        font-size: 1.6rem !important; /* Slightly smaller price */
        font-weight: 800 !important;
        background: linear-gradient(135deg, #fff, #c4a4ff) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

    .price-card-v4 .new-price-premium em {
        font-size: 1rem !important;
        color: rgba(255, 255, 255, 0.5) !important;
        margin-left: 4px !important;
        font-style: normal !important;
    }

    .price-card-v4 .old-price-main {
        font-size: 0.85rem !important;
        color: rgba(255, 255, 255, 0.3) !important;
        text-decoration: line-through !important;
        display: inline-block !important;
    }

    .price-card-v4 .btn {
        height: 42px !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
        width: 100% !important;
    }

    .popular-label-drip {
        top: 10px !important;
        right: 12px !important;
        left: auto !important;
        transform: none !important;
        font-size: 0.55rem !important;
        padding: 4px 10px !important;
        border-radius: 6px !important;
        background: #a259ff !important;
        color: #fff !important;
    }


    .hero-title-massive {
        font-size: 2.1rem !important;
        line-height: 1.15 !important;
        margin-top: 10px !important;
    }

    .hero-sub-centered {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-top: 15px !important;
        padding: 0 10px !important;
    }

    .btn-primary-premium, .btn-ghost-premium {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
    }

    .btn-xl {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
    }

    .section-head-premium h2 {
        font-size: 1.8rem !important;
    }

    .section-head-premium p {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
    }
    
    .compare-premium { aspect-ratio: 1512/948 !important; height: auto !important; border-radius: 16px !important; }
    
    .eco-text-content h2 { font-size: 1.8rem !important; }
    .eco-text-content p { font-size: 0.9rem !important; }
}

/* ==================================================
   Login / Register success overlay (window.showLoginSuccess)
   ================================================== */
#novaLoginSuccess{
    position:fixed; inset:0; z-index:99999;
    display:flex; align-items:center; justify-content:center;
    background:radial-gradient(circle at 50% 35%, rgba(162,89,255,.25), rgba(8,8,12,.85) 60%), rgba(8,8,12,.92);
    backdrop-filter:blur(14px) saturate(140%);
    -webkit-backdrop-filter:blur(14px) saturate(140%);
    opacity:0; transition:opacity .28s ease;
    padding:24px;
}
#novaLoginSuccess.show{ opacity:1; }
#novaLoginSuccess .nls-card{
    width:min(420px, 100%);
    background:linear-gradient(180deg, rgba(28,18,48,.95), rgba(14,10,24,.95));
    border:1px solid rgba(162,89,255,.35);
    border-radius:24px;
    padding:36px 28px 28px;
    text-align:center;
    box-shadow:0 25px 80px rgba(0,0,0,.55), 0 0 60px rgba(162,89,255,.25);
    transform:translateY(20px) scale(.96);
    opacity:0;
    animation:nlsIn .45s cubic-bezier(.18,.89,.32,1.28) .05s forwards;
}
@keyframes nlsIn { to { opacity:1; transform:translateY(0) scale(1); } }
#novaLoginSuccess .nls-check{
    width:96px; height:96px; margin:0 auto 18px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(162,89,255,.3), rgba(162,89,255,0) 70%);
    display:flex; align-items:center; justify-content:center;
}
#novaLoginSuccess .nls-check svg{ width:96px; height:96px; }
#novaLoginSuccess .nls-ring{
    fill:none; stroke:rgba(162,89,255,.85); stroke-width:3.5;
    stroke-dasharray:176; stroke-dashoffset:176;
    transform-origin:50% 50%;
    animation:nlsRing .7s ease-out .15s forwards;
    filter:drop-shadow(0 0 12px rgba(162,89,255,.55));
}
#novaLoginSuccess .nls-tick{
    fill:none; stroke:#fff; stroke-width:5; stroke-linecap:round; stroke-linejoin:round;
    stroke-dasharray:60; stroke-dashoffset:60;
    animation:nlsTick .35s ease-out .65s forwards;
    filter:drop-shadow(0 0 10px rgba(255,255,255,.6));
}
@keyframes nlsRing { to { stroke-dashoffset:0; } }
@keyframes nlsTick { to { stroke-dashoffset:0; } }
#novaLoginSuccess .nls-title{
    font-family:'Inter', system-ui, sans-serif;
    font-weight:800; font-size:1.55rem; color:#fff;
    margin:6px 0 8px; letter-spacing:-.01em;
    background:linear-gradient(135deg,#fff,#d6c2ff);
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
#novaLoginSuccess .nls-sub{
    font-family:'Inter', system-ui, sans-serif;
    font-size:.95rem; color:rgba(255,255,255,.65);
    margin-bottom:18px; line-height:1.45;
}
#novaLoginSuccess .nls-progress{
    height:3px; width:100%; background:rgba(162,89,255,.12);
    border-radius:99px; overflow:hidden;
}
#novaLoginSuccess .nls-progress span{
    display:block; height:100%; width:0;
    background:linear-gradient(90deg,#a259ff,#d6b3ff,#a259ff);
    background-size:200% 100%;
    animation:nlsBar 1.3s ease-out .3s forwards, nlsBarShimmer 1.4s linear infinite;
}
@keyframes nlsBar { to { width:100%; } }
@keyframes nlsBarShimmer { from { background-position:0 0; } to { background-position:200% 0; } }

/* Mobile: bigger, more impactful */
@media (max-width: 640px){
    #novaLoginSuccess .nls-card{ padding:44px 22px 30px; border-radius:28px; }
    #novaLoginSuccess .nls-check{ width:120px; height:120px; margin-bottom:24px; }
    #novaLoginSuccess .nls-check svg{ width:120px; height:120px; }
    #novaLoginSuccess .nls-title{ font-size:1.85rem; }
    #novaLoginSuccess .nls-sub{ font-size:1rem; }
}

/* ==================================================
   Universal confirm dialog (window.novaConfirm)
   ================================================== */
.nova-confirm-overlay{
    position:fixed; inset:0; z-index:99998;
    display:flex; align-items:center; justify-content:center;
    background:radial-gradient(circle at 50% 35%, rgba(162,89,255,.12), rgba(8,8,12,.78) 60%), rgba(8,8,12,.86);
    backdrop-filter:blur(12px) saturate(140%); -webkit-backdrop-filter:blur(12px) saturate(140%);
    opacity:0; transition:opacity .22s ease; padding:20px;
}
.nova-confirm-overlay.show{ opacity:1; }
.nova-confirm-card{
    width:min(440px, 100%);
    background:linear-gradient(180deg, rgba(28,18,48,.96), rgba(14,10,24,.96));
    border:1px solid rgba(162,89,255,.28);
    border-radius:22px;
    padding:30px 28px 24px;
    text-align:center;
    box-shadow:0 24px 70px rgba(0,0,0,.55), 0 0 50px rgba(162,89,255,.18);
    transform:translateY(14px) scale(.96); opacity:0;
    animation:ncIn .35s cubic-bezier(.18,.89,.32,1.28) .04s forwards;
}
@keyframes ncIn { to { opacity:1; transform:translateY(0) scale(1); } }
.nova-confirm-icon{
    width:54px;height:54px;margin:0 auto 16px;
    border-radius:50%; display:flex; align-items:center; justify-content:center;
}
.nova-confirm-title{
    font-family:'Inter',system-ui,sans-serif;
    font-weight:800; font-size:1.25rem; color:#fff; margin-bottom:8px;
    letter-spacing:-.01em;
}
.nova-confirm-message{
    font-family:'Inter',system-ui,sans-serif;
    font-size:.92rem; color:rgba(255,255,255,.65); line-height:1.5;
    margin-bottom:22px;
}
.nova-confirm-actions{
    display:flex; gap:10px; justify-content:stretch;
}
.nova-confirm-btn{
    flex:1; height:44px; border-radius:12px; cursor:pointer;
    font-family:'Inter',system-ui,sans-serif; font-weight:700; font-size:.92rem;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.04); color:rgba(255,255,255,.78);
    transition:all .18s ease;
}
.nova-confirm-btn:hover{ background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.14); }
.nova-confirm-btn.nova-confirm-ok{
    background:linear-gradient(135deg,#a259ff,#7c3aed);
    border-color:rgba(162,89,255,.5); color:#fff;
    box-shadow:0 6px 20px rgba(162,89,255,.32);
}
.nova-confirm-btn.nova-confirm-ok:hover{ filter:brightness(1.1); }
.nova-confirm-btn.nova-confirm-ok.danger{
    background:linear-gradient(135deg,#ef4444,#b91c1c);
    border-color:rgba(239,68,68,.5);
    box-shadow:0 6px 20px rgba(239,68,68,.32);
}
@media (max-width:520px){
    .nova-confirm-card{ padding:26px 22px 20px; border-radius:24px; }
    .nova-confirm-actions{ flex-direction:column-reverse; gap:8px; }
    .nova-confirm-btn{ width:100%; }
}

/* ==================================================
   Activation key card — make it stand out so users
   know to paste the key emailed to them after purchase.
   ================================================== */
.activation-key-card{
    margin-top:22px; padding:22px;
    background:linear-gradient(135deg, rgba(162,89,255,.10), rgba(122,59,208,.06));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border:1px solid rgba(162,89,255,.28);
    border-radius:18px;
    position:relative; overflow:hidden;
}
.activation-key-card::before{
    content:""; position:absolute; top:-40%; right:-10%;
    width:280px; height:280px; border-radius:50%;
    background:radial-gradient(circle, rgba(162,89,255,.16), transparent 70%);
    pointer-events:none;
}
.activation-key-card .ak-head{
    display:flex; align-items:center; gap:14px; margin-bottom:14px;
    position:relative; z-index:1;
}
.activation-key-card .ak-icon{
    width:42px;height:42px; border-radius:11px;
    background:rgba(162,89,255,.2); color:#d6b3ff;
    display:flex;align-items:center;justify-content:center; flex-shrink:0;
    border:1px solid rgba(162,89,255,.35);
}
.activation-key-card .ak-text-title{
    font-weight:800; color:#fff; font-size:1.02rem; margin-bottom:2px; letter-spacing:-.01em;
}
.activation-key-card .ak-text-sub{
    font-size:.82rem; color:#a1a1aa; line-height:1.45;
}
.activation-key-card .ak-row{
    display:flex; gap:10px; position:relative; z-index:1;
}
.activation-key-card .ak-row input{
    flex:1; padding:13px 16px; border-radius:12px;
    border:1px solid rgba(255,255,255,.1);
    background:rgba(0,0,0,.45); color:#fff;
    font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
    font-size:1rem; letter-spacing:3px; text-transform:uppercase;
    transition:border-color .2s ease, background .2s ease;
}
.activation-key-card .ak-row input:focus{
    outline:none; border-color:rgba(162,89,255,.6); background:rgba(0,0,0,.6);
    box-shadow:0 0 0 4px rgba(162,89,255,.12);
}
.activation-key-card .ak-row button{
    padding:0 22px; height:46px; border-radius:12px;
    background:linear-gradient(135deg,#a259ff,#7c3aed);
    color:#fff; font-weight:700; cursor:pointer; border:none;
    transition:filter .18s ease; flex-shrink:0;
    box-shadow:0 6px 18px rgba(162,89,255,.32);
}
.activation-key-card .ak-row button:hover{ filter:brightness(1.08); }
.activation-key-card .ak-row button:disabled{ opacity:.6; cursor:not-allowed; }
@media (max-width:520px){
    .activation-key-card .ak-row{ flex-direction:column; }
    .activation-key-card .ak-row input{ font-size:.95rem; letter-spacing:2px; }
    .activation-key-card .ak-row button{ width:100%; }
}

/* ==================================================
   Orders tracker on profile (live pending purchase state)
   ================================================== */
.orders-tracker{ margin-top:18px; display:flex; flex-direction:column; gap:12px; }
.orders-tracker .ot-card{
    border-radius:16px; padding:16px 18px;
    background:linear-gradient(180deg, rgba(28,18,48,.7), rgba(14,10,24,.55));
    border:1px solid rgba(255,255,255,.06);
    transition:border-color .25s ease, background .25s ease;
}
.orders-tracker .ot-card.is-pending{
    border-color:rgba(250,204,21,.32);
    background:linear-gradient(180deg, rgba(64,48,8,.55), rgba(28,20,8,.45));
}
.orders-tracker .ot-card.is-confirmed{
    border-color:rgba(34,197,94,.42);
    background:linear-gradient(180deg, rgba(8,48,28,.55), rgba(8,24,16,.45));
    box-shadow:0 0 0 1px rgba(34,197,94,.18) inset, 0 8px 26px rgba(34,197,94,.1);
}
.orders-tracker .ot-row-top{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }
.orders-tracker .ot-state{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:.92rem; color:#fff; }
.orders-tracker .ot-card.is-pending .ot-state{ color:#facc15; }
.orders-tracker .ot-card.is-confirmed .ot-state{ color:#4ade80; }
.orders-tracker .ot-plan{ font-size:.85rem; color:#a1a1aa; }
.orders-tracker .ot-plan b{ color:#fff; }
.orders-tracker .ot-helper{ margin-top:8px; font-size:.82rem; color:rgba(255,255,255,.62); line-height:1.5; }
.orders-tracker .ot-helper b{ color:#d6b3ff; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:1.5px; }
.orders-tracker .ot-dot{ width:8px;height:8px;border-radius:50%; background:#52525b; flex-shrink:0; }
.orders-tracker .ot-dot.pulse{ background:#facc15; box-shadow:0 0 0 0 rgba(250,204,21,.65); animation:otPulse 1.6s infinite; }
.orders-tracker .ot-dot.ok{ background:#4ade80; box-shadow:0 0 12px rgba(74,222,128,.6); }
@keyframes otPulse {
    0%   { box-shadow:0 0 0 0 rgba(250,204,21,.55); }
    70%  { box-shadow:0 0 0 8px rgba(250,204,21,0); }
    100% { box-shadow:0 0 0 0 rgba(250,204,21,0); }
}
@media (max-width:520px){
    .orders-tracker .ot-row-top{ flex-direction:column; align-items:flex-start; }
}

/* Bad-config-code feedback: shake + red border, no toast. */
.config-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), 0 0 18px rgba(239,68,68,.25) !important;
    animation: configCodeShake .42s cubic-bezier(.36,.07,.19,.97);
}
@keyframes configCodeShake {
    0%,100% { transform: translateX(0); }
    20%,60% { transform: translateX(-6px); }
    40%,80% { transform: translateX(6px); }
}

/* ==================================================
   Cosmetics: "X new" sidebar badge + NEW! card tag
   ================================================== */
.profile-sidebar-nav a, #profileMobileTabs a { position: relative; }
.nav-new-badge {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    min-width: 22px; height: 22px; padding: 0 7px;
    border-radius: 11px;
    background: linear-gradient(135deg,#ef4444,#b91c1c);
    color: #fff; font-weight: 800; font-size: .72rem;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 2px rgba(8,8,12,.95), 0 0 16px rgba(239,68,68,.55);
    animation: navBadgePulse 1.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes navBadgePulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(8,8,12,.95), 0 0 14px rgba(239,68,68,.5); }
    50%      { box-shadow: 0 0 0 2px rgba(8,8,12,.95), 0 0 22px rgba(239,68,68,.85); }
}
#profileMobileTabs a .nav-new-badge {
    top: 6px; right: 6px; transform: none;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; font-size: .66rem;
}

.cosmetic-new-tag {
    position: absolute;
    top: 12px; right: 12px;
    padding: 5px 11px;
    background: linear-gradient(135deg,#ef4444,#b91c1c);
    color: #fff; font-weight: 900; font-size: .68rem;
    letter-spacing: 1.4px; border-radius: 999px;
    box-shadow: 0 4px 14px rgba(239,68,68,.45), 0 0 0 1px rgba(255,255,255,.18) inset;
    animation: cosNewBlink 1.4s ease-in-out infinite;
    z-index: 3; pointer-events: none;
}
@keyframes cosNewBlink {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.apple-cosmetic-card { position: relative; }

/* =====================================================================
   AMBIENT VIOLET GLOWS — site-wide cinematic backdrop (v2062+)
   Layered radial gradients anchored to the edges so the page feels lit
   from the sides. Pure CSS, GPU-blur, ~0% CPU when idle. The two
   .ambient-glow-1/2 divs stay the primary corner washes; the new
   side / orbit / drift layers ride on top via pseudo-elements.
   ===================================================================== */
.ambient-bg {
    /* Base ink — keeps the violet readable without going full black. */
    background:
        radial-gradient(ellipse at 8% 35%, rgba(162, 89, 255, 0.10) 0%, transparent 38%),
        radial-gradient(ellipse at 92% 65%, rgba(132, 90, 220, 0.09) 0%, transparent 42%),
        var(--bg-absolute, #060409);
}

/* Left-edge slow vertical glow */
.ambient-bg::before {
    content: "";
    position: absolute;
    top: 5%; left: -18vw;
    width: 36vw; height: 90vh;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(168, 85, 247, .24), transparent 60%),
        radial-gradient(ellipse at 50% 70%, rgba(99, 102, 241, .16), transparent 65%);
    filter: blur(80px);
    pointer-events: none;
    animation: novaSideDriftL 22s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

/* Right-edge counter-glow with a hint of magenta */
.ambient-bg::after {
    content: "";
    position: absolute;
    bottom: -8%; right: -16vw;
    width: 38vw; height: 95vh;
    background:
        radial-gradient(ellipse at 50% 60%, rgba(190, 110, 255, .22), transparent 60%),
        radial-gradient(ellipse at 50% 30%, rgba(255, 122, 184, .12), transparent 65%);
    filter: blur(90px);
    pointer-events: none;
    animation: novaSideDriftR 28s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

/* Promote the existing two ambient-glow divs into a softer orbiting pair */
.ambient-glow-1 {
    animation: novaOrbitA 36s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}
.ambient-glow-2 {
    animation: novaOrbitB 44s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}

@keyframes novaSideDriftL {
    0%   { transform: translate3d(0, -2vh, 0)   scale(1);    opacity: .85; }
    50%  { transform: translate3d(2vw, 4vh, 0)  scale(1.08); opacity: 1;   }
    100% { transform: translate3d(-1vw, -3vh, 0) scale(.96); opacity: .8;  }
}
@keyframes novaSideDriftR {
    0%   { transform: translate3d(0, 2vh, 0)    scale(1.02); opacity: .8;  }
    50%  { transform: translate3d(-2vw, -3vh, 0) scale(1.1); opacity: 1;   }
    100% { transform: translate3d(1vw, 4vh, 0)  scale(.95);  opacity: .85; }
}
@keyframes novaOrbitA {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(8vw, 6vh, 0); }
}
@keyframes novaOrbitB {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-7vw, -5vh, 0); }
}

/* On phones the giant side glows eat fillrate without adding to the look —
   tone them down to a single soft wash. */
@media (max-width: 768px) {
    .ambient-bg::before, .ambient-bg::after { filter: blur(50px); opacity: .7; }
    .ambient-glow-1, .ambient-glow-2 { animation: none; }
}

/* Respect users who explicitly opt out of motion. */
@media (prefers-reduced-motion: reduce) {
    .ambient-bg::before, .ambient-bg::after,
    .ambient-glow-1, .ambient-glow-2 { animation: none !important; }
}

/* =====================================================================
   SECTION-LEVEL ACCENT GLOWS — hero, showcase, pricing on index.html.
   Decorative pseudo-elements that anchor a violet flare to the page
   sides at each major section, layered above .ambient-bg's universal
   wash. Each section gets a different shape so it doesn't look templated.
   ===================================================================== */
.hero-ultimate { position: relative; isolation: isolate; }
.hero-ultimate::before,
.hero-ultimate::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.hero-ultimate::before {
    top: 18%; left: -10vw;
    width: 32vw; height: 32vw;
    background: radial-gradient(circle at 50% 50%, rgba(162, 89, 255, .30), transparent 65%);
    filter: blur(70px);
    animation: novaPulseA 9s ease-in-out infinite;
    will-change: transform;
}
.hero-ultimate::after {
    bottom: 10%; right: -10vw;
    width: 28vw; height: 28vw;
    background: radial-gradient(circle at 50% 50%, rgba(122, 90, 255, .24), transparent 60%);
    filter: blur(80px);
    animation: novaPulseB 11s ease-in-out infinite;
    will-change: transform;
}
.hero-ultimate > * { position: relative; z-index: 2; }

#showcase, #launcher, #pricing { position: relative; isolation: isolate; }
#showcase::before,
#launcher::after,
#pricing::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 26vw; height: 26vw;
    filter: blur(85px);
}
#showcase::before {
    top: 30%; left: -12vw;
    background: radial-gradient(circle, rgba(190, 110, 255, .24), transparent 65%);
    animation: novaPulseA 14s ease-in-out infinite;
    will-change: transform;
}
#launcher::after {
    top: 20%; right: -12vw;
    background: radial-gradient(circle, rgba(99, 102, 241, .24), transparent 65%);
    animation: novaPulseB 17s ease-in-out infinite;
    will-change: transform;
}
#pricing::before {
    bottom: 6%; left: -10vw;
    background: radial-gradient(circle, rgba(168, 85, 247, .26), transparent 65%);
    animation: novaPulseA 13s ease-in-out infinite;
    will-change: transform;
}
#showcase > *, #launcher > *, #pricing > * { position: relative; z-index: 2; }

@keyframes novaPulseA {
    0%, 100% { transform: scale(1)    translate3d(0, 0, 0); opacity: .9; }
    50%      { transform: scale(1.12) translate3d(1vw, -1vh, 0); opacity: 1; }
}
@keyframes novaPulseB {
    0%, 100% { transform: scale(1.05) translate3d(0, 0, 0); opacity: .85; }
    50%      { transform: scale(.95)  translate3d(-1vw, 1vh, 0); opacity: 1; }
}

@media (max-width: 768px) {
    .hero-ultimate::before, .hero-ultimate::after,
    #showcase::before, #launcher::after, #pricing::before {
        width: 60vw; height: 60vw; filter: blur(55px); opacity: .55;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-ultimate::before, .hero-ultimate::after,
    #showcase::before, #launcher::after, #pricing::before { animation: none !important; }
}
