:root {
    /* Dark Theme System */
    --bg-dark: #050505;
    --bg-surface: #0a0c10;
    --primary: #F5C518;
    --primary-light: #FFD700;
    --primary-glow: rgba(245, 197, 24, 0.4);
    --primary-glow-soft: rgba(245, 197, 24, 0.1);
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --accent: #F5C518;
    --accent-glow: rgba(245, 197, 24, 0.4);
    --border: rgba(255, 255, 255, 0.1);
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --text-secondary: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    /* Border Radius */
    --radius-sm: 0.8rem;
    --radius-md: 1.5rem;
    --radius-lg: 2.5rem;
    --radius-xl: 4rem;
}

/* ============================================================
   BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    background-color: #050505;
    color: #ffffff;
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(circle at 10% 10%, var(--primary-glow-soft) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, var(--primary-glow-soft) 0%, transparent 40%);
}

html, body {
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   LAYOUT
============================================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}
.container-sm { max-width: 1000px; margin: 0 auto; padding: 0 2rem; width: 100%; }

/* ============================================================
   GLASSMORPHISM
============================================================ */
.glass {
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

/* ============================================================
   HEADER / NAV
============================================================ */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    padding: 1.8rem 0;
    transition: var(--transition);
}
.main-header.scrolled {
    padding: 0.8rem 0;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-links {
    display: flex;
    gap: 2.5rem;
    background: rgba(255,255,255,0.03);
    padding: 0.8rem 2.5rem;
    border-radius: 99px;
    border: 1px solid var(--glass-border);
}
.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-item:hover, .nav-item.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}
.nav-logo {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
}
.logo-area { display: flex; align-items: center; gap: 1.2rem; text-decoration: none; }
.logo-text .brand {
    font-family: var(--font-heading);
    font-weight: 900;
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #D4A710);
    color: #000;
    border: none;
    padding: 1rem 2.2rem;
    border-radius: 12px;
    font-weight: 950;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(245, 197, 24, 0.2);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(245, 197, 24, 0.4);
    filter: brightness(1.1);
    color: #000;
}
.btn-secondary {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 1rem 2.2rem;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.8rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================================
   CARDS
============================================================ */
.grid-standard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.card-feature {
    padding: 3.5rem 2.5rem;
    border-radius: 3rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.card-feature:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

/* ============================================================
   PRODUCT CARDS
============================================================ */
.product-card {
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 0 0 40px var(--primary-glow-soft);
}
.product-card:hover img { transform: scale(1.1); opacity: 1; }
.price-tag { text-shadow: 0 0 25px var(--primary-glow-soft); }

/* ============================================================
   STATUS BADGES
============================================================ */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.status-online { background: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }

/* ============================================================
   STORE / FILTER
============================================================ */
.switcher-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    overflow: hidden;
}
.switch-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.switch-btn.active { background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary-glow-soft); }
.switch-btn:hover:not(.active) { background: rgba(255,255,255,0.05); color: #fff; }
.filter-btn { transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.filter-btn.active { background: var(--primary); color: #000; border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow-soft); }

/* ============================================================
   AUTH
============================================================ */
.auth-btn-minimal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 197, 24, 0.03);
    border: 1px solid var(--glass-border);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.auth-btn-minimal:hover {
    background: rgba(245, 197, 24, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px var(--primary-glow-soft);
}

/* ============================================================
   LINKS
============================================================ */
a { color: inherit; text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--primary); }

/* ============================================================
   ANIMATIONS
============================================================ */
.reveal { opacity: 0; transform: translateY(15px); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes sc-bounce { 0%, 100% { height: 4px; } 50% { height: 12px; } }
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floating { animation: floating 4s ease-in-out infinite; }
.animate-title { animation: none; }
.animate-fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   MUSIC PLAYER
============================================================ */
#sc-music-console.dragging { opacity: 0.8; transform: scale(1.02); transition: none !important; }
.music-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.music-bars span { width: 2px; border-radius: 1px; background: var(--primary); height: 4px; }
.music-bars.active span:nth-child(1) { animation: sc-bounce 0.8s ease-in-out infinite; }
.music-bars.active span:nth-child(2) { animation: sc-bounce 0.8s ease-in-out infinite 0.2s; }
.music-bars.active span:nth-child(3) { animation: sc-bounce 0.8s ease-in-out infinite 0.4s; }

/* ============================================================
   CHATBOT
============================================================ */
.sc-chat-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 65px !important;
    height: 65px !important;
    background: var(--primary) !important;
    color: #000 !important;
    border-radius: 50% !important;
    z-index: 999999 !important;
    box-shadow: 0 10px 30px var(--primary-glow) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    cursor: pointer !important;
}

/* ============================================================
   RICH CONTENT (Markdown)
============================================================ */
.rich-content img { max-width: 100%; border-radius: 1.5rem; margin: 2rem 0; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.rich-content video { max-width: 100%; border-radius: 1.5rem; margin: 2rem 0; }
.rich-content ul { list-style: none; padding-left: 0.5rem; margin: 1.5rem 0; }
.rich-content li { position: relative; padding-left: 2rem; margin-bottom: 1rem; color: #fff; line-height: 1.6; }
.rich-content li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 900; font-size: 1.2rem; line-height: 1; }
.rich-content strong { color: #fff; font-weight: 900; border-bottom: 1px solid rgba(245,197,24,0.3); }
.rich-content em { color: var(--primary); font-style: normal; font-weight: 700; }
.rich-content h1, .rich-content h2, .rich-content h3 { color: #fff; text-transform: uppercase; letter-spacing: -0.5px; margin: 3rem 0 1.5rem; font-family: var(--font-heading); font-weight: 950; }
.rich-content h1 { font-size: 2.2rem; border-left: 4px solid var(--primary); padding-left: 1.5rem; }
.rich-content h2 { font-size: 1.6rem; }
.rich-content p { line-height: 1.8; color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }
.rich-content code { background: rgba(245,197,24,0.08); border: 1px solid rgba(245,197,24,0.2); border-radius: 6px; padding: 0.2em 0.5em; font-family: 'Courier New', monospace; font-size: 0.9em; color: var(--primary); }
.rich-content pre { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.08); border-radius: 1rem; padding: 1.5rem; overflow-x: auto; }
.rich-content pre code { background: none; border: none; padding: 0; color: rgba(255,255,255,0.85); }

/* ============================================================
   HOVER LIFT
============================================================ */
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.4); }

/* ============================================================
   HERO TOOLS
============================================================ */
.sc-tool-link:hover .tool-circle { transform: translateY(-15px) rotate(5deg); border-color: var(--primary); box-shadow: 0 20px 50px var(--primary-glow-soft); }
.sc-tool-link span { opacity: 0.6; transition: 0.3s; }
.sc-tool-link:hover span { opacity: 1; color: var(--primary); }

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
============================================================ */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .container-sm { padding: 0 1.5rem; }
    .grid-standard { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .main-header { padding: 1.2rem 0; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
============================================================ */
@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { padding: 0 1.2rem; }
    .container-sm { padding: 0 1.2rem; }

    /* Nav */
    .hide-mobile { display: none !important; }
    .navbar { flex-wrap: wrap; gap: 1rem; }
    .nav-links { width: 100%; justify-content: space-around; gap: 0.5rem; padding: 0.8rem 1rem; }
    .nav-item span { display: none; }
    .nav-item i { font-size: 1.2rem; }

    /* Grid */
    .grid-standard { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Hero */
    .hero-title-sc { font-size: clamp(2.2rem, 9vw, 3.5rem) !important; }
    .hero-subtitle { font-size: 1rem !important; margin: 1.5rem auto !important; }

    /* Cards */
    .card-feature { padding: 2.5rem 2rem; border-radius: 2rem; }

    /* Buttons */
    .btn-primary, .btn-secondary { padding: 0.9rem 1.6rem; font-size: 0.75rem; }

    /* Trustpilot ticker */
    .sc-reviews-ticker { padding: 2rem 0 !important; }

    /* Stats bar */
    .stats-bar-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 2rem !important; }

    /* Tools section */
    .grid-elite-tools { gap: 2rem !important; grid-template-columns: repeat(2, 1fr) !important; }
    .tool-circle { width: 80px !important; height: 80px !important; font-size: 2rem !important; }

    /* Footer */
    .sc-footer-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; text-align: center !important; }
    .social-links-footer { justify-content: center !important; }
    .footer-bottom { flex-direction: column !important; gap: 1rem !important; text-align: center; }

    /* Music */
    #sc-music-console { display: none !important; }

    /* Chatbot */
    .sc-chat-btn { width: 55px !important; height: 55px !important; bottom: 20px !important; right: 20px !important; font-size: 1.4rem !important; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
============================================================ */
@media (max-width: 480px) {
    html { font-size: 14px; }
    .container, .container-sm { padding: 0 1rem; }

    /* Hero */
    .hero-title-sc { font-size: clamp(1.8rem, 10vw, 2.8rem) !important; letter-spacing: -1px !important; }

    /* Tools grid */
    .grid-elite-tools { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; }

    /* Bot detail */
    .bot-detail-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }

    /* Cards */
    .card-feature { padding: 2rem 1.5rem; }

    /* Studio */
    .studio-container { grid-template-columns: 1fr !important; }

    /* Hub grid */
    .grid-tools-main { grid-template-columns: 1fr !important; }

    /* Sections padding */
    section { padding-left: 0 !important; padding-right: 0 !important; }

    /* Error page */
    .error-code { font-size: 6rem !important; }
    .error-card { padding: 3rem 1.5rem !important; }

    /* Footer overlap fix */
    .sc-footer { padding-bottom: 5rem !important; }
}

/* ============================================================
   COOKIE BANNER — MOBILE FIX
============================================================ */
@media (max-width: 600px) {
    #sc-cookie-banner {
        width: 96% !important;
        padding: 2rem !important;
        border-radius: 2rem !important;
        max-height: 85vh !important;
    }
}

/* ============================================================
   MOBILE DROPDOWN NAV
============================================================ */
@media (max-width: 1000px) {
    .desktop-nav, .desktop-auth { display: none !important; }
    .mobile-toggle { display: flex !important; align-items: center; margin-left: auto; }
    .logo-area { flex: 1; min-width: 0; }
    .brand { font-size: 0.82rem !important; white-space: nowrap; letter-spacing: 0.5px; display: block; }
    #mobile-dropdown.active { display: flex !important; }
    .main-header { padding: 0.6rem 0 !important; }
    #sc-music-console { display: none !important; }
}

/* ============================================================
   SCROLLBAR STYLING
============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(245,197,24,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245,197,24,0.6); }

/* ============================================================
   SELECTION
============================================================ */
::selection { background: rgba(245,197,24,0.3); color: #fff; }
::-moz-selection { background: rgba(245,197,24,0.3); color: #fff; }

/* ============================================================
   PRINT
============================================================ */
@media print {
    .main-header, #sc-music-console, .sc-chat-btn, #sc-cookie-banner, #sc-cookie-overlay { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
}
