@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════ */
:root {
  --bg-deep:       #F1F5F9; /* Light Slate */
  --bg-card:       #FFFFFF; /* Pure White */
  --bg-card-hover: #F8FAFC;
  --bg-sidebar:    #FFFFFF;
  --bg-input:      #F8FAFC;

  --gold:          #C5A02C; /* Metallic Gold */
  --gold-light:    #E8A020;
  --gold-dim:      rgba(197,160,44,.12);
  --gold-border:   rgba(197,160,44,.25);

  --green:         #059669;
  --green-dim:     rgba(5,150,105,.1);
  --red:           #DC2626;
  --red-dim:       rgba(220,38,38,.1);
  --blue:          #0052FF; /* Muda Blue */
  --blue-dim:      rgba(0,82,255,.1);

  --text-primary:  #1E293B;
  --text-secondary:#475569;
  --text-muted:    #94A3B8;

  --border:        rgba(15,23,42,.08);
  --border-light:  rgba(15,23,42,.12);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 10px 40px rgba(15,23,42,.06);
  --shadow-gold: 0 0 40px rgba(197,160,44,.08);

  --sidebar-w: 260px;
  --header-h:  64px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --transition: .2s cubic-bezier(.4,0,.2,1);
}

.tnum {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.2px;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font-body); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ═══════════════════════════════════════════════
   GEOMETRIC BACKGROUND PATTERN
═══════════════════════════════════════════════ */
.geo-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.geo-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,160,32,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,160,32,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.geo-bg::after {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  right: -200px; top: -200px;
  background: radial-gradient(circle, rgba(232,160,32,.07) 0%, transparent 65%);
  border-radius: 50%;
}
.geo-accent {
  position: absolute;
  width: 500px; height: 500px;
  left: -100px; bottom: -100px;
  background: radial-gradient(circle, rgba(0,200,150,.05) 0%, transparent 65%);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════
   LAYOUT — APP SHELL
═══════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.logo-mark {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, #C07810 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px;
  color: var(--bg-deep);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(232,160,32,.3);
}
.logo-text { font-family: var(--font-display); }
.logo-text span:first-child {
  display: block;
  font-size: 17px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .3px;
}
.logo-text span:last-child {
  font-size: 11px; font-weight: 500;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sidebar-nav { padding: 16px 12px; flex: 1; }
.nav-section-label {
  font-size: 10px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 12px 10px 6px;
  margin-top: 8px;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  margin-bottom: 2px;
}
.nav-item:hover {
  color: var(--text-primary);
  background: rgba(15,23,42,.04);
}
.nav-item.active {
  color: var(--gold);
  background: var(--gold-dim);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}
.nav-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: white; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 10px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.user-info {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  cursor: pointer;
}
.user-info:hover { background: rgba(255,255,255,.04); }
.user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold) 0%, #C07810 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--bg-deep);
  flex-shrink: 0;
}
.user-details { flex: 1; min-width: 0; }
.user-name {
  font-size: 13px; font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-role {
  font-size: 11px; color: var(--gold);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT AREA
═══════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════
   TOP HEADER
═══════════════════════════════════════════════ */
.top-header {
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
}
.page-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.header-date {
  font-size: 13px; color: var(--text-secondary); font-weight: 400;
}
.menu-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-primary); cursor: pointer;
  padding: 4px;
}

/* ═══════════════════════════════════════════════
   PAGE CONTENT
═══════════════════════════════════════════════ */
.page-content {
  padding: 28px 28px;
  flex: 1;
}

/* ═══════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border-light); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--text-primary);
}
.card-subtitle {
  font-size: 12px; color: var(--text-secondary);
  margin-top: 2px; font-weight: 400;
}

/* ═══════════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  transform: translate(30px, -30px);
  opacity: .12;
}
.stat-card.gold::after  { background: var(--gold); }
.stat-card.green::after { background: var(--green); }
.stat-card.blue::after  { background: var(--blue); }
.stat-card.red::after   { background: var(--red); }

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.stat-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card.gold  .stat-value { color: var(--gold); }
.stat-card.green .stat-value { color: var(--green); }
.stat-card.blue  .stat-value { color: var(--blue); }
.stat-card.red   .stat-value { color: var(--red); }

.stat-change {
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}
.stat-change.up   { color: var(--green); }
.stat-change.down { color: var(--red); }

.stat-icon {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.stat-card.gold  .stat-icon { background: var(--gold-dim); color: var(--gold); }
.stat-card.green .stat-icon { background: var(--green-dim); color: var(--green); }
.stat-card.blue  .stat-icon { background: var(--blue-dim); color: var(--blue); }
.stat-card.red   .stat-icon { background: var(--red-dim); color: var(--red); }

/* ═══════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg-deep);
  padding: 11px 14px;
  text-align: left;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 13px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  transition: background var(--transition);
  white-space: nowrap;
}
tbody tr:hover td { background: rgba(15,23,42,.02); color: var(--text-primary); }
tbody tr:last-child td { border-bottom: none; }
.td-primary { color: var(--text-primary) !important; font-weight: 500; }
.td-gold { color: var(--gold) !important; font-weight: 600; }
.td-green { color: var(--green) !important; font-weight: 600; }
.td-red   { color: var(--red) !important; font-weight: 600; }

/* ═══════════════════════════════════════════════
   BADGES / PILLS
═══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.badge-buy    { background: var(--green-dim); color: var(--green); }
.badge-sell   { background: var(--red-dim);   color: var(--red);   }
.badge-gold   { background: var(--gold-dim);  color: var(--gold);  }
.badge-blue   { background: var(--blue-dim);  color: var(--blue);  }
.badge-active { background: var(--green-dim); color: var(--green); }

/* ═══════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .5px;
}
.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 14px;
  transition: all var(--transition);
  width: 100%;
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--bg-card); color: var(--text-primary); }

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.form-section-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #C07810 100%);
  color: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(232,160,32,.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(232,160,32,.35);
  color: var(--bg-deep);
}
.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--gold-border); color: var(--text-primary); }
.btn-ghost { background: none; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-light); background: rgba(255,255,255,.03); }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,79,106,.2); }
.btn-danger:hover { background: rgba(255,79,106,.2); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════
   ALERTS & NOTICES
═══════════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  border-left: 3px solid;
}
.alert-success { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.alert-error   { background: var(--red-dim);   border-color: var(--red);   color: var(--red); }
.alert-info    { background: var(--blue-dim);  border-color: var(--blue);  color: var(--blue); }
.alert-warn    { background: var(--gold-dim);  border-color: var(--gold);  color: var(--gold); }

/* ═══════════════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════════════ */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header-left h1 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.page-header-left p { font-size: 13.5px; color: var(--text-secondary); }
.page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   GRID LAYOUTS
═══════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-60-40 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.grid-40-60 { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; }

/* ═══════════════════════════════════════════════
   CURRENCY PILLS
═══════════════════════════════════════════════ */
.currency-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════════ */
.progress-bar {
  background: var(--border);
  border-radius: 10px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transition: width .6s ease;
}
.progress-fill.green { background: linear-gradient(90deg, var(--green) 0%, #00FFB3 100%); }
.progress-fill.red   { background: linear-gradient(90deg, var(--red) 0%, #FF8099 100%); }

/* ═══════════════════════════════════════════════
   SEARCH
═══════════════════════════════════════════════ */
.search-wrap {
  position: relative; flex: 1; max-width: 360px;
}
.search-wrap svg {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 9px 14px 9px 38px;
  font-size: 13.5px; width: 100%;
  outline: none; transition: all var(--transition);
}
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.search-input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   MOBILE OVERLAY
═══════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 99;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}
.login-visual {
  flex: 1;
  background: var(--bg-card);
  position: relative;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  overflow: hidden;
}
.login-visual-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,160,32,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,200,150,.07) 0%, transparent 50%);
}
.login-visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,160,32,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,160,32,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.login-visual-content { position: relative; z-index: 1; }
.login-visual-tagline {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.login-visual-tagline span { color: var(--gold); }
.login-visual-desc {
  font-size: 15px; color: var(--text-secondary);
  max-width: 400px; line-height: 1.7;
  margin-bottom: 36px;
}
.login-currencies {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.curr-pill {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
}
.curr-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.login-form-wrap {
  width: 480px;
  flex-shrink: 0;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
}
.login-form-inner { width: 100%; max-width: 360px; }
.login-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 40px;
}
.login-logo-mark {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, #C07810 100%);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px;
  color: var(--bg-deep);
  box-shadow: 0 4px 24px rgba(232,160,32,.3);
}
.login-logo-text { font-family: var(--font-display); }
.login-logo-text strong {
  display: block;
  font-size: 22px; font-weight: 800;
  color: var(--text-primary);
}
.login-logo-text em {
  font-style: normal;
  font-size: 12px; color: var(--gold);
  letter-spacing: 2px; font-weight: 500;
  text-transform: uppercase;
}
.login-heading {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.login-subheading {
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 36px;
}
.login-form .form-group { margin-bottom: 20px; }
.login-form label {
  font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary);
  display: block; margin-bottom: 7px;
}
.login-form .form-control {
  padding: 13px 16px;
  font-size: 14.5px;
}
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 0 4px;
  color: var(--text-muted); font-size: 12px;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}
.login-footer-note {
  margin-top: 32px;
  text-align: center;
  font-size: 12px; color: var(--text-muted);
}

/* Animated elements for login */
.float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-card);
}
.float-card-1 { top: 14%; right: 8%; animation-delay: 0s; }
.float-card-2 { top: 42%; left: 6%; animation-delay: 2s; }
.float-card-3 { bottom: 22%; right: 12%; animation-delay: 4s; }
.float-card-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.float-card-value { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin: 4px 0; }
.float-card-sub { font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease forwards; opacity: 0; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }
.fade-up-4 { animation-delay: .4s; }
.fade-up-5 { animation-delay: .5s; }

/* ═══════════════════════════════════════════════
   BALANCE OVERVIEW WIDGET
═══════════════════════════════════════════════ */
.balance-ring {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 0;
}
.ring-outer {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0%, var(--green) 41%, var(--border) 41% 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.ring-inner {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ring-value {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: var(--text-primary);
}
.ring-label { font-size: 10px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   CLIENT CARD
═══════════════════════════════════════════════ */
.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: all var(--transition);
  cursor: pointer;
}
.client-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.client-avatar {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-dim), var(--bg-card-hover));
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}
.client-info { flex: 1; min-width: 0; }
.client-name {
  font-weight: 700; font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.client-meta {
  font-size: 12px; color: var(--text-secondary);
  margin-top: 2px;
}
.client-balance {
  text-align: right; flex-shrink: 0;
}
.client-balance-value {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--green);
}
.client-balance-label { font-size: 11px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   ACTIVITY FEED
═══════════════════════════════════════════════ */
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-dot.buy  { background: var(--green); }
.activity-dot.sell { background: var(--red); }
.activity-dot.dep  { background: var(--gold); }
.activity-text { flex: 1; }
.activity-text strong { color: var(--text-primary); font-size: 13.5px; }
.activity-text span  { color: var(--text-secondary); font-size: 12.5px; }
.activity-time { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════════ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤1100px)
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .grid-2, .grid-3, .grid-60-40, .grid-40-60 {
    grid-template-columns: 1fr;
  }
  .login-visual { display: none; }
  .login-form-wrap { width: 100%; padding: 40px 32px; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-260px);
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }

  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }

  .page-content { padding: 16px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 22px; }

  .page-header { flex-direction: column; }
  .page-header-actions { width: 100%; }
  .page-header-actions .btn { flex: 1; justify-content: center; }

  .form-grid { grid-template-columns: 1fr; }

  .login-form-wrap { padding: 32px 20px; }

  table { font-size: 12px; }
  thead th { padding: 9px 10px; }
  tbody td  { padding: 10px; }

  .top-header { padding: 0 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════ */
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 12px; }
.text-xs     { font-size: 11px; }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.font-display { font-family: var(--font-display); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-1 { flex: 1; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }