/* ==============================================
   B2B Credit & Escrow — Full Stylesheet
   Version: 3.1 | All Fixes Applied
   Buttons Shifted Right • Theme Toggle Fixed
   All Images Professional Stock • Template Preserved
============================================== */

:root {
  --primary: #0a3d62;
  --primary-light: #3c6382;
  --primary-dark: #072a44;
  --accent: #60a3bc;
  --gold: #f9ca24;
  --btn: #e67e22;
  --btn-hover: #d35400;
  --light: #f0f4f8;
  --white: #ffffff;
  --dark: #2c3e50;
  --muted: #7f8c8d;

  --dm-bg: #051929;
  --dm-surface: #0a3d62;
  --dm-text: #e8f4fc;
  --dm-muted: #95a5a6;

  --warm-bg: #f8f4ef;
  --warm-surface: #fffbf5;
  --warm-text: #4a3c2a;
  --warm-accent: #d4a76a;

  --shadow: 0 4px 16px rgba(10, 61, 98, 0.12);
  --shadow-hover: 0 8px 24px rgba(10, 61, 98, 0.18);
  --shadow-strong: 0 12px 32px rgba(10, 61, 98, 0.25);
  --radius: 10px;
  --radius-lg: 14px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==============================================
   BASE & THEME SYSTEM
============================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  transition: background 0.4s ease, color 0.4s ease;
}

.light-theme {
  --bg: var(--white);
  --surface: var(--light);
  --text: var(--dark);
  --heading: var(--primary);
  --muted-text: var(--muted);
}

.dark-theme {
  --bg: var(--dm-bg);
  --surface: var(--dm-surface);
  --text: var(--dm-text);
  --heading: #b8d8f0;
  --muted-text: var(--dm-muted);
}
.dark-theme body { background: var(--dm-bg); color: var(--dm-text); }
.dark-theme .security-banner { background: #03101a; border-bottom: 1px solid rgba(96, 163, 188, 0.2); }
.dark-theme header { background: #051929; border-bottom: 1px solid rgba(96, 163, 188, 0.15); }
.dark-theme .service-card,
.dark-theme .feature-card,
.dark-theme .rate-card,
.dark-theme .news-card,
.dark-theme .bank-card {
  background: #0a3d62;
  border: 1px solid rgba(96, 163, 188, 0.2);
}

.warm-theme {
  --bg: var(--warm-bg);
  --surface: var(--warm-surface);
  --text: var(--warm-text);
  --heading: #8b5a2b;
  --muted-text: #8a7d6b;
}
.warm-theme body { background: var(--warm-bg); color: var(--warm-text); }
.warm-theme .security-banner { background: #f0e6d8; color: #5c4a34; }
.warm-theme header { background: #fffbf5; border-bottom: 1px solid #e8d9c5; }
.warm-theme .dropdown-content { background: #f5e9d7; }
.warm-theme .dropdown-content a { color: #5c4a34; }
.warm-theme .dropdown-content a:hover { background: #e8d9c5; }
.warm-theme .feature-card,
.warm-theme .service-card,
.warm-theme .rate-card,
.warm-theme .news-card {
  background: #fffbf5;
  border: 1px solid #e8d9c5;
}

.container { width: 92%; max-width: 1240px; margin: 0 auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ==============================================
   SECURITY BANNER
============================================== */
.security-banner {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}
.security-banner .container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.security-banner span { display: flex; align-items: center; gap: 6px; }
.security-banner i { color: var(--gold); }

/* ==============================================
   HEADER — Buttons Shifted Right
============================================== */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(10, 61, 98, 0.08);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-right: auto;
}
.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 10px;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(10, 61, 98, 0.25);
}
.logo-text strong {
  background: linear-gradient(135deg, var(--btn), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dark-theme .logo { color: var(--dm-text); }
.warm-theme .logo { color: var(--warm-text); }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > a, .dropbtn {
  padding: 10px 14px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 6px;
  font-size: 0.95rem;
}
.dark-theme .main-nav > a, .dark-theme .dropbtn { color: var(--dm-text); }
.warm-theme .main-nav > a, .warm-theme .dropbtn { color: var(--warm-text); }
.main-nav > a:hover, .dropbtn:hover {
  background: var(--light);
  color: var(--primary);
}
.dark-theme .main-nav > a:hover, .dark-theme .dropbtn:hover {
  background: rgba(96, 163, 188, 0.15);
  color: var(--accent);
}
.warm-theme .main-nav > a:hover, .warm-theme .dropbtn:hover {
  background: #f0e6d8;
  color: #8b5a2b;
}
.main-nav > a.active { background: var(--primary); color: var(--white); }

/* Dropdown Menus */
.dropdown { position: relative; display: inline-block; }
.dropbtn { background: transparent; border: none; cursor: pointer; }
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 10px 0;
  z-index: 1001;
  margin-top: 4px;
}
.dropdown-content a {
  color: var(--white);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.dropdown-content a:hover { background: var(--primary-light); padding-left: 24px; }
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header Actions Row */
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Search */
.search-container { position: relative; }
.search-toggle {
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: inherit;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}
.search-toggle:hover { background: var(--light); }
.search-box {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  display: none;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 8px 12px;
  gap: 8px;
  min-width: 280px;
  z-index: 1001;
}
.search-box.show { display: flex; }
.search-box input { flex: 1; border: none; outline: none; font-size: 0.95rem; padding: 6px 8px; }
.search-close { border: none; background: transparent; cursor: pointer; color: var(--muted); }

/* Notifications */
.notifications-dropdown { position: relative; }
.notif-btn {
  position: relative;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}
.notif-btn:hover { background: var(--light); }
.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #e74c3c;
  color: white;
  font-size: 0.65rem;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  display: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 280px;
  padding: 15px;
  z-index: 1001;
}
.notif-menu.show { display: block; }
.notif-menu h4 { font-size: 0.9rem; margin-bottom: 10px; color: var(--primary); }
.notif-item {
  display: block;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.notif-item:hover { background: var(--light); }
.notif-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--btn);
  border-radius: 50%;
  margin-right: 8px;
}
.notif-time { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

/* Language Dropdown */
.lang-dropdown { position: relative; }
.lang-btn {
  padding: 10px 14px;
  border: 2px solid var(--accent);
  background: transparent;
  color: inherit;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.lang-btn:hover { background: var(--light); }
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  display: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 160px;
  padding: 8px 0;
  z-index: 1001;
}
.lang-menu.show { display: block; }
.lang-menu a { display: block; padding: 10px 18px; font-size: 0.9rem; }
.lang-menu a:hover { background: var(--light); color: var(--primary); }

/* THEME TOGGLE — FIXED: Visible & Labeled */
.theme-toggle { position: relative; }
.theme-btn {
  padding: 10px 16px;
  border: 2px solid var(--accent);
  background: transparent;
  color: inherit;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 110px;
}
.theme-btn:hover { background: var(--light); border-color: var(--primary); }
.theme-label { font-weight: 500; }
.theme-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  display: none;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 180px;
  padding: 12px;
  z-index: 1001;
}
.theme-menu.show { display: block; }
.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 4px;
}
.theme-option:hover, .theme-option.active { background: var(--light); }
.theme-swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ddd; }
.light-swatch { background: linear-gradient(135deg, #fff, #e0eef9); }
.dark-swatch { background: linear-gradient(135deg, #0a3d62, #051929); }
.warm-swatch { background: linear-gradient(135deg, #f8f4ef, #e8d9c5); }

/* AUTH BUTTONS — SHIFTED TO FAR RIGHT */
.auth-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

/* ==============================================
   BUTTONS
============================================== */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--btn), var(--btn-hover));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35); color: var(--white); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--accent);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn-outline:hover { background: var(--accent); color: var(--white); }
.link-btn { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.link-btn:hover { color: var(--btn); }

/* ==============================================
   HERO SECTION
============================================== */
.hero {
  padding: 90px 0;
  text-align: center;
  color: var(--white);
}
.hero h1 { font-size: 2.6rem; margin-bottom: 20px; }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 0 auto 35px; opacity: 0.92; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ==============================================
   STATS BAR
============================================== */
.stats-bar {
  background: var(--light);
  padding: 45px 0;
}
.dark-theme .stats-bar { background: rgba(10, 61, 98, 0.5); }
.warm-theme .stats-bar { background: #f0e6d8; }
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-item h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 700;
}
.dark-theme .stat-item h3 { color: var(--gold); }
.warm-theme .stat-item h3 { color: #8b5a2b; }
.stat-item p { color: var(--muted); font-size: 0.95rem; }

/* ==============================================
   FEATURES SECTION
============================================== */
.features {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg), var(--surface));
}
.features h2 { text-align: center; font-size: 2.1rem; color: var(--heading); margin-bottom: 10px; }
.subheading { text-align: center; color: var(--muted-text); margin-bottom: 50px; font-size: 1.05rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.feature-card {
  background: var(--surface);
  padding: 35px 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-top-color: var(--btn); }
.feature-icon { font-size: 2.5rem; margin-bottom: 15px; }
.feature-card h3 { color: var(--heading); margin-bottom: 12px; font-size: 1.15rem; }
.feature-card p { color: var(--muted-text); font-size: 0.98rem; line-height: 1.7; }

/* ==============================================
   SERVICES SECTION
============================================== */
.services { padding: 80px 0; }
.services h2 { text-align: center; font-size: 2.1rem; color: var(--heading); margin-bottom: 10px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hover-zoom:hover { transform: scale(1.08); }
.service-card h3 { color: var(--heading); margin: 22px 25px 10px; font-size: 1.25rem; }
.service-card p { color: var(--muted-text); margin: 0 25px 25px; font-size: 0.98rem; }

/* ==============================================
   PROMO BANNER
============================================== */
.promo {
  padding: 70px 0;
  text-align: center;
  color: var(--dark);
}
.promo h2 { font-size: 2rem; margin-bottom: 15px; color: #5a4a2a; }
.promo p { max-width: 700px; margin: 0 auto 25px; font-size: 1.05rem; color: #5a4a2a; }
.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.countdown-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--primary);
  min-width: 90px;
}
.countdown-item span { display: block; font-size: 1.8rem; font-weight: 700; color: var(--btn); }
.promo-benefits {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  font-weight: 500;
  color: #5a4a2a;
}
.promo .btn-outline { border-color: rgba(90, 74, 42, 0.3); color: #5a4a2a; }
.promo .btn-outline:hover { background: rgba(90, 74, 42, 0.1); border-color: #5a4a2a; }

/* ==============================================
   BANK CARDS SECTION
============================================== */
.cards-section { padding: 80px 0; }
.cards-section h2 { text-align: center; font-size: 2.1rem; color: var(--heading); margin-bottom: 10px; }
.cards-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.bank-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.bank-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.bank-card h3 { color: var(--heading); margin-bottom: 8px; }
.bank-card p { color: var(--muted-text); font-size: 0.9rem; }

/* ==============================================
   MOBILE APP SECTION
============================================== */
.app-section { padding: 80px 0; background: var(--surface); }
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.app-info h2 { font-size: 2.1rem; color: var(--heading); margin-bottom: 10px; }
.app-features { margin: 25px 0; }
.app-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(127, 140, 141, 0.1);
  color: var(--text);
}
.app-features li i { color: var(--btn); margin-right: 10px; }
.app-badges { display: flex; gap: 15px; margin-top: 20px; }
.badge-img { height: 45px; width: auto; border-radius: 6px; }
.phone-img { max-width: 280px; margin: 0 auto; border-radius: 30px; box-shadow: var(--shadow-strong); }

/* ==============================================
   NEWS SECTION
============================================== */
.news-section { padding: 80px 0; }
.news-section h2 { text-align: center; font-size: 2.1rem; color: var(--heading); margin-bottom: 10px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.news-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-date {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 15px;
}
.news-card h3 { color: var(--heading); margin-bottom: 12px; font-size: 1.15rem; }
.news-card p { color: var(--muted-text); margin-bottom: 15px; font-size: 0.95rem; }

/* ==============================================
   RATES PREVIEW
============================================== */
.rates-preview { padding: 80px 0; background: var(--surface); }
.rates-preview h2 { text-align: center; font-size: 2.1rem; color: var(--heading); margin-bottom: 10px; }
.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 20px;
}
.rate-card {
  background: var(--bg);
  padding: 30px 25px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.rate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.rate-card.featured { border: 2px solid var(--gold); }
.rate-card h3 { font-size: 1rem; color: var(--muted-text); margin-bottom: 10px; }
.rate-value { font-size: 2.4rem; font-weight: 700; color: var(--primary); }
.dark-theme .rate-value { color: var(--gold); }

/* ==============================================
   FOOTER
============================================== */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 60px 0 30px;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 35px;
  margin-bottom: 35px;
}
footer h3 { font-size: 1.1rem; margin-bottom: 18px; color: var(--gold); }
footer p { margin-bottom: 10px; opacity: 0.85; }
footer a { color: var(--accent); }
footer a:hover { color: var(--gold); }
.btn-footer {
  display: inline-block;
  background: rgba(96, 163, 188, 0.2);
  padding: 8px 16px;
  border-radius: 6px;
  margin-top: 5px;
}
.btn-footer:hover { background: rgba(249, 202, 36, 0.2); }
.footer-mission {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ==============================================
   LIVE CHAT
============================================== */
.livechat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btn), var(--btn-hover));
  color: white;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
  z-index: 999;
  transition: var(--transition);
}
.livechat-btn:hover { transform: scale(1.1); }
.chat-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.livechat-panel {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 340px;
  max-height: 500px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}
.livechat-panel.show { display: flex; animation: slideUp 0.3s ease; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.dark-theme .livechat-panel { background: var(--dm-surface); border: 1px solid rgba(96, 163, 188, 0.3); }
.chat-header {
  background: var(--primary);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-close { background: transparent; border: none; color: white; font-size: 1.1rem; cursor: pointer; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; max-height: 380px; }
.chat-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  margin-bottom: 12px;
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.4;
}
.chat-bubble.bot {
  background: var(--light);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.dark-theme .chat-bubble.bot { background: rgba(96, 163, 188, 0.2); }
.chat-bubble.user {
  background: var(--primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.chat-input {
  display: flex;
  padding: 15px;
  border-top: 1px solid #eee;
}
.dark-theme .chat-input { border-top: 1px solid rgba(96, 163, 188, 0.2); }
.chat-input input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #e0e6eb;
  border-radius: 24px;
  margin-right: 10px;
  outline: none;
  background: var(--bg);
  color: var(--text);
}
.chat-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--btn);
  color: white;
  border: none;
  cursor: pointer;
}

/* ==============================================
   MOBILE BOTTOM NAV
============================================== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(10, 61, 98, 0.1);
  padding: 10px 0;
  z-index: 998;
  justify-content: space-around;
}
.dark-theme .mobile-nav { background: var(--dm-surface); }
.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
}
.mobile-nav-link.active { color: var(--primary); }
.mobile-nav-link i { font-size: 1.2rem; }

/* ==============================================
   SCROLL ANIMATIONS
============================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==============================================
   PRINT STYLES
============================================== */
@media print {
  header, .security-banner, .livechat-btn, .mobile-nav, footer, .btn-primary, .btn-secondary, .btn-outline {
    display: none !important;
  }
  body, .light-theme, .dark-theme, .warm-theme {
    background: white !important;
    color: black !important;
  }
  .feature-card, .service-card, .rate-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
  a { color: black !important; text-decoration: underline; }
}

/* ==============================================
   RESPONSIVE LAYOUT
============================================== */
@media (max-width: 900px) {
  header .container { gap: 12px; }
  .main-nav { flex-wrap: wrap; justify-content: center; }
  .auth-nav { width: 100%; justify-content: center; margin-top: 10px; }
  .hero h1 { font-size: 2rem; }
  .app-grid { grid-template-columns: 1fr; text-align: center; }
  .app-badges { justify-content: center; }
  .mobile-nav { display: flex; }
  .livechat-btn { bottom: 80px; }
  .livechat-panel { right: 10px; bottom: 140px; width: calc(100vw - 20px); }
  .container { width: 95%; }
}

@media (max-width: 480px) {
  .hero-buttons, .promo-benefits, .countdown { flex-direction: column; }
  .header-actions { flex-wrap: wrap; justify-content: center; }
  .theme-btn { min-width: auto; padding: 10px 12px; }
  .theme-label { display: none; }
}
/* ==============================================
   ADMIN & CLIENT PORTAL — ADD-ON STYLES
   Appended to existing stylesheet — no conflicts
============================================== */

/* Photo preview on admin form */
.photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  display: none;
  margin-top: 10px;
}

/* Client list row in admin dashboard */
.client-row {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.dark-theme .client-row { border-bottom-color: rgba(96, 163, 188, 0.2); }
.warm-theme .client-row { border-bottom-color: #e8d9c5; }

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--light);
}

/* Client dashboard profile photo */
.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
}

/* Transaction history items */
.history-item {
  padding: 14px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}
.history-item:hover { background: rgba(249, 202, 36, 0.05); }
.dark-theme .history-item { border-bottom-color: rgba(96, 163, 188, 0.15); }
.warm-theme .history-item { border-bottom-color: #f0e6d8; }

/* Status indicators */
.status-pending {
  color: var(--gold);
  font-weight: 600;
}
.status-done {
  color: #28a745;
  font-weight: 600;
}

/* Verification step cards */
.step-card {
  transition: all 0.5s ease;
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.step-locked {
  opacity: 0.5;
  pointer-events: none;
}
.step-active {
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(249, 202, 36, 0.3);
}
.step-complete {
  border-color: #28a745;
  background: #f0fff4;
}
.dark-theme .step-complete { background: rgba(40, 167, 69, 0.1); }

/* Verification code display */
.step-code {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--primary);
  background: var(--gold);
  padding: 15px 30px;
  border-radius: var(--radius);
  display: inline-block;
  margin: 15px 0;
}
.dark-theme .step-code {
  color: var(--dm-bg);
}

/* Timer countdown */
.timer-box {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e74c3c;
}

/* Success screen */
.success-screen {
  text-align: center;
  background: #f0fff4;
  padding: 40px 30px;
  border-radius: var(--radius);
  border: 2px solid #28a745;
}
.dark-theme .success-screen {
  background: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
}

/* Form inputs inside portal pages — ensure consistency */
input[type="file"] {
  padding: 8px;
  background: var(--light);
  border-radius: var(--radius);
}
.dark-theme input[type="file"] { background: rgba(96, 163, 188, 0.1); }

/* Balance highlight box */
.balance-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
  padding: 18px;
  border-radius: var(--radius);
  margin-bottom: 25px;
}

/* Account details table */
.account-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.account-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(127, 140, 141, 0.1);
}
.account-table td:first-child {
  font-weight: 600;
  width: 140px;
}
.dark-theme .account-table td { border-bottom-color: rgba(96, 163, 188, 0.15); }
.warm-theme .account-table td { border-bottom-color: #e8d9c5; }

/* Responsive adjustments for portal */
@media (max-width: 600px) {
  .step-code {
    font-size: 1.4rem;
    padding: 12px 20px;
    letter-spacing: 4px;
  }
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  .client-row {
    flex-direction: column;
    text-align: center;
  }
}