/* =====================================================
   ChatNexus Theme v3 — Modernization Layer
   Applies the new branding/colors to all subpages
   while keeping Bootstrap layout intact.
   ===================================================== */

/* Google Fonts — Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Override base font ─────────────────────────────── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* ── Dark Header ────────────────────────────────────── */
header#header {
    background: rgba(10, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

header#header.menu-sticky {
    background: rgba(10, 14, 26, 0.98) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Nav links — white text on dark header */
header#header .navbar-nav .nav-link {
    color: rgba(241, 245, 249, 0.8) !important;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

header#header .navbar-nav .nav-link:hover,
header#header .navbar-nav .nav-link.active {
    color: #fff !important;
}

header#header.menu-sticky .navbar-nav .nav-link {
    color: rgba(241, 245, 249, 0.8) !important;
}

header#header.menu-sticky .navbar-nav .nav-link:hover,
header#header.menu-sticky .navbar-nav .nav-link.active {
    color: #fff !important;
}

/* Dropdown menus */
header#header .dropdown-menu {
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

header#header .dropdown-item {
    color: rgba(241, 245, 249, 0.8);
    font-size: 14px;
    padding: 10px 20px;
}

header#header .dropdown-item:hover {
    background: rgba(79, 110, 247, 0.1);
    color: #fff;
}

/* Login/CTA buttons — fix tablet overflow */
.login {
    display: flex !important;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.login li a {
    color: rgba(241, 245, 249, 0.8) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 18px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login li a:hover {
    color: #fff !important;
    text-decoration: none;
}

.login li.active a {
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(79, 110, 247, 0.35);
    font-weight: 600;
}

.login li.active a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 110, 247, 0.5);
}

header.menu-sticky .login li a {
    color: rgba(241, 245, 249, 0.8) !important;
}

header.menu-sticky .login li a:hover {
    color: #fff !important;
}

header.menu-sticky .login li.active a {
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6) !important;
    color: #fff !important;
}

/* Logo — hide old logo-stiky swap, always show the icon */
header#header .navbar-brand img.logo {
    display: flex !important;
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

header#header .navbar-brand img.logo-stiky {
    display: none !important;
}

header#header.menu-sticky .navbar-brand img.logo {
    display: flex !important;
}

header#header.menu-sticky .navbar-brand img.logo-stiky {
    display: none !important;
}

/* Brand text next to logo */
.navbar-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

header.menu-sticky .navbar-brand {
    color: #fff !important;
}

/* Mobile hamburger icon — white on dark */
.navbar-toggler {
    border-color: rgba(255,255,255,0.2) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ── Breadcrumb / Page Header Fix ───────────────────── */
.iq-breadcrumb,
.breadcrumb-area,
[class*="breadcrumb"] {
    background: linear-gradient(135deg, #0a0e1a 0%, #111827 100%) !important;
}

/* ── Dark Footer ────────────────────────────────────── */
footer,
footer.education,
.education {
    background: #0a0e1a !important;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-top {
    border-bottom-color: rgba(148, 163, 184, 0.1) !important;
}

footer .footer-title,
.footer-title {
    color: rgba(148, 163, 184, 0.6) !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

footer .widget p,
footer .widget .menu-item a,
footer .menu-item a {
    color: rgba(148, 163, 184, 0.8) !important;
    font-size: 14px;
}

footer .widget .menu-item a:hover,
footer .menu-item a:hover {
    color: #fff !important;
}

footer .copyright {
    color: rgba(100, 116, 139, 0.8) !important;
    font-size: 13px;
}

footer hr {
    border-color: rgba(148, 163, 184, 0.1) !important;
}

/* Footer logo area */
.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* ── Updated Gradient Accents ───────────────────────── */
:root {
    --cn-gradient: linear-gradient(135deg, #4f6ef7 0%, #8b5cf6 100%) !important;
    --cn-gradient-dark: linear-gradient(135deg, #3b5ae0 0%, #7c3aed 100%) !important;
}

/* ── Loading Screen ─────────────────────────────────── */
#loading {
    background: #0a0e1a !important;
}

/* ── Responsive — Fix tablet nav/buttons ────────────── */
@media (max-width: 1200px) {
    .login {
        gap: 6px;
    }

    .login li a {
        font-size: 13px !important;
        padding: 6px 14px !important;
    }
}

@media (max-width: 992px) {
    .col-lg-3.text-right {
        text-align: center !important;
        margin-top: 10px;
    }

    .login {
        justify-content: center;
    }

    /* Collapse nav links */
    .navbar-collapse {
        background: #111827;
        border-radius: 12px;
        padding: 20px;
        margin-top: 10px;
        border: 1px solid rgba(148, 163, 184, 0.1);
    }

    .navbar-nav .nav-link {
        padding: 10px 16px !important;
    }
}

@media (max-width: 768px) {
    .login li.d-inline.d--sm-none {
        display: none !important;
    }

    .login {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════
   MODERNIZATION: Page Content Area
   ═══════════════════════════════════════════════════════ */

/* Give page body a subtle dark-tinted background */
.main-content,
.iq-pricing,
.iq-feature-comparison,
.iq-addons,
.iq-cta {
    background: #f8fafc;
}

/* ── Section titles — modernize ────────────────────── */
.title-box .title {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.title-box .title span {
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Pricing Cards — glass morphism ────────────────── */
.pricing-box {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    position: relative;
}

.pricing-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f6ef7, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-box:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 60px rgba(79, 110, 247, 0.15) !important;
    border-color: rgba(79, 110, 247, 0.2) !important;
}

.pricing-box:hover::before {
    opacity: 1;
}

.price-head {
    font-weight: 800 !important;
    font-size: 24px !important;
    letter-spacing: -0.02em;
}

/* Override the old purple gradient on price area */
.pricing-box .price-blog {
    background: #f8fafc !important;
    filter: none !important;
}

.pricing-box .price-blog::before {
    border-top-color: #fff !important;
}

.pricing-box .price .currency {
    color: #374151 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    vertical-align: super;
}

.price-value {
    font-size: 56px !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
}

.pricing-box .price .month {
    color: #6b7280 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.pricing-box .price {
    color: #1f2937 !important;
}

.popular-tag {
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6) !important;
    color: white !important;
    padding: 4px 14px !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
    vertical-align: middle;
    margin-left: 8px;
}

/* Pricing toggle buttons */
.pricing-toggle .btn-toggle {
    border-radius: 50px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e5e7eb !important;
}

.pricing-toggle .btn-toggle.active {
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 20px rgba(79, 110, 247, 0.3) !important;
}

/* CTA buttons */
.button,
a.button {
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 14px 36px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(79, 110, 247, 0.3) !important;
    text-decoration: none !important;
    display: inline-block;
}

.button:hover,
a.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(79, 110, 247, 0.45) !important;
    color: #fff !important;
}

a.button.grey {
    background: rgba(0,0,0,0.06) !important;
    color: #374151 !important;
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
}

a.button.grey:hover {
    background: rgba(0,0,0,0.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* ── Feature Comparison Table — modernize ──────────── */
.feature-table-wrapper {
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
    border: 1px solid rgba(0,0,0,0.06);
}

.feature-table {
    margin-bottom: 0 !important;
}

.feature-table thead {
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6) !important;
}

.feature-table thead th {
    color: #fff !important;
    font-weight: 700 !important;
    padding: 18px 20px !important;
    border: none !important;
    font-size: 14px;
}

.feature-table tbody tr {
    transition: background 0.2s ease;
}

.feature-table tbody tr:hover {
    background: rgba(79, 110, 247, 0.03);
}

.feature-table td {
    padding: 14px 20px !important;
    font-size: 14px;
    border-color: rgba(0,0,0,0.04) !important;
    vertical-align: middle !important;
}

.feature-name {
    font-weight: 600 !important;
}

/* ── Add-on Cards — modernize ──────────────────────── */
.addon-card {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 16px;
}

.addon-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(79, 110, 247, 0.1) !important;
    border-color: rgba(79, 110, 247, 0.15) !important;
}

.addon-card h4 {
    font-weight: 700 !important;
    font-size: 16px !important;
}

.addon-card .price {
    color: #4f6ef7 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

.addon-card .description {
    color: #6b7280 !important;
    font-size: 13px !important;
}

/* ── Breadcrumb — dark gradient ────────────────────── */
.iq-breadcrumb-five,
.iq-breadcrumb-five.main-bg {
    background: linear-gradient(135deg, #0a0e1a, #1e293b) !important;
    padding: 60px 0 20px !important;
    min-height: auto !important;
}

.iq-breadcrumb-five::before,
.iq-breadcrumb-five::after {
    display: none !important;
}

/* ── Social Icons — modernize ──────────────────────── */
footer .social-icone a {
    color: rgba(148, 163, 184, 0.6) !important;
    transition: color 0.3s ease;
}

footer .social-icone a:hover {
    color: #4f6ef7 !important;
}

/* ── Scroll Reveal Animation Classes ───────────────── */
[data-v3-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-v3-reveal].v3-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children delays */
[data-v3-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-v3-stagger].v3-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
[data-v3-stagger].v3-visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
[data-v3-stagger].v3-visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
[data-v3-stagger].v3-visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
[data-v3-stagger].v3-visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
[data-v3-stagger].v3-visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
[data-v3-stagger].v3-visible > *:nth-child(7) { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
[data-v3-stagger].v3-visible > *:nth-child(8) { transition-delay: 560ms; opacity: 1; transform: translateY(0); }

/* ── Smooth scroll ─────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── cn-card and cn-card-bordered — modernize ──────── */
.cn-card,
.cn-card-bordered {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 16px !important;
}

.cn-card:hover,
.cn-card-bordered:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(79, 110, 247, 0.12) !important;
}

/* ── Features page improvements ────────────────────── */
.cn-icon-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cn-card:hover .cn-icon-box,
.cn-card-bordered:hover .cn-icon-box {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(79, 110, 247, 0.2);
}
