/* 🔵 SKY SPORTS INSPIRED THEME */

:root {
  --bg: #0b1220;
  --panel: #111a2e;
  --panel-glass: rgba(255,255,255,0.04);
  --accent: #00a8ff;
  --accent-2: #e10600;
  --text: #e6edf6;
  --muted: #9fb3c8;
  --border: rgba(255,255,255,0.08);
  --success: #22c55e;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #12203a, #050a16);
  color: var(--text);
}

/* 🧱 Layout */
.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* 🏆 Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #0f1c33, #162a4d);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hero h1 {
  margin: 5px 0;
  font-size: 28px;
}

.eyebrow {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sub {
  color: var(--muted);
  font-size: 13px;
}

/* 🔘 Button */
button {
  background: linear-gradient(135deg, var(--accent), #0077cc);
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,168,255,0.4);
}

/* 📊 Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stats article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.stats span {
  font-size: 26px;
  font-weight: bold;
  display: block;
}

.stats small {
  color: var(--muted);
}

/* 📦 Panels */
.panel {
  margin-top: 20px;
}

.panel h2 {
  margin-bottom: 10px;
  color: var(--accent);
}

/* 🧑 Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  background: var(--panel-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.card .name {
  font-weight: bold;
  font-size: 16px;
}

.card .team {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* 🟢🔴 Paid status */
.card.paid {
  border-left: 4px solid var(--success);
}

.card.unpaid {
  border-left: 4px solid var(--danger);
}

.team {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 🏁 Teams */
.teams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-chip {
  background: #1a2b4a;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 13px;
}

.team {
  font-size: 15px;
}
.team::first-letter {
  font-size: 18px;
}

.flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.status {
  margin-top: 6px;
  font-size: 12px;
  color: #9fb3c8;
}

.match {
  font-size: 15px;
  margin-bottom: 6px;
}

.score {
  font-size: 18px;
  font-weight: bold;
  color: #00a8ff;
}

.meta {
  font-size: 12px;
  color: #9fb3c8;
}

.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 10px;
}

.team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.team.left {
  justify-content: flex-start;
}

.team.right {
  justify-content: flex-end;
}

.center {
  font-size: 14px;
  opacity: 0.7;
  padding: 0 10px;
}

.vs {
  font-size: 12px;
  opacity: 0.6;
}

/* Prevent ugly wrapping */
.team .name {
  white-space: nowrap;
}

/* Flag stays neat */
.flag {
  width: 24px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: linear-gradient(135deg, #00a8ff, #0077cc);
  color: white;
  text-decoration: none;

  padding: 10px 14px;
  border-radius: 8px;

  font-weight: bold;
  font-size: 14px;

  transition: 0.2s;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,168,255,0.4);
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.name-input {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.name-input:focus {
  outline: 1px solid #00a8ff;
}

.paid-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
}

.paid-toggle input {
  transform: scale(1.2);
}

.stat-updated {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.edit-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
}

.score-input {
  width: 70px;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  border: none;
  font-weight: bold;
}

.status-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
}

.add-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.add-row input,
.add-row select {
  padding: 6px;
  border-radius: 6px;
  border: none;
}

