/* ==========================================================================
   CANDUCODING — White-Label Partner Landing Page Multi-Theme Engine v3
   10 Themes: 
   1. modern_saas         - Modern Studio SaaS (Default)
   2. obsidian_dark       - Obsidian Cyber Tech
   3. corporate_clean     - Minimalist Executive
   4. growth_agency       - Bold Growth Studio
   5. umkm_juara          - Solusi Kasir & UMKM Juara
   6. fintech_neon        - Fintech & Ledger Matrix
   7. edu_academic        - EduTech & Smart Campus
   8. health_care         - Klinik & Medika Pro
   9. property_estate     - Properti & Real Estate Prime
   10. creative_portfolio - Studio Kreatif & Portofolio
   Full Support: Light & Dark Mode Toggle across all 10 themes!
   ========================================================================== */

/* Preview Bar for Partner Testing */
.theme-preview-banner {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(90deg, #1e1b4b, #312e81, #4338ca);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.theme-preview-banner a {
    background: #ffffff;
    color: #312e81;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 3px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.theme-preview-banner a:hover {
    transform: translateY(-1px);
}

/* Trust Metric Strip (Activated on relevant business themes) */
.theme-trust-strip {
    display: none;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    margin-bottom: 2.5rem;
}
body[data-landing-theme="corporate_clean"] .theme-trust-strip,
body[data-landing-theme="growth_agency"] .theme-trust-strip,
body[data-landing-theme="umkm_juara"] .theme-trust-strip,
body[data-landing-theme="fintech_neon"] .theme-trust-strip,
body[data-landing-theme="edu_academic"] .theme-trust-strip,
body[data-landing-theme="health_care"] .theme-trust-strip,
body[data-landing-theme="property_estate"] .theme-trust-strip {
    display: block;
}
.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
}
.trust-metric-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.trust-metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.trust-metric-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.2;
}
.trust-metric-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .trust-strip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    .trust-strip-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating WhatsApp Button for high-conversion themes */
.growth-floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #25d366;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.85rem 1.45rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    animation: bounceSlow 3s infinite ease-in-out;
}
@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}


/* ==========================================================================
   1. THEME: OBSIDIAN CYBER TECH (obsidian_dark)
   ========================================================================== */
html[data-theme="dark"] body[data-landing-theme="obsidian_dark"] {
    --bg: #04070d;
    --surface: #0a0f1d;
    --surface-subtle: #11182c;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --border: rgba(99, 102, 241, 0.25);
    --border-strong: rgba(99, 102, 241, 0.5);
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(99, 102, 241, 0.2);
    --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(99, 102, 241, 0.25);
    background-color: #04070d;
    color: #f1f5f9;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 45%);
    background-attachment: fixed;
}
html[data-theme="light"] body[data-landing-theme="obsidian_dark"] {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-subtle: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-faint: #94a3b8;
    --border: #cbd5e1;
    --border-strong: #94a3b8;
    --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(99, 102, 241, 0.2);
    background-color: #f1f5f9;
    color: #0f172a;
}
body[data-landing-theme="obsidian_dark"] .accent-text {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body[data-landing-theme="obsidian_dark"] .studio-preview {
    border: 1px solid rgba(99, 102, 241, 0.45);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.25);
}


/* ==========================================================================
   2. THEME: MINIMALIST EXECUTIVE (corporate_clean)
   ========================================================================== */
html[data-theme="light"] body[data-landing-theme="corporate_clean"] {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-subtle: #f8fafc;
    --text-main: #020617;
    --text-muted: #334155;
    --border: #e2e8f0;
    --border-strong: #94a3b8;
    background-color: #ffffff;
    color: #020617;
}
html[data-theme="dark"] body[data-landing-theme="corporate_clean"] {
    --bg: #090e17;
    --surface: #0f172a;
    --surface-subtle: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --border-strong: #334155;
    background-color: #090e17;
    color: #f8fafc;
}
body[data-landing-theme="corporate_clean"] .btn { border-radius: 6px !important; }
body[data-landing-theme="corporate_clean"] .hero-tag { border-radius: 4px !important; letter-spacing: 0.75px !important; }


/* ==========================================================================
   3. THEME: BOLD GROWTH STUDIO (growth_agency)
   ========================================================================== */
html[data-theme="light"] body[data-landing-theme="growth_agency"] {
    --bg: #faf5ff;
    --surface: #ffffff;
    --surface-subtle: #f3e8ff;
    --text-main: #1e1b4b;
    --text-muted: #4c1d95;
    --border: #e9d5ff;
    background-color: #faf5ff;
    color: #1e1b4b;
}
html[data-theme="dark"] body[data-landing-theme="growth_agency"] {
    --bg: #0d0a1a;
    --surface: #17122b;
    --surface-subtle: #241d42;
    --text-main: #fdf4ff;
    --text-muted: #d8b4fe;
    --border: #4c1d95;
    background-color: #0d0a1a;
    color: #fdf4ff;
}
body[data-landing-theme="growth_agency"] .btn { border-radius: 999px !important; }
body[data-landing-theme="growth_agency"] .btn-primary {
    background: linear-gradient(135deg, #7c3aed, #d946ef) !important;
}


/* ==========================================================================
   4. THEME: MODERN STUDIO SAAS (modern_saas - Default)
   ========================================================================== */
html[data-theme="light"] body[data-landing-theme="modern_saas"] {
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-subtle: #F1F5F9;
    --text-main: #0F172A;
    --text-muted: #475569;
}
html[data-theme="dark"] body[data-landing-theme="modern_saas"] {
    --bg: #090D16;
    --surface: #111827;
    --surface-subtle: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
}


/* ==========================================================================
   5. THEME: SOLUSI KASIR & UMKM JUARA (umkm_juara)
   Character: Warm Emerald & Gold, Friendly, Anti-Pusing Koding
   ========================================================================== */
html[data-theme="light"] body[data-landing-theme="umkm_juara"] {
    --bg: #f0fdf4;
    --surface: #ffffff;
    --surface-subtle: #dcfce7;
    --text-main: #14532d;
    --text-muted: #166534;
    --text-faint: #22c55e;
    --primary: #059669;
    --primary-hover: #047857;
    --secondary: #d97706;
    --border: #bbf7d0;
    --border-strong: #86efac;
    --shadow-card: 0 6px 18px rgba(5, 150, 105, 0.08);
    background-color: #f0fdf4;
    color: #14532d;
}
html[data-theme="dark"] body[data-landing-theme="umkm_juara"] {
    --bg: #041f12;
    --surface: #063821;
    --surface-subtle: #0d4a2d;
    --text-main: #ecfdf5;
    --text-muted: #a7f3d0;
    --text-faint: #6ee7b7;
    --primary: #10b981;
    --primary-hover: #059669;
    --secondary: #f59e0b;
    --border: #0f5132;
    --border-strong: #198754;
    --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.5);
    background-color: #041f12;
    color: #ecfdf5;
}
body[data-landing-theme="umkm_juara"] .hero-tag {
    background: #dcfce7 !important;
    border: 1px solid #86efac !important;
    color: #15803d !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
}
html[data-theme="dark"] body[data-landing-theme="umkm_juara"] .hero-tag {
    background: #064e3b !important;
    color: #6ee7b7 !important;
    border-color: #059669 !important;
}
body[data-landing-theme="umkm_juara"] .btn-primary {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35) !important;
}
body[data-landing-theme="umkm_juara"] .accent-text {
    color: #059669;
    background: none;
    -webkit-text-fill-color: initial;
}


/* ==========================================================================
   6. THEME: FINTECH & LEDGER MATRIX (fintech_neon)
   Character: Precise High-Tech Ledger, Electric Mint on Deep Graphite
   ========================================================================== */
html[data-theme="light"] body[data-landing-theme="fintech_neon"] {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-subtle: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #334155;
    --primary: #0d9488;
    --secondary: #0284c7;
    --border: #e2e8f0;
    --border-strong: #0d9488;
    background-color: #f8fafc;
    color: #0f172a;
}
html[data-theme="dark"] body[data-landing-theme="fintech_neon"] {
    --bg: #030a08;
    --surface: #061712;
    --surface-subtle: #0c2720;
    --text-main: #ecfdf5;
    --text-muted: #6ee7b7;
    --primary: #10b981;
    --secondary: #06b6d4;
    --border: rgba(16, 185, 129, 0.25);
    --border-strong: #10b981;
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(16, 185, 129, 0.15);
    background-color: #030a08;
    color: #ecfdf5;
}
body[data-landing-theme="fintech_neon"] .btn { border-radius: 8px !important; font-family: monospace; }
body[data-landing-theme="fintech_neon"] .hero-tag {
    font-family: monospace;
    border-radius: 6px !important;
    border: 1px solid var(--primary) !important;
}


/* ==========================================================================
   7. THEME: EDUTECH & SMART CAMPUS (edu_academic)
   Character: Royal Sapphire Blue, Smart Badges, E-Learning Feel
   ========================================================================== */
html[data-theme="light"] body[data-landing-theme="edu_academic"] {
    --bg: #f0f9ff;
    --surface: #ffffff;
    --surface-subtle: #e0f2fe;
    --text-main: #0c4a6e;
    --text-muted: #0369a1;
    --primary: #0284c7;
    --secondary: #2563eb;
    --border: #bae6fd;
    --border-strong: #7dd3fc;
    background-color: #f0f9ff;
    color: #0c4a6e;
}
html[data-theme="dark"] body[data-landing-theme="edu_academic"] {
    --bg: #051324;
    --surface: #0a1f38;
    --surface-subtle: #0f2c4f;
    --text-main: #f0f9ff;
    --text-muted: #7dd3fc;
    --primary: #38bdf8;
    --secondary: #60a5fa;
    --border: #1e3a5f;
    --border-strong: #38bdf8;
    background-color: #051324;
    color: #f0f9ff;
}
body[data-landing-theme="edu_academic"] .btn-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    border-radius: 10px !important;
}


/* ==========================================================================
   8. THEME: KLINIK & MEDIKA PRO (health_care)
   Character: Medical Clean Cyan & Teal, Calm, Trusted Healthcare
   ========================================================================== */
html[data-theme="light"] body[data-landing-theme="health_care"] {
    --bg: #f0fdfa;
    --surface: #ffffff;
    --surface-subtle: #ccfbf1;
    --text-main: #134e4a;
    --text-muted: #115e59;
    --primary: #0d9488;
    --secondary: #0284c7;
    --border: #99f6e4;
    --border-strong: #5eead4;
    background-color: #f0fdfa;
    color: #134e4a;
}
html[data-theme="dark"] body[data-landing-theme="health_care"] {
    --bg: #031715;
    --surface: #062b27;
    --surface-subtle: #0b3d37;
    --text-main: #f0fdfa;
    --text-muted: #5eead4;
    --primary: #14b8a6;
    --secondary: #38bdf8;
    --border: #134e4a;
    --border-strong: #14b8a6;
    background-color: #031715;
    color: #f0fdfa;
}
body[data-landing-theme="health_care"] .hero-tag {
    background: #ccfbf1 !important;
    color: #0f766e !important;
    border: 1px solid #5eead4 !important;
}
html[data-theme="dark"] body[data-landing-theme="health_care"] .hero-tag {
    background: #0d3934 !important;
    color: #5eead4 !important;
}


/* ==========================================================================
   9. THEME: PROPERTI & REAL ESTATE PRIME (property_estate)
   Character: Bronze Gold & Slate, Prestige, Luxury Villa & Kos Management
   ========================================================================== */
html[data-theme="light"] body[data-landing-theme="property_estate"] {
    --bg: #fafaf9;
    --surface: #ffffff;
    --surface-subtle: #f5f5f4;
    --text-main: #1c1917;
    --text-muted: #57534e;
    --primary: #b45309;
    --secondary: #78350f;
    --border: #e7e5e4;
    --border-strong: #d6d3d1;
    background-color: #fafaf9;
    color: #1c1917;
}
html[data-theme="dark"] body[data-landing-theme="property_estate"] {
    --bg: #0f0d0b;
    --surface: #1c1815;
    --surface-subtle: #29241f;
    --text-main: #fafaf9;
    --text-muted: #d6d3d1;
    --primary: #d97706;
    --secondary: #f59e0b;
    --border: #383029;
    --border-strong: #b45309;
    background-color: #0f0d0b;
    color: #fafaf9;
}
body[data-landing-theme="property_estate"] .btn-primary {
    background: linear-gradient(135deg, #b45309, #d97706) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(180, 83, 9, 0.3) !important;
}
body[data-landing-theme="property_estate"] .accent-text {
    color: #b45309;
    background: none;
    -webkit-text-fill-color: initial;
}


/* ==========================================================================
   10. THEME: STUDIO KREATIF & KREATOR (creative_portfolio)
   Character: Cyber Velvet & Neon Rose, Neo-Brutalist Chic, Portofolio Showcase
   ========================================================================== */
html[data-theme="light"] body[data-landing-theme="creative_portfolio"] {
    --bg: #fff1f2;
    --surface: #ffffff;
    --surface-subtle: #ffe4e6;
    --text-main: #881337;
    --text-muted: #9f1239;
    --primary: #e11d48;
    --secondary: #ea580c;
    --border: #fecdd3;
    --border-strong: #fda4af;
    background-color: #fff1f2;
    color: #881337;
}
html[data-theme="dark"] body[data-landing-theme="creative_portfolio"] {
    --bg: #0f040b;
    --surface: #1c0816;
    --surface-subtle: #2b0c22;
    --text-main: #fff1f2;
    --text-muted: #fda4af;
    --primary: #f43f5e;
    --secondary: #fb923c;
    --border: #4c112e;
    --border-strong: #f43f5e;
    background-color: #0f040b;
    color: #fff1f2;
}
body[data-landing-theme="creative_portfolio"] .btn { border-radius: 999px !important; font-weight: 800; }
body[data-landing-theme="creative_portfolio"] .btn-primary {
    background: linear-gradient(135deg, #e11d48, #f43f5e, #ea580c) !important;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45) !important;
}
body[data-landing-theme="creative_portfolio"] .accent-text {
    background: linear-gradient(135deg, #e11d48 0%, #fb7185 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   THEME-SPECIFIC HERO STUDIO PREVIEW STYLES
   ========================================================================== */
body[data-landing-theme="obsidian_dark"] .studio-preview {
    border-color: rgba(168, 85, 247, 0.45) !important;
    box-shadow: 0 12px 36px rgba(168, 85, 247, 0.18), 0 0 1px rgba(168, 85, 247, 0.6) !important;
}
body[data-landing-theme="obsidian_dark"] .studio-topbar {
    background: #090e18 !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.25) !important;
}
body[data-landing-theme="obsidian_dark"] .studio-status-chip {
    background: #04070e !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    color: #c084fc !important;
}
body[data-landing-theme="obsidian_dark"] .studio-tab-btn.active {
    background: rgba(168, 85, 247, 0.18) !important;
    border-color: #a855f7 !important;
    color: #e9d5ff !important;
}

body[data-landing-theme="corporate_clean"] .studio-preview {
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    border-radius: 12px !important;
}
body[data-landing-theme="corporate_clean"] .studio-topbar {
    background: #f8fafc !important;
}
body[data-landing-theme="corporate_clean"] .studio-tab-btn {
    border-radius: 6px !important;
}

body[data-landing-theme="growth_agency"] .studio-preview {
    border: 2px solid rgba(192, 38, 211, 0.35) !important;
    box-shadow: 0 14px 35px rgba(192, 38, 211, 0.15) !important;
    border-radius: 20px !important;
}
body[data-landing-theme="growth_agency"] .studio-tab-btn.active {
    background: #fdf4ff !important;
    border-color: #c026d3 !important;
    color: #c026d3 !important;
    font-weight: 700 !important;
}

body[data-landing-theme="umkm_juara"] .studio-preview {
    border: 2px solid rgba(5, 150, 105, 0.35) !important;
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.12) !important;
    border-radius: 18px !important;
}
body[data-landing-theme="umkm_juara"] .studio-topbar {
    background: #ecfdf5 !important;
    border-bottom: 1px solid #a7f3d0 !important;
}
body[data-landing-theme="umkm_juara"] .studio-status-chip {
    background: #ffffff !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}
body[data-landing-theme="umkm_juara"] .studio-tab-btn.active {
    background: #ffffff !important;
    border-color: #059669 !important;
    color: #059669 !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15) !important;
}

body[data-landing-theme="fintech_neon"] .studio-preview {
    border: 1px solid #14b8a6 !important;
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.15) !important;
    border-radius: 10px !important;
}
body[data-landing-theme="fintech_neon"] .studio-tab-btn {
    font-family: monospace;
    border-radius: 6px !important;
}
body[data-landing-theme="fintech_neon"] .studio-tab-btn.active {
    background: rgba(20, 184, 166, 0.1) !important;
    border-color: #14b8a6 !important;
    color: #0d9488 !important;
}

body[data-landing-theme="edu_academic"] .studio-preview {
    border: 2px solid #bae6fd !important;
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12) !important;
    border-radius: 16px !important;
}
body[data-landing-theme="edu_academic"] .studio-topbar {
    background: #f0f9ff !important;
    border-bottom: 1px solid #bae6fd !important;
}
body[data-landing-theme="edu_academic"] .studio-tab-btn.active {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

body[data-landing-theme="health_care"] .studio-preview {
    border: 2px solid #99f6e4 !important;
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.12) !important;
    border-radius: 18px !important;
}
body[data-landing-theme="health_care"] .studio-topbar {
    background: #f0fdfa !important;
    border-bottom: 1px solid #99f6e4 !important;
}
body[data-landing-theme="health_care"] .studio-tab-btn.active {
    background: #ffffff !important;
    border-color: #0d9488 !important;
    color: #0d9488 !important;
}

body[data-landing-theme="property_estate"] .studio-preview {
    border: 2px solid rgba(180, 83, 9, 0.3) !important;
    box-shadow: 0 12px 30px rgba(180, 83, 9, 0.12) !important;
    border-radius: 14px !important;
}
body[data-landing-theme="property_estate"] .studio-topbar {
    background: #fffbeb !important;
    border-bottom: 1px solid #fde68a !important;
}
body[data-landing-theme="property_estate"] .studio-tab-btn.active {
    background: #ffffff !important;
    border-color: #b45309 !important;
    color: #b45309 !important;
}

body[data-landing-theme="creative_portfolio"] .studio-preview {
    border: 2px solid #fecdd3 !important;
    box-shadow: 0 14px 35px rgba(225, 29, 72, 0.18) !important;
    border-radius: 22px !important;
}
body[data-landing-theme="creative_portfolio"] .studio-topbar {
    background: #fff1f2 !important;
    border-bottom: 1px solid #fecdd3 !important;
}
body[data-landing-theme="creative_portfolio"] .studio-tab-btn {
    border-radius: 999px !important;
}
body[data-landing-theme="creative_portfolio"] .studio-tab-btn.active {
    background: #ffffff !important;
    border-color: #e11d48 !important;
    color: #e11d48 !important;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.2) !important;
}
