/* ============================================
   MONARCH BANK — Premium Banking Frontend CSS
   ============================================ */

/* ---- ROOT & TOKENS ---- */
:root {
  --primary: #6366F1;
  --primary-light: #818CF8;
  --primary-dark: #4F46E5;
  --accent: #14B8A6;
  --accent-2: #EC4899;
  --green: #10B981;
  --green-light: #34D399;
  --red: #EF4444;
  --red-light: #F87171;
  --yellow: #F59E0B;

  --bg: #0A0B1E;
  --bg-2: #101124;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.04);
  --border-light: rgba(255, 255, 255, 0.08);

  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --gradient-primary: linear-gradient(135deg, #6366F1 0%, #14B8A6 50%, #EC4899 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 50px rgba(99, 102, 241, 0.2);
  --shadow-inset-depth: inset 0 2px 4px 0 rgba(0, 0, 0, 0.6);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --sidebar-w: 260px;

  /* Fibonacci Spacing scale */
  --space-8: 8px;
  --space-13: 13px;
  --space-21: 21px;
  --space-34: 34px;
  --space-55: 55px;
}

/* ---- RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background:
    radial-gradient(circle 800px at 0% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(circle 800px at 100% 100%, rgba(20, 184, 166, 0.08) 0%, transparent 60%),
    #0A0B1E;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.dashboard-active {
  overflow: hidden;
  height: 100vh;
}

input,
button,
select,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.active {
  display: flex !important;
}

.page.active {
  display: flex !important;
  flex-direction: column;
  gap: var(--space-34);
  width: 100%;
}

/* ============================================
   3D DEPTH AND GLOSS ENGINE
   ============================================ */
.tilt-element {
  position: relative;
  transition: transform 0.18s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.3s ease,
    background 0.3s ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.tilt-element::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.tilt-element:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.tilt-element:hover::before {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  opacity: 0.8;
}

.tilt-content {
  position: relative;
  z-index: 5;
}

.card-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none !important;
  background: radial-gradient(circle 220px at var(--shine-x, 0) var(--shine-y, 0), rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 80%);
  mix-blend-mode: overlay;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  top: var(--shine-y, 0);
  left: var(--shine-x, 0);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(20, 184, 166, 0.05) 45%, rgba(0, 0, 0, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tilt-element:hover .ambient-glow {
  opacity: 1;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.cyber-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: floatOrbs 25s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -150px;
  left: -150px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-2);
  bottom: -200px;
  right: -200px;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 30%;
  left: 45%;
  animation-delay: -10s;
}

@keyframes floatOrbs {

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

  33% {
    transform: translate(50px, -80px) scale(1.1);
  }

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

.circuit-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(99, 102, 241, 0.005) 1px, transparent 1px);
  background-size: 40px 40px, 80px 80px;
  opacity: 0.8;
}

/* ============================================
   AUTH SECTION STYLE
   ============================================ */
.auth-section {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: var(--space-21);
  background:
    radial-gradient(circle 800px at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 55%),
    radial-gradient(circle 900px at 90% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(5, 5, 18, 0.8), rgba(10, 11, 30, 0.85)),
    url('../images/image.png') no-repeat center center / cover !important;
}

/* Cosmic Pulsing Atmospheric Backdrops specifically for Login */
.auth-section::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: pulseLight1 12s ease-in-out infinite alternate;
}

.auth-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  animation: pulseLight2 15s ease-in-out infinite alternate;
}

@keyframes pulseLight1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(60px, -60px) scale(1.25); opacity: 1; }
}

@keyframes pulseLight2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(-70px, 40px) scale(0.9); opacity: 0.95; }
}

.auth-container {
  width: 100%;
  max-width: 440px;
  padding: var(--space-34);
  background: 
    linear-gradient(rgba(10, 11, 30, 0.86), rgba(10, 11, 30, 0.86)),
    url('../images/image.png') no-repeat center center / cover !important;
  box-shadow: var(--shadow-card), 0 0 80px rgba(99, 102, 241, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-13);
  margin-bottom: var(--space-21);
}

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

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: var(--space-21);
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

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

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

.input-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.input-wrap:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.input-icon {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--text-dim);
}

.input-wrap input {
  flex: 1;
  padding: 12px 12px 12px 0;
  font-size: 0.875rem;
  color: white;
}

.input-wrap input::placeholder {
  color: var(--text-dim);
}

.eye-btn {
  padding: 0 12px;
  color: var(--text-dim);
  transition: color var(--transition);
}

.eye-btn:hover {
  color: var(--text);
}

.forgot-wrap {
  text-align: right;
  margin-top: 2px;
}

.forgot-wrap a {
  font-size: 0.78rem;
  color: var(--primary-light);
  font-weight: 500;
  transition: color var(--transition);
}

.forgot-wrap a:hover {
  color: var(--accent);
}

.error-msg {
  font-size: 0.78rem;
  color: var(--red-light);
  min-height: 18px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

/* Premium Click Interactive Tactile States & Ripples */
.btn-primary:active,
.btn-outline:active,
.quick-amt-btn:active,
.tab-btn:active,
.topbar-action-btn:active,
.logout-btn:active,
.radial-trigger-btn:active,
.card-eye-btn:active,
.dropdown-item:active,
.quick-action-item:active,
.view-all-btn:active {
  transform: translateY(0) scale(0.95) !important;
  transition: transform 0.08s ease !important;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 10;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.auth-switch {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-8);
}

.auth-switch a {
  color: var(--primary-light);
  font-weight: 600;
}

.auth-switch a:hover {
  color: var(--accent);
}

.auth-footer-bar {
  display: flex;
  gap: var(--space-21);
  margin-top: var(--space-34);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.foot-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* ============================================
   DASHBOARD SIDEBAR
   ============================================ */
.dashboard-section {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
  width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.sidebar {
  background: rgba(6, 8, 20, 0.75);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-right: 1px solid var(--border);
  padding: var(--space-21);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: sticky;
  top: 0;
  z-index: 100;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar in webkit browsers but keep scroll working */
.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-13);
  margin-bottom: var(--space-34);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-13);
  flex-shrink: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-13);
  padding: 12px var(--space-13);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.nav-item.active {
  background: var(--gradient-primary) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.sidebar-promo {
  margin-top: auto;
  padding: var(--space-13);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.02) 100%) !important;
  margin-bottom: var(--space-13);
  text-align: center;
  flex-shrink: 0;
}

.promo-gift-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin: 0 auto 8px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.sidebar-promo h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.sidebar-promo p {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: var(--space-8);
}

.sidebar-promo .btn-primary {
  width: 100%;
  padding: 8px;
  font-size: 0.75rem;
  border-radius: 8px;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: var(--space-8);
  flex-shrink: 0;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: var(--space-13);
  padding: 12px var(--space-13);
  width: 100%;
  border-radius: var(--radius-sm);
  color: var(--red-light);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* ============================================
   MAIN CONTENT & TOPBAR
   ============================================ */
.main-content {
  padding: var(--space-34);
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox — hide scrollbar */
  -ms-overflow-style: none; /* IE/Edge — hide scrollbar */
}

/* Hide scrollbar in webkit but keep scroll working */
.main-content::-webkit-scrollbar {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-34);
  gap: var(--space-21);
}

.menu-toggle {
  display: none;
  color: var(--text);
}

.topbar-title-section {
  display: flex;
  flex-direction: column;
}

.topbar-welcome {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.topbar-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.topbar-search {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  width: 260px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
}

.topbar-search:hover {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.02);
}

.topbar-search input {
  font-size: 0.8rem;
  color: white;
  padding: 0 10px;
  flex: 1;
  cursor: pointer;
}

.search-badge {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-13);
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition);
}

.topbar-user:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
}

.avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--primary-light);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
  position: relative;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar-user .user-info {
  display: flex;
  flex-direction: column;
}

.topbar-user .user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-badge {
  color: #A78BFA;
  display: flex;
  align-items: center;
}

.topbar-user .user-acc {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.dropdown-chevron {
  color: var(--text-dim);
  transition: transform var(--transition);
}

.profile-dropdown-wrapper {
  position: relative;
  z-index: 150;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  max-width: calc(100vw - 32px); /* Prevent screen overflow on extremely narrow viewports */
  background: rgba(16, 17, 36, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.1);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropdownIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
  z-index: 1000;
}

@keyframes dropdownIn {
  0% { opacity: 0; transform: translateY(-10px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-dropdown.hidden {
  display: none !important;
}

.dropdown-header {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.dropdown-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
}

.dropdown-email {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.dropdown-item.logout {
  color: var(--red-light);
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #F87171;
}

.dropdown-item svg {
  color: var(--text-dim);
  transition: color var(--transition);
  flex-shrink: 0;
}

.dropdown-item:hover svg {
  color: var(--primary-light);
}

.dropdown-item.logout:hover svg {
  color: #F87171;
}


/* ============================================
   FINANCIAL OVERVIEW CARDS
   ============================================ */
/* ============================================
   FINANCIAL OVERVIEW CARDS & TOP SECTION
   ============================================ */
.overview-top-section {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: var(--space-21);
  margin-bottom: var(--space-34);
  align-items: stretch;
}

/* PREMIUM HOLOGRAPHIC DEBIT CARD */
.premium-debit-card {
  padding: var(--space-21);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(20, 184, 166, 0.08) 50%, rgba(236, 72, 153, 0.1) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-debit-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 80%);
  pointer-events: none;
  transform: rotate(30deg);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.card-brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-brand-insignia {
  display: flex;
  align-items: center;
}

.card-chip-container {
  display: flex;
  align-items: center;
  gap: var(--space-13);
  margin-top: 15px;
}

.card-chip-svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.card-contactless-icon {
  color: rgba(255, 255, 255, 0.45);
}

.card-balance-section {
  margin-top: 20px;
}

.card-balance-label {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-weight: 700;
  display: block;
}

.card-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-top: 4px;
}

.card-eye-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.card-eye-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: scale(1.05);
}

.card-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.card-detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 600;
}

.detail-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* FINANCIAL STATS MINI-GRID */
.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-21);
}


.stat-card {
  padding: var(--space-21);
  border-radius: var(--radius);
}

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

.stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.icon-purple {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
}

.icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-light);
}

.icon-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-light);
}

.icon-teal {
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent);
}

.icon-blue {
  background: rgba(37, 99, 235, 0.1);
  color: #60A5FA;
}

.icon-orange {
  background: rgba(245, 158, 11, 0.1);
  color: #FB923C;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.reveal-btn {
  color: var(--text-dim);
  transition: color var(--transition);
}

.reveal-btn:hover {
  color: white;
}

.stat-value-large,
.balance-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: white;
  margin: var(--space-8) 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.balance-flip-wrap {
  min-height: 46px;
  display: flex;
  align-items: center;
}

.balance-amount.flipped {
  animation: flipIn 0.5s cubic-bezier(0.4,0,0.2,1);
}

@keyframes flipIn {
  0%   { opacity: 0; transform: translateY(-8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.stat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-13);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.metric-change {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.val-green { color: var(--green-light); }
.val-red   { color: var(--red-light); }

.metric-period {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.72rem;
}

.sparkline-container {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.stat-card:hover .sparkline-container { opacity: 1; }

/* ============================================
   OVERVIEW MIDDLE SECTION (Timeline + Right Widgets)
   ============================================ */
.overview-middle-section {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: var(--space-21);
  align-items: start;
  margin-bottom: var(--space-21);
}

/* ============================================
   RECENT TRANSACTIONS TIMELINE
   ============================================ */
.timeline-container-card {
  padding: var(--space-21) var(--space-34);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-21);
  padding-bottom: var(--space-13);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.timeline-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-card-header h3::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.view-all-btn {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 20px;
  transition: all 0.3s ease;
  background: rgba(99,102,241,0.06);
}
.view-all-btn:hover {
  background: rgba(99,102,241,0.15);
  border-color: var(--primary-light);
  color: white;
  box-shadow: 0 0 12px rgba(99,102,241,0.2);
}

.timeline-stream {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-stream::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg,
    var(--primary) 0%,
    rgba(20,184,166,0.4) 50%,
    rgba(99,102,241,0.05) 100%);
  opacity: 0.4;
}

.tx-timeline-item {
  display: flex;
  align-items: center;
  gap: var(--space-13);
  padding: 12px;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
  transition: background 0.25s ease, transform 0.2s ease;
  cursor: default;
}

.tx-timeline-item:hover {
  background: rgba(255,255,255,0.03);
  transform: translateX(4px);
}

.timeline-icon-wrap {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  margin-right: var(--space-21);
  flex-shrink: 0;
  z-index: 2;
}

.tx-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tx-desc {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.tx-sub-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.tx-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: var(--space-21);
}

.tx-date-str {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.tx-amount {
  font-size: 0.875rem;
  font-weight: 700;
}

.status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 30px;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Right Widgets */
.right-widgets-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-34);
}

.quick-actions-card {
  padding: var(--space-21);
}

.quick-actions-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-21);
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-21);
}

.quick-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.quick-action-item:hover {
  transform: translateY(-3px);
}

.action-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.quick-action-item:hover .action-circle {
  box-shadow: 0 0 15px currentColor;
}

.quick-action-item span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.referral-card {
  padding: var(--space-21);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(99, 102, 241, 0.02) 100%) !important;
}

.refer-graphic {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-13);
}

.refer-neon-dots {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px dashed rgba(20, 184, 166, 0.3);
  animation: spin 15s linear infinite;
}

.floating-coins-svg {
  animation: bounceCoins 3s ease-in-out infinite;
}

@keyframes bounceCoins {

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

  50% {
    transform: translateY(-8px);
  }
}

.referral-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.referral-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: var(--space-21);
}

.referral-card .btn-primary {
  width: 100%;
}



/* ============================================
   PAGE: DEPOSIT & WITHDRAW ACTION PANELS
   ============================================ */
.page-header {
  margin-bottom: var(--space-21);
}

.page-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
}

.page-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.action-card {
  padding: var(--space-34);
  max-width: 520px;
  margin: 0 auto;
}

/* Scrollbar hidden for main-content — clean premium look */

.action-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-21);
  align-items: center;
}

.amount-display-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  border-bottom: 2px solid var(--border-light);
  width: 100%;
  padding-bottom: 12px;
  margin-bottom: var(--space-8);
}

.currency-symbol {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}

.amount-input {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  width: 100%;
  text-align: center;
}

.amount-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.quick-amounts {
  display: flex;
  gap: var(--space-8);
  width: 100%;
}

.quick-amt-btn {
  flex: 1;
  padding: 10px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}

.quick-amt-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary-light);
  color: white;
}

.action-form .input-group {
  width: 100%;
}

.btn-green {
  background: linear-gradient(135deg, #10B981, #059669);
}

.btn-green:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-red {
  background: linear-gradient(135deg, #EF4444, #DC2626);
}

.btn-red:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
}

.action-form .btn-primary {
  width: 100%;
  padding: 14px;
}

/* ============================================
   PAGE: BALANCE ENQUIRY & PIN CHANGES
   ============================================ */
.balance-reveal-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.balance-big-icon,
.pin-security-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: var(--space-21);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.balance-reveal-section h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.balance-hero {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-21);
  letter-spacing: -0.5px;
}

.btn-outline {
  padding: 12px 28px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--transition);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-light);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.balance-meta {
  width: 100%;
  margin-top: var(--space-34);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-21);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-13) var(--space-21);
  text-align: left;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.meta-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.action-form .input-group .input-wrap {
  background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   PAGE: MINI STATEMENT TABLE
   ============================================ */
.statement-card {
  padding: var(--space-34);
}

.statement-header {
  display: flex;
  gap: var(--space-55);
  margin-bottom: var(--space-34);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-21);
}

.statement-acc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stmt-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.stmt-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.transactions-table-wrap {
  overflow-x: auto;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.transactions-table th {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 14px var(--space-13);
  border-bottom: 1.5px solid var(--border-light);
  text-transform: uppercase;
}

.transactions-table td {
  font-size: 0.85rem;
  padding: 16px var(--space-13);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.transactions-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge.credit {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.debit {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-light);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.amount-credit {
  color: var(--green-light);
  font-weight: 700;
}

.amount-debit {
  color: var(--red-light);
  font-weight: 700;
}

/* ============================================
   MODALS AND SYSTEMS
   ============================================ */
.toast {
  position: fixed;
  bottom: var(--space-34);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 11, 30, 0.9);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 12px 24px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 100000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  opacity: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: var(--green);
}

.toast.error {
  border-color: var(--red);
}

.toast.info {
  border-color: var(--primary-light);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 30, 0.7);
  backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: rgba(10, 11, 30, 0.85) !important;
  border-radius: var(--radius);
  padding: var(--space-34);
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(99, 102, 241, 0.1);
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--space-21);
  font-weight: 700;
  margin-bottom: var(--space-8);
}

.modal-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-light);
  border: 2px solid var(--green);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-8);
}

.modal p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-21);
}

.modal .btn-primary {
  width: 100%;
}

/* ========================================================
   ENHANCED NEXT-GEN PREMIUM UX STYLE DECLARATIONS
   ======================================================== */

/* Biometric Login Button Style */
.auth-actions-row {
  display: flex;
  gap: var(--space-8);
  width: 100%;
}

.auth-actions-row .btn-primary {
  flex: 1;
}

.btn-biometric {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-2);
  border: 1px solid var(--border-light);
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.15);
}

.btn-biometric:hover {
  transform: translateY(-2px);
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.3), 0 0 10px var(--accent);
}

.btn-biometric:active {
  transform: translateY(0);
}

/* Biometric Scanner HUD Overlay */
.biometric-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 30, 0.85);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.biometric-hud {
  position: relative;
  background: linear-gradient(145deg, rgba(16, 17, 36, 0.95), rgba(30, 31, 58, 0.8));
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius);
  padding: var(--space-34);
  width: 90%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(20, 184, 166, 0.15);
  overflow: hidden;
}

.hud-circle-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hud-scan-area {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px dashed rgba(20, 184, 166, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-21);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 20px rgba(20, 184, 166, 0.05);
}

.hud-scan-area::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.3);
  animation: spin 8s linear infinite;
}

.hud-fingerprint {
  color: var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hud-scanner-line {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent);
  animation: scan-move 2.5s ease-in-out infinite;
}

.hud-laser {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.2) 0%, transparent 60%);
  animation: laser-pulse 1.5s ease-in-out infinite;
}

.hud-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: var(--space-8);
  text-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

.hud-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-21);
  letter-spacing: 1px;
}

.hud-metrics {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-13);
  border: 1px solid rgba(255, 255, 255, 0.03);
  margin-bottom: var(--space-21);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.metric-item {
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.active-status {
  color: var(--green);
  font-weight: 700;
  text-shadow: 0 0 5px rgba(16, 185, 129, 0.4);
}

.btn-cancel-scan {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px var(--accent));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--accent));
  }
}

@keyframes scan-move {

  0%,
  100% {
    top: 15%;
  }

  50% {
    top: 85%;
  }
}

@keyframes laser-pulse {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.8;
  }
}

/* Accessibility Toggles inside Auth Section & Topbar */
.auth-toggles {
  margin-left: auto;
}

.auth-toggle-btn,
.topbar-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.auth-toggle-btn:hover,
.topbar-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
  transform: scale(1.05);
}

.topbar-actions {
  display: flex;
  gap: var(--space-8);
  margin-left: auto;
  margin-right: var(--space-21);
}

/* Floating Radial Menu Style */
.radial-menu-container {
  position: fixed;
  bottom: var(--space-21);
  right: var(--space-21);
  z-index: 9999;
}

.radial-trigger-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-size: var(--space-21);
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4), 0 0 15px rgba(20, 184, 166, 0.2);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-trigger-btn:hover {
  transform: scale(1.08);
}

.radial-trigger-btn.open {
  transform: rotate(45deg) scale(0.95);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.radial-items {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 180px;
  height: 180px;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  opacity: 0;
  transform: scale(0.3) translate(50px, 50px);
  transform-origin: bottom right;
}

.radial-items.open {
  opacity: 1;
  transform: scale(1) translate(0, 0);
  pointer-events: auto;
}

.radial-item-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card-2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--transition-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.radial-item-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--primary-light);
}

/* Arrange radial items symmetrically in a quarter circle */
.radial-item-btn:nth-child(1) {
  bottom: 70px;
  right: 0px;
}

.radial-item-btn:nth-child(2) {
  bottom: 62px;
  right: 52px;
}

.radial-item-btn:nth-child(3) {
  bottom: 42px;
  right: 100px;
}

.radial-item-btn:nth-child(4) {
  bottom: 10px;
  right: 135px;
}

.radial-item-btn:nth-child(5) {
  bottom: -30px;
  right: 160px;
  display: flex;
}

/* Dynamic Voice Console overlay & waves */
.voice-console-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 20, 0.9);
  backdrop-filter: blur(25px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-console {
  background: linear-gradient(135deg, #101229, #1C1E3C);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(99, 102, 241, 0.1);
  border-radius: var(--radius);
  padding: var(--space-34);
  width: 90%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.voice-wave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 60px;
  margin-bottom: var(--space-21);
}

.voice-wave-bar {
  width: 4px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: voice-wave-pulse 1.2s ease-in-out infinite;
}

.voice-wave-bar:nth-child(2) {
  animation-delay: 0.15s;
  height: 16px;
}

.voice-wave-bar:nth-child(3) {
  animation-delay: 0.3s;
  height: 32px;
}

.voice-wave-bar:nth-child(4) {
  animation-delay: 0.45s;
  height: 48px;
}

.voice-wave-bar:nth-child(5) {
  animation-delay: 0.3s;
  height: 32px;
}

.voice-wave-bar:nth-child(6) {
  animation-delay: 0.15s;
  height: 16px;
}

.voice-wave-bar:nth-child(7) {
  animation-delay: 0s;
  height: 8px;
}

@keyframes voice-wave-pulse {

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

  50% {
    transform: scaleY(1.7);
  }
}

.voice-console-title {
  color: #fff;
  letter-spacing: 2px;
  font-size: 1.15rem;
  margin-bottom: var(--space-8);
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.voice-console-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-21);
}

.voice-input-area {
  display: flex;
  background: var(--bg-card-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: 100%;
  margin-bottom: var(--space-13);
}

.voice-input-area input {
  flex: 1;
  padding: 12px;
  font-size: 0.875rem;
  color: white;
}

.voice-send-btn {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.voice-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-21);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.voice-suggestions button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
  font-size: 0.72rem;
}

.voice-suggestions button:hover {
  background: rgba(20, 184, 166, 0.1);
  border-color: var(--accent);
  color: white;
}

.voice-feedback {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: var(--space-13);
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-21);
}

.voice-close-btn {
  width: 100%;
  padding: 12px;
}

/* Confetti Burst Particle Canvas positioning */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* Focus indicator for superior accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* High Contrast Mode overrides */
.high-contrast {
  --bg: #000000 !important;
  --bg-2: #05050e !important;
  --bg-card: #0c0d1e !important;
  --bg-card-2: #14152b !important;
  --text: #ffffff !important;
  --text-muted: #e2e8f0 !important;
  --text-dim: #cbd5e1 !important;
  --border: rgba(255, 255, 255, 0.35) !important;
  --border-light: rgba(255, 255, 255, 0.5) !important;
  --primary: #818cf8 !important;
  --accent: #2dd4bf !important;
  --accent-2: #f472b6 !important;
}

.high-contrast .tilt-element {
  background: #0c0d1e !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.high-contrast .nav-item.active {
  background: #1e1b4b !important;
  border-left: 4px solid var(--accent) !important;
}

.high-contrast .input-wrap {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.high-contrast .stat-card {
  background: #14152b !important;
}

/* ========================================================
   MEDIA RESPONSIVENESS — FULL BREAKPOINT SYSTEM
   ======================================================== */

/* ---- XL: 1280px — Slightly tighter layout ---- */
@media (max-width: 1280px) {
  .stats-mini-grid {
    gap: var(--space-13);
  }
  .stat-value-large, .balance-amount {
    font-size: 1.45rem;
  }
  .overview-middle-section {
    grid-template-columns: 1.8fr 1.2fr;
  }
}

/* ---- LG: 1100px — Stacking Top section ---- */
@media (max-width: 1100px) {
  .overview-top-section {
    grid-template-columns: 1fr;
    gap: var(--space-21);
  }
  .stats-mini-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-13);
  }
  .overview-middle-section {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-13);
  }
  .timeline-container-card {
    padding: var(--space-21);
  }
  .main-content {
    padding: var(--space-21);
  }
}

/* ---- MD: 900px — Sidebar drawer, single column ---- */
@media (max-width: 900px) {
  .dashboard-section {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    z-index: 200;
    transition: left 0.35s cubic-bezier(0.25,1,0.5,1);
    box-shadow: 4px 0 40px rgba(0,0,0,0.5);
  }
  .sidebar.open { left: 0; }

  .menu-toggle { display: block; }

  .main-content {
    height: auto;
    min-height: 100vh;
    padding: var(--space-21);
  }

  .topbar {
    flex-wrap: wrap;
    gap: var(--space-13);
    margin-bottom: var(--space-21);
  }

  .topbar-title-section { order: 1; flex: 1; }
  .menu-toggle          { order: 0; }
  .topbar-actions       { order: 2; margin-left: auto; margin-right: 0; }
  .profile-dropdown-wrapper { order: 3; }

  .topbar-search { display: none; }

  .overview-middle-section {
    grid-template-columns: 1fr;
    gap: var(--space-13);
  }

  .stats-mini-grid {
    grid-template-columns: 1fr 1fr;
  }

  .right-widgets-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-13);
  }
}

/* ---- SM: 640px — Narrow tablets ---- */
@media (max-width: 640px) {
  :root { --space-34: 24px; --space-21: 16px; }

  .main-content { padding: var(--space-13); }

  .topbar { margin-bottom: var(--space-13); }

  .topbar-welcome  { font-size: 1.1rem; }
  .topbar-sub      { font-size: 0.75rem; }
  .topbar-user .user-info { display: none; }

  .stats-mini-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-13);
  }

  .stat-value-large, .balance-amount {
    font-size: 1.3rem;
  }

  .overview-middle-section {
    grid-template-columns: 1fr;
    gap: var(--space-13);
  }

  .right-widgets-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-13);
  }

  .timeline-container-card {
    padding: var(--space-13);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .action-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

/* ---- XS: 480px — Small phones ---- */
@media (max-width: 480px) {
  .stats-mini-grid {
    grid-template-columns: 1fr;
    gap: var(--space-13);
  }

  .right-widgets-stack {
    grid-template-columns: 1fr;
  }

  .stat-value-large, .balance-amount {
    font-size: 1.4rem;
  }

  .stat-card-header {
    gap: 8px;
  }

  .stat-icon-wrap {
    width: 34px;
    height: 34px;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .quick-action-item {
    padding: 8px 2px;
  }

  .action-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .quick-action-item span { font-size: 0.62rem; }

  .tx-timeline-item { padding: 10px 8px; gap: 10px; }
  .timeline-icon-wrap { width: 34px; height: 34px; }
  .tx-desc { font-size: 0.78rem; }
  .tx-amount { font-size: 0.82rem; }
  .tx-date-str { display: none; }

  .topbar-user .user-info { display: none; }

  .auth-footer-bar { flex-wrap: wrap; gap: var(--space-13); }
}