/* ═══════════════════════════════════════════════════════════════════════════
   BNY BENEFICIARY PORTAL — COMPLETE DESIGN SYSTEM
   Version 2.0 | Inter font | Bootstrap Icons
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── DESIGN TOKENS — PREMIUM TRICOLOR SYSTEM ──────────────────────────────────
   Inspired by the Indian flag: Saffron (energy/courage), Green (prosperity/growth),
   Royal Blue (trust/wisdom). Tuned for fintech-grade luxury — deep, jewel-tone,
   never washed-out. Each color has hover (h) and dark (d) variants.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  /* ═══ PRIMARY — Royal Indigo Blue (trust, authority, finance) ═══ */
  --c-primary:        #1e40af;     /* Deep royal blue */
  --c-primary-rgb:    30,64,175;
  --c-primary-h:      #2952c8;     /* Hover — slightly lighter */
  --c-primary-d:      #1e3a8a;     /* Pressed — deeper */
  --c-primary-soft:   #dbeafe;     /* Tint background */

  /* ═══ SECONDARY — Royal Saffron (energy, premium accent) ═══ */
  --c-secondary:      #ea7c1a;     /* Royal saffron — not orange, not yellow */
  --c-secondary-rgb:  234,124,26;
  --c-secondary-h:    #f48d2e;
  --c-secondary-d:    #c4661a;
  --c-secondary-soft: #fff1e0;

  /* ═══ ACCENT — Indian Green (prosperity, agriculture, growth) ═══ */
  --c-accent:         #0e7c4a;     /* Deep emerald-green — Indian flag green */
  --c-accent-rgb:     14,124,74;
  --c-accent-h:       #16955a;
  --c-accent-d:       #0a5e38;
  --c-accent-soft:    #d1fadf;

  /* ═══ Semantic — tuned to harmonise with tricolor base ═══ */
  --c-success:        #0e7c4a;     /* Same green as accent */
  --c-success-rgb:    14,124,74;
  --c-warning:        #ea7c1a;     /* Same saffron */
  --c-warning-rgb:    234,124,26;
  --c-danger:         #c0392b;     /* Premium crimson — not bright red */
  --c-danger-rgb:     192,57,43;
  --c-info:           #0c7489;     /* Deep teal — pairs with blue */
  --c-info-rgb:       12,116,137;
  --c-purple:         #6d28d9;     /* Royal purple for highlights */
  --c-purple-rgb:     109,40,217;

  /* ═══ Surfaces — warm-tinted whites for premium feel ═══ */
  --bg-base:          #f5f7fb;     /* Cool ivory — easier on eyes than pure white */
  --bg-card:          #ffffff;
  --bg-sidebar:       #0c1530;     /* Deep navy — almost royal-black */
  --bg-sidebar-hover: rgba(255,255,255,.06);
  --bg-sidebar-active:rgba(234,124,26,.18);   /* Saffron tint when active */
  --bg-topbar:        #ffffff;
  --bg-hover:         #f7f9fc;
  --bg-input:         #fafbfd;

  /* ═══ Borders ═══ */
  --border:           #e3e8f0;
  --border-light:     #eef1f6;
  --border-sidebar:   rgba(255,255,255,.07);

  /* ═══ Text ═══ */
  --text-base:        #0c1530;     /* Deep navy text — matches sidebar */
  --text-muted:       #5b6478;
  --text-light:       #9aa3b5;
  --text-sidebar:     rgba(255,255,255,.72);
  --text-sidebar-active: #ffffff;
  --text-on-primary:  #ffffff;

  /* ═══ Shadows — softer, more premium feel ═══ */
  --shadow-xs:  0 1px 2px rgba(12,21,48,.04);
  --shadow-sm:  0 2px 4px rgba(12,21,48,.06), 0 1px 2px rgba(12,21,48,.04);
  --shadow-md:  0 6px 12px rgba(12,21,48,.07), 0 2px 4px rgba(12,21,48,.05);
  --shadow-lg:  0 12px 24px rgba(12,21,48,.09), 0 4px 8px rgba(12,21,48,.05);
  --shadow-xl:  0 20px 40px rgba(12,21,48,.12), 0 8px 16px rgba(12,21,48,.06);
  --shadow-2xl: 0 30px 60px rgba(12,21,48,.22);
  --shadow-colored-primary:   0 6px 20px rgba(30,64,175,.32);
  --shadow-colored-secondary: 0 6px 20px rgba(234,124,26,.35);
  --shadow-colored-accent:    0 6px 20px rgba(14,124,74,.32);
  --shadow-colored-success:   0 6px 20px rgba(14,124,74,.32);

  /* ═══ Premium Gradients — for hero elements ═══ */
  --grad-tricolor:  linear-gradient(135deg, #ea7c1a 0%, #ffffff 50%, #0e7c4a 100%);
  --grad-saffron:   linear-gradient(135deg, #ea7c1a 0%, #f9b850 100%);
  --grad-green:     linear-gradient(135deg, #0e7c4a 0%, #16955a 100%);
  --grad-blue:      linear-gradient(135deg, #1e40af 0%, #2952c8 100%);
  --grad-royal:     linear-gradient(135deg, #1e40af 0%, #6d28d9 100%);
  --grad-sunset:    linear-gradient(135deg, #ea7c1a 0%, #c0392b 100%);
  --grad-card-warm: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
  --grad-wallet:    linear-gradient(135deg, #1e40af 0%, #0c1530 50%, #6d28d9 100%);

  /* Radii */
  --r-sm:   6px;
  --r:      10px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-pill: 9999px;

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

  /* Typography */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'SF Mono', 'Fira Code', monospace;

  /* Layout */
  --sidebar-w:   268px;
  --sidebar-col: 72px;
  --topbar-h:    68px;

  /* Motion */
  --ease:      cubic-bezier(.4,0,.2,1);
  --ease-out:  cubic-bezier(0,0,.2,1);
  --ease-in:   cubic-bezier(.4,0,1,1);
  --dur-fast:  150ms;
  --dur:       220ms;
  --dur-slow:  350ms;
}

/* ── DARK THEME — Premium Midnight Navy ─────────────────────────────────────── */
[data-theme="dark"] {
  --bg-base:    #060a18;
  --bg-card:    #0e1628;
  --bg-sidebar: #050912;
  --bg-topbar:  #0e1628;
  --bg-hover:   #141d33;
  --bg-input:   #141d33;

  --border:        #1f2a44;
  --border-light:  #182238;

  --text-base:  #e6eaf2;
  --text-muted: #8893a8;
  --text-light: #5a6680;

  /* Brighter primary in dark mode for contrast */
  --c-primary:     #4f7fff;
  --c-primary-rgb: 79,127,255;
  --c-primary-h:   #6b94ff;
  --c-primary-d:   #3a6be0;
  --c-primary-soft:rgba(79,127,255,.12);

  --c-secondary:   #ff9540;     /* Brighter saffron in dark */
  --c-secondary-rgb: 255,149,64;
  --c-secondary-h: #ffa55a;
  --c-secondary-soft: rgba(255,149,64,.12);

  --c-accent:      #2ec27e;     /* Brighter green in dark */
  --c-accent-rgb:  46,194,126;
  --c-accent-soft: rgba(46,194,126,.12);

  --c-success:     #2ec27e;
  --c-success-rgb: 46,194,126;
  --c-warning:     #ff9540;
  --c-warning-rgb: 255,149,64;

  --bg-sidebar-active: rgba(255,149,64,.18);

  --shadow-xs:  0 1px 2px rgba(0,0,0,.45);
  --shadow-sm:  0 2px 4px rgba(0,0,0,.5);
  --shadow-md:  0 6px 12px rgba(0,0,0,.55);
  --shadow-lg:  0 12px 24px rgba(0,0,0,.6);
  --shadow-xl:  0 20px 40px rgba(0,0,0,.7);

  --grad-card-warm: linear-gradient(135deg, #1a2238 0%, #0e1628 100%);
  --grad-wallet:    linear-gradient(135deg, #1e40af 0%, #050912 50%, #6d28d9 100%);
}

/* ── RESET & BASE ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-base);
  background: var(--bg-base);
  background-image:
    radial-gradient(circle at 0% 0%,   rgba(234,124,26,.04) 0%, transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(30,64,175,.04)  0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(14,124,74,.03) 0%, transparent 50%);
  background-attachment: fixed;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 0% 0%,   rgba(255,149,64,.05) 0%, transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(79,127,255,.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(46,194,126,.04) 0%, transparent 50%);
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--c-primary-d); }

img { max-width: 100%; height: auto; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── APP SHELL ──────────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left var(--dur-slow) var(--ease);
}

.app-shell.collapsed .app-main { margin-left: var(--sidebar-col); }

.content-area {
  flex: 1;
  padding: var(--sp-6);
  animation: pageIn var(--dur-slow) var(--ease-out) both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── SIDEBAR ────────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 1050;
  overflow: hidden;
  transition: width var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  box-shadow: 4px 0 24px rgba(0,0,0,.18);
}
/* Premium right-edge accent — saffron→white→green */
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 2px; height: 100%;
  background: linear-gradient(180deg,
    var(--c-secondary) 0%, var(--c-secondary) 33%,
    rgba(255,255,255,.6) 33%, rgba(255,255,255,.6) 66%,
    var(--c-accent) 66%, var(--c-accent) 100%);
  opacity: .6;
}

.app-shell.collapsed .sidebar { width: var(--sidebar-col); }

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-5);
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border-sidebar);
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--r-md);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-colored-secondary), inset 0 1px 0 rgba(255,255,255,.25);
    letter-spacing: -.5px;
    position: relative;
    overflow: hidden;
}
.brand-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 33%, rgba(255,255,255,.4) 33%, rgba(255,255,255,.4) 66%, rgba(14,124,74,.85) 66%);
  mix-blend-mode: overlay;
  opacity: .5;
}

.brand-text { overflow: hidden; }
.brand-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
}
.brand-sub {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.app-shell.collapsed .brand-text { display: none; }

/* User card in sidebar */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4);
  margin: var(--sp-3) var(--sp-3) 0;
  background: var(--bg-sidebar-hover);
  border: 1px solid var(--border-sidebar);
  border-radius: var(--r-md);
  overflow: hidden;
}
.sidebar-user-avatar {
  width: 40px; height: 40px;
  border-radius: var(--r);
  background: var(--grad-saffron);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(234,124,26,.4), inset 0 1px 0 rgba(255,255,255,.25);
}
.sidebar-user-info { overflow: hidden; }
.sidebar-user-name {
  font-size: 13px; font-weight: 600;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px;
  color: rgba(255,255,255,.45);
}
.app-shell.collapsed .sidebar-user { justify-content: center; padding: var(--sp-3); margin: var(--sp-3) var(--sp-2) 0; }
.app-shell.collapsed .sidebar-user-info { display: none; }

/* Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--sp-3) var(--sp-3) var(--sp-4);
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.25);
  padding: var(--sp-4) var(--sp-4) var(--sp-2);
  white-space: nowrap;
}
.app-shell.collapsed .nav-section-label { display: none; }

.nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

/* Nav Link */
.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px var(--sp-4);
  color: var(--text-sidebar);
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--bg-sidebar-hover);
  color: #fff;
}

.nav-link.active {
  background: var(--bg-sidebar-active);
  color: var(--text-sidebar-active);
  font-weight: 600;
  position: relative;
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: -12px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--c-secondary);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(234,124,26,.5);
}

.nav-link.active .nav-icon { color: var(--c-secondary); }

.nav-icon {
  font-size: 18px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease);
}

.nav-label { flex: 1; }

.nav-arrow {
  font-size: 12px;
  transition: transform var(--dur) var(--ease);
  opacity: .6;
}
.nav-link.expanded .nav-arrow { transform: rotate(90deg); }

.nav-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--c-danger);
  color: #fff;
  line-height: 1.4;
}

.app-shell.collapsed .nav-label,
.app-shell.collapsed .nav-arrow,
.app-shell.collapsed .nav-badge { display: none; }

.app-shell.collapsed .nav-link { justify-content: center; padding: 11px; }

/* Tooltip on collapsed */
.app-shell.collapsed .nav-link { position: relative; }
.app-shell.collapsed .nav-link::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%; transform: translateY(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}
.app-shell.collapsed .nav-link:hover::after { opacity: 1; }

/* Submenu */
.submenu {
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease);
  padding-left: var(--sp-3);
}
.submenu.open { max-height: 600px; }
.submenu .nav-link {
  font-size: 13px;
  padding: 8px var(--sp-4);
  color: rgba(255,255,255,.5);
}
.submenu .nav-link::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease);
}
.submenu .nav-link:hover::before,
.submenu .nav-link.active::before { background: var(--c-primary-h); }
.app-shell.collapsed .submenu { display: none; }

/* Sidebar footer */
.sidebar-footer {
  padding: var(--sp-4) var(--sp-3);
  border-top: 1px solid var(--border-sidebar);
}

/* ── TOPBAR ─────────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-6);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-xs);
  gap: var(--sp-4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,.85);
}
[data-theme="dark"] .topbar { background: rgba(14,22,40,.85); }

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.topbar-right { flex-shrink: 0; }

.btn-icon-round {
  width: 40px; height: 40px;
  border: none;
  background: var(--bg-hover);
  color: var(--text-base);
  border-radius: var(--r);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}
.btn-icon-round:hover { background: var(--border); color: var(--c-primary); }

.notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 8px; height: 8px;
  background: var(--c-danger);
  border-radius: 50%;
  border: 2px solid var(--bg-topbar);
}

/* Search */
.topbar-search {
  position: relative;
  width: 280px;
}
.topbar-search input {
  width: 100%;
  height: 40px;
  padding: 0 var(--sp-4) 0 42px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-input);
  color: var(--text-base);
  font-size: 13.5px;
  font-family: var(--font);
  transition: all var(--dur-fast) var(--ease);
}
.topbar-search input::placeholder { color: var(--text-light); }
.topbar-search input:focus {
  outline: none;
  border-color: var(--c-secondary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(234,124,26,.15);
}
.topbar-search .search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
  pointer-events: none;
}

/* User dropdown */
.user-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px 10px 5px 5px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  font-family: var(--font);
  color: var(--text-base);
}
.user-btn:hover { background: var(--border); }

.u-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-saffron);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 10px rgba(234,124,26,.35), inset 0 1px 0 rgba(255,255,255,.3);
}
.u-name  { font-size: 13px; font-weight: 600; color: var(--text-base); white-space: nowrap; }
.u-role  { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.u-caret { font-size: 14px; color: var(--text-muted); }

/* Dropdown */
.dropdown-wrap { position: relative; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.97);
  transform-origin: top right;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  z-index: 600;
  list-style: none;
}
.dropdown-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.dp-header {
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-2);
}
.dp-header strong { display: block; font-size: 14px; color: var(--text-base); }
.dp-header small  { font-size: 12px; color: var(--text-muted); }

.dp-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 9px var(--sp-3);
  color: var(--text-base);
  border-radius: var(--r);
  font-size: 13.5px;
  transition: background var(--dur-fast) var(--ease);
  cursor: pointer;
  text-decoration: none;
}
.dp-item:hover { background: var(--bg-hover); color: var(--text-base); }
.dp-item i { font-size: 17px; color: var(--text-muted); }
.dp-item.danger { color: var(--c-danger); }
.dp-item.danger i { color: var(--c-danger); }

.dp-sep { height: 1px; background: var(--border); margin: var(--sp-1) 0; }

/* Notif panel */
.notif-panel {
  min-width: 340px;
}
.notif-item {
  display: flex; gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r);
  transition: background var(--dur-fast) var(--ease);
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: rgba(var(--c-primary-rgb),.04); }
.notif-icon-wrap {
  width: 36px; height: 36px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.notif-item .notif-msg { font-size: 13px; color: var(--text-base); font-weight: 500; }
.notif-item .notif-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── PAGE HEADER ────────────────────────────────────────────────────────────── */
.page-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.page-hd-left { display: flex; align-items: center; gap: var(--sp-3); }
.page-hd-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(30,64,175,.15), rgba(30,64,175,.04));
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.5);
  border: 1px solid rgba(30,64,175,.1);
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-base);
  line-height: 1.2;
  margin: 0;
}
.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.page-hd-right { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  font-size: 12.5px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}
.breadcrumb-nav li { display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumb-nav li:not(:last-child)::after {
  content: '\F285';
  font-family: 'bootstrap-icons';
  color: var(--text-light);
  font-size: 10px;
}
.breadcrumb-nav a {
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--dur-fast) var(--ease);
}
.breadcrumb-nav a:hover { color: var(--c-primary); }
.breadcrumb-nav .bc-active { color: var(--text-base); font-weight: 500; }

/* ── CARDS — Premium glass-like surfaces ────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(30,64,175,.12);
}
.card-body  { padding: var(--sp-6); }
.card-header {
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  background: linear-gradient(180deg, rgba(247,249,252,.6), transparent);
}
[data-theme="dark"] .card-header {
  background: linear-gradient(180deg, rgba(20,29,51,.4), transparent);
}
.card-footer {
  padding: var(--sp-3) var(--sp-6);
  border-top: 1px solid var(--border);
  background: var(--bg-hover);
}
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-base);
  margin: 0;
  display: flex; align-items: center; gap: var(--sp-2);
}
.card-title i { font-size: 17px; }
.card-subtitle { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }

/* Stat Card — premium with top accent bar */
.stat-card {
  padding: var(--sp-5) var(--sp-6);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: currentColor;
  opacity: .15;
}
.stat-card::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  opacity: .04;
  background: currentColor;
}
.sc-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: var(--sp-3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.sc-label  { font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.sc-value  { font-size: 28px; font-weight: 800; color: var(--text-base); margin: var(--sp-1) 0; line-height: 1; letter-spacing: -.5px; }
.sc-footer { font-size: 12px; color: var(--text-muted); margin-top: var(--sp-1); }
.sc-change {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-pill);
  margin-top: var(--sp-2);
}
.sc-change.up   { background: rgba(14,124,74,.12); color: var(--c-success); }
.sc-change.down { background: rgba(192,57,43,.12); color: var(--c-danger);  }

/* Color variants for icons — premium gradient backgrounds */
.ic-primary   { background: linear-gradient(135deg, rgba(30,64,175,.15),  rgba(30,64,175,.05));  color: var(--c-primary);   }
.ic-success   { background: linear-gradient(135deg, rgba(14,124,74,.15),  rgba(14,124,74,.05));  color: var(--c-success);   }
.ic-warning   { background: linear-gradient(135deg, rgba(234,124,26,.18), rgba(234,124,26,.05)); color: var(--c-warning);   }
.ic-danger    { background: linear-gradient(135deg, rgba(192,57,43,.15),  rgba(192,57,43,.05));  color: var(--c-danger);    }
.ic-info      { background: linear-gradient(135deg, rgba(12,116,137,.15), rgba(12,116,137,.05)); color: var(--c-info);      }
.ic-purple    { background: linear-gradient(135deg, rgba(109,40,217,.15), rgba(109,40,217,.05)); color: var(--c-purple);    }
.ic-secondary { background: linear-gradient(135deg, rgba(234,124,26,.18), rgba(234,124,26,.05)); color: var(--c-secondary); }
.ic-accent    { background: linear-gradient(135deg, rgba(14,124,74,.15),  rgba(14,124,74,.05));  color: var(--c-accent);    }

/* ── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-5);
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn i { font-size: 16px; }

.btn-sm   { padding: 7px var(--sp-4); font-size: 12.5px; }
.btn-lg   { padding: 13px var(--sp-7); font-size: 15px; }
.btn-icon { padding: 10px; width: 40px; height: 40px; }
.btn-icon-sm { padding: 7px; width: 32px; height: 32px; }

/* Filled — Premium gradients with inset highlight for luxury feel */
.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: var(--shadow-colored-primary), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2952c8 0%, #3a6be0 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(30,64,175,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-success, .btn-accent {
  background: var(--grad-green);
  color: #fff;
  box-shadow: var(--shadow-colored-success), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-success:hover, .btn-accent:hover {
  background: linear-gradient(135deg, #16955a 0%, #1eaa68 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(14,124,74,.45), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-warning, .btn-saffron {
  background: var(--grad-saffron);
  color: #fff;
  box-shadow: var(--shadow-colored-secondary), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-warning:hover, .btn-saffron:hover {
  background: linear-gradient(135deg, #f48d2e 0%, #ffa55a 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(234,124,26,.5);
}
.btn-danger  {
  background: linear-gradient(135deg, #c0392b 0%, #d04434 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(192,57,43,.35), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-danger:hover  {
  background: linear-gradient(135deg, #a52f23 0%, #c0392b 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(192,57,43,.45);
}
.btn-info    {
  background: linear-gradient(135deg, #0c7489 0%, #168aa1 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(12,116,137,.35);
}
.btn-info:hover    {
  background: linear-gradient(135deg, #0a6478 0%, #0c7489 100%);
  color: #fff;
  transform: translateY(-1px);
}
.btn-purple  {
  background: linear-gradient(135deg, #6d28d9 0%, #8748e8 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(109,40,217,.35);
}
.btn-purple:hover  {
  background: linear-gradient(135deg, #5b1fb8 0%, #6d28d9 100%);
  color: #fff;
  transform: translateY(-1px);
}

/* Outlined */
.btn-outline-primary { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn-outline-primary:hover { background: rgba(var(--c-primary-rgb),.08); color: var(--c-primary); }
.btn-outline { border-color: var(--border); color: var(--text-base); background: var(--bg-card); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); background: rgba(var(--c-primary-rgb),.04); }

/* Ghost */
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-base); }

/* ── FORMS ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-base);
  margin-bottom: var(--sp-2);
}
.form-label .req { color: var(--c-danger); }

.form-control, .form-select {
  display: block;
  width: 100%;
  padding: 10px var(--sp-4);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-input);
  color: var(--text-base);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  appearance: none;
}
textarea.form-control { min-height: 100px; resize: vertical; line-height: 1.6; }
.form-control::placeholder { color: var(--text-light); }
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--c-secondary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(234,124,26,.15);
}
.form-control.is-invalid { border-color: var(--c-danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(192,57,43,.15); }

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: var(--sp-1); }
.form-error { font-size: 12px; color: var(--c-danger); margin-top: var(--sp-1); display: flex; align-items: center; gap: 4px; }

.field-validation-error { font-size: 12px; color: var(--c-danger); margin-top: var(--sp-1); display: block; }

.input-with-icon { position: relative; }
.input-with-icon .form-control { padding-left: 42px; }
.input-with-icon .iicon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 16px;
  pointer-events: none;
}

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--r) 0 0 var(--r); }
.input-group-text {
  padding: 0 var(--sp-4);
  background: var(--bg-hover);
  border: 1.5px solid var(--border);
  border-left: none;
  border-radius: 0 var(--r) var(--r) 0;
  display: flex; align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── TABLE ──────────────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: var(--sp-3) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
}
.table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  background: var(--bg-hover);
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--bg-hover); }
.table-responsive { overflow-x: auto; }

/* ── BADGES ─────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-primary   { background: rgba(30,64,175,.1);   color: var(--c-primary);   border-color: rgba(30,64,175,.2);   }
.badge-success   { background: rgba(14,124,74,.1);   color: var(--c-success);   border-color: rgba(14,124,74,.2);   }
.badge-warning   { background: rgba(234,124,26,.12); color: var(--c-warning);   border-color: rgba(234,124,26,.25); }
.badge-danger    { background: rgba(192,57,43,.1);   color: var(--c-danger);    border-color: rgba(192,57,43,.2);   }
.badge-info      { background: rgba(12,116,137,.1);  color: var(--c-info);      border-color: rgba(12,116,137,.2);  }
.badge-purple    { background: rgba(109,40,217,.1);  color: var(--c-purple);    border-color: rgba(109,40,217,.2);  }
.badge-secondary { background: var(--bg-hover);      color: var(--text-muted);  border-color: var(--border);        }
.badge-saffron   { background: rgba(234,124,26,.12); color: var(--c-secondary); border-color: rgba(234,124,26,.25); }
.badge-accent    { background: rgba(14,124,74,.1);   color: var(--c-accent);    border-color: rgba(14,124,74,.2);   }

/* ── ALERTS ─────────────────────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  border-left-width: 4px;
  font-size: 13.5px;
  margin-bottom: var(--sp-5);
  animation: slideDown var(--dur-slow) var(--ease-out) both;
  box-shadow: var(--shadow-xs);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(14,124,74,.06);  border-color: rgba(14,124,74,.2);  border-left-color: var(--c-success); color: #0a5e38; }
.alert-warning { background: rgba(234,124,26,.07); border-color: rgba(234,124,26,.25); border-left-color: var(--c-warning); color: #b85a0c; }
.alert-danger  { background: rgba(192,57,43,.06);  border-color: rgba(192,57,43,.2);  border-left-color: var(--c-danger);  color: #8a2218; }
.alert-info    { background: rgba(12,116,137,.06); border-color: rgba(12,116,137,.2); border-left-color: var(--c-info);    color: #0a5e6f; }
.alert-saffron { background: rgba(234,124,26,.07); border-color: rgba(234,124,26,.25); border-left-color: var(--c-secondary); color: #b85a0c; }
.alert-accent  { background: rgba(14,124,74,.06);  border-color: rgba(14,124,74,.2);  border-left-color: var(--c-accent);  color: #0a5e38; }
[data-theme="dark"] .alert-success { color: #5fd494; }
[data-theme="dark"] .alert-warning { color: #ffb474; }
[data-theme="dark"] .alert-danger  { color: #f08577; }
[data-theme="dark"] .alert-info    { color: #6dc8d9; }
[data-theme="dark"] .alert-saffron { color: #ffb474; }
[data-theme="dark"] .alert-accent  { color: #5fd494; }

/* ── PROGRESS ───────────────────────────────────────────────────────────────── */
.progress {
  height: 8px;
  background: var(--bg-hover);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: inherit;
  transition: width .6s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.progress-bar::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%);  }
}
.pb-primary { background: linear-gradient(90deg, var(--c-primary-d), var(--c-primary-h)); }
.pb-success { background: linear-gradient(90deg, var(--c-accent-d), var(--c-accent-h));   }
.pb-warning { background: linear-gradient(90deg, var(--c-secondary-d), var(--c-secondary-h)); }
.pb-danger  { background: linear-gradient(90deg, #a52f23, #d04434);  }
.pb-info    { background: linear-gradient(90deg, #0a6478, #168aa1);  }
.pb-saffron { background: linear-gradient(90deg, var(--c-secondary-d), var(--c-secondary-h)); }
.pb-accent  { background: linear-gradient(90deg, var(--c-accent-d), var(--c-accent-h));   }

/* ── ACTIVITY FEED ──────────────────────────────────────────────────────────── */
.activity-list { display: flex; flex-direction: column; }
.activity-item {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--dur-fast) var(--ease);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 40px; height: 40px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-size: 13.5px; font-weight: 600; color: var(--text-base); }
.activity-desc  { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.activity-time  { font-size: 11px; color: var(--text-light); margin-top: 3px; }
.activity-amount{
  font-size: 13.5px; font-weight: 700;
  color: var(--text-base);
  white-space: nowrap;
}

/* ── QUICK ACTIONS ──────────────────────────────────────────────────────────── */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp-3);
}
.qa-card {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--sp-5) var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text-base);
  transition: all var(--dur) var(--ease);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.qa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.qa-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(234,124,26,.3);
  color: var(--text-base);
}
.qa-card:hover::before { transform: scaleX(1); }
.qa-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: var(--sp-3);
  transition: transform var(--dur) var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.qa-card:hover .qa-icon { transform: scale(1.12) rotate(-4deg); }
.qa-title { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.qa-desc  { font-size: 11px; color: var(--text-muted); }

/* ── WALLET CARD — Premium Hero Element ─────────────────────────────────────── */
.wallet-card {
  background: var(--grad-wallet);
  border-radius: var(--r-2xl);
  padding: var(--sp-7) var(--sp-7);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(12,21,48,.45), inset 0 1px 0 rgba(255,255,255,.08);
}
.wallet-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(234,124,26,.35) 0%, transparent 65%);
  border-radius: 50%;
}
.wallet-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(14,124,74,.28) 0%, transparent 65%);
  border-radius: 50%;
}
.wallet-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .7;
  margin-bottom: var(--sp-2);
  position: relative;
  z-index: 1;
}
.wallet-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: var(--sp-5);
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ffffff 0%, #ffd9ad 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wallet-amount span { font-size: 24px; font-weight: 600; opacity: .8; }
.wallet-stats {
  display: flex;
  gap: var(--sp-7);
  position: relative;
  z-index: 1;
}
.wallet-stat-label {
  font-size: 11px;
  opacity: .55;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.wallet-stat-val {
  font-size: 17px;
  font-weight: 700;
  margin-top: 3px;
}
.wallet-badge {
  position: absolute; top: var(--sp-6); right: var(--sp-6);
  background: linear-gradient(135deg, rgba(234,124,26,.25), rgba(234,124,26,.1));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(234,124,26,.4);
  border-radius: var(--r-pill);
  padding: 5px 16px;
  font-size: 11px; font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(234,124,26,.3);
}

/* ── PRODUCT CARDS ──────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-xs);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(234,124,26,.3);
}
.product-img {
  height: 180px;
  background: linear-gradient(135deg, rgba(234,124,26,.04), rgba(14,124,74,.04));
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  color: var(--c-secondary);
  position: relative;
  overflow: hidden;
}
.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 50%, rgba(0,0,0,.04));
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.pb-sale { background: linear-gradient(135deg,#c0392b,#d04434); color: #fff; }
.pb-new  { background: var(--grad-green);   color: #fff; }
.pb-hot  { background: var(--grad-saffron); color: #fff; }

.product-body { padding: var(--sp-4) var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.product-cat   { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-secondary); font-weight: 700; }
.product-name  { font-size: 15px; font-weight: 700; color: var(--text-base); margin: var(--sp-1) 0 var(--sp-2); letter-spacing: -.2px; }
.product-desc  { font-size: 12.5px; color: var(--text-muted); flex: 1; line-height: 1.5; }
.product-rating{ display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); margin-top: var(--sp-2); }
.product-rating .stars { color: var(--c-secondary); }
.product-price { margin-top: var(--sp-3); }
.price-current { font-size: 22px; font-weight: 800; color: var(--c-accent); letter-spacing: -.5px; }
.price-was     { font-size: 13px; color: var(--text-light); text-decoration: line-through; margin-left: var(--sp-2); }
.product-footer{ padding: var(--sp-3) var(--sp-5); border-top: 1px solid var(--border); background: var(--bg-hover); }

/* ── CLAIM STATUS ───────────────────────────────────────────────────────────── */
.claim-row {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--dur-fast) var(--ease);
}
.claim-row:last-child { border-bottom: none; }
.claim-row:hover { background: var(--bg-hover); }
.claim-info { flex: 1; min-width: 0; }
.claim-id   { font-size: 13px; font-weight: 700; color: var(--text-base); font-family: var(--font-mono); }
.claim-desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.claim-amount { font-size: 15px; font-weight: 700; color: var(--text-base); white-space: nowrap; }
.claim-progress-wrap { width: 120px; }

/* ── UPCOMING PAYOUTS ───────────────────────────────────────────────────────── */
.payout-item {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--border-light);
}
.payout-item:last-child { border-bottom: none; }
.payout-icon { width: 40px; height: 40px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.payout-info { flex: 1; min-width: 0; }
.payout-label{ font-size: 13.5px; font-weight: 600; color: var(--text-base); }
.payout-date { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.payout-amount{ font-size: 16px; font-weight: 800; color: var(--c-success); white-space: nowrap; }

/* ── CRYPTO ─────────────────────────────────────────────────────────────────── */
.crypto-card {
  padding: var(--sp-5);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex; align-items: center; gap: var(--sp-4);
  transition: all var(--dur) var(--ease);
}
.crypto-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.crypto-icon { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.crypto-sym  { font-size: 14px; font-weight: 800; color: var(--text-base); }
.crypto-name { font-size: 12px; color: var(--text-muted); }
.crypto-bal  { font-size: 15px; font-weight: 700; color: var(--text-base); }
.crypto-usd  { font-size: 12px; color: var(--text-muted); }
.crypto-change { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); }
.change-up   { background: rgba(var(--c-success-rgb),.12); color: var(--c-success); }
.change-down { background: rgba(var(--c-danger-rgb),.12);  color: var(--c-danger);  }

/* ── TICKER ─────────────────────────────────────────────────────────────────── */
.ticker-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-6);
  overflow-x: auto;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}
.ticker-item { display: flex; align-items: center; gap: var(--sp-2); }
.ticker-sym  { font-size: 12px; font-weight: 800; color: var(--text-base); }
.ticker-price{ font-size: 12px; color: var(--text-muted); }
.ticker-chg  { font-size: 11px; font-weight: 700; }

/* ── PROFILE ────────────────────────────────────────────────────────────────── */
.profile-header {
  background: var(--grad-wallet);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: var(--sp-9) var(--sp-7) var(--sp-7);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -50px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(234,124,26,.3), transparent 65%);
  border-radius: 50%;
}
.profile-header::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(14,124,74,.25), transparent 65%);
  border-radius: 50%;
}
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--grad-saffron);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800;
  color: #fff;
  margin: 0 auto var(--sp-4);
  border: 4px solid rgba(255,255,255,.4);
  box-shadow: 0 12px 32px rgba(234,124,26,.45), inset 0 2px 0 rgba(255,255,255,.3);
  position: relative;
  z-index: 1;
}
.profile-name  { font-size: 24px; font-weight: 800; position: relative; z-index: 1; letter-spacing: -.4px; }
.profile-id    { font-size: 13px; opacity: .75; margin-top: var(--sp-1); font-family: var(--font-mono); position: relative; z-index: 1; }
.profile-tabs  {
  display: flex; gap: var(--sp-2);
  background: var(--bg-hover);
  border-radius: var(--r-lg);
  padding: var(--sp-1);
  margin-bottom: var(--sp-5);
}
.profile-tab {
  flex: 1; padding: 9px var(--sp-3);
  text-align: center;
  border-radius: var(--r);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease);
  font-family: var(--font);
}
.profile-tab.active {
  background: var(--bg-card);
  color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}

/* ── STRENGTH METER ─────────────────────────────────────────────────────────── */
.strength-meter { display: flex; gap: 3px; }
.strength-bar {
  flex: 1; height: 5px; border-radius: var(--r-pill);
  background: var(--border);
  transition: background var(--dur) var(--ease);
}
.strength-bar.filled-danger  { background: var(--c-danger);  }
.strength-bar.filled-warning { background: var(--c-warning); }
.strength-bar.filled-success { background: var(--c-success); }

/* ── PAGINATION ─────────────────────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; gap: var(--sp-1);
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px; height: 36px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: var(--r);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease);
  font-family: var(--font);
}
.page-btn:hover { border-color: var(--c-primary); color: var(--c-primary); background: rgba(var(--c-primary-rgb),.06); }
.page-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); box-shadow: var(--shadow-colored-primary); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── SECTION GRID HELPERS ───────────────────────────────────────────────────── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.g-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-5); }
.col-1-3 { grid-column: span 1; }
.col-2-3 { grid-column: span 2; }
@media (max-width: 768px) { .g2,.g3,.g4 { grid-template-columns: 1fr; } .col-2-3 { grid-column: span 1; } }
@media (max-width: 992px) { .g3,.g4 { grid-template-columns: 1fr 1fr; } }

/* ── LOADER ─────────────────────────────────────────────────────────────────── */
.page-loader {
  position: fixed; inset: 0;
  background: var(--bg-base);
  z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--sp-4);
  transition: opacity var(--dur-slow) var(--ease);
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo {
  width: 64px; height: 64px;
  background: var(--grad-saffron);
  border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: #fff;
  animation: pulse 1.5s ease-in-out infinite;
  box-shadow: 0 12px 32px rgba(234,124,26,.4), inset 0 1px 0 rgba(255,255,255,.3);
  position: relative;
  overflow: hidden;
}
.loader-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 33%, rgba(255,255,255,.4) 33%, rgba(255,255,255,.4) 66%, rgba(14,124,74,.85) 66%);
  mix-blend-mode: overlay;
  opacity: .5;
}
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234,124,26,.5); }
  50%      { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(234,124,26,0); }
}
.loader-bar {
  width: 200px; height: 3px;
  background: var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--c-secondary), var(--c-accent), var(--c-primary));
  animation: load 1.4s ease-in-out infinite;
}
@keyframes load {
  0%   { width: 0%; margin-left: 0; }
  50%  { width: 80%; margin-left: 10%; }
  100% { width: 0%; margin-left: 100%; }
}
.loader-text { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */
.app-footer {
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-3);
  font-size: 12.5px; color: var(--text-muted);
}
.footer-links { display: flex; gap: var(--sp-4); }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--c-primary); }

/* ── OVERLAY (mobile sidebar) ───────────────────────────────────────────────── */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1040;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
  backdrop-filter: blur(2px);
}
.sidebar-overlay.show { opacity: 1; pointer-events: auto; }

/* ── UTILITY ────────────────────────────────────────────────────────────────── */
.d-flex  { display: flex;  }
.d-grid  { display: grid;  }
.d-none  { display: none;  }
.d-block { display: block; }
.align-center { align-items: center;    }
.align-start  { align-items: flex-start;}
.just-between { justify-content: space-between; }
.just-center  { justify-content: center; }
.just-end     { justify-content: flex-end; }
.flex-1  { flex: 1; }
.flex-col{ flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); } .gap-6 { gap: var(--sp-6); }

.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.ms-auto { margin-left: auto; }
.me-auto { margin-right: auto; }
.me-2 { margin-right: var(--sp-2); }
.me-3 { margin-right: var(--sp-3); }

.p-0 { padding: 0 !important; }
.p-4 { padding: var(--sp-4); }
.p-5 { padding: var(--sp-5); }
.p-6 { padding: var(--sp-6); }
.px-5 { padding-left: var(--sp-5); padding-right: var(--sp-5); }
.py-4 { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }

.w-100 { width: 100%; }
.mw-100 { max-width: 100%; }

.text-center { text-align: center; }
.text-end    { text-align: right;  }
.text-start  { text-align: left;   }
.text-muted  { color: var(--text-muted); }
.text-light  { color: var(--text-light); }
.text-primary{ color: var(--c-primary); }
.text-success{ color: var(--c-success); }
.text-warning{ color: var(--c-warning); }
.text-danger { color: var(--c-danger);  }
.text-info   { color: var(--c-info);    }
.text-white  { color: #fff !important;  }

.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.fw-500 { font-weight: 500; }
.fw-400 { font-weight: 400; }

.fs-11 { font-size: 11px; } .fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; } .fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; } .fs-24 { font-size: 24px; }

.font-mono { font-family: var(--font-mono); }

.rounded      { border-radius: var(--r);    }
.rounded-lg   { border-radius: var(--r-lg); }
.rounded-pill { border-radius: var(--r-pill);}
.rounded-circle { border-radius: 50%; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cursor-pointer { cursor: pointer; }

.empty-state {
  text-align: center; padding: var(--sp-10) var(--sp-6);
  color: var(--text-muted);
}
.empty-state i { font-size: 52px; display: block; margin-bottom: var(--sp-4); opacity: .35; }
.empty-state h4 { font-size: 17px; color: var(--text-base); margin-bottom: var(--sp-2); }

/* Verified badge — Indian green */
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, rgba(14,124,74,.12), rgba(14,124,74,.05));
  color: var(--c-accent);
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  border: 1px solid rgba(14,124,74,.2);
  text-transform: uppercase; letter-spacing: .04em;
}

/* Tricolor accent stripe — for hero sections */
.tricolor-stripe {
  display: flex;
  height: 4px;
  border-radius: var(--r-pill);
  overflow: hidden;
}
.tricolor-stripe::before, .tricolor-stripe::after, .tricolor-stripe span {
  content: ''; flex: 1; height: 100%;
}
.tricolor-stripe::before { background: var(--c-secondary); }
.tricolor-stripe span    { background: #ffffff; }
.tricolor-stripe::after  { background: var(--c-accent); }

/* Premium gradient text utility */
.text-gradient-saffron {
  background: var(--grad-saffron);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-blue {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-saffron { color: var(--c-secondary); }
.text-accent  { color: var(--c-accent);    }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-2xl);
  }
  .app-main,
  .app-shell.collapsed .app-main { margin-left: 0; }
  .topbar-search { display: none; }
}

@media (max-width: 768px) {
  .content-area { padding: var(--sp-4); }
  .topbar { padding: 0 var(--sp-4); gap: var(--sp-3); }
  .page-title { font-size: 18px; }
  .wallet-card { padding: var(--sp-5); }
  .wallet-amount { font-size: 28px; }
  .wallet-stats { gap: var(--sp-4); }
  .g2,.g3,.g4 { grid-template-columns: 1fr; }
  .u-name,.u-role { display: none; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 480px) {
  .content-area { padding: var(--sp-3); }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hd { flex-direction: column; align-items: flex-start; }
}
