/* ============================================
   SenderCorex Dashboard
   Reuses brand tokens from landing styles.css
   ============================================ */

:root {
  --bg:        #0a0a14;
  --bg-soft:   #0f0f1c;
  --bg-elev:   #14152a;
  --bg-card:   #1a1b30;

  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-light:  #64748b;
  --text-dim:    #475569;

  --border:    #1e1f3a;
  --border-2:  #2d2e4f;

  --primary:   #8b5cf6;
  --primary-2: #7c3aed;
  --accent:    #ec4899;
  --teal:      #06b6d4;
  --green:     #22d3a4;
  --warn:      #f59e0b;
  --danger:    #ef4444;

  --grad:       linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-soft:  linear-gradient(135deg, rgba(139,92,246,0.12) 0%, rgba(236,72,153,0.12) 100%);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;

  --shadow:    0 4px 6px -1px rgba(0,0,0,0.3);
  --shadow-md: 0 10px 24px -8px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,0.5);
  --shadow-xl: 0 30px 60px -15px rgba(0,0,0,0.6);

  --sidebar-w: 240px;
  --topbar-h:  68px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.01em;
  position: relative;
}
.btn svg { width: 18px; height: 18px; }
.btn.full { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5); }
.btn-primary:disabled { opacity: 0.7; pointer-events: none; transform: none; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-2); }

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover { background: #dc2626; }

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label    { display: none; }

.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.link:hover { color: var(--accent); text-decoration: underline; }

/* Admin-mode (when serving from /admin URL) — defaults; admin/index.html overrides further */
body.admin-mode .auth-shell h1 { color: var(--text); }

/* ===== Toast ===== */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  min-width: 280px;
  max-width: 420px;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.success { border-color: rgba(34, 211, 164, 0.4); }
.toast.error   { border-color: rgba(239, 68, 68, 0.4); }
.toast.info    { border-color: var(--border-2); }
.toast-icon { width: 20px; height: 20px; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--green); }
.toast.error   .toast-icon { color: var(--danger); }
.toast.info    .toast-icon { color: var(--primary); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   AUTH SHELL
   ============================================ */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.auth-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
  top: -150px; left: -100px;
  animation: float 22s ease-in-out infinite;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
  bottom: -100px; right: -50px;
  animation: float 28s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-xl);
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}
.brand-mark svg { width: 18px; height: 18px; }

.auth-form h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.auth-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.field {
  display: block;
  margin-bottom: 14px;
}
.field span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.field span .hint {
  color: var(--text-light);
  font-style: normal;
  font-weight: 400;
  margin-left: 6px;
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); }
.field input.error { border-color: var(--danger); }

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}
.check input[type=checkbox] { accent-color: var(--primary); width: 14px; height: 14px; }
.check.accept {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.check.accept input { margin-top: 2px; }

.form-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--danger);
}
.form-success {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--green);
  background: rgba(34, 211, 164, 0.08);
  border: 1px solid rgba(34, 211, 164, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
}

.auth-foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.verify-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-2);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 24px auto;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   APP SHELL (after login)
   ============================================ */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  background: #050510;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.sidebar-nav a.active {
  background: var(--grad-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25);
}
.sidebar-nav a.active svg { color: var(--primary); }

.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.usage-mini {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.usage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.usage-row strong { color: var(--text); font-weight: 600; }
.usage-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}
.usage-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 100px;
  transition: width 0.4s ease;
}
.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: all var(--transition);
}
.btn-logout svg { width: 16px; height: 16px; }
.btn-logout:hover { background: rgba(239, 68, 68, 0.08); color: var(--danger); }

/* Main content */
.app-main { display: flex; flex-direction: column; min-width: 0; }

.app-topbar {
  height: var(--topbar-h);
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-left h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 2px;
}
.topbar-left p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px 6px 6px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.user-chip::before {
  content: '';
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad);
  display: inline-block;
}

.app-content {
  flex: 1;
  padding: 28px;
  overflow-x: hidden;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-head h2 { font-size: 17px; font-weight: 700; }
.card-head p { font-size: 13px; color: var(--text-muted); margin: 0; }

.section { margin-bottom: 24px; }
.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* ===== KPI grid ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0.5;
}
.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}
.kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1;
}
.kpi-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.kpi-meta.up   { color: var(--green); }
.kpi-meta.down { color: var(--danger); }

/* ===== Tables ===== */
.table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
table.data thead th {
  background: var(--bg-card);
  text-align: left;
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
table.data tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
}
.tag.green  { background: rgba(34, 211, 164, 0.12); color: var(--green); }
.tag.red    { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.tag.yellow { background: rgba(245, 158, 11, 0.12); color: var(--warn); }
.tag.gray   { background: rgba(148, 163, 184, 0.12); color: var(--text-muted); }
.tag.purple { background: rgba(139, 92, 246, 0.12); color: var(--primary); }

/* ===== Empty state ===== */
.empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.empty svg {
  width: 48px; height: 48px;
  color: var(--text-dim);
  margin: 0 auto 16px;
}
.empty h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.empty p { font-size: 14px; margin: 0 0 20px; }

/* ============================================
   BILLING — USDT PAYMENT FLOW
   ============================================ */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.plan-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 0 60px rgba(139, 92, 246, 0.15);
}
.plan-card.current {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.plan-tag {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-tag.popular { background: var(--grad); color: white; }
.plan-tag.current { background: var(--green); color: #064e3b; }
.plan-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.plan-desc { color: var(--text-muted); font-size: 13px; margin: 0 0 16px; }
.plan-price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}
.plan-price small { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.plan-pay {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 18px;
}
.plan-feats {
  flex: 1;
  margin-bottom: 18px;
}
.plan-feats li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.plan-feats li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Payment modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.show .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
}
.modal-close:hover { background: var(--bg-card); color: var(--text); }
.modal h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.modal-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.pay-amount {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.pay-amount-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pay-amount-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.pay-amount-network {
  margin-top: 8px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(236, 72, 153, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
}

.pay-address {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pay-address-text {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text);
  word-break: break-all;
}
.pay-address-copy {
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.pay-address-copy:hover { color: var(--text); border-color: var(--primary); }

.pay-warn {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #fbbf24;
  line-height: 1.5;
}

.pay-txid-input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.pay-txid-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); }

.pay-instructions {
  margin: 18px 0;
  padding: 0;
}
.pay-instructions li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 13px;
  color: var(--text-muted);
  counter-increment: step;
}
.pay-instructions li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  background: var(--grad);
  color: white;
  font-weight: 700;
  font-size: 11px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.pay-instructions { counter-reset: step; }

/* ===== Forms ===== */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.form-group textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  resize: vertical;
  min-height: 200px;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 50;
  }
  .app-sidebar.open { transform: translateX(0); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .auth-card { padding: 28px 24px; }
  .app-content { padding: 18px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px; }
}
