/* ===== GLOBAL MOBILE SAFETY ===== */
html {
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

/* ===== DASHBOARD LAYOUT ===== */
body.dash-body {
  display: flex;
  min-height: 100vh;
  background: #eef2f7;
  overflow-x: hidden;
  max-width: 100vw;
  touch-action: pan-y;
}

/* Box sizing and overflow guards */
*, *::before, *::after { box-sizing: border-box; }
img, canvas, video, iframe { max-width: 100%; height: auto; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: #0f172a;
  border-right: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 500;
  transition: transform 0.3s ease;
  box-shadow: 4px 0 30px rgba(0,0,0,0.2);
}
.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-header .logo { color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.3px; }
.sidebar-header .logo span { color: #2563eb; }
.sidebar-header .logo i { color: #2563eb; margin-right: 2px; }
.sidebar-close { display: none; background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 1.1rem; }

.sidebar-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-section-label {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.25);
  font-weight: 700;
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 2px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.nav-item.active {
  background: rgba(249,115,22,0.15);
  color: #3b82f6;
  font-weight: 600;
  border-left: 3px solid #2563eb;
  padding-left: 11px;
  box-shadow: inset 0 0 20px rgba(249,115,22,0.05);
}
.nav-item i { width: 18px; text-align: center; font-size: 0.88rem; }


/* Sidebar accent bar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #2563eb;
}

/* ===== MAIN ===== */
.dash-main { flex: 1; margin-left: 260px; display: flex; flex-direction: column; min-height: 100vh; min-width: 0; overflow-x: hidden; }

/* ===== TOPBAR ===== */
.topbar {
  height: 64px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.sidebar-toggle { background: none; border: none; color: #6b7280; cursor: pointer; font-size: 1.1rem; display: none; padding: 4px; touch-action: manipulation; }
.sidebar-close { touch-action: manipulation; }
.breadcrumb { font-size: 0.9rem; font-weight: 600; color: #374151; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  color: #94a3b8;
  transition: border-color 0.2s;
}
.topbar-search:focus-within { border-color: rgba(249,115,22,0.4); background: #fff; }
.topbar-search input {
  background: none; border: none; color: #111827;
  font-size: 0.85rem; width: 160px; font-family: 'Inter', sans-serif;
}
.topbar-search input::placeholder { color: #9ca3af; }
.topbar-search input:focus { outline: none; }
.icon-btn {
  width: 36px; height: 36px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; cursor: pointer; position: relative;
  transition: 0.2s;
}
.icon-btn:hover { background: #eff6ff; color: #2563eb; border-color: #2563eb; }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: #dc2626; color: #fff;
  font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.user-dropdown {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; position: relative;
  padding: 6px 10px; border-radius: 8px;
  transition: background 0.2s;
}
.user-dropdown:hover { background: #f3f4f6; }
.user-avatar {
  width: 32px; height: 32px;
  background: #2563eb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 0.85rem; font-weight: 600; color: #111827; }
.user-email { font-size: 0.72rem; color: #9ca3af; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px; padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  display: none; z-index: 300;
}
.user-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; font-size: 0.88rem; color: #374151;
  text-decoration: none; border-radius: 6px; transition: 0.2s;
}
.dropdown-menu a:hover { background: #eff6ff; color: #2563eb; }
.dropdown-divider { height: 1px; background: #e5e7eb; margin: 4px 0; }

/* ===== PAGES ===== */
.page { display: none; padding: 24px 28px; min-width: 0; overflow-x: hidden; }
.page.active { display: block; }
.page-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.page-header h1 { font-size: 1.5rem; margin-bottom: 4px; color: #111827; }
.page-header p { font-size: 0.88rem; color: #6b7280; }
.page-header-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ===== HERO SECTION ===== */
.dash-hero {
  background: #0f172a;
  border-radius: 24px;
  padding: 0;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(10,15,30,0.5), 0 4px 16px rgba(15,23,42,0.25);
}
/* Decorative orbs removed */

/* Header row */
.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px 0;
  position: relative;
  z-index: 1;
}
.hero-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-avatar-circle {
  width: 44px; height: 44px;
  background: #2563eb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800; color: #fff; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 16px rgba(249,115,22,0.45);
}
.hero-greeting-text { line-height: 1.3; }
.hero-greeting-text .greet-line { font-size: 0.72rem; color: rgba(255,255,255,0.38); font-weight: 400; letter-spacing: 0.3px; }
.hero-greeting-text .greet-name { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 700; margin-top: 1px; }
.hero-account-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 100px;
  font-size: 0.73rem; font-weight: 600; color: #4ade80;
  letter-spacing: 0.3px;
}
.hero-account-badge i { font-size: 0.75rem; }

/* Center balance section */
.hero-balance-center {
  text-align: center;
  padding: 28px 32px 24px;
  position: relative;
  z-index: 1;
}
.hero-balance-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.6px;
  color: rgba(255,255,255,0.3); font-weight: 600; margin-bottom: 10px;
}
.hero-balance-val {
  font-size: 3.4rem; font-weight: 800; color: #fff;
  line-height: 1; letter-spacing: -2px;
  text-shadow: 0 0 60px rgba(249,115,22,0.25), 0 0 120px rgba(37,99,235,0.1);
}
.hero-balance-sub {
  font-size: 0.82rem; color: #4ade80; margin-top: 10px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(74,222,128,0.1);
  padding: 4px 12px; border-radius: 100px;
}
.hero-balance-sub::before { content: '▲'; font-size: 0.55rem; }

/* Balance breakdown chips */
.hero-balance-breakdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 22px auto 0;
  max-width: 480px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  overflow: hidden;
}
.balance-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 16px;
  gap: 5px;
  transition: background 0.2s;
}
.balance-chip:hover { background: rgba(255,255,255,0.04); }
.chip-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.8px;
  color: rgba(255,255,255,0.32); font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.chip-label i { font-size: 0.6rem; }
.chip-val {
  font-size: 1rem; font-weight: 700; color: #fff;
  letter-spacing: -0.3px;
}
.chip-val.chip-bonus { color: #c084fc; }
.balance-chip-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.09);
  flex-shrink: 0;
}

/* Action buttons */
.hero-action-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.85rem;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-hero-solid {
  background: #2563eb;
  border: none; color: #fff;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(249,115,22,0.5);
}
.btn-hero-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(249,115,22,0.6); }
.btn-hero-invest {
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(99,102,241,0.35);
  color: #a5b4fc;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
}
.btn-hero-invest:hover { background: rgba(99,102,241,0.28); color: #c7d2fe; border-color: rgba(99,102,241,0.5); }

/* Stats strip */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.2);
}
.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  transition: background 0.2s;
}
.hero-stat-item:hover { background: rgba(255,255,255,0.03); }
.hero-stat-item + .hero-stat-item {
  border-left: 1px solid rgba(255,255,255,0.07);
}
.hero-stat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.hero-stat-icon.icon-green { background: rgba(74,222,128,0.13); color: #4ade80; box-shadow: 0 0 16px rgba(74,222,128,0.12); }
.hero-stat-icon.icon-blue { background: rgba(96,165,250,0.13); color: #60a5fa; box-shadow: 0 0 16px rgba(96,165,250,0.12); }
.hero-stat-icon.icon-gold { background: rgba(251,191,36,0.13); color: #fbbf24; box-shadow: 0 0 16px rgba(251,191,36,0.12); }
.hero-stat-icon.icon-purple { background: rgba(192,132,252,0.13); color: #c084fc; box-shadow: 0 0 16px rgba(192,132,252,0.12); }
.hero-stat-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.7px; color: rgba(255,255,255,0.32); font-weight: 600; margin-bottom: 3px; }
.hero-stat-val { font-size: 1.05rem; font-weight: 700; color: #fff; }
.hero-stat-val.text-green { color: #4ade80; }
.hero-stat-val.text-purple { color: #c084fc; }

/* ===== STAT CARDS (used in admin panel) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.stat-total { border-top: 3px solid #2563eb; }
.stat-card-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #2563eb; flex-shrink: 0;
}
.icon-green { background: rgba(22,163,74,0.1); color: #16a34a; }
.icon-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.icon-gold { background: rgba(217,119,6,0.1); color: #d97706; }
.stat-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-card-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: #9ca3af; font-weight: 600; }
.stat-card-value { font-size: 1.35rem; font-weight: 800; color: #111827; }
.stat-card-sub { font-size: 0.75rem; color: #9ca3af; }

/* ===== OVERVIEW GRID ===== */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-card { grid-column: 1 / -1; }
.transactions-card { grid-column: 1 / -1; }

.dash-card {
  background: #fff;
  border: 1px solid rgba(226,232,240,0.7);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.05), 0 1px 3px rgba(15,23,42,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 0;
  overflow: hidden;
}
.dash-card:hover {
  box-shadow: 0 8px 32px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
}
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.card-header h3 { font-size: 0.92rem; color: #111827; font-weight: 700; letter-spacing: -0.1px; }
.card-action {
  font-size: 0.78rem; color: #2563eb; text-decoration: none;
  cursor: pointer; background: rgba(249,115,22,0.08); border: none;
  font-weight: 600; font-family: 'Inter', sans-serif;
  padding: 4px 10px; border-radius: 20px; transition: background 0.2s;
}
.card-action:hover { background: rgba(249,115,22,0.16); text-decoration: none; }
.chart-tabs { display: flex; gap: 6px; }
.chart-tab {
  background: none; border: 1px solid #e5e7eb; color: #9ca3af;
  padding: 4px 10px; border-radius: 6px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer; transition: 0.2s;
}
.chart-tab.active, .chart-tab:hover { background: #2563eb; border-color: #2563eb; color: #fff; }

/* ===== TX LIST ===== */
.tx-list { display: flex; flex-direction: column; }
.tx-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 0; border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; flex-shrink: 0;
}
.tx-icon.deposit { background: rgba(22,163,74,0.1); color: #16a34a; }
.tx-icon.withdrawal { background: rgba(220,38,38,0.1); color: #dc2626; }
.tx-icon.investment { background: rgba(37,99,235,0.1); color: #2563eb; }
.tx-icon.return { background: rgba(217,119,6,0.1); color: #d97706; }
.tx-icon.admin_credit { background: rgba(99,102,241,0.1); color: #6366f1; }
.tx-info { flex: 1; min-width: 0; }
.tx-desc { font-size: 0.84rem; font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-date { font-size: 0.71rem; color: #94a3b8; margin-top: 2px; }
.tx-amount { font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.tx-amount.positive { color: #16a34a; }
.tx-amount.negative { color: #dc2626; }

/* ===== BADGES ===== */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; text-transform: capitalize;
}
.status-completed { background: rgba(22,163,74,0.1); color: #16a34a; }
.status-pending { background: rgba(217,119,6,0.1); color: #d97706; }
.status-failed, .status-rejected { background: rgba(220,38,38,0.1); color: #dc2626; }

.user-plan-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,0.1); color: #2563eb;
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; text-transform: capitalize;
}

/* ===== NOTIFICATIONS ===== */
.notif-list { display: flex; flex-direction: column; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid #f3f4f6; position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread::before {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: #2563eb; border-radius: 50%;
}
.notif-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
}
.notif-icon.info { background: rgba(59,130,246,0.1); color: #3b82f6; }
.notif-icon.success { background: rgba(22,163,74,0.1); color: #16a34a; }
.notif-icon.warning { background: rgba(217,119,6,0.1); color: #d97706; }
.notif-text { font-size: 0.82rem; color: #374151; line-height: 1.5; }
.notif-time { font-size: 0.7rem; color: #9ca3af; margin-top: 2px; }

/* Notification slide-in panel */
.notif-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 320px;
  background: #fff; border-left: 1px solid #e5e7eb;
  z-index: 500; transform: translateX(100%); transition: transform 0.3s;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}
.notif-panel.open { transform: translateX(0); }
.notif-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid #e5e7eb;
}
.notif-panel-header h3 { font-size: 0.95rem; color: #111827; }
.notif-panel-header button { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 1rem; }
.notif-panel-list { flex: 1; overflow-y: auto; padding: 12px 16px; }

.overlay-dim { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 400; display: none; }
.overlay-dim.show { display: block; }

/* ===== ACTIVE PLAN DISPLAY ===== */
.active-plan-info { padding: 4px 0; }
.plan-info-row {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid #f3f4f6;
  font-size: 0.88rem;
}
.plan-info-row:last-child { border-bottom: none; }
.plan-info-row span { color: #6b7280; }
.plan-info-row strong { color: #111827; }

/* ===== PORTFOLIO ALLOCATION ===== */
.portfolio-split { display: flex; align-items: center; gap: 40px; padding: 8px 0; flex-wrap: wrap; }
.alloc-legend { display: flex; flex-direction: column; gap: 10px; }
.alloc-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.alloc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.alloc-name { color: #111827; font-weight: 500; min-width: 80px; }
.alloc-pct { color: #9ca3af; }

/* ===== SETTINGS ===== */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-avatar-row { display: flex; align-items: center; gap: 16px; }
.settings-avatar {
  width: 60px; height: 60px;
  background: #2563eb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.security-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid #f3f4f6;
}
.security-item:last-child { border-bottom: none; }
.security-icon {
  width: 38px; height: 38px;
  background: rgba(249,115,22,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #2563eb; flex-shrink: 0;
}
.security-item > div:nth-child(2) { flex: 1; }
.security-item strong { display: block; font-size: 0.9rem; color: #111827; margin-bottom: 2px; }
.security-item p { font-size: 0.82rem; color: #6b7280; }

/* toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0;
  background: #e5e7eb;
  border-radius: 13px; cursor: pointer; transition: background 0.25s;
}
.toggle-track::after {
  content: ''; position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  background: #fff; border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-track { background: #2563eb; }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(22px); }

/* ===== PLANS PAGE ===== */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.plan-featured { border-color: #2563eb; box-shadow: 0 4px 20px rgba(249,115,22,0.15); transform: scale(1.02); }
.plan-featured:hover { transform: scale(1.02) translateY(-4px); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #2563eb;
  color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 16px; border-radius: 20px; white-space: nowrap;
}
.plan-header { margin-bottom: 20px; }
.plan-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #2563eb; margin-bottom: 12px;
}
.plan-header h3 { font-size: 1.3rem; margin-bottom: 3px; color: #111827; }
.plan-header p { font-size: 0.83rem; color: #6b7280; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 20px; }
.plan-price .currency { font-size: 1rem; font-weight: 700; color: #6b7280; }
.plan-price .amount { font-size: 2.4rem; font-weight: 800; color: #111827; }
.plan-price .period { font-size: 0.85rem; color: #9ca3af; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; font-size: 0.88rem; color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li i.fa-check { color: #16a34a; }
.plan-features li i.fa-xmark { color: #d1d5db; }
.plan-features li.disabled { color: #9ca3af; }

/* ===== INVEST PAGE ===== */
#myInvestmentsContent .investment-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid #f3f4f6; flex-wrap: wrap; gap: 12px;
}
#myInvestmentsContent .investment-row:last-child { border-bottom: none; }

/* ===== DEPOSIT MODAL ===== */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.method-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 12px 14px; background: #f9fafb;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  color: #374151; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: 0.2s; font-family: 'Inter', sans-serif; text-align: left;
}
.method-btn .method-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.method-btn .method-addr {
  font-size: 0.7rem; color: #9ca3af; font-family: monospace;
  word-break: break-all; font-weight: 400; line-height: 1.4;
}
.method-btn:hover, .method-btn.active { border-color: #2563eb; background: #eff6ff; color: #2563eb; }
.method-btn.active .method-addr { color: #1d4ed8; }
.wallet-display {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 14px; margin-bottom: 16px;
}
.wallet-display label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #9ca3af; margin-bottom: 6px; display: block; }
.wallet-addr-row { display: flex; align-items: center; gap: 8px; }
.wallet-addr { font-size: 0.82rem; font-family: monospace; color: #111827; flex: 1; word-break: break-all; }
.copy-btn {
  background: #2563eb; border: none; color: #fff;
  padding: 5px 10px; border-radius: 6px; font-size: 0.75rem;
  font-weight: 600; cursor: pointer; white-space: nowrap;
  font-family: 'Inter', sans-serif; flex-shrink: 0;
}
.copy-btn:hover { background: #1d4ed8; }

/* ===== KYC ===== */
.kyc-status-box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 10px; margin-bottom: 20px;
}
.kyc-status-box.pending { background: rgba(217,119,6,0.08); border: 1px solid rgba(217,119,6,0.2); }
.kyc-status-box.verified { background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.2); }
.kyc-status-box.rejected { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.2); }
.kyc-status-box.not_submitted { background: #f9fafb; border: 1px solid #e5e7eb; }
.kyc-status-box i { font-size: 1.2rem; }
.kyc-status-box.pending i { color: #d97706; }
.kyc-status-box.verified i { color: #16a34a; }
.kyc-status-box.rejected i { color: #dc2626; }
.kyc-status-box.not_submitted i { color: #9ca3af; }
.kyc-status-title { font-weight: 600; font-size: 0.9rem; color: #111827; }
.kyc-status-desc { font-size: 0.8rem; color: #6b7280; margin-top: 2px; }

.file-upload-area {
  border: 2px dashed #e5e7eb; border-radius: 10px;
  padding: 24px; text-align: center; cursor: pointer;
  transition: 0.2s; background: #fafafa;
}
.file-upload-area:hover, .file-upload-area.drag-over { border-color: #2563eb; background: #eff6ff; }
.file-upload-area input[type=file] { display: none; }
.file-upload-area i { font-size: 1.8rem; color: #d1d5db; margin-bottom: 8px; display: block; }
.file-upload-area p { font-size: 0.85rem; color: #6b7280; margin-bottom: 4px; }
.file-upload-area span { font-size: 0.75rem; color: #9ca3af; }
.file-preview { max-width: 100%; max-height: 140px; border-radius: 8px; margin-top: 10px; object-fit: cover; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; padding-top: 16px; }
.page-btn {
  background: #fff; border: 1px solid #e5e7eb; color: #6b7280;
  padding: 6px 12px; border-radius: 6px; font-size: 0.82rem;
  cursor: pointer; transition: 0.2s;
}
.page-btn.active, .page-btn:hover { background: #2563eb; border-color: #2563eb; color: #fff; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 36px 20px; color: #9ca3af; }
.empty-state i { font-size: 1.8rem; margin-bottom: 10px; display: block; color: #d1d5db; }
.empty-state p { font-size: 0.88rem; margin-bottom: 14px; color: #9ca3af; }

/* ===== PORTFOLIO CARDS ===== */
#pfList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.pf-portfolio-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
  overflow: hidden;
}
.pf-portfolio-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.09); transform: translateY(-1px); }
.pf-portfolio-card.due { border-color: #bbf7d0; background: #f0fdf4; }
@media (max-width: 600px) {
  #pfList { grid-template-columns: 1fr; }
}

/* ===== MARKET TABLE ===== */
.market-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.market-table thead th {
  background: #f9fafb; padding: 12px 14px; text-align: left;
  color: #9ca3af; font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
  border-bottom: 1px solid #e5e7eb;
}
.market-table tbody tr { border-bottom: 1px solid #f3f4f6; transition: background 0.15s; }
.market-table tbody tr:last-child { border-bottom: none; }
.market-table tbody tr:hover { background: #eff6ff; }
.market-table td { padding: 12px 14px; vertical-align: middle; white-space: nowrap; color: #374151; }
.btn-trade {
  background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.2);
  color: #2563eb; padding: 5px 12px; border-radius: 6px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.btn-trade:hover { background: #2563eb; color: #fff; }
.change-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-weight: 600; font-size: 0.8rem; }
.change-badge.positive { background: rgba(22,163,74,0.08); color: #16a34a; }
.change-badge.negative { background: rgba(220,38,38,0.08); color: #dc2626; }
.loading-row { text-align: center; padding: 40px; color: #9ca3af; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid #e5e7eb; border-top-color: #2563eb; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.data-note { margin-top: 10px; font-size: 0.75rem; color: #9ca3af; text-align: right; }
.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-name { font-weight: 600; color: #111827; }
.coin-symbol { font-size: 0.72rem; color: #9ca3af; }

/* ===== FORM GROUP (for modals / settings) ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: #374151; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.input-with-prefix {
  display: flex; align-items: center;
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
}
.input-with-prefix:focus-within { border-color: #2563eb; background: #fff; }
.input-with-prefix span {
  padding: 11px 13px; color: #9ca3af; font-weight: 600;
  border-right: 1px solid #e5e7eb; background: #f3f4f6; flex-shrink: 0;
}
.input-with-prefix input {
  flex: 1; background: none; border: none; padding: 11px 13px;
  color: #111827; font-size: 0.9rem; font-family: 'Inter', sans-serif;
}
.input-with-prefix input:focus { outline: none; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > i:first-child { position: absolute; left: 12px; color: #9ca3af; font-size: 0.82rem; z-index: 1; pointer-events: none; }
.input-icon input, .input-icon select {
  width: 100%; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 10px 12px 10px 36px; color: #111827; font-size: 0.88rem;
  font-family: 'Inter', sans-serif; transition: border-color 0.2s; -webkit-appearance: none;
}
.input-icon input:focus, .input-icon select:focus { outline: none; border-color: #2563eb; background: #fff; }
.input-icon input::placeholder { color: #d1d5db; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; margin-bottom: 16px; }
.alert-error { background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.2); color: #dc2626; }
.alert-success { background: rgba(22,163,74,0.06); border: 1px solid rgba(22,163,74,0.2); color: #16a34a; }
.result-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.88rem; border-bottom: 1px solid #f3f4f6; }
.result-row:last-child { border-bottom: none; }
.result-row span { color: #6b7280; }
.text-green { color: #16a34a; }
.text-red { color: #dc2626; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap; font-family: 'Inter', sans-serif; }
.btn-primary { background: #2563eb; color: #fff; box-shadow: 0 3px 12px rgba(249,115,22,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,0.38); }
.btn-ghost { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }
.btn-ghost:hover { background: #f1f5f9; color: #334155; }
.btn-outline { background: transparent; color: #2563eb; border: 2px solid #2563eb; }
.btn-outline:hover { background: #2563eb; color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.toast { position: fixed; bottom: 24px; right: 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); z-index: 3000; transform: translateX(120%); transition: transform 0.3s; max-width: 300px; }
.toast.show { transform: translateX(0); }
.toast p { font-size: 0.85rem; color: #111827; }
.toast.success .toast-icon { color: #16a34a; }
.toast.error .toast-icon { color: #dc2626; }

/* ===== MODAL UPGRADES ===== */
.dash-body .modal-overlay {
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(8px);
}
.dash-body .modal {
  border-radius: 20px;
  border: 1px solid rgba(226,232,240,0.8);
  box-shadow: 0 24px 60px rgba(15,23,42,0.18), 0 4px 16px rgba(15,23,42,0.1);
  padding: 32px;
  max-width: 440px;
}
.dash-body .modal h3 { font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.dash-body .modal-close {
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* ===== PLAN CARDS UPGRADE ===== */
.plan-card {
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
}
.plan-featured {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: 0 8px 32px rgba(249,115,22,0.15);
}

/* ===== ACTIVE PLAN CARD IN OVERVIEW ===== */
.active-plan-info { padding: 4px 0; }
.plan-info-row {
  display: flex; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid #f1f5f9;
  font-size: 0.87rem;
}
.plan-info-row:last-child { border-bottom: none; }

/* ===== USER AVATAR / TOPBAR ===== */
.user-avatar {
  width: 34px; height: 34px;
  background: #2563eb;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(249,115,22,0.35);
}

/* ===== ICON BUTTON ===== */
.icon-btn {
  width: 36px; height: 36px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #64748b; cursor: pointer; position: relative;
  transition: 0.2s;
}
.icon-btn:hover { background: #eff6ff; color: #2563eb; border-color: rgba(249,115,22,0.3); }

/* ===== TOAST ===== */
.toast {
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.15), 0 2px 8px rgba(15,23,42,0.08);
  border: 1px solid rgba(226,232,240,0.8);
}

/* ===== PAGE HEADER ===== */
.page-header h1 { font-size: 1.45rem; color: #0f172a; font-weight: 800; letter-spacing: -0.3px; }
.page-header p { font-size: 0.86rem; color: #64748b; }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226,232,240,0.8);
  z-index: 600;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  box-shadow: 0 -4px 20px rgba(15,23,42,0.08);
}
.mob-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; flex: 1; padding: 8px 4px;
  color: #9ca3af; text-decoration: none; font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px; transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mob-nav-item i { font-size: 1.15rem; }
.mob-nav-item.active { color: #2563eb; }
.mob-nav-item.mob-nav-deposit { flex: 1.2; }
.mob-nav-plus {
  width: 44px; height: 44px;
  background: #2563eb;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
  margin-bottom: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

@media (max-width: 900px) {
  /* Show bottom nav, add padding so content isn't hidden behind it */
  .mobile-bottom-nav { display: flex; }

  /* Sidebar slides in/out */
  .sidebar { transform: translateX(-100%); pointer-events: none; position: fixed; z-index: 400; }
  .sidebar.mobile-open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.18); pointer-events: auto; z-index: 450; }
  .sidebar-close { display: flex !important; }
  .sidebar-toggle { display: flex; }

  /* Critical: reset dash-main so it fills the full screen width */
  .dash-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding-bottom: 70px;
    overflow-x: hidden;
  }

  /* Hero on mobile */
  .dash-hero { border-radius: 18px; }
  .hero-header { padding: 18px 20px 0; }
  .hero-balance-center { padding: 20px 20px 18px; }
  .hero-balance-val { font-size: 2.4rem; letter-spacing: -1.5px; }
  .hero-balance-breakdown { max-width: 100%; }
  .hero-action-row { gap: 8px; }
  .hero-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-stat-item { padding: 14px 14px; gap: 10px; }
  .hero-stat-label { font-size: 0.62rem; }

  /* Layout */
  .overview-grid { grid-template-columns: 1fr; }
  .chart-card, .transactions-card { grid-column: 1; }
  .settings-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .topbar-search { display: none; }

  /* Modals: bottom sheet */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-overlay .modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%; width: 100%; margin: 0;
    max-height: 92vh; overflow-y: auto;
    padding: 28px 20px 32px;
  }
  .modal-overlay .modal::before {
    content: ''; display: block;
    width: 40px; height: 4px; background: #e5e7eb;
    border-radius: 2px; margin: 0 auto 20px;
  }
  .modal-overlay .modal .modal-close { top: 20px; right: 16px; }

  /* Notification panel full width */
  .notif-panel { width: 100%; max-width: 100%; }

  /* Stat cards 2-column */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .page { padding: 10px 10px 80px; overflow-x: hidden; }
  .dash-main { padding-bottom: 0; }
  .dash-hero { border-radius: 16px; }
  .hero-header { padding: 16px 16px 0; }
  .hero-account-badge span { display: none; }
  .hero-balance-center { padding: 18px 16px 16px; }
  .hero-balance-val { font-size: 2rem; letter-spacing: -1px; }
  .hero-balance-breakdown { border-radius: 12px; }
  .balance-chip { padding: 10px 12px; }
  .chip-val { font-size: 0.88rem; }
  .chip-label { font-size: 0.6rem; }
  .btn-hero-ghost, .btn-hero-solid, .btn-hero-invest { padding: 8px 14px; font-size: 0.8rem; }
  .hero-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-stat-item { padding: 12px 10px; gap: 8px; }
  .hero-stat-icon { width: 32px; height: 32px; font-size: 0.82rem; border-radius: 9px; }
  .hero-stat-val { font-size: 0.88rem; }
  .page-header { flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
  .page-header h1 { font-size: 1.25rem; }
  .page-header-actions { width: 100%; display: flex; gap: 8px; }
  .page-header-actions input,
  .page-header-actions select { flex: 1; font-size: 0.85rem; }
  .page-header-actions .btn { flex: 1; justify-content: center; }

  /* Topbar */
  .topbar { padding: 0 12px; }
  .user-info { display: none; }
  .topbar-left { gap: 10px; }

  /* Stat cards */
  .stat-card { padding: 14px 12px; gap: 10px; }
  .stat-card-icon { width: 38px; height: 38px; font-size: 0.95rem; }
  .stat-card-value { font-size: 1.05rem; }
  .stat-card-label { font-size: 0.68rem; }

  /* Method buttons stack */
  .method-grid { grid-template-columns: 1fr; }

  /* Form rows stack */
  .form-row { grid-template-columns: 1fr; }

  /* Portfolio */
  .portfolio-split { flex-direction: column; align-items: center; gap: 16px; }
  #allocChart { width: 180px !important; height: 180px !important; }

  /* Plan cards */
  .plan-card { padding: 20px 16px; }
  .plan-price .amount { font-size: 2rem; }

  /* Wallet address */
  .wallet-addr { font-size: 0.72rem; word-break: break-all; }

  /* Toast */
  .toast { right: 10px; left: 10px; max-width: 100%; bottom: 70px; }

  /* Dash cards */
  .dash-card { border-radius: 12px; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card-value { font-size: 1.15rem; }
}

/* ===== OVERVIEW REDESIGN (flat, no hero) ===== */
.ov-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}
.ov-greet { font-size: 0.78rem; color: #9ca3af; margin-bottom: 2px; }
.ov-name { font-size: 1.5rem; font-weight: 800; color: #111827; }
.ov-action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-flat-outline {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, color 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.btn-flat-outline:hover { border-color: #2563eb; color: #2563eb; }
.btn-flat-primary {
  background: #2563eb;
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s;
}
.btn-flat-primary:hover { background: #ea6d08; }

.ov-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.ov-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
}
.stat-border-blue { border-left: 4px solid #2563eb; }
.stat-border-blue   { border-left: 4px solid #3b82f6; }
.stat-border-gray   { border-left: 4px solid #9ca3af; }
.stat-border-green  { border-left: 4px solid #16a34a; }
.ov-stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: #9ca3af; font-weight: 600; margin-bottom: 6px; }
.ov-stat-val { font-size: 1.4rem; font-weight: 800; color: #111827; letter-spacing: -0.5px; }
.ov-stat-sub { font-size: 0.75rem; color: #9ca3af; margin-top: 4px; }

/* Remove hero shadow from btn-hero-solid */
.btn-hero-solid { box-shadow: none !important; }
.btn-hero-solid:hover { transform: none !important; box-shadow: none !important; }
.stat-card:hover { transform: none !important; box-shadow: 0 1px 4px rgba(0,0,0,.05) !important; }

/* Flat stat-icon (remove background boxes) */
.stat-icon { color: #2563eb; font-size: 1.1rem; flex-shrink: 0; }

@media (max-width: 900px) {
  .ov-stats-row { grid-template-columns: repeat(2, 1fr); }
  .ov-header { padding: 14px 16px; }
}
@media (max-width: 600px) {
  .ov-header {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .ov-greet-block { min-width: 0; }
  .ov-name { font-size: 1.2rem; }
  .ov-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .ov-action-row .btn-flat-outline,
  .ov-action-row .btn-flat-primary {
    justify-content: center;
    font-size: 0.75rem;
    padding: 9px 4px;
    white-space: nowrap;
  }
  .ov-stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ov-stat-card { padding: 12px; }
  .ov-stat-val { font-size: 1.05rem; }
  .ov-stat-label { font-size: 0.65rem; }
}
