/* ============================================================
   TYPE MASTER PRO — UNIFIED DESIGN SYSTEM (2026)
   Modern, clean, professional shared styles
   Glassy Navbar + Premium Active States + Sticky Fixed
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
    /* Light theme */
    --light-bg: #f7f8fc;
    --light-bg-alt: #eef1f8;
    --light-surface: #ffffff;
    --light-surface-alt: #f9fafb;
    --light-text: #0f172a;
    --light-text-soft: #475569;
    --light-text-muted: #94a3b8;
    --light-primary: #4f46e5;
    --light-primary-soft: #eef2ff;
    --light-primary-hover: #4338ca;
    --light-secondary: #64748b;
    --light-container-bg: #ffffff;
    --light-highlight: #6366f1;
    --light-key-bg: #ffffff;
    --light-key-text: #1e293b;
    --light-key-active-bg: #e0e7ff;
    --light-border: #e2e8f0;
    --light-border-soft: #eef1f6;

    /* Dark theme */
    --dark-bg: #0b1120;
    --dark-bg-alt: #111827;
    --dark-surface: #131a2b;
    --dark-surface-alt: #1a2236;
    --dark-text: #e5e7eb;
    --dark-text-soft: #cbd5e1;
    --dark-text-muted: #94a3b8;
    --dark-primary: #818cf8;
    --dark-primary-soft: #1e1b4b;
    --dark-secondary: #94a3b8;
    --dark-container-bg: #131a2b;
    --dark-highlight: #818cf8;
    --dark-key-bg: #1e293b;
    --dark-key-text: #e2e8f0;
    --dark-key-active-bg: #312e81;
    --dark-border: #1f2937;
    --dark-border-soft: #1a2236;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    --shadow-glow-strong: 0 0 30px rgba(99, 102, 241, 0.35);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Transitions */
    --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--light-bg);
    color: var(--light-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--t-base), color var(--t-base);
    /* 'clip' preserves sticky; 'hidden' breaks it */
    overflow-x: clip;
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--light-primary);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--light-primary-hover);
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--light-highlight);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.5);
    background-clip: content-box;
}

/* ============================================================
   NAVBAR — Premium Glassmorphism
   ============================================================ */
.navbar {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    padding: 12px 24px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.04),
        0 8px 32px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(79, 70, 229, 0.3) 20%,
        rgba(124, 58, 237, 0.4) 50%,
        rgba(79, 70, 229, 0.3) 80%,
        transparent 100%);
    opacity: 0.8;
    pointer-events: none;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(15, 23, 42, 0.06) 50%,
        transparent 100%);
    pointer-events: none;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.06),
        0 12px 40px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.dark-mode .navbar {
    background: rgba(15, 20, 35, 0.5);
    border-bottom-color: rgba(129, 140, 248, 0.1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .navbar::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(129, 140, 248, 0.5) 20%,
        rgba(196, 181, 253, 0.6) 50%,
        rgba(129, 140, 248, 0.5) 80%,
        transparent 100%);
}

body.dark-mode .navbar::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 100%);
}

body.dark-mode .navbar.scrolled {
    background: rgba(11, 17, 32, 0.78);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-brand a {
    color: var(--light-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity var(--t-fast);
}

.nav-brand a:hover {
    opacity: 0.85;
}

body.dark-mode .nav-brand a {
    color: var(--dark-text);
}

.nav-logo {
    height: 30px;
    width: auto;
    transition: transform var(--t-base);
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.15));
}

.nav-brand a:hover .nav-logo {
    transform: rotate(-6deg) scale(1.05);
}

.nav-brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .nav-brand-text {
    background: linear-gradient(135deg, #818cf8 0%, #c4b5fd 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: var(--light-text-soft);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    background-color: transparent;
    transition: color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
    position: relative;
    display: block;
    white-space: nowrap;
}

.nav-links li a:focus {
    outline: 2px solid var(--light-highlight);
    outline-offset: 2px;
}

.nav-links li a:hover {
    color: var(--light-primary);
    background-color: rgba(79, 70, 229, 0.08);
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.1);
}

body.dark-mode .nav-links li a {
    color: var(--dark-text-soft);
}

body.dark-mode .nav-links li a:hover {
    color: var(--dark-primary);
    background-color: rgba(129, 140, 248, 0.12);
    box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.15);
}

/* ============================================================
   ACTIVE LINK — Beautiful Premium State
   ============================================================ */
.nav-links li a.active {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
    box-shadow:
        0 4px 14px rgba(79, 70, 229, 0.35),
        0 2px 6px rgba(79, 70, 229, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    /* Text must sit above shimmer */
    isolation: isolate;
    z-index: 1;
}

/* Shimmer should be BEHIND text */
.nav-links li a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow:
        0 0 8px rgba(99, 102, 241, 0.8),
        0 0 16px rgba(124, 58, 237, 0.5);
    animation: pulseIndicator 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes pulseIndicator {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        box-shadow:
            0 0 8px rgba(99, 102, 241, 0.8),
            0 0 16px rgba(124, 58, 237, 0.5);
    }
    50% {
        transform: translateX(-50%) scale(1.3);
        opacity: 0.85;
        box-shadow:
            0 0 12px rgba(99, 102, 241, 1),
            0 0 24px rgba(124, 58, 237, 0.7);
    }
}

body.dark-mode .nav-links li a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #a78bfa 100%);
    box-shadow:
        0 4px 16px rgba(129, 140, 248, 0.5),
        0 2px 8px rgba(129, 140, 248, 0.3),
        0 0 24px rgba(129, 140, 248, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.dark-mode .nav-links li a.active::after {
    background: linear-gradient(135deg, #818cf8, #c4b5fd);
    box-shadow:
        0 0 10px rgba(129, 140, 248, 0.9),
        0 0 20px rgba(196, 181, 253, 0.6);
}

body.dark-mode .nav-links li a.active::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent);
}

/* ============================================================
   PARENT DROPDOWN ACTIVE STATE
   (When child link is active, parent looks active too)
   ============================================================ */
.nav-links li a.dropdown-toggle.is-active-parent {
    color: var(--light-primary);
    background-color: rgba(79, 70, 229, 0.08);
    font-weight: 600;
    position: relative;
    overflow: visible;
    /* Text must sit above shimmer/overlays */
    isolation: isolate;
    z-index: 1;
}

/* Text content sits above shimmer */
.nav-links li a.dropdown-toggle.is-active-parent,
.nav-links li a.dropdown-toggle.is-active-parent .dropdown-arrow {
    position: relative;
    z-index: 2;
}

/* Ensure shimmer stays BEHIND text */
.nav-links li a.dropdown-toggle.is-active-parent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(79, 70, 229, 0.15),
        transparent);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: var(--radius-md);
}

/* The glowing dot indicator */
.nav-links li a.dropdown-toggle.is-active-parent::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow:
        0 0 8px rgba(99, 102, 241, 0.8),
        0 0 16px rgba(124, 58, 237, 0.5);
    animation: pulseIndicator 2s ease-in-out infinite;
    z-index: 3;
}

body.dark-mode .nav-links li a.dropdown-toggle.is-active-parent {
    color: var(--dark-primary);
    background-color: rgba(129, 140, 248, 0.12);
}

body.dark-mode .nav-links li a.dropdown-toggle.is-active-parent::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(129, 140, 248, 0.2),
        transparent);
}

body.dark-mode .nav-links li a.dropdown-toggle.is-active-parent::after {
    background: linear-gradient(135deg, #818cf8, #c4b5fd);
    box-shadow:
        0 0 10px rgba(129, 140, 248, 0.9),
        0 0 20px rgba(196, 181, 253, 0.6);
}

/* ============================================================
   DROPDOWN (Desktop)
   ============================================================ */
.dropdown-trigger {
    position: relative;
}

.dropdown-trigger .nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    min-width: 220px;
    box-shadow:
        0 12px 40px rgba(15, 23, 42, 0.15),
        0 4px 12px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 1002;
    padding: 6px;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity var(--t-fast), transform var(--t-fast);
    transform-origin: top left;
    margin-top: 0;
    pointer-events: auto;
}

.dropdown-trigger.open .nav-dropdown {
    display: block !important;
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.dark-mode .dropdown-trigger .nav-dropdown {
    background-color: rgba(20, 26, 43, 0.98);
    border-color: rgba(129, 140, 248, 0.18);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-dropdown li a {
    display: block;
    padding: 10px 14px;
    color: var(--light-text);
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.nav-dropdown li a:hover,
.nav-dropdown li a:focus {
    background-color: var(--light-primary-soft);
    color: var(--light-primary);
    transform: translateX(4px);
}

body.dark-mode .nav-dropdown li a {
    color: var(--dark-text);
}

body.dark-mode .nav-dropdown li a:hover,
body.dark-mode .nav-dropdown li a:focus {
    background-color: var(--dark-primary-soft);
    color: var(--dark-primary);
}

.dropdown-arrow {
    display: inline-block;
    font-size: 0.7rem;
    transition: transform var(--t-fast);
    margin-left: 2px;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

.dropdown-trigger.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* ============================================================
   THEME SWITCH
   ============================================================ */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 26px;
    position: relative;
    width: 52px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #cbd5e1;
    bottom: 0;
    cursor: pointer;
    left: 0;
    right: 0;
    top: 0;
    border-radius: var(--radius-full);
    position: absolute;
    transition: var(--t-base);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.1);
}

.slider:before {
    background-color: #ffffff;
    bottom: 3px;
    content: "";
    height: 20px;
    left: 3px;
    width: 20px;
    border-radius: 50%;
    position: absolute;
    transition: var(--t-base);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" width="14" viewBox="0 0 24 24" fill="%23f59e0b"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.64 5.64c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L5.64 5.64zm12.72 12.72c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-1.06-1.06zM18.36 5.64l-1.06 1.06c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0l1.06-1.06c.39-.39.39-1.02 0-1.41-.39-.39-1.02-.39-1.41 0zM6.7 17.3c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-1.06-1.06c-.39-.39-1.02-.39-1.41 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

input:checked+.slider {
    background-color: var(--light-primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="14" width="14" viewBox="0 0 24 24" fill="%236366f1"><path d="M11.23 2.51c.42-.13.86-.13 1.28 0 3.99 1.27 6.49 5.32 5.22 9.32-1.27 3.99-5.32 6.49-9.32 5.22-3.99-1.27-6.49-5.32-5.22-9.32 1.27-3.99 5.32-6.49 9.32-5.22zm-2.09 13.56c.79.44 1.73.44 2.52 0 .53-.29.83-.88.7-1.48-.13-.6-.62-1.09-1.22-1.22-.6-.13-1.19.17-1.48.7-.29.53-.29 1.19 0 1.73.18.32.49.53.83.67z"/></svg>');
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-menu span {
    width: 100%;
    height: 2.5px;
    background-color: var(--light-text);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    display: block;
    transform-origin: 2px 1px;
}

body.dark-mode .hamburger-menu span {
    background-color: var(--dark-text);
}

.hamburger-menu.active span:first-child {
    transform: rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    text-align: center;
    padding: 40px 24px 32px;
    margin-top: 60px;
    background-color: var(--light-surface);
    color: var(--light-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--light-border);
    transition: background-color var(--t-base), color var(--t-base);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--light-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--t-fast);
}

.site-footer a:hover {
    color: var(--light-primary-hover);
    text-decoration: underline;
}

body.dark-mode .site-footer {
    background-color: var(--dark-surface);
    color: var(--dark-text-muted);
    border-top-color: var(--dark-border);
}

body.dark-mode .site-footer a {
    color: var(--dark-primary);
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
    position: fixed;
    width: 58px;
    height: 58px;
    bottom: 28px;
    right: 28px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-base);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* ============================================================
   SIDEBAR ADS — Sticky
   ============================================================ */
.full-page-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 32px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 24px 48px;
    align-items: start;
}

.sidebar {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 88px;
    padding: 0 8px;
    align-self: flex-start;
}

.left-sidebar,
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.ad-vertical {
    background: var(--light-surface-alt);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    min-height: 620px;
    margin: 20px auto;
    padding: 12px;
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

.ad-vertical ins.adsbygoogle {
    display: block !important;
    margin: 0 auto;
    width: 160px !important;
    height: 600px !important;
}

ins.adsbygoogle[data-ad-slot="5704714518"],
ins.adsbygoogle[data-ad-slot="4332056548"] {
    display: inline-block !important;
    width: 160px !important;
    height: 600px !important;
    min-width: 160px !important;
    min-height: 600px !important;
}

body.dark-mode .ad-vertical {
    background: var(--dark-surface-alt);
    border-color: var(--dark-border);
}

/* ============================================================
   MOBILE RESPONSIVE — ALL NAV ITEMS VISIBLE
   ============================================================ */
@media (max-width: 991px) {
    .hide-on-small,
    .hide-on-medium {
        display: block !important;
    }

    #auth-section {
        display: none !important;
    }

    .hamburger-menu {
        display: flex !important;
    }

    .mobile-auth-item {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 340px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        padding: 84px 20px 30px;
        gap: 4px;
        z-index: 998;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: -12px 0 40px rgba(15, 23, 42, 0.15);
        border-left: 1px solid rgba(255, 255, 255, 0.5);
    }

    body.dark-mode .nav-links {
        background-color: rgba(19, 26, 43, 0.95);
        border-left-color: rgba(129, 140, 248, 0.15);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .nav-item {
        width: 100%;
        border-bottom: none;
        display: block !important;
    }

    .nav-links .nav-item a {
        display: block;
        padding: 14px 16px;
        font-size: 0.95rem;
        color: var(--light-text);
        text-decoration: none;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
        border-radius: var(--radius-md);
        font-weight: 500;
    }

    body.dark-mode .nav-links .nav-item a {
        color: var(--dark-text);
    }

    .nav-links .nav-item a:hover {
        background-color: var(--light-primary-soft);
        color: var(--light-primary);
    }

    body.dark-mode .nav-links .nav-item a:hover {
        background-color: var(--dark-primary-soft);
        color: var(--dark-primary);
    }

    .nav-links .nav-item a.active,
    .nav-links .nav-item a.dropdown-toggle.is-active-parent {
        color: #fff;
        background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #7c3aed 100%);
        box-shadow:
            0 4px 14px rgba(79, 70, 229, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .nav-links .nav-item a.active::after,
    .nav-links .nav-item a.dropdown-toggle.is-active-parent::after {
        display: none;
    }

    .nav-links .nav-item a.active::before,
    .nav-links .nav-item a.dropdown-toggle.is-active-parent::before {
        display: none;
    }

    body.dark-mode .nav-links .nav-item a.active,
    body.dark-mode .nav-links .nav-item a.dropdown-toggle.is-active-parent {
        background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #a78bfa 100%);
        box-shadow:
            0 4px 16px rgba(129, 140, 248, 0.5),
            0 0 24px rgba(129, 140, 248, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    .dropdown-trigger .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 0;
        padding: 0 0 0 12px;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        width: 100%;
        display: none !important;
        opacity: 1;
        transform: none;
    }

    .dropdown-trigger.open .nav-dropdown {
        display: block !important;
    }

    .nav-dropdown li a {
        padding: 12px 16px !important;
        font-size: 0.875rem !important;
        border-bottom: none;
    }

    .mobile-auth-btn {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        border-radius: var(--radius-md) !important;
        text-align: center;
    }

    #mobile-user-info {
        padding: 12px 8px 16px !important;
    }
}

@media (max-width: 1100px) and (min-width: 992px) {
    .hide-on-medium {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .hide-on-small {
        display: block !important;
    }
}

/* ============================================================
   RESPONSIVE LAYOUT
   ============================================================ */
@media (max-width: 1024px) {
    .full-page-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 16px;
        width: 100%;
    }

    .left-sidebar,
    .right-sidebar {
        display: none !important;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .full-page-wrapper {
        grid-template-columns: 180px 1fr 180px;
        gap: 20px;
    }

    .ad-vertical {
        width: 170px;
        min-height: 610px;
        padding: 8px;
    }

    .ad-vertical ins.adsbygoogle,
    ins.adsbygoogle[data-ad-slot="5704714518"],
    ins.adsbygoogle[data-ad-slot="4332056548"] {
        width: 150px !important;
        height: 600px !important;
    }
}

@media (min-width: 1281px) {
    .full-page-wrapper {
        gap: 36px;
    }
}

/* ============================================================
   DARK MODE
   ============================================================ */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode .hamburger-menu span {
    background-color: var(--dark-text);
}

/* ============================================================
   UPDATE NOTIFICATION POPUP
   ============================================================ */
.update-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.update-notification-popup {
    background: var(--light-surface);
    border-radius: var(--radius-2xl);
    padding: 44px 36px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--light-border);
}

.update-notification-popup .icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.update-notification-popup h2 {
    font-size: 1.65rem;
    color: var(--light-text);
    margin: 0 0 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.update-notification-popup .subtitle {
    font-size: 1rem;
    color: var(--light-text-soft);
    margin-bottom: 20px;
    line-height: 1.65;
}

.update-notification-popup .close-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 13px 42px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t-base);
    margin-top: 16px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.update-notification-popup .close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
}

.update-notification-popup .version-tag {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

body.dark-mode .update-notification-popup {
    background: var(--dark-surface);
    border-color: var(--dark-border);
}

body.dark-mode .update-notification-popup h2 {
    color: var(--dark-text);
}

body.dark-mode .update-notification-popup .subtitle {
    color: var(--dark-text-soft);
}

body.dark-mode .update-notification-popup p {
    color: var(--dark-text-soft);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 600px) {
    .update-notification-popup {
        padding: 32px 24px;
    }

    .update-notification-popup h2 {
        font-size: 1.4rem;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}