/* ═══════════════════════════════════════════════════════════
   DEALDROP — Stylesheet
   Aesthetic: Industrial utility meets editorial sharpness
   Fonts: Syne (display) + DM Sans (body) + DM Mono (code)
═══════════════════════════════════════════════════════════ */

/* ── DARK THEME (default) ────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #0f0f0f;
  --bg-card:     #181818;
  --bg-card-2:   #1f1f1f;
  --border:      #2c2c2c;
  --border-light:#333;
  --text:        #f0ede8;
  --text-2:      #999;
  --text-3:      #666;
  --accent:      #e8ff47;
  --accent-dim:  #b8cc2a;
  --danger:      #ff4545;
  --success:     #3dff9a;
  --warning:     #ffb020;
  --shadow:      0 2px 16px rgba(0,0,0,0.5);
}

/* ── LIGHT THEME ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg:          #f4f2ee;
  --bg-card:     #ffffff;
  --bg-card-2:   #f0ede8;
  --border:      #ddd9d2;
  --border-light:#ccc8c0;
  --text:        #1a1a1a;
  --text-2:      #555;
  --text-3:      #999;
  --accent:      #5c7a00;
  --accent-dim:  #4a6200;
  --danger:      #cc2200;
  --success:     #007a3d;
  --warning:     #b06000;
  --shadow:      0 2px 16px rgba(0,0,0,0.08);
}

/* ── TOKENS (shared) ─────────────────────────────────────── */
:root {
  --radius:   6px;
  --radius-lg:12px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, color 0.2s;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-card-2);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
hr.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
select option { background: var(--bg-card); color: var(--text); }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.2s;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-icon { font-size: 1.4rem; line-height: 1; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.header-nav { display: flex; align-items: center; gap: 0.75rem; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); text-decoration: none; }
.nav-link--alert { color: var(--warning); }
.nav-link--admin { color: var(--danger); }

/* ── THEME TOGGLE ────────────────────────────────────────── */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 36px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 0.15s, background 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }

/* Show correct icon per theme */
[data-theme="dark"]  .theme-icon--light { display: none; }
[data-theme="dark"]  .theme-icon--dark  { display: block; }
[data-theme="light"] .theme-icon--dark  { display: none; }
[data-theme="light"] .theme-icon--light { display: block; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-dim); text-decoration: none; color: var(--bg); }
.btn-secondary { background: var(--bg-card-2); color: var(--text); border: 1px solid var(--border-light); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); text-decoration: none; }
.btn-danger { background: rgba(255,69,69,0.1); color: var(--danger); border: 1px solid rgba(255,69,69,0.25); }
.btn-danger:hover { background: rgba(255,69,69,0.2); text-decoration: none; }
.btn-lg { font-size: 1rem; padding: 0.7rem 1.5rem; }
.btn-sm { font-size: 0.8rem; padding: 0.3rem 0.75rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── COPY BUTTON ─────────────────────────────────────────── */
.btn-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }

/* ── USER ID ─────────────────────────────────────────────── */
.user-id-code {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
  color: var(--text);
}

/* ── BANNER ──────────────────────────────────────────────── */
.banner { padding: 0.6rem 1.5rem; font-size: 0.875rem; text-align: center; }
.banner--warning {
  background: rgba(255,176,32,0.1);
  border-bottom: 1px solid rgba(255,176,32,0.25);
  color: var(--warning);
}
.banner--warning a { color: var(--warning); font-weight: 600; }

/* ── ALERTS ──────────────────────────────────────────────── */
.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: 0.9rem; }
.alert--error { background: rgba(255,69,69,0.08); border: 1px solid rgba(255,69,69,0.25); color: var(--danger); }
.alert--success { background: rgba(61,255,154,0.06); border: 1px solid rgba(61,255,154,0.2); color: var(--success); }
[data-theme="light"] .alert--success { background: rgba(0,122,61,0.06); border-color: rgba(0,122,61,0.2); }

/* ── LAYOUT ──────────────────────────────────────────────── */
.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}
.main-wrap--narrow { display: block; max-width: 680px; }

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar { position: sticky; top: 72px; }
.filter-form { display: flex; flex-direction: column; gap: 1.25rem; }
.filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.5rem;
}
.filter-input, .filter-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color 0.15s;
}
.filter-input:focus, .filter-select:focus { outline: none; border-color: var(--accent); }
.filter-select { appearance: none; cursor: pointer; }
.filter-group--inline { display: flex; align-items: center; gap: 0.75rem; }
.filter-group--inline .filter-label { margin: 0; white-space: nowrap; }
.filter-group--inline .filter-select { width: auto; }
.filter-hint { font-size: 0.78rem; color: var(--text-3); margin-top: 0.4rem; }

/* ── CATEGORY PILLS ──────────────────────────────────────── */
.cat-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cat-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.12s;
  white-space: nowrap;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cat-pill--active { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }

/* ── DISTANCE PILLS ──────────────────────────────────────── */
.dist-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.dist-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.12s;
}
.dist-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.dist-pill--active { background: var(--bg-card-2); border-color: var(--text-3); color: var(--text); font-weight: 700; }
.dist-pill--disabled { opacity: 0.4; pointer-events: none; }

/* ── DEAL SECTION ────────────────────────────────────────── */
.deal-header { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.25rem; }
.deal-heading { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.deal-count { font-size: 0.85rem; color: var(--text-3); }

/* ── DEAL CARDS ──────────────────────────────────────────── */
.deal-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  transition: border-color 0.15s, background 0.2s;
}
.deal-card:hover { border-color: var(--border-light); }
.deal-card--oos { opacity: 0.6; border-style: dashed; }
.deal-card__meta-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.deal-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.deal-loc { font-size: 0.75rem; color: var(--text-3); }
.deal-badge { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.15rem 0.5rem; border-radius: 100px; }
.deal-badge--oos { background: rgba(255,176,32,0.1); border: 1px solid rgba(255,176,32,0.2); color: var(--warning); }
.deal-card__body { margin-bottom: 0.75rem; }
.deal-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.35; letter-spacing: -0.01em; }
.deal-title a { color: var(--text); }
.deal-title a:hover { color: var(--accent); text-decoration: none; }
.deal-card__footer { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; }

/* ── REACTIONS ───────────────────────────────────────────── */
.reactions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.12s;
  font-family: var(--font-body);
}
.reaction-btn:hover { border-color: var(--accent); color: var(--text); }
.reaction-btn--active { background: rgba(92,122,0,0.1); border-color: var(--accent); color: var(--accent); }
[data-theme="dark"] .reaction-btn--active { background: rgba(232,255,71,0.1); }
.reaction-count { font-variant-numeric: tabular-nums; }
.deal-card__info { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.75rem; font-size: 0.78rem; color: var(--text-3); margin-left: auto; }
.deal-poster a { color: var(--text-2); font-weight: 500; }
.deal-poster a:hover { color: var(--accent); }
.poster-count { color: var(--text-3); font-size: 0.72em; }
.deal-expiry--soon { color: var(--warning); font-weight: 600; }
.deal-actions { display: flex; gap: 0.5rem; }
.deal-actions a { color: var(--text-3); }
.deal-actions a:hover { color: var(--accent); }
.link-danger { color: var(--danger) !important; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem 0 1rem; }
.page-btn { font-weight: 600; font-size: 0.875rem; padding: 0.45rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-2); text-decoration: none; transition: all 0.12s; }
.page-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-info { font-size: 0.85rem; color: var(--text-3); }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-3); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state a { color: var(--accent); font-weight: 500; }

/* ── FORM CARDS ──────────────────────────────────────────── */
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; transition: background 0.2s; }
.form-card--highlight { border-color: var(--accent); background: rgba(92,122,0,0.04); }
[data-theme="dark"] .form-card--highlight { background: rgba(232,255,71,0.04); }
.form-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.form-sub { font-size: 0.875rem; color: var(--text-2); margin-bottom: 1.25rem; }

/* ── FIELDS ──────────────────────────────────────────────── */
.deal-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; }
.field-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.4rem; }
.required { color: var(--accent); }
.optional { color: var(--text-3); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field-input {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.2s;
  width: 100%;
  appearance: auto;
}
.field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(92,122,0,0.1); }
[data-theme="dark"] .field-input:focus { box-shadow: 0 0 0 2px rgba(232,255,71,0.08); }
.field-input::placeholder { color: var(--text-3); }
.field-input--lg { font-size: 1.05rem; padding: 0.75rem 1rem; }
.field-input--mono { font-family: var(--font-mono); letter-spacing: 0.08em; }
.field-hint { font-size: 0.76rem; color: var(--text-3); margin-top: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── CATEGORY PICKER ─────────────────────────────────────── */
.cat-picker { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cat-option input[type="radio"] { display: none; }
.cat-option__label { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 500; padding: 0.35rem 0.8rem; border-radius: 100px; border: 1px solid var(--border); background: var(--bg-card-2); color: var(--text-2); cursor: pointer; transition: all 0.12s; }
.cat-option input:checked + .cat-option__label { background: rgba(92,122,0,0.1); border-color: var(--accent); color: var(--accent); font-weight: 700; }
[data-theme="dark"] .cat-option input:checked + .cat-option__label { background: rgba(232,255,71,0.1); }
.cat-option__label:hover { border-color: var(--accent); color: var(--accent); }

/* ── EXPIRY PICKER ───────────────────────────────────────── */
.expiry-picker { display: flex; gap: 0.5rem; }
.expiry-option input[type="radio"] { display: none; }
.expiry-option__label { font-size: 0.85rem; font-weight: 500; padding: 0.4rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card-2); color: var(--text-2); cursor: pointer; transition: all 0.12s; }
.expiry-option input:checked + .expiry-option__label { border-color: var(--text-3); color: var(--text); font-weight: 700; }

/* ── LOCATION FIELD ──────────────────────────────────────── */
.location-tag { font-size: 0.875rem; color: var(--text-2); background: var(--bg-card-2); border: 1px solid var(--border); padding: 0.5rem 0.85rem; border-radius: var(--radius); }
.location-tag--none { color: var(--text-3); }
.location-current { font-size: 0.9rem; color: var(--text-2); margin-bottom: 0.75rem; }

/* ── FORM ACTIONS ────────────────────────────────────────── */
.form-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }

/* ── PROFILE ─────────────────────────────────────────────── */
.profile-card { display: flex; align-items: center; gap: 1.25rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; flex-shrink: 0; }
.profile-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.2rem; }
.profile-meta { font-size: 0.85rem; color: var(--text-2); margin-bottom: 0.4rem; }
.profile-id { font-size: 0.85rem; color: var(--text-2); margin-bottom: 0.2rem; }
.id-hint { display: block; font-size: 0.75rem; color: var(--text-3); }

/* ── MINI DEAL LIST ──────────────────────────────────────── */
.mini-deal-list { list-style: none; display: flex; flex-direction: column; }
.mini-deal { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.mini-deal:last-child { border-bottom: none; }
.mini-deal__cat { flex-shrink: 0; }
.mini-deal__title { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-deal__title a { color: var(--text); }
.mini-deal__time { color: var(--text-3); flex-shrink: 0; font-size: 0.8rem; }
.mini-deal__action { font-size: 0.75rem; color: var(--text-3); flex-shrink: 0; }
.mini-deal__action:hover { color: var(--accent); }

/* ── ADMIN ───────────────────────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: start; }
.admin-card { grid-column: span 1; }
.admin-card:first-of-type { grid-column: span 2; }
.admin-stat-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.25rem; }
.stat-chip { font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: 100px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-2); }
.stat-chip--warn { border-color: rgba(255,176,32,0.4); color: var(--warning); background: rgba(255,176,32,0.06); }
.admin-deal-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.admin-deal-row:last-child { border-bottom: none; }
.admin-deal-info { flex: 1; font-size: 0.875rem; }
.admin-deal-info strong { color: var(--text); }
.admin-deal-info small { color: var(--text-3); line-height: 1.7; }
.admin-deal-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.mod-list { list-style: none; margin-bottom: 1rem; }
.mod-item { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.mod-item:last-child { border-bottom: none; }
.text-muted { color: var(--text-3); font-size: 0.875rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: auto; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--text-3); }
.footer-tagline { font-size: 0.8rem; color: var(--text-3); }
.footer-links { margin-left: auto; display: flex; gap: 1rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-3); }
.footer-links a:hover { color: var(--accent); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-wrap { grid-template-columns: 1fr; }
  .filter-bar { position: static; }
  .filter-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
  .filter-group { min-width: 200px; flex: 1; }
  .filter-group--inline { flex: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-card:first-of-type { grid-column: span 1; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 1rem; }
  .main-wrap { padding: 1.25rem 1rem; }
  .deal-card__footer { flex-direction: column; align-items: flex-start; }
  .deal-card__info { margin-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .expiry-picker { flex-direction: column; }
  .profile-card { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { margin-left: 0; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .logo-text { font-size: 1.1rem; }
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.deal-card { animation: fadeIn 0.2s ease both; }
.deal-card:nth-child(1) { animation-delay: 0.03s; }
.deal-card:nth-child(2) { animation-delay: 0.06s; }
.deal-card:nth-child(3) { animation-delay: 0.09s; }
.deal-card:nth-child(4) { animation-delay: 0.12s; }
.deal-card:nth-child(5) { animation-delay: 0.15s; }

/* ═══════════════════════════════════════════════════════════
   LAZYSAVER ADDITIONS
   - Hamburger / mobile nav
   - Link pending style
   - Mod section title
   - Mobile overflow fixes
═══════════════════════════════════════════════════════════ */

/* ── MOBILE CONTROLS (hamburger + mobile theme btn) ──────── */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

/* ── HAMBURGER BUTTON ────────────────────────────────────── */
.hamburger {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 36px;
    height: 32px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: border-color 0.15s;
}
.hamburger:hover { border-color: var(--accent); }
.hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-2);
    border-radius: 2px;
    transition: all 0.2s;
    transform-origin: center;
}
.hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ──────────────────────────────────── */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
}
.mobile-menu--open {
    max-height: 300px;
}
.mobile-menu__item {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}
.mobile-menu__item:last-child { border-bottom: none; }
.mobile-menu__item:hover { background: var(--bg-card-2); color: var(--text); }
.mobile-menu__item--alert { color: var(--warning); }
.mobile-menu__item--admin { color: var(--danger); }

/* ── LINK PENDING ────────────────────────────────────────── */
.link-pending {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-3);
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.1rem 0.55rem;
    margin-left: 0.4rem;
    cursor: default;
    user-select: none;
    vertical-align: middle;
}

/* ── MOD SECTION TITLE ───────────────────────────────────── */
.mod-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}

/* ── MOBILE RESPONSIVE OVERRIDES ─────────────────────────── */
@media (max-width: 640px) {
    /* Show hamburger, hide desktop nav */
    .header-nav { display: none; }
    .mobile-controls { display: flex; }
    .mobile-menu { display: flex; }

    /* Prevent any horizontal overflow */
    body { overflow-x: hidden; }
    .main-wrap { padding: 1rem; gap: 1rem; }
    .form-card { padding: 1.1rem; }
    .profile-card { padding: 1.1rem; }

    /* Header stays tight */
    .header-inner { padding: 0 1rem; gap: 0.5rem; }
    .logo-text { font-size: 1.1rem; }

    /* Stack admin grid */
    .admin-grid { grid-template-columns: 1fr; }
    .admin-card,
    .admin-card:first-of-type { grid-column: span 1; }
    .admin-stat-bar { gap: 0.35rem; }
    .stat-chip { font-size: 0.72rem; padding: 0.25rem 0.6rem; }

    /* Admin deal rows stack on small screens */
    .admin-deal-row { flex-direction: column; gap: 0.6rem; }
    .admin-deal-actions { flex-wrap: wrap; }

    /* Deal cards */
    .deal-card { padding: 0.85rem; }
    .deal-title { font-size: 0.95rem; }
    .reactions { gap: 0.25rem; }
    .reaction-btn { padding: 0.2rem 0.5rem; font-size: 0.75rem; }

    /* Forms */
    .cat-picker { gap: 0.3rem; }
    .cat-option__label { font-size: 0.75rem; padding: 0.3rem 0.65rem; }
    .expiry-picker { flex-direction: column; }
    .field-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; justify-content: center; }

    /* Pagination */
    .pagination { gap: 0.5rem; }
    .page-btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

    /* Footer */
    .footer-inner { flex-direction: column; text-align: center; gap: 0.5rem; }
    .footer-links { margin-left: 0; }
}

/* Tablet - keep desktop nav but tighten spacing */
@media (min-width: 641px) and (max-width: 900px) {
    .mobile-controls { display: none; }
    .header-nav { display: flex; }
    .mobile-menu { display: none !important; }

    .main-wrap { grid-template-columns: 1fr; padding: 1.25rem; }
    .filter-bar { position: static; }
    .filter-form { flex-direction: row; flex-wrap: wrap; gap: 0.75rem; }
    .filter-group { min-width: 180px; flex: 1; }
}

/* ── PENDING LINKS GRID ──────────────────────────────────── */
.pending-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.pending-link-card {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pending-link-card__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pending-link-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.pending-link-card__info strong {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.35;
}

.pending-link-card__meta {
    font-size: 0.78rem;
    color: var(--text-3);
}

.pending-link-card__url {
    font-size: 0.78rem;
    color: var(--accent);
    word-break: break-all;
    line-height: 1.4;
}
.pending-link-card__url:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .pending-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ── SKIP LOG TABLE ──────────────────────────────────────── */
.skip-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.825rem;
}
.skip-log-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--border);
}
.skip-log-table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: top;
}
.skip-log-table tr:last-child td { border-bottom: none; }
.skip-log-table td:first-child { color: var(--text-3); width: 60px; }
.skip-log-table code { font-size: 0.78rem; word-break: break-all; }

.skip-reason {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    background: rgba(255,176,32,0.1);
    border: 1px solid rgba(255,176,32,0.25);
    color: var(--warning);
    white-space: nowrap;
}

/* ── TYPEAHEAD ────────────────────────────────────────────── */
.typeahead-wrap {
    position: relative;
}

.typeahead-list {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    max-height: 220px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    box-shadow: var(--shadow);
}

.typeahead-list.open {
    display: block;
}

.typeahead-list li {
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    color: var(--text-2);
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.typeahead-list li:hover,
.typeahead-list li.active {
    background: var(--bg-card-2);
    color: var(--text);
}

/* Scrollbar styling for the dropdown */
.typeahead-list::-webkit-scrollbar { width: 6px; }
.typeahead-list::-webkit-scrollbar-track { background: transparent; }
.typeahead-list::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ── SHARE BUTTON ────────────────────────────────────────── */
.share-btn {
    margin-left: auto;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card-2);
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn--copied { border-color: var(--success); color: var(--success); }

/* ── SPOTLIGHT CARD ──────────────────────────────────────── */
.spotlight-wrap {
    margin-bottom: 1.5rem;
}

.spotlight-card {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeIn 0.3s ease both;
}

.spotlight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 1.1rem;
    background: var(--accent);
    flex-wrap: wrap;
}

.spotlight-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--bg);
    letter-spacing: -0.01em;
}

.spotlight-browse {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bg);
    opacity: 0.8;
    text-decoration: none;
    white-space: nowrap;
}
.spotlight-browse:hover { opacity: 1; text-decoration: underline; }

.spotlight-body {
    padding: 1rem 1.1rem;
}

.spotlight-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-3);
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.spotlight-meta a { color: var(--text-2); font-weight: 500; }
.spotlight-meta a:hover { color: var(--accent); }

@media (max-width: 640px) {
    .share-btn { font-size: 0.68rem; padding: 0.15rem 0.5rem; }
    .spotlight-header { padding: 0.5rem 0.9rem; }
    .spotlight-label { font-size: 0.78rem; }
}

/* ── DEAL LOCATION FIELD ─────────────────────────────────── */
.deal-loc-display { margin-bottom: 0.5rem; }

.loc-hint {
    font-size: 0.72rem;
    color: var(--text-3);
    margin-left: 0.35rem;
}

.deal-loc-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

#deal-loc-custom {
    border-left: 2px solid var(--border);
    padding-left: 1rem;
    margin-top: 0.5rem;
}

/* ── EXPIRING SOON CARD (< 12 hours) ─────────────────────── */
.deal-card--expiring {
    border-left: 3px solid var(--warning);
}

[data-theme="light"] .deal-card--expiring {
    background: rgba(176, 96, 0, 0.03);
}

[data-theme="dark"] .deal-card--expiring {
    background: rgba(255, 176, 32, 0.03);
}

/* ── SYSTEM MESSAGE ──────────────────────────────────────── */

/* Shared colour rules */
.sysmsg--info    { color: #6db0ff; }
.sysmsg--warning { color: var(--warning); }
.sysmsg--success { color: var(--success); }
[data-theme="light"] .sysmsg--info    { color: #0050c8; }

/* Desktop — inline next to logo */
.sysmsg-inline {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius);
    background: var(--bg-card-2);
    border: 1px solid var(--border);
}

/* Mobile — full-width centered bar, hidden on desktop */
.sysmsg-mobile {
    display: none;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .sysmsg-inline  { display: none; }
    .sysmsg-mobile  { display: block; }
}

/* ── SOCIAL LINKS ────────────────────────────────────────── */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    transition: color 0.15s;
    text-decoration: none;
    padding: 0.2rem;
}
.social-link:hover { color: var(--accent); text-decoration: none; }

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.5rem;
}

.mobile-menu__social {
    display: flex;
    gap: 1.25rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}
.mobile-menu__social .social-link { color: var(--text-2); }

/* ── AD LEADERBOARD (desktop only 728x90) ────────────────── */
.ad-leaderboard {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
@media (max-width: 768px) {
    .ad-leaderboard { display: none; }
}

/* ── CONFIG GRID ─────────────────────────────────────────── */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.config-grid .field:first-child { grid-column: 1/-1; }

.field-label-hint {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-3);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.35rem;
}

textarea.field-input {
    resize: vertical;
    min-height: 70px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .config-grid { grid-template-columns: 1fr; }
    .config-grid .field:first-child { grid-column: 1; }
}

/* ── FAQ PAGE ─────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 1.5rem; }

.faq-section-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 0.85rem 0;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.15s;
}
.faq-q:hover { color: var(--accent); }
.faq-q::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-3);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item--open .faq-q::after { transform: rotate(45deg); color: var(--accent); }
.faq-item--open .faq-q { color: var(--accent); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.7;
    transition: max-height 0.25s ease;
    padding-bottom: 0;
}
.faq-item--open .faq-a { padding-bottom: 0.85rem; }
.faq-a a { color: var(--accent); }

.faq-reaction-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.35rem;
}
.faq-reaction-list li { font-size: 0.875rem; }

/* ── ABOUT & TERMS PAGE ──────────────────────────────────── */
.about-lead {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-body {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 0.85rem;
}
.about-body:last-child { margin-bottom: 0; }

.terms-section { margin-bottom: 1.25rem; }
.terms-section:last-child { margin-bottom: 0; }

.terms-heading {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.terms-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.terms-list li {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}
.terms-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-3);
}

.terms-body {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ── MESSAGE THREAD (profile + admin) ───────────────────── */
.msg-thread {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.msg-bubble {
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 90%;
}

.msg-bubble p { margin: 0; color: var(--text); }

.msg-bubble--user {
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    align-self: flex-start;
}

.msg-bubble--admin {
    background: rgba(232,255,71,0.06);
    border: 1px solid rgba(232,255,71,0.2);
    align-self: flex-end;
}
[data-theme="light"] .msg-bubble--admin {
    background: rgba(92,122,0,0.06);
    border-color: rgba(92,122,0,0.2);
}

.msg-meta {
    display: block;
    font-size: 0.72rem;
    color: var(--text-3);
    margin-bottom: 0.25rem;
}

.msg-pending {
    font-size: 0.8rem;
    color: var(--text-3);
    font-style: italic;
    padding: 0.4rem 0;
}

/* ── ADMIN MESSAGES ──────────────────────────────────────── */
.admin-msg-row {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.admin-msg-row:last-child { border-bottom: none; }
.admin-msg-row--unread { border-left: 3px solid var(--accent); padding-left: 0.75rem; }

.admin-msg-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
    font-size: 0.875rem;
}

.msg-uid {
    font-size: 0.75rem;
    color: var(--text-3);
}

.msg-time { color: var(--text-3); font-size: 0.78rem; }

.msg-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
    background: rgba(232,255,71,0.1);
    border: 1px solid rgba(232,255,71,0.3);
    color: var(--accent);
}

.admin-msg-thread { margin-bottom: 0.75rem; }

.admin-msg-reply { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-msg-reply .field-input { font-size: 0.875rem; }

.admin-msg-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ── REGION FILTER ───────────────────────────────────────── */
.region-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-clear {
    font-size: 0.75rem;
    color: var(--text-3);
    text-decoration: none;
    padding: 0.2rem 0;
    transition: color 0.15s;
    align-self: flex-start;
}
.filter-clear:hover { color: var(--danger); text-decoration: none; }

/* ── MODERATOR ───────────────────────────────────────────── */
.nav-link--mod { color: #7eb8ff; }
.mobile-menu__item--mod { color: #7eb8ff; }
.form-card--mod {
    border-color: #7eb8ff;
    background: rgba(126,184,255,0.04);
}

.mod-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mod-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mod-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.mod-card:last-of-type { border-bottom: none; }

.mod-card__info { flex: 1; min-width: 0; }
.mod-card__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mod-card__meta {
    font-size: 0.78rem;
    color: var(--text-3);
    line-height: 1.6;
}
.mod-card__meta a { color: var(--accent); }
.flag-count { color: var(--warning); font-weight: 600; }

.mod-card__actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .mod-card { flex-direction: column; }
    .mod-card__actions { width: 100%; }
}

/* ── ADMIN LAYOUT ────────────────────────────────────────── */
.admin-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

.admin-login-wrap {
    max-width: 420px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.admin-login-wrap .form-card {
    width: 100%;
}

@media (max-width: 640px) {
    .admin-main { padding: 1rem; }
    .admin-login-wrap { padding: 2rem 1rem; align-items: flex-start; padding-top: 3rem; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-deal-row { flex-direction: column; gap: 0.6rem; }
    .admin-deal-actions { flex-wrap: wrap; }
    .config-grid { grid-template-columns: 1fr; }
    .config-grid .field:first-child { grid-column: 1; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .admin-grid { grid-template-columns: 1fr; }
    .admin-card:first-of-type { grid-column: span 1; }
}

/* ── EXPIRED SPOTLIGHT ───────────────────────────────────── */
.spotlight-card--expired {
    border-color: var(--border-light);
    opacity: 0.85;
}

.spotlight-card--expired .spotlight-header {
    background: var(--bg-card-2);
}

.spotlight-card--expired .spotlight-label {
    color: var(--text-2);
}

.expired-notice {
    font-size: 0.82rem;
    color: var(--text-3);
    font-style: italic;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-card-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Disabled reactions */
.reactions--disabled .reaction-btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.reaction-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── EXPIRED ARCHIVE CARD ────────────────────────────────── */
.deal-card--expired-archive {
    opacity: 0.75;
    border-style: dashed;
}
.deal-card--expired-archive:hover { opacity: 0.9; }

.deal-badge--expired {
    background: rgba(150,150,150,0.1);
    border: 1px solid rgba(150,150,150,0.25);
    color: var(--text-3);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

/* ── GHOST USERS ─────────────────────────────────────────── */
.form-title-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-3);
    margin-left: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-body);
}

.ghost-user-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ghost-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}
.ghost-user-row:last-child { border-bottom: none; }

.ghost-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ghost-uid {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-2);
    letter-spacing: 0.04em;
}

.ghost-meta {
    font-size: 0.75rem;
    color: var(--text-3);
}

.ghost-delete-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-3);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.ghost-delete-btn:hover {
    background: rgba(255,69,69,0.1);
    border-color: var(--danger);
    color: var(--danger);
}

@media (max-width: 640px) {
    .ghost-user-row { flex-wrap: wrap; gap: 0.4rem; }
}

/* ── GHOST USER TOOLBAR & CHECKBOXES ─────────────────────── */
.ghost-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    margin-bottom: 0.25rem;
    border-bottom: 2px solid var(--border);
}

.ghost-check-all {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
}

.ghost-check-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 0.5rem;
}

.ghost-checkbox, .ghost-check-all input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--accent);
}

.ghost-user-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
}
.ghost-user-row:last-child { border-bottom: none; }

/* ── GHOST SELECT BUTTONS ────────────────────────────────── */
.ghost-select-btns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
