/* ========================================
   BETJORDAN-OFFIZIELL.DE — GLOBAL STYLES
   Farben: #e8003d (Rot), #0a0a12 (Dunkel)
   ======================================== */

/* === CSS Reset & Custom Properties === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0a0a12;
  --bg2:         #11111e;
  --bg3:         #181828;
  --card:        #1e1e30;
  --card2:       #252538;
  --border:      #2e2e44;
  --border2:     #3a3a52;

  --red:         #e8003d;
  --red-dark:    #b8002e;
  --red-light:   #ff1a50;
  --red-glow:    rgba(232,0,61,0.25);
  --red-glow2:   rgba(232,0,61,0.12);

  --white:       #ffffff;
  --text:        #eeeef5;
  --text2:       #9999b8;
  --text3:       #5f5f7a;

  --green:       #00c851;
  --yellow:      #ffaa00;
  --gold:        #ffd060;
  --blue:        #4488ff;

  --radius-s:    6px;
  --radius-m:    12px;
  --radius-l:    20px;
  --radius-xl:   30px;

  --shadow-s:    0 2px 10px rgba(0,0,0,.35);
  --shadow-m:    0 6px 24px rgba(0,0,0,.45);
  --shadow-l:    0 12px 48px rgba(0,0,0,.55);
  --shadow-red:  0 4px 24px rgba(232,0,61,.35);

  --container:   1240px;
  --gap:         24px;
  --tr:          .3s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--tr); }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* === Typography === */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
.text-red   { color: var(--red); }
.text-gold  { color: var(--gold); }
.text-green { color: var(--green); }
.text-muted { color: var(--text2); }

/* === Layout === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-s  { gap: 12px; }
.gap-m  { gap: 24px; }
.gap-l  { gap: 40px; }
.mt-s   { margin-top: 16px; }
.mt-m   { margin-top: 32px; }
.mt-l   { margin-top: 56px; }
.mb-s   { margin-bottom: 16px; }
.mb-m   { margin-bottom: 32px; }
.text-center { text-align: center; }

/* === Section Headings === */
.section-title { margin-bottom: 12px; }
.section-subtitle { color: var(--text2); font-size: 1.05rem; margin-bottom: 40px; }
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-glow2);
  border: 1px solid rgba(232,0,61,.3);
  color: var(--red-light);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 16px;
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-m);
  font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  transition: all var(--tr); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff2d5f, var(--red));
  box-shadow: 0 6px 32px rgba(232,0,61,.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--border2);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; border-radius: var(--radius-l); }
.btn-sm { padding: 9px 20px; font-size: .85rem; border-radius: var(--radius-s); }
.tracker-btn {
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  color: #fff !important;
  padding: 11px 24px;
  border-radius: var(--radius-m);
  font-weight: 800;
  font-size: .9rem;
  box-shadow: var(--shadow-red);
  transition: all var(--tr);
  white-space: nowrap;
}
.tracker-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,0,61,.5);
}

/* === Cards === */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px;
  transition: all var(--tr);
}
.card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow-m); }
.card-highlight { border-color: rgba(232,0,61,.4); background: linear-gradient(145deg, var(--card), rgba(232,0,61,.05)); }
.card-sm { padding: 20px; border-radius: var(--radius-m); }
.card-glass {
  background: rgba(30,30,48,.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-l);
}

/* === Badges & Labels === */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.badge-red   { background: rgba(232,0,61,.15); color: var(--red-light); }
.badge-green { background: rgba(0,200,81,.12); color: var(--green); }
.badge-gold  { background: rgba(255,208,96,.12); color: var(--gold); }
.badge-blue  { background: rgba(68,136,255,.12); color: var(--blue); }

/* === Star Rating === */
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.rating-value { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.rating-label { font-size: .8rem; color: var(--text2); }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,18,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-top {
  background: linear-gradient(90deg, var(--red-dark) 0%, var(--red) 50%, var(--red-dark) 100%);
  padding: 7px 0;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  letter-spacing: .04em;
}
.header-top a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.header-top a:hover { opacity: .85; }
.nav-main { padding: 14px 0; }
.nav-inner { display: flex; align-items: center; gap: 20px; }
.nav-logo {
  flex-shrink: 0;
  display: flex; align-items: center;
}
.nav-logo svg { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-s);
  font-size: .9rem; font-weight: 600; color: var(--text2);
  transition: all var(--tr);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.07); }
.nav-links a.active { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-login {
  padding: 9px 18px; border-radius: var(--radius-s);
  font-size: .88rem; font-weight: 600; color: var(--text2);
  border: 1px solid var(--border2);
  transition: all var(--tr);
}
.nav-login:hover { border-color: var(--red); color: var(--red); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius-s);
  background: rgba(255,255,255,.06);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--tr);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 999;
  padding: 80px 24px 40px;
  flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 18px; border-radius: var(--radius-m);
  font-size: 1.05rem; font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text2);
  transition: all var(--tr);
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--card); color: var(--text); border-color: var(--border2); }
.mobile-nav-cta {
  margin-top: 16px; display: flex; flex-direction: column; gap: 10px;
}
.mobile-tracker {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  color: #fff; border-radius: var(--radius-m);
  font-size: 1rem; font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-red);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .footer-logo { margin-bottom: 16px; }
.footer-brand .footer-logo svg { height: 40px; width: auto; }
.footer-brand p { font-size: .88rem; color: var(--text2); line-height: 1.65; max-width: 300px; }
.footer-col h5 { font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .9rem; color: var(--text2); transition: color var(--tr); }
.footer-col ul a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--text3);
}
.footer-bottom a { color: var(--text3); }
.footer-bottom a:hover { color: var(--text2); }
.footer-disclaimer {
  background: rgba(255,170,0,.06);
  border: 1px solid rgba(255,170,0,.2);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  font-size: .8rem; color: var(--text2); line-height: 1.6;
  margin-bottom: 32px;
}
.footer-logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.footer-logos .payment-icon {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 6px 12px;
  font-size: .75rem; font-weight: 700; color: var(--text2);
}

/* =========================================================
   HERO SECTIONS
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 50%, rgba(232,0,61,.14) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 10% 80%, rgba(180,0,80,.08) 0%, transparent 60%);
}
.hero-bg-alt {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 30% 40%, rgba(232,0,61,.12) 0%, transparent 65%);
}
.hero-grid-line {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-glow2);
  border: 1px solid rgba(232,0,61,.3);
  color: var(--red-light); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 20px;
}
.hero h1 span { color: var(--red); }
.hero-desc { font-size: 1.15rem; color: var(--text2); max-width: 580px; margin: 20px 0 36px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--white); }
.hero-stat span { font-size: .85rem; color: var(--text2); }
.hero-stat + .hero-stat { padding-left: 32px; border-left: 1px solid var(--border); }
.hero-image-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-image-glow {
  position: absolute; width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(232,0,61,.2) 0%, transparent 70%);
  pointer-events: none;
}

/* =========================================================
   TABLES
   ========================================================= */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-m); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.data-table th {
  background: var(--bg3);
  padding: 14px 18px;
  text-align: left; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--text2);
  white-space: nowrap;
}
.data-table td { padding: 14px 18px; font-size: .92rem; border-top: 1px solid var(--border); }
.data-table tr:hover td { background: rgba(255,255,255,.025); }
.data-table tr.highlight td { background: rgba(232,0,61,.06); }
.data-table .check { color: var(--green); font-size: 1.1rem; }
.data-table .cross { color: #ff5050; font-size: 1.1rem; }
.td-bold { font-weight: 700; color: var(--white); }
.td-red  { color: var(--red); font-weight: 700; }

/* =========================================================
   CHARTS & DIAGRAMS
   ========================================================= */
.chart-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 28px; }
.chart-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.chart-subtitle { font-size: .82rem; color: var(--text2); margin-bottom: 24px; }

/* Bar Chart CSS */
.bar-chart { display: flex; flex-direction: column; gap: 14px; }
.bar-item { display: flex; align-items: center; gap: 14px; }
.bar-label { font-size: .85rem; color: var(--text2); min-width: 130px; text-align: right; white-space: nowrap; }
.bar-track { flex: 1; background: var(--bg3); border-radius: 4px; height: 28px; overflow: hidden; position: relative; }
.bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-light));
  transition: width 1.2s cubic-bezier(.25,.46,.45,.94);
  display: flex; align-items: center; padding-left: 12px;
  font-size: .82rem; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.bar-fill.alt { background: linear-gradient(90deg, #1e4ab8, #4488ff); }
.bar-fill.alt2 { background: linear-gradient(90deg, #006435, var(--green)); }
.bar-fill.alt3 { background: linear-gradient(90deg, #7c2fa8, #c44bff); }
.bar-value { font-size: .85rem; font-weight: 700; color: var(--white); min-width: 48px; }

/* Vertical Bar Chart */
.vbar-chart { display: flex; align-items: flex-end; gap: 16px; height: 200px; }
.vbar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vbar-fill {
  width: 100%; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--red-light), var(--red-dark));
  transition: height 1.2s cubic-bezier(.25,.46,.45,.94);
  min-height: 4px;
}
.vbar-fill.alt { background: linear-gradient(180deg, #4488ff, #1e4ab8); }
.vbar-fill.alt2 { background: linear-gradient(180deg, var(--green), #006435); }
.vbar-val { font-size: .8rem; font-weight: 700; color: var(--white); }
.vbar-lbl { font-size: .72rem; color: var(--text2); text-align: center; }
.vbar-base { width: 100%; height: 2px; background: var(--border); margin-top: 0; }

/* Donut Chart (SVG-based) */
.donut-wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.donut-svg { flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.donut-legend-item { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.donut-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-legend-label { color: var(--text2); }
.donut-legend-value { font-weight: 700; color: var(--white); margin-left: auto; padding-left: 20px; }

/* Progress / Gauge */
.progress-list { display: flex; flex-direction: column; gap: 18px; }
.progress-item label { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.progress-item label span:first-child { color: var(--text2); }
.progress-item label span:last-child { font-weight: 700; color: var(--white); }
.progress-track { background: var(--bg3); border-radius: 6px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--red-dark), var(--red-light)); }
.progress-fill.green  { background: linear-gradient(90deg, #006435, var(--green)); }
.progress-fill.blue   { background: linear-gradient(90deg, #1e4ab8, #4488ff); }
.progress-fill.gold   { background: linear-gradient(90deg, #cc8800, var(--gold)); }
.progress-fill.purple { background: linear-gradient(90deg, #7c2fa8, #c44bff); }

/* Radial Progress */
.radial-grid { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.radial-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.radial-item svg { overflow: visible; }
.radial-label { font-size: .82rem; color: var(--text2); text-align: center; max-width: 90px; }
.radial-value { font-size: 1.1rem; font-weight: 800; color: var(--white); }

/* Line Chart (SVG) */
.line-chart-wrap { position: relative; }
.line-chart-svg { width: 100%; height: 200px; display: block; }
.chart-axis-label { font-size: .72rem; fill: var(--text3); }

/* =========================================================
   FEATURE SECTIONS
   ========================================================= */
.feature-icon {
  width: 52px; height: 52px;
  background: var(--red-glow2);
  border: 1px solid rgba(232,0,61,.25);
  border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  flex-shrink: 0;
}
.feature-card { display: flex; flex-direction: column; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text2); font-size: .9rem; }

/* Bonus Cards */
.bonus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: all var(--tr);
}
.bonus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--border2); }
.bonus-card-header {
  background: linear-gradient(135deg, var(--red-dark), #6b0020);
  padding: 24px 24px 20px;
}
.bonus-card-header h3 { color: #fff; margin-bottom: 4px; }
.bonus-card-header .amount { font-size: 2.2rem; font-weight: 900; color: var(--gold); }
.bonus-card-body { padding: 24px; }
.bonus-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.bonus-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text2); }
.bonus-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* Sport/Game Cards */
.sport-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: all var(--tr);
  display: flex; flex-direction: column;
}
.sport-card:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow-red); }
.sport-card-img { width: 100%; overflow: hidden; }
.sport-card-img img, .sport-card-img svg { width: 100%; display: block; }
.sport-card-body { padding: 20px; flex: 1; }
.sport-card-body h4 { margin-bottom: 6px; }
.sport-card-body p { font-size: .85rem; color: var(--text2); }
.sport-card-footer { padding: 0 20px 20px; }

/* Odds Display */
.odds-box {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 6px 14px;
  font-size: .9rem; font-weight: 700;
}
.odds-box.highlight { background: rgba(232,0,61,.1); border-color: rgba(232,0,61,.3); color: var(--red-light); }
.live-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }

/* =========================================================
   STEP / TIMELINE
   ========================================================= */
.steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.step { display: flex; gap: 24px; padding-bottom: 36px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  color: #fff; font-weight: 800; font-size: .95rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.step::before {
  content: '';
  position: absolute; left: 22px; top: 44px; bottom: 0; width: 2px;
  background: var(--border); transform: translateX(-50%);
}
.step:last-child::before { display: none; }
.step-content h4 { margin-bottom: 6px; padding-top: 10px; }
.step-content p { font-size: .9rem; color: var(--text2); }

/* =========================================================
   AUTHOR SECTION
   ========================================================= */
.author-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.author-card { display: flex; align-items: flex-start; gap: 28px; }
.author-avatar {
  flex-shrink: 0; width: 96px; height: 96px; border-radius: 50%;
  overflow: hidden; border: 3px solid rgba(232,0,61,.35);
}
.author-avatar img, .author-avatar svg { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { font-size: 1.2rem; margin-bottom: 4px; }
.author-meta { font-size: .82rem; color: var(--red); font-weight: 600; margin-bottom: 10px; }
.author-bio { font-size: .9rem; color: var(--text2); line-height: 1.65; max-width: 680px; }
.author-social { display: flex; gap: 10px; margin-top: 12px; }

@media(max-width: 768px) {
  .author-card { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .author-avatar { width: 80px; height: 80px; }
  .author-social { justify-content: center; }
}
.author-social a {
  padding: 5px 14px; border-radius: 20px;
  background: var(--bg3); border: 1px solid var(--border);
  font-size: .78rem; font-weight: 600; color: var(--text2);
  transition: all var(--tr);
}
.author-social a:hover { border-color: var(--red); color: var(--red); }

/* =========================================================
   FAQ SECTION
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-m);
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-weight: 600; font-size: .95rem; gap: 16px;
  transition: background var(--tr);
}
.faq-q:hover { background: rgba(255,255,255,.03); }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--red); flex-shrink: 0; transition: transform var(--tr); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; font-size: .9rem; color: var(--text2); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }

/* =========================================================
   FORMS (Login / Register)
   ========================================================= */
.form-page {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
}
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-l);
}
.form-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.form-card .subtitle { color: var(--text2); font-size: .95rem; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.form-group input, .form-group select {
  width: 100%; padding: 13px 16px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-m); color: var(--text);
  font-size: .95rem; transition: border-color var(--tr);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--red); }
.form-group input::placeholder { color: var(--text3); }
.form-divider { text-align: center; color: var(--text3); font-size: .85rem; margin: 20px 0; position: relative; }
.form-divider::before, .form-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }
.form-footer { text-align: center; font-size: .88rem; color: var(--text2); margin-top: 20px; }
.form-footer a { color: var(--red); font-weight: 600; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--red); }
.checkbox-group label { font-size: .85rem; color: var(--text2); font-weight: 400; }

/* =========================================================
   INFO / LEGAL PAGES
   ========================================================= */
.legal-page { max-width: 800px; margin: 0 auto; padding: 60px 24px 80px; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page .last-updated { font-size: .85rem; color: var(--text2); margin-bottom: 40px; }
.legal-page h2 { margin: 36px 0 14px; font-size: 1.3rem; }
.legal-page h3 { margin: 24px 0 10px; font-size: 1.1rem; }
.legal-page p { color: var(--text2); font-size: .92rem; }
.legal-page ul { padding-left: 20px; color: var(--text2); font-size: .92rem; margin: 12px 0; }
.legal-page ul li { margin-bottom: 6px; list-style: disc; }

/* =========================================================
   MISC COMPONENTS
   ========================================================= */
.divider { height: 1px; background: var(--border); margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: .78rem; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  transition: all var(--tr);
}
.tag:hover { border-color: var(--red); color: var(--red); }

.testimonial-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: 28px;
  position: relative;
}
.testimonial-card::before { content: '"'; position: absolute; top: 12px; left: 20px; font-size: 4rem; color: var(--red-glow); line-height: 1; font-weight: 900; }
.testimonial-text { font-size: .95rem; color: var(--text2); line-height: 1.7; margin-bottom: 20px; padding-top: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-dark), var(--red-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: .9rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-loc  { font-size: .78rem; color: var(--text2); }

/* Scroll-in animation */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* App store badges */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: var(--radius-m); padding: 12px 20px;
  transition: all var(--tr); color: var(--text);
}
.store-badge:hover { border-color: var(--red); transform: translateY(-2px); }
.store-badge .store-icon { font-size: 1.8rem; }
.store-badge .store-text small { display: block; font-size: .72rem; color: var(--text2); }
.store-badge .store-text strong { font-size: .95rem; font-weight: 700; }

/* Phone mockup */
.phone-mockup {
  width: 220px; height: 440px;
  background: var(--bg3);
  border: 3px solid var(--border2);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-l), 0 0 60px rgba(232,0,61,.15);
  flex-shrink: 0;
}
.phone-screen { width: 100%; height: 100%; display: block; }

/* Stat number boxes */
.stat-box {
  text-align: center; padding: 28px 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-l);
}
.stat-box .num { font-size: 2.4rem; font-weight: 900; color: var(--white); line-height: 1; }
.stat-box .num span { color: var(--red); }
.stat-box .lbl { font-size: .85rem; color: var(--text2); margin-top: 6px; }

/* Page hero (inner pages) */
.page-hero { padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(232,0,61,.1) 0%, transparent 65%);
}
.page-hero-content { position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text2); margin-bottom: 16px; }
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--text3); }

/* =========================================================
   RESPONSIVE — 1024px
   ========================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 10px; font-size: .85rem; }
}

/* =========================================================
   RESPONSIVE — 768px (Tablet / Mobile)
   ========================================================= */
@media (max-width: 768px) {
  :root { --gap: 16px; }
  .section { padding: 56px 0; }

  /* Navigation */
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .hamburger { display: flex; }
  .nav-inner { justify-content: space-between; }

  /* Header top — show tracker in top bar */
  .header-top { font-size: .75rem; padding: 8px 0; }

  /* Layout */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero-stats { gap: 20px; }
  .hero-stat + .hero-stat { padding-left: 20px; }
  .hero-stat strong { font-size: 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }

  /* Author */
  .author-card { flex-direction: column; align-items: flex-start; }

  /* Form */
  .form-card { padding: 32px 24px; }

  /* Bar chart label */
  .bar-label { min-width: 90px; font-size: .78rem; }

  /* Table */
  .table-wrap { margin-left: -24px; margin-right: -24px; border-radius: 0; border-left: none; border-right: none; }

  /* Donut */
  .donut-wrap { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   RESPONSIVE — 480px (Small Mobile)
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat + .hero-stat { padding-left: 0; border-left: none; padding-top: 16px; border-top: 1px solid var(--border); }
  .vbar-chart { height: 140px; gap: 8px; }
  .phone-mockup { width: 180px; height: 360px; }
  .form-card { padding: 24px 16px; border-radius: var(--radius-l); }
  .bar-label { min-width: 70px; font-size: .75rem; }
  .bar-fill { font-size: .72rem; padding-left: 6px; }
  .bar-track { height: 22px; }
}

/* =========================================================
   AUTH CARD (Login / Register pages)
   ========================================================= */
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-l);
}
@media(max-width:480px) { .auth-card { padding: 24px 18px; border-radius: var(--radius-l); } }

/* =========================================================
   FORM LABELS & INPUTS (standalone classes)
   ========================================================= */
.form-label {
  display: block;
  font-size: .85rem; font-weight: 600;
  color: var(--text2); margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 13px 16px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-m); color: var(--text);
  font-size: .95rem; transition: border-color var(--tr);
}
.form-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,0,61,.12); }
.form-input::placeholder { color: var(--text3); }
select.form-input { cursor: pointer; }

/* =========================================================
   LEGAL PAGE — .legal-updated alias
   ========================================================= */
.legal-updated {
  font-size: .85rem; color: var(--text2); margin-bottom: 40px;
}

/* =========================================================
   SKIP LINK (Accessibility)
   ========================================================= */
.skip-link {
  position: absolute; top: -9999px; left: 16px; z-index: 9999;
  background: var(--red); color: #fff;
  padding: 10px 20px; border-radius: 0 0 var(--radius-m) var(--radius-m);
  font-size: .9rem; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* =========================================================
   FOCUS VISIBLE — global keyboard focus ring
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Remove outline for mouse interactions */
:focus:not(:focus-visible) { outline: none; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {
  .site-header, .mobile-nav, .header-top, .tracker-btn,
  .hamburger, .site-footer, .btn-primary, .promo-banner { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
}

/* =========================================================
   HIGH CONTRAST — improved text contrast
   ========================================================= */
@media (forced-colors: active) {
  .btn-primary, .tracker-btn { border: 2px solid ButtonText; }
  .badge-red, .badge-green, .badge-blue, .badge-gold { border: 1px solid ButtonText; }
}

/* =========================================================
   FAQ BUTTON ROLE — override div to look/behave as button
   ========================================================= */
.faq-q[role="button"] {
  -webkit-appearance: none; appearance: none;
  background: none; border: none; width: 100%;
  text-align: left; font: inherit; cursor: pointer;
  color: inherit;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }

/* Mobile Grid Overrides */
@media (max-width: 768px) {
  .responsive-grid-2 { grid-template-columns: 1fr !important; gap: 24px !important; }
}
@media (max-width: 600px) {
  .responsive-grid-5 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 400px) {
  .responsive-grid-5 { grid-template-columns: 1fr !important; }
}
