/* ==========================================================================
   BluCross Capital - Master Stylesheet
   NCR Registered Credit Provider (NCRCP20207) · South Africa
   ========================================================================== */

@import 'policy.css';
@import 'calculator.css';
@import 'live_support.css';
@import 'branches.css';
@import 'contact.css';
@import 'signup.css';
@import 'pages.css';

/* ── CSS VARIABLES ─────────────────────────────── */
    :root {
      --bc-primary:     #0d47a1;
      --bc-dark:        #0a2b62;
      --bc-accent:      #1565c0;
      --bc-mid:         #1976d2;
      --bc-light:       #e3f2fd;
      --bc-orange:      #ff6f00;
      --bc-amber:       #ffa000;
      --bc-green:       #2e7d32;
      --bc-bg:          #f0f4f8;
      --bc-text:        #1a2332;
      --bc-muted:       #5a6a80;
      --radius-lg:      1.25rem;
      --radius-xl:      2rem;
      --shadow-sm:      0 4px 16px rgba(13,71,161,.10);
      --shadow-md:      0 8px 32px rgba(13,71,161,.16);
      --shadow-lg:      0 16px 48px rgba(13,71,161,.22);
      --transition:     .3s cubic-bezier(.4,0,.2,1);
    }

    /* ── BASE ──────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Poppins', Arial, sans-serif;
      background: var(--bc-bg);
      color: var(--bc-text);
      line-height: 1.65;
      overflow-x: hidden;
    }
    html, body {
      max-width: 100%;
      overflow-x: hidden;
    }
    h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
    a { color: var(--bc-primary); transition: color var(--transition); }

    /* ── HEADER WIDTH BOUNDARIES & CONTAINER ───────── */
    .header-container {
      width: 100%;
      max-width: 1480px;
      padding-left: clamp(1rem, 2.5vw, 2.25rem);
      padding-right: clamp(1rem, 2.5vw, 2.25rem);
      margin-left: auto;
      margin-right: auto;
      box-sizing: border-box;
    }

    /* ── COMPLIANCE TOP BAR ────────────────────────── */
    .compliance-bar {
      background: linear-gradient(90deg, #071d44, #0d3577);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      width: 100%;
      box-sizing: border-box;
    }
    .compliance-bar .badge-ncr {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.73rem;
      color: #90caf9;
      text-decoration: none;
      white-space: nowrap;
      transition: color var(--transition);
    }
    .compliance-bar .badge-ncr:hover {
      color: #fff;
    }
    @media (max-width: 1199.98px) {
      .compliance-act-text {
      }
    }

    /* ── MAIN NAVBAR ───────────────────────────────── */
    #mainNavbar {
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(13, 71, 161, 0.08);
      transition: all var(--transition);
      padding: 0.45rem 0;
      width: 100%;
      position: sticky;
      top: 0;
      z-index: 1030;
      box-sizing: border-box;
    }
    #mainNavbar.scrolled {
      box-shadow: var(--shadow-md);
      padding: 0.35rem 0;
    }
    #mainNavbar .header-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: nowrap;
    }
    #mainNavbar .navbar-brand {
      font-family: 'Montserrat', sans-serif;
      font-weight: 800;
      font-size: clamp(1.05rem, 1.2vw, 1.22rem);
      letter-spacing: -0.3px;
      white-space: nowrap;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      margin-right: 0.75rem;
      text-decoration: none;
    }
    #mainNavbar .navbar-brand img {
      height: 38px;
      width: 38px;
      object-fit: contain;
      border-radius: 9px;
      transition: transform var(--transition);
      flex-shrink: 0;
    }
    #mainNavbar .navbar-brand:hover img {
      transform: rotate(-5deg) scale(1.06);
    }

    #mainNavbar .navbar-collapse {
      flex-grow: 1;
    }

    /* ── NAV LINKS & BUTTONS ───────────────────────── */
    #mainNavbar .nav-link {
      font-weight: 500;
      font-size: 0.83rem;
      border-radius: 8px;
      transition: all var(--transition);
      position: relative;
      display: inline-flex;
      align-items: center;
      white-space: nowrap;
      gap: 0.22rem;
      flex-shrink: 0;
    }
    #mainNavbar .nav-link i {
      font-size: 0.88rem;
      line-height: 1;
      display: inline-flex;
      align-items: center;
    }
    #mainNavbar .nav-link::after {
      content: '';
      position: absolute;
      bottom: 3px; left: 50%; right: 50%;
      height: 2px;
      background: var(--bc-primary);
      border-radius: 2px;
      transition: all var(--transition);
    }
    #mainNavbar .nav-link:hover::after,
    #mainNavbar .nav-link.active-nav::after {
      left: 0.6rem; right: 0.6rem;
    }
    #mainNavbar .nav-link:hover {
      background: var(--bc-light);
    }

    /* ── AUTH BUTTONS (LOGIN & OPEN ACCOUNT) ───────── */
    #mainNavbar .nav-auth-action {
      display: inline-flex;
      align-items: center;
    }

    #mainNavbar .btn-login {
      background: #f4f8fd;
      border: 1.5px solid #bdd5f8;
      border-radius: 50px;
      color: #071d44 !important;
      font-weight: 600;
      font-size: 0.82rem;
      letter-spacing: 0.2px;
      padding: 0.44rem 1.15rem;
      height: 38px;
      line-height: 1;
      box-shadow: 0 2px 6px rgba(13, 71, 161, 0.06);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      white-space: nowrap;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.38rem;
      text-decoration: none;
    }
    #mainNavbar .btn-login i {
      color: #0d3577;
      font-size: 0.95rem;
      transition: all 0.25s ease;
    }
    #mainNavbar .btn-login:hover {
      background: #0d3577;
      border-color: #0d3577;
      color: #ffffff !important;
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(13, 53, 119, 0.28);
    }
    #mainNavbar .btn-login:hover i {
      color: #ffffff;
      transform: translateX(-1px);
    }
    #mainNavbar .btn-login:active {
      transform: translateY(0);
      box-shadow: 0 2px 6px rgba(13, 53, 119, 0.15);
    }
    #mainNavbar .btn-login::after { display: none !important; }

    #mainNavbar .btn-apply {
      background: linear-gradient(135deg, #071d44 0%, #0d3577 45%, #1565c0 100%);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 50px;
      color: #ffffff !important;
      font-weight: 700;
      font-size: 0.83rem;
      letter-spacing: 0.3px;
      padding: 0.44rem 1.25rem;
      height: 38px;
      line-height: 1;
      box-shadow: 0 4px 14px rgba(13, 71, 161, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      white-space: nowrap;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.42rem;
      text-decoration: none;
      position: relative;
      overflow: hidden;
    }
    #mainNavbar .btn-apply i {
      color: #90caf9;
      font-size: 0.95rem;
      transition: all 0.25s ease;
    }
    #mainNavbar .btn-apply:hover {
      background: linear-gradient(135deg, #0d3577 0%, #1565c0 50%, #1e88e5 100%);
      color: #ffffff !important;
      transform: translateY(-2px);
      box-shadow: 0 8px 22px rgba(13, 71, 161, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    #mainNavbar .btn-apply:hover i {
      color: #ffffff;
      transform: scale(1.12);
    }
    #mainNavbar .btn-apply:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(13, 71, 161, 0.3);
    }
    #mainNavbar .btn-apply::after { display: none !important; }

    #mainNavbar .dropdown-menu {
      border: 1px solid rgba(13, 71, 161, 0.12);
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(13, 71, 161, 0.12);
      padding: 0.5rem;
      background: #ffffff;
      min-width: 180px;
      z-index: 1050;
    }
    #mainNavbar .dropdown-item {
      font-size: 0.84rem;
      font-weight: 500;
      color: var(--bc-text);
      padding: 0.45rem 0.75rem;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.2s;
    }
    #mainNavbar .dropdown-item:hover {
      background: var(--bc-light);
      color: var(--bc-primary);
    }

    /* ── DESKTOP RESPONSIVENESS & BOUNDARIES ───────── */
    @media (min-width: 992px) {
      #desktopNavList {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
        gap: clamp(0.12rem, 0.38vw, 0.42rem);
        margin-bottom: 0;
        width: 100%;
      }
      #mainNavbar .nav-auth-action {
        flex-shrink: 0;
      }
    }

    /* Desktop (>= 992px):
       How It Works, Gallery, and Reviews are moved into the "More" dropdown trigger.
       They are removed from the open items on desktop. */
    @media (min-width: 992px) {
      .nav-overflow-candidate {
      }
      #navItemMore {
      }
      #mainNavbar .nav-link {
        font-size: clamp(0.76rem, 0.86vw, 0.88rem);
        gap: 0.22rem;
      }
      #mainNavbar .nav-link i {
        font-size: 0.86rem;
      }
      #mainNavbar .btn-login,
      #mainNavbar .btn-apply {
        font-size: clamp(0.74rem, 0.82vw, 0.82rem);
      }
    }
    /* Mobile & Tablet (< 992px):
       Off-canvas / collapsible vertical drawer.
       All items display cleanly in vertical list, "More" dropdown is hidden. */
    @media (max-width: 991.98px) {
      #mainNavbar .header-container {
        flex-wrap: wrap;
      }
      #navItemMore {
        display: none !important;
      }
      .nav-overflow-candidate {
        display: block !important;
      }
      #desktopNavList {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        margin-top: 0.5rem;
        width: 100%;
      }
      #mainNavbar .navbar-collapse {
        background: #ffffff;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 8px 30px rgba(7, 29, 68, 0.12);
        border: 1px solid rgba(13, 71, 161, 0.08);
        margin-top: 0.5rem;
      }
      #mainNavbar .nav-link {
        width: 100%;
        font-size: 0.88rem;
        display: flex;
        border-radius: 8px;
      }
      #mainNavbar .nav-auth-action {
        width: 100%;
      }
      #mainNavbar .btn-login,
      #mainNavbar .btn-apply {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: 0.86rem;
        margin-top: 0.25rem;
        display: flex;
      }
    }

    /* ── FLOATING WHATSAPP ─────────────────────────── */
    .wa-float {
      position: fixed;
      bottom: 28px;
      left: 24px;
      z-index: 9999;
      animation: waPulse 2.5s infinite;
    }
    .wa-float a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 58px; height: 58px;
      border-radius: 50%;
      background: #25D366;
      color: #fff;
      font-size: 1.7rem;
      box-shadow: 0 6px 22px rgba(37,211,102,.45);
      text-decoration: none;
      transition: transform var(--transition);
    }
    .wa-float a:hover { transform: scale(1.12); color: #fff; }
    @keyframes waPulse {
      0%,100% { filter: drop-shadow(0 0 0 rgba(37,211,102,0)); }
      50%      { filter: drop-shadow(0 0 10px rgba(37,211,102,.55)); }
    }

    /* ── SCROLL TO TOP ─────────────────────────────── */
    #scrollTop {
      position: fixed;
      bottom: 26px;
      right: 24px;
      z-index: 9998;
      width: 44px;
      height: 44px;
      border-radius: 12px;
      background: var(--bc-primary);
      color: #fff;
      border: none;
      font-size: 1.15rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 14px rgba(13, 71, 161, 0.35);
      cursor: pointer;
      opacity: 0;
      transform: translateY(12px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      pointer-events: none;
    }
    #scrollTop.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
    #scrollTop:hover { background: var(--bc-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 22px rgba(13, 71, 161, 0.48); }

    /* ── COMPONENTS ───────────────────────────────── */
    .btn-primary {
      background: linear-gradient(135deg, var(--bc-primary), var(--bc-mid)) !important;
      border: none !important;
      border-radius: 50px !important;
      font-weight: 600;
      letter-spacing: .3px;
      padding: .65rem 1.8rem;
      box-shadow: 0 4px 14px rgba(13,71,161,.3);
      transition: all var(--transition) !important;
    }
    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 24px rgba(13,71,161,.4) !important;
      filter: brightness(1.06);
    }
    .btn-outline-primary {
      border: 2px solid var(--bc-primary) !important;
      color: var(--bc-primary) !important;
      border-radius: 50px !important;
      font-weight: 600;
      padding: .6rem 1.8rem;
      transition: all var(--transition) !important;
    }
    .btn-outline-primary:hover {
      background: var(--bc-primary) !important;
      color: #fff !important;
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(13,71,161,.3) !important;
    }
    .btn-light {
      border-radius: 50px !important;
      font-weight: 600;
      padding: .65rem 1.8rem;
      transition: all var(--transition) !important;
    }
    .btn-light:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.18) !important; }
    .btn-outline-light {
      border-radius: 50px !important;
      font-weight: 600;
      padding: .6rem 1.8rem;
      transition: all var(--transition) !important;
    }
    .btn-outline-light:hover { transform: translateY(-2px); }

    .card {
      border-radius: var(--radius-lg) !important;
      border: none !important;
      box-shadow: var(--shadow-sm);
      transition: transform var(--transition), box-shadow var(--transition);
    }
    .card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-md);
    }

    .badge-ncr {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      background: linear-gradient(135deg, #0a2b62, #1565c0);
      color: #fff;
      border-radius: 50px;
      padding: .3rem .9rem;
      font-size: .72rem;
      font-weight: 600;
      letter-spacing: .4px;
      box-shadow: 0 3px 10px rgba(13,71,161,.3);
      text-decoration: none;
    }
    .badge-ncr:hover { background: linear-gradient(135deg, #0d3577, #1976d2); color: #fff; }
    .badge-ncr i { font-size: 1rem; color: #90caf9; }

    .section-tag {
      display: inline-block;
      background: var(--bc-light);
      color: var(--bc-accent);
      font-size: .75rem;
      font-weight: 700;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      padding: .3rem .9rem;
      border-radius: 50px;
      margin-bottom: .75rem;
    }

    .hero-gradient { background: linear-gradient(135deg, var(--bc-dark) 0%, var(--bc-accent) 60%, #1e88e5 100%); }

    /* ── FOOTER ───────────────────────────────────── */
    .site-footer {
      background: linear-gradient(160deg, #071d44 0%, #0d3577 55%, #0f4090 100%);
      color: #c8dcff;
      position: relative;
      overflow: hidden;
    }
    .site-footer::before {
      content: '';
      position: absolute;
      top: -80px; right: -80px;
      width: 320px; height: 320px;
      border-radius: 50%;
      background: rgba(255,255,255,.025);
      pointer-events: none;
    }
    .site-footer::after {
      content: '';
      position: absolute;
      bottom: -60px; left: -60px;
      width: 240px; height: 240px;
      border-radius: 50%;
      background: rgba(255,255,255,.025);
      pointer-events: none;
    }
    .footer-link { color: #93b8f5; text-decoration: none; transition: all var(--transition); }
    .footer-link:hover { color: #fff; padding-left: 4px; }
    .site-footer a,
    .site-footer span,
    .site-footer p,
    .footer-contact-item,
    .footer-link {
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .site-footer .row > [class*="col-"] {
      min-width: 0;
    }
    .footer-dev-credit {
      max-width: 100%;
      min-width: 0;
      flex-wrap: wrap;
    }
    .footer-heading { color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem; letter-spacing: .5px; margin-bottom: 1rem; }
    .footer-divider { border-color: rgba(255,255,255,.1) !important; }
    .footer-brand { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff; }
    .footer-contact-item {
      display: flex;
      align-items: center;
      gap: .6rem;
      color: #93b8f5;
      margin-bottom: .55rem;
      font-size: .84rem;
    }
    .footer-contact-item i { color: #64b5f6; font-size: 1rem; width: 18px; flex-shrink: 0; }
    .footer-contact-item a { color: #93b8f5; text-decoration: none; }
    .footer-contact-item a:hover { color: #fff; }
    .ncr-footer-badge {
      display: flex;
      align-items: center;
      gap: .65rem;
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 14px;
      padding: .75rem 1rem;
      margin-top: .75rem;
    }

    /* ── ALERTS ───────────────────────────────────── */
    .alert { border-radius: 12px; border: none; }

    /* ── MISC ─────────────────────────────────────── */
    .text-gradient {
      background: linear-gradient(135deg, var(--bc-primary), var(--bc-mid));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    @keyframes fadeSlideUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes shimmer {
      0%   { background-position: -200% center; }
      100% { background-position: 200% center; }
    }
    @keyframes lightBeam {
      0%   { background-position: -300% center; }
      100% { background-position: 300% center; }
    }
    .footer-divider-beam {
      height: 3px;
      background: linear-gradient(
        105deg,
        #071d44 0%,
        #0d3577 15%,
        #1565c0 30%,
        #42a5f5 44%,
        #e3f2fd 50%,
        #42a5f5 56%,
        #1565c0 70%,
        #0d3577 85%,
        #071d44 100%
      );
      background-size: 300% 100%;
      animation: lightBeam 6s linear infinite;
    }

    /* ── LIVE CHAT WIDGET ──────────────────────────── */
    .bc-chat-btn {
      position: fixed;
      bottom: 26px;
      right: 24px;
      z-index: 9999;
      display: none;
      transition: right .25s ease;
    }
    .bc-chat-btn.bc-shifted { right: 80px; }
    @keyframes bcBtnGlow {
      0%,100% { box-shadow: 0 6px 22px rgba(13,53,119,.45); }
      50%      { box-shadow: 0 6px 30px rgba(13,53,119,.75), 0 0 18px rgba(21,101,192,.5); }
    }
    .bc-chat-btn button {
      height: 44px;
      display: flex;
      align-items: center;
      gap: .5rem;
      padding: 0 1.15rem;
      background: linear-gradient(135deg, #071d44, #0d3577);
      color: #fff;
      border: none;
      border-radius: 50px;
      font-size: .83rem;
      font-weight: 600;
      cursor: pointer;
      transition: transform .2s, box-shadow .2s;
      letter-spacing: .2px;
      box-shadow: 0 4px 14px rgba(7, 29, 68, 0.35);
      animation: bcBtnGlow 2.5s ease-in-out infinite;
    }
    .bc-chat-btn button:hover { transform: translateY(-2px); }
    .bc-chat-btn .bc-pulse-dot {
      width: 9px; height: 9px;
      background: #4caf50;
      border-radius: 50%;
      animation: bcPulse 1.8s infinite;
      flex-shrink: 0;
    }
    #bcUnreadBadge {
      display: none;
      position: absolute;
      top: -7px; right: -7px;
      min-width: 20px; height: 20px;
      padding: 0 4px;
      background: #e53935;
      color: #fff;
      border-radius: 50px;
      font-size: .68rem;
      font-weight: 700;
      align-items: center;
      justify-content: center;
      line-height: 1;
      border: 2px solid #fff;
      box-shadow: 0 1px 4px rgba(0,0,0,.25);
    }
    @keyframes bcPulse {
      0%,100% { box-shadow: 0 0 0 0 rgba(76,175,80,.5); }
      50%      { box-shadow: 0 0 0 6px rgba(76,175,80,0); }
    }
    .bc-chat-window {
      position: fixed;
      bottom: 82px;
      right: 24px;
      width: 340px;
      max-height: 500px;
      background: #fff;
      border: 1px solid #e3eaf5;
      border-radius: 18px;
      box-shadow: 0 12px 40px rgba(13,53,119,.18);
      z-index: 9998;
      display: none;
      flex-direction: column;
      overflow: hidden;
      transition: right .25s ease;
    }
    .bc-chat-window.open { display: flex; }
    .bc-chat-window.bc-shifted { right: 80px; }
    .bc-chat-header {
      background: linear-gradient(135deg, #071d44, #0d3577);
      color: #fff;
      padding: .85rem 1rem;
      display: flex;
      align-items: center;
      gap: .6rem;
      justify-content: space-between;
    }
    .bc-chat-header .bc-h-title { font-weight: 700; font-size: .9rem; }
    .bc-chat-header .bc-h-sub { font-size: .72rem; color: #90caf9; margin-top: .1rem; }
    .bc-chat-header button { background: none; border: none; color: rgba(255,255,255,.7); font-size: 1.1rem; cursor: pointer; padding: 0; line-height: 1; }
    .bc-chat-header button:hover { color: #fff; }
    .bc-chat-start {
      padding: 1.25rem;
      display: flex;
      flex-direction: column;
      gap: .75rem;
      overflow-y: auto;
      max-height: calc(500px - 60px);
      scrollbar-width: thin;
      scrollbar-color: #1565c0 transparent;
    }
    .bc-chat-start::-webkit-scrollbar { width: 4px; }
    .bc-chat-start::-webkit-scrollbar-track { background: transparent; }
    .bc-chat-start::-webkit-scrollbar-thumb { background: #1565c0; border-radius: 4px; }
    .bc-chat-start p { font-size: .83rem; color: #555; margin: 0; line-height: 1.6; }
    .bc-chat-start textarea {
      width: 100%;
      border: 1px solid #e3eaf5;
      border-radius: 10px;
      padding: .6rem .75rem;
      font-size: .83rem;
      resize: none;
      outline: none;
      transition: border-color .2s;
      font-family: inherit;
      min-height: 90px;
    }
    .bc-chat-start textarea:focus { border-color: #0d3577; }
    .bc-chat-start button {
      background: linear-gradient(135deg, #0d3577, #1565c0);
      color: #fff;
      border: none;
      border-radius: 50px;
      padding: .55rem 1.2rem;
      font-size: .83rem;
      font-weight: 600;
      cursor: pointer;
      align-self: flex-end;
      transition: opacity .2s;
    }
    .bc-chat-start button:disabled { opacity: .6; cursor: not-allowed; }
    .bc-chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: .75rem .9rem;
      display: flex;
      flex-direction: column;
      gap: .5rem;
      min-height: 180px;
      max-height: 280px;
      background: #f8faff;
      scrollbar-width: thin;
      scrollbar-color: #1565c0 transparent;
    }
    .bc-chat-messages::-webkit-scrollbar { width: 4px; }
    .bc-chat-messages::-webkit-scrollbar-track { background: transparent; }
    .bc-chat-messages::-webkit-scrollbar-thumb { background: #1565c0; border-radius: 4px; }
    .bc-msg {
      max-width: 82%;
      padding: .5rem .75rem;
      border-radius: 12px;
      font-size: .82rem;
      line-height: 1.5;
      word-break: break-word;
    }
    .bc-msg.incoming {
      background: #fff;
      border: 1px solid #e3eaf5;
      align-self: flex-start;
      border-bottom-left-radius: 4px;
    }
    .bc-msg.outgoing {
      background: linear-gradient(135deg, #0d3577, #1565c0);
      color: #fff;
      align-self: flex-end;
      border-bottom-right-radius: 4px;
    }
    .bc-msg .bc-msg-meta { font-size: .68rem; margin-top: .25rem; opacity: .65; }
    .bc-msg.incoming .bc-msg-meta { color: #555; }
    .bc-msg.outgoing .bc-msg-meta { color: rgba(255,255,255,.8); }
    .bc-chat-input-row {
      display: flex;
      gap: .5rem;
      padding: .6rem .75rem;
      border-top: 1px solid #e3eaf5;
      background: #fff;
      align-items: flex-end;
    }
    .bc-chat-input-row textarea {
      flex: 1;
      border: 1px solid #e3eaf5;
      border-radius: 10px;
      padding: .5rem .65rem;
      font-size: .8rem;
      resize: none;
      outline: none;
      max-height: 80px;
      font-family: inherit;
      transition: border-color .2s;
    }
    .bc-chat-input-row textarea:focus { border-color: #0d3577; }
    .bc-chat-input-row button {
      background: #0d3577;
      color: #fff;
      border: none;
      border-radius: 10px;
      width: 36px; height: 36px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      font-size: .9rem;
      transition: background .2s;
    }
    .bc-chat-input-row button:disabled { background: #b0bec5; cursor: not-allowed; }
    .bc-chat-input-row button:hover:not(:disabled) { background: #1565c0; }
    .bc-chat-closed-notice {
      text-align: center;
      padding: .75rem;
      font-size: .78rem;
      color: #c62828;
      background: #fce4ec;
      border-top: 1px solid #f48fb1;
    }
    .bc-chat-taken-badge {
      background: #e8f5e9;
      border-top: 1px solid #a5d6a7;
      padding: .4rem .75rem;
      font-size: .75rem;
      color: #2e7d32;
      display: flex;
      align-items: center;
      gap: .4rem;
    }
    @media (max-width: 480px) {
      .bc-chat-window { width: calc(100vw - 32px); right: 16px; bottom: 82px; }
    }

    @media (max-width: 576px) {
      .site-footer {
        overflow-x: hidden;
      }
      .site-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
      }
      .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start !important;
      }
      .footer-dev-credit {
        width: 100%;
      }
      .ncr-footer-badge {
        align-items: flex-start;
      }
    }

    /* ── TOPIC SELECTION ──────────────────────────── */
    .bc-topic-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: .4rem;
    }
    .bc-topic-btn {
      padding: .45rem .5rem;
      border: 1.5px solid #e3eaf5;
      border-radius: 8px;
      font-size: .75rem;
      font-weight: 500;
      background: #fff;
      color: #334155;
      cursor: pointer;
      text-align: center;
      transition: border-color .15s, background .15s, color .15s;
      line-height: 1.3;
    }
    .bc-topic-btn:hover { border-color: #0d3577; color: #0d3577; background: #f0f4ff; }
    .bc-topic-btn.bc-topic-selected { border-color: #0d3577; background: #0d3577; color: #fff; }

    /* ── MOBILE APP CAMPAIGN ───────────────────────── */
    .bc-app-promo {
      position: fixed; right: 24px; bottom: 112px; z-index: 10010; width: min(390px, calc(100vw - 32px));
      background: #fff; border: 1px solid #d7e5f5; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.25rem;
      display: none; animation: bcPromoIn .35s ease-out;
    }
    .bc-app-promo.is-visible { display: block; }
    .bc-app-promo h2 { color: var(--bc-dark); font-size: 1.15rem; margin: 0; }
    .bc-app-promo p { color: var(--bc-muted); font-size: .84rem; line-height: 1.5; margin: .5rem 2rem .9rem 0; }
    .bc-app-promo-close { position: absolute; top: .7rem; right: .75rem; border: 0; background: transparent; color: #718096; font-size: 1.25rem; }
    .bc-app-promo-links { display: flex; gap: .5rem; flex-wrap: wrap; }
    .bc-app-promo-links a { display: inline-flex; align-items: center; gap: .35rem; border-radius: 8px; padding: .5rem .65rem; font-size: .76rem; font-weight: 700; text-decoration: none; }
    .bc-app-promo-links .store-link { background: var(--bc-primary); color: #fff; }
    .bc-app-promo-links .all-link { color: var(--bc-primary); border: 1px solid #b7cff4; }
    @keyframes bcPromoIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
    @media (max-width: 576px) { .bc-app-promo { right: 16px; bottom: 112px; } }
