/* ============================================================
   SalesHub Licensing — Global Stylesheet
   Dark premium theme with glassmorphism
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary:    #0a0e1a;
  --bg-secondary:  #0f1525;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-light:  rgba(255,255,255,0.12);

  --accent:        #6366f1;
  --accent-light:  #818cf8;
  --accent-glow:   rgba(99,102,241,0.25);
  --success:       #22c55e;
  --success-bg:    rgba(34,197,94,0.12);
  --danger:        #ef4444;
  --danger-bg:     rgba(239,68,68,0.12);
  --warning:       #f59e0b;
  --warning-bg:    rgba(245,158,11,0.12);
  --info:          #38bdf8;
  --info-bg:       rgba(56,189,248,0.12);

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  --radius:        12px;
  --radius-lg:     16px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.6);
  --transition:    all 0.2s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 14px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }

/* ── Layout ── */
.layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: 240px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-brand .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.sidebar-brand .logo-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.2;
}

.sidebar-brand .logo-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
}

.sidebar-nav { padding: 16px 12px; flex: 1; }

.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 8px;
  margin: 12px 0 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  transition: var(--transition);
  margin-bottom: 2px;
}

.nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.2);
}

.nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

/* ── Main Content ── */
.main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ── */
.topbar {
  height: 60px;
  background: rgba(10,14,26,0.9);
  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: 50;
}

.topbar-title { font-size: 16px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
}

/* ── Page Content ── */
.page { padding: 28px; flex: 1; }
.page-header { margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 700; }
.page-subtitle { color: var(--text-muted); font-size: 13px; margin-top: 3px; }

/* ── Stats Cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.stat-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.indigo { background: var(--accent-glow); }
.stat-icon.green  { background: var(--success-bg); }
.stat-icon.red    { background: var(--danger-bg); }
.stat-icon.blue   { background: var(--info-bg); }
.stat-icon.yellow { background: var(--warning-bg); }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ── Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  overflow: hidden;
  margin-bottom: 24px;
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title { font-weight: 600; font-size: 15px; }
.card-body { padding: 22px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-muted   { background: rgba(100,116,139,.15); color: var(--text-muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 0 30px var(--accent-glow); }

.btn-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.btn-success:hover { background: rgba(34,197,94,0.2); }

.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.btn-warning:hover { background: rgba(245,158,11,0.2); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 7px; width: 32px; height: 32px; justify-content: center; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(99,102,241,0.05);
}

.form-control::placeholder { color: var(--text-muted); }

.form-select option { background: var(--bg-secondary); color: var(--text-primary); }

.form-grid { display: grid; gap: 18px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-hint {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 7px;
}

/* ── Alert ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34,197,94,.2); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(239,68,68,.2); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #111827;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  margin: 16px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 16px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 20px; padding: 0; line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 22px; }
.modal-footer {
  padding: 14px 22px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Search bar ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px 9px 36px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}

.login-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 14px;
  box-shadow: 0 0 40px var(--accent-glow);
}

.login-logo h1 { font-size: 22px; font-weight: 800; }
.login-logo p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* ── Public user pages ── */
.public-page {
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.14), transparent 32rem),
    radial-gradient(circle at top right, rgba(34,197,94,0.10), transparent 28rem),
    var(--bg-primary);
}

.public-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
}

.public-brand strong,
.public-brand small {
  display: block;
}

.public-brand small {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.public-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--info), var(--success));
  color: #04111d;
  font-weight: 900;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.public-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.035);
  color: var(--text-secondary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.public-nav a:hover,
.public-nav a.active {
  color: var(--text-primary);
  border-color: rgba(56,189,248,0.32);
  background: rgba(56,189,248,0.10);
}

.public-shell,
.compact-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.auth-page {
  min-height: 100vh;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 48px;
  align-items: center;
  padding: 42px 0;
}

.auth-hero {
  display: grid;
  gap: 72px;
}

.auth-hero h1 {
  max-width: 650px;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.auth-hero p {
  max-width: 540px;
  color: var(--text-secondary);
  font-size: 16px;
}

.auth-card {
  max-width: none;
}

.auth-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-switch a {
  color: var(--accent-light);
  font-weight: 700;
  text-decoration: none;
}

.plan-eyebrow {
  color: var(--info);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.compact-hero {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: center;
  padding: 20px 0 24px;
}

.compact-hero h1 {
  font-size: 44px;
  line-height: 1.03;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.compact-hero p {
  max-width: 660px;
  color: var(--text-secondary);
  font-size: 15px;
}

.mini-status-card {
  border: 1px solid rgba(56,189,248,0.26);
  border-radius: var(--radius);
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(56,189,248,0.13), rgba(34,197,94,0.10)),
    rgba(255,255,255,0.035);
  box-shadow: var(--shadow);
}

.mini-status-card span,
.mini-status-card small {
  display: block;
  color: var(--text-muted);
}

.mini-status-card strong {
  display: block;
  margin: 4px 0;
  font-size: 32px;
  line-height: 1.1;
}

.public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 20px;
  align-items: start;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(280px, 1.1fr) minmax(320px, 1.2fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 28px;
}

.payment-card {
  min-height: 100%;
}

.payment-instructions {
  display: grid;
  gap: 16px;
}

.payment-line {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.payment-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.payment-line span,
.payment-line small {
  color: var(--text-muted);
}

.payment-line strong {
  color: var(--text-primary);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.qris-frame,
.empty-qris {
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-light);
  background: rgba(255,255,255,0.035);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-align: center;
  overflow: hidden;
}

.qris-frame img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.plan-card {
  border-color: rgba(56,189,248,0.18);
}

.plan-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.plan-title {
  font-size: 24px;
  font-weight: 800;
}

.payment-target {
  min-width: 260px;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.035);
}

.payment-target span,
.payment-target small {
  color: var(--text-muted);
}

.payment-target strong {
  overflow-wrap: anywhere;
}

.stat-currency {
  font-size: 22px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ── Utility ── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; }
.text-sm { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.font-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 12px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.w-full { width: 100%; }
.mb-4 { margin-bottom: 16px; }

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  min-width: 250px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

@keyframes fadeOut {
  to { transform: translateX(100%); opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .main { margin-left: 0; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .public-grid,
  .payment-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .plan-strip {
    align-items: stretch;
    flex-direction: column;
  }
  .payment-target {
    min-width: 0;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-page,
  .compact-hero {
    grid-template-columns: 1fr;
  }
  .auth-page {
    gap: 28px;
  }
  .auth-hero {
    gap: 28px;
  }
  .auth-hero h1,
  .compact-hero h1 {
    font-size: 34px;
  }
  .public-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .public-nav {
    width: 100%;
    justify-content: stretch;
  }
  .public-nav a {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .public-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-card {
    padding: 28px 22px;
  }
}

/* Public user cards */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.action-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.07);
}

.action-card.passive:hover {
  transform: none;
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

.action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--info), var(--success));
  color: #06111d;
  font-weight: 900;
}

.action-card strong {
  font-size: 18px;
}

.action-card small {
  color: var(--text-muted);
  font-size: 13px;
}
