/* ═══════════════════════════════════════════════════════════════
   State Bank of Karnataka — Premium Banking CSS
   Dark Blue + White Professional Theme
   ═══════════════════════════════════════════════════════════════ */

/* ─── Google Fonts & Font Awesome are loaded in HTML ─── */

:root {
  /* Color Palette */
  --navy-950: #040d1a;
  --navy-900: #071428;
  --navy-800: #0a1f40;
  --navy-700: #0d2857;
  --navy-600: #103270;
  --navy-500: #1a4ba0;
  --navy-400: #2563d4;
  --navy-300: #4a82e8;
  --navy-200: #93b4f4;
  --navy-100: #dce8fd;

  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-rose: #f43f5e;
  --accent-rose-light: #fb7185;

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0a1f40 0%, #1a4ba0 50%, #2563d4 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-emerald: linear-gradient(135deg, #059669, #10b981);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(37, 99, 212, 0.3);
  --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.4);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--navy-950);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Page System ─────────────────────────────────────────────── */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: flex;
  flex-direction: column;
}

/* ─── Auth Background ─────────────────────────────────────────── */
.auth-bg {
  position: fixed;
  inset: 0;
  background: var(--gradient-primary);
  z-index: 0;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 212, 0.6), transparent);
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3), transparent);
  bottom: -10%;
  right: -5%;
  animation-delay: -3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent);
  top: 40%;
  left: 60%;
  animation-delay: -6s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -20px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

/* ─── Auth Card ───────────────────────────────────────────────── */
#page-login,
#page-register {
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.auth-card {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-10);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  animation: cardSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.auth-card--wide {
  max-width: 640px;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── Auth Logo ───────────────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

.logo-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-gold);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}

.logo-icon--sm {
  width: 36px;
  height: 36px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

/* ─── SBK Brand Name ──────────────────────────────────────────── */
.logo-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.6px;
  line-height: 1.15;
  /* Gold-to-white gradient text for a premium banking feel */
  background: linear-gradient(135deg, #e8c97a 0%, #f5e0a0 50%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  /* fallback */
  text-transform: capitalize;
}

.logo-tagline {
  font-size: 10px;
  color: var(--navy-200);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ─── Auth Titles ─────────────────────────────────────────────── */
.auth-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-2);
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--navy-200);
  text-align: center;
  margin-bottom: var(--space-8);
}

/* ─── Auth Form ───────────────────────────────────────────────── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-100);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  letter-spacing: 0.2px;
}

.form-group label i {
  color: var(--navy-300);
  font-size: 12px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  transition: all var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.input-wrapper textarea {
  resize: none;
  line-height: 1.5;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.3px;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: var(--navy-300);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(74, 130, 232, 0.2);
}

/* Remove number spinner */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Phone Input */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.phone-input-wrapper:focus-within {
  border-color: var(--navy-300);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(74, 130, 232, 0.2);
}

.phone-prefix {
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-200);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
}

.phone-input-wrapper input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
}

/* Amount Input */
.amount-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.amount-wrapper:focus-within {
  border-color: var(--navy-300);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(74, 130, 232, 0.2);
}

.amount-prefix {
  padding: 13px 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-gold);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.amount-wrapper input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
}

.quick-amounts {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.quick-amt-btn {
  padding: 5px 12px;
  background: rgba(37, 99, 212, 0.2);
  border: 1px solid rgba(37, 99, 212, 0.4);
  border-radius: var(--radius-full);
  color: var(--navy-200);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-amt-btn:hover {
  background: rgba(37, 99, 212, 0.4);
  color: var(--white);
  transform: translateY(-1px);
}

/* Password Toggle */
.password-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.password-wrapper:focus-within {
  border-color: var(--navy-300);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(74, 130, 232, 0.2);
}

.password-wrapper input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
}

.toggle-password {
  padding: 0 14px;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 14px;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.toggle-password:hover {
  color: var(--navy-200);
}

/* Field hint */
.field-hint {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Password Strength */
.password-strength {
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  width: 0%;
}

.strength-label {
  font-size: 11px;
  font-weight: 600;
  min-width: 50px;
}

/* ─── Error / Success Messages ────────────────────────────────── */
.error-message {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 14px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-md);
  color: #fda4af;
  font-size: 13px;
  font-weight: 500;
  animation: shake 0.4s ease;
}

.error-message::before {
  content: '\f071';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
}

.success-message {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 500;
}

.success-message::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-8px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-6px);
  }

  80% {
    transform: translateX(6px);
  }
}

/* Countdown rate-limit message — subtle pulse instead of shake */
.error-message.counting {
  animation: rateLimitPulse 1.5s ease-in-out infinite;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.error-message.counting::before {
  content: '\f017';
  /* clock icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

@keyframes rateLimitPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.65;
  }
}

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 0.05;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #2563d4, #1a4ba0);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 99, 212, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(37, 99, 212, 0.6);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--navy-100);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  padding: 8px 16px;
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn-outline-danger {
  background: transparent;
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.btn-outline-danger:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #ff607a;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── Auth Divider ────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
}

/* ─── Auth Footer Note ────────────────────────────────────────── */
.auth-footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--gray-500);
  margin-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.auth-footer-note i {
  color: var(--accent-emerald);
  font-size: 10px;
}

/* ─── Toast Notification ──────────────────────────────────────── */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 360px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-xl);
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.toast.show {
  display: flex;
}

.toast.toast-success {
  background: rgba(16, 185, 129, 0.95);
  backdrop-filter: blur(12px);
  color: white;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.toast.toast-error {
  background: rgba(244, 63, 94, 0.95);
  backdrop-filter: blur(12px);
  color: white;
  border: 1px solid rgba(251, 113, 133, 0.4);
}

.toast.toast-info {
  background: rgba(37, 99, 212, 0.95);
  backdrop-filter: blur(12px);
  color: white;
  border: 1px solid rgba(37, 99, 212, 0.6);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ─── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 13, 26, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: fadeIn 0.2s ease;
}

.modal-overlay[style*="display:none"],
.modal-overlay[style*="display: none"] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-card {
  background: linear-gradient(145deg, rgba(10, 31, 64, 0.98), rgba(7, 20, 40, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  position: relative;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.modal-card--transfer {
  max-width: 520px;
  align-items: stretch;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.3);
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  margin-bottom: var(--space-2);
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.modal-icon.success {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
  color: var(--accent-emerald-light);
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.modal-icon.primary {
  background: radial-gradient(circle, rgba(37, 99, 212, 0.3), rgba(37, 99, 212, 0.1));
  color: var(--navy-300);
  border: 2px solid rgba(37, 99, 212, 0.3);
  box-shadow: 0 0 30px rgba(37, 99, 212, 0.3);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  text-align: center;
}

.modal-desc {
  font-size: 14px;
  color: var(--navy-200);
  text-align: center;
  line-height: 1.6;
}

/* ─── Token Display ───────────────────────────────────────────── */
.token-display-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.token-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.token-text {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #e2e8f0;
  word-break: break-all;
  line-height: 1.6;
  max-height: 80px;
  overflow-y: auto;
  user-select: all;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  color: var(--accent-gold-light);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  align-self: flex-start;
}

.copy-btn:hover {
  background: rgba(245, 158, 11, 0.35);
  color: var(--white);
}

.token-warning {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  color: var(--accent-gold-light);
  font-size: 12px;
  font-weight: 500;
  width: 100%;
}

.token-warning i {
  font-size: 12px;
}

/* ─── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(7, 20, 40, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Slightly smaller brand name in navbar to fit on one line */
.nav-brand .logo-name {
  font-size: 14px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
}

.nav-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-100);
}

/* ─── Dashboard Main ──────────────────────────────────────────── */
.dashboard-main {
  padding: var(--space-8) var(--space-8);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ─── Welcome Hero ────────────────────────────────────────────── */
.welcome-hero {
  background: linear-gradient(135deg, rgba(26, 75, 160, 0.4) 0%, rgba(37, 99, 212, 0.2) 100%);
  border: 1px solid rgba(37, 99, 212, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  position: relative;
  overflow: hidden;
}

.welcome-hero::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent);
  border-radius: 50%;
}

.welcome-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.welcome-greeting {
  font-size: 14px;
  color: var(--navy-200);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.welcome-name {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: var(--space-1);
}

.welcome-sub {
  font-size: 13px;
  color: var(--gray-400);
}

.welcome-hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-emerald-light);
  font-size: 13px;
  font-weight: 600;
}

/* ─── Cards Grid ──────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

/* ─── Balance Card ────────────────────────────────────────────── */
.balance-card {
  background: linear-gradient(135deg, #103270 0%, #071428 60%, #0a1f40 100%);
  border: 1px solid rgba(37, 99, 212, 0.4);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 220px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(37, 99, 212, 0.15);
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37, 99, 212, 0.3), transparent);
  border-radius: 50%;
}

.balance-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent);
  border-radius: 50%;
}

.balance-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.balance-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-200);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.balance-toggle {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-md);
  color: var(--navy-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.balance-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.balance-card__amount {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  position: relative;
  z-index: 1;
}

.currency-symbol {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-gold);
}

#balance-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
  transition: all var(--transition-base);
}

.balance-card__account {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--navy-200);
  position: relative;
  z-index: 1;
}

/* ─── Account Number Chip (on balance card) ──────────────── */
.balance-card__acct-number {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  background: rgba(232, 201, 122, 0.10);
  border: 1px solid rgba(232, 201, 122, 0.28);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(232, 201, 122, 0.9);
  letter-spacing: 0.5px;
  width: fit-content;
}

.acct-number-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(232, 201, 122, 0.6);
}

.acct-number-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #e8c97a;
}

.acct-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(232, 201, 122, 0.55);
  font-size: 12px;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  margin-left: 2px;
}

.acct-copy-btn:hover {
  color: #e8c97a;
  background: rgba(232, 201, 122, 0.12);
}

.mt-auto {
  margin-top: auto;
}

/* ─── Quick Actions ───────────────────────────────────────────── */
.quick-actions-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.quick-actions-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-6);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--navy-100);
  font-family: var(--font-family);
}

.quick-action-btn:hover {
  background: rgba(37, 99, 212, 0.2);
  border-color: rgba(37, 99, 212, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 212, 0.2);
}

.quick-action-btn:hover .quick-action-icon {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 212, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--navy-300);
  transition: all var(--transition-base);
}

.quick-action-btn span {
  font-size: 13px;
  font-weight: 600;
}

/* ─── Transactions Section ────────────────────────────────────── */
.transactions-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.transaction-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.transaction-item__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.tx-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.tx-icon.credit {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tx-icon.debit {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose-light);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.tx-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tx-party {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.tx-date {
  font-size: 11px;
  color: var(--gray-500);
}

.tx-amount {
  font-size: 16px;
  font-weight: 700;
}

.tx-amount.credit {
  color: var(--accent-emerald-light);
}

.tx-amount.debit {
  color: var(--accent-rose-light);
}

/* ─── Empty State ─────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-12) var(--space-6);
  color: var(--gray-600);
}

.empty-state i {
  font-size: 40px;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
}

.empty-state span {
  font-size: 13px;
}

/* ─── Balance Display Large ───────────────────────────────────── */
.balance-display-large {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  padding: var(--space-5) var(--space-8);
  background: rgba(37, 99, 212, 0.1);
  border: 1px solid rgba(37, 99, 212, 0.25);
  border-radius: var(--radius-xl);
  width: 100%;
  justify-content: center;
  margin: var(--space-2) 0;
}

.currency-symbol-large {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-gold);
}

#modal-balance-value {
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
}

/* ─── Balance Info Grid ───────────────────────────────────────── */
.balance-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  width: 100%;
}

.balance-info-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.info-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* Account number in modals — monospace, gold tint */
.acct-num-mono {
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 13px !important;
  letter-spacing: 1.5px !important;
  color: #e8c97a !important;
}

/* Full-width info item in 2-column grid */
.balance-info-item--full {
  grid-column: 1 / -1;
}

.verified-badge {
  color: var(--accent-emerald-light) !important;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ─── Profile Avatar Large ────────────────────────────────────── */
.profile-avatar-large {
  width: 80px;
  height: 80px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
  margin-bottom: var(--space-2);
}

/* ─── Dashboard Page BG ───────────────────────────────────────── */
#page-dashboard {
  background: var(--navy-950);
  min-height: 100vh;
}

/* ─── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 212, 0.5);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 212, 0.7);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-card {
    padding: var(--space-8) var(--space-6);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-title {
    margin-bottom: var(--space-4);
  }

  .welcome-name {
    font-size: 24px;
  }

  .welcome-hero__badge {
    display: none;
  }

  .dashboard-main {
    padding: var(--space-6) var(--space-5);
  }

  .navbar {
    padding: 12px 20px;
  }

  .nav-username {
    display: none;
  }

  .balance-info-grid {
    grid-template-columns: 1fr;
  }

  #modal-balance-value {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-xl);
  }

  .modal-card {
    padding: var(--space-6);
  }

  .quick-actions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .balance-display-large {
    padding: var(--space-4) var(--space-5);
  }

  #balance-value {
    font-size: 32px;
  }
}

/* ─── Stats Row ────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: all var(--transition-base);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-deposit .stat-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
}

.stat-sent .stat-icon {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose-light);
}

.stat-received .stat-icon {
  background: rgba(37, 99, 212, 0.15);
  color: var(--navy-300);
}

.stat-txns .stat-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Transaction Filter Tabs ─────────────────────────────────── */
.tx-filter-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.tx-tab {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.tx-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.tx-tab.active {
  background: rgba(37, 99, 212, 0.3);
  border-color: rgba(37, 99, 212, 0.5);
  color: var(--navy-200);
}

/* ─── Transaction item type badge ─────────────────────────────── */
.tx-type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tx-type-badge.deposit {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald-light);
}

.tx-type-badge.debit {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose-light);
}

.tx-type-badge.credit {
  background: rgba(37, 99, 212, 0.2);
  color: var(--navy-300);
}

.tx-icon.deposit {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ─── Emerald Button (Add Money) ──────────────────────────────── */
.btn-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-emerald:hover {
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

/* ─── Quick Action Icon color variants ─────────────────────────── */
.qa-green {
  background: rgba(16, 185, 129, 0.2) !important;
  color: var(--accent-emerald-light) !important;
}

.qa-blue {
  background: rgba(37, 99, 212, 0.2) !important;
  color: var(--navy-300) !important;
}

.qa-gold {
  background: rgba(245, 158, 11, 0.2) !important;
  color: var(--accent-gold-light) !important;
}

.qa-purple {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #c4b5fd !important;
}

/* ─── Receiver Lookup Preview ─────────────────────────────────── */
.receiver-lookup {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.receiver-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.receiver-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.receiver-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.receiver-phone-display {
  font-size: 12px;
  color: var(--gray-400);
}

.receiver-check {
  color: var(--accent-emerald-light);
  font-size: 20px;
}

/* ─── Available Balance Hint ──────────────────────────────────── */
.available-balance-hint {
  font-size: 12px;
  color: var(--gray-500);
  text-align: right;
  margin-top: -8px;
}

.available-balance-hint strong {
  color: var(--navy-200);
}

/* ─── Deposit Methods ─────────────────────────────────────────── */
.deposit-methods {
  display: flex;
  gap: var(--space-3);
}

.deposit-method {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.deposit-method input[type="radio"] {
  display: none;
}

.deposit-method i {
  font-size: 20px;
}

.deposit-method:hover {
  background: rgba(37, 99, 212, 0.1);
  color: var(--navy-200);
  border-color: rgba(37, 99, 212, 0.3);
}

.deposit-method.active,
.deposit-method:has(input:checked) {
  background: rgba(37, 99, 212, 0.2);
  border-color: rgba(37, 99, 212, 0.5);
  color: var(--white);
}

/* ─── Modal card scrollable for small screens ─────────────────── */
.modal-overlay {
  overflow-y: auto;
}

.modal-card--transfer {
  max-height: 90vh;
  overflow-y: auto;
}