/* ============================================================
   SCANQY — Design System (app.css)
   Mobile-first, Premium SaaS UI
   ============================================================ */

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

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* --- Design System Variables --- */
:root {
  /* Brand */
  --primary:        #1664E8;
  --primary-dark:   #0F4FC5;
  --primary-light:  #EAF2FF;
  --primary-rgb:    22, 100, 232;

  /* Backgrounds */
  --bg:       #F5F7FB;
  --surface:  #FFFFFF;

  /* Borders */
  --border:       #E4EAF3;
  --border-focus: #1664E8;

  /* Text */
  --text:       #1F2937;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  /* Status */
  --success:      #10B981;
  --success-bg:   #D1FAE5;
  --success-text: #065F46;
  --danger:       #EF4444;
  --danger-bg:    #FEE2E2;
  --danger-text:  #991B1B;
  --warning:      #F59E0B;
  --warning-bg:   #FEF3C7;
  --warning-text: #92400E;

  /* Legacy aliases */
  --blue:       #1664E8;
  --blue-dark:  #0F4FC5;
  --blue-light: #EAF2FF;
  --white:      #fff;
  --gray-50:    #F9FAFB;
  --gray-100:   #F3F4F6;
  --gray-200:   #E4EAF3;
  --gray-300:   #D1D5DB;
  --gray-400:   #9CA3AF;
  --gray-500:   #6B7280;
  --gray-600:   #4B5563;
  --gray-800:   #1F2937;
  --gray-900:   #111827;
  --red:        #EF4444;
  --green:      #10B981;
  --yellow:     #EAB308;
  --gold:       #F59E0B;

  /* Radius */
  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 48px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.08);

  /* Transitions */
  --transition:      0.18s ease;
  --transition-slow: 0.3s ease;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: -0.01em;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
}

/* Primary */
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(var(--primary-rgb), .25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), .35);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

/* Secondary */
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary-light); }

/* Danger */
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1.5px solid #FCA5A5;
}
.btn-danger:hover { background: #FECACA; border-color: var(--danger); }

/* Modifiers */
.btn-primary.btn-block,
.btn-secondary.btn-block,
.btn-ghost.btn-block,
.btn-danger.btn-block { display: flex; width: 100%; }

.btn-sm  { padding: 8px 14px; font-size: .8125rem; }
.btn-lg  { padding: 15px 28px; font-size: 1rem; border-radius: var(--radius); }

/* Outline white (for dark hero backgrounds) */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,.88);
  border: 1.5px solid rgba(255,255,255,.35);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.65);
  color: #fff;
}

/* Hero button */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9375rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  transition: all var(--transition);
  letter-spacing: -0.01em;
}
.btn-hero:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}

/* Icon button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  border: none;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-icon:hover { background: var(--border); }
.btn-icon-danger { background: var(--danger-bg); color: var(--danger); border: none; }
.btn-icon-danger:hover { background: #FECACA; }

/* Plan buttons */
.btn-plan {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: .9375rem;
  transition: all var(--transition);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-plan:hover { background: var(--primary-light); }

.btn-plan-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  border: none;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), .3);
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
}
.btn-plan-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #6EE7B7; }
.alert-danger   { background: var(--danger-bg);  color: var(--danger-text);  border: 1px solid #FCA5A5; }
.alert-warning  { background: var(--warning-bg); color: var(--warning-text); border: 1px solid #FDE68A; }

/* ============================================================
   TAGS / BADGES
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--text-muted);
  margin: 2px;
}
.tag-green  { background: var(--success-bg);  color: var(--success-text); }
.tag-red    { background: var(--danger-bg);   color: var(--danger-text);  }
.tag-yellow { background: var(--warning-bg);  color: var(--warning-text); }
.tag-gold   { background: #FEF3C7; color: #92400E; }
.tag-gray   { background: var(--gray-100); color: var(--text-light); }
.tag-blue   { background: var(--primary-light); color: var(--primary); }

/* ============================================================
   FORMS
   ============================================================ */

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-control::placeholder { color: var(--text-light); }
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12);
}
.form-control:disabled { background: var(--gray-50); color: var(--text-light); cursor: not-allowed; }

.form-control-sm  { padding: 9px 11px; font-size: .875rem; }
.form-control-lg  { padding: 15px 16px; font-size: 1rem; border-radius: var(--radius); }

textarea.form-control { resize: vertical; min-height: 90px; line-height: 1.6; }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint  { font-size: .8125rem; color: var(--text-muted); margin-top: 5px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 10px; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); }
.form-checks { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.required { color: var(--danger); }

.color-picker { width: 50px; height: 44px; padding: 3px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.color-picker-row { display: flex; align-items: center; gap: 12px; }
.color-hint { font-size: .85rem; color: var(--text-muted); }

.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-section { border-top: 1px solid var(--gray-100); padding-top: 18px; margin-top: 18px; }
.form-section h3 { font-size: .9375rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.form-page { max-width: 600px; margin: 0 auto; padding: 16px; }

.action-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.action-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  border: 1px solid var(--border);
}
.action-value { font-size: .8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: linear-gradient(160deg, #D6E8FF 0%, #EAF2FF 30%, #F5F7FB 65%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: -200px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(22,100,232,.07) 0%, transparent 65%);
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(22,100,232,.05) 0%, transparent 65%);
  pointer-events: none;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 38px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.04);
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.logo-mark {
  display: inline-flex;
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.05em;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.04em;
}

.auth-title {
  font-size: 1.55rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.04em;
  color: var(--text);
}
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
  margin-bottom: 26px;
}
.auth-form { margin-top: 22px; }
.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: .875rem;
  color: var(--text-muted);
}
.auth-footer a { color: var(--primary); font-weight: 600; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   ONBOARDING
   ============================================================ */

.onboarding-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px;
  background: linear-gradient(160deg, #D6E8FF 0%, #EAF2FF 30%, #F5F7FB 60%, #fff 100%);
}
.onboarding-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 38px 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  margin-top: 32px;
  margin-bottom: 32px;
}
.onboarding-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 24px; }

.onboarding-step-indicator { display: flex; gap: 6px; justify-content: center; margin-bottom: 24px; }
.step-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: all var(--transition-slow);
}
.step-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.onboarding-form .form-group { margin-bottom: 20px; }
.onboarding-preview { margin: 20px 0; }
.preview-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.preview-icon { font-size: 1.4rem; width: 36px; text-align: center; }

.onboarding-done { text-align: center; }
.done-icon { font-size: 4.5rem; margin-bottom: 16px; }
.done-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

/* ============================================================
   LANDING PAGE
   ============================================================ */

.landing { overflow-x: hidden; background: var(--surface); }

/* Hero */
.landing-hero {
  position: relative;
  background: linear-gradient(150deg, #0A2D6E 0%, #1664E8 50%, #3B82F6 100%);
  color: #fff;
  padding: 0 0 64px;
  overflow: hidden;
}
.landing-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--surface);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  position: relative;
  z-index: 10;
}
.landing-nav-logo { display: flex; align-items: center; gap: 10px; }
.landing-nav-logo .logo-mark { background: rgba(255,255,255,.15); }
.landing-nav-logo .logo-text { color: #fff; }
.landing-nav-actions { display: flex; align-items: center; gap: 10px; }

.hero-content { padding: 48px 24px 36px; text-align: center; position: relative; z-index: 1; }
.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.hero-highlight { color: #93C5FD; }
.hero-subtitle {
  font-size: 1.05rem;
  opacity: .88;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-note { font-size: .8rem; opacity: .65; }

.hero-mockup { display: flex; justify-content: center; padding: 0 24px; position: relative; z-index: 1; }
.phone-mockup {
  width: 230px;
  background: #0A0A1A;
  border-radius: 32px;
  padding: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.phone-screen { background: #fff; border-radius: 20px; overflow: hidden; min-height: 300px; }
.mockup-cover { height: 88px; background: linear-gradient(135deg, var(--primary), #3B82F6); }
.mockup-info { padding: 12px; }
.mockup-logo { width: 40px; height: 40px; background: #fff; border-radius: 10px; margin: -20px 0 10px; box-shadow: var(--shadow-md); }
.mockup-name { font-weight: 700; font-size: .85rem; letter-spacing: -0.02em; }
.mockup-cat { font-size: .7rem; color: var(--text-muted); margin-top: 4px; }
.mockup-items { padding: 0 12px 12px; }
.mockup-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.mockup-item-img { width: 40px; height: 40px; background: var(--gray-100); border-radius: 8px; flex-shrink: 0; }
.mockup-item-name { font-size: .75rem; font-weight: 600; }
.mockup-item-price { font-size: .7rem; color: var(--primary); font-weight: 700; }
.mockup-cta { background: var(--primary); color: #fff; text-align: center; padding: 11px; font-size: .72rem; font-weight: 700; letter-spacing: 0.02em; }

/* Activities */
.landing-activities { padding: 60px 24px; text-align: center; background: var(--surface); }
.landing-activities h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
  color: var(--text);
}
.landing-activities > p { color: var(--text-muted); margin-bottom: 32px; }
.activities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 480px; margin: 0 auto; }
.activity-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  font-weight: 600;
  font-size: .875rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  color: var(--text);
}
.activity-card:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Features */
.landing-features { padding: 60px 24px; background: var(--bg); text-align: center; }
.landing-features h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.landing-features > p { color: var(--text-muted); margin-bottom: 36px; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 800px; margin: 0 auto; }
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* Pricing */
.landing-pricing { padding: 60px 24px; text-align: center; background: var(--surface); }
.landing-pricing h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.landing-pricing > p { color: var(--text-muted); margin-bottom: 40px; }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 980px; margin: 0 auto; }
.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  position: relative;
  transition: all var(--transition);
  text-align: left;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
  background: linear-gradient(160deg, var(--surface) 0%, #EAF2FF 100%);
}

.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.plan-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 22px;
  letter-spacing: -0.05em;
}
.plan-price span { font-size: .9rem; color: var(--text-muted); font-weight: 400; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li {
  padding: 9px 0;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 1rem; }

/* Footer */
.landing-footer {
  text-align: center;
  padding: 36px 24px;
  color: var(--text-muted);
  font-size: .875rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.landing-footer a { color: var(--primary); font-weight: 600; }

/* ============================================================
   PRICING PAGE (/pricing)
   ============================================================ */

.pricing-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 48px 20px 64px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  color: var(--text);
}

.pricing-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* BEM aliases */
.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
  background: linear-gradient(160deg, var(--surface) 0%, #EAF2FF 100%);
}

.pricing-card--current {
  border-color: var(--success);
  box-shadow: 0 0 0 1px var(--success);
}

.pricing-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 18px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .03em;
}

.pricing-card-header {
  margin-bottom: 20px;
}

.pricing-plan-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.pricing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.05em;
}

.price-period {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-yearly-note {
  font-size: .82rem;
  color: var(--text-muted);
}

.pricing-saving {
  color: var(--success);
  font-weight: 700;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--border);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--success);
}

.pricing-features li.feature-disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.feature-disabled svg {
  fill: var(--text-muted);
}

.pricing-features li.feature-unlimited {
  font-weight: 600;
  color: var(--primary);
}

.pricing-features li.feature-unlimited svg {
  fill: var(--primary);
}

.pricing-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.pricing-yearly-link {
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
  text-decoration: none;
}

.pricing-yearly-link:hover {
  color: var(--primary);
}

.pricing-footer {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.7;
}

/* ============================================================
   ERROR PAGES
   ============================================================ */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
}
.error-code {
  font-size: 5.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: .18;
  margin-bottom: 16px;
  letter-spacing: -0.05em;
}
.error-page h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.error-page p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }

/* ============================================================
   DESKTOP BREAKPOINTS
   ============================================================ */

@media (min-width: 768px) {
  .hero-title { font-size: 3.25rem; }
  .activities-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .auth-card { padding: 44px 40px; }
  .form-row { grid-template-columns: 1fr 1fr; }
}
