/* ========================================================================
   DUXIER — Modern Design System
   ======================================================================== */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* VARIABLES */
:root {
  --bg:            #0a0f1a;
  --bg-subtle:     #111827;
  --surface:       #1e293b;
  --surface-hover: #263347;
  --border:        #334155;
  --accent:        #06b6d4;
  --accent-light:  #22d3ee;
  --accent-glow:   rgba(6, 182, 212, 0.25);
  --accent-soft:   rgba(6, 182, 212, 0.08);
  --danger:        #ef4444;
  --danger-soft:   rgba(239, 68, 68, 0.12);
  --success:       #22c55e;
  --success-soft:  rgba(34, 197, 94, 0.12);
  --warning:       #f59e0b;
  --warning-soft:  rgba(245, 158, 11, 0.12);
  --text:          #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     6px;
  --radius-full:   9999px;
  --shadow:        0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 30px var(--accent-glow);
  --transition:    0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font:          'Inter', 'Segoe UI', -apple-system, sans-serif;
}

/* BASE */
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVBAR ─── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.navbar__brand {
  display: flex; align-items: center; gap: 0.5rem;
}
.navbar__logo {
  height: 32px;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.navbar__title {
  display: flex; flex-direction: column; line-height: 1.1;
  font-size: 1.1rem; font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 0.05em;
}
.navbar__title-sub {
  font-size: 0.55rem; font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
}
.navbar__links {
  display: flex; align-items: center; gap: 1rem;
}
.navbar__link {
  color: var(--text-secondary);
  font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  transition: color var(--transition), background var(--transition);
}
.navbar__link:hover {
  color: var(--text); background: var(--surface);
}
.navbar__link--muted { color: var(--text-muted); }
.navbar__user {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  background: var(--surface);
  border-radius: var(--radius-full);
}
.btn--nav {
  background: var(--accent);
  color: var(--bg);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn--nav:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ─── MAIN CONTENT ─── */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ─── TOAST NOTIFICATIONS ─── */
.toast-container {
  max-width: 500px;
  margin: 1rem auto 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 0 1.5rem;
}
.toast {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  border-left: 3px solid;
  animation: slideIn 0.3s ease-out;
}
.toast--success { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.toast--danger  { background: var(--danger-soft);  color: var(--danger);  border-color: var(--danger); }
.toast--warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning); }
.toast--info    { background: var(--accent-soft);   color: var(--accent-light); border-color: var(--accent); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BUTTONS ─── */
.btn--primary {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.875rem; cursor: pointer;
  background: var(--accent); color: var(--bg);
  padding: 0.6rem 1.5rem; border-radius: var(--radius-sm);
  border: none; text-decoration: none;
  transition: all var(--transition);
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn--secondary {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.875rem; cursor: pointer;
  background: var(--surface); color: var(--text-secondary);
  padding: 0.6rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); text-decoration: none;
  transition: all var(--transition);
}
.btn--secondary:hover {
  background: var(--surface-hover); color: var(--text);
  border-color: var(--text-muted);
}
.btn--danger {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.8rem; cursor: pointer;
  background: transparent; color: var(--danger);
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--danger); text-decoration: none;
  transition: all var(--transition);
}
.btn--danger:hover {
  background: var(--danger-soft);
}
.full-width { width: 100%; }

/* ─── CARDS ─── */
.cards-grid {
  display: flex; flex-direction: column;
  gap: 1rem; margin-top: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
}
.card__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.card__header h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--text);
  margin: 0;
}
.card__header time {
  font-size: 0.75rem; color: var(--text-muted);
}
.card__meta {
  display: flex; gap: 1rem;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.card__summary {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 0.75rem;
}
.card__actions {
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.inline-form { display: inline; }

/* ─── SECTION / PANEL ─── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.card--auth {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem;
}
.section-title {
  font-size: 1.25rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.auth-title {
  font-size: 1.5rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ─── FORMS ─── */
.auth-form__group { margin-bottom: 1rem; }
.auth-form__label {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-form__input,
.auth-form__select,
textarea.auth-form__input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-form__input:focus,
.auth-form__select:focus,
textarea.auth-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.auth-form__input::placeholder,
textarea.auth-form__input::placeholder {
  color: var(--text-muted);
}
textarea.auth-form__input {
  resize: vertical; min-height: 80px;
}

/* ─── UPLOAD ─── */
.upload-section {
  display: flex; gap: 0.75rem;
  align-items: center; justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.upload-hint {
  text-align: center; color: var(--text-muted);
  font-size: 0.75rem; margin-top: 0.25rem;
}

/* ─── SKILL TAGS ─── */
.skill-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.skill-tag {
  background: var(--accent-soft);
  color: var(--accent-light);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.skill-tag--more {
  background: var(--warning-soft);
  color: var(--warning);
}

/* ─── SCORE BAR ─── */
.score-bar {
  position: relative;
  height: 22px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.score-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--danger) 0%, var(--warning) 45%, var(--success) 85%);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-bar__label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem; font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ─── MATCH CARD ─── */
.match-card { border-left: 3px solid var(--accent); }
.match-score {
  background: var(--accent); color: var(--bg);
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
}

/* ─── COVER LETTER ─── */
.cover-letter-sub {
  text-align: center; color: var(--text-muted);
  margin-bottom: 1.25rem; font-size: 0.875rem;
}
.cover-letter-result {
  max-width: 680px; margin: 1.5rem auto;
}
.cover-letter-text {
  white-space: pre-wrap; line-height: 1.7;
  font-size: 0.9rem; color: var(--text-secondary);
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-muted); font-size: 0.95rem;
}

/* ─── REVIEW LINK ─── */
.flash-wrapper {
  text-align: center; margin: 2.5rem 0;
}
.flash-btn {
  padding: 0.75rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-light);
  border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition);
}
.flash-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════ */
.landing-body {
  overflow-x: hidden;
}
.landing {
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column;
}

/* Floating particles */
.particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.15;
  animation: float 20s infinite linear;
}
.particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 25s; animation-delay: 0s; width: 3px; height: 3px; }
.particle:nth-child(2) { left: 30%; top: 60%; animation-duration: 30s; animation-delay: 2s; width: 5px; height: 5px; }
.particle:nth-child(3) { left: 50%; top: 10%; animation-duration: 22s; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; top: 80%; animation-duration: 28s; animation-delay: 1s; width: 6px; height: 6px; }
.particle:nth-child(5) { left: 85%; top: 40%; animation-duration: 35s; animation-delay: 3s; width: 3px; height: 3px; }
.particle:nth-child(6) { left: 15%; top: 75%; animation-duration: 20s; animation-delay: 5s; }

@keyframes float {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.2; }
  50%  { opacity: 0.1; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-100vh) translateX(60px); opacity: 0; }
}

/* Header */
.landing__header {
  padding: 2rem 2rem 0;
  position: relative; z-index: 1;
}
.landing__logo {
  display: flex; align-items: center; gap: 0.75rem;
  justify-content: center;
}
.landing__logo-img {
  height: 40px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}
.landing__brand {
  font-size: 1.3rem; font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 0.06em;
}
.landing__tagline {
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Hero */
.landing__hero {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 2rem 2rem;
  position: relative; z-index: 1;
}
.landing__headline {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 1.25rem;
}
.text-glow {
  color: var(--accent-light);
  text-shadow: 0 0 20px var(--accent-glow);
}
.landing__sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.landing__cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
}
.btn--hero {
  background: var(--accent); color: var(--bg);
  padding: 0.8rem 2.5rem;
  border-radius: var(--radius-full);
  font-size: 1rem; font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--hero:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn--hero-outline {
  background: transparent;
  color: var(--text);
  padding: 0.8rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 1rem; font-weight: 600;
  transition: all var(--transition);
}
.btn--hero-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Feature cards */
.landing__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  position: relative; z-index: 1;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.feature-card h3 {
  font-size: 0.95rem; font-weight: 700;
  margin-bottom: 0.4rem;
}
.feature-card p {
  font-size: 0.8rem; color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.landing__footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}

/* ─── AI MATCH FORM ─── */
.match-form__input-wrap {
  display: flex; gap: 0; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.match-form__input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.match-form__input {
  flex: 1; padding: 0.8rem 1rem;
  background: var(--bg-subtle); border: none;
  color: var(--text); font-size: 1rem;
  font-family: var(--font);
}
.match-form__input:focus { outline: none; }
.match-form__input::placeholder { color: var(--text-muted); }
.match-form__btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent); color: var(--bg);
  border: none; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: background var(--transition);
  white-space: nowrap;
}
.match-form__btn:hover { background: var(--accent-light); }
.match-form__hint {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 0.5rem;
}
.text-accent { color: var(--accent-light); }

/* ─── MATCH RESULTS ─── */
.match-results {
  margin-top: 1.5rem;
}
.match-results__header {
  margin-bottom: 1rem;
}
.match-results__header h3 {
  font-size: 1rem; font-weight: 600; color: var(--text-secondary);
}
.match-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition);
}
.match-card-v2:hover { border-color: var(--accent); }
.match-card-v2__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}
.match-card-v2__info h4 {
  font-size: 1.05rem; font-weight: 700; color: var(--text);
  margin: 0 0 0.15rem;
}
.match-card-v2__file {
  font-size: 0.75rem; color: var(--text-muted);
}
.match-card-v2__score-ring {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--border);
}
.ring--high { border-color: var(--success); }
.ring--mid  { border-color: var(--warning); }
.ring--low  { border-color: var(--danger); }
.ring__val {
  font-size: 1.1rem; font-weight: 800; line-height: 1;
}
.ring--high .ring__val { color: var(--success); }
.ring--mid  .ring__val { color: var(--warning); }
.ring--low  .ring__val { color: var(--danger); }
.ring__label {
  font-size: 0.55rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.match-card-v2__verdict {
  font-size: 0.9rem; color: var(--text);
  margin-bottom: 0.75rem; line-height: 1.5;
}
.match-card-v2__analysis {
  display: flex; gap: 1rem; margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.analysis-col { flex: 1; min-width: 180px; }
.analysis-col__label {
  display: block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}
.analysis-col--good .analysis-col__label { color: var(--success); }
.analysis-col--gap  .analysis-col__label { color: var(--warning); }
.analysis-item {
  font-size: 0.8rem; padding: 0.3rem 0.6rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.3rem; line-height: 1.4;
}
.analysis-item--good {
  background: var(--success-soft); color: var(--text-secondary);
  border-left: 2px solid var(--success);
}
.analysis-item--gap {
  background: var(--warning-soft); color: var(--text-secondary);
  border-left: 2px solid var(--warning);
}

/* ─── FILTER ROW ─── */
.filter-row {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-end;
}
.filter-row__group {
  flex: 1; min-width: 140px;
}

/* ─── SCORE BREAKDOWN ─── */
.score-breakdown {
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 0;
  flex-wrap: wrap; justify-content: center;
}
.score-breakdown__overall { flex-shrink: 0; }
.score-circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), var(--border) 0);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
}
.score-circle::before {
  content: '';
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--surface);
  position: absolute;
}
.score-circle__value {
  font-size: 1.5rem; font-weight: 800;
  color: var(--accent-light);
  position: relative; z-index: 1;
}
.score-circle__label {
  font-size: 0.65rem; color: var(--text-muted);
  position: relative; z-index: 1;
  margin-top: -4px;
}
.score-breakdown__categories {
  flex: 1; min-width: 200px;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.score-cat {
  display: flex; align-items: center; gap: 0.75rem;
}
.score-cat__label {
  width: 100px; font-size: 0.8rem;
  color: var(--text-secondary); font-weight: 500;
}
.score-cat__bar {
  flex: 1; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.score-cat__fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.score-cat__value {
  width: 40px; font-size: 0.75rem;
  color: var(--text-muted); text-align: right;
}

/* ─── ADVICE CARDS ─── */
.advice-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.advice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 3px solid var(--border);
  transition: border-color var(--transition);
}
.advice-card--high   { border-left-color: var(--danger); }
.advice-card--medium { border-left-color: var(--warning); }
.advice-card--low    { border-left-color: var(--accent); }
.advice-card:hover   { border-color: var(--text-muted); }
.advice-card__header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 0.5rem;
}
.advice-card__category {
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.advice-card__priority {
  font-size: 0.65rem; font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.advice-card__priority--high   { background: var(--danger-soft); color: var(--danger); }
.advice-card__priority--medium { background: var(--warning-soft); color: var(--warning); }
.advice-card__priority--low    { background: var(--accent-soft); color: var(--accent-light); }
.advice-card__text {
  font-size: 0.9rem; color: var(--text);
  line-height: 1.6; margin-bottom: 0.5rem;
}
.advice-card__example {
  font-size: 0.8rem; color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
  line-height: 1.5;
}

/* ─── UPLOAD PROGRESS ─── */
.upload-progress {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: slideIn 0.3s ease-out;
}
.upload-progress__status {
  font-size: 1rem; font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-align: center;
}
.upload-progress__bar {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.upload-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px var(--accent-glow);
}
.upload-progress__detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}
.upload-progress__steps {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.progress-step {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--text-muted);
  transition: color var(--transition);
}
.progress-step__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
  flex-shrink: 0;
}
.progress-step.active { color: var(--accent-light); }
.progress-step.active .progress-step__dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 1.5s ease-in-out infinite;
}
.progress-step.done { color: var(--success); }
.progress-step.done .progress-step__dot {
  background: var(--success);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.3);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem; max-width: 860px; margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}
.price-card--pro {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow);
}
.price-card__popular {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg);
  padding: 0.2rem 1rem; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.price-card__badge {
  font-size: 0.75rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.price-card__price {
  font-size: 2.5rem; font-weight: 900; color: var(--text);
}
.price-card__period {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.price-card__features {
  text-align: left; margin-bottom: 1.5rem;
  list-style: none; padding: 0;
}
.price-card__features li {
  padding: 0.4rem 0; font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.feat--yes::before { content: "✓ "; color: var(--success); font-weight: 700; }
.feat--no::before  { content: "✗ "; color: var(--danger); font-weight: 700; }
.feat--limit::before { content: "~ "; color: var(--warning); font-weight: 700; }
.feat--yes { color: var(--text-secondary); }
.feat--no  { color: var(--text-muted); }
.feat--limit { color: var(--text-secondary); }

/* ─── PROFILE ─── */
.profile-section { margin-top: 1rem; }
.profile-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.profile-label {
  font-size: 0.8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.profile-value { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.tier-badge {
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.tier-badge--free { background: var(--surface-hover); color: var(--text-muted); }
.tier-badge--pro  { background: var(--accent-soft); color: var(--accent-light); border: 1px solid rgba(6,182,212,0.2); }
.pro-badge {
  background: var(--accent); color: var(--bg);
  padding: 0.1rem 0.4rem; border-radius: var(--radius-xs);
  font-size: 0.6rem; font-weight: 800; vertical-align: middle;
  margin-left: 0.3rem;
}
.upgrade-banner {
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(139,92,246,0.04));
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: var(--radius);
  padding: 1.5rem; text-align: center; margin-top: 1rem;
}
.upgrade-banner h3 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--text); }
.upgrade-banner p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; }

/* ─── BLURRED TEXT (free tier) ─── */
.blurred-text {
  filter: blur(4px); user-select: none;
  color: var(--text-muted);
}
.matches-left {
  color: var(--warning); font-weight: 600;
}

/* ─── GDPR / PRIVACY ─── */
.gdpr-consent { margin-top: 0.5rem; }
.gdpr-label {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-secondary);
  cursor: pointer; line-height: 1.4;
}
.gdpr-label input[type="checkbox"] {
  margin-top: 2px; accent-color: var(--accent);
}
.privacy-content h3 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin: 1.25rem 0 0.4rem;
}
.privacy-content p,
.privacy-content li {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.6;
}
.privacy-content ul {
  padding-left: 1.25rem; list-style: disc;
  margin-bottom: 0.5rem;
}
.privacy-updated {
  margin-top: 1.5rem; font-size: 0.75rem;
  color: var(--text-muted); font-style: italic;
}
.app-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; padding: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.app-footer a {
  font-size: 0.75rem; color: var(--text-muted);
  transition: color var(--transition);
}
.app-footer a:hover { color: var(--text-secondary); }
.footer-link {
  background: none; border: none; cursor: pointer;
  font-size: 0.75rem; font-family: var(--font);
}
.footer-link--danger { color: var(--danger); }
.footer-link--danger:hover { color: var(--text); }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  flex-wrap: wrap;
}
.cookie-banner p {
  font-size: 0.8rem; color: var(--text-secondary);
  flex: 1; min-width: 250px; margin: 0;
}
.cookie-banner__actions {
  display: flex; gap: 0.5rem;
}

/* ─── ADMIN DASHBOARD ─── */
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
}
.stat-card--accent { border-color: var(--accent); }
.stat-card__value {
  font-size: 2rem; font-weight: 900; color: var(--text); line-height: 1;
}
.stat-card--accent .stat-card__value { color: var(--accent-light); }
.stat-card__label {
  font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-top: 0.3rem; font-weight: 600;
}
.admin-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-col { flex: 1; min-width: 300px; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.8rem;
}
.admin-table th {
  text-align: left; padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.admin-table td {
  padding: 0.5rem 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.cell-truncate { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-actions { display: flex; gap: 0.3rem; }
.score-pill {
  background: var(--accent-soft); color: var(--accent-light);
  padding: 0.1rem 0.5rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700;
}
.btn--sm {
  font-size: 0.65rem; padding: 0.25rem 0.5rem; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); cursor: pointer; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
}
.btn--sm--on { border-color: var(--accent); color: var(--accent-light); }
.btn--sm--on:hover { background: var(--accent-soft); }
.btn--sm--off { border-color: var(--warning); color: var(--warning); }
.btn--sm--off:hover { background: var(--warning-soft); }
.btn--sm--danger { border-color: var(--danger); color: var(--danger); }
.btn--sm--danger:hover { background: var(--danger-soft); }
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 1rem;
}
.pagination__info { font-size: 0.8rem; color: var(--text-muted); }

/* Activity feed */
.activity-feed { max-height: 500px; overflow-y: auto; }
.activity-item {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.activity-item__dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 5px; flex-shrink: 0;
  background: var(--text-muted);
}
.activity-item__dot--login { background: var(--success); }
.activity-item__dot--logout { background: var(--text-muted); }
.activity-item__dot--register { background: var(--accent); }
.activity-item__dot--upload { background: #8b5cf6; }
.activity-item__dot--download { background: var(--warning); }
.activity-item__dot--login_failed { background: var(--danger); }
.activity-item__dot--upgrade { background: var(--accent-light); }
.activity-item__dot--match { background: #8b5cf6; }
.activity-item__content { flex: 1; font-size: 0.8rem; }
.activity-item__action {
  font-weight: 700; color: var(--text);
  margin-right: 0.3rem;
}
.activity-item__user { color: var(--accent-light); margin-right: 0.3rem; }
.activity-item__detail { color: var(--text-muted); }
.activity-item__time { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

/* Activity counts */
.activity-count-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.activity-count-label {
  width: 100px; font-size: 0.75rem; color: var(--text-secondary);
  font-weight: 500;
}
.activity-count-bar {
  height: 6px; background: var(--accent);
  border-radius: var(--radius-full); min-width: 4px;
}
.activity-count-val {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 700;
  width: 30px; text-align: right;
}

/* ─── TOKEN SYSTEM ─── */
.token-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(139,92,246,0.05));
  border: 1px solid rgba(6,182,212,0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem; margin-bottom: 1.5rem;
}
.token-bar__left {
  display: flex; align-items: center; gap: 0.5rem;
}
.token-bar__icon { font-size: 1.3rem; }
.token-bar__text { font-size: 0.9rem; color: var(--text); }
.token-bar__buy {
  background: var(--accent); color: var(--bg);
  padding: 0.4rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 700;
  transition: all var(--transition);
}
.token-bar__buy:hover { background: var(--accent-light); }

.badge-unlimited {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff; padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.token-badge {
  font-size: 0.7rem; opacity: 0.8; margin-left: 0.3rem;
}

.token-cost-hint {
  color: var(--text-muted); font-size: 0.8rem;
  font-style: italic;
}

.token-balance-display {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem; font-size: 0.9rem; color: var(--text);
}
.token-balance-icon { font-size: 1.2rem; }

.token-costs {
  max-width: 700px; margin: 0 auto 2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.token-cost-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.token-cost-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.3rem; text-align: center;
}
.token-cost-icon { font-size: 1.5rem; }
.token-cost-label {
  font-size: 0.8rem; color: var(--text-secondary); font-weight: 600;
}
.token-cost-amount {
  font-size: 0.85rem; color: var(--accent-light); font-weight: 700;
}

.price-card--unlimited {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25), var(--shadow);
  background: linear-gradient(180deg, var(--surface), rgba(139, 92, 246, 0.04));
}
.price-card--unlimited .price-card__popular {
  background: #8b5cf6;
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 1100px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .navbar { padding: 0.5rem 1rem; flex-wrap: wrap; row-gap: 0.5rem; }
  .navbar__links { gap: 0.4rem; flex-wrap: wrap; }
  .navbar__link, .btn--nav { padding: 0.35rem 0.55rem; font-size: 0.8rem; }
  .navbar__user { font-size: 0.75rem; padding: 0.25rem 0.55rem; }
  .main-content { padding: 1.5rem 1rem; }
  .card--auth { margin: 1rem; padding: 1.5rem; }
  .card__header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .card__meta { flex-wrap: wrap; }
  .landing__features { grid-template-columns: 1fr 1fr; }
  .cookie-banner { padding: 1rem; }
  .cookie-banner p { min-width: 0; }
}
@media (max-width: 400px) {
  .landing__features { grid-template-columns: 1fr; }
}

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; text-align: center; }
.stat-card__value { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.stat-card__label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Shortlist Buttons */
.btn--shortlist, .btn--shortlisted { background: none; border: 2px solid var(--border); border-radius: 8px; padding: 0.4rem 0.6rem; cursor: pointer; font-size: 1.2rem; transition: all 0.2s; }
.btn--shortlist { color: var(--text-muted); }
.btn--shortlist:hover { color: var(--accent); border-color: var(--accent); }
.btn--shortlisted { color: var(--accent); border-color: var(--accent); background: rgba(0,255,255,0.1); }
.btn--danger { background: none; border: 1px solid #f44; color: #f44; border-radius: 8px; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.85rem; }
.btn--danger:hover { background: #f44; color: white; }

/* Badge styles */
.badge { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 6px; font-weight: 600; }
.badge--active { background: rgba(0,255,128,0.15); color: #0f8; }
.badge--inactive { background: rgba(255,255,255,0.1); color: var(--text-muted); }
