/* ═══════════════════════════════════════════════════════════════
   NOVIRA HOME — Editorial, Dark, Cinematic ("The New Yorker meets Webtoon")
   Core Palette: Obsidian (#0a0a0b) + Warm Candlelight Cream (#e8d5b7)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg-primary: #0a0a0b;
    --bg-surface: #121215;
    --bg-surface-hover: #18181c;
    --border-subtle: #222227;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #e8d5b7;
    --accent-glow: rgba(232, 213, 183, 0.10);
    --font-serif: 'Instrument Serif', 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Modern 2026 Global Scrollbar (Obsidian & Candlelight Gold) ── */
html {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(232, 213, 183, 0.28) transparent !important;
}
html::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}
html::-webkit-scrollbar-track {
    background: #0a0a0b !important;
}
html::-webkit-scrollbar-thumb {
    background: rgba(232, 213, 183, 0.22) !important;
    border-radius: 999px !important;
    border: 2px solid #0a0a0b !important;
}
html::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 213, 183, 0.5) !important;
}

/* ── Global Page Reset for Home ─────────────────────────────── */
body.hero-page {
    background-color: var(--bg-primary) !important;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -8%, rgba(255, 255, 255, 0.025), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(255, 255, 255, 0.015), transparent 50%) !important;
    background-attachment: fixed !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    margin: 0;
    padding: 0 !important;
    overflow-x: hidden;
}
body.hero-page::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Fixed Glassmorphism Navigation Bar (Edge-to-Edge) ────────── */
.hero-page .premium-nav-glass {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 64px !important;
    padding: 0 32px !important;
    background: rgba(10, 10, 11, 0.82) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    border-radius: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5) !important;
}

.hero-page .navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-page .logo-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.hero-page .logo-img {
    height: 32px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}

.hero-page .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-page .nav-link-premium {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    position: relative;
    padding: 8px 14px !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: color 200ms ease;
    border-radius: 6px;
}

.hero-page .nav-link-premium::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 18px;
    height: 2px;
    background: var(--accent);
    transition: transform 250ms var(--ease-out);
    transform-origin: center;
    border-radius: 1px;
}

.hero-page .nav-link-premium:hover {
    color: var(--text-primary) !important;
    background: transparent !important;
}

.hero-page .nav-link-premium:hover::after,
.hero-page .nav-link-premium.active::after {
    transform: translateX(-50%) scaleX(1);
}

.hero-page .nav-link-premium.active {
    color: var(--text-primary) !important;
}

.hero-page .join-btn,
.hero-page .btn-nav-primary {
    background: transparent !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 200ms ease !important;
    text-decoration: none !important;
}

.hero-page .join-btn:hover,
.hero-page .btn-nav-primary:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: rgba(232, 213, 183, 0.05) !important;
}

.hero-page .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.hero-page .nav-actions .search-bar-premium {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    padding: 7px 14px !important;
    font-family: var(--font-sans) !important;
    transition: all 200ms ease !important;
}
.hero-page .nav-actions .search-bar-premium::placeholder {
    color: var(--text-muted) !important;
}
.hero-page .nav-actions .search-bar-premium:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    outline: none !important;
}

.hero-page .nav-actions .nav-link-premium {
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 6px 10px !important;
    transition: color 150ms ease !important;
}
.hero-page .nav-actions .nav-link-premium:hover {
    color: var(--text-primary) !important;
}

/* ── Dark Editorial Nav Icon Buttons (Bell, Account) ───────── */
.hero-page .nav-icon-btn {
    color: var(--text-secondary) !important;
    background: transparent !important;
    border-radius: 8px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 180ms var(--ease-out) !important;
}
.hero-page .nav-icon-btn svg {
    width: 19px !important;
    height: 19px !important;
    color: inherit !important;
    stroke: currentColor !important;
}
.hero-page .nav-icon-btn:hover,
.hero-page .nav-icon-btn:focus-visible {
    color: var(--text-primary) !important;
    background: rgba(232, 213, 183, 0.08) !important;
}

/* ── Dark Editorial Dropdown Menus (Account & Notifications) ── */
.hero-page .premium-dropdown {
    background: #141416 !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
    padding: 6px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    min-width: 232px !important;
}

/* Account Menu Header (Who) */
.hero-page .dd-who {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 150ms ease !important;
}
.hero-page .dd-who:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}
.hero-page .dd-who-av {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #1c1c1f !important;
    color: var(--accent) !important;
    border: 1px solid rgba(232, 213, 183, 0.25) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    display: grid !important;
    place-items: center !important;
}
.hero-page .dd-who-name {
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: -0.01em !important;
}
.hero-page .dd-who-meta {
    color: var(--text-muted) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.75rem !important;
    margin-top: 2px !important;
}

/* Dropdown Menu Items */
.hero-page .dropdown-item-premium {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    font-family: var(--font-sans) !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: all 150ms ease !important;
}
.hero-page .dropdown-item-premium svg {
    width: 16px !important;
    height: 16px !important;
    color: var(--text-muted) !important;
    opacity: 0.8 !important;
    stroke: currentColor !important;
    transition: all 150ms ease !important;
}
.hero-page .dropdown-item-premium:hover {
    background: rgba(232, 213, 183, 0.08) !important;
    color: var(--text-primary) !important;
}
.hero-page .dropdown-item-premium:hover svg {
    color: var(--accent) !important;
    opacity: 1 !important;
}

/* Dividers */
.hero-page .dropdown-divider {
    height: 1px !important;
    background: var(--border-subtle) !important;
    margin: 6px 4px !important;
}

/* Log Out Item — seamless dark dropdown item */
.hero-page .dropdown-logout-form {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
.hero-page .nv-logout-btn,
.hero-page .dropdown-item-premium.logout-item,
.hero-page .logout-item {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #f87171 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    text-align: left !important;
    font-family: var(--font-sans) !important;
    transition: all 150ms ease !important;
}
.hero-page .nv-logout-btn:hover,
.hero-page .dropdown-item-premium.logout-item:hover,
.hero-page .logout-item:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
}
.hero-page .nv-logout-btn svg,
.hero-page .dropdown-item-premium.logout-item svg,
.hero-page .logout-item svg {
    color: #f87171 !important;
    opacity: 0.9 !important;
    stroke-width: 2 !important;
    width: 15px !important;
    height: 15px !important;
}

/* Notifications Dropdown */
.hero-page .nv-dd-notifs-head {
    border-bottom: 1px solid var(--border-subtle) !important;
}
.hero-page .nv-dd-notifs-head h3 {
    color: var(--text-muted) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.72rem !important;
}
.hero-page .nv-dd-mark {
    color: var(--accent) !important;
}
.hero-page .nv-dd-tab {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-muted) !important;
}
.hero-page .nv-dd-notifs-list,
.hero-page .custom-dropdown-menu,
.custom-dropdown-menu {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(232, 213, 183, 0.28) transparent !important;
}
.hero-page .nv-dd-notifs-list::-webkit-scrollbar,
.hero-page .custom-dropdown-menu::-webkit-scrollbar,
.custom-dropdown-menu::-webkit-scrollbar {
    width: 5px !important;
}
.hero-page .nv-dd-notifs-list::-webkit-scrollbar-track,
.hero-page .custom-dropdown-menu::-webkit-scrollbar-track,
.custom-dropdown-menu::-webkit-scrollbar-track {
    background: transparent !important;
}
.hero-page .nv-dd-notifs-list::-webkit-scrollbar-thumb,
.hero-page .custom-dropdown-menu::-webkit-scrollbar-thumb,
.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(232, 213, 183, 0.22) !important;
    border-radius: 999px !important;
    transition: background 150ms ease !important;
}
.hero-page .nv-dd-notifs-list::-webkit-scrollbar-thumb:hover,
.hero-page .custom-dropdown-menu::-webkit-scrollbar-thumb:hover,
.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 213, 183, 0.45) !important;
}
.hero-page .nv-dd-row {
    border-top: 1px solid var(--border-subtle) !important;
}
.hero-page .nv-dd-row.is-unread {
    background: rgba(232, 213, 183, 0.06) !important;
}
.hero-page .nv-dd-row:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}
.hero-page .nv-dd-row-title {
    color: var(--text-primary) !important;
}
.hero-page .nv-dd-row-msg {
    color: var(--text-secondary) !important;
}
.hero-page .nv-dd-row-time {
    color: var(--text-muted) !important;
}
.hero-page .nv-dd-view {
    background: var(--accent) !important;
    color: #0a0a0b !important;
}
.hero-page .nv-dd-dismiss {
    border-color: var(--border-subtle) !important;
    color: var(--text-muted) !important;
}
.hero-page .nv-dd-empty {
    color: var(--text-muted) !important;
}
.hero-page .nv-dd-empty strong {
    color: var(--text-primary) !important;
}
.hero-page .nv-dd-empty-ico {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--accent) !important;
}
.hero-page .nv-dd-notifs-foot {
    border-top: 1px solid var(--border-subtle) !important;
}
.hero-page .nv-dd-see-all {
    color: var(--accent) !important;
}

/* ── Search Suggestions (2026 Dark Editorial) ── */
.hero-page .search-suggestions-premium,
.search-suggestions-premium {
    background: #141416 !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    padding: 8px !important;
}
.hero-page .suggestion-item-premium,
.suggestion-item-premium {
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}
.hero-page .suggestion-item-premium:hover,
.hero-page .suggestion-item-premium.active,
.suggestion-item-premium:hover,
.suggestion-item-premium.active {
    background: rgba(232, 213, 183, 0.08) !important;
    color: #fff !important;
}
.hero-page .suggest-title,
.suggest-title {
    color: var(--text-primary) !important;
}
.hero-page .suggest-type,
.suggest-type {
    color: var(--accent) !important;
}
.hero-page .nv-dd-see-all:hover {
    background: rgba(232, 213, 183, 0.08) !important;
}

/* ── Hero Section (The Midnight Bookshelf) ─────────────────── */
.premium-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 24px 70px;
    background: transparent;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--border-subtle);
}

/* Drifting Dust Motes Canvas */
#heroDustCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Subtle Ambient Glow behind Hero text */
.nv-ambient-glow {
    position: absolute;
    width: 700px;
    height: 440px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(232, 213, 183, 0.14) 0%, transparent 68%);
    pointer-events: none;
    z-index: 2;
}

.nv-home-hero-inner {
    position: relative;
    z-index: 4;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Pill badge */
.nv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 26px;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
}

/* Hand-drawn SVG Storyboard & Sketch Layer */
.nv-hero-sketch {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.nv-hero-sketch path {
    fill: none;
    stroke: rgba(232, 213, 183, 0.22);
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Signature Serif Headline */
.nv-hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 7.8vw, 6.6rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 22px;
}
.nv-hero-headline em {
    font-style: italic;
    color: var(--accent);
    font-family: var(--font-serif);
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}
.nv-hero-headline em::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 2px;
    right: 2px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q 25 10, 50 5 T 100 7' fill='none' stroke='rgba(232,213,183,0.55)' stroke-width='2.2' stroke-linecap='round' stroke-dasharray='6 3'/%3E%3Cpath d='M3 9 Q 30 12, 60 7 T 98 10' fill='none' stroke='rgba(232,213,183,0.32)' stroke-width='1.4' stroke-linecap='round' stroke-dasharray='4 4'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Subheadline */
.nv-hero-subheadline {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 34px;
}

/* Hero Action Buttons */
.nv-hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-bottom: 42px;
}

.nv-btn-primary {
    background: var(--accent);
    color: #0a0a0b;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 200ms ease, opacity 200ms ease;
    border: none;
}
.nv-btn-primary:hover {
    background: #f2e4d0;
}
.nv-btn-primary svg {
    width: 14px;
    height: 14px;
    transition: transform 200ms ease;
}
.nv-btn-primary:hover svg {
    transform: translateX(3px);
}

.nv-btn-secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 200ms ease;
    display: inline-flex;
    align-items: center;
}
.nv-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232, 213, 183, 0.04);
}

/* ─── Genre Pills & Tags Master System ─── */
.nv-genre-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 720px;
}
.nv-genre-chip,
.genre-pill-chip,
.genre-pill,
.trending-chip,
.genre-link,
.tag-pill,
.filter-pill {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 999px !important;
    padding: 8px 18px !important;
    color: var(--text-secondary) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
}
.nv-genre-chip:hover,
.genre-pill-chip:hover,
.genre-pill:hover,
.trending-chip:hover,
.genre-link:hover,
.tag-pill:hover,
.filter-pill:hover {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    background: rgba(232, 213, 183, 0.12) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(232, 213, 183, 0.18) !important;
}
.nv-genre-chip.active,
.nv-genre-chip.is-active,
.genre-pill-chip.is-active,
.genre-pill.active,
.filter-pill.active {
    border-color: var(--accent) !important;
    color: #0a0a0b !important;
    background: var(--accent) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(232, 213, 183, 0.25) !important;
}

/* ── Staggered Fade-Up Animations ───────────────────────────── */
.nv-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: nvFadeUpAnim 800ms var(--ease-out) forwards;
}
.nv-d1 { animation-delay: 100ms; }
.nv-d2 { animation-delay: 200ms; }
.nv-d3 { animation-delay: 300ms; }
.nv-d4 { animation-delay: 400ms; }
.nv-d5 { animation-delay: 500ms; }

@keyframes nvFadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Content Strips & Discovery Sections ────────────────────── */
.journey-section {
    background: var(--bg-primary);
    padding: 40px 0 80px;
}

.discovery-strip {
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.strip-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.section-title {
    font-family: var(--font-sans) !important;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    color: var(--text-primary) !important;
    margin: 0;
}

.view-all-link {
    color: var(--text-muted) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    letter-spacing: 0.04em !important;
    transition: color 200ms ease !important;
    text-transform: none !important;
}
.view-all-link:hover {
    color: var(--accent) !important;
}

/* ── Horizontal Scroll Rows & 3:4 Book Cover Cards ──────────── */
.horizontal-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 4px 18px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-subtle) transparent;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 4px;
}
.horizontal-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

/* 3:4 Portrait Book Cover Card */
.poster-card,
.story-card-editorial,
.story-card,
.gn-card {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    cursor: pointer !important;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.poster-card {
    flex: 0 0 195px !important;
    width: 195px !important;
}

.poster-card:hover,
.story-card-editorial:hover,
.story-card:hover,
.gn-card:hover {
    transform: translateY(-4px) !important;
}

.poster-wrapper,
.card-cover-container,
.gn-card-img-wrap,
.story-card .card-cover {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 3 / 4 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: var(--bg-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    transition: border-color 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.poster-card:hover .poster-wrapper,
.story-card-editorial:hover .card-cover-container,
.story-card:hover .card-cover,
.gn-card:hover .gn-card-img-wrap {
    border-color: rgba(232, 213, 183, 0.45) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(232, 213, 183, 0.12) !important;
}

.poster-img,
.card-cover-img,
.gn-card-img,
.story-card .card-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.poster-card:hover .poster-img,
.story-card-editorial:hover .card-cover-img,
.story-card:hover .card-cover img,
.gn-card:hover .gn-card-img {
    transform: scale(1.06) !important;
}

/* Format Tag Badge (Katha / Chitra) */
.card-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(10, 10, 11, 0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--accent) !important;
    border: 1px solid rgba(232, 213, 183, 0.25);
}

/* Bottom Shadow Gradient on Cover */
.poster-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 10, 11, 0.92) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Reading Progress Bar on Continue Reading */
.cr-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 4;
}
.cr-progress-fill {
    height: 100%;
    background: var(--accent);
}

/* Metadata below the card */
.poster-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.poster-info h3 {
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.poster-info p,
.poster-info .cr-meta {
    color: var(--text-muted) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.8125rem !important;
    margin: 0 !important;
}

/* ── Bento-Style Genre Grid ("Find your thing") ─────────────── */
.bento-genres-section {
    padding: 60px 0;
}
.bento-genres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 16px;
    margin-top: 24px;
}
.bento-genre-tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.bento-tile-large {
    grid-column: span 2;
    grid-row: span 2;
}
.bento-tile-medium {
    grid-column: span 2;
    grid-row: span 1;
}
.bento-tile-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: brightness(0.7);
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.bento-genre-tile:hover {
    border-color: rgba(232, 213, 183, 0.4);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}
.bento-genre-tile:hover .bento-tile-bg {
    opacity: 0.55;
    transform: scale(1.03);
}
.bento-genre-content {
    position: relative;
    z-index: 2;
    transition: transform 300ms var(--ease-out);
}
.bento-genre-tile:hover .bento-genre-content {
    transform: translateY(-4px);
}
.bento-genre-name {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: block;
    line-height: 1.1;
}
.bento-tile-large .bento-genre-name {
    font-size: 2.3rem;
}
.bento-genre-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
    font-family: var(--font-sans);
}

/* ── Minimal 2-Row Footer ───────────────────────────────────── */
.nv-editorial-footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    padding: 48px 0 36px;
}
.nv-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.nv-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.nv-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
}
.nv-footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.nv-footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 200ms ease;
}
.nv-footer-link:hover {
    color: var(--accent);
}
.nv-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.horizontal-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    touch-action: pan-x pan-y;
}
.poster-card {
    scroll-snap-align: start;
}

/* ── Responsive: nav, hero, rails, footer ───────────────────── */
@media (max-width: 900px) {
    .bento-genres-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 128px;
    }
    .bento-tile-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .bento-tile-medium {
        grid-column: span 2;
    }

    /* hero-page nav is more specific than header.ejs, so it kept
       desktop links/search visible on phones. Collapse it here. */
    .hero-page .nav-links {
        display: none !important;
    }
    .hero-page .nav-search,
    .hero-page .search-bar-premium {
        display: none !important;
    }
    .hero-page .nav-actions .nav-link-premium,
    .hero-page .nav-actions .secondary-nav-btn,
    .hero-page .nav-actions .join-btn {
        display: none !important;
    }
    .hero-page .hamburger-btn {
        display: flex !important;
        color: var(--text-primary) !important;
        width: 40px !important;
        height: 40px !important;
    }
    .hero-page .hamburger-btn svg {
        width: 22px !important;
        height: 22px !important;
        stroke: currentColor !important;
    }
    .hero-page .premium-nav-glass {
        padding: 0 12px 0 16px !important;
        height: 56px !important;
        gap: 8px !important;
    }
    .hero-page .logo-img {
        height: 26px !important;
    }
    .hero-page .nav-actions {
        gap: 4px !important;
    }
}

@media (max-width: 768px) {
    .premium-hero {
        min-height: 0;
        padding: 76px 16px 34px;
    }
    .nv-hero-sketch {
        opacity: 0.42;
    }
    .nv-hero-headline {
        max-width: 21rem;
        font-size: clamp(2.35rem, 12.5vw, 3.4rem);
        line-height: 0.98;
        margin-bottom: 18px;
    }
    .nv-hero-subheadline {
        max-width: 22rem;
        font-size: 0.94rem;
        line-height: 1.5;
        margin-bottom: 22px;
        padding: 0;
    }
    .nv-eyebrow {
        max-width: min(100%, 21rem);
        margin-bottom: 20px;
        font-size: 0.64rem;
        letter-spacing: 0.065em;
        padding: 5px 12px;
    }
    .nv-hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 340px;
        gap: 8px;
        margin-bottom: 22px;
    }
    .nv-btn-primary,
    .nv-btn-secondary {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        padding: 12px 18px;
    }
    .nv-genre-rail {
        gap: 6px;
        justify-content: flex-start;
        width: calc(100% + 32px);
        max-width: none;
        margin-left: -16px;
        padding: 2px 16px 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 2px 2px 8px;
        scrollbar-width: none;
    }
    .nv-genre-rail::-webkit-scrollbar {
        display: none;
    }
    .nv-genre-chip {
        padding: 7px 13px !important;
        font-size: 0.72rem !important;
    }
    .nv-home-hero-inner {
        padding: 0;
        max-width: 100%;
    }
    .nv-ambient-glow {
        width: 140%;
        height: 280px;
    }

    .journey-section {
        padding: 16px 0 48px;
    }
    .discovery-strip {
        padding: 28px 0;
    }
    .strip-container {
        padding: 0 16px;
    }
    .section-header {
        margin-bottom: 14px;
        gap: 10px;
        align-items: center;
    }
    .section-title {
        font-size: 1.15rem !important;
    }
    .horizontal-scroll {
        gap: 12px;
        margin: 0 -16px;
        padding: 4px 16px 16px;
    }
    .poster-card {
        flex: 0 0 142px !important;
        width: 142px !important;
        gap: 8px !important;
    }
    .poster-info h3 {
        font-size: 0.82rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .poster-info p,
    .poster-info .cr-meta {
        font-size: 0.72rem !important;
    }

    .bento-genres-section {
        padding: 36px 0;
    }
    .bento-genre-tile {
        padding: 16px;
    }
    .bento-genre-name {
        font-size: 1.2rem;
    }
    .bento-tile-large .bento-genre-name {
        font-size: 1.45rem;
    }

    .nv-editorial-footer {
        padding: 32px 0 28px;
    }
    .nv-footer-inner {
        padding: 0 16px;
        gap: 20px;
    }
    .nv-footer-top,
    .nv-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .nv-footer-links {
        gap: 12px 16px;
    }
}

@media (max-width: 420px) {
    .bento-genres-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 110px;
    }
    .bento-tile-large,
    .bento-tile-medium {
        grid-column: span 1;
    }
    .poster-card {
        flex: 0 0 128px !important;
        width: 128px !important;
    }
    .premium-hero {
        padding: 70px 16px 28px;
    }
    .nv-hero-sketch {
        display: none;
    }
    .nv-eyebrow {
        max-width: 18rem;
        font-size: 0.59rem;
        padding: 5px 10px;
    }
    .nv-hero-headline {
        font-size: clamp(2.2rem, 12.8vw, 2.85rem);
    }
    .nv-hero-subheadline {
        max-width: 19rem;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-page .nv-fade-up,
    .hero-page #heroDustCanvas,
    .hero-page .nv-hero-sketch {
        animation: none !important;
    }
    .hero-page .nv-fade-up {
        opacity: 1;
        transform: none;
    }
}

@media (hover: none) {
    .poster-card:hover,
    .story-card-editorial:hover,
    .story-card:hover,
    .gn-card:hover,
    .bento-genre-tile:hover .bento-genre-content {
        transform: none !important;
    }
    .nv-genre-chip:hover,
    .genre-pill-chip:hover,
    .genre-pill:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

@supports (padding: max(0px)) {
    @media (max-width: 900px) {
        .hero-page .premium-nav-glass {
            padding-left: max(16px, env(safe-area-inset-left)) !important;
            padding-right: max(12px, env(safe-area-inset-right)) !important;
        }
    }
}

/* ── Smart Ad Dark Editorial Styles ── */
.hero-page .novira-ad {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    transition: border-color 200ms ease, transform 200ms ease !important;
}
.hero-page .novira-ad:hover {
    border-color: #3f3f46 !important;
    transform: translateY(-2px) !important;
}
.hero-page .novira-ad__brand-tile {
    background: #0d0d0f !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.hero-page .novira-ad__label {
    background: rgba(10, 10, 11, 0.85) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border-subtle) !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}
.hero-page .novira-ad__advertiser {
    color: var(--accent) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}
.hero-page .novira-ad__title {
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}
.hero-page .novira-ad__desc {
    color: var(--text-secondary) !important;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
}
.hero-page .novira-ad__cta {
    color: var(--accent) !important;
    font-weight: 500 !important;
    font-size: 0.82rem !important;
}

/* ── Mobile drawer: match the obsidian homepage, not a light iOS sheet ── */
.hero-page .mobile-drawer-overlay {
    background: rgba(10, 10, 11, 0.62);
}

.hero-page .mobile-drawer {
    background: #0a0a0b;
    color: var(--text-primary);
    font-family: var(--font-sans);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -24px 0 48px rgba(0, 0, 0, 0.55);
}

.hero-page .drawer-header {
    background: #0a0a0b;
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 14px 12px;
}

.hero-page .drawer-brand-icon {
    background: #141416;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.hero-page .drawer-logo {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hero-page .drawer-close {
    border-color: var(--border-subtle);
    color: var(--text-secondary);
    background: transparent;
    width: 40px;
    height: 40px;
}
.hero-page .drawer-close:hover {
    background: rgba(232, 213, 183, 0.08);
    color: var(--text-primary);
}

.hero-page .drawer-guest {
    margin: 14px 14px 4px;
    padding: 0 2px 8px;
    background: transparent;
    border: none;
    border-radius: 0;
}
.hero-page .drawer-guest-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.hero-page .drawer-guest-sub {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.45;
}

.hero-page .drawer-profile {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}
.hero-page .drawer-profile:hover {
    background: var(--bg-surface-hover);
    border-color: #3f3f46;
}
.hero-page .drawer-profile-avatar {
    background: #1c1c1f;
    color: var(--accent);
    border-color: rgba(232, 213, 183, 0.25);
}
.hero-page .drawer-profile-name {
    color: var(--text-primary);
    font-weight: 600;
}
.hero-page .drawer-profile-sub {
    color: var(--text-muted);
}
.hero-page .drawer-profile svg {
    color: var(--text-muted);
}

.hero-page .drawer-search {
    padding: 8px 14px 6px;
}
.hero-page .drawer-search-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    height: 42px;
}
.hero-page .drawer-search-form:focus-within {
    border-color: var(--accent);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.hero-page .drawer-search-form svg {
    color: var(--text-muted);
}
.hero-page .drawer-search-input {
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.875rem;
}
.hero-page .drawer-search-input::placeholder {
    color: var(--text-muted);
}

.hero-page .drawer-nav {
    padding: 6px 10px 8px;
}
.hero-page .drawer-section-label {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 16px 12px 6px;
}
.hero-page .drawer-nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    border-color: transparent;
    min-height: 44px;
}
.hero-page .drawer-nav-link svg {
    opacity: 0.75;
    color: var(--text-muted);
}
.hero-page .drawer-nav-link:hover {
    background: rgba(232, 213, 183, 0.06);
    color: var(--text-primary);
}
.hero-page .drawer-nav-link.active {
    background: rgba(232, 213, 183, 0.1);
    color: var(--accent);
    border-color: transparent;
}
.hero-page .drawer-nav-link.active svg {
    color: var(--accent);
    opacity: 1;
}

.hero-page .drawer-footer {
    background: #0a0a0b;
    border-top: 1px solid var(--border-subtle);
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    gap: 8px;
}
.hero-page .drawer-cta-primary {
    background: var(--accent);
    color: #0a0a0b;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    min-height: 44px;
}
.hero-page .drawer-cta-primary:hover {
    background: #f2e4d0;
}
.hero-page .drawer-cta-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 44px;
}
.hero-page .drawer-cta-secondary:hover {
    background: rgba(232, 213, 183, 0.04);
    border-color: var(--accent);
    color: var(--accent);
}
.hero-page .drawer-cta-logout {
    color: #f87171;
    border-color: var(--border-subtle);
}
.hero-page .drawer-cta-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

/* ─── 2026 Dark Editorial Footer ─── */
.footer-premium,
.hero-page .footer-premium {
    background-color: #0a0a0b !important;
    color: #f4f4f5 !important;
    padding: 72px 0 36px !important;
    border-top: 1px solid var(--border-subtle) !important;
    margin-top: 80px !important;
}

.footer-container,
.hero-page .footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 48px !important;
}

.footer-brand-col,
.hero-page .footer-brand-col {
    flex: 1 !important;
    min-width: 260px !important;
    max-width: 380px !important;
}

.footer-logo,
.hero-page .footer-logo {
    height: 32px !important;
    width: auto !important;
    margin-bottom: 16px !important;
    filter: brightness(100) !important;
}

.footer-tagline,
.hero-page .footer-tagline {
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

.footer-copyright,
.hero-page .footer-copyright {
    color: var(--text-muted) !important;
    font-size: 0.78rem !important;
    margin-top: 16px !important;
}

.footer-socials,
.hero-page .footer-socials {
    display: flex !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.social-icon,
.hero-page .social-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-secondary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
}

.social-icon svg,
.hero-page .social-icon svg {
    width: 16px !important;
    height: 16px !important;
}

.social-icon:hover,
.hero-page .social-icon:hover {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    background: rgba(232, 213, 183, 0.12) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(232, 213, 183, 0.18) !important;
}

.footer-links-col,
.hero-page .footer-links-col {
    display: flex !important;
    gap: 56px !important;
    flex-wrap: wrap !important;
}

.footer-links-group h4,
.hero-page .footer-links-group h4 {
    color: var(--text-muted) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
}

.footer-links-group a,
.hero-page .footer-links-group a {
    display: block !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-bottom: 10px !important;
    transition: all 140ms ease !important;
}

.footer-links-group a:hover,
.hero-page .footer-links-group a:hover {
    color: var(--accent) !important;
    transform: translateX(2px) !important;
}

@media (max-width: 768px) {
    .footer-premium,
    .hero-page .footer-premium {
        padding: 56px 0 28px !important;
        margin-top: 56px !important;
    }

    .footer-container,
    .hero-page .footer-container {
        flex-direction: column !important;
        gap: 36px !important;
        padding: 0 20px !important;
    }

    .footer-brand-col,
    .hero-page .footer-brand-col {
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .footer-links-col,
    .hero-page .footer-links-col {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 32px 20px !important;
        width: 100% !important;
    }

    .footer-links-group h4,
    .hero-page .footer-links-group h4 {
        margin-bottom: 12px !important;
        font-size: 0.72rem !important;
    }

    .footer-links-group a,
    .hero-page .footer-links-group a {
        font-size: 0.84rem !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 480px) {
    .footer-links-col,
    .hero-page .footer-links-col {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 16px !important;
    }

    .footer-socials,
    .hero-page .footer-socials {
        gap: 8px !important;
    }

    .social-icon,
    .hero-page .social-icon {
        width: 34px !important;
        height: 34px !important;
    }
}
