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

:root {
  /* Demo Theme Colors & Variables */
  --night: #06131f;
  --field: #0d3b2f;
  --field2: #14532d;
  --card: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #d9e2ec;
  --soft: #f4f7fb;
  --blue: #2563eb;
  --sky: #0284c7;
  --green: #15803d;
  --gold: #d9911f;
  --red: #dc2626;
  --shadow: 0 14px 34px rgba(15,23,42,.09);
  --radius: 8px;

  /* Login & Admin Theme Variables */
  --bg-primary: #0b0f19;
  --bg-secondary: #131c31;
  --bg-card: rgba(22, 34, 57, 0.75);
  --bg-input: #1b2641;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --color-gold: #fbbf24;
  --color-gold-hover: #f59e0b;
  --color-emerald: #10b981;
  --color-crimson: #ef4444;
  --color-blue: #3b82f6;
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-family: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
  display: none !important;
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(180deg, #06131f 0, #0a2727 318px, #edf3f7 319px, #edf3f7 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

/* Field lines pattern at the top */
body:before {
  content: '';
  position: fixed;
  inset: 0 0 auto 0;
  height: 318px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(255, 255, 255, .12) calc(50% - 1px), rgba(255, 255, 255, .12) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 118px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 86px);
  opacity: .9;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

/* Warnings */
.config-warning {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  border-bottom: 2px solid var(--color-crimson);
  color: #fecaca;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.config-warning.hidden {
  display: none !important;
}

/* Header & Profile navigation (Only visible when user is logged in) */
header {
  background: rgba(6, 19, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 10;
}

.header-container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-container .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-gold), #fff, var(--color-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  box-shadow: none;
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-nav.hidden {
  display: none !important;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a7f3d0;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.btn-admin {
  background: linear-gradient(135deg, var(--color-blue), #2563eb);
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-admin:hover {
  filter: brightness(1.1);
}

.btn-admin.hidden {
  display: none !important;
}

/* App container */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
}

/* View: Login style */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  max-width: 450px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 5;
}

.login-card {
  background: rgba(22, 34, 57, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.login-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-weight: 850;
  background: linear-gradient(135deg, var(--color-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 30px;
}

.google-signin-btn {
  background: white;
  color: #1e293b;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.google-signin-btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.google-signin-btn svg {
  width: 22px;
  height: 22px;
}

/* Page wrapper for dashboard */
.page {
  position: relative;
  max-width: 1420px;
  margin: 0 auto;
  padding: 22px;
  z-index: 5;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #dff7ee;
  margin-bottom: 18px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar .logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: conic-gradient(from 185deg, #f7c948, #17a34a, #0ea5e9, #f7c948);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
  font-size: 25px;
}

.brand h1 {
  font-size: 22px;
  line-height: 1.1;
  color: #fff;
  font-weight: 950;
}

.brand small {
  display: block;
  color: #a7f3d0;
  margin-top: 3px;
  font-weight: 650;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: #e6fffa;
  border-radius: var(--radius);
  padding: 8px 10px;
  font-weight: 800;
  font-size: 12px;
  backdrop-filter: blur(12px);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    linear-gradient(135deg, rgba(6, 19, 31, .96), rgba(13, 59, 47, .9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 22px);
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .28);
}

.hero-main:before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  pointer-events: none;
}

.hero-main:after {
  content: '2026';
  position: absolute;
  right: 24px;
  bottom: 8px;
  color: rgba(255, 255, 255, .055);
  font-size: 112px;
  line-height: .8;
  font-weight: 950;
  letter-spacing: 0;
  pointer-events: none;
}

.hero-main>* {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d1fae5;
  background: rgba(21, 128, 61, .24);
  border: 1px solid rgba(167, 243, 208, .28);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h2 {
  font-size: 54px;
  line-height: 1.02;
  margin: 18px 0 14px;
  letter-spacing: -0.02em;
  max-width: 780px;
}

.hero p {
  max-width: 680px;
  color: #dbe8e5;
  line-height: 1.65;
  font-size: 15px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-top: 22px;
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .075);
  border-radius: var(--radius);
  padding: 12px;
}

.hero-stat small {
  display: block;
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 21px;
  line-height: 1.1;
}

.hero-stat span {
  display: block;
  margin-top: 3px;
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 750;
}

.progress-card {
  margin-top: 22px;
  max-width: 680px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #d1fae5;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.progress {
  height: 11px;
  background: rgba(255, 255, 255, .13);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #facc15, #38bdf8);
  border-radius: 999px;
}

/* Leader panel (Aside) */
.leader-panel {
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(9, 36, 39, .98), rgba(10, 55, 46, .96));
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.leader-title {
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 950;
}

.leader-avatar {
  width: 78px;
  height: 78px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7ed, #fde68a 55%, #bbf7d0);
  display: block;
  padding: 4px;
  overflow: hidden;
  margin: 18px 0 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.leader-avatar.is-male {
  background: linear-gradient(135deg, #dbeafe, #bbf7d0);
}

.leader-avatar.is-female {
  background: linear-gradient(135deg, #fce7f3, #fef3c7);
}

.avatar-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 3px);
}

.leader-name {
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-sub {
  color: #dbe8e5;
  margin: 4px 0 18px;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-score {
  display: flex;
  align-items: end;
  gap: 8px;
}

.leader-score b {
  font-size: 54px;
  line-height: .9;
  color: #fef3c7;
}

.leader-score span {
  color: #d1fae5;
  font-weight: 900;
  margin-bottom: 8px;
}

.leader-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.leader-mini div {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, .06);
}

.leader-mini small {
  display: block;
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.leader-mini strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

/* KPIs section */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 112px;
}

.kpi:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--tone, #0ea5e9);
}

.kpi small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 11px;
}

.kpi strong {
  display: block;
  font-size: 31px;
  letter-spacing: 0;
  margin-top: 7px;
}

.kpi span {
  display: block;
  color: #7b8794;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.35;
}

.tone-roster { --tone: #0284c7 }
.tone-live { --tone: #15803d }
.tone-perfect { --tone: #d9911f }
.tone-sign { --tone: #7c3aed }
.tone-risk { --tone: #dc2626 }

/* Pool Panel */
.pool-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #06251f, #103f33);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
}

.pool-copy small, .pool-total small, .pool-prize small, .pool-prizes h4 {
  display: block;
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pool-copy h3 {
  font-size: 25px;
  line-height: 1.12;
  margin-top: 7px;
}

.pool-copy p {
  color: #dbe8e5;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
  max-width: 620px;
}

.pool-rate {
  color: #dbe8e5;
  font-size: 12px;
  margin-top: 8px;
}

.pool-rate strong {
  color: #fef3c7;
}

.pool-results {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.pool-total, .pool-prizes {
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .075);
  border-radius: var(--radius);
  padding: 14px;
}

.pool-total strong {
  display: block;
  color: #fef3c7;
  font-size: 31px;
  margin-top: 5px;
  line-height: 1;
}

.pool-prizes h4 {
  margin-bottom: 6px;
}

.pool-prize {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pool-prize:first-of-type {
  padding-top: 0;
}

.pool-prize:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pool-prize span {
  display: block;
  color: #dbe8e5;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 2px;
}

.pool-prize b {
  font-size: 17px;
  color: #fff;
  white-space: nowrap;
}

/* Rules grid */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.rule-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-height: 132px;
}

.rule-card img {
  width: 32px;
  height: 32px;
}

.rule-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  margin-top: 7px;
  color: #111827;
}

.rule-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.rule-card p {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
}

.rule-card .big-money {
  font-size: 28px;
  color: #14532d;
}

.rule-card ul {
  list-style: none;
  margin-top: 8px;
}

.rule-card li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #edf2f7;
  color: #667085;
  font-size: 13px;
}

.rule-card li:last-child {
  border-bottom: 0;
}

.rule-card li b {
  color: #111827;
}

.rule-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  margin-top: 9px;
}

/* Lado B (Premios divertidos) */
.fun-section {
  margin: 0 0 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d7e2ea;
  border-top: 5px solid #15803d;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .09);
}

.fun-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 15px;
  color: #0f172a !important;
}

.fun-head h2 {
  color: #0f172a !important;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.fun-head p {
  color: #475569 !important;
  font-size: 14px;
  font-weight: 750;
  margin-top: 4px;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 12px;
}

.award-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-height: 158px;
}

.award-card:after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: -18px;
  font-size: 74px;
  opacity: .08;
  transform: rotate(-8deg);
}

.award-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.award-title i {
  font-style: normal;
  font-size: 23px;
}

.award-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  position: relative;
  z-index: 1;
}

.award-person img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eef2ff;
  padding: 2px;
  object-fit: cover;
}

.award-person b {
  display: block;
  font-size: 15px;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.award-person strong {
  display: block;
  color: #14532d;
  margin-top: 2px;
  font-size: 0.95rem;
}

.award-card p {
  position: relative;
  z-index: 1;
  color: #667085;
  font-size: 12px;
  line-height: 1.42;
  margin-top: 10px;
}

/* Two column desktop grid layout */
.grid {
  display: grid;
  grid-template-columns: minmax(380px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.grid>div {
  min-width: 0;
}

/* White card component */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.card+.card {
  margin-top: 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.card-head h3 {
  font-size: 17px;
  line-height: 1.2;
}

.card-head span {
  color: #7b8794;
  font-size: 12px;
  font-weight: 750;
}

/* Tied Gold/Silver/Bronze Podium styles */
.podium-card {
  border: 1px solid #cbd5e1;
  background: #fff;
  overflow: visible;
}

.podium-card .card-head {
  background: linear-gradient(135deg, #0f5132, #166534);
  border-bottom: 0;
}

.podium-card .card-head h3,
.podium-card .card-head span {
  color: #fff;
}

.podium-new {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc, #eef4f7);
}

.podium-tier {
  overflow: hidden;
  border: 2px solid;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.podium-tier.gold {
  border-color: #eab308;
  background: linear-gradient(135deg, #fff9db, #fff);
}

.podium-tier.silver {
  border-color: #94a3b8;
  background: linear-gradient(135deg, #f1f5f9, #fff);
}

.podium-tier.bronze {
  border-color: #c47a44;
  background: linear-gradient(135deg, #fff1e8, #fff);
}

.podium-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .28);
}

.gold .podium-tier-head {
  background: rgba(254, 243, 199, .65);
}

.silver .podium-tier-head {
  background: rgba(226, 232, 240, .72);
}

.bronze .podium-tier-head {
  background: rgba(255, 237, 213, .72);
}

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

.podium-big-medal {
  font-size: 30px;
  line-height: 1;
}

.podium-place strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}

.podium-place small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.podium-tier-result {
  text-align: right;
}

.podium-tier-result>b {
  display: block;
  font-size: 22px;
  color: #14532d;
  white-space: nowrap;
}

.podium-tier-result small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.podium-players {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 12px;
}

.podium-players.has-tie {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pod-player {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #dbe3ea;
  border-radius: 11px;
  background: rgba(255, 255, 255, .9);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-align: left;
}

.pod-player:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .1);
}

.pod-player-photo {
  width: 52px;
  height: 52px;
  padding: 3px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
}

.pod-player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.pod-player-photo.is-male {
  background: linear-gradient(135deg, #dbeafe, #bbf7d0);
}

.pod-player-photo.is-female {
  background: linear-gradient(135deg, #fce7f3, #fef3c7);
}

.pod-player-info {
  min-width: 0;
}

.pod-player-info>strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pod-player-info>small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pod-player-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.pod-player-stats span {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  padding: 4px 7px;
  color: #475569;
  font-size: 10px;
  font-weight: 850;
}

.pod-player-score {
  text-align: right;
}

.pod-player-score b {
  display: block;
  color: #14532d;
  font-size: 28px;
  line-height: 1;
}

.pod-player-score small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.pod-player-prize {
  display: block;
  margin-top: 7px;
  color: #7c4a03;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.pod-player-score em {
  display: block;
  margin-top: 2px;
  color: #9a6a0a;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

/* Full Ranking list rows styling */
.ranking-list {
  padding: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 62px;
  gap: 11px;
  align-items: center;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
}

.rank-row+.rank-row {
  margin-top: 4px;
}

.rank-row:hover {
  background: #f8fafc;
  border-color: #e7edf3;
}

.rank-row.is-leader {
  background: #fffbea;
  border-color: #f4d37a;
}

.rank-row.is-current-user {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.pos {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: #eaf4ff;
  color: #075985;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: #f1f5f9;
  padding: 2px;
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.avatar.is-male {
  background: linear-gradient(135deg, #dbeafe, #bbf7d0);
}

.avatar.is-female {
  background: linear-gradient(135deg, #fce7f3, #fef3c7);
}

.person b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.person small {
  display: block;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.75rem;
}

.bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #14532d, #22c55e, #facc15);
  border-radius: 999px;
}

.points {
  text-align: right;
}

.points b {
  font-size: 27px;
  color: #111827;
}

.points small {
  display: block;
  color: #7b8794;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 10px;
}

.mini-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 850;
  font-size: 11px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.b-exacto {
  background: #fff7d6;
  color: #7c4a03;
  border-color: #f6d365;
}

.b-signo {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.b-fallo {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.b-pendiente {
  background: #e0f2fe;
  color: #075985;
  border-color: #bae6fd;
}

/* Custom matches tabs navigation */
.matches-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  gap: 4px;
  width: 100%;
}

.match-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.2s ease;
  cursor: pointer;
}

.match-tab-btn:hover {
  color: var(--text);
}

.match-tab-btn.active {
  background: white;
  color: var(--green);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

/* Toolbar (Filters) */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.search, .select {
  flex: 1;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.select {
  cursor: pointer;
  flex: 0 0 180px;
}

.search:focus, .select:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, .12);
}

/* Match Cards grid & Match Card in new layout */
.matches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  padding: 18px;
  min-height: 200px;
}

.match {
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd5e1;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
}

.match.finished {
  border-left-color: #15803d;
}

.match.live {
  border-left-color: #7c3aed;
}

.match.pending {
  border-left-color: #d9911f;
}

.match:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .1);
}

.match-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
}

.match-top small {
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
  font-size: 0.75rem;
}

.state {
  font-size: 11px;
  font-weight: 950;
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
}

.state.ok {
  background: #dcfce7;
  color: #166534;
}

.state.live {
  background: #ede9fe;
  color: #5b21b6;
}

.state.wait {
  background: #fff7d6;
  color: #8a5700;
}

.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 17px 13px;
  flex: 1;
}

.team {
  text-align: center;
  min-width: 0;
}

.team .flag {
  font-size: 27px;
}

.team b {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.2;
  min-height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score {
  background: #101828;
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: .03em;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .08);
}

.score.pending {
  background: #e5e7eb;
  color: #64748b;
  font-size: 16px;
}

/* Prediction forms inputs & buttons inside match card */
.prediction-form {
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 14px;
}

.team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-input {
  width: 45px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
  outline: none;
  background: white;
  color: var(--text);
}

.score-input:focus {
  border-color: var(--green);
}

.score-input:disabled {
  background: #f1f5f9;
  cursor: not-allowed;
  color: #64748b;
}

.match-footer {
  padding: 10px 14px;
  background: #fafbfc;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: center;
}

.btn-save-prediction {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 700;
  width: 100%;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-save-prediction:hover:not(:disabled) {
  filter: brightness(1.1);
}

.btn-save-prediction:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.btn-view-bets {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 700;
  width: 100%;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-view-bets:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.actual-result-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 8px;
  font-size: 0.8rem;
  font-weight: 750;
  text-align: center;
  border-radius: 6px;
  margin: 10px 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.points-badge {
  background: #10b981;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.points-badge.partial {
  background: #3b82f6;
}

.points-badge.zero {
  background: #ef4444;
}

/* Modals overlays & boxes styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(2, 8, 23, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  width: min(1040px, 100%);
  max-height: 92vh;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #071827, #0d3b2f);
  color: #fff;
}

.modal-title {
  font-size: 21px;
  line-height: 1.2;
}

.modal-close-btn {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 22px;
  cursor: pointer;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.bets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bet-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bet-score {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
}

.modal-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.modal-kpi {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.modal-kpi small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.modal-kpi strong {
  display: block;
  font-size: 24px;
  margin-top: 4px;
  color: #0f172a;
}

.modal-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
}

.modal-table th {
  top: 0;
  position: sticky;
  background: #f8fafc;
  z-index: 2;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
}

.modal-table td, .modal-table th {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.modal-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.modal-table tbody tr:hover td {
  background: #f2f8f5;
}

/* SVG Avatars style */
.avatar-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Admin Controls & Styling */
.admin-header {
  border-left: 4px solid var(--color-blue);
  padding-left: 15px;
  margin-bottom: 30px;
  color: white;
}

.admin-controls-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-main);
  color: white;
}

.lock-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.switch-label {
  font-weight: 600;
  font-size: 1rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-crimson);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.admin-match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-main);
  color: white;
}

.admin-match-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-team-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-team-input-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
}

.admin-input-text {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-family);
  transition: var(--transition);
}

.admin-input-text:focus {
  border-color: var(--color-blue);
}

.admin-match-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

.btn-admin-save {
  background: var(--color-blue);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-admin-save:hover {
  filter: brightness(1.15);
}

.btn-admin-lock {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-crimson);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-admin-lock:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-admin-lock.locked {
  background: var(--color-crimson);
  color: white;
  border: none;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1100;
}

.toast {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--blue);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

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

/* Footer styling */
footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: auto;
  position: relative;
  z-index: 5;
}

footer a {
  color: var(--green);
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media(max-width:1360px) {
  .page { padding: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr) 320px; }
  .hero-main { padding: 26px; }
  .hero h2 { font-size: 46px; }
  .grid { grid-template-columns: minmax(360px, 400px) minmax(0, 1fr); }
  .matches { grid-template-columns: 1fr; }
}

@media(max-width:1240px) {
  .hero { grid-template-columns: 1fr; }
  .pool-panel { grid-template-columns: 1fr; }
  .pool-results { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .matches { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

@media(max-width:980px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .matches { grid-template-columns: 1fr; }
}

@media(max-width:720px) {
  .page { padding: 12px; }
  .topbar { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .top-actions { justify-content: flex-start; }
  .chip { font-size: 11px; }
  .hero-main, .leader-panel { padding: 20px; }
  .hero h2 { font-size: 34px; }
  .hero-stats { grid-template-columns: 1fr; }
  .progress-meta { display: grid; grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .pool-results { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
  .leader-panel { display: block; }
  .leader-avatar { margin: 14px 0; }
  .toolbar { flex-direction: column; }
  .select { flex: 1 1 100%; }
}

@media(max-width:480px) {
  .brand h1 { font-size: 19px; }
  .brand small { font-size: 12px; }
  .kpis { grid-template-columns: 1fr; }
  .hero h2 { font-size: 30px; }
  .teams { grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr); gap: 8px; }
  .team b { font-size: 12px; }
  .score { font-size: 18px; padding: 10px 6px; }
}

/* Toolbar, Tabs and Stage Filters Styles */
.matches-tabs {
  display: flex;
  gap: 4px;
  background: var(--soft);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 5px;
  width: fit-content;
  border: 1px solid var(--line);
}

.match-tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.match-tab-btn:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.03);
}

.match-tab-btn.active {
  background: var(--card);
  color: var(--field);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.toolbar {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search, .select {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}

.search {
  flex: 1;
}

.select {
  min-width: 180px;
}

.search:focus, .select:focus {
  border-color: var(--field);
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 59, 47, 0.1);
}

.stage-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.stage-btn {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.stage-btn:hover {
  background: var(--line);
  color: var(--text);
}

.stage-btn.active {
  background: var(--field);
  color: white;
  border-color: var(--field);
}

