/* ============================================
   SMP LOGS — Design System v2
   Dark, structured, fully responsive
   ============================================ */

:root {
  /* Brand */
  --primary: #22d3a6;
  --primary-dark: #10b98b;
  --primary-light: #6ee7c4;
  --secondary: #7c6cff;
  --accent: #ffc866;
  --danger: #ff6b6b;
  --success: #2ecc8f;
  --warning: #ffc866;
  --info: #6db3ff;

  /* Surfaces */
  --bg-dark: #07070c;
  --bg-body: #07070c;
  --bg-card: #101018;
  --bg-card-hover: #16161f;
  --bg-input: #0c0c13;
  --bg-elevated: #14141d;

  /* Text */
  --text-primary: #f5f6fa;
  --text-secondary: #a5a6b8;
  --text-muted: #6f7086;
  --text-dark: #4a4b5e;

  /* Lines */
  --border: #1d1d2a;
  --border-light: #2a2a3c;
  --border-focus: var(--primary);

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px rgba(34, 211, 166, 0.18);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --gradient-brand: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-surface: linear-gradient(160deg, rgba(34, 211, 166, 0.08), rgba(124, 108, 255, 0.05));

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-w: 264px;
  --header-h: 64px;
  --container: 1200px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--primary-light); }

.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 88px 0;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
  white-space: nowrap;
  line-height: 1.2;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--gradient-primary);
  color: #04251c;
  box-shadow: 0 6px 18px rgba(34, 211, 166, 0.24);
  font-weight: 700;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(34, 211, 166, 0.32); color: #04251c; }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--primary); color: var(--text-primary); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover:not(:disabled) { color: var(--text-primary); background: var(--bg-elevated); }

.btn-danger { background: rgba(255, 107, 107, 0.12); color: var(--danger); border-color: rgba(255, 107, 107, 0.35); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 107, 107, 0.2); }

.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition);
}
.card-hover:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-title { font-size: 16px; margin-bottom: 4px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-success { background: rgba(46, 204, 143, 0.12); color: var(--success); border-color: rgba(46, 204, 143, 0.3); }
.badge-warning { background: rgba(255, 200, 102, 0.12); color: var(--warning); border-color: rgba(255, 200, 102, 0.3); }
.badge-danger { background: rgba(255, 107, 107, 0.12); color: var(--danger); border-color: rgba(255, 107, 107, 0.3); }
.badge-info { background: rgba(109, 179, 255, 0.12); color: var(--info); border-color: rgba(109, 179, 255, 0.3); }
.badge-primary { background: rgba(34, 211, 166, 0.12); color: var(--primary); border-color: rgba(34, 211, 166, 0.3); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.form-input,
.form-select,
.form-textarea,
input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='tel'],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-main);
  transition: var(--transition);
}
.form-input:focus,
select:focus,
textarea:focus,
input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(34, 211, 166, 0.12);
}
.form-input::placeholder { color: var(--text-dark); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.25);
  border-radius: var(--radius-xs);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

/* ---------- Public navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  background: rgba(7, 7, 12, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}
.brand:hover { color: var(--text-primary); }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.brand span { color: var(--primary); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.navbar-nav a { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.navbar-nav a:hover { color: var(--text-primary); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  place-items: center;
}

/* ---------- Dashboard shell ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  background: #0a0a11;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  z-index: 950;
  overflow-y: auto;
}
.sidebar-brand { padding: 6px 8px 20px; }
.sidebar-section {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 700;
  padding: 16px 10px 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { background: var(--bg-elevated); color: var(--text-primary); }
.sidebar-link.active {
  background: rgba(34, 211, 166, 0.1);
  color: var(--primary);
  box-shadow: inset 2px 0 0 var(--primary);
}
.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }

.main { grid-column: 2; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
  padding: 0 20px;
  background: rgba(7, 7, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 16px; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 166, 0.1);
  border: 1px solid rgba(34, 211, 166, 0.28);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-mono);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}
.page { padding: 24px 20px 96px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(21px, 3vw, 28px); }
.page-head p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.show { opacity: 1; pointer-events: auto; }

/* Mobile bottom nav */
.tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 880;
  background: rgba(10, 10, 17, 0.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0;
}
.tabbar a svg { width: 20px; height: 20px; }
.tabbar a.active { color: var(--primary); }

/* ---------- Stat cards ---------- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-size: clamp(20px, 3vw, 26px); font-weight: 800; font-family: var(--font-mono); letter-spacing: -0.02em; }
.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  font-size: 17px;
}
.stat-trend { font-size: 12px; color: var(--text-muted); }

/* ---------- Virtual account card ---------- */
.va-card {
  background: linear-gradient(140deg, #0f1f1b 0%, #10101a 55%, #151029 100%);
  border: 1px solid rgba(34, 211, 166, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.va-card::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -110px;
  background: radial-gradient(circle, rgba(34, 211, 166, 0.18), transparent 70%);
  pointer-events: none;
}
.va-number {
  font-family: var(--font-mono);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  word-break: break-all;
}
.va-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.va-meta div span { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.va-meta div strong { font-size: 14px; font-weight: 600; }

/* ---------- Account (product) cards ---------- */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.account-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: var(--transition);
  min-width: 0;
}
.account-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.account-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.account-platform { display: flex; align-items: center; gap: 11px; min-width: 0; }
.platform-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.platform-logo svg { width: 22px; height: 22px; fill: currentColor; }
.platform-logo.sm { width: 32px; height: 32px; border-radius: 9px; }
.platform-logo.sm svg { width: 17px; height: 17px; }
.platform-logo.lg { width: 54px; height: 54px; border-radius: 16px; }
.platform-logo.lg svg { width: 28px; height: 28px; }
.account-platform-name { font-size: 15px; font-weight: 700; line-height: 1.25; }
.account-type { font-size: 12px; color: var(--text-muted); }

.account-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.spec {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  min-width: 0;
}
.spec-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); }
.spec-value { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.account-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.account-price { font-size: 19px; font-weight: 800; font-family: var(--font-mono); color: var(--primary); }
.account-price small { display: block; font-size: 11px; color: var(--text-muted); font-family: var(--font-main); font-weight: 500; }
.account-actions { display: flex; gap: 8px; }

/* Filter chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.chip:hover { border-color: var(--border-light); color: var(--text-primary); }
.chip.active { background: rgba(34, 211, 166, 0.12); border-color: var(--primary); color: var(--primary); }
.chip svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Tables ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
table.data th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  white-space: nowrap;
}
table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--bg-card-hover); }

.empty {
  text-align: center;
  padding: 52px 20px;
  color: var(--text-muted);
}
.empty-icon { font-size: 40px; opacity: 0.35; margin-bottom: 12px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
}
.modal-overlay.active .modal { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  transition: all 0.3s ease;
  animation: toastIn 0.25s ease;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

.copy-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-family: var(--font-mono);
  font-size: 14px;
  word-break: break-all;
}
.copy-field button {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.alert {
  display: flex;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.55;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
.alert-info { border-color: rgba(109, 179, 255, 0.3); background: rgba(109, 179, 255, 0.07); }
.alert-warning { border-color: rgba(255, 200, 102, 0.3); background: rgba(255, 200, 102, 0.07); }
.alert-success { border-color: rgba(46, 204, 143, 0.3); background: rgba(46, 204, 143, 0.07); }

.divider { height: 1px; background: var(--border); margin: 20px 0; }

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: radial-gradient(900px 500px at 50% -10%, rgba(34, 211, 166, 0.09), transparent 70%);
}
.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .navbar-nav { display: none; }
  .nav-toggle { display: grid; }
  .navbar-actions .btn-secondary { display: none; }

  .shell { grid-template-columns: 1fr; }
  .main { grid-column: 1; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: none; }
  .tabbar { display: grid; }
  .page { padding: 18px 14px 110px; }
  .section { padding: 60px 0; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-1-sm { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; border-radius: var(--radius-md); }
  .modal { padding: 20px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .topbar { padding: 0 14px; }
  .container { padding: 0 16px; }
  .va-meta { gap: 14px; }
}

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