/* ═══════════════════════════════════════════════════════════
   Hvister — Design System 2026
   Palette: Deep navy + electric cyan + warm white
   Type: Syne (display) + Onest (body)
   ═══════════════════════════════════════════════════════════ */

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

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --c-bg:        #07090f;
  --c-surface:   #0d1120;
  --c-surface2:  #131929;
  --c-border:    rgba(255,255,255,.07);
  --c-accent:    #00e5ff;
  --c-accent2:   #7b61ff;
  --c-text:      #e8ecf5;
  --c-muted:     #6b7592;
  --c-white:     #ffffff;
  --c-danger:    #ff4d6a;
  --c-success:   #00c896;

  --r-card:  16px;
  --r-btn:   10px;
  --r-input: 10px;

  --shadow-card: 0 0 0 1px var(--c-border), 0 8px 40px rgba(0,0,0,.4);
  --shadow-glow: 0 0 30px rgba(0,229,255,.15);

  --transition: .22s cubic-bezier(.4,0,.2,1);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Onest', sans-serif;

  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-surface2); border-radius: 3px; }

/* ─── Noise overlay ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .5;
}

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; }

h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.text-accent  { color: var(--c-accent); }
.text-muted   { color: var(--c-muted); }
.text-sm      { font-size: .875rem; }
.text-xs      { font-size: .75rem; }

/* ─── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* ─── Grid ────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(7,9,15,.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--transition);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-white);
}

.nav__logo-dot {
  width: 8px; height: 8px;
  background: var(--c-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--c-accent);
  animation: pulse 2s ease-in-out infinite;
}

.nav__links {
  display: flex; align-items: center; gap: 8px;
  flex: 1; justify-content: center;
}

.nav__links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .925rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a.active { color: var(--c-text); background: rgba(255,255,255,.06); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__phone {
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-muted);
  padding: 8px 14px;
  transition: color var(--transition);
}
.nav__phone:hover { color: var(--c-text); }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--c-surface2);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav__burger span { width: 20px; height: 2px; background: var(--c-text); border-radius: 1px; transition: var(--transition); }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  transition: all var(--transition);
  position: relative; overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--c-accent);
  color: #000;
  box-shadow: 0 0 20px rgba(0,229,255,.3);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(0,229,255,.5); transform: translateY(-1px); }

.btn-secondary {
  background: var(--c-surface2);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-secondary:hover { border-color: rgba(255,255,255,.15); }

.btn-outline {
  background: transparent;
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
}
.btn-outline:hover { background: rgba(0,229,255,.08); }

.btn-ghost {
  background: transparent;
  color: var(--c-muted);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover { color: var(--c-text); }

.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-danger { background: var(--c-danger); color: #fff; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: rgba(255,255,255,.12); transform: translateY(-2px); }

.card--glow { box-shadow: var(--shadow-card), var(--shadow-glow); border-color: rgba(0,229,255,.25); }

/* ─── Plan cards ──────────────────────────────────────────── */
.plan-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex; flex-direction: column;
  transition: all var(--transition);
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.plan-card:hover::before { opacity: 1; }
.plan-card:hover { border-color: rgba(0,229,255,.2); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(0,229,255,.1); }
.plan-card--featured { border-color: rgba(0,229,255,.3); background: linear-gradient(160deg, rgba(0,229,255,.04) 0%, var(--c-surface) 60%); }
.plan-card--featured::before { opacity: 1; }

.plan-badge {
  position: absolute; top: 20px; right: 20px;
  background: var(--c-accent);
  color: #000;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.plan-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--c-white); margin-bottom: 12px; }

.plan-price {
  display: flex; align-items: flex-end; gap: 6px;
  margin-bottom: 6px;
}
.plan-price__amount { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--c-white); line-height: 1; }
.plan-price__currency { font-size: 1.25rem; color: var(--c-accent); font-weight: 600; margin-bottom: 6px; }
.plan-price__period { font-size: .875rem; color: var(--c-muted); margin-bottom: 8px; }

.plan-desc { font-size: .875rem; color: var(--c-muted); margin-bottom: 28px; min-height: 40px; }

.plan-features { flex: 1; margin-bottom: 28px; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: .9rem;
}
.plan-features li:last-child { border-bottom: none; }

.plan-features li::before {
  content: '';
  width: 18px; height: 18px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0,200,150,.1);
  display: flex; align-items: center; justify-content: center;
}

.plan-features li.negative::before { background: rgba(255,77,106,.1); }

.plan-features .icon-check { color: var(--c-success); font-size: .8rem; }
.plan-features .icon-x     { color: var(--c-danger);  font-size: .8rem; }

/* ─── Hero section ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,229,255,.12) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(123,97,255,.1) 0%, transparent 60%);
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero__content { position: relative; z-index: 1; max-width: 760px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.hero__title { margin-bottom: 24px; }
.hero__title em { color: var(--c-accent); font-style: normal; }

.hero__desc {
  font-size: 1.125rem;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero__stats {
  display: flex; gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--c-border);
}

.hero__stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--c-white); }
.hero__stat-label { font-size: .8125rem; color: var(--c-muted); margin-top: 2px; }

/* ─── Section header ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.0625rem; color: var(--c-muted); max-width: 560px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.2);
  color: var(--c-accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ─── Features grid ───────────────────────────────────────── */
.feature-card {
  padding: 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  transition: all var(--transition);
}
.feature-card:hover { border-color: rgba(0,229,255,.2); transform: translateY(-2px); }

.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
  background: rgba(0,229,255,.1);
  color: var(--c-accent);
}

.feature-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--c-white); }
.feature-card__desc  { font-size: .875rem; color: var(--c-muted); line-height: 1.6; }

/* ─── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 6px; background: var(--c-surface2); padding: 5px; border-radius: 12px; border: 1px solid var(--c-border); width: fit-content; margin-bottom: 48px; }

.tab-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--c-muted);
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--c-white); background: var(--c-surface); box-shadow: var(--shadow-card); }
.tab-btn.active { color: var(--c-accent); }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .3s ease; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }

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

.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  transition: color var(--transition);
  width: 100%; text-align: left;
}
.faq-question:hover { color: var(--c-accent); }

.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  color: var(--c-muted);
  transition: all var(--transition);
}
.faq-item.open .faq-icon { background: rgba(0,229,255,.1); border-color: var(--c-accent); color: var(--c-accent); transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 0 22px;
  font-size: .9375rem;
  color: var(--c-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; animation: fadeDown .25s ease; }

/* ─── CMS logos ───────────────────────────────────────────── */
.cms-grid {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
}
.cms-tag {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: all var(--transition);
}
.cms-tag:hover { color: var(--c-text); border-color: rgba(255,255,255,.15); }

/* ─── Includes list ───────────────────────────────────────── */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.include-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.include-item:hover { border-color: rgba(0,229,255,.2); }
.include-item__icon { font-size: 1.1rem; color: var(--c-accent); }

/* ─── CTA banner ──────────────────────────────────────────── */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(0,229,255,.1) 0%, rgba(123,97,255,.08) 100%);
  border: 1px solid rgba(0,229,255,.2);
  border-radius: 24px;
  padding: 64px 56px;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,229,255,.08) 0%, transparent 70%);
  border-radius: 50%;
}

/* ─── Form ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .875rem; font-weight: 500; color: var(--c-muted); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-input);
  padding: 12px 16px;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: .9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--c-muted); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,.1);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select option { background: var(--c-surface2); }

.form-error { color: var(--c-danger); font-size: .8125rem; margin-top: 5px; }
.form-success { color: var(--c-success); font-size: .9rem; padding: 12px 16px; background: rgba(0,200,150,.08); border-radius: 8px; border: 1px solid rgba(0,200,150,.2); }

/* ─── Toast ───────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 280px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  animation: slideInRight .3s ease;
  box-shadow: var(--shadow-card);
}
.toast-success { background: rgba(0,200,150,.15); border: 1px solid rgba(0,200,150,.3); color: var(--c-success); }
.toast-error   { background: rgba(255,77,106,.12); border: 1px solid rgba(255,77,106,.3); color: var(--c-danger); }

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 72px 0 32px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer__brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--c-white); margin-bottom: 12px; }
.footer__brand-desc { font-size: .875rem; color: var(--c-muted); line-height: 1.7; max-width: 280px; }
.footer__contact { margin-top: 24px; }
.footer__contact a { display: block; font-size: .9rem; color: var(--c-muted); margin-bottom: 6px; transition: color var(--transition); }
.footer__contact a:hover { color: var(--c-text); }
.footer__col-title { font-size: .75rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.footer__links a { display: block; font-size: .875rem; color: var(--c-muted); margin-bottom: 10px; transition: color var(--transition); }
.footer__links a:hover { color: var(--c-text); }
.footer__bottom { border-top: 1px solid var(--c-border); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__copy { font-size: .8125rem; color: var(--c-muted); }

/* ─── Admin layout ────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 256px; flex-shrink: 0;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50;
  overflow-y: auto;
}

.admin-sidebar__logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--c-border);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
  color: var(--c-white);
  display: flex; align-items: center; gap: 10px;
}

.admin-sidebar__nav { padding: 12px; flex: 1; }

.admin-nav-group { margin-bottom: 24px; }
.admin-nav-label { font-size: .7rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .1em; padding: 0 8px; margin-bottom: 6px; }

.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-muted);
  transition: all var(--transition);
  margin-bottom: 2px;
}
.admin-nav-item:hover { color: var(--c-text); background: rgba(255,255,255,.05); }
.admin-nav-item.active { color: var(--c-accent); background: rgba(0,229,255,.08); }
.admin-nav-item__icon { width: 18px; text-align: center; }

.admin-main { margin-left: 256px; flex: 1; padding: 32px; background: var(--c-bg); min-height: 100vh; }

.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.admin-page-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.admin-stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 24px;
}
.admin-stat__value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--c-white); }
.admin-stat__label { font-size: .8125rem; color: var(--c-muted); margin-top: 4px; }

/* ─── Admin table ─────────────────────────────────────────── */
.admin-table-wrap { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 14px 20px; text-align: left; font-size: .75rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--c-border); background: var(--c-surface2); }
.admin-table td { padding: 14px 20px; font-size: .9rem; border-bottom: 1px solid var(--c-border); color: var(--c-text); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }

/* ─── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-success { background: rgba(0,200,150,.12); color: var(--c-success); }
.badge-danger  { background: rgba(255,77,106,.12); color: var(--c-danger); }
.badge-accent  { background: rgba(0,229,255,.12); color: var(--c-accent); }
.badge-muted   { background: var(--c-surface2); color: var(--c-muted); }

/* ─── Animations ──────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px currentColor; }
  50%       { opacity: .6; box-shadow: 0 0 16px currentColor; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-in { animation: fadeUp .5s ease both; }
.animate-in-delay-1 { animation-delay: .1s; }
.animate-in-delay-2 { animation-delay: .2s; }
.animate-in-delay-3 { animation-delay: .3s; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__phone  { display: none; }
  .nav__burger { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .section { padding: 64px 0; }
  .cta-banner { padding: 40px 28px; }
  .tabs { overflow-x: auto; }

  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 20px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 16px; }
}

/* ─── Mobile nav ──────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--c-bg);
  z-index: 200;
  flex-direction: column;
  padding: 24px;
}
.mobile-nav.open { display: flex; animation: fadeUp .25s ease; }
.mobile-nav__close { align-self: flex-end; margin-bottom: 24px; color: var(--c-muted); font-size: 1.5rem; }
.mobile-nav a { font-size: 1.5rem; font-family: var(--font-display); font-weight: 800; color: var(--c-text); padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.mobile-nav a:hover { color: var(--c-accent); }

/* ─── Utilities ───────────────────────────────────────────── */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.mt-2   { margin-top: 8px; }
.mt-4   { margin-top: 16px; }
.mt-6   { margin-top: 24px; }
.mb-4   { margin-bottom: 16px; }
.mb-6   { margin-bottom: 24px; }
.mb-8   { margin-bottom: 32px; }
.p-6    { padding: 24px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.w-full { width: 100%; }
.hidden { display: none !important; }

.divider {
  height: 1px;
  background: var(--c-border);
  margin: 32px 0;
}

.skeleton {
  background: linear-gradient(90deg, var(--c-surface2) 25%, var(--c-surface) 50%, var(--c-surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
