:root {
    /* Colors — Clean Dark Minimal */
    --color-bg: #1c1c20;
    --color-bg-elevated: #25252a;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-accent: #e10600;
    --color-accent-glow: rgba(225, 6, 0, 0.25);
    --color-text-main: #f0f0f0;
    --color-text-muted: #888891;

    /* Accent palette for feature cards */
    --accent-catalog: #3b82f6;
    --accent-mods: #ef4444;
    --accent-hidden: #f59e0b;
    --accent-scale: #ec4899;
    --accent-tools: #06b6d4;
    --accent-apk: #10b981;

    /* Spacing & Radius */
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --section-gap: 120px;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--transition);
    text-decoration: none;
    font-size: 15px;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

/* =========================================
   HEADER
   ========================================= */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.site_title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-separator {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-main a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-main a:hover {
    color: white;
}

.header-socials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-link {
    color: var(--color-text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-link:hover {
    color: white;
}

.max-link {
    font-weight: 800;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    padding: 6px 10px 4px;
    border-radius: 6px;
    line-height: 1;
    position: relative;
    top: -1px;
    transition: background 0.2s, color 0.2s;
}

.max-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    padding: 180px 0 var(--section-gap);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

/* Conic beam — источник света сверху */
.hero::before {
    content: "";
    position: absolute;
    top: -20%;
    left: 50%;
    width: 140%;
    height: 120%;
    transform: translateX(-50%);
    z-index: -3;
    background: conic-gradient(
        from 200deg at 50% 0%,
        transparent 0deg,
        rgba(225, 6, 0, 0.08) 140deg,
        rgba(255, 90, 80, 0.12) 160deg,
        rgba(225, 6, 0, 0.08) 180deg,
        transparent 220deg,
        transparent 360deg
    );
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 15%, black 0%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 50% at 50% 15%, black 0%, transparent 80%);
    pointer-events: none;
}

/* Floating blobs слой — живая атмосфера */
.hero-aura {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 45%, transparent 90%);
    mask-image: linear-gradient(180deg, black 0%, black 45%, transparent 90%);
}

.hero-aura::before,
.hero-aura::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.6;
}

.hero-aura::before {
    width: 820px;
    height: 820px;
    top: -15%;
    left: 50%;
    background: radial-gradient(circle, rgba(225, 6, 0, 0.5), transparent 70%);
    animation: hero-blob-a 22s ease-in-out infinite;
}

.hero-aura::after {
    width: 720px;
    height: 720px;
    top: -5%;
    left: 50%;
    background: radial-gradient(circle, rgba(88, 54, 168, 0.4), transparent 70%);
    animation: hero-blob-b 28s ease-in-out infinite;
}

@keyframes hero-blob-a {
    0%, 100% { transform: translate(-60%, -15%) scale(1); }
    33%      { transform: translate(-30%, -25%) scale(1.1); }
    66%      { transform: translate(-80%, -5%)  scale(0.95); }
}

@keyframes hero-blob-b {
    0%, 100% { transform: translate(-20%, 5%)   scale(1); }
    33%      { transform: translate(-60%, -10%) scale(1.15); }
    66%      { transform: translate(-10%, 15%)  scale(0.9); }
}

/* Central glow — связывает сцену с CTA */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 35% at 50% 30%, rgba(225, 6, 0, 0.18), transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 45%, transparent 90%);
    mask-image: linear-gradient(180deg, black 0%, black 45%, transparent 90%);
}

/* Noise overlay — "плёнка", убирает пластиковость */
.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
    mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 40%, #9a9aa3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .hero-aura::before,
    .hero-aura::after {
        animation: none;
    }
}

.hero p.hero-subtext {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* =========================================
   SECTION TITLES
   ========================================= */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 16px;
    color: white;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 17px;
    max-width: 550px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* =========================================
   FEATURE GRID — Clean Minimal Cards
   ========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 16px;
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }

.bento-card {
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    transition: border-color 0.4s, box-shadow 0.4s;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.bento-card > * {
    position: relative;
    z-index: 1;
}

.bento-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
}

.bento-card p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.06);
    font-size: 18px;
}

/* ---- Accent Line System ---- */
/* Each feature card gets a colored bottom line via ::after */
.card-catalog, .card-mods, .card-hidden,
.card-scale, .card-tools, .card-apk {
    --card-accent: var(--color-accent);
}

.card-catalog { --card-accent: var(--accent-catalog); }
.card-mods    { --card-accent: var(--accent-mods); }
.card-hidden  { --card-accent: var(--accent-hidden); }
.card-scale   { --card-accent: var(--accent-scale); }
.card-tools   { --card-accent: var(--accent-tools); }
.card-apk     { --card-accent: var(--accent-apk); }

/* Bottom accent line */
.card-catalog::after, .card-mods::after, .card-hidden::after,
.card-scale::after, .card-tools::after, .card-apk::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent);
    opacity: 0.4;
    transition: opacity 0.4s, box-shadow 0.4s;
    z-index: 2;
}

/* Hover: line brightens + glow radiates upward */
.card-catalog:hover::after, .card-mods:hover::after, .card-hidden:hover::after,
.card-scale:hover::after, .card-tools:hover::after, .card-apk:hover::after {
    opacity: 1;
    box-shadow: 0 -8px 40px var(--card-accent), 0 -4px 16px var(--card-accent);
}

/* Subtle bottom glow on entire card on hover */
.card-catalog:hover, .card-mods:hover, .card-hidden:hover,
.card-scale:hover, .card-tools:hover, .card-apk:hover {
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3), inset 0 -20px 60px -40px var(--card-accent);
}

/* Catalog card */
.card-catalog .card-info h3 {
    font-size: 24px;
}

/* Marquee */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: calc(100% + 72px);
    margin-left: -36px;
    margin-top: 28px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-content {
    display: inline-flex;
    gap: 14px;
    padding-right: 14px;
    padding-top: 4px;
    padding-bottom: 16px;
    animation: scroll-marquee 40s linear infinite;
}

.app-icon-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features {
    padding-bottom: var(--section-gap);
}

/* =========================================
   PAID INSTALL — Clean text CTA
   ========================================= */
.paid-install-section {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--section-gap);
    position: relative;
}

/* Red accent line on top */
.paid-install-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: var(--color-accent);
    opacity: 0.6;
}

.paid-install-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.paid-install-inner h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
}

.paid-install-inner p {
    color: var(--color-text-muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Legacy class support — hide old elements */
.paid-install-fullscreen { display: none; }

/* =========================================
   DOWNLOAD SECTION
   ========================================= */
.download-section {
    padding-bottom: var(--section-gap);
}

.download-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 550px;
    margin: -8px auto 48px;
}

.download-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background: transparent !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg);
    padding: 44px 28px;
    transition: border-color 0.3s;
}

.download-card:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.03);
}

.download-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 28px;
}

.download-card .bento-icon {
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-main);
}

.download-card h3 {
    margin-bottom: 0;
    font-size: 20px;
}

.download-btn {
    padding: 12px 36px;
    border-radius: 10px;
}

.download-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

.download-sublink-wrapper {
    height: 24px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-sublink {
    display: inline-block;
    color: var(--color-text-muted);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.download-sublink:hover {
    color: white;
}

/* =========================================
   MASTER ACCOUNT
   ========================================= */
.master-account {
    margin-bottom: var(--section-gap);
}

.master-card {
    text-align: center;
    padding: 72px 40px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
}

/* Accent line top */
.master-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-catalog), var(--color-accent));
    opacity: 0.4;
    transition: opacity 0.4s;
}

.master-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.master-card:hover::after {
    opacity: 1;
}

.master-card h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: white;
}

.master-card p {
    max-width: 600px;
    margin: 0 auto 32px;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* =========================================
   CONTACTS
   ========================================= */
.contacts {
    margin-bottom: var(--section-gap);
}

.contact-item {
    text-align: center;
    align-items: center;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: border-color 0.3s;
}

.contact-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
}

.contact-item p {
    color: var(--color-text-muted);
    font-size: 15px;
}

.qr-code {
    margin-top: 16px;
    width: 160px;
    height: 160px;
    border-radius: var(--radius-lg);
}

.qr-placeholder {
    margin-top: 24px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 13px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 80px 0 48px;
    border-top: 1px solid var(--color-border);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 28px;
    height: 28px;
}

.footer-logo-text {
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 380px;
    margin-top: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: white;
}

.footer-social-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-social-icons a {
    color: var(--color-text-muted);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-social-icons a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.footer-legals {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 13px;
}

.footer-legals a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.footer-legals a:hover {
    color: white;
}

/* =========================================
   MOBILE MENU TOGGLE
   ========================================= */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    z-index: 1000;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .span-8, .span-6, .span-4 {
        grid-column: span 12;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .download-card {
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        min-height: auto !important;
    }

    .download-card-header {
        flex-direction: row;
        align-items: center;
    }

    .download-card .bento-icon {
        margin: 0 14px 0 0;
        transform: scale(0.85);
        transform-origin: left center;
    }

    .download-card h3 {
        font-size: 18px;
    }

    .download-card-actions {
        margin-top: 0;
        align-items: center;
    }

    .download-btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .download-sublink-wrapper {
        height: auto;
        margin-top: 6px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
    }

    .header-container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-right {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(30, 30, 33, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 28px 24px;
        gap: 20px;
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 999;
        margin-top: 12px;
    }

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

    .nav-main {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .nav-separator {
        display: none;
    }

    .header-socials {
        justify-content: center;
        width: 100%;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1.1;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 28px;
    }

    .bento-card {
        padding: 28px;
    }

    .bento-card h3 {
        font-size: 20px;
    }

    .marquee-wrapper {
        width: calc(100% + 56px);
        margin-left: -28px;
        margin-top: 24px;
    }

    .master-card {
        padding: 40px 24px;
    }

    .paid-install-section {
        padding: 60px 0;
    }

    .paid-install-inner h2 {
        font-size: 28px;
    }
}

/* =========================================
   INTERNAL PAGES — Shared Styles
   ========================================= */

/* Page container */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    min-height: 100vh;
}

.page-container-narrow {
    max-width: 520px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    min-height: 100vh;
}

/* Page title */
.page-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ---- Cards ---- */
.v3-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.v3-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Card with accent line (bottom) */
.v3-card[data-accent]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--color-accent));
    opacity: 0.4;
    transition: opacity 0.4s, box-shadow 0.4s;
}

.v3-card[data-accent]:hover::after {
    opacity: 1;
    box-shadow: 0 -8px 40px var(--card-accent, var(--color-accent));
}

/* ---- Metric Cards ---- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s;
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ---- Forms ---- */
.v3-form-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Accent line on form cards */
.v3-form-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-accent);
    opacity: 0.3;
    transition: opacity 0.4s;
}

.v3-form-card:focus-within::after {
    opacity: 1;
    box-shadow: 0 -6px 30px var(--color-accent-glow);
}

.v3-form-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 28px;
    text-align: center;
}

.v3-form .form-group {
    margin-bottom: 20px;
}

.v3-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.v3-form .form-group input[type="text"],
.v3-form .form-group input[type="email"],
.v3-form .form-group input[type="password"],
.v3-form .form-group input[type="number"],
.v3-form .form-group select,
.v3-form .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-main);
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.v3-form .form-group input:focus,
.v3-form .form-group select:focus,
.v3-form .form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.v3-form .form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
}

.v3-form .form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.v3-form .form-checkbox span {
    font-size: 14px;
    color: var(--color-text-muted);
}

.v3-form .form-checkbox a {
    color: var(--color-text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.v3-form .btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.v3-form .btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Form helper link */
.form-helper {
    text-align: center;
    margin-top: 20px;
}

.form-helper a {
    color: var(--color-text-muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.form-helper a:hover {
    color: white;
}

.form-helper i {
    margin-right: 6px;
}

/* ---- Warning / Info Blocks ---- */
.v3-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    margin-bottom: 24px;
}

.v3-alert i {
    color: var(--color-accent);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.v3-alert p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.v3-alert-danger {
    border-color: rgba(239, 68, 68, 0.2);
}

.v3-alert-danger i {
    color: #ef4444;
}

/* ---- Navigation Buttons (inline) ---- */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.nav-buttons .btn {
    font-size: 14px;
    padding: 10px 20px;
}

/* ---- Tables ---- */
.v3-table {
    width: 100%;
    border-collapse: collapse;
}

.v3-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
}

.v3-table tbody td {
    padding: 14px 16px;
    font-size: 15px;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-border);
}

.v3-table tbody tr:last-child td {
    border-bottom: none;
}

.v3-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ---- Status indicators ---- */
.status-ok {
    color: #10b981;
    font-weight: 600;
}

.status-err {
    color: #ef4444;
    font-weight: 600;
}

/* ---- Discount tags ---- */
.discount-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.discount-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.discount-tag.active {
    border-color: var(--color-accent);
    color: var(--color-text-main);
    background: rgba(225, 6, 0, 0.08);
}

/* ---- Car Grid (internal pages) ---- */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.car-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.car-card-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
}

.car-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
}

.car-info-row:last-child {
    border-bottom: none;
}

.car-info-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.car-info-value {
    color: var(--color-text-main);
}

.copyable-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
}

.copyable-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    white-space: nowrap;
}

.copyable-btn {
    background: transparent;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 12px;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.copyable-btn:hover {
    color: var(--color-accent);
}

.copyable-btn.copied {
    color: #10b981;
}

.car-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 12px 0;
}

/* ---- Badge ---- */
.v3-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.v3-badge-green {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.v3-badge-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    white-space: normal;
}

.v3-badge-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.v3-badge-red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* ---- Text content pages (EULA etc) ---- */
.text-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.text-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-top: 32px;
    margin-bottom: 12px;
}

.text-content p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.text-content a {
    color: var(--color-text-main);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.text-content a:hover {
    color: white;
}

/* ---- Promo features ---- */
.promo-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.promo-feature {
    padding: 28px;
}

.promo-feature-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.promo-feature-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.promo-feature-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.promo-feature p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ---- Payment bonus display ---- */
.payment-bonus-display {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.payment-bonus-value {
    color: #10b981;
    font-size: 20px;
    font-weight: 800;
}

.payment-bonus-percent {
    font-size: 14px;
    font-weight: 600;
    color: #f59e0b;
}

/* ---- Models Grid (catalog page) ---- */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.model-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.3s var(--transition), box-shadow 0.3s var(--transition), transform 0.3s var(--transition);
    position: relative;
    overflow: hidden;
}

.model-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-catalog);
    opacity: 0;
    transition: opacity 0.4s, box-shadow 0.4s;
}

.model-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.model-card:hover::after {
    opacity: 1;
    box-shadow: 0 -6px 30px rgba(59, 130, 246, 0.2);
}

.model-card-image {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.model-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.model-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.model-card-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Car Detail Page ---- */
.car-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.car-detail-info {
    flex-shrink: 0;
}

.car-detail-info .page-title {
    margin-bottom: 12px;
}

.car-detail-image {
    flex-shrink: 0;
    max-width: 400px;
}

.car-detail-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Detail sections (ADB, Mods) */
.detail-section {
    margin-bottom: 24px;
}

.detail-section-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section-content .h4_icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.detail-section-content ol,
.detail-section-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.detail-section-content ol li,
.detail-section-content ul li {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 4px;
}

.detail-section-content p,
.detail-section-content .mod_description {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.detail-section-content h5 {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-top: 24px;
    margin-bottom: 12px;
}

.detail-section-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 14px;
    color: var(--color-text-main);
}

.detail-section-content strong {
    color: var(--color-text-main);
    font-weight: 600;
}

.detail-section-content a {
    color: var(--accent-catalog);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.detail-section-content a:hover {
    color: white;
}

/* Legacy badge/info styles inside detail sections */
.detail-section-content .app_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    margin-left: 6px;
    vertical-align: middle;
}

.detail-section-content .info_container {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
    margin-top: 20px;
}

.detail-section-content .info_container i {
    color: var(--accent-catalog);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-section-content .info_container p {
    margin-bottom: 0;
}

/* ---- Responsive: Internal pages ---- */
@media (max-width: 768px) {
    .page-container,
    .page-container-narrow {
        padding: 120px 16px 60px;
    }

    .page-title {
        font-size: 26px;
    }

    .v3-form-card {
        padding: 28px 20px;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .car-grid {
        grid-template-columns: 1fr;
    }

    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .car-detail-hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 24px;
    }

    .car-detail-image {
        max-width: 280px;
    }

    .car-detail-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .nav-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

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