/* ============================================================
   TABtouch Australia — Main Stylesheet
   Brand: Purple #5B2D8E | Red #C8003C | Gold #F5B800
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --purple-dark:    #2E0F6B;
  --purple-main:    #5B2D8E;
  --purple-mid:     #7B45B0;
  --purple-light:   #A06DC8;
  --purple-pale:    #F3EEFF;
  --purple-surface: #F8F4FF;
  --red-brand:      #C8003C;
  --red-hover:      #A00030;
  --orange-brand:   #E86520;
  --gold-brand:     #F5B800;
  --gold-light:     #FFD740;
  --green-win:      #00A651;
  --green-light:    #E6F7EE;
  --white:          #FFFFFF;
  --text-dark:      #1A0A35;
  --text-body:      #2E1B50;
  --text-muted:     #7A5A95;
  --border:         #E0D5F0;
  --shadow-sm:      0 2px 8px rgba(91,45,142,.12);
  --shadow-md:      0 6px 24px rgba(91,45,142,.18);
  --shadow-lg:      0 12px 48px rgba(91,45,142,.24);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --transition:     all .25s cubic-bezier(.4,0,.2,1);
  --font-head:      'Montserrat', sans-serif;
  --font-body:      'Open Sans', sans-serif;
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: var(--font-head); }
input, select, textarea { font-family: var(--font-body); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.25; color: var(--text-dark); }
h1 { font-size: clamp(2rem,4.5vw,3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem,3vw,2.4rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem,2vw,1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
.text-purple { color: var(--purple-main); }
.text-gold   { color: var(--gold-brand); }
.text-red    { color: var(--red-brand); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--text-muted); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.section     { padding: 80px 0; }
.section-sm  { padding: 50px 0; }
.section-lg  { padding: 110px 0; }

.grid-2  { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.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-1   { gap: 8px; }
.gap-2   { gap: 16px; }
.gap-3   { gap: 24px; }

/* ─── TRACKER ALERT BAR ──────────────────────────────────── */
.tracker-bar {
  background: linear-gradient(90deg, var(--gold-brand) 0%, var(--orange-brand) 100%);
  padding: 10px 20px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--white);
  position: relative;
  z-index: 1001;
}
.tracker-bar a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 800;
  background: rgba(255,255,255,.2);
  padding: 3px 12px;
  border-radius: 20px;
  margin-left: 10px;
  transition: var(--transition);
}
.tracker-bar a:hover { background: rgba(255,255,255,.35); }

/* ─── HEADER / NAVIGATION ────────────────────────────────── */
.site-header {
  background: var(--purple-dark);
  position: sticky;
  top: 40px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  border-bottom: 2px solid var(--gold-brand);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
  height: 68px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo svg { width: 140px; height: 44px; }
.nav-primary { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,.85);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-brand);
  background: rgba(255,255,255,.08);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 13px; right: 13px;
  height: 2px;
  background: var(--gold-brand);
  border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-login {
  border: 2px solid rgba(255,255,255,.4);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-login:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-register {
  background: linear-gradient(135deg, var(--red-brand) 0%, #E8003A 100%);
  color: var(--white);
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(200,0,60,.4);
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(200,0,60,.5); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); display: block; }
.mobile-tracker-link { display: none; }

/* ─── MOBILE NAV DRAWER ──────────────────────────────────── */
.mobile-nav {
  display: none;
  background: var(--purple-dark);
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open { transform: translateX(0); display: block; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav-close { color: var(--white); font-size: 2rem; line-height: 1; }
.mobile-nav-tracker {
  background: linear-gradient(135deg, var(--gold-brand), var(--orange-brand));
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
  color: rgba(255,255,255,.85);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  display: block;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.mobile-nav-link:hover { background: rgba(255,255,255,.08); border-left-color: var(--gold-brand); color: var(--gold-brand); }
.mobile-nav-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-brand) 0%, #E8003A 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(200,0,60,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,0,60,.5); }
.btn-secondary {
  background: linear-gradient(135deg, var(--purple-main) 0%, var(--purple-mid) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(91,45,142,.3);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(91,45,142,.45); }
.btn-outline {
  border: 2px solid var(--purple-main);
  color: var(--purple-main);
  background: transparent;
}
.btn-outline:hover { background: var(--purple-main); color: var(--white); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-brand) 0%, var(--orange-brand) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(245,184,0,.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,184,0,.5); }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.78rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── SECTION HEADERS ────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.section-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple-main), var(--purple-mid));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.title-line {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}
.title-line::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--gold-brand), var(--orange-brand));
  border-radius: 2px;
}

/* ─── HERO COMPONENTS ────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-main) 60%, var(--purple-mid) 100%);
  color: var(--white);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; padding: 90px 0 80px; }

/* ─── STAT COUNTERS ──────────────────────────────────────── */
.stats-strip {
  display: flex;
  gap: 0;
  background: var(--purple-dark);
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.6rem,3vw,2.6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-brand), var(--orange-brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat-label { color: rgba(255,255,255,.65); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.card-img img, .card-img svg { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.card-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.card-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 14px; margin-bottom: 10px; }
.card-tag {
  display: inline-block;
  background: var(--purple-pale);
  color: var(--purple-main);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ─── TABLES ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 0.88rem; }
.data-table thead { background: linear-gradient(135deg, var(--purple-dark), var(--purple-main)); }
.data-table thead th {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 15px 18px;
  text-align: left;
  white-space: nowrap;
}
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--purple-surface); }
.data-table tbody tr:nth-child(even) { background: var(--purple-surface); }
.data-table tbody tr:nth-child(even):hover { background: var(--purple-pale); }
.data-table td { padding: 13px 18px; color: var(--text-body); vertical-align: middle; }
.data-table td:first-child { font-weight: 600; color: var(--text-dark); }
.td-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.badge-green { background: var(--green-light); color: var(--green-win); }
.badge-gold { background: #FFF8E1; color: #E65C00; }
.badge-purple { background: var(--purple-pale); color: var(--purple-main); }
.badge-red { background: #FFF0F3; color: var(--red-brand); }

/* ─── CHARTS — CSS BAR CHART (vertical) ─────────────────── */
.chart-container { position: relative; }
.bar-chart-wrap { padding: 20px 0 10px; }
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 220px;
  padding: 0 10px;
  border-bottom: 2px solid var(--border);
  border-left: 2px solid var(--border);
}
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 40px; }
.bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height .8s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.bar::after {
  content: attr(data-val);
  position: absolute;
  top: -24px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-dark);
  white-space: nowrap;
}
.bar:hover { filter: brightness(1.1); }
.bar-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60px; }
.bar-purple    { background: linear-gradient(180deg, var(--purple-mid) 0%, var(--purple-dark) 100%); }
.bar-gold      { background: linear-gradient(180deg, var(--gold-brand) 0%, var(--orange-brand) 100%); }
.bar-red       { background: linear-gradient(180deg, #FF4D6D 0%, var(--red-brand) 100%); }
.bar-green     { background: linear-gradient(180deg, #4DD882 0%, var(--green-win) 100%); }
.bar-mixed-1   { background: linear-gradient(180deg, var(--purple-light) 0%, var(--purple-main) 100%); }

/* ─── CHARTS — CSS HORIZONTAL BAR ───────────────────────── */
.hbar-chart { display: flex; flex-direction: column; gap: 13px; }
.hbar-item { display: flex; align-items: center; gap: 14px; }
.hbar-label { font-size: 0.83rem; font-weight: 600; color: var(--text-dark); min-width: 110px; text-align: right; }
.hbar-track { flex: 1; height: 22px; background: var(--purple-surface); border-radius: 11px; overflow: hidden; }
.hbar-fill {
  height: 100%;
  border-radius: 11px;
  position: relative;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.hbar-fill::after {
  content: attr(data-val);
  position: absolute;
  right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.73rem;
  color: var(--white);
}
.hbar-purple { background: linear-gradient(90deg, var(--purple-main), var(--purple-mid)); }
.hbar-gold   { background: linear-gradient(90deg, var(--orange-brand), var(--gold-brand)); }
.hbar-red    { background: linear-gradient(90deg, var(--red-brand), #FF4D6D); }
.hbar-green  { background: linear-gradient(90deg, var(--green-win), #4DD882); }

/* ─── CHARTS — DONUT (CSS conic-gradient) ───────────────── */
.donut-wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.donut-chart {
  width: 200px; height: 200px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: transform .3s;
}
.donut-chart:hover { transform: scale(1.04); }
.donut-hole {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  background: var(--white);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,.06);
}
.donut-hole-num { font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: var(--text-dark); line-height: 1; }
.donut-hole-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 160px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.legend-dot { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }

/* ─── CHARTS — PROGRESS RING ─────────────────────────────── */
.rings-wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.ring-item { text-align: center; }
.ring-svg { width: 90px; height: 90px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray 1.2s cubic-bezier(.4,0,.2,1); }
.ring-text { font-family: var(--font-head); font-weight: 800; font-size: 1rem; fill: var(--text-dark); dominant-baseline: middle; text-anchor: middle; transform: rotate(90deg) translateX(0) translateY(-45px); }
.ring-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-top: 8px; }

/* ─── CHARTS — LINE/AREA (SVG inline) ───────────────────── */
.area-chart-svg { width: 100%; height: 220px; overflow: visible; }

/* ─── FEATURE STRIP ──────────────────────────────────────── */
.feature-strip { display: flex; align-items: center; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--border); }
.feature-strip:last-child { border-bottom: none; }
.feature-strip.reverse { flex-direction: row-reverse; }
.feature-strip-visual { flex: 0 0 45%; border-radius: var(--radius-lg); overflow: hidden; }
.feature-strip-body { flex: 1; }
.feature-strip-body h3 { margin-bottom: 14px; }
.feature-strip-body p { margin-bottom: 16px; font-size: 0.95rem; }

/* ─── ICON BOXES ─────────────────────────────────────────── */
.icon-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.icon-box:hover { border-color: var(--purple-light); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.icon-box-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  font-size: 1.8rem;
}
.icon-bg-purple { background: var(--purple-pale); }
.icon-bg-gold   { background: #FFF8E1; }
.icon-bg-red    { background: #FFF0F3; }
.icon-bg-green  { background: var(--green-light); }

/* ─── PROMO BANNER ───────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-main) 50%, var(--red-brand) 100%);
  border-radius: var(--radius-lg);
  padding: 50px 50px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.promo-banner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
}

/* ─── TESTIMONIAL / REVIEW CARDS ────────────────────────── */
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 14px; left: 22px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--purple-pale);
  line-height: 1;
}
.review-stars { color: var(--gold-brand); font-size: 1.1rem; margin-bottom: 12px; }
.review-text  { font-style: italic; color: var(--text-body); margin-bottom: 16px; padding-top: 6px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.review-name { font-weight: 700; font-size: 0.88rem; }
.review-loc  { font-size: 0.78rem; color: var(--text-muted); }

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 14px 0;
}
.breadcrumb a { color: var(--purple-main); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ─── BADGE PILLS ────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 20px; font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pill-live { background: var(--red-brand); color: var(--white); animation: pulse-red 2s infinite; }
.pill-new  { background: var(--green-light); color: var(--green-win); }
.pill-hot  { background: #FFF0E5; color: var(--orange-brand); }
@keyframes pulse-red {
  0%,100% { box-shadow: 0 0 0 0 rgba(200,0,60,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(200,0,60,0); }
}

/* ─── ODDS TAG ───────────────────────────────────────────── */
.odds-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-brand), var(--orange-brand));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  min-width: 54px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.odds-tag:hover { transform: scale(1.08); box-shadow: 0 3px 10px rgba(245,184,0,.4); }
.odds-tag.selected { background: var(--green-win); box-shadow: 0 3px 10px rgba(0,166,81,.4); }

/* ─── SEO TEXT SECTION ───────────────────────────────────── */
.seo-content {
  background: var(--purple-surface);
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.seo-content h2 { color: var(--text-dark); font-size: 1.5rem; margin: 0 0 14px; font-weight: 800; }
.seo-content h3 { color: var(--purple-main); font-size: 1.1rem; margin: 24px 0 10px; font-weight: 700; }
.seo-content p  { font-size: 0.93rem; color: var(--text-body); line-height: 1.8; margin-bottom: 14px; }
.seo-content a  { color: var(--purple-main); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.seo-content a:hover { color: var(--red-brand); }
.seo-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }

/* ─── SIDEBAR WIDGET ─────────────────────────────────────── */
.widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.widget-title { font-size: 0.88rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--purple-dark); border-bottom: 2px solid var(--gold-brand); padding-bottom: 10px; margin-bottom: 18px; }

/* ─── FORM STYLES ────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; color: var(--text-dark); }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--purple-main); box-shadow: 0 0 0 3px rgba(91,45,142,.15); }
.form-control::placeholder { color: var(--text-muted); font-size: 0.88rem; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 0.78rem; color: var(--red-brand); margin-top: 5px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 44px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.1rem; }
.form-divider { text-align: center; position: relative; margin: 28px 0; color: var(--text-muted); font-size: 0.85rem; }
.form-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: calc(50% - 20px); height: 1px; background: var(--border); }
.form-divider::after  { content: ''; position: absolute; right: 0; top: 50%; width: calc(50% - 20px); height: 1px; background: var(--border); }
.checkbox-wrap { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-wrap input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--purple-main); flex-shrink: 0; margin-top: 2px; }
.checkbox-wrap label { font-size: 0.85rem; line-height: 1.5; color: var(--text-body); }

/* ─── ACCORDION ──────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.acc-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.acc-header:hover { background: var(--purple-surface); }
.acc-header.active { background: var(--purple-main); color: var(--white); }
.acc-icon { font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.acc-header.active .acc-icon { transform: rotate(45deg); }
.acc-body { display: none; padding: 20px 22px; background: var(--purple-surface); font-size: 0.9rem; color: var(--text-body); line-height: 1.7; }
.acc-body.open { display: block; }

/* ─── STEP GUIDE ─────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step-item { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--purple-main), var(--purple-mid));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(91,45,142,.3);
}
.step-body h4 { margin-bottom: 8px; color: var(--text-dark); }
.step-body p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ─── TIMELINE ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 30px 30px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -8px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--purple-main);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--purple-main);
}
.tl-date { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; color: var(--gold-brand); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.tl-title { font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.tl-text { font-size: 0.88rem; color: var(--text-muted); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,.7);
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin: 16px 0 20px; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover { background: var(--purple-main); color: var(--white); transform: translateY(-2px); }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(245,184,0,.3);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.86rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer-links a:hover { color: var(--gold-brand); padding-left: 4px; }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-legal a:hover { color: var(--gold-brand); }
.footer-rg {
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  margin: 30px 0;
  font-size: 0.8rem;
  line-height: 1.6;
  border-left: 3px solid var(--gold-brand);
  color: rgba(255,255,255,.55);
}
.footer-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--red-brand);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.78rem;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 10px;
}

/* ─── BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--purple-main);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 500;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--purple-dark); transform: translateY(-3px); }

/* ─── UTILITY ────────────────────────────────────────────── */
.bg-dark    { background: var(--purple-dark); color: var(--white); }
.bg-purple  { background: var(--purple-main); color: var(--white); }
.bg-surface { background: var(--purple-surface); }
.bg-pale    { background: var(--purple-pale); }
.rounded    { border-radius: var(--radius-md); }
.shadow     { box-shadow: var(--shadow-md); }
.text-center{ text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 50px; }
.p-2  { padding: 16px; } .p-3 { padding: 24px; } .p-4 { padding: 32px; }
.hide-mobile { } /* shown by default */
.show-mobile { display: none; } /* hidden by default */

/* ─── RACE CARD ──────────────────────────────────────────── */
.race-card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; }
.race-card-header { background: linear-gradient(135deg, var(--purple-dark), var(--purple-main)); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.race-card-header h4 { color: var(--white); font-size: 0.9rem; margin: 0; }
.race-card-body { padding: 16px 18px; }
.race-runner { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.race-runner:last-child { border-bottom: none; }
.runner-num { width: 26px; height: 26px; background: var(--purple-pale); color: var(--purple-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 0.78rem; flex-shrink: 0; }
.runner-name { flex: 1; font-weight: 600; font-size: 0.88rem; }
.runner-jockey { font-size: 0.78rem; color: var(--text-muted); }

/* ─── APP MOCKUP ─────────────────────────────────────────── */
.phone-mockup {
  width: 260px;
  background: var(--text-dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.1);
  margin: 0 auto;
}
.phone-screen { border-radius: 28px; overflow: hidden; background: var(--purple-surface); }

/* ─── LIVE INDICATOR ─────────────────────────────────────── */
.live-dot { display: inline-block; width: 8px; height: 8px; background: var(--red-brand); border-radius: 50%; animation: pulse-live 1.4s infinite; margin-right: 5px; }
@keyframes pulse-live {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}

/* ─── PAGE HERO VARIANTS ─────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--purple-dark) 0%, #3B1080 50%, var(--purple-main) 100%); padding: 70px 0; color: var(--white); }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p  { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 600px; margin-bottom: 28px; }
.hero-badge { display: inline-block; background: rgba(245,184,0,.2); border: 1px solid var(--gold-brand); color: var(--gold-brand); padding: 5px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px; }

/* ─── GAUGE CHART ────────────────────────────────────────── */
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gauge-svg { width: 180px; height: 110px; overflow: visible; }

/* ─── MARKET DEPTH ───────────────────────────────────────── */
.depth-chart { display: flex; gap: 4px; align-items: flex-end; height: 100px; }
.depth-col { flex: 1; border-radius: 4px 4px 0 0; transition: height .8s ease; }
.depth-buy  { background: linear-gradient(180deg, rgba(0,166,81,.6), rgba(0,166,81,.2)); }
.depth-sell { background: linear-gradient(180deg, rgba(200,0,60,.6), rgba(200,0,60,.2)); }

/* ─── HIGHLIGHT BOX ──────────────────────────────────────── */
.highlight-box {
  border-left: 4px solid var(--gold-brand);
  background: var(--purple-surface);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}
.highlight-box.red   { border-color: var(--red-brand); background: #FFF0F3; }
.highlight-box.green { border-color: var(--green-win); background: var(--green-light); }

/* ─── COMPARISON TABLE ───────────────────────────────────── */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; min-width: 520px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.compare-table th { background: var(--purple-main); color: var(--white); padding: 14px 20px; font-family: var(--font-head); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }
.compare-table th:first-child { background: var(--purple-dark); text-align: left; }
.compare-table tr:nth-child(even) { background: var(--purple-surface); }
.compare-table td { padding: 12px 20px; text-align: center; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--text-dark); }
.check-yes { color: var(--green-win); font-size: 1.1rem; }
.check-no  { color: var(--red-brand); font-size: 1.1rem; }

/* ─── SKELETON LOADER (for future JS) ───────────────────── */
@keyframes shimmer { from { background-position: -500px 0; } to { background-position: 500px 0; } }
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 500px 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }

/* ─── SCROLL ANIMATE ─────────────────────────────────────── */
.animate-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.animate-up.visible { opacity: 1; transform: translateY(0); }

/* ====================================================
   RESPONSIVE — 1024px
   ==================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .seo-cols { grid-template-columns: 1fr; }
  .feature-strip { gap: 28px; }
  .feature-strip-visual { flex: 0 0 42%; }
}

/* ====================================================
   RESPONSIVE — 768px (Tablet)
   ==================================================== */
@media (max-width: 768px) {
  .tracker-bar { font-size: 0.78rem; }
  .site-header { top: 36px; }
  .nav-primary { display: none; }
  .nav-actions .btn-login,
  .nav-actions .btn-register { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .mobile-tracker-link { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .section { padding: 55px 0; }
  .section-lg { padding: 70px 0; }
  .feature-strip, .feature-strip.reverse { flex-direction: column; }
  .feature-strip-visual { flex: none; width: 100%; }
  .stats-strip { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .donut-wrap { justify-content: center; }
  .donut-chart { width: 150px; height: 150px; }
  .donut-hole { width: 100px; height: 100px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .promo-banner { padding: 35px 28px; }
  .bar-chart { height: 150px; }
  .seo-cols { grid-template-columns: 1fr; }
  .page-hero { padding: 50px 0; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .back-to-top { right: 16px; bottom: 16px; }
}

/* ====================================================
   RESPONSIVE — 480px (Mobile)
   ==================================================== */
@media (max-width: 480px) {
  .tracker-bar { font-size: 0.72rem; padding: 8px 12px; }
  .site-header { top: 32px; }
  .nav-wrap { padding: 0 14px; height: 60px; }
  .site-logo svg { width: 110px; height: 36px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-item { flex: 0 0 100%; }
  .bar-chart { height: 120px; gap: 6px; }
  .hbar-label { min-width: 80px; font-size: 0.75rem; }
  .donut-chart { width: 130px; height: 130px; }
  .donut-hole { width: 85px; height: 85px; }
  .donut-hole-num { font-size: 1.1rem; }
  .section { padding: 40px 0; }
  .btn-lg { padding: 13px 24px; font-size: 0.9rem; }
  .data-table { min-width: 520px; }
  .promo-banner { padding: 26px 20px; }
}
