/*
 * THC Tracker — Verbena Projects
 * assets/style.css
 *
 * Mobile-first. Dark theme. Gold accents.
 * Matches the Verbena Projects / vp-fun.com aesthetic.
 */

/* ── Google Fonts ─────────────────────────────────────────
   Cormorant Garamond → headings (matches vp-fun.com)
   Work Sans          → body / UI
   ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Work+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────
   Single source of truth for all colors, radii, shadows.
   Update here → updates everywhere.
   ──────────────────────────────────────────────────────── */
:root {
  /* Palette — from vp-fun.com */
  --deep-space:      #06071a;
  --cosmic-purple:   #1f124a;
  --star-gold:       #d7b34b;
  --star-gold-dim:   rgba(215, 179, 75, 0.15);
  --star-gold-border:rgba(215, 179, 75, 0.25);
  --nebula-pink:     #c56fa4;
  --moon-silver:     #dad7e8;
  --galaxy-blue:     #3b3f72;
  --accent-cyan:     #7fd9ff;

  /* Semantic */
  --bg-primary:      var(--deep-space);
  --bg-card:         rgba(255, 255, 255, 0.03);
  --bg-input:        rgba(255, 255, 255, 0.05);
  --bg-input-focus:  rgba(255, 255, 255, 0.08);
  --border-subtle:   rgba(255, 255, 255, 0.08);
  --border-gold:     var(--star-gold-border);
  --text-primary:    var(--moon-silver);
  --text-muted:      rgba(218, 215, 232, 0.5);
  --text-label:      rgba(218, 215, 232, 0.7);
  --success:         #2ecc71;
  --success-bg:      rgba(46, 204, 113, 0.1);
  --danger:          #ff3b30;
  --danger-bg:       rgba(255, 59, 48, 0.1);
  --warning:         #f39c12;

  /* Shape */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-pill:999px;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10:40px;
  --sp-12:48px;

  /* Type scale */
  --text-xs:   0.72rem;
  --text-sm:   0.85rem;
  --text-base: 1rem;
  --text-lg:   1.15rem;
  --text-xl:   1.35rem;
  --text-2xl:  1.7rem;
  --text-3xl:  2.2rem;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 30px rgba(215, 179, 75, 0.15);
  --shadow-input:0 2px 8px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Base ─────────────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background orbs (ambient atmosphere) ────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: float 20s infinite ease-in-out;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--cosmic-purple), transparent);
  top: -20%; left: -15%;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--star-gold), transparent);
  bottom: -10%; right: -10%;
  animation-delay: -8s;
  opacity: 0.08;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, var(--galaxy-blue), transparent);
  top: 40%; left: 60%;
  animation-delay: -14s;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-40px) scale(1.08); }
  66%      { transform: translate(-25px,25px) scale(0.93); }
}

/* ── Page wrapper ────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

/* ── Site header ─────────────────────────────────────────── */
.site-header {
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--star-gold);
  text-decoration: none;
  line-height: 1.2;
}
.site-logo span {
  display: block;
  font-size: var(--text-xs);
  font-family: 'Work Sans', sans-serif;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-username {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.nav-username strong {
  color: var(--star-gold);
  font-weight: 500;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl);  }
h4 { font-size: var(--text-lg);  }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-2xl);
  color: var(--star-gold);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-gold);
}

.label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: var(--sp-1);
}

.muted { color: var(--text-muted); }
.gold  { color: var(--star-gold);  }
.small { font-size: var(--text-sm); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-gold);
}
.card--gold {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.card + .card {
  margin-top: var(--sp-4);
}

/* ── Form elements ───────────────────────────────────────── */
.form-group {
  margin-bottom: var(--sp-4);
}
.form-row {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Work Sans', sans-serif;
  font-size: var(--text-base);
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--star-gold);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px rgba(215, 179, 75, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d7b34b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Date/time inputs — gold calendar icon on webkit */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(2) hue-rotate(5deg);
  cursor: pointer;
}

/* Number input — hide spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.4;
}

/* ── Method selector pills ───────────────────────────────── */
.method-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.method-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-family: 'Work Sans', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.method-pill:hover {
  border-color: var(--star-gold);
  color: var(--star-gold);
}
.method-pill.active {
  background: var(--star-gold-dim);
  border-color: var(--star-gold);
  color: var(--star-gold);
  font-weight: 500;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: 'Work Sans', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  -webkit-appearance: none;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Primary — gold */
.btn-primary {
  background: linear-gradient(135deg, var(--star-gold), #c49a30);
  color: var(--deep-space);
  border-color: var(--star-gold);
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 20px rgba(215, 179, 75, 0.35);
  transform: translateY(-1px);
}

/* Secondary — ghost */
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--star-gold);
  color: var(--star-gold);
}

/* Danger — red */
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: rgba(255, 59, 48, 0.3);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(255, 59, 48, 0.2);
}

/* Small variant */
.btn-sm {
  padding: 6px 12px;
  font-size: var(--text-xs);
}

/* Full width */
.btn-block {
  width: 100%;
}

/* Loading state */
.btn-loading {
  position: relative;
  color: transparent !important;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  filter: invert(1);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Banners / alerts ────────────────────────────────────── */
.banner {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
  display: none;
}
.banner.show { display: block; }
.banner-success {
  background: var(--success-bg);
  border-color: rgba(46, 204, 113, 0.3);
  color: var(--success);
}
.banner-error {
  background: var(--danger-bg);
  border-color: rgba(255, 59, 48, 0.3);
  color: var(--danger);
}
.banner-info {
  background: rgba(127, 217, 255, 0.08);
  border-color: rgba(127, 217, 255, 0.2);
  color: var(--accent-cyan);
}

/* ── Entry cards (mobile history view) ───────────────────── */
.entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
  transition: border-color var(--transition);
}
.entry-card:hover {
  border-color: var(--border-gold);
}
.entry-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.entry-card__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-1);
}
.entry-card__product {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
}
.entry-card__dose {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-xl);
  color: var(--star-gold);
  font-weight: 600;
  white-space: nowrap;
}
.entry-card__detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--sp-2);
}
.entry-card__actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

/* Method badge */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: capitalize;
  border: 1px solid;
}
.badge-tincture { color: #7fd9ff; border-color: rgba(127,217,255,0.3); background: rgba(127,217,255,0.08); }
.badge-smoked   { color: #c56fa4; border-color: rgba(197,111,164,0.3); background: rgba(197,111,164,0.08); }
.badge-vape     { color: #a78bfa; border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.08); }
.badge-dab      { color: #fb923c; border-color: rgba(251,146,60,0.3);  background: rgba(251,146,60,0.08);  }
.badge-edible   { color: #4ade80; border-color: rgba(74,222,128,0.3);  background: rgba(74,222,128,0.08);  }
.badge-capsule  { color: #60a5fa; border-color: rgba(96,165,250,0.3);  background: rgba(96,165,250,0.08);  }
.badge-drink    { color: #34d399; border-color: rgba(52,211,153,0.3);  background: rgba(52,211,153,0.08);  }
.badge-topical  { color: #f472b6; border-color: rgba(244,114,182,0.3); background: rgba(244,114,182,0.08); }
.badge-other    { color: #94a3b8; border-color: rgba(148,163,184,0.3); background: rgba(148,163,184,0.08); }

/* ── Desktop table (history) ─────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
thead th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  background: rgba(255,255,255,0.02);
}
tbody td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-primary);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover td {
  background: rgba(215, 179, 75, 0.04);
}
.td-dose {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-lg);
  color: var(--star-gold);
  font-weight: 600;
  white-space: nowrap;
}
.td-actions {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

/* ── Stats bar ───────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  text-align: center;
}
.stat-card__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-3xl);
  color: var(--star-gold);
  font-weight: 400;
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.stat-card__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Method-specific fields (shown/hidden by JS) ─────────── */
.method-fields {
  display: none;
}
.method-fields.active {
  display: block;
}

/* ── Login / landing page ────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5) var(--sp-4);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-gold);
}
.auth-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--star-gold);
  text-align: center;
  margin-bottom: var(--sp-2);
  letter-spacing: 0.05em;
}
.auth-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-8);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: var(--sp-6);
}
.auth-tab {
  padding: 8px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: 'Work Sans', sans-serif;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}
.auth-tab.active {
  background: var(--star-gold-dim);
  color: var(--star-gold);
  font-weight: 500;
}

/* ── Landing page hero ───────────────────────────────────── */
.hero {
  text-align: center;
  padding: var(--sp-12) var(--sp-4) var(--sp-10);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--star-gold), var(--accent-cyan));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  margin-bottom: var(--sp-4);
  line-height: 1.15;
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto var(--sp-8);
  line-height: 1.7;
}
.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: rgba(215,179,75,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

/* Feature grid on landing */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-10) 0;
  text-align: left;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  transition: border-color var(--transition);
}
.feature:hover { border-color: var(--border-gold); }
.feature__icon { font-size: 1.6rem; margin-bottom: var(--sp-3); }
.feature__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-xl);
  color: var(--star-gold);
  margin-bottom: var(--sp-2);
}
.feature__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Modal (edit entry) ──────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 26, 0.85);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--sp-5) var(--sp-4);
  overflow-y: auto;
}
.modal-backdrop.open {
  display: flex;
}
.modal {
  background: #0d0f24;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-gold);
  animation: slideUp 0.25s ease-out;
  margin: auto;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--text-2xl);
  color: var(--star-gold);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

/* ── Utility classes ─────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-2        { gap: var(--sp-2); }
.gap-3        { gap: var(--sp-3); }
.gap-4        { gap: var(--sp-4); }
.mt-2         { margin-top: var(--sp-2); }
.mt-3         { margin-top: var(--sp-3); }
.mt-4         { margin-top: var(--sp-4); }
.mt-6         { margin-top: var(--sp-6); }
.mb-4         { margin-bottom: var(--sp-4); }
.mb-6         { margin-bottom: var(--sp-6); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.hidden       { display: none !important; }
.w-full       { width: 100%; }

/* ── Responsive breakpoints ──────────────────────────────── */

/* Tablet+ */
@media (min-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
  .form-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .stats-bar  { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop — show table, hide cards */
@media (min-width: 768px) {
  .container { padding: 0 var(--sp-6); }
  .show-mobile  { display: none !important; }
  .show-desktop { display: block !important; }
  .site-header  { padding: var(--sp-5) var(--sp-6); }
}

/* Mobile — show cards, hide table */
@media (max-width: 767px) {
  .show-mobile  { display: block !important; }
  .show-desktop { display: none !important; }
  .auth-card    { padding: var(--sp-6) var(--sp-4); }
  .modal        { padding: var(--sp-4); }
}

/* ── Scrollbar styling (webkit) ──────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(215,179,75,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(215,179,75,0.4); }

/* ── Focus visible (accessibility) ──────────────────────── */
:focus-visible {
  outline: 2px solid var(--star-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
