@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Prompt:wght@600;700;800&family=JetBrains+Mono:wght@600;700&display=swap');

:root {
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --bg-subtle: #eaf0f6;
  --bg-table-head: #dfe7f0;
  --bg-row-alt: #f8fafc;
  --text-main: #0f172a;
  --text-heading: #1e293b;
  --text-muted: #475569;
  --border-color: #cbd5e1;
  --link-blue: #1d4ed8;
  --link-blue-hover: #1e40af;
  --nav-top: #0b132b;
  --nav-sub: #060b19;
  --hero-dark: #070e22;
  --ppg-high: #059669;
  --ppg-good: #10b981;
  --ppg-avg: #d97706;
  --ppg-low: #dc2626;
  --lock-blue: #2563eb;
  --promo-blue: #0b132b;
  --green-btn: #10b981;
  --card-radius: 8px;
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.dark-mode {
  --bg-body: #0b111e;
  --bg-card: #151f32;
  --bg-subtle: #1e293b;
  --bg-table-head: #1e2d44;
  --bg-row-alt: #111a2b;
  --text-main: #e2e8f0;
  --text-heading: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #28364d;
  --link-blue: #38bdf8;
  --link-blue-hover: #7dd3fc;
  --card-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--link-blue);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  color: var(--link-blue-hover);
  text-decoration: underline;
}

code {
  font-family: "JetBrains Mono", monospace;
  word-break: break-word;
  overflow-wrap: anywhere;
}

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

/* ============================================================================
   TOP NAVBAR & SUB NAVBAR (BALANCED & RESPONSIVE)
   ============================================================================ */
.top-navbar {
  background-color: var(--nav-top);
  color: #ffffff;
  min-height: 58px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #10b981;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 18px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-search-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: "Prompt", "IBM Plex Sans Thai", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-shield {
  width: 28px;
  height: 30px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #f5b700;
  border-radius: 5px 5px 14px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  font-family: sans-serif;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
  flex-shrink: 0;
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 310px;
  min-width: 140px;
}

.search-input {
  width: 100%;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #f8fafc;
  color: #0f172a;
  padding: 0 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.search-dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  width: min(360px, 90vw);
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.search-dropdown.open {
  display: block;
}

.search-item {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
}

.search-item:hover {
  background: var(--bg-subtle);
}

.search-item-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--bg-table-head);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 19px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.top-nav-link {
  color: #f1f5f9 !important;
  font-weight: 700;
  font-size: 13.8px;
  padding: 5px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.top-nav-link:hover {
  color: #6ee7b7 !important;
  background: rgba(255, 255, 255, 0.06);
}

.nav-vip-link {
  color: #f5b700 !important;
  font-weight: 800;
}

.nav-admin-pill {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  border-radius: 5px;
  padding: 4px 9px !important;
  color: #6ee7b7 !important;
  font-weight: 800;
}

.user-badge-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.15s;
}

.user-badge-nav:hover {
  background: rgba(255, 255, 255, 0.08);
}

.user-avatar-icon {
  font-size: 17px;
  color: #ffffff;
}

.user-meta-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name-label {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

.user-coins-label {
  font-size: 11px;
  color: #f5c542;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* SUB NAVBAR */
.sub-navbar {
  background-color: var(--nav-sub);
  min-height: 40px;
  border-bottom: 1px solid #162336;
}

.sub-nav-container {
  min-height: 40px;
  padding: 0 18px;
  gap: 10px;
}

.sub-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sub-nav-links::-webkit-scrollbar {
  display: none;
}

.sub-nav-item {
  color: #e2e8f0 !important;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
}

.sub-nav-item:hover,
.sub-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

.dark-toggle-btn {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}

.dark-toggle-btn:hover {
  color: #ffffff;
  background: #334155;
}

/* ============================================================================
   PAGE CONTAINER & BALANCED GRID SYSTEM
   ============================================================================ */
.page-container {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 2.2vw, 24px) clamp(12px, 2vw, 18px) 56px;
  flex: 1;
}

/* Prevent CSS Grid blowout from wide tables or long text */
.two-col-layout > *,
.dash-grid > *,
.grid-2-col > *,
.grid-3-col > *,
.league-overview-grid > *,
.sidebar-left-grid > *,
.h2h-header-grid > *,
.footer-grid > * {
  min-width: 0;
}

.home-hero-title {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
  line-height: 1.35;
}

.home-hero-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

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

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.league-overview-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 18px;
  align-items: start;
}

.sidebar-left-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* ============================================================================
   CARDS & BOXES
   ============================================================================ */
.fs-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.grid-2-col > .fs-box,
.grid-3-col > .fs-box {
  margin-bottom: 0;
  height: 100%;
}

.fs-box-header {
  background: var(--bg-subtle);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-heading);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px 14px;
  gap: 10px 20px;
}

.quick-links-grid a {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================================
   DATE TABS BAR
   ============================================================================ */
.date-tabs-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.date-tab {
  text-align: center;
  padding: 9px 6px;
  font-weight: 700;
  font-size: 13px;
  color: var(--link-blue);
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, color 0.15s;
}

.date-tab:last-child {
  border-right: none;
}

.date-tab:hover {
  background: rgba(16, 185, 129, 0.08);
}

.date-tab.active {
  background: var(--nav-top);
  color: #ffffff;
}

/* ============================================================================
   LEAGUE FIXTURE CARD & BALANCED MATCH ROWS
   ============================================================================ */
.league-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.league-card-top {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.league-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  min-width: 0;
  flex-wrap: wrap;
}

.league-title-group a {
  color: var(--text-main);
}

.star-btn {
  cursor: pointer;
  color: #94a3b8;
  font-size: 16px;
  user-select: none;
  transition: transform 0.12s, color 0.12s;
  flex-shrink: 0;
}

.star-btn.active,
.star-btn:hover {
  color: #f5b301;
  transform: scale(1.12);
}

.hide-toggle {
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

.fixture-subhead {
  background: var(--bg-subtle);
  padding: 5px 14px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 46px 46px 46px minmax(0, 1fr) 136px;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.fixture-row {
  padding: 9px 14px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 46px 46px 46px minmax(0, 1fr) 136px;
  grid-template-areas: "time home hppg center appg away odds";
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
  transition: background 0.12s;
}

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

.fixture-row:hover {
  background: var(--bg-row-alt);
}

.fix-time {
  grid-area: time;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fix-time .starts-green {
  color: #059669;
  font-weight: 700;
}

.fix-time .live-red {
  color: #dc2626;
  font-weight: 700;
}

.fix-home {
  grid-area: home;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  text-align: right;
  padding-right: 6px;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  min-width: 0;
}

.fix-hppg {
  grid-area: hppg;
  text-align: center;
}

.fix-center {
  grid-area: center;
  text-align: center;
}

.fix-appg {
  grid-area: appg;
  text-align: center;
}

.fix-away {
  grid-area: away;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  text-align: left;
  padding-left: 6px;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  min-width: 0;
}

.fix-team-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.team-crest-img,
.league-logo-img {
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.crest-hero-img {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain;
}

.ppg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  padding: 0 5px;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  margin: 0 auto;
}

.ppg-high { background-color: var(--ppg-high); }
.ppg-good { background-color: var(--ppg-good); }
.ppg-avg  { background-color: var(--ppg-avg); }
.ppg-low  { background-color: var(--ppg-low); }
.ppg-lock {
  background-color: var(--lock-blue);
  cursor: pointer;
}

.stats-center-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--link-blue);
  line-height: 1.1;
  text-decoration: none !important;
  padding: 2px 4px;
  border-radius: 4px;
}

.stats-center-link:hover {
  background: var(--bg-subtle);
}

.stats-center-link .chart-ico {
  font-size: 13px;
}

.fix-odds {
  grid-area: odds;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 20px;
  gap: 2px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-main);
  align-items: center;
}

/* ============================================================================
   RIGHT SIDEBAR PROMO & WIDGETS
   ============================================================================ */
.download-btn-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 15px 16px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--link-blue);
  margin: 14px 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.download-btn-card:hover {
  background: var(--bg-table-head);
}

.premium-promo-box {
  background: linear-gradient(160deg, #0b132b 0%, #112240 60%, #064e3b 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(11, 19, 43, 0.18);
}

.premium-promo-box h3 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 12px;
  font-weight: 700;
  color: #ffd966;
}

.premium-promo-box p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
  margin-bottom: 14px;
}

.video-mock-box {
  background: rgba(7, 14, 34, 0.85);
  border-radius: 6px;
  padding: 14px;
  margin-top: 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* W/D/L MINI SQUARES */
.wdl-list {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.wdl-box {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.wdl-W { background: #10b981; }
.wdl-D { background: #f59e0b; }
.wdl-L { background: #ef4444; }

/* ============================================================================
   DATA TABLES (LEAGUE TABLE, BTTS, ETC.)
   ============================================================================ */
.fs-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
}

.fs-box > .fs-table-wrap {
  border: none;
  border-radius: 0;
}

.fs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.fs-table th {
  background: var(--bg-table-head);
  color: var(--text-heading);
  font-weight: 700;
  padding: 9px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.fs-table th.left,
.fs-table td.left {
  text-align: left;
}

.fs-table td {
  padding: 9px 10px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.fs-table td.wrap-cell {
  white-space: normal;
  min-width: 200px;
}

.fs-table tr:nth-child(even) {
  background: var(--bg-row-alt);
}

.fs-table tr:hover {
  background: rgba(16, 185, 129, 0.06);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-weight: 700;
  color: #fff;
  font-size: 12.5px;
}

.rank-ucl { background: #059669; }
.rank-uel { background: #2563eb; }
.rank-mid { background: #64748b; }
.rank-rel { background: #dc2626; }

/* ============================================================================
   DARK HERO BANNER (H2H & CLUB PAGES)
   ============================================================================ */
.dark-hero-banner {
  background: var(--hero-dark);
  color: #ffffff;
  padding: 22px 0 0;
  margin-bottom: 0;
}

.hero-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 18px;
}

.h2h-header-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
}

.club-crest-card {
  width: 78px;
  height: 78px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-tabs-bar {
  display: flex;
  gap: 6px;
  padding-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-tabs-bar::-webkit-scrollbar {
  display: none;
}

.hero-tab {
  padding: 9px 16px;
  border-radius: 6px 6px 0 0;
  color: #9ab0c7;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.hero-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-tab.active {
  background: var(--bg-card);
  color: var(--text-heading);
}

.sub-filter-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  margin-bottom: 18px;
}

.sub-filter-pills {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.sub-filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 5px 14px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill.active {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  font-weight: 700;
}

/* ============================================================================
   LOGIN PAGE
   ============================================================================ */
.login-backdrop {
  background: radial-gradient(circle at 30% 60%, #1c3144 0%, #090d14 75%);
  min-height: calc(100vh - 98px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  color: #222222;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.login-card-top {
  padding: 28px 28px 20px;
}

.login-card-top h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.login-card-inputs {
  background: #f8fafc;
  padding: 22px 28px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.login-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.login-input-row:last-child {
  margin-bottom: 0;
}

.login-input-row input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 14.5px;
}

.login-card-actions {
  padding: 22px 28px 28px;
  text-align: center;
}

.btn-login-green {
  width: 100%;
  height: 44px;
  background: var(--green-btn);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-login-green:hover {
  background: #059669;
}

.btn-social {
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 5px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}

.btn-fb { background: #2672ec; }
.btn-tw { background: #3298dc; }

/* ============================================================================
   USER DASHBOARD (/u/501504)
   ============================================================================ */
.dashboard-header-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 22px 0 0;
}

.dashboard-tabs {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

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

.dash-tab {
  padding-bottom: 10px;
  font-weight: 700;
  color: var(--link-blue);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.dash-tab.active {
  color: var(--text-main);
  border-bottom-color: #10b981;
}

.dash-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  margin-top: 20px;
  align-items: start;
}

.user-stats-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.user-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
}

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

.floating-vip-pill {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 32px;
  max-width: calc(100vw - 28px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  z-index: 950;
  cursor: pointer;
  text-decoration: none !important;
}

.floating-vip-pill:hover {
  background: #047857;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.fs-footer {
  background: #0b132b;
  color: #94a3b8;
  padding: 40px 18px;
  margin-top: auto;
  border-top: 2px solid #1e293b;
}

.footer-grid {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 7px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 13px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #10b981;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS (LAPTOP, TABLET, MOBILE)
   ============================================================================ */

/* Laptop / Small Desktop (<= 1120px) */
@media (max-width: 1120px) {
  .top-navbar .nav-container {
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .brand-search-group {
    width: 100%;
    justify-content: space-between;
  }

  .search-wrapper {
    max-width: 100%;
    flex: 1;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .top-nav-links {
    display: none;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .top-nav-links.open {
    display: grid;
  }

  .top-nav-link {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    justify-content: flex-start;
  }

  #navAuthArea {
    grid-column: 1 / -1;
    padding-top: 4px;
  }
}

/* Tablet (<= 980px) */
@media (max-width: 980px) {
  .two-col-layout,
  .league-overview-grid,
  .sidebar-left-grid,
  .dash-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .h2h-header-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }

  .h2h-header-grid > div:first-child,
  .h2h-header-grid > div:last-child {
    justify-content: center !important;
    text-align: left !important;
  }
}

/* Mobile & Phablet (<= 768px) */
@media (max-width: 768px) {
  .grid-2-col,
  .grid-3-col {
    grid-template-columns: 1fr !important;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .date-tabs-bar {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .date-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .date-tab {
    flex: 1 0 auto;
    min-width: 102px;
    padding: 9px 10px;
  }

  /* Transform 7-col fixture row into a balanced 2-tier mobile card */
  .fixture-subhead {
    display: none;
  }

  .fixture-row {
    grid-template-columns: minmax(0, 1fr) 42px 44px 42px minmax(0, 1fr);
    grid-template-areas:
      "time time time odds odds"
      "home hppg center appg away";
    gap: 6px 4px;
    padding: 10px 12px;
  }

  .fix-time {
    font-size: 11.5px;
    padding-bottom: 3px;
    border-bottom: 1px dashed var(--border-color);
  }

  .fix-odds {
    justify-self: end;
    display: inline-flex;
    gap: 8px;
    font-size: 12px;
    padding-bottom: 3px;
    border-bottom: 1px dashed var(--border-color);
    width: 100%;
    justify-content: flex-end;
  }

  .fix-home,
  .fix-away {
    font-size: 13px;
  }

  .club-crest-card {
    width: 60px;
    height: 60px;
    font-size: 32px;
  }
}

/* Small Mobile (<= 520px) */
@media (max-width: 520px) {
  .brand-logo {
    font-size: 19px;
  }

  .brand-search-group {
    gap: 8px;
  }

  .search-input {
    font-size: 12.5px;
    padding: 0 8px;
  }

  .sub-nav-container {
    padding: 0 10px;
  }

  .sub-nav-item {
    padding: 8px 10px;
    font-size: 12.5px;
  }

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

  .login-card-top,
  .login-card-inputs,
  .login-card-actions {
    padding-left: 18px;
    padding-right: 18px;
  }
}
