﻿/* ==========================================================================
   ElNader Cards — Premium Fintech Design System
   Handcrafted CSS · Dark luxury · Glassmorphism · Neon accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg-0: #05060a;
  --bg-1: #0a0b12;
  --bg-2: #10121c;
  --bg-3: #161925;
  --bg-elevated: rgba(22, 25, 37, 0.72);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6fb;
  --text-2: #b6bdd1;
  --text-3: #7d869e;
  --text-4: #555e75;
  --neon-blue: #3b82f6;
  --neon-blue-bright: #60a5fa;
  --neon-cyan: #22d3ee;
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-violet: #8b5cf6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;
  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-card: linear-gradient(145deg, #1e293b 0%, #0f172a 40%, #312e81 100%);
  --gradient-card-alt: linear-gradient(145deg, #0ea5e9 0%, #4f46e5 55%, #7c3aed 100%);
  --gradient-glow: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.28), transparent 50%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow-blue: 0 0 40px rgba(59, 130, 246, 0.25);
  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --sidebar-w: 268px;
  --topbar-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --blur: 24px;
  --blur-lg: 40px;
  --transition: 220ms var(--ease);
  --ring: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

[data-theme='light'] {
  --bg-0: #f3f5fb;
  --bg-1: #eef1f8;
  --bg-2: #ffffff;
  --bg-3: #e8ecf6;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --glass: rgba(255, 255, 255, 0.65);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-strong: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

app-body,
.app-body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(168, 85, 247, 0.1), transparent 50%),
    var(--bg-0);
}

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

a {
  color: var(--neon-blue-bright);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #93c5fd;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

code,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.text-right {
  text-align: right;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-blue-bright);
  margin-bottom: 0.5rem;
}

.hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-3);
}

.link-muted {
  color: var(--text-3);
  font-size: 0.85rem;
}

.link-muted:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   03. Glass & Surfaces
   -------------------------------------------------------------------------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
}

.panel {
  padding: 1.35rem 1.45rem;
  margin-bottom: 1.25rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.panel-head h2,
.panel h2,
.panel h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   04. Brand
   -------------------------------------------------------------------------- */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand-link:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.45));
}

.brand-text {
  font-weight: 750;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.sidebar .brand-text {
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   05. App Shell
   -------------------------------------------------------------------------- */
.app-shell {
  display: flex;
  min-height: 100vh;
}

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

.app-content {
  padding: 1.5rem 1.75rem 2.5rem;
  flex: 1;
}

/* --------------------------------------------------------------------------
   06. Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(12, 14, 22, 0.96), rgba(8, 9, 14, 0.98));
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur-lg));
  padding: 1.1rem 0.85rem 1rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.55rem 1.1rem;
}

.sidebar-close {
  display: none;
  color: var(--text-2);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 1rem 0.75rem 0.45rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  margin-bottom: 0.2rem;
}

.nav-item:hover {
  background: var(--glass-strong);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(168, 85, 247, 0.14));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25), var(--shadow-glow-blue);
}

.nav-icon {
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.sidebar-footer {
  border-top: 1px solid var(--glass-border);
  padding: 1rem 0.55rem 0.35rem;
  margin-top: 0.5rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.sidebar-user-meta {
  min-width: 0;
}

.sidebar-user-meta strong {
  display: block;
  font-size: 0.88rem;
}

.sidebar-user-meta span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 35;
}

.sidebar-backdrop.show {
  display: block;
}

/* --------------------------------------------------------------------------
   07. Topbar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.75rem;
  background: rgba(5, 6, 10, 0.65);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-everywhere {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
}

.search-everywhere .search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-3);
  pointer-events: none;
}

.search-everywhere input {
  width: 100%;
  padding: 0.7rem 3rem 0.7rem 2.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-everywhere input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: var(--ring);
}

.search-everywhere kbd {
  position: absolute;
  right: 0.7rem;
  font-size: 0.68rem;
  color: var(--text-4);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  background: var(--bg-2);
}

.live-clock {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--text-3);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.icon-btn:hover {
  background: var(--glass-strong);
  color: var(--text);
  border-color: var(--glass-border);
}

#sidebarToggle {
  display: none;
}

/* --------------------------------------------------------------------------
   08. Avatars
   -------------------------------------------------------------------------- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow-blue);
  flex-shrink: 0;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.72rem;
}

.avatar-xl {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* --------------------------------------------------------------------------
   09. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition),
    border-color var(--transition), color var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--gradient-brand);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4), var(--shadow-glow-purple);
  color: #fff;
}

.btn-glass {
  background: var(--glass-strong);
  border-color: var(--glass-border-strong);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: var(--glass);
  color: var(--text);
}

.btn-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.btn-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 10px;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 16px;
}

.btn-block {
  width: 100%;
}

.btn .ripple-ink {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 620ms linear;
  background: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

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

.inline-form {
  display: inline;
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label,
.label-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 560;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.input,
.select,
textarea.input {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

[data-theme='light'] .input,
[data-theme='light'] .select,
[data-theme='light'] textarea.input {
  background: rgba(255, 255, 255, 0.9);
}

.input:focus,
.select:focus,
textarea.input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: var(--ring);
}

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

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237d869e'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 1.1rem;
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--neon-blue);
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-ui {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
}

.switch-ui::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.switch input:checked + .switch-ui {
  background: var(--gradient-brand);
  border-color: transparent;
}

.switch input:checked + .switch-ui::after {
  transform: translateX(20px);
}

/* --------------------------------------------------------------------------
   11. Page headers & stats
   -------------------------------------------------------------------------- */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.page-sub {
  color: var(--text-3);
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.page-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-widget {
  padding: 1.2rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.stat-widget::before {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
  pointer-events: none;
}

.stat-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-3);
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.stat-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.stat-trend {
  font-size: 0.8rem;
  color: var(--text-3);
}

.stat-trend.positive {
  color: var(--success);
}

.stat-trend.muted {
  color: var(--text-4);
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}

.glow-blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.35);
  color: var(--neon-blue-bright);
}

.glow-purple {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
  color: var(--neon-cyan);
}

.glow-pink {
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
  color: #f472b6;
}

/* --------------------------------------------------------------------------
   12. Dashboard grids
   -------------------------------------------------------------------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.dashboard-grid.two-col {
  grid-template-columns: 1.4fr 1fr;
}

.chart-wrap {
  position: relative;
  width: 100%;
}

.chip-group {
  display: flex;
  gap: 0.35rem;
}

.chip {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  border: 1px solid var(--glass-border);
  background: transparent;
  transition: var(--transition);
}

.chip.active,
.chip:hover {
  color: var(--text);
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text);
  transition: var(--transition);
}

.quick-action:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--text);
  transform: translateY(-2px);
}

.qa-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.9rem;
}

.mini-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mini-card,
.bank-card-sm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue);
  color: #fff;
}

.mini-card-brand {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.8;
}

.mini-card-num {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.empty-inline {
  text-align: center;
  padding: 1rem;
  color: var(--text-3);
}

.empty-inline .btn {
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   13. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.data-table td {
  padding: 0.9rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: var(--text-2);
}

.data-table tr {
  transition: background var(--transition);
}

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

.cell-main strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.cell-main span {
  font-size: 0.78rem;
  color: var(--text-4);
}

/* --------------------------------------------------------------------------
   14. Status pills
   -------------------------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-success {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.status-warning {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.status-danger {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.status-muted {
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
}

/* --------------------------------------------------------------------------
   15. Timeline
   -------------------------------------------------------------------------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-left: 0.25rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.85rem;
  position: relative;
}

.timeline li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.4), transparent);
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--neon-blue);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.timeline strong {
  display: block;
  font-size: 0.92rem;
}

.timeline p {
  color: var(--text-3);
  font-size: 0.84rem;
}

.timeline time {
  font-size: 0.72rem;
  color: var(--text-4);
}

/* --------------------------------------------------------------------------
   16. Bank cards
   -------------------------------------------------------------------------- */
.bank-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  background: var(--gradient-card);
  color: #fff;
  box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
  overflow: hidden;
  isolation: isolate;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}

.bank-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.9;
  z-index: -1;
}

.bank-card::after {
  content: '';
  position: absolute;
  width: 180%;
  height: 80%;
  top: -40%;
  left: -20%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(-12deg);
  pointer-events: none;
}

.bank-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 50px rgba(59, 130, 246, 0.3);
}

.bank-card.physical {
  background: linear-gradient(145deg, #111827 0%, #1f2937 40%, #4c1d95 100%);
}

.bank-card.virtual {
  background: var(--gradient-card-alt);
}

.bank-card.preview.large,
.bank-card.details-hero {
  max-width: 420px;
  margin-bottom: 1.25rem;
}

.bank-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
}

.bank-card-brand {
  font-weight: 750;
  letter-spacing: -0.02em;
}

.bank-card-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.85;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.bank-card-chip {
  width: 42px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 40%, #b45309);
  margin-bottom: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  position: relative;
}

.bank-card-chip::before {
  content: '';
  position: absolute;
  inset: 6px 4px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.bank-card-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.14em;
  margin-bottom: 1.2rem;
}

.bank-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.bank-card-footer small {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.15rem;
}

.bank-card-footer span {
  font-size: 0.78rem;
  font-weight: 600;
}

.visa-logo {
  font-style: italic;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

/* --------------------------------------------------------------------------
   17. Cards page
   -------------------------------------------------------------------------- */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.9rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.filters-bar .input,
.filters-bar .select {
  width: auto;
  min-width: 140px;
  flex: 1;
}

.filter-search {
  position: relative;
  flex: 2;
  min-width: 200px;
}

.filter-search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
}

.filter-search .input {
  width: 100%;
  padding-left: 2.4rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card-tile {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.card-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.card-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-3);
}

.meta-row span:last-child {
  color: var(--text);
  font-weight: 550;
}

.card-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.page-link {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.85rem;
}

.page-link.active,
.page-link:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   18. Create card
   -------------------------------------------------------------------------- */
.create-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.type-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.type-option {
  cursor: pointer;
}

.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-card {
  display: block;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.type-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.type-card em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--text-3);
}

.type-option input:checked + .type-card {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: var(--ring);
}

.create-preview .bank-card {
  margin: 1rem 0 1.25rem;
}

.preview-notes {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--text-3);
  font-size: 0.85rem;
}

.preview-notes li {
  padding-left: 0.9rem;
  position: relative;
}

.preview-notes li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--neon-purple);
  font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   19. Card details
   -------------------------------------------------------------------------- */
.details-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 1.15rem;
  align-items: start;
}

.details-side .panel {
  margin-bottom: 1rem;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meta-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-list dt {
  color: var(--text-3);
  font-size: 0.85rem;
}

.meta-list dd {
  font-weight: 560;
  text-align: right;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qr-box {
  width: 160px;
  height: 160px;
  margin: 0.75rem auto;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 10px;
}

.control-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.controls-form {
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   20. Wallet / profile / settings / support
   -------------------------------------------------------------------------- */
.wallet-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wallet-card-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  color: var(--text);
  transition: var(--transition);
}

.wallet-card-row:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.15rem;
}

.profile-card {
  text-align: center;
  padding: 2rem 1.25rem;
}

.settings-form .settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-form .settings-row:last-of-type {
  margin-bottom: 1.25rem;
}

.settings-row h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.settings-row p {
  color: var(--text-3);
  font-size: 0.85rem;
}

.settings-row .input,
.settings-row .select {
  width: 180px;
}

.security-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.checklist li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-2);
}

.checklist li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.checklist li.ok::before {
  content: '✓';
  color: var(--success);
}

.checklist li.warn::before {
  content: '!';
  color: var(--warning);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   21. Empty states
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state.compact {
  padding: 1.5rem;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow-purple);
}

.empty-state h3 {
  margin-bottom: 0.35rem;
}

.empty-state p {
  color: var(--text-3);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   22. Alerts, toasts, overlays
   -------------------------------------------------------------------------- */
.alert {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

.alert strong {
  display: block;
  margin-bottom: 0.15rem;
}

.alert p {
  font-size: 0.85rem;
  opacity: 0.9;
}

.toast-root {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(16, 18, 28, 0.92);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  animation: toastIn 360ms var(--ease);
}

.toast.hiding {
  animation: toastOut 280ms var(--ease) forwards;
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.35);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.35);
}

.toast-info {
  border-color: rgba(56, 189, 248, 0.35);
}

.toast-title {
  font-weight: 650;
  font-size: 0.88rem;
}

.toast-msg {
  font-size: 0.82rem;
  color: var(--text-2);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  gap: 1rem;
  color: var(--text-2);
}

.loading-overlay[hidden] {
  display: none !important;
}

.loader-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  animation: pulseOrb 1.2s ease-in-out infinite;
  box-shadow: var(--shadow-glow-blue);
}

@keyframes pulseOrb {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   23. Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 1.5rem;
}

.modal-overlay.show {
  display: grid;
}

.modal {
  width: min(420px, 100%);
  padding: 2rem 1.75rem;
  text-align: center;
  position: relative;
  animation: floatIn 450ms var(--ease-spring);
}

.success-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

.success-burst {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(34, 197, 94, 0.15), transparent 55%);
  pointer-events: none;
}

.success-modal h2 {
  margin-bottom: 0.35rem;
}

.success-modal p {
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   24. Animations utilities
   -------------------------------------------------------------------------- */
.fade-in {
  animation: fadeIn 500ms var(--ease);
}

.fade-up {
  animation: fadeUp 700ms var(--ease) both;
}

.float-in {
  animation: floatIn 600ms var(--ease) both;
}

.delay-1 {
  animation-delay: 80ms;
}
.delay-2 {
  animation-delay: 160ms;
}
.delay-3 {
  animation-delay: 240ms;
}
.delay-4 {
  animation-delay: 320ms;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 2.2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* --------------------------------------------------------------------------
   25. Orbs shared
   -------------------------------------------------------------------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: #3b82f6;
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: #a855f7;
  bottom: -100px;
  right: -60px;
  animation-delay: -4s;
}

.orb-3 {
  width: 260px;
  height: 260px;
  background: #22d3ee;
  top: 40%;
  left: 45%;
  animation-delay: -7s;
  opacity: 0.3;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.08);
  }
}

/* --------------------------------------------------------------------------
   26. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid,
  .dashboard-grid.two-col,
  .create-layout,
  .details-layout {
    grid-template-columns: 1fr;
  }
  .security-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-105%);
    transition: transform 320ms var(--ease);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close {
    display: grid;
  }
  .app-main {
    margin-left: 0;
  }
  #sidebarToggle {
    display: grid;
  }
  .search-everywhere {
    min-width: 0;
    flex: 1;
  }
  .search-everywhere kbd {
    display: none;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .wallet-card-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-content {
    padding: 1rem 1rem 2rem;
  }
  .topbar {
    padding: 0 1rem;
  }
  .stat-grid,
  .cards-grid,
  .type-picker,
  .form-row,
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .page-header {
    align-items: flex-start;
  }
  .live-clock {
    display: none;
  }
  .filters-bar .input,
  .filters-bar .select {
    min-width: 100%;
  }
  .settings-form .settings-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-row .input,
  .settings-row .select {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   27. Scrollbar polish
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
  background-clip: padding-box;
}

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
}

/* --------------------------------------------------------------------------
   28. Extra premium flourishes (expanded design tokens & components)
   -------------------------------------------------------------------------- */
.glow-ring {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4), 0 0 24px rgba(59, 130, 246, 0.2);
}

.soft-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border-strong), transparent);
  margin: 1.25rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.progress {
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: var(--gradient-brand);
  border-radius: inherit;
}

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.kbd-hint {
  font-size: 0.7rem;
  color: var(--text-4);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.floating-widget {
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(25deg);
  animation: shineSweep 4s ease-in-out infinite;
}

@keyframes shineSweep {
  0% {
    left: -60%;
  }
  60%,
  100% {
    left: 140%;
  }
}

.focus-ring:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Expanded utility scale for spacing rhythm */
.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.5rem; }
.mt-6 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.5rem; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.min-w-0 { min-width: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none !important; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.leading-tight { line-height: 1.25; }
.tracking-tight { letter-spacing: -0.02em; }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--glass-border); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.pointer { cursor: pointer; }
.select-none { user-select: none; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Component variants continued */
.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
}

.input-lg {
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  border-radius: 14px;
}

.input-error {
  border-color: rgba(239, 68, 68, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-error {
  color: #f87171;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.table-dense td,
.table-dense th {
  padding: 0.55rem 0.65rem;
}

.sticky-head thead th {
  position: sticky;
  top: 0;
  background: rgba(10, 11, 18, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1;
}

.metric-spark {
  height: 36px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2), transparent);
}

.pill-tabs {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  gap: 0.2rem;
}

.pill-tabs button {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  color: var(--text-3);
  font-weight: 600;
  font-size: 0.8rem;
}

.pill-tabs button.active {
  background: var(--gradient-brand);
  color: #fff;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.list-row:last-child {
  border-bottom: none;
}

.avatar-stack {
  display: flex;
}

.avatar-stack .avatar {
  margin-left: -8px;
  border: 2px solid var(--bg-0);
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
}

.divider-vertical {
  width: 1px;
  align-self: stretch;
  background: var(--glass-border);
}

.hero-glow-line {
  height: 2px;
  width: 100%;
  background: var(--gradient-brand);
  border-radius: 2px;
  opacity: 0.7;
}

.noise-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.panel-elevated {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.card-tile .bank-card {
  margin-bottom: 0.15rem;
}

.hover-lift {
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.gradient-border {
  position: relative;
  border: none;
  background: var(--bg-2);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Typography scale extras */
.display-1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.display-2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.caption {
  font-size: 0.75rem;
  color: var(--text-4);
  letter-spacing: 0.02em;
}

.overline {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Status dots */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.dot-busy {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

.dot-offline {
  background: var(--text-4);
}

/* Notification bell pulse */
.pulse-dot {
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Calendar / date input polish */
input[type='date']::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  opacity: 0.5;
}

/* Code block */
.code-block {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  overflow-x: auto;
  color: #c4b5fd;
}

/* Footer strip inside app */
.app-footer-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-4);
  font-size: 0.78rem;
  text-align: center;
}

/* Interactive map placeholder */
.map-placeholder {
  height: 180px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.25), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.2), transparent 45%),
    var(--bg-2);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--text-3);
}

/* Receipt style */
.receipt {
  border-radius: var(--radius-md);
  border: 1px dashed var(--glass-border-strong);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.88rem;
}

.receipt-total {
  border-top: 1px solid var(--glass-border);
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  font-weight: 700;
}

/* Loading bars */
.bar-loader {
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border-radius: 3px;
}

.bar-loader::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gradient-brand);
  animation: barLoad 1.1s ease-in-out infinite;
}

@keyframes barLoad {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(350%);
  }
}

/* Segmented control */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.segmented button {
  padding: 0.55rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-3);
}

.segmented button.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Icon tile */
.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}

/* Amount emphasis */
.amount-pos {
  color: #4ade80;
}

.amount-neg {
  color: #f87171;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

.breadcrumbs a {
  color: var(--text-3);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs span {
  opacity: 0.5;
}

/* Callout */
.callout {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--neon-blue);
  background: rgba(59, 130, 246, 0.08);
}

.callout-purple {
  border-left-color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.08);
}

/* File dropzone */
.dropzone {
  border: 1.5px dashed var(--glass-border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  color: var(--text-3);
  transition: var(--transition);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.06);
  color: var(--text);
}

/* Steps indicator */
.steps-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.steps-indicator span {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.steps-indicator span.done,
.steps-indicator span.active {
  background: var(--gradient-brand);
}

/* Confetti particles (CSS-only decorative) */
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall 2.5s ease-in forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(120px) rotate(360deg);
    opacity: 0;
  }
}

/* Dark/light toggle visual */
.theme-preview {
  width: 64px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(90deg, #0a0b12 50%, #f3f5fb 50%);
}

/* Infinite marquee for trust logos reuse */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Final density tweaks for ultra-wide */
@media (min-width: 1600px) {
  .app-content {
    max-width: 1480px;
  }
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Print */
@media print {
  .sidebar,
  .topbar,
  .loading-overlay,
  .toast-root {
    display: none !important;
  }
  .app-main {
    margin: 0 !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* End of ENC main design system — continued component library below */

/* --------------------------------------------------------------------------
   29. Extended component library (production polish)
   -------------------------------------------------------------------------- */
.surface-1 { background: var(--bg-1); }
.surface-2 { background: var(--bg-2); }
.surface-3 { background: var(--bg-3); }

.border-glow-blue {
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow: var(--shadow-glow-blue);
}

.border-glow-purple {
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: var(--shadow-glow-purple);
}

.inset-highlight {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.text-balance {
  text-wrap: balance;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scroll-fade {
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.interactive-scale {
  transition: transform 200ms var(--ease);
}

.interactive-scale:hover {
  transform: scale(1.02);
}

.interactive-scale:active {
  transform: scale(0.985);
}

.glass-strong {
  background: var(--glass-strong);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
}

.neon-text-blue {
  color: var(--neon-blue-bright);
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

.neon-text-purple {
  color: #c084fc;
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

.hr-fade {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 1.5rem 0;
}

.stat-widget .stat-value {
  background: linear-gradient(180deg, #fff, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme='light'] .stat-widget .stat-value {
  background: none;
  color: var(--text);
  -webkit-background-clip: initial;
  background-clip: initial;
}

.sidebar .nav-item.active .nav-icon {
  color: var(--neon-blue-bright);
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.55));
}

.topbar .btn-primary {
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.28);
}

.data-table tbody tr td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.data-table tbody tr td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.filters-bar-wrap {
  align-items: stretch;
}

.filters-bar-wrap .input {
  min-width: 120px;
}

.card-tile-actions .btn {
  flex: 1;
  justify-content: center;
}

.details-hero {
  max-width: none !important;
}

.create-form {
  padding: 1.5rem;
}

.page-sub.mono {
  word-break: break-all;
}

.flash-stack {
  display: none;
}

/* Skeleton loaders for async regions */
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 0.55rem;
}

.skeleton-line.lg {
  height: 22px;
  width: 60%;
}

.skeleton-line.sm {
  width: 40%;
}

.skeleton-card {
  height: 180px;
  border-radius: var(--radius-lg);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

/* Chart fallback grid */
.chart-wrap canvas {
  width: 100% !important;
  max-height: 280px;
}

.chart-empty {
  height: 220px;
  display: grid;
  place-items: center;
  color: var(--text-4);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-md);
}

/* Action sheet mobile */
.action-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 1rem;
  border-radius: 22px 22px 0 0;
  background: rgba(16, 18, 28, 0.96);
  border: 1px solid var(--glass-border);
  transform: translateY(110%);
  transition: transform 320ms var(--ease);
}

.action-sheet.open {
  transform: translateY(0);
}

/* Context menu */
.context-menu {
  position: absolute;
  min-width: 180px;
  padding: 0.4rem;
  border-radius: 12px;
  background: rgba(16, 18, 28, 0.96);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-lg);
  z-index: 60;
}

.context-menu button {
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.85rem;
}

.context-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Banner */
.app-banner {
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(168, 85, 247, 0.15));
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.85rem;
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
  .app-content {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}

/* High contrast focus for a11y */
:focus-visible {
  outline: 2px solid var(--neon-blue-bright);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--neon-blue-bright);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   30. Micro-interactions & motion recipes
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.stagger > *:nth-child(1) { transition-delay: 40ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 120ms; }
.stagger > *:nth-child(4) { transition-delay: 160ms; }
.stagger > *:nth-child(5) { transition-delay: 200ms; }
.stagger > *:nth-child(6) { transition-delay: 240ms; }
.stagger > *:nth-child(7) { transition-delay: 280ms; }
.stagger > *:nth-child(8) { transition-delay: 320ms; }
.stagger > *:nth-child(9) { transition-delay: 360ms; }

.btn-primary.loading {
  pointer-events: none;
  opacity: 0.75;
}

.btn-primary.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 0.35rem;
}

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

.shake {
  animation: shake 420ms var(--ease);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.glow-pulse {
  animation: glowPulse 2.4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 36px rgba(168, 85, 247, 0.35);
  }
}

/* --------------------------------------------------------------------------
   31. Density modes & final polish blocks
   -------------------------------------------------------------------------- */
[data-density='compact'] .panel {
  padding: 1rem;
}

[data-density='compact'] .data-table td {
  padding: 0.65rem 0.6rem;
}

[data-density='compact'] .nav-item {
  padding: 0.55rem 0.7rem;
}

.prose-muted {
  color: var(--text-3);
  font-size: 0.92rem;
  line-height: 1.65;
}

.prose-muted a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  font-family: ui-monospace, monospace;
  font-size: 0.82em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.metric-delta-up::before {
  content: '▲ ';
  font-size: 0.7em;
}

.metric-delta-down::before {
  content: '▼ ';
  font-size: 0.7em;
}

.frame-device {
  border-radius: 28px;
  border: 8px solid #111;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.shadow-inset-soft {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.bg-mesh {
  background-image:
    radial-gradient(at 20% 20%, rgba(59, 130, 246, 0.15) 0, transparent 45%),
    radial-gradient(at 80% 0%, rgba(168, 85, 247, 0.12) 0, transparent 40%),
    radial-gradient(at 50% 80%, rgba(34, 211, 238, 0.08) 0, transparent 45%);
}

.bg-grid-fine {
  background-size: 24px 24px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.corner-accent::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.35), transparent 70%);
  pointer-events: none;
}

.stack-cards {
  position: relative;
  height: 220px;
}

.stack-cards .bank-card {
  position: absolute;
  left: 0;
  right: 0;
}

.stack-cards .bank-card:nth-child(1) {
  transform: translateY(18px) scale(0.94);
  opacity: 0.55;
  z-index: 1;
}

.stack-cards .bank-card:nth-child(2) {
  transform: translateY(0) scale(1);
  z-index: 2;
}

/* End main.css */
