/* ============================================================
   NEXABANK – SHARED STYLESHEET
   ============================================================ */

/* --- CSS Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3c8f;
  --primary-dark: #122a6b;
  --primary-light: #2563eb;
  --accent: #f97316;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-h: 70px;
  --sidebar-w: 240px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, select, button { font-family: inherit; }

/* ============================================================
   NAVBAR (Public Pages)
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: var(--nav-h);
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.4rem; }
.logo-icon { font-size: 1.6rem; }
.logo-text strong { color: #fbbf24; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: rgba(255,255,255,0.85); padding: 8px 16px;
  border-radius: 6px; font-size: 0.95rem; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.12); }
.btn-nav {
  background: var(--accent) !important; color: #fff !important;
  padding: 10px 20px !important; border-radius: 8px !important; font-weight: 600 !important;
}
.btn-nav:hover { background: #ea6c00 !important; }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; background: var(--primary-dark); padding: 8px 0; }
.mobile-menu a { color: rgba(255,255,255,0.9); padding: 12px 24px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu.open { display: flex; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  min-height: 88vh; display: flex; align-items: center; justify-content: space-between;
  padding: 80px 60px; gap: 40px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.hero-content { max-width: 600px; z-index: 1; }
.hero-tagline {
  color: #fbbf24; font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-sub { color: rgba(255,255,255,0.78); font-size: 1.1rem; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* CARD MOCKUP */
.hero-graphic { z-index: 1; flex-shrink: 0; }
.card-mockup {
  width: 340px; height: 210px;
  background: linear-gradient(135deg, #1e40af, #3b82f6, #06b6d4);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex; flex-direction: column; justify-content: space-between;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.card-chip { font-size: 2rem; }
.card-number { color: rgba(255,255,255,0.9); font-size: 1.1rem; letter-spacing: 0.15em; font-family: monospace; }
.card-footer { display: flex; justify-content: space-between; color: rgba(255,255,255,0.8); font-size: 0.9rem; text-transform: uppercase; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: 8px; font-size: 0.95rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}
.btn-primary:hover { background: #ea6c00; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(249,115,22,0.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6);
  padding: 11px 28px; border-radius: 8px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-outline-sm {
  background: transparent; border: 1.5px solid var(--primary); color: var(--primary);
  padding: 8px 16px; border-radius: 6px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-outline-sm:hover { background: var(--primary); color: #fff; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  background: var(--primary-dark); padding: 0;
}
.stat {
  text-align: center; padding: 32px 48px; color: #fff;
  border-right: 1px solid rgba(255,255,255,0.1); flex: 1; min-width: 150px;
}
.stat:last-child { border-right: none; }
.stat h3 { font-size: 2rem; font-weight: 800; color: #fbbf24; margin-bottom: 4px; }
.stat p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.features, .testimonials { padding: 80px 60px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 12px; text-align: center; }
.section-sub { color: var(--text-muted); text-align: center; max-width: 600px; margin: 0 auto 48px; font-size: 1.05rem; }

/* Feature Cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

/* Products Highlight */
.products-highlight {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  padding: 80px 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 60px; flex-wrap: wrap;
}
.product-text h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.product-text p { color: rgba(255,255,255,0.75); max-width: 480px; font-size: 1rem; margin-bottom: 28px; line-height: 1.7; }
.product-cards { display: flex; gap: 20px; flex-wrap: wrap; }
.mini-card {
  width: 140px; padding: 24px 16px; border-radius: 16px;
  text-align: center; color: #fff; box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
}
.mini-card:hover { transform: scale(1.05); }
.mini-card span { font-size: 2rem; }
.mini-card p { font-weight: 700; margin: 8px 0 4px; }
.mini-card small { font-size: 0.8rem; opacity: 0.85; }
.blue-card { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.green-card { background: linear-gradient(135deg, #059669, #34d399); }
.red-card { background: linear-gradient(135deg, #dc2626, #f87171); }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 36px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.testimonial-card p { color: var(--text-muted); font-style: italic; line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--text); }
.testimonial-author small { color: var(--text-muted); font-size: 0.82rem; }

/* ============================================================
   PAGE HERO (Services page)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 64px 60px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { padding: 60px 60px; max-width: 1300px; margin: 0 auto; }
.services-section.grey-bg { max-width: 100%; background: var(--bg); padding: 60px; }
.services-section.grey-bg > * { max-width: 1300px; margin-left: auto; margin-right: auto; }
.services-section .section-title { text-align: left; margin-bottom: 32px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: all 0.3s; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.blue-bg { background: #dbeafe; } .purple-bg { background: #ede9fe; }
.orange-bg { background: #ffedd5; } .green-bg { background: #d1fae5; }
.teal-bg { background: #ccfbf1; } .red-bg { background: #fee2e2; }
.pink-bg { background: #fce7f3; } .indigo-bg { background: #e0e7ff; }
.yellow-bg { background: #fef9c3; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 16px; }
.service-features { margin-bottom: 24px; }
.service-features li { font-size: 0.9rem; color: var(--text-muted); padding: 3px 0; }
.service-card .btn-primary { margin-top: auto; align-self: flex-start; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0f172a; color: rgba(255,255,255,0.8); padding: 64px 60px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h3 { color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-grid ul li a:hover { color: #fbbf24; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.85rem; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.login-wrapper { display: flex; min-height: 100vh; }
.login-left {
  width: 45%; background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 60px 48px; display: flex; flex-direction: column; justify-content: center;
}
.login-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.4rem; margin-bottom: 48px; }
.login-left h2 { color: #fff; font-size: 2.2rem; font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.login-left p { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.7; margin-bottom: 40px; }
.login-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.lf-item { color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.lf-item span { font-size: 1.3rem; }
.back-home { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color 0.2s; }
.back-home:hover { color: #fff; }

.login-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card {
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 40px; width: 100%; max-width: 440px;
}
.login-tabs { display: flex; gap: 0; margin-bottom: 28px; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.tab-btn {
  flex: 1; padding: 10px; font-size: 0.95rem; font-weight: 600;
  background: transparent; border: none; cursor: pointer; color: var(--text-muted); transition: all 0.2s;
}
.tab-btn.active { background: var(--primary); color: #fff; }
.login-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.login-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.95rem; color: var(--text);
  background: var(--surface); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.field-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 5px; display: block; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.toggle-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; padding: 0;
}
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); cursor: pointer; }
.forgot-link { font-size: 0.88rem; color: var(--primary-light); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }
.login-divider { text-align: center; position: relative; margin: 20px 0; }
.login-divider::before { content:''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--border); }
.login-divider span { background: #fff; padding: 0 12px; position: relative; color: var(--text-muted); font-size: 0.85rem; }
.alt-login { display: flex; gap: 12px; margin-bottom: 20px; }
.alt-btn {
  flex: 1; padding: 11px; border: 1.5px solid var(--border); background: var(--surface);
  border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  color: var(--text); transition: all 0.2s;
}
.alt-btn:hover { background: var(--bg); border-color: var(--primary-light); }
.register-link { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.register-link a { color: var(--primary-light); font-weight: 600; }
.security-badge {
  display: flex; align-items: flex-start; gap: 10px; background: #f0fdf4;
  border: 1px solid #bbf7d0; border-radius: 8px; padding: 12px 14px;
}
.security-badge span { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.security-badge small { color: #166534; font-size: 0.8rem; line-height: 1.5; }

/* Error / Success Messages */
.error-msg { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.success-msg { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }

/* Spinner */
.spinner { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { 0% { display:inline-block; } 100% { } }

/* ============================================================
   BANKING PORTAL (Dashboard, Transactions, Transfer)
   ============================================================ */
.banking-body { background: var(--bg); min-height: 100vh; }

/* Banking Nav */
.banking-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  height: var(--nav-h);
}
.banking-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 24px; max-width: 100%;
}
.net-banking-label {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
  font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; margin-left: 12px;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.banking-nav-right { display: flex; align-items: center; gap: 20px; }
.user-greeting { color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.last-login { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.btn-logout {
  background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.2); }

/* Layout */
.banking-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); background: var(--surface);
  border-right: 1px solid var(--border); padding: 24px 0;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
  overflow-y: auto; flex-shrink: 0;
}
.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: var(--text-muted); font-size: 0.92rem;
  font-weight: 500; transition: all 0.2s; border-left: 3px solid transparent;
}
.sidebar-link span { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-link:hover { background: var(--bg); color: var(--primary); border-left-color: var(--primary); }
.sidebar-link.active { background: #dbeafe; color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.sidebar-divider { height: 1px; background: var(--border); margin: 12px 20px; }
.logout-link:hover { color: var(--danger); border-left-color: var(--danger); background: #fee2e2; }

/* Main Content */
.banking-main { flex: 1; padding: 28px 32px; max-width: calc(100% - var(--sidebar-w)); overflow-x: hidden; }

/* Page Title Bar */
.page-title-bar {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px;
}
.page-heading { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.page-breadcrumb { font-size: 0.83rem; color: var(--text-muted); }
.page-actions { display: flex; gap: 12px; align-items: center; }

/* Section Card */
.section-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.card-heading { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.card-heading-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.see-all { font-size: 0.85rem; color: var(--primary-light); font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* Balance Cards */
.balance-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 24px; }
.balance-card { border-radius: var(--radius); padding: 24px; color: #fff; position: relative; overflow: hidden; }
.balance-card::before { content:''; position: absolute; top:-30px; right:-30px; width:120px; height:120px; border-radius:50%; background:rgba(255,255,255,0.08); }
.primary-balance { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.secondary-balance { background: linear-gradient(135deg, #065f46, #059669); }
.fd-balance { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.balance-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; margin-bottom: 4px; }
.account-no { font-size: 0.85rem; opacity: 0.7; margin-bottom: 12px; font-family: monospace; }
.balance-amount { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }
.balance-sub { font-size: 0.8rem; opacity: 0.75; margin-bottom: 16px; }
.balance-actions { display: flex; gap: 10px; }
.bal-btn {
  padding: 6px 14px; border-radius: 6px; background: rgba(255,255,255,0.18);
  color: #fff; font-size: 0.82rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.2s;
}
.bal-btn:hover { background: rgba(255,255,255,0.28); }

/* Quick Actions */
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.qa-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 16px 12px; min-width: 90px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.8rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.qa-btn span { font-size: 1.5rem; }
.qa-btn:hover { background: #dbeafe; border-color: var(--primary-light); color: var(--primary); }

/* Dashboard Two Column */
.dashboard-two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; margin-bottom: 0; }
.dashboard-two-col .section-card { margin-bottom: 0; height: 100%; }

/* Chart Legend */
.chart-legend { display: flex; gap: 20px; justify-content: center; margin-top: 16px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.leg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* Mini Transaction List */
.mini-txn-list { display: flex; flex-direction: column; gap: 0; }
.mini-txn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mini-txn:last-child { border-bottom: none; }
.txn-left { display: flex; align-items: center; gap: 12px; }
.txn-icon { font-size: 1.3rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 8px; }
.txn-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.txn-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.txn-amount { font-size: 0.95rem; font-weight: 700; }
.credit-amt { color: var(--success); }
.debit-amt { color: var(--danger); }

/* Category Bars */
.category-bars { display: flex; flex-direction: column; gap: 16px; }
.cat-bar-item { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--text-muted); }
.cat-bar-item > span:first-child { width: 130px; flex-shrink: 0; }
.cat-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.cat-bar-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.cat-bar-item > span:last-child { width: 70px; text-align: right; font-weight: 600; color: var(--text); flex-shrink: 0; }

/* ============================================================
   TRANSACTIONS PAGE
   ============================================================ */
.filter-bar { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.filter-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.filter-group select, .filter-group input { padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 0.88rem; background: var(--surface); color: var(--text); }

.txn-summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.txn-sum-card { border-radius: 10px; padding: 18px 20px; }
.txn-sum-card p { font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.txn-sum-card h3 { font-size: 1.4rem; font-weight: 800; }
.green-sum { background: #d1fae5; } .green-sum p { color: #065f46; } .green-sum h3 { color: var(--success); }
.red-sum { background: #fee2e2; } .red-sum p { color: #991b1b; } .red-sum h3 { color: var(--danger); }
.blue-sum { background: #dbeafe; } .blue-sum p { color: #1e40af; } .blue-sum h3 { color: var(--primary-light); }
.grey-sum { background: var(--bg); } .grey-sum p { color: var(--text-muted); } .grey-sum h3 { color: var(--text); }

.table-responsive { overflow-x: auto; }
.txn-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.txn-table th { background: var(--bg); padding: 12px 14px; text-align: left; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.txn-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.txn-table .credit-row { background: #f0fdf4; }
.txn-table .debit-row { background: #fff; }
.txn-table .credit-row:hover, .txn-table .debit-row:hover { background: #eff6ff; }
.txn-id { font-family: monospace; font-size: 0.8rem; color: var(--text-muted); }
.mode-badge { background: var(--bg); color: var(--text-muted); padding: 3px 8px; border-radius: 4px; font-size: 0.78rem; font-weight: 600; }
.debit-col { color: var(--danger); font-weight: 600; }
.credit-col { color: var(--success); font-weight: 600; }
.balance-col { font-weight: 600; color: var(--text); }
.status-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.status-success { background: #d1fae5; color: #065f46; }
.status-pending { background: #fef3c7; color: #92400e; }
.table-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); }
.pagination { display: flex; gap: 6px; }
.page-btn { width: 32px; height: 32px; border: 1.5px solid var(--border); border-radius: 6px; background: var(--surface); font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-muted); transition: all 0.2s; }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:hover:not(.active) { border-color: var(--primary-light); color: var(--primary); }

/* ============================================================
   TRANSFER PAGE
   ============================================================ */
.transfer-tabs { display: flex; gap: 0; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; }
.ttab {
  padding: 10px 24px; font-size: 0.92rem; font-weight: 600;
  background: transparent; border: none; cursor: pointer; color: var(--text-muted);
  border-right: 1px solid var(--border); transition: all 0.2s;
}
.ttab:last-child { border-right: none; }
.ttab.active { background: var(--primary); color: #fff; }
.ttab:hover:not(.active) { background: var(--bg); }

.transfer-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.transfer-form-card { margin-bottom: 0; }
.transfer-info-panel .section-card { margin-bottom: 16px; padding: 20px; }
.transfer-info-panel .section-card:last-child { margin-bottom: 0; }
.transfer-info-panel .card-heading { font-size: 0.95rem; margin-bottom: 14px; }
.limit-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-muted); }
.limit-item:last-child { border-bottom: none; }
.limit-val { font-weight: 700; color: var(--text); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ifsc-verify { margin-top: -8px; margin-bottom: 16px; }
.bank-name-hint { font-size: 0.8rem; color: var(--success); font-weight: 600; margin-left: 8px; }
.transfer-notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 20px;
}
.transfer-notice span { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.transfer-notice p { font-size: 0.83rem; color: #78350f; line-height: 1.5; }

/* Saved Beneficiaries */
.saved-bene {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border-radius: 8px; cursor: pointer; transition: background 0.2s;
}
.saved-bene:hover { background: var(--bg); }
.bene-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; flex-shrink: 0;
}
.bene-name { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.saved-bene small { font-size: 0.78rem; color: var(--text-muted); }

/* Success Overlay */
.success-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center;
  z-index: 9999; backdrop-filter: blur(4px);
}
.success-modal {
  background: var(--surface); border-radius: 20px; padding: 48px 40px;
  max-width: 480px; width: 90%; text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: scaleIn 0.3s ease;
}
@keyframes scaleIn { from { transform:scale(0.85); opacity:0; } to { transform:scale(1); opacity:1; } }
.success-anim { font-size: 4rem; margin-bottom: 16px; animation: bounceIn 0.5s ease; }
@keyframes bounceIn { 0%,20%,50%,80%,100% { transform:scale(1); } 40% { transform:scale(1.2); } 60% { transform:scale(1.05); } }
.success-modal h2 { font-size: 1.6rem; font-weight: 800; color: var(--success); margin-bottom: 10px; }
.success-modal p { color: var(--text-muted); margin-bottom: 24px; }
.success-details { background: var(--bg); border-radius: 10px; padding: 16px; text-align: left; margin-bottom: 16px; font-size: 0.88rem; line-height: 2; color: var(--text-muted); }
.success-details strong { color: var(--text); }
.success-ref { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 28px; }
.success-ref strong { color: var(--primary); font-family: monospace; }
.success-actions { display: flex; gap: 12px; justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .dashboard-two-col { grid-template-columns: 1fr; }
  .transfer-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 60px 28px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-graphic { display: none; }
  .products-highlight { flex-direction: column; padding: 60px 28px; }
  .features { padding: 60px 28px; }
  .testimonials { padding: 60px 28px; }
  .services-section { padding: 40px 24px; }
  .services-section.grey-bg { padding: 40px 24px; }
  .sidebar { display: none; }
  .banking-main { max-width: 100%; padding: 20px 16px; }
  .stats-strip { flex-wrap: wrap; }
  .stat { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .balance-cards { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .login-wrapper { flex-direction: column; }
  .login-left { width: 100%; padding: 40px 24px; }
  .page-hero { padding: 40px 24px; }
  .banking-nav-right .last-login { display: none; }
  .txn-summary-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 16px; }
  .balance-amount { font-size: 1.5rem; }
  .quick-actions { gap: 8px; }
  .qa-btn { min-width: 75px; padding: 12px 8px; font-size: 0.75rem; }
}