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

:root {
  --radius: 0.75rem;
  --background: #f8f9fc;
  --foreground: #1a1f36;

  --navy: #0A1F44;
  --royal: #154EC1;
  --gold: #D4AF37;
  --gold-light: #dfc066;
  --gold-foreground: #0A1F44;

  --card: #ffffff;
  --card-foreground: #1a1f36;
  --popover: #ffffff;
  --popover-foreground: #1a1f36;

  --primary: #0A1F44;
  --primary-foreground: #fcfcfd;
  --secondary: #f0f2f7;
  --secondary-foreground: #0A1F44;
  --muted: #f0f2f7;
  --muted-foreground: #6b7280;
  --accent: #D4AF37;
  --accent-foreground: #0A1F44;
  --destructive: #ef4444;
  --destructive-foreground: #fcfcfd;
  --border: #e2e6ef;
  --input: #e2e6ef;
  --ring: #154EC1;
  --card-border: #e2e6ef;

  --shadow-elegant: 0 20px 60px -20px rgba(10,31,68,0.25);
  --shadow-gold: 0 12px 40px -10px rgba(212,175,55,0.5);
  --gradient-navy: linear-gradient(135deg, #0A1F44 0%, #154EC1 100%);
  --gradient-gold: linear-gradient(135deg, #D4AF37, #E8C84A);
  --gradient-hero: linear-gradient(135deg, #0A1F44 0%, #0F3A8C 60%, #154EC1 100%);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== TEXT COLORS ===== */
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: #fff; }
.text-muted { color: var(--muted-foreground); }
.text-success { color: #10b981; }
.text-danger { color: var(--destructive); }
.text-warning { color: #f59e0b; }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-white\/75 { color: rgba(255,255,255,0.75); }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== BACKGROUNDS ===== */
.bg-navy { background: var(--navy); }
.bg-royal { background: var(--royal); }
.bg-gold { background: var(--gold); }
.bg-card { background: var(--card); }
.bg-muted { background: var(--muted); }
.bg-secondary { background: var(--secondary); }
.bg-background { background: var(--background); }
.bg-gradient-navy { background: var(--gradient-navy); }
.bg-gradient-gold { background: var(--gradient-gold); }
.bg-gradient-hero { background: var(--gradient-hero); }
.bg-white\/5 { background: rgba(255,255,255,0.05); }
.bg-white\/10 { background: rgba(255,255,255,0.1); }
.bg-gold\/15 { background: rgba(212,175,55,0.15); }
.bg-gold\/20 { background: rgba(212,175,55,0.2); }

/* ===== BORDERS ===== */
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-white\/15 { border-color: rgba(255,255,255,0.15); }
.border-border { border-color: var(--border); }
.border-input { border-color: var(--input); }

/* ===== SHADOWS ===== */
.shadow { box-shadow: 0 1px 3px rgba(10,31,68,0.08); }
.shadow-elegant { box-shadow: var(--shadow-elegant); }
.shadow-gold { box-shadow: var(--shadow-gold); }
.shadow-inner { box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }

/* ===== RADIUS ===== */
.rounded-sm { border-radius: calc(var(--radius) - 4px); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: calc(var(--radius) + 8px); }
.rounded-3xl { border-radius: calc(var(--radius) + 16px); }
.rounded-full { border-radius: 9999px; }

/* ===== GLASS ===== */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14);
}
.glass-light {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
}
.gold-border {
  border-color: rgba(212,175,55,0.5) !important;
}
.hover\:gold-border:hover {
  border-color: rgba(212,175,55,0.5) !important;
}

/* ===== GRID PATTERN ===== */
.grid-pattern {
  background-image:
    linear-gradient(rgba(212,175,55,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ===== LAYOUT ===== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ===== SPACING ===== */
.p-0 { padding: 0; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.pt-24 { padding-top: 6rem; }
.pb-32 { padding-bottom: 8rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-auto { margin-top: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-auto { margin-left: auto; }

/* ===== SIZES ===== */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-60 { height: 15rem; }
.h-80 { height: 20rem; }
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-sm { max-width: 24rem; }
.max-w-xl { max-width: 36rem; }

/* ===== TYPOGRAPHY ===== */
.text-\[10px\] { font-size: 0.625rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.05; }
.text-6xl { font-size: 3.75rem; line-height: 1.05; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.leading-\[1\.05\] { line-height: 1.05; }
.leading-none { line-height: 1; }
.whitespace-nowrap { white-space: nowrap; }
.font-mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; }
.font-display { font-family: var(--font-display); letter-spacing: -0.02em; }
.normal-case { text-transform: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  transition: all 0.2s;
  line-height: 1;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--gradient-gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(212,175,55,0.5); color: var(--gold); }
.btn-glass {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-glass:hover { border-color: rgba(212,175,55,0.5); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.5rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--destructive); color: #fff; }
.btn-success { background: #10b981; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn-outline:hover { border-color: var(--gold); }

/* ===== FORM ===== */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background: var(--background);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(21,78,193,0.1);
}
textarea.input { resize: vertical; min-height: 100px; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
label { font-size: 0.875rem; font-weight: 500; display: block; margin-bottom: 0.5rem; }
.form-group { margin-bottom: 1.25rem; }

/* ===== CARD ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.card:hover { border-color: rgba(212,175,55,0.5); }
.card-header { margin-bottom: 1rem; }
.card-title { font-family: var(--font-display); font-size: 1.25rem; }
.card-desc { color: var(--muted-foreground); font-size: 0.875rem; margin-top: 0.25rem; }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}
.badge-gold { background: rgba(212,175,55,0.15); color: var(--gold); }
.badge-success { background: rgba(16,185,129,0.1); color: #10b981; }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--destructive); }
.badge-warning { background: rgba(245,158,11,0.1); color: #f59e0b; }
.badge-navy { background: rgba(10,31,68,0.1); color: var(--navy); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(240,242,247,0.5); }

/* ===== SIDEBAR ===== */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.sidebar-logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--gradient-gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1rem;
}
.sidebar-nav { flex: 1; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  margin-bottom: 0.125rem;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}
.sidebar-upgrade {
  margin-top: auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--gradient-gold);
  color: var(--navy);
}
.sidebar-upgrade h4 { font-family: var(--font-display); font-size: 1rem; }
.sidebar-upgrade p { font-size: 0.75rem; opacity: 0.8; margin-top: 0.25rem; }
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dashboard-header {
  height: 64px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashboard-content {
  padding: 1.5rem 2rem;
  flex: 1;
  overflow-y: auto;
}

/* ===== STATS ===== */
.stats-grid { display: grid; gap: 1.5rem; }
.stats-2 { grid-template-columns: repeat(2, 1fr); }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
}
.stat-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.stat-card .label { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.75rem; }
.stat-card .value { font-family: var(--font-display); font-size: 1.875rem; margin-top: 0.25rem; line-height: 1.2; }
.stat-card .change { font-size: 0.75rem; margin-top: 0.25rem; }

/* ===== ALERT ===== */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.alert-info { background: rgba(21,78,193,0.08); border-color: rgba(21,78,193,0.2); color: var(--royal); }
.alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); color: #10b981; }
.alert-danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.2); color: var(--destructive); }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); color: #f59e0b; }

/* ===== BANK CARD ===== */
.bank-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 1.5rem;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-elegant);
}
.bank-card-black { background: #0a0a0f; color: #fff; }
.bank-card-gold { background: var(--gradient-gold); color: var(--navy); }
.bank-card-navy { background: var(--gradient-navy); color: #fff; }
.bank-card-platinum { background: linear-gradient(135deg, #e8eaed, #c0c4cc, #a8adb8); color: #1a1f36; }
.bank-card-rosegold { background: linear-gradient(135deg, #d4a59a, #c48e82, #b8776a); color: #fff; }
.bank-card-glare {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.bank-card-glare .glare-1 {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(212,175,55,0.3);
  filter: blur(64px);
}
.bank-card-glare .glare-2 {
  position: absolute;
  bottom: -6rem;
  left: -2.5rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: rgba(21,78,193,0.4);
  filter: blur(64px);
}
.bank-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  flex: 1;
}
.bank-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: auto; }
.bank-card-type { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.3em; opacity: 0.7; }
.bank-card-name { font-family: var(--font-display); font-size: 1.25rem; margin-top: 0.25rem; }
.bank-card-chip {
  width: 2.5rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background: var(--gradient-gold);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.bank-card-number { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 1.125rem; letter-spacing: 0.1em; margin-top: 0.5rem; }
.bank-card-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 0.5rem; }
.bank-card-footer .field p:first-child { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
.bank-card-footer .field p:last-child { font-weight: 500; font-size: 0.75rem; }
.bank-card-network { font-family: var(--font-display); color: var(--gold); font-size: 1rem; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--gradient-navy);
  color: #fff;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.page-header .subtitle {
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 500;
}
.page-header h1 { font-family: var(--font-display); font-size: 3rem; margin-top: 0.75rem; max-width: 48rem; }
.page-header p { color: rgba(255,255,255,0.75); max-width: 36rem; margin-top: 1rem; font-size: 1rem; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab:hover { color: var(--foreground); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ===== TOGGLE ===== */
.toggle-group {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--radius);
  background: var(--muted);
}
.toggle-btn {
  padding: 0.375rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted-foreground);
  background: transparent;
}
.toggle-btn.active {
  background: var(--navy);
  color: #fff;
}

/* ===== PROGRESS ===== */
.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--gradient-gold);
  transition: width 0.5s;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal {
  background: var(--card);
  border-radius: calc(var(--radius) + 8px);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elegant);
}
.modal h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; }

/* ===== FLASH ===== */
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.flash-success {
  background: rgba(16,185,129,0.1);
  color: #10b981;
  border: 1px solid rgba(16,185,129,0.2);
}
.flash-error {
  background: rgba(239,68,68,0.1);
  color: var(--destructive);
  border: 1px solid rgba(239,68,68,0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(-6deg); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.7s ease-out both; }

/* ===== HERO SLIDESHOW ===== */
.hero-slideshow {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(10,31,68,0.85) 0%, rgba(10,31,68,0.65) 40%, rgba(10,31,68,0.4) 100%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(212,175,55,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 3;
  height: 100vh;
  display: flex;
  align-items: center;
}
.hero-dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.75rem;
}
.hero-dot {
  width: 3rem;
  height: 0.25rem;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
}
.hero-dot.active {
  background: rgba(255,255,255,0.5);
  width: 4rem;
}
.hero-dot.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: dot-progress 6s linear forwards;
}
@keyframes dot-progress {
  from { width: 0; }
  to { width: 100%; }
}
.hero-dot:hover { background: rgba(255,255,255,0.6); }

/* ===== FLOATING CREDIT CARD ===== */
.floating-card {
  position: absolute;
  border-radius: 1rem;
  padding: 1.25rem;
  width: 220px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: float-card 8s ease-in-out infinite;
}
.floating-card-1 {
  top: 15%;
  right: 8%;
  animation-delay: 0s;
  background: rgba(10,31,68,0.7);
  color: #fff;
}
.floating-card-2 {
  bottom: 20%;
  right: 15%;
  animation-delay: -3s;
  background: rgba(212,175,55,0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(212,175,55,0.3);
}
.floating-card-3 {
  top: 45%;
  right: 20%;
  animation-delay: -6s;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(1deg); }
  66% { transform: translateY(-8px) rotate(-1deg); }
}

/* ===== LIVE INDICATOR ===== */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  font-size: 0.75rem;
  color: #10b981;
}
.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10b981;
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== STAT TICKER ===== */
.stat-ticker {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat-ticker-item { text-align: center; }
.stat-ticker-value {
  font-family: var(--font-display);
  font-size: 2rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat-ticker-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 0.125rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== GLASS METRIC CARDS ===== */
.metric-glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.3s;
}
.metric-glass:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-2px);
}
.metric-glass .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

/* ===== FEATURE CARD MODERN ===== */
.feature-card-modern {
  position: relative;
  padding: 2rem;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card-modern:hover::before {
  transform: scaleX(1);
}
.feature-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
  border-color: rgba(212,175,55,0.3);
}

/* ===== SHIMMER BUTTON ===== */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,0.15) 50%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(25deg);
  transition: transform 0.6s;
}
.btn-shimmer:hover::after {
  transform: translateX(100%) rotate(25deg);
}

/* ===== PARTICLE SPARKLE ===== */
.particle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}
@keyframes particle-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

@media (max-width: 1024px) {
  .floating-card { display: none; }
  .hero-slideshow { min-height: 80vh; }
  .hero-content { height: 80vh; }
  .stat-ticker { gap: 1.5rem; }
  .stat-ticker-value { font-size: 1.5rem; }
}
@media (max-width: 767px) {
  .hero-slideshow { min-height: calc(100vh + 64px); }
  .hero-content { height: calc(100vh + 64px); padding-top: 0; align-items: flex-start; }
  .hero-slide img { object-position: center 30%; }
  .stat-ticker { flex-wrap: wrap; gap: 1rem; padding-bottom: 2rem; }
  .stat-ticker-item { flex: 1; min-width: 80px; }
  .stat-ticker-value { font-size: 1.25rem; }
  .hero-dots { bottom: 1.5rem; }
  .hero-dot { width: 2rem; }
  .hero-dot.active { width: 2.5rem; }
  header {
    background: var(--navy) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: static !important;
    top: auto !important;
  }
  .hero-content .container { padding-top: 18rem !important; }
  .hero-content h1 { font-size: 2.25rem !important; margin-top: 0.75rem !important; }
  .hero-content p { font-size: 0.9375rem !important; }
  .hero-content .btn-lg { padding: 0.75rem 1.25rem !important; font-size: 0.875rem; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(212,175,55,0.3); }
  50% { box-shadow: 0 0 40px rgba(212,175,55,0.6); }
}
@keyframes blur-expand {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== UTILITIES ===== */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-1\.5 { top: 0.375rem; }
.top-6 { top: 1.5rem; }
.top-8 { top: 2rem; }
.top-10 { top: 2.5rem; }
.right-0 { right: 0; }
.right-1\.5 { right: 0.375rem; }
.right-6 { right: 1.5rem; }
.right-20 { right: 5rem; }
.right-32 { right: 8rem; }
.bottom-0 { bottom: 0; }
.bottom-20 { bottom: 5rem; }
.left-0 { left: 0; }
.left-10 { left: 2.5rem; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.object-cover { object-fit: cover; }
.object-cover-90 { object-fit: cover; opacity: 0.9; }
.pointer-events-none { pointer-events: none; }
.opacity-0 { opacity: 0; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.grid-place-items-center { display: grid; place-items: center; }
.place-items-center { place-items: center; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.scale-\[1\.02\] { transform: scale(1.02); }

/* ===== TRANSITIONS ===== */
.transition-all { transition: all 0.2s; }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-transform { transition: transform 0.2s; }
.transition-shadow { transition: box-shadow 0.2s; }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.hover\:text-gold:hover { color: var(--gold); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .md\:flex-row { flex-direction: row; }
  .md\:mt-0 { margin-top: 0; }
}
@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:col-span-2 { grid-column: span 2; }
  .sidebar-overlay { display: none !important; }
}
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); position: fixed; z-index: 200; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .page-header h1 { font-size: 2.5rem; }
  .stats-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-3 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-content { padding: 1rem; }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; backdrop-filter: blur(4px); }
  .sidebar-overlay.show { display: block; }
  .hamburger { display: flex !important; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .md-main-pad { padding-left: 0 !important; }
}
@media (max-width: 767px) {
  .page-header h1 { font-size: 2rem; }
  .container { padding: 0 1rem; }
  .dashboard-content { padding: 1rem; }
  .stats-4, .stats-3, .stats-2 { grid-template-columns: 1fr; }
  .text-4xl { font-size: 1.875rem; }
  .text-5xl { font-size: 2.25rem; }
  .text-6xl { font-size: 2.5rem; }
  .py-28 { padding-top: 4rem; padding-bottom: 4rem; }
  .py-24 { padding-top: 3rem; padding-bottom: 3rem; }
  .py-20 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* ===== MODERN TOGGLE SWITCH ===== */
.toggle-switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--muted-foreground);
  border-radius: 9999px;
  transition: all 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 1.125rem;
  width: 1.125rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--gradient-gold);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(1.25rem);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--secondary);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--muted); }
.hamburger span {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ===== ENHANCED MODAL ===== */
.modal-overlay {
  animation: modal-fade-in 0.2s ease-out;
}
.modal {
  animation: modal-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== TABLE ROW ENHANCED ===== */
.table-row-hover td { transition: background 0.15s; }
.table-row-hover:hover td { background: rgba(212,175,55,0.04); }
table th { white-space: nowrap; }
table td { vertical-align: middle; }

/* ===== CARD GLASS VARIANTS ===== */
.card-glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: calc(var(--radius) + 8px);
  padding: 1.5rem;
  transition: all 0.3s;
}
.card-glass:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(212,175,55,0.3);
}
.card-gradient-navy {
  background: var(--gradient-navy);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  padding: 1.5rem;
}
.card-gradient-gold {
  background: var(--gradient-gold);
  color: var(--navy);
  border-radius: calc(var(--radius) + 8px);
  padding: 1.5rem;
}

/* ===== SKELETON LOADING ===== */
@keyframes skeleton-pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
.skeleton {
  background: var(--muted);
  border-radius: var(--radius);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* ===== NOTIFICATION BADGE ANIMATED ===== */
@keyframes badge-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}
.badge-bounce {
  animation: badge-bounce 0.4s ease-in-out 3;
}

/* ===== SCROLLBAR ===== */
.dashboard-content::-webkit-scrollbar { width: 6px; }
.dashboard-content::-webkit-scrollbar-track { background: transparent; }
.dashboard-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.dashboard-content::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }

/* ===== PROGRESS BAR VARIANTS ===== */
.progress-navy .progress-fill { background: var(--gradient-navy); }
.progress-success .progress-fill { background: #10b981; }
.progress-danger .progress-fill { background: var(--destructive); }

/* ===== GLOW EFFECT ===== */
.glow-gold { box-shadow: 0 0 30px rgba(212,175,55,0.3); }
.glow-blue { box-shadow: 0 0 30px rgba(21,78,193,0.3); }

/* ===== ENHANCED BUTTONS ===== */
.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-icon:hover { border-color: var(--gold); color: var(--gold); }

/* ===== COUNTDOWN TIMER ===== */
.countdown-days {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}
.countdown-urgent { background: rgba(239,68,68,0.1); color: var(--destructive); }
.countdown-soon { background: rgba(245,158,11,0.1); color: #f59e0b; }
.countdown-ok { background: rgba(16,185,129,0.1); color: #10b981; }

/* ===== AMOUNT ANIMATION ===== */
@keyframes amount-flash {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); color: var(--gold); }
  100% { transform: scale(1); }
}
.amount-flash { animation: amount-flash 0.5s ease-out; }

/* ===== DASHBOARD CARD GRID ===== */
.dash-card-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .dash-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dash-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .dash-card-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== ACCOUNT CARD MINI ===== */
.account-card {
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.account-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.account-card:hover::before { transform: scaleX(1); }
.account-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elegant);
  border-color: rgba(212,175,55,0.3);
}

/* ===== SETTINGS GROUP ===== */
.settings-section + .settings-section { margin-top: 1.5rem; }
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--card-border);
  gap: 1rem;
}
.settings-item:last-child { border-bottom: none; }
.settings-item-info { flex: 1; min-width: 0; }
.settings-item-title { font-weight: 500; font-size: 0.875rem; }
.settings-item-desc { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.125rem; }

/* ===== CHART TOOLTIP ===== */
.chart-tooltip {
  position: absolute;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  box-shadow: var(--shadow-elegant);
  transform: translate(-50%, -100%);
  margin-top: -8px;
}
.chart-tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--navy);
}

/* ===== LIST ITEM ANIMATED ===== */
.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--card-border);
  transition: all 0.2s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { padding-left: 0.5rem; background: rgba(212,175,55,0.03); border-radius: var(--radius); }
.list-item-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.list-item-content { flex: 1; min-width: 0; }
.list-item-title { font-size: 0.875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-sub { font-size: 0.75rem; color: var(--muted-foreground); }
.list-item-amount { font-size: 0.875rem; font-weight: 500; white-space: nowrap; }

/* ===== QUICK ACTION CARD ===== */
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--secondary);
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
  text-align: center;
}
.quick-action:hover {
  background: var(--card);
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
}
.quick-action-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.quick-action-label { font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); }

/* ===== ENHANCED STAT CARD ===== */
.stat-card-enhanced {
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--card);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.stat-card-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
  border-color: rgba(212,175,55,0.2);
}
.stat-card-enhanced .stat-glow {
  position: absolute;
  right: -1rem;
  top: -1rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
  transition: opacity 0.3s;
}
.stat-card-enhanced:hover .stat-glow { opacity: 0.25; }
.stat-card-enhanced .stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  position: relative;
}
.stat-card-enhanced .stat-label { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.75rem; }
.stat-card-enhanced .stat-value { font-family: var(--font-display); font-size: 1.75rem; margin-top: 0.25rem; line-height: 1.2; }
.stat-card-enhanced .stat-change { font-size: 0.75rem; margin-top: 0.25rem; }

/* ===== DASHBOARD LAYOUT FIXES ===== */
.admin-stat-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .admin-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .admin-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.dash-header-search { position: relative; width: 100%; max-width: 28rem; }
.dash-header-search .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); font-size: 0.875rem; pointer-events: none; }
.dash-header-search input { padding-left: 2.25rem; height: 2.5rem; }

/* ===== SIDEBAR FOOTER ACCOUNT ===== */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-footer-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar-footer-info { flex: 1; min-width: 0; }
.sidebar-footer-name { font-size: 0.8125rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer-tier { font-size: 0.6875rem; color: rgba(255,255,255,0.5); }
.sidebar-footer-logout { font-size: 0.75rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.sidebar-footer-logout:hover { color: var(--gold); }

/* ===== ADMIN QUICK STATS ===== */
.admin-stat-trend-up { color: #10b981; }
.admin-stat-trend-down { color: var(--destructive); }

/* ===== NOTIFICATION DOT PULSE ===== */
.notif-dot {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(212,175,55,0.6);
  animation: notif-pulse 2s ease-in-out infinite;
}
@keyframes notif-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(212,175,55,0.4); }
  50% { box-shadow: 0 0 12px rgba(212,175,55,0.8); }
}

/* ===== TIER BADGE ===== */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}
.tier-standard { background: rgba(107,114,128,0.1); color: var(--muted-foreground); }
.tier-premier { background: rgba(212,175,55,0.15); color: var(--gold); }
.tier-infinite { background: rgba(10,31,68,0.15); color: var(--navy); }

/* ===== RESPONSIVE DASHBOARD ===== */
@media (max-width: 639px) {
  .dash-header-search { max-width: 100%; }
  .dash-card-grid { grid-template-columns: 1fr; }
  .stat-ticker { flex-direction: column; gap: 1rem; }
}

/* ===== TOAST FLASH ENHANCED ===== */
.flash { animation: flash-slide-in 0.3s ease-out; }
@keyframes flash-slide-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
