/* ============================================================
   Emenike Bank — shared stylesheet
   Edit these CSS variables to rebrand the whole site at once.
   ============================================================ */

:root {
  --brand-primary:      #0a2540;
  --brand-primary-dark: #061a30;
  --brand-accent:       #1e90a8;
  --brand-accent-dark:  #0f6c80;
  --brand-gold:         #d4a017;
  --brand-warm:         #ffb703;
  --brand-bg:           #eef1f7;
  --brand-text:         #1f2d3d;
  --brand-muted:        #5a6b7b;
  --brand-success:      #2e8540;
  --brand-danger:       #c0392b;
}

* { box-sizing: border-box; }

/* ============================================================
   GLOBAL PAGE BACKGROUND — visible behind every section.
   Layered: deep navy gradient + soft radial highlights + faint
   currency-pattern SVG, so scrolling never reveals plain white.
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  color: var(--brand-text);
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    /* Soft brand-tinted glows */
    radial-gradient(circle at 15% 5%,  rgba(30,144,168,0.10), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(212,160,23,0.08), transparent 45%),
    radial-gradient(circle at 50% 95%, rgba(10,37,64,0.06),  transparent 50%),
    /* Light cream base — the Welton logo watermark sits on this via .body-watermark below */
    linear-gradient(160deg, #f6f8fc 0%, #eaf0f6 50%, #f4f6fb 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  position: relative;
}
/* ONE BIG Welton logo behind everything — covers the entire viewport, fixed
   while you scroll, visible THROUGH the semi-transparent cards stacked on top.
   z-index is NEGATIVE so it sits beneath body's real children without needing
   any z-index rule on those children (which previously trapped modals inside
   a parent stacking context and broke them). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../img/logo.svg') center / 60vmin no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}
main { flex: 1; }

/* ============================================================
   UTILITY BAR (very top thin strip)
   ============================================================ */
.utility-bar {
  background: rgba(6,26,48,0.92);
  color: #cfd8e3;
  font-size: 0.82rem;
  backdrop-filter: blur(6px);
}
.utility-bar a { color: #cfd8e3; text-decoration: none; }
.utility-bar a:hover { color: var(--brand-warm); }

/* ============================================================
   NAVBAR with dropdowns
   ============================================================ */
.navbar-emenike {
  /* Subtle brand-tinted gradient — feels grounded on the home page hero. */
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  box-shadow: 0 4px 18px rgba(10,37,64,0.10);
  border-bottom: 3px solid var(--brand-accent);
  border-top: 1px solid rgba(255,255,255,0.6);
  position: relative;
  z-index: 1040; /* above the news ticker so dropdowns overlap correctly */
}
.navbar-emenike .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--brand-primary);
  font-size: 1.4rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.navbar-emenike .brand-mark {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  border-radius: 12px;
  font-size: 1.7rem;
  box-shadow: 0 4px 10px rgba(10,37,64,0.20);
}
.navbar-emenike .brand-text {
  line-height: 1.1;
}
.navbar-emenike .brand-text strong {
  font-size: 1.45rem;
  letter-spacing: -0.3px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar-emenike .brand-text .brand-word { color: var(--brand-primary); }
.navbar-emenike .brand-text small {
  color: var(--brand-muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.navbar-emenike .nav-link {
  color: var(--brand-primary) !important;
  font-weight: 500;
  padding: 0.55rem 0.95rem !important;
}
.navbar-emenike .nav-link:hover,
.navbar-emenike .nav-link.active { color: var(--brand-accent) !important; }

.navbar-emenike .dropdown-menu {
  border: none;
  border-top: 3px solid var(--brand-accent);
  border-radius: 0 0 8px 8px;
  padding: 0.5rem 0;
  min-width: 240px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  z-index: 1045; /* above ticker, below modals/chat */
}
.navbar-emenike .dropdown-item {
  padding: 0.55rem 1.1rem;
  color: var(--brand-text);
  font-size: 0.92rem;
}
.navbar-emenike .dropdown-item i { width: 22px; color: var(--brand-accent); }
.navbar-emenike .dropdown-item:hover {
  background: var(--brand-bg);
  color: var(--brand-primary);
}
.navbar-emenike .dropdown-item.active {
  background: var(--brand-accent);
  color: #fff;
}
.navbar-emenike .dropdown-item.active i { color: #fff; }

/* ============================================================
   NEWS TICKER (right-to-left marquee)
   ============================================================ */
.news-ticker {
  background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent-dark) 100%);
  color: #fff;
  padding: 0.55rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1; /* keep below navbar dropdowns */
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.news-ticker::before {
  content: 'BREAKING';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--brand-warm);
  color: var(--brand-primary-dark);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 0.78rem;
  z-index: 2;
}
.news-track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  padding-left: 8rem;
  animation: ticker 60s linear infinite;
}
.news-track:hover { animation-play-state: paused; }
.news-track span i {
  color: var(--brand-warm);
  margin-right: 0.5rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   HERO with VIDEO BACKGROUND
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  padding: 5.5rem 1rem 6rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-video, .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Hero image carousel (replaces video). Slides cross-fade every 5s. */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slideshow .hero-slide.active { opacity: 1; }

/* Tiny indicator dots */
.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  z-index: 2;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dots button.active {
  background: var(--brand-warm);
  transform: scale(1.3);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(6,26,48,0.78) 0%, rgba(10,37,64,0.60) 50%, rgba(15,108,128,0.55) 100%),
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60 L60 0 L120 60 L60 120 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
  z-index: -1;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.hero p {
  font-size: 1.18rem;
  opacity: 0.95;
  max-width: 640px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.30);
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

/* Page banner for inner pages — also gets a photo if provided */
.page-banner {
  position: relative;
  color: #fff;
  padding: 4rem 1rem 4.5rem;
  overflow: hidden;
  isolation: isolate;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(6,26,48,0.85), rgba(15,108,128,0.75)),
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30 L30 0 L60 30 L30 60 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='1'/%3E%3C/svg%3E");
  z-index: -1;
}
.page-banner.with-photo::before {
  background:
    linear-gradient(135deg, rgba(6,26,48,0.78), rgba(15,108,128,0.62)),
    var(--banner-photo) center/cover no-repeat;
}
.page-banner h1 {
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.30);
}

/* ============================================================
   SECTION BACKGROUNDS (no more raw white)
   ============================================================ */
.section { padding: 4rem 0; position: relative; }

/* When <main> is itself a container-section (inner pages), give it a
   readable card-like background with the Weltonoffshorefargo logo as a
   subtle watermark in the top-right corner — so it doesn't read as pure
   white but still keeps text crisp. */
main.section.container {
  /* Semi-transparent so the big body logo shows through everywhere. */
  background: rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 14px 36px rgba(10,37,64,0.10);
  position: relative;
}
@media (max-width: 767px) {
  main.section.container { padding: 1.5rem; border-radius: 14px; }
  main.section.container::before { width: 160px; height: 160px; }
}

/* Brand-mark variant that holds an <img> instead of an icon-font glyph. */
.navbar-emenike .brand-mark.brand-mark-img {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.navbar-emenike .brand-mark.brand-mark-img img {
  width: 100%; height: 100%;
  display: block;
  border-radius: 12px;
}

.section-tinted {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.5);
}
.section-pattern {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(238,241,247,0.95)),
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20 L20 0 M20 40 L40 20' stroke='%23dbe2ee' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}
.section-dark {
  background: linear-gradient(135deg, rgba(6,26,48,0.92), rgba(15,108,128,0.85));
  color: #fff;
}
.section-money {
  position: relative;
  color: #fff;
  isolation: isolate;
}
.section-money::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(6,26,48,0.85), rgba(15,108,128,0.78)),
    url('https://images.unsplash.com/photo-1565514020179-026b92b84bb6?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
  z-index: -1;
}
.section-family {
  position: relative;
  color: var(--brand-text);
  isolation: isolate;
}
.section-family::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(238,241,247,0.92)),
    url('https://images.unsplash.com/photo-1609220136736-443140cffec6?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
  z-index: -1;
}

.section-title {
  color: var(--brand-primary);
  margin-bottom: 2.5rem;
  font-weight: 800;
  text-align: center;
}
.section-title.text-white { color: #fff; }
.section-title::after {
  content: '';
  display: block;
  width: 70px; height: 3px;
  background: var(--brand-accent);
  margin: 0.75rem auto 0;
}
.section-title.text-white::after { background: var(--brand-warm); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-brand {
  background: var(--brand-primary);
  color: #fff !important;
  border: none;
  font-weight: 500;
}
.btn-brand:hover { background: var(--brand-primary-dark); }
.btn-accent { background: var(--brand-accent); color: #fff !important; border: none; }
.btn-accent:hover { background: var(--brand-accent-dark); }
.btn-warm {
  background: var(--brand-warm);
  color: #1f2d3d !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255,183,3,0.35);
}
.btn-warm:hover { background: #e69500; transform: translateY(-1px); }
.btn-gold { background: var(--brand-gold); color: #1f2d3d !important; border: none; }

/* ============================================================
   CARDS
   ============================================================ */
.feature-card {
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(10,37,64,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}

/* Cards are semi-transparent white — the big body-mounted Welton logo
   shows through every panel uniformly, so the brand is visible across
   the dashboard (account numbers, recent transactions, admin cards). */
.card.shadow-sm,
.feature-card,
.admin-card {
  background: rgba(255, 255, 255, 0.78);
  position: relative;
}
/* Card headers slightly more opaque so titles stay crisp */
.card.shadow-sm > .card-header,
.admin-card > .card-header {
  background-color: rgba(255, 255, 255, 0.88);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(10,37,64,0.16);
}
.feature-card .icon {
  width: 60px; height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  border-radius: 14px;
  font-size: 1.55rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(10,37,64,0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover .icon { transform: scale(1.05); }

/* ============================================================
   Per-action icon colours for Banking Transactions tiles
   (so each transaction has its own visual identity, like the
    Fund with Crypto orange Bitcoin icon)
   ============================================================ */
[data-action="transfer"]   .icon { background: linear-gradient(135deg, #0d9488, #14b8a6); box-shadow: 0 6px 14px rgba(13,148,136,0.30); }
[data-action="payMember"]  .icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 6px 14px rgba(124,58,237,0.30); }
[data-action="bill"]       .icon { background: linear-gradient(135deg, #db2777, #f472b6); box-shadow: 0 6px 14px rgba(219,39,119,0.30); }
[data-action="deposit"]    .icon { background: linear-gradient(135deg, #16a34a, #4ade80); box-shadow: 0 6px 14px rgba(22,163,74,0.30); }
[data-action="wire"]       .icon { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 6px 14px rgba(37,99,235,0.30); }
[data-action="fx"]         .icon { background: linear-gradient(135deg, #d4a017, #facc15); box-shadow: 0 6px 14px rgba(212,160,23,0.30); }
[data-action="cryptoFund"] .icon { background: linear-gradient(135deg, #f7931a, #f5b95a); box-shadow: 0 6px 14px rgba(247,147,26,0.32); }
/* Apply for Loan / My Profile use the default navy→teal */
.photo-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(10,37,64,0.18);
  position: relative;
}
.photo-card img { width: 100%; height: 280px; object-fit: cover; display: block; }
.photo-card .photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(6,26,48,0.85));
  color: #fff;
  padding: 1.25rem;
}

/* ============================================================
   FX RATES & CHART WIDGET
   ============================================================ */
.fx-widget {
  background: linear-gradient(135deg, #061a30, #0f3a5a);
  color: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.fx-widget h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.fx-table {
  width: 100%;
  color: #fff;
}
.fx-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; padding: 0.5rem 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.10); }
.fx-table td { padding: 0.55rem 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.95rem; }
.fx-pair .flag { font-size: 1.1rem; margin-right: 0.35rem; }
.fx-up   { color: #4ade80; }
.fx-down { color: #f87171; }
.chart-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(10,37,64,0.10);
  height: 100%;
}
.chart-card canvas { max-height: 280px; }

/* ============================================================
   LOGIN / SIGNUP CARDS
   ============================================================ */
.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.login-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.30);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
}
.login-card h2 { color: var(--brand-primary); }
.login-card .form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 0.2rem rgba(30,144,168,0.15);
}
.signup-card { max-width: 700px; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.account-card {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 22px rgba(10,37,64,0.18);
  position: relative;
  overflow: hidden;
}
.account-card::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  border-radius: 50%;
}
.account-card .balance { font-size: 2rem; font-weight: 800; }
.account-card .label   { opacity: 0.9; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.2px; }
.txn-table tbody tr td { vertical-align: middle; }
.txn-credit { color: var(--brand-success); font-weight: 600; }
.txn-debit  { color: var(--brand-danger);  font-weight: 600; }

/* ============================================================
   RATES TABLE
   ============================================================ */
.rates-table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.rates-table th { background: var(--brand-primary); color: #fff; border: none; }
.rates-table tbody tr:nth-child(odd) { background: #f9fbfd; }
.rates-table tbody tr:hover { background: #eef4f7; }

/* ============================================================
   LOAN CALCULATOR
   ============================================================ */
.calc-result {
  background: linear-gradient(135deg, #f7fbfd, #eef6f9);
  border-left: 4px solid var(--brand-accent);
  padding: 1.25rem;
  border-radius: 10px;
  margin-top: 1rem;
}
.calc-result .big { font-size: 1.85rem; color: var(--brand-primary); font-weight: 700; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  height: 100%;
}
.contact-card .icon-circle {
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 14px rgba(10,37,64,0.18);
}
.address-block {
  background: #fff;
  border-left: 4px solid var(--brand-gold);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ============================================================
   ADMIN AREA
   ============================================================ */
.admin-bar {
  background: linear-gradient(135deg, #4a1414, #7a1f1f);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}
.admin-bar .badge { background: var(--brand-warm); color: #1f2d3d; }
.admin-card { background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.admin-stat {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  border-radius: 14px;
  padding: 1.25rem;
}
.admin-stat .num { font-size: 1.9rem; font-weight: 800; }
.admin-stat .lbl { opacity: 0.85; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.status-pill {
  display: inline-block;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-pending  { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-completed{ background: #d1ecf1; color: #0c5460; }

/* ============================================================
   LIVE CHAT WIDGET
   ============================================================ */
/* Floating WhatsApp bubble (bottom-left, opposite the chat fab) */
.whatsapp-fab {
  position: fixed;
  bottom: 1.25rem; left: 1.25rem;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25d366;
  color: #fff !important;
  border-radius: 50%;
  font-size: 1.8rem;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(37,211,102,0.40);
  z-index: 1040;
  transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); background:#1ebf57; }

.chat-fab {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(10,37,64,0.30);
  cursor: pointer;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform .15s ease;
}
.chat-fab:hover { transform: translateY(-2px); }

.chat-window {
  position: fixed;
  bottom: 5.5rem; right: 1.25rem;
  width: 360px; max-width: calc(100vw - 2rem);
  height: 460px; max-height: calc(100vh - 7rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.30);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
  z-index: 1050;
}
.chat-window.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.chat-header {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  padding: 0.95rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.online-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
}
.chat-body { flex: 1; padding: 1rem; overflow-y: auto; background: #f7fafc; }
.chat-msg { margin-bottom: 0.6rem; display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
  background: #fff;
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  max-width: 80%;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.chat-msg.user .chat-bubble { background: var(--brand-accent); color: #fff; }
.chat-input {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
  border-top: 1px solid #e5eaf0;
  background: #fff;
}
.chat-input input { flex: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, rgba(6,26,48,0.96), rgba(10,37,64,0.92));
  color: #cfd8e3;
  padding: 3rem 1rem 1.5rem;
  margin-top: auto;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M0 50 L50 0 L100 50 L50 100 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.site-footer > .container { position: relative; }
.site-footer a { color: #cfd8e3; text-decoration: none; }
.site-footer a:hover { color: var(--brand-warm); }
.site-footer h5, .site-footer h6 { margin-bottom: 0.85rem; color: #fff; }
.footer-social { display: flex; gap: 0.6rem; font-size: 1.4rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  transition: background .2s ease;
}
.footer-social a:hover { background: var(--brand-accent); color: #fff; }
.site-footer .small-note {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ============================================================
   MISC
   ============================================================ */
.hidden { display: none !important; }

/* ============================================================
   "Open new account" picker tiles
   ============================================================ */
.acct-tile {
  border: 2px solid #e5eaf0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
  transition: all .15s ease;
}
.acct-tile:hover:not(:disabled) {
  border-color: var(--brand-accent);
  background: rgba(30,144,168,0.06);
  transform: translateY(-2px);
}
.acct-tile:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
}
.acct-tile-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  border-radius: 10px;
  font-size: 1.25rem;
}

/* ============================================================
   "What would you like to do?" — body-mounted floating menu.
   Uses position: fixed so NO parent (card overflow, transform,
   stacking context, etc.) can ever clip it.
   ============================================================ */
.actions-popover {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(10,37,64,0.35);
  padding: 0.5rem 0;
  z-index: 99999;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.actions-popover.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.actions-popover .actions-section { padding: 0.4rem 0; }
.actions-popover .actions-section + .actions-section { border-top: 1px solid #eef2f7; }
.actions-popover .actions-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-muted);
  padding: 0.4rem 1.1rem 0.3rem;
}
.actions-popover .actions-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.93rem;
  color: var(--brand-text);
  text-decoration: none;
  transition: background .12s ease;
}
.actions-popover .actions-item:hover { background: var(--brand-bg); color: var(--brand-primary); }
.actions-popover .actions-item i { width: 20px; color: var(--brand-accent); }

/* ============================================================
   Dashboard "What would you like to do?" dropup menu (legacy)
   ============================================================ */
.actions-dropdown {
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: none;
  box-shadow: 0 14px 36px rgba(0,0,0,0.30);
  /* Float above any subsequent cards (account-numbers, recent-transactions, …)
     so clicking the menu never gets clipped underneath them. */
  z-index: 1055 !important;
}
/* The wrapping .dropdown also needs a stacking context above siblings while
   open, otherwise the absolute-positioned menu still paints underneath. */
.overall-balance-card .dropdown.show,
.overall-balance-card .dropup.show {
  position: relative;
  z-index: 1055;
}
.actions-dropdown .dropdown-header {
  color: var(--brand-muted);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.actions-dropdown .dropdown-item {
  color: var(--brand-text);
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}
.actions-dropdown .dropdown-item i { width: 22px; color: var(--brand-accent); }
.actions-dropdown .dropdown-item:hover { background: var(--brand-bg); color: var(--brand-primary); }

/* ============================================================
   Profile-hero account-number pills
   ============================================================ */
.profile-acct-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s;
}
.profile-acct-pill:hover { background: rgba(255,255,255,0.22); }
.profile-acct-pill i { color: var(--brand-warm); }
.profile-acct-pill code {
  background: rgba(0,0,0,0.20);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.82rem;
}

/* ============================================================
   KYC document slots
   ============================================================ */
.kyc-slot {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 2px dashed #bcc7d5;
  border-radius: 12px;
  background: #f7fafc;
  color: var(--brand-muted);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.5rem; text-align: center;
  cursor: pointer; transition: all .15s ease;
  font-size: 0.82rem; overflow: hidden;
}
.kyc-slot:hover { border-color: var(--brand-accent); background:#eef7fa; color:var(--brand-accent); }
.kyc-slot i { font-size: 1.7rem; }
.kyc-slot.filled { border-style:solid; border-color:var(--brand-success); background:#000; padding:0; }
.kyc-slot img { width:100%; height:100%; object-fit:cover; }
/* Locked state — once KYC is submitted or verified, the document is no
   longer browseable on the member side. The slot becomes a status badge. */
.kyc-slot.kyc-slot-locked {
  cursor: default;
  border-style: solid;
  border-color: #d0d7de;
  background: #f6f9fc;
  padding: .85rem .5rem;
  text-align: center;
}
.kyc-slot.kyc-slot-locked:hover { background: #f6f9fc; transform: none; }
.kyc-slot.kyc-slot-locked span { color: var(--brand-muted); font-size: .9rem; line-height: 1.25; }

/* ============================================================
   Recent transactions row hover (now clickable)
   ============================================================ */
.txn-table .txn-row { transition: background .15s; }
.txn-table .txn-row:hover { background: #eef7fa !important; }

/* ============================================================
   ACCOUNT-NUMBER LOOKUP PILL (Pay Member / Wire Transfer modals)
   ============================================================ */
.lookup-pill {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.35;
}
.lookup-pill i { font-size: 1.05rem; flex: 0 0 auto; }
.lookup-pill-success { background:#e6f7ec; color:#155724; border:1px solid #b6e0c4; }
.lookup-pill-success i { color:#198754; }
.lookup-pill-info    { background:#e7f1ff; color:#0c4a8a; border:1px solid #b8d4f5; }
.lookup-pill-info i  { color:#0d6efd; }
.lookup-pill-warn    { background:#fff8e1; color:#7c5d00; border:1px solid #ffe199; }
.lookup-pill-warn i  { color:#bf8a00; }
.lookup-pill-error   { background:#fdecec; color:#721c24; border:1px solid #f5c2c7; }
.lookup-pill-error i { color:#c0392b; }

/* ============================================================
   CHECK PHOTO CAPTURE (mobile deposit modal)
   ============================================================ */
.check-photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 2px dashed #bcc7d5;
  border-radius: 12px;
  background: #f7fafc;
  color: var(--brand-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all .15s ease;
  overflow: hidden;
  text-align: center;
  font-size: 0.85rem;
}
.check-photo-slot:hover,
.check-photo-slot:focus {
  border-color: var(--brand-accent);
  background: #eef7fa;
  color: var(--brand-accent);
  outline: none;
}
.check-photo-slot i { font-size: 1.7rem; }
.check-photo-slot.filled {
  border-style: solid;
  border-color: var(--brand-success);
  background: #000;
  cursor: zoom-in;
  padding: 0;
}
.check-photo-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* SPA: admin-login uses a dark red/navy backdrop instead of the regular site bg */
body.body-admin-login {
  background:
    radial-gradient(circle at 20% 30%, rgba(192,57,43,0.30), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(10,37,64,0.40), transparent 55%),
    linear-gradient(135deg, #2d0b0b 0%, #061a30 70%) !important;
  background-attachment: fixed !important;
}

/* ============================================================
   NAV AVATAR (small circle in the right side of the nav)
   ============================================================ */
.nav-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  text-decoration: none !important;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar:hover { transform: scale(1.05); transition: transform .15s ease; }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-hero {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10,37,64,0.18);
}
.profile-hero::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  border-radius: 50%;
}
.profile-photo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}
.profile-photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-gold));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 3rem;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-actions { display: flex; gap: 0.5rem; }
.profile-photo-actions .btn { font-size: 0.78rem; padding: 0.25rem 0.65rem; }

.profile-info-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.75rem 1.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eef2f7;
  align-items: center;
}
.profile-info-row:last-child { border-bottom: none; }
.profile-info-row .label {
  color: var(--brand-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.profile-info-row .value { font-weight: 500; }
@media (max-width: 575px) {
  .profile-info-row { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.55rem 0; }
}

/* ============================================================
   CURRENCY SWITCHER & OVERALL BALANCE
   ============================================================ */
.currency-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.15rem;
  backdrop-filter: blur(6px);
}
.currency-switcher button {
  background: transparent;
  border: none;
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.currency-switcher button:hover { background: rgba(255,255,255,0.10); }
.currency-switcher button.active {
  background: var(--brand-warm);
  color: var(--brand-primary-dark);
}

.overall-balance-card {
  background: linear-gradient(135deg, #061a30, #1e90a8 90%, var(--brand-gold));
  color: #fff;
  border-radius: 18px;
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 30px rgba(10,37,64,0.25);
  position: relative;
  /* overflow stays visible so the Quick Actions dropup menu can escape upward. */
}
.overall-balance-card::before {
  /* Decorative glow — keep inside the card so we don't need overflow:hidden. */
  content: '';
  position: absolute; right: 0; top: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 70%);
  border-radius: 0 18px 0 0;
  pointer-events: none;
}
.overall-balance-card .label {
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}
.overall-balance-card .total {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.overall-balance-card .breakdown {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ============================================================
   EMAIL-NOTIFICATION TOAST  (slides in from bottom-left)
   ============================================================ */

/* ============================================================
   EMAIL-NOTIFICATION TOAST  (slides in from bottom-right)
   ============================================================ */
.email-toast-stack {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
  max-width: 380px;
}
.email-toast {
  background: #fff;
  border-left: 4px solid var(--brand-accent);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.20);
  pointer-events: auto;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  animation: toast-in .3s ease;
}
.email-toast-approval {
  border-left-color: var(--brand-warm);
  background: linear-gradient(135deg, #fff8e8, #fff);
}
.email-toast-approval .toast-icon {
  background: linear-gradient(135deg, var(--brand-warm), #e69500);
}
.email-toast .toast-msg .btn { padding: 0.2rem 0.65rem; font-size: 0.78rem; }
.email-toast .toast-icon {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
}
.email-toast .toast-body {
  flex: 1;
  min-width: 0;
}
.email-toast .toast-title {
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 0.92rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.email-toast .toast-meta {
  color: var(--brand-muted);
  font-size: 0.72rem;
  margin-top: 0.05rem;
}
.email-toast .toast-msg {
  font-size: 0.85rem;
  color: var(--brand-text);
  margin-top: 0.25rem;
}
.email-toast .toast-close {
  background: none;
  border: none;
  color: var(--brand-muted);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Notifications panel on dashboard */
.notif-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #eef2f7;
  align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-item .notif-icon {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-bg);
  color: var(--brand-accent);
  border-radius: 50%;
}
.notif-item .notif-title { font-weight: 600; color: var(--brand-text); font-size: 0.92rem; }
.notif-item .notif-time  { color: var(--brand-muted); font-size: 0.75rem; }
.notif-item .notif-body  { font-size: 0.85rem; color: var(--brand-muted); margin-top: 0.15rem; }
.glass {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  color: #fff;
}
.money-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.money-floats span {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.18;
  animation: floaty 12s ease-in-out infinite;
}
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-22px); }
}

@media (max-width: 991px) {
  .navbar-emenike .dropdown-menu { box-shadow: none; border-top: none; }
  .chat-window { right: 0.5rem; left: 0.5rem; width: auto; }
  .navbar-emenike .brand-text strong { font-size: 1.25rem; }
  .news-track { padding-left: 6rem; }
}
