@import url('https://fonts.googleapis.com/css2?family=Teko:wght@600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #12141C;
  color: #ECEEF5;
  font-family: 'Inter', sans-serif;
}

.gate-body, .home-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gate-card {
  background: #1A1D29;
  border: 1px solid #2A2E3D;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.gate-logo, .home-logo {
  font-family: 'Teko', sans-serif;
  font-size: 56px;
  line-height: 1;
  margin: 0;
  background: linear-gradient(90deg, #FF7A29, #8B5CF6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gate-sub, .home-sub {
  color: #868BA3;
  font-size: 14px;
  margin: 6px 0 24px;
}

.gate-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2A2E3D;
  background: #20232F;
  color: #ECEEF5;
  font-size: 15px;
  margin-bottom: 14px;
  outline: none;
}

.gate-card button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #8B5CF6;
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.gate-error {
  color: #F87171;
  font-size: 13px;
  margin: 12px 0 0;
}

.page-body {
  margin: 0;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid #2A2E3D;
}

.topbar-logo {
  font-family: 'Teko', sans-serif;
  font-size: 32px;
  margin: 0;
  background: linear-gradient(90deg, #FF7A29, #8B5CF6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-link {
  color: #ECEEF5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
}

.topbar-link:hover { color: #8B5CF6; }

.topbar-btn {
  display: inline-block;
  color: #ECEEF5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #2A2E3D;
  background: transparent;
  cursor: pointer;
}

.topbar-btn-fill {
  background: #8B5CF6;
  border-color: #8B5CF6;
}

.topbar-form { margin: 0; }

.topbar-user {
  color: #868BA3;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
}

.home-wrap {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 96px 16px;
}

.home-title {
  font-family: 'Teko', sans-serif;
  font-size: 44px;
  margin: 0 0 8px;
  color: #ECEEF5;
}

.toast-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  align-items: center;
}

.toast {
  background: #1A1D29;
  border: 1px solid #2A2E3D;
  border-left: 3px solid #F87171;
  color: #ECEEF5;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.toast-ok {
  border-left-color: #33E1C9;
}

.toast-in {
  opacity: 1;
  transform: translateY(0);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar-links {
  display: flex;
  gap: 20px;
}

.topbar-links a {
  color: #868BA3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.topbar-links a:hover,
.topbar-links-active {
  color: #ECEEF5 !important;
}

.topbar-dropdown {
  position: relative;
}

.topbar-dropdown-trigger {
  background: none;
  border: none;
  color: #868BA3;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.topbar-dropdown-trigger:hover {
  color: #ECEEF5;
}

.topbar-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 26px;
  left: 0;
  background: #1A1D29;
  border: 1px solid #2A2E3D;
  border-radius: 10px;
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 50;
}

.topbar-dropdown-menu.open {
  display: flex;
}

.topbar-dropdown-menu a {
  color: #ECEEF5;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
}

.topbar-dropdown-menu a:hover {
  background: #20232F;
  color: #8B5CF6;
}

.content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel {
  background: #1A1D29;
  border: 1px solid #2A2E3D;
  border-radius: 16px;
  padding: 20px;
}

.panel-football {
  border-top: 3px solid #FF7A29;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title {
  font-family: 'Teko', sans-serif;
  font-size: 26px;
  color: #ECEEF5;
  margin: 0 0 14px;
}

.panel-head .panel-title { margin: 0; }

.league-tabs {
  display: flex;
  gap: 8px;
}

.league-tab {
  background: transparent;
  border: 1px solid #2A2E3D;
  color: #868BA3;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.league-tab-active {
  border-color: #FF7A29;
  color: #FF7A29;
  background: rgba(255,122,41,0.12);
}

.content-wrap-wide { max-width: 920px; }

.league-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .league-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.panel-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #868BA3;
  margin: 18px 0 8px;
}

.stand-table {
  max-height: 340px;
  overflow-y: auto;
}

.stand-tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}

.stand-tbl th {
  color: #868BA3;
  font-weight: 500;
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid #2A2E3D;
  position: sticky;
  top: 0;
  background: #1A1D29;
}

.stand-tbl td {
  padding: 6px;
  color: #ECEEF5;
  border-bottom: 1px solid #20232F;
}

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

.stand-pos {
  color: #868BA3;
  width: 20px;
}

.stand-team {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.stand-num {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  width: 30px;
}

.stand-pts {
  color: #FF7A29;
  font-weight: 600;
}

.muted { color: #868BA3; font-size: 14px; }

.panel-gaming {
  border-top: 3px solid #8B5CF6;
}

.fn-search {
  display: flex;
  gap: 10px;
}

.fn-search input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2A2E3D;
  background: #20232F;
  color: #ECEEF5;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
}

.fn-search input:focus {
  border-color: #8B5CF6;
}

.fn-search button {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: #8B5CF6;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.fn-melding {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 3px solid #F87171;
  background: #20232F;
  color: #ECEEF5;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.fn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .fn-grid { grid-template-columns: repeat(4, 1fr); }
}

.fn-card {
  background: #20232F;
  border: 1px solid #2A2E3D;
  border-radius: 12px;
  padding: 14px;
}

.fn-card-title {
  font-family: 'Teko', sans-serif;
  font-size: 20px;
  color: #8B5CF6;
  margin: 0 0 10px;
}

.fn-stat-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #868BA3;
  padding: 3px 0;
}

.fn-stat-val {
  color: #ECEEF5;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* Overzicht bovenaan */
.fn-overview {
  padding: 22px;
}

.fn-overview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.fn-playtime {
  color: #868BA3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.fn-ov-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 600px) {
  .fn-ov-grid { grid-template-columns: repeat(3, 1fr); }
}

.fn-ov-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fn-ov-label {
  color: #868BA3;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.fn-ov-val {
  color: #ECEEF5;
  font-family: 'Teko', sans-serif;
  font-size: 28px;
  line-height: 1;
}

.fn-bar {
  height: 4px;
  background: #2A2E3D;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}

.fn-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B5CF6, #33E1C9);
  border-radius: 999px;
}

/* Modus-kaarten */
.fn-grid-groot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .fn-grid-groot { grid-template-columns: repeat(2, 1fr); }
}

.fn-card {
  background: #1A1D29;
  border: 1px solid #2A2E3D;
  border-left: 4px solid #8B5CF6;
  border-radius: 14px;
  padding: 18px;
}

.fn-card.fn-solo { border-left-color: #A78BFA; }
.fn-card.fn-duo { border-left-color: #33E1C9; }
.fn-card.fn-squad { border-left-color: #F472B6; }
.fn-card.fn-ltm { border-left-color: #FBBF24; }

.fn-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fn-card-title {
  font-family: 'Teko', sans-serif;
  font-size: 24px;
  color: #ECEEF5;
  margin: 0;
}

.fn-card-matches {
  color: #868BA3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.fn-card-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.fn-big {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 26px;
  color: #ECEEF5;
  line-height: 1;
}

.fn-big-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: #868BA3;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
}

.fn-substats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 12px;
  border-top: 1px solid #2A2E3D;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #868BA3;
}

.fn-note {
  color: #868BA3;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-style: italic;
  margin: -6px 0 12px;
}

.fn-substats b {
  color: #ECEEF5;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.shop-updated {
  color: #868BA3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.shop-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.shop-datum {
  color: #ECEEF5;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.shop-timer {
  color: #8B5CF6;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

.shop-sections {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.shop-section-title {
  font-family: 'Teko', sans-serif;
  font-size: 22px;
  color: #ECEEF5;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2A2E3D;
}

.shop-sub {
  color: #868BA3;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  margin: 0 0 6px;
  line-height: 1.3;
}

.naar-boven {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #2A2E3D;
  background: #1A1D29;
  color: #ECEEF5;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  z-index: 40;
}

.naar-boven.zichtbaar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.naar-boven:hover {
  border-color: #8B5CF6;
  color: #8B5CF6;
}

.sprite-zoek {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #2A2E3D;
  background: #20232F;
  color: #ECEEF5;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  margin-top: 14px;
  outline: none;
}

.sprite-zoek:focus {
  border-color: #8B5CF6;
}

.sprite-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

@media (min-width: 560px) {
  .sprite-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 800px) {
  .sprite-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .sprite-grid { grid-template-columns: repeat(6, 1fr); }
}

.vk-card {
  background: #1A1D29;
  border: 1px solid #2A2E3D;
  border-radius: 14px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.vk-card:hover {
  border-color: #8B5CF6;
  transform: translateY(-2px);
}

.vk-card-mijn {
  border-color: #33E1C9;
  box-shadow: 0 0 0 1px #33E1C9;
}

.vk-img-wrap {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vk-img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.vk-img-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  width: 100%;
  height: 100%;
}

.vk-body {
  padding: 10px 12px 12px;
}

.vk-titel {
  font-family: 'Teko', sans-serif;
  font-size: 20px;
  color: #ECEEF5;
  margin: 0 0 6px;
  line-height: 1.1;
}

.vk-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.vk-badge-rarity {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid;
  padding: 2px 8px;
  border-radius: 999px;
}

.vk-badge-special {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #0B0D12;
  background: #33E1C9;
  padding: 2px 8px;
  border-radius: 999px;
}

.vk-badge-rate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #868BA3;
  background: #20232F;
  padding: 2px 7px;
  border-radius: 999px;
}

.vk-ability {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #868BA3;
  line-height: 1.4;
  margin: 0 0 10px;
  min-height: 30px;
}

.vk-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #868BA3;
  font-style: italic;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid #2A2E3D;
}

.vk-status-geclaimd {
  color: #33E1C9;
  font-style: normal;
  font-weight: 600;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
}

.shop-card {
  background: #1A1D29;
  border: 1px solid #2A2E3D;
  border-top: 3px solid var(--rarity-kleur, #8B5CF6);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.shop-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #0000002a;
  border-radius: 8px;
  margin-bottom: 8px;
}

.shop-img-leeg {
  display: flex;
}

.shop-naam {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #ECEEF5;
  margin: 0 0 4px;
  line-height: 1.3;
}

.shop-rarity {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.shop-prijs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #33E1C9;
  font-weight: 600;
}

.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid #2A2E3D;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ECEEF5;
}

.match-row:last-child { border-bottom: none; }

.match-teams { flex: 1; }

.match-score, .match-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.match-status {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #868BA3;
  width: 60px;
  text-align: right;
}

.status-live { color: #33E1C9; }

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.news-item {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid #2A2E3D;
}

.news-item:last-child { border-bottom: none; }

.news-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.news-title {
  color: #ECEEF5;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.news-summary {
  color: #A9AEC2;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 8px;
}

.news-link {
  color: #FF7A29;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.news-link:hover { text-decoration: underline; }

.news-date {
  color: #868BA3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  white-space: nowrap;
}

.gate-link {
  margin: 16px 0 0;
  font-size: 13px;
}

.gate-link a {
  color: #8B5CF6;
  text-decoration: none;
}

.gate-link a:hover {
  text-decoration: underline;
}

.logout-btn {
  margin-top: 24px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #2A2E3D;
  background: transparent;
  color: #868BA3;
  font-size: 13px;
  cursor: pointer;
}

.logout-btn:hover {
  color: #ECEEF5;
  border-color: #8B5CF6;
}
