:root {
    --primary: #0a192f;
    --secondary: #172a45;
    --accent: #64ffda;
    --accent-dark: #00d9b3;
    --text-light: #e6f3ff;
    --text-muted: #a8c5dd;
    --text-dark: #8892b0;
    --white: #ffffff;
    --gold: #ffd700;
    --gold-light: #ffed4e;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(100, 255, 218, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--text-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Glassmorphism Cards */
.glass-card {
    background: rgba(23, 42, 69, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.3), inset 0 0 20px rgba(100, 255, 218, 0.05);
}

/* High-Tech Buttons */
.btn-tech {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

.btn-tech:hover,
.btn-tech:focus {
    background: rgba(100, 255, 218, 0.1);
    color: var(--white);
    box-shadow: 0 0 20px var(--accent), inset 0 0 20px rgba(100, 255, 218, 0.1);
    border-color: var(--gold);
}

.btn-gold {
    border-color: var(--gold);
    color: var(--white);
}

.btn-gold:hover,
.btn-gold:focus {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px var(--gold), inset 0 0 20px rgba(255, 215, 0, 0.1);
    border-color: var(--gold-light);
}

/* Hero Section */
.hero-high-tech {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-high-tech::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-high-tech::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

.hero-high-tech > .container,
.hero-high-tech .row,
.hero-high-tech .col-lg-7,
.hero-high-tech .col-lg-5 {
    position: relative;
    z-index: 2;
}

.hero-portrait {
    width: 100%;
    max-width: 430px;
    max-height: 500px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: scale(1.15);
    color: white;
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.6);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    color: var(--white);
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 100%);
    box-shadow: 0 0 10px var(--accent);
}

/* Navbar Customization */
.navbar-tech {
    background: rgba(10, 25, 47, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1100;
}

.navbar-brand {
    position: relative;
    z-index: 1102;
}

.navbar-toggler {
    border-color: rgba(100, 255, 218, 0.35);
    box-shadow: none !important;
    position: relative;
    z-index: 1102;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-collapse {
    position: relative;
    z-index: 1101;
}

.nav-link-tech {
    color: var(--text-light) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link-tech:hover,
.nav-link-tech:focus {
    color: var(--accent) !important;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.nav-link-tech::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link-tech:hover::after,
.nav-link-tech:focus::after {
    width: 100%;
}

/* Text Contrast Fixes */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

p, li, span {
    color: var(--text-light);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Cards & Containers */
.card {
    background: rgba(23, 42, 69, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.card-body {
    color: var(--text-light);
}

.card-title {
    color: var(--white);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

/* Forms */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.form-control:focus, .form-select:focus {
    background: rgba(100, 255, 218, 0.05);
    border-color: var(--accent);
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
}

.form-control::placeholder {
    color: var(--text-dark);
}

/* Badge */
.badge {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Tables */
table {
    color: var(--text-light);
}

th {
    color: var(--white);
    border-color: var(--glass-border);
}

td {
    border-color: var(--glass-border);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-high-tech {
        min-height: auto;
        padding-top: 7rem;
    }

    .hero-portrait {
        max-width: 320px;
        max-height: 360px;
        margin: 0 auto;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(10, 25, 47, 0.98);
        border: 1px solid rgba(100, 255, 218, 0.14);
        border-radius: 12px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link,
    .navbar-nav .btn {
        display: block;
        width: 100%;
        text-align: left;
    }

    .navbar-nav .btn {
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .display-2 {
        font-size: 2.3rem;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .btn-tech {
        width: 100%;
        text-align: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}


.eyebrow {
    color: var(--accent);
    border: 1px solid rgba(100,255,218,0.25);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(100,255,218,0.06);
    font-size: 0.9rem;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.featured-card {
    border-color: rgba(255, 215, 0, 0.35);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(90deg, rgba(255,215,0,0.2), rgba(100,255,218,0.2));
    color: var(--white);
    border: 1px solid rgba(255,215,0,0.35);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.sales-note {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(100,255,218,0.07);
    border: 1px solid rgba(100,255,218,0.18);
    color: var(--text-light);
    font-size: 0.95rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.step-dot {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    box-shadow: 0 0 12px rgba(100,255,218,0.45);
    margin-top: 0.4rem;
}

.step-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.review-card p {
    font-size: 0.98rem;
}

.cta-band .glass-card {
    background: linear-gradient(135deg, rgba(23,42,69,0.7), rgba(10,25,47,0.85));
}

.mini-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.mini-checklist span {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-light);
    font-size: 0.85rem;
}

.contact-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.map-wrap iframe {
    display: block;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
}

.cookie-banner__content {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    background: rgba(10,25,47,0.96);
    border: 1px solid rgba(100,255,218,0.18);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-badges {
        gap: 0.5rem !important;
    }

    .trust-chip {
        width: 100%;
        justify-content: center;
    }
}


/* Phase 2 template engine */
body.layout-centered .container{max-width:1140px}
body.layout-immersive .container{max-width:1320px}
body.spacing-compact section{padding-top:3rem!important;padding-bottom:3rem!important}
body.spacing-spacious section{padding-top:6rem!important;padding-bottom:6rem!important}
body.header-solid .navbar-tech{background:linear-gradient(90deg,var(--primary),var(--secondary))!important;backdrop-filter:none}
body.header-minimal .navbar-tech{background:rgba(0,0,0,.15)!important;border-bottom:1px solid rgba(255,255,255,.04)}
body.button-solid .btn-tech{background:linear-gradient(90deg,var(--accent),var(--accent-dark));border-color:transparent;color:#052238}
body.button-soft .btn-tech{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);text-transform:none;letter-spacing:.4px}
body.card-elevated .glass-card{background:rgba(255,255,255,.06);box-shadow:0 18px 40px rgba(0,0,0,.24)}
body.card-outline .glass-card{background:transparent;border-width:2px}
.template-chip{display:inline-flex;gap:.5rem;align-items:center;padding:.35rem .7rem;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);font-size:.85rem;color:var(--text-muted)}
.dynamic-block{position:relative;overflow:hidden}
.dynamic-block__img{width:100%;height:100%;min-height:260px;object-fit:cover;border-radius:var(--theme-radius)}
.dynamic-block__meta{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}
.dynamic-block__meta span{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .7rem;border-radius:999px;background:rgba(255,255,255,.06);color:var(--text-muted);font-size:.82rem}
.dynamic-block--image-left .row,.dynamic-block--image-right .row{align-items:center}
.dynamic-block--image-right .dynamic-block__media{order:2}
.blog-filter-bar{display:flex;gap:1rem;flex-wrap:wrap;align-items:center}
.blog-card__img{height:220px;object-fit:cover;width:100%;border-radius:var(--theme-radius)}
.blog-detail{max-width:860px;margin:0 auto}
.blog-detail img{border-radius:var(--theme-radius);margin-bottom:1.25rem}

/* Theme variations controlled from admin */
body[class*="theme-"] {
    transition: background .25s ease, color .25s ease;
}
body.theme-clean_light {
    background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
    color: #0f172a;
}
body.theme-clean_light .hero-high-tech,
body.theme-clean_light .navbar-tech,
body.theme-clean_light footer,
body.theme-clean_light .cookie-banner__content {
    background: #ffffff !important;
    color: #0f172a;
}
body.theme-clean_light .hero-high-tech {
    background: linear-gradient(180deg, #ffffff 0%, #eef5fb 100%) !important;
}
body.theme-clean_light .glass-card,
body.theme-clean_light .card,
body.theme-clean_light .cookie-banner__content {
    background: rgba(255,255,255,.96) !important;
    border-color: rgba(14,165,233,.18) !important;
    box-shadow: 0 16px 40px rgba(15,23,42,.08) !important;
}
body.theme-clean_light .text-white,
body.theme-clean_light .text-light,
body.theme-clean_light .navbar-brand,
body.theme-clean_light .nav-link-tech,
body.theme-clean_light .section-title,
body.theme-clean_light footer,
body.theme-clean_light footer a,
body.theme-clean_light .btn-tech {
    color: #0f172a !important;
    text-shadow: none !important;
}
body.theme-clean_light .text-muted,
body.theme-clean_light .small,
body.theme-clean_light .helper {
    color: #475569 !important;
}
body.theme-clean_light .btn-tech {
    border-color: #0ea5e9 !important;
    background: #ffffff !important;
}
body.theme-clean_light .btn-tech:hover {background:#e0f2fe !important;color:#0f172a !important;box-shadow:none !important;}
body.theme-clean_light .nav-link-tech::after {background:#0ea5e9 !important;}
body.theme-clean_light .section-title::after {box-shadow:none !important;}

body.theme-corporate_finance {
    background: linear-gradient(180deg, #071424 0%, #0e2644 100%);
}
body.theme-corporate_finance .hero-high-tech {background: linear-gradient(135deg, #071424 0%, #15345f 100%) !important;}
body.theme-corporate_finance .navbar-tech {background: linear-gradient(90deg, #0b1730, #13294b) !important;}
body.theme-corporate_finance .glass-card {border-color: rgba(59,130,246,.35) !important; box-shadow: 0 18px 45px rgba(59,130,246,.12) !important;}
body.theme-corporate_finance .btn-tech {background: rgba(59,130,246,.15) !important; border-color: #60a5fa !important;}
body.theme-corporate_finance .section-title::after {background: linear-gradient(90deg, #60a5fa 0%, #bfdbfe 100%) !important; box-shadow: 0 0 12px rgba(96,165,250,.4) !important;}

body.theme-luxury_gold {
    background: radial-gradient(circle at top, #1b2941 0%, #101826 70%);
}
body.theme-luxury_gold .hero-high-tech {background: linear-gradient(135deg, #101826 0%, #1c2740 100%) !important;}
body.theme-luxury_gold .navbar-tech {background: linear-gradient(90deg, #151f31, #24344e) !important;}
body.theme-luxury_gold .glass-card {border-color: rgba(212,175,55,.35) !important; box-shadow: 0 0 24px rgba(212,175,55,.16) !important;}
body.theme-luxury_gold .btn-tech {border-color: #d4af37 !important; color: #fff7db !important;}
body.theme-luxury_gold .btn-tech:hover {background: rgba(212,175,55,.12) !important; box-shadow: 0 0 24px rgba(212,175,55,.24) !important;}
body.theme-luxury_gold .section-title::after {background: linear-gradient(90deg, #d4af37 0%, #f8e7a0 100%) !important; box-shadow: 0 0 12px rgba(212,175,55,.4) !important;}

body.theme-sunrise_soft {
    background: linear-gradient(180deg, #fff7f1 0%, #ffe8d9 100%);
    color: #40281f;
}
body.theme-sunrise_soft .hero-high-tech {background: linear-gradient(180deg, #fff8f2 0%, #ffe0cc 100%) !important;}
body.theme-sunrise_soft .navbar-tech {background: linear-gradient(90deg, #fff3ea, #ffe6d7) !important; border-bottom-color: rgba(249,115,22,.14) !important;}
body.theme-sunrise_soft .glass-card {background: rgba(255,255,255,.86) !important; border-color: rgba(249,115,22,.18) !important; box-shadow: 0 14px 40px rgba(249,115,22,.10) !important;}
body.theme-sunrise_soft .text-white,
body.theme-sunrise_soft .text-light,
body.theme-sunrise_soft .navbar-brand,
body.theme-sunrise_soft .nav-link-tech,
body.theme-sunrise_soft .section-title,
body.theme-sunrise_soft footer,
body.theme-sunrise_soft footer a {color: #40281f !important; text-shadow:none !important;}
body.theme-sunrise_soft .text-muted {color: #7a5a4b !important;}
body.theme-sunrise_soft .btn-tech {background: #fff !important; border-color: #ff8a65 !important; color: #40281f !important;}
body.theme-sunrise_soft .btn-tech:hover {background: #fff0e8 !important;}
body.theme-sunrise_soft .section-title::after {background: linear-gradient(90deg, #ff8a65 0%, #f97316 100%) !important; box-shadow:none !important;}
body.theme-sunrise_soft footer {background:#fff1e6 !important;}

body.theme-forest_trust {
    background: linear-gradient(180deg, #eff7f2 0%, #dfeee5 100%);
    color: #163828;
}
body.theme-forest_trust .hero-high-tech {background: linear-gradient(180deg, #eef6f1 0%, #dceee4 100%) !important;}
body.theme-forest_trust .navbar-tech {background: linear-gradient(90deg, #eff7f2, #dceee4) !important; border-bottom-color: rgba(47,133,90,.18) !important;}
body.theme-forest_trust .glass-card {background: rgba(255,255,255,.9) !important; border-color: rgba(47,133,90,.18) !important; box-shadow: 0 14px 40px rgba(47,133,90,.10) !important;}
body.theme-forest_trust .text-white,
body.theme-forest_trust .text-light,
body.theme-forest_trust .navbar-brand,
body.theme-forest_trust .nav-link-tech,
body.theme-forest_trust .section-title,
body.theme-forest_trust footer,
body.theme-forest_trust footer a {color: #163828 !important; text-shadow:none !important;}
body.theme-forest_trust .text-muted {color:#527267 !important;}
body.theme-forest_trust .btn-tech {background: #fff !important; border-color: #2f855a !important; color: #163828 !important;}
body.theme-forest_trust .btn-tech:hover {background:#eef8f1 !important;}
body.theme-forest_trust .section-title::after {background: linear-gradient(90deg, #2f855a 0%, #68d391 100%) !important; box-shadow:none !important;}
body.theme-forest_trust footer {background:#e8f2eb !important;}
