/* ============================================================
   FeltIQ Dashboard — style.css
   Black Bullets Poker Club © 2026
   Design: Deep Anthracite + Champagne Gold + Glassmorphism
   ============================================================ */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Anton&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700&display=swap');

/* === CSS VARIABLES (Design Tokens) === */
:root {
  /* Gold palette */
  --gold-primary:       #C4A962;
  --gold-light:         #DDD0A0;
  --gold-warm:          #B8943E;
  --gold-champagne:     #D4C5A0;
  --gold-subtle:        rgba(196, 169, 98, 0.10);
  --gold-glow:          rgba(196, 169, 98, 0.06);
  --gold-text:          #CCBA78;
  --gold-border:        rgba(196, 169, 98, 0.18);
  --gold-border-hover:  rgba(196, 169, 98, 0.45);
  --gold-shimmer:       rgba(221, 208, 160, 0.15);

  /* Surface / Background */
  --surface-base:           #111114;
  --surface-raised:         #18191E;
  --surface-card:           rgba(24, 25, 30, 0.55);
  --surface-glass:          rgba(28, 30, 38, 0.40);
  --surface-glass-border:   rgba(255, 255, 255, 0.05);
  --surface-glass-highlight:rgba(255, 255, 255, 0.02);
  --surface-hover:          rgba(196, 169, 98, 0.03);

  /* Text */
  --text-primary:   #EDEAE4;
  --text-secondary:  #87898F;
  --text-muted:      #55575E;
  --text-gold:       #CCBA78;

  /* Accent colors */
  --color-green:    #4ADE80;
  --color-red:      #EF6B5E;
  --color-purple:   #7C8CF5;
  --color-orange:   #D07040;

  /* Timing */
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);

  /* Backward-compatible aliases (used in dashboard.php inline styles) */
  --accent:          #C4A962;
  --bg-dark:         #111114;
  --bg-card:         #18191E;
  --border:          rgba(255, 255, 255, 0.05);
  --anthracite:      #18191E;
  --font-display: 'Anton', Impact, sans-serif;
  --font-body:       'Satoshi', 'DM Sans', -apple-system, sans-serif;
  --glass-blur:      24px;
  --glass-radius:    16px;
  --card-radius:     12px;
  --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
  --gold:            #C4A962;
  --positive:        #4ADE80;
  --negative:        #EF6B5E;
  --info:            #7C8CF5;
}


/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--surface-base);
  font-family: 'Satoshi', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}


/* === ATMOSPHERIC LAYERS === */

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

/* Vignette effect — spotlight op het midden */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 65% at 50% 45%, transparent 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Ambient gold glow — top */
.ambient-glow-top {
  position: fixed;
  top: -300px;
  left: 25%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196,169,98,0.025) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient gold glow — bottom right */
.ambient-glow-bottom {
  position: fixed;
  bottom: -400px;
  right: 15%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(196,169,98,0.015) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}


/* === LAYOUT === */
.dashboard-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s var(--ease-out-expo) both;
}

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


/* ============================================================
   GLASS CARD — basis component
   Gebruikt padding-trick voor gradient border
   ============================================================ */
.glass-card {
  position: relative;
  border-radius: 16px;
  padding: 1px; /* = border dikte */
  background: linear-gradient(135deg,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.02) 50%,
    transparent 100%
  );
  transition: all 0.5s var(--ease-out-expo);
}

.glass-card-inner {
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: background 0.5s var(--ease-out-expo);
}

/* Top edge highlight lijn */
.glass-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

/* Hover state */
.glass-card:hover .glass-card-inner {
  background: rgba(28, 30, 38, 0.50);
}

.glass-card:hover .glass-card-inner::before {
  opacity: 1;
}

.glass-card:hover {
  background: linear-gradient(135deg,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
}

/* Gold variant */
.glass-card--gold {
  background: linear-gradient(135deg,
    var(--gold-border) 0%,
    rgba(196,169,98,0.06) 50%,
    transparent 100%
  );
}

.glass-card--gold .glass-card-inner::before {
  background: linear-gradient(90deg, transparent, rgba(196,169,98,0.2), transparent);
}

.glass-card--gold:hover {
  background: linear-gradient(135deg,
    var(--gold-border-hover) 0%,
    rgba(196,169,98,0.12) 50%,
    rgba(196,169,98,0.03) 100%
  );
}

.glass-card--gold:hover .glass-card-inner {
  background: rgba(196, 169, 98, 0.04);
}

/* Gold inner background gradient (voor title card etc.) */
.glass-card-inner--gold-gradient {
  background: linear-gradient(135deg, rgba(196,169,98,0.05) 0%, transparent 60%);
}

.glass-card-inner--gold-gradient-subtle {
  background: linear-gradient(135deg, rgba(196,169,98,0.03) 0%, transparent 50%);
}


/* ============================================================
   HEADER
   ============================================================ */
.header, header {
  text-align: center;
  margin-bottom: 32px;
}

.header__logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-warm), var(--gold-primary), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow:
    0 8px 32px rgba(196,169,98,0.18),
    0 2px 8px rgba(0,0,0,0.3);
}

.header__name {
  font-size: 30px;
  font-weight: 700;
  font-family: 'Anton', Impact, sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header__meta-separator {
  font-size: 12px;
  color: var(--text-muted);
}

.header__meta-text {
  font-size: 13px;
  color: var(--text-secondary);
}


/* === TAGS / LABELS === */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.tag--gold {
  color: var(--gold-text);
  background: linear-gradient(135deg, rgba(196,169,98,0.12), rgba(196,169,98,0.05));
  border: 1px solid var(--gold-border);
}

.tag--green {
  color: var(--color-green);
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.12);
}

.tag--purple {
  color: var(--color-purple);
  background: rgba(124,140,245,0.06);
  border: 1px solid rgba(124,140,245,0.12);
}

.tag--improving {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-green);
  background: rgba(74,222,128,0.06);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(74,222,128,0.12);
  letter-spacing: 0.05em;
}

.playstyle--aggressive {
  color: var(--color-orange);
}


/* ============================================================
   TITLE CARD (Final Table Hunter etc.)
   ============================================================ */
.title-card {
  padding: 30px 32px;
  text-align: center;
  margin-bottom: 30px;
}

.title-card__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-text);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.5;
}

.title-card__title {
  font-size: 28px;
  font-weight: 800;
  font-family: 'Anton', Impact, sans-serif;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-champagne));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.06em;
  filter: drop-shadow(0 0 20px rgba(196,169,98,0.1));
}

.title-card__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.title-card__status {
  margin-top: 12px;
}


/* ============================================================
   SHIMMER BUTTON
   ============================================================ */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Satoshi', 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  border: none;
  outline: none;
}

.btn--gold {
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold-text);
}

.btn--neutral {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--surface-glass-border);
  color: var(--text-secondary);
}

/* Shimmer sweep element — voeg toe als child <span class="btn__shimmer"> */
.btn__shimmer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  left: -100%;
  background: linear-gradient(90deg, transparent, var(--gold-shimmer), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.3s ease;
}

.btn:hover .btn__shimmer {
  left: 200%;
  transition: left 0.6s ease;
}

.btn__text {
  position: relative;
  z-index: 1;
}

.btn--gold:hover {
  border-color: var(--gold-border-hover);
  background: rgba(196,169,98,0.14);
}

.btn--neutral:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
}


/* ============================================================
   TAB NAVIGATION
   ============================================================ */
.tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--surface-glass-border);
  margin-bottom: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar */
.tabs::-webkit-scrollbar {
  display: none;
}

.tabs {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Satoshi', 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  outline: none;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.tab--active {
  background: var(--gold-subtle);
  border-color: var(--gold-border);
  color: var(--gold-text);
}

.tab__icon {
  font-size: 13px;
}


/* ============================================================
   STAT CARDS ROW
   ============================================================ */
.stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
}

.stat-card {
  flex: 1;
}

.stat-card__content {
  padding: 20px 14px;
  text-align: center;
}

.stat-card__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-card__label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}


/* ============================================================
   FIQ SCORE SECTION
   ============================================================ */
.fiq-section {
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.fiq-section__left {
  flex: 1;
}

.fiq-section__right {
  margin-left: 36px;
}

.fiq-score__value {
  font-size: 46px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(196,169,98,0.08);
}

.fiq-score__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.fiq-score__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

/* FIQ Gauge — circulaire SVG */
.fiq-gauge {
  position: relative;
  width: 150px;
  height: 150px;
}

.fiq-gauge svg {
  transform: rotate(-90deg);
}

.fiq-gauge__track {
  fill: none;
  stroke: rgba(255,255,255,0.03);
  stroke-width: 5;
}

.fiq-gauge__fill {
  fill: none;
  stroke: url(#gaugeGold);
  stroke-width: 5;
  stroke-linecap: round;
  filter: url(#gaugeGlow);
  transition: stroke-dashoffset 1.8s var(--ease-out-expo);
}

.fiq-gauge__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fiq-gauge__number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Satoshi', 'DM Sans', sans-serif;
  letter-spacing: -0.03em;
  text-shadow: 0 0 30px rgba(196,169,98,0.12);
}

.fiq-gauge__label {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.7;
}


/* ============================================================
   PROGRESS BARS (Metallic Gold style)
   ============================================================ */
.progress-item {
  margin-bottom: 18px;
}

.progress-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-item__label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-item__icon {
  font-size: 12px;
  opacity: 0.5;
}

.progress-item__text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-item__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  position: relative;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 3px;
  position: relative;
  transition: width 1.4s var(--ease-out-expo);
  width: 0; /* set via inline style or JS */
}

/* Metallic highlight bovenop de bar */
.progress-bar__fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 3px 3px 0 0;
}

/* Glow onder de bar */
.progress-bar__glow {
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 8px;
  border-radius: 4px;
  filter: blur(8px);
  opacity: 0.15;
  transition: width 1.4s var(--ease-out-expo);
  width: 0; /* set gelijk aan fill */
}

/* Progress bar kleuren */
.progress-bar__fill--green  { background: linear-gradient(90deg, #4ADE80CC, #4ADE80); }
.progress-bar__glow--green  { background: #4ADE80; }

.progress-bar__fill--gold   { background: linear-gradient(90deg, #C4A962CC, #C4A962); }
.progress-bar__glow--gold   { background: #C4A962; }

.progress-bar__fill--red    { background: linear-gradient(90deg, #EF6B5ECC, #EF6B5E); }
.progress-bar__glow--red    { background: #EF6B5E; }

.progress-bar__fill--purple { background: linear-gradient(90deg, #7C8CF5CC, #7C8CF5); }
.progress-bar__glow--purple { background: #7C8CF5; }


/* ============================================================
   BEST RUN CARD
   ============================================================ */
.best-run {
  padding: 22px 32px;
  text-align: center;
  margin-bottom: 26px;
}

.best-run__label {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-text);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.5;
}

.best-run__title {
  font-size: 21px;
  font-weight: 700;
  font-family: 'Anton', Impact, sans-serif;
  color: var(--text-primary);
}

.best-run__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 5px;
}

.best-run__tag {
  margin-top: 10px;
}


/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.section-title__icon {
  color: var(--gold-text);
  font-size: 16px;
}


/* ============================================================
   MILESTONES
   ============================================================ */
.milestones-row {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
}

.milestone {
  flex: 1;
}

.milestone__content {
  padding: 20px;
}

.milestone__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.milestone__icon {
  font-size: 18px;
}

.milestone__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.milestone__footer {
  display: flex;
  justify-content: space-between;
}

.milestone__count {
  font-size: 12px;
  color: var(--text-muted);
}

.milestone__pct {
  font-size: 12px;
  font-weight: 700;
}

/* Milestone progress — hergebruik progress-bar met 4px height */
.milestone .progress-bar {
  height: 4px;
  margin-bottom: 10px;
}


/* ============================================================
   BADGES
   ============================================================ */
.badges-row {
  padding: 24px 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.4s ease;
}

.badge--locked {
  opacity: 0.25;
  cursor: not-allowed;
}

.badge__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s ease;
}

.badge--earned .badge__icon {
  background: linear-gradient(135deg, rgba(196,169,98,0.12), rgba(196,169,98,0.04));
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 20px rgba(196,169,98,0.08);
}

.badge--locked .badge__icon {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

.badge__name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  max-width: 72px;
  line-height: 1.3;
}

.badge--earned .badge__name {
  color: var(--text-secondary);
}

.badge--locked .badge__name {
  color: var(--text-muted);
}


/* ============================================================
   RESULTS TABLE
   ============================================================ */
.results-table {
  overflow: hidden;
  border-radius: 15px;
}

.results-table__header {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 0.9fr 0.8fr 0.6fr 0.6fr 1.1fr;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.results-table__header span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.results-table__row {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 0.9fr 0.8fr 0.6fr 0.6fr 1.1fr;
  padding: 13px 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.025);
  transition: background 0.25s ease;
  cursor: default;
}

.results-table__row:last-child {
  border-bottom: none;
}

.results-table__row:hover {
  background: var(--surface-hover);
}

.results-table__cell {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'Satoshi', 'DM Sans', sans-serif;
}

.results-table__cell--finish {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 700;
}

.results-table__cell--top-green {
  color: var(--color-green);
  font-weight: 600;
}

.results-table__cell--top-gold {
  color: var(--gold-text);
  font-weight: 600;
}

.results-table__cell--points {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.results-table__cell--fiq {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Result tags in tabel */
.result-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.result-tag--cashed {
  background: rgba(74,222,128,0.07);
  color: var(--color-green);
  border: 1px solid rgba(74,222,128,0.13);
}

.result-tag--grind {
  background: rgba(196,169,98,0.07);
  color: var(--gold-primary);
  border: 1px solid rgba(196,169,98,0.13);
}

.result-tag--aggressive {
  background: rgba(124,140,245,0.07);
  color: var(--color-purple);
  border: 1px solid rgba(124,140,245,0.13);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer__text {
  font-size: 12px;
  color: var(--text-muted);
}

.footer__sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.4;
}


/* ============================================================
   SVG DEFINITIONS (voor in je HTML)
   ============================================================
   Plak dit in je HTML:

   <svg width="0" height="0" style="position:absolute">
     <defs>
       <linearGradient id="gaugeGold" x1="0%" y1="0%" x2="100%" y2="100%">
         <stop offset="0%" stop-color="#B8943E"/>
         <stop offset="50%" stop-color="#C4A962"/>
         <stop offset="100%" stop-color="#DDD0A0"/>
       </linearGradient>
       <filter id="gaugeGlow">
         <feGaussianBlur stdDeviation="3" result="blur"/>
         <feMerge>
           <feMergeNode in="blur"/>
           <feMergeNode in="SourceGraphic"/>
         </feMerge>
       </filter>
     </defs>
   </svg>
   ============================================================ */


/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-gold       { color: var(--gold-text); }
.text-primary    { color: var(--text-primary); }
.text-secondary  { color: var(--text-secondary); }
.text-muted      { color: var(--text-muted); }
.text-green      { color: var(--color-green); }
.text-red        { color: var(--color-red); }
.text-purple     { color: var(--color-purple); }
.text-orange     { color: var(--color-orange); }

.font-serif      { font-family: 'Anton', Impact, sans-serif; }
.font-sans       { font-family: 'Satoshi', 'DM Sans', sans-serif; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.tabular-nums    { font-variant-numeric: tabular-nums; }

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4           { gap: 4px; }
.gap-6           { gap: 6px; }
.gap-8           { gap: 8px; }
.gap-10          { gap: 10px; }
.gap-12          { gap: 12px; }
.gap-24          { gap: 24px; }
.text-center     { text-align: center; }
.w-full          { width: 100%; }
.flex-1          { flex: 1; }
.uppercase       { text-transform: uppercase; }

.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-26 { margin-bottom: 26px; }
.mb-30 { margin-bottom: 30px; }
.mb-32 { margin-bottom: 32px; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 24px 16px 60px;
  }

  .stats-row {
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .fiq-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .fiq-section__right {
    margin-left: 0;
    margin-top: 24px;
    align-self: center;
  }

  .milestones-row {
    flex-direction: column;
  }

  .results-table__header,
  .results-table__row {
    grid-template-columns: 1fr 0.5fr 0.7fr 0.7fr 1fr;
    font-size: 12px;
  }

  /* Hide FIQ en Punten columns on mobile */
  .results-table__header span:nth-child(5),
  .results-table__header span:nth-child(6),
  .results-table__row > *:nth-child(5),
  .results-table__row > *:nth-child(6) {
    display: none;
  }

  .header__name {
    font-size: 24px;
  }

  .title-card__title {
    font-size: 22px;
  }

  .fiq-score__value {
    font-size: 36px;
  }

  .badges-row {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .stats-row {
    gap: 8px;
  }

  .stat-card {
    flex: 1 1 calc(33% - 6px);
  }

  .stat-card__value {
    font-size: 20px;
  }

  .stat-card__label {
    font-size: 8px;
  }

  .btn-group {
    flex-wrap: wrap;
  }
}


/* ============================================================
   BACKWARD COMPATIBILITY
   Maps legacy class names from dashboard.php to the new design
   ============================================================ */

/* --- Layout aliases --- */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s var(--ease-out-expo) both;
}

.fade-in { /* handled by container animation */ }

/* --- Atmospheric aliases (dashboard uses atmo-, ref uses ambient-) --- */
.atmo-glow-top {
  position: fixed;
  top: -300px;
  left: 25%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196,169,98,0.025) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.atmo-glow-bottom {
  position: fixed;
  bottom: -400px;
  right: 15%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(196,169,98,0.015) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}


/* --- Sections --- */
.section {
  margin-bottom: 26px;
}

.section h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}


/* --- Tab system (dashboard uses bb-tabs / bb-tab) --- */
.bb-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--surface-glass-border);
  margin-bottom: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.bb-tabs::-webkit-scrollbar { display: none; }

.bb-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Satoshi', 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  outline: none;
}

.bb-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
}

.bb-tab.active {
  background: var(--gold-subtle);
  border-color: var(--gold-border);
  color: var(--gold-text);
}

/* Tab panes: visibility controlled entirely by JS inline styles */
/* .bb-tab-pane — no CSS display rules here */


/* --- Stat cards (legacy names) --- */
.stats-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
}

.stat-box {
  flex: 1;
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-glass-border);
  border-radius: 14px;
  padding: 24px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  opacity: 0.6;
}

.stat-box:hover {
  background: rgba(28, 30, 38, 0.50);
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}

.stat-sub {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 6px;
}

/* Soft metric variants (at-a-glance cards) */
.soft-metric-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.soft-metric-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 12px;
}


/* --- Progress bars (legacy) --- */
.progress-container {
  margin-bottom: 18px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.progress-bar-wrapper {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  position: relative;
  transition: width 1.4s var(--ease-out-expo);
}

/* Metallic highlight */
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 3px 3px 0 0;
}

.progress-comparison {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}


/* --- Buttons (legacy) --- */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Satoshi', 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  border: none;
  outline: none;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  border-color: var(--gold-border-hover);
  background: rgba(196,169,98,0.14);
}

.btn-secondary,
.btn.btn-secondary {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--surface-glass-border);
  color: var(--text-secondary);
}

.btn-secondary:hover,
.btn.btn-secondary:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
}


/* --- Tags (legacy) --- */
.tag-gold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  color: var(--gold-text);
  background: linear-gradient(135deg, rgba(196,169,98,0.12), rgba(196,169,98,0.05));
  border: 1px solid var(--gold-border);
  vertical-align: middle;
}

.tag-positive {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--color-green);
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.12);
}

.tag-negative {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--color-red);
  background: rgba(239,107,94,0.06);
  border: 1px solid rgba(239,107,94,0.12);
}

.tag-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--color-purple);
  background: rgba(124,140,245,0.06);
  border: 1px solid rgba(124,140,245,0.12);
}


/* --- Tables --- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 12px;
  overflow: hidden;
}

thead {
  background: var(--surface-raised);
}

th {
  padding: 12px 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

td {
  padding: 12px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.025);
  font-family: 'Satoshi', 'DM Sans', sans-serif;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--surface-hover);
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.clickable-row:hover {
  background-color: var(--surface-hover) !important;
}


/* --- Result labels --- */
.result-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}


/* --- Tooltip --- */
.bb-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 10px;
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
  font-style: normal;
  user-select: none;
  flex-shrink: 0;
}

.bb-info:hover { border-color: rgba(255,255,255,0.12); color: var(--text-secondary); }

.bb-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: normal;
  pointer-events: none;
  min-width: 200px;
  max-width: 280px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.85);
  text-transform: none;
  letter-spacing: normal;
}

.bb-info:hover .bb-tip {
  display: block;
}


/* --- Badge shelf (achievements) --- */
.bb-shelf-scene { position: relative; padding-bottom: 28px; margin: 0 -4px; }

.bb-shelf-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 8px 12px 22px;
  position: relative;
  z-index: 2;
}

.bb-shelf-item {
  flex: 1 1 100px;
  max-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.4s ease;
}


/* --- Achievement filter buttons --- */
.ach-filter {
  background: transparent;
  border: 1px solid var(--surface-glass-border);
  color: var(--text-muted);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Satoshi', 'DM Sans', sans-serif;
}

.ach-filter:hover {
  border-color: var(--gold-border);
  color: var(--gold-text);
}


/* --- DNA tabs --- */
.dna-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Satoshi', 'DM Sans', sans-serif;
}

.dna-panel {
  display: none;
}


/* --- Toggle buttons --- */
.toggle-btn {
  background: transparent;
  border: 1px solid var(--surface-glass-border);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Satoshi', 'DM Sans', sans-serif;
}

.toggle-btn:hover {
  border-color: var(--gold-border);
  color: var(--gold-text);
}


/* --- Private warning --- */
.private-warning {
  background: rgba(239,107,94,0.06);
  border: 1px solid rgba(239,107,94,0.12);
  border-radius: 10px;
  padding: 14px;
  color: var(--color-red);
  font-size: 13px;
  margin-bottom: 16px;
}


/* --- FeltIQ widget tooltip (from feltiq_widget.php) --- */
.fiq-q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 10px;
  cursor: help;
  margin-left: 5px;
  flex-shrink: 0;
  vertical-align: middle;
  font-style: normal;
  user-select: none;
}

.fiq-q:hover {
  border-color: rgba(255,255,255,0.12);
  color: var(--text-secondary);
}

#fiq-tooltip {
  position: fixed;
  z-index: 99999;
  background: var(--surface-raised);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-line;
  pointer-events: none;
  max-width: 260px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.85);
  display: none;
}


/* --- Nemesis search results --- */
#nemesis-results .nn-item {
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

#nemesis-results .nn-item:last-child { border-bottom: none; }
#nemesis-results .nn-item:hover { background: rgba(255,255,255,0.03); }
#nemesis-results .nn-name { font-size: 13px; color: var(--text-primary); font-weight: 600; }
#nemesis-results .nn-meta { font-size: 11px; color: var(--text-muted); margin-left: auto; }


/* --- Chart.js boxes --- */
.chart-box {
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-glass-border);
  border-radius: 15px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}


/* --- Achievement notification --- */
.bb-ach-notif {
  animation: achSlideIn 0.4s ease;
}

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


/* --- Footer (legacy) --- */
footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

footer p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0;
}


/* --- Tournament detail page --- */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.snapshot-item {
  background: var(--surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-glass-border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.snapshot-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.snapshot-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

.performance-item {
  margin-bottom: 14px;
}

.performance-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.performance-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.comparison-stat {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.progress-stage {
  font-size: 12px;
  color: var(--text-secondary);
}

.progress-icon {
  font-size: 14px;
}

.progress-track {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}


/* --- Responsive for legacy layout --- */
@media (max-width: 768px) {
  .container {
    padding: 24px 16px 60px;
  }

  .stats-grid {
    flex-wrap: wrap;
  }

  .stat-box {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }

  .bb-tabs {
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    gap: 8px;
  }

  .stat-box {
    flex: 1 1 calc(33% - 6px);
  }

  .soft-metric-value {
    font-size: 20px;
  }

  .soft-metric-label {
    font-size: 8px;
  }
}
