/* ============================================================
   BebeqGate — Clean light theme (SPACEDIGITAL-inspired)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --primary: #7c3aed;
  --primary-soft: #ede9fe;
  --primary-dark: #6d28d9;

  --success: #10b981;
  --success-soft: #d1fae5;
  --info: #3b82f6;
  --info-soft: #dbeafe;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --warning: #f59e0b;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

button { font-family: inherit; cursor: pointer; }

/* ============================================================
   USER-FACING PAGES (no sidebar, centered)
   ============================================================ */

.user-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ===== GATE CARD ===== */
.gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

.gate-header { text-align: center; margin-bottom: 28px; }

.gate-avatar {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 700;
  overflow: hidden;
}
.gate-avatar img { width: 100%; height: 100%; object-fit: cover; }

.gate-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.gate-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.badge-subscriber {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Steps */
.step { display: flex; gap: 14px; padding: 18px 0; }
.step-divider { height: 1px; background: var(--border); }

.step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: all .2s;
}
.step.locked .step-num { background: var(--border-strong); color: white; }
.step.done .step-num { background: var(--success); }
.step.done .step-num::after { content: '✓'; font-size: 14px; }
.step.done .step-num span { display: none; }

.step-body { flex: 1; min-width: 0; }
.step-body h3 { font-size: 15px; margin-bottom: 4px; font-weight: 600; color: var(--text); }
.step-body p { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.step.locked .step-body h3, .step.locked .step-body p { color: var(--text-light); }

/* Buttons (clean, outline-friendly) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.btn:hover { border-color: var(--border-strong); background: var(--bg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }

.btn-yt {
  background: #cc0000;
  border-color: #cc0000;
  color: white;
}
.btn-yt:hover { background: #a30000; border-color: #a30000; color: white; }

.btn-discord {
  background: #5865f2;
  border-color: #5865f2;
  color: white;
}
.btn-discord:hover { background: #4752c4; border-color: #4752c4; color: white; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Verify states */
.verify-pill {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 14px;
  background: var(--primary-soft);
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  width: max-content;
}
.verify-pill.show { display: inline-flex; }
.verify-pill .spinner {
  width: 12px; height: 12px;
  border: 2px solid var(--primary);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.verified-pill {
  display: none;
  margin-top: 12px;
  padding: 7px 14px;
  background: var(--success-soft);
  border: 1px solid var(--success);
  border-radius: 999px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  width: max-content;
}
.verified-pill.show { display: inline-block; }

.warn-msg {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 12.5px;
}
.warn-msg.show { display: block; }

/* Community banner */
.community-banner {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.community-banner .ic {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #5865f2;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}
.community-banner .txt { flex: 1; min-width: 180px; }
.community-banner h4 { font-size: 15px; margin-bottom: 2px; font-weight: 600; }
.community-banner p { color: var(--text-muted); font-size: 13px; }

/* Catalog */
.catalog { margin-top: 32px; }
.catalog-head { margin-bottom: 18px; }
.catalog-head h2 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.catalog-head p { color: var(--text-muted); font-size: 13px; }

.tabs {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: max-content;
  margin-bottom: 16px;
}
.tab {
  padding: 7px 16px;
  border-radius: 7px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.tab.active { background: var(--primary-soft); color: var(--primary); }
.tab .count {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  font-size: 11px;
}
.tab.active .count { background: var(--primary); color: white; }

/* Tool grid (cards) */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .15s;
  position: relative;
}
.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.tool-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  overflow: hidden;
  position: relative;
}
.tool-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tool-thumb .type-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.tool-thumb .type-badge.free {
  background: rgba(16, 185, 129, .9);
  color: white;
}
.tool-thumb .type-badge.paid {
  background: rgba(124, 58, 237, .9);
  color: white;
}
.tool-thumb .new-badge {
  position: absolute;
  top: 8px; right: 8px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--warning);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tool-body { padding: 12px 14px 14px; }
.tool-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-desc {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.tool-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.tool-host {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.tool-action {
  padding: 6px 12px;
  border-radius: 7px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  transition: all .15s;
}
.tool-action:hover { background: var(--primary-dark); color: white; }

.tool-card.locked .tool-action { background: var(--border-strong); cursor: not-allowed; pointer-events: none; }
.tool-card.locked .tool-thumb { filter: blur(4px) brightness(.95); }
.tool-card.locked::before {
  content: '🔒 SUBSCRIBE TO UNLOCK';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid var(--primary);
  white-space: nowrap;
}

.tool-card.premium .tool-price {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}

.tool-card.card-hidden { display: none; }

.load-more-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.load-more-btn {
  min-width: 160px;
  justify-content: center;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 12px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary); }

/* ===== Tool detail page ===== */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
.detail-back:hover { color: var(--primary); }

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.detail-hero {
  aspect-ratio: 16/9;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero iframe { width: 100%; height: 100%; border: 0; }

.detail-body { padding: 26px 28px 28px; }
.detail-body .title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.detail-body h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.detail-body .desc {
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  margin: 14px 0 20px;
  white-space: pre-wrap;
}

.download-box {
  margin-top: 18px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.download-box .label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.download-box .url {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
  margin-top: 4px;
}

.gate-required {
  text-align: center;
  padding: 50px 20px;
}
.gate-required h2 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.gate-required p { color: var(--text-muted); margin-bottom: 18px; font-size: 13px; }

@media (max-width: 600px) {
  .user-page { padding: 24px 16px 60px; }
  .gate-card { padding: 28px 22px; }
  .gate-title { font-size: 20px; }
  .detail-body { padding: 20px 18px; }
  .detail-body h1 { font-size: 18px; }
}

/* ============================================================
   ADMIN PANEL (sidebar layout — SPACEDIGITAL style)
   ============================================================ */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar .brand {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar .brand-logo {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.sidebar .brand-text { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

.sidebar .menu-label {
  padding: 18px 22px 8px;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar nav { padding: 0 12px; flex: 1; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin: 1px 0;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  transition: all .12s;
}
.sidebar nav a:hover { background: var(--bg); color: var(--text); }
.sidebar nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.sidebar nav a .ic { width: 18px; text-align: center; font-size: 15px; }

.sidebar .foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.sidebar .foot a { color: var(--text-muted); }
.sidebar .foot a:hover { color: var(--primary); }

.admin-main {
  flex: 1;
  min-width: 0;
  background: var(--bg);
}

.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.admin-topbar .user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-topbar .user-info { text-align: right; line-height: 1.2; }
.admin-topbar .user-name { font-size: 13px; font-weight: 600; }
.admin-topbar .user-role { font-size: 11px; color: var(--text-muted); }
.admin-topbar .user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.admin-content { padding: 28px 32px 48px; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 14px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.page-head .crumbs { color: var(--text-muted); font-size: 12px; }

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat .label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.stat .value {
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.stat .value.accent { color: var(--primary); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.card-head {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-head .lead { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* Tables — SPACEDIGITAL style */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  text-align: left;
  padding: 12px 18px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 14px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg); }

td .thumb-sm {
  width: 56px; height: 32px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--bg);
  display: block;
  border: 1px solid var(--border);
}

/* Status pills (SPACEDIGITAL-style outline) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
  background: white;
  white-space: nowrap;
}
.pill.success { color: var(--success); border-color: var(--success); }
.pill.info { color: var(--info); border-color: var(--info); }
.pill.primary { color: var(--primary); border-color: var(--primary); }
.pill.muted { color: var(--text-muted); border-color: var(--border-strong); }

/* Action buttons in tables (outline style like SPACEDIGITAL Edit/Remove) */
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.btn-sm {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  line-height: 1.4;
}
.btn-sm.edit { color: var(--primary); border-color: var(--primary); }
.btn-sm.edit:hover { background: var(--primary-soft); }
.btn-sm.view { color: var(--text-muted); border-color: var(--border-strong); }
.btn-sm.view:hover { background: var(--bg); color: var(--text); }
.btn-sm.danger { color: var(--danger); border-color: var(--danger); }
.btn-sm.danger:hover { background: var(--danger-soft); }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid label {
  display: block;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 6px;
}
.form-grid input[type=text],
.form-grid input[type=url],
.form-grid input[type=number],
.form-grid input[type=password],
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  transition: border-color .15s;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-grid textarea { min-height: 120px; resize: vertical; }
.form-grid .help { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }
.form-grid input[type=file] {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
}

.form-actions {
  margin-top: 22px;
  display: flex;
  gap: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
}
.checkbox-row input { width: 16px; height: 16px; cursor: pointer; }

/* Flash messages */
.flash {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  border: 1px solid;
}
.flash.ok { background: var(--success-soft); border-color: var(--success); color: #065f46; }
.flash.err { background: var(--danger-soft); border-color: var(--danger); color: #991b1b; }

/* Login / install standalone pages */
.standalone-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
}
.standalone-box {
  max-width: 420px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.standalone-box .brand-row {
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}
.standalone-box .brand-logo {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
}
.standalone-box h1 { font-size: 18px; font-weight: 700; }
.standalone-box .lead { color: var(--text-muted); font-size: 13px; text-align: center; margin-bottom: 22px; }
.standalone-box label {
  display: block;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  margin: 14px 0 6px;
}
.standalone-box input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 14px;
}
.standalone-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.standalone-box button[type=submit] {
  width: 100%;
  margin-top: 20px;
  padding: 11px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 14px;
}
.standalone-box button[type=submit]:hover { background: var(--primary-dark); }

ol.steps { padding-left: 18px; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
ol.steps b { color: var(--text); }

@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .sidebar nav { display: flex; overflow-x: auto; padding: 8px; }
  .sidebar nav a { white-space: nowrap; margin: 0 2px; }
  .sidebar .menu-label, .sidebar .foot { display: none; }
  .admin-content { padding: 22px 18px 40px; }
  .admin-topbar { padding: 12px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .row-actions { flex-direction: column; gap: 4px; align-items: stretch; }
}
