* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f8fb;
  color: #222;
}

.container {
  width: 92%;
  max-width: 1150px;
  margin: auto;
}

header {
  background: #063970;
  color: #fff;
  padding: 16px 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav h1 {
  margin: 0;
  font-size: 24px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
}

.hero {
  background: linear-gradient(135deg, #0057d9, #00a86b);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero h2 {
  font-size: 44px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
}

.btn {
  display: inline-block;
  background: #ffcc00;
  color: #111;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.full {
  width: 100%;
  margin-top: 20px;
}

.page {
  padding: 45px 0;
}

.section-title {
  margin-top: 45px;
  text-align: center;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 25px 0 50px;
}

.match-card,
.form-box,
.result-box,
.saved-card,
.leader-card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.match-card h3 {
  margin-top: 0;
  color: #063970;
}

.status {
  display: inline-block;
  background: #e8fff1;
  color: #008f4c;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.score {
  font-size: 24px;
  font-weight: 800;
  margin: 14px 0;
}

.form-box {
  max-width: 650px;
  margin: 20px auto;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  padding: 12px;
  margin-top: 7px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.score-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.score-row span {
  font-size: 24px;
  font-weight: bold;
}

.match-info {
  background: #eef6ff;
  padding: 14px;
  margin-top: 15px;
  border-radius: 10px;
  line-height: 1.7;
}

.result-box {
  max-width: 650px;
  margin: 20px auto;
  display: none;
  text-align: center;
}

.saved-card {
  max-width: 750px;
  margin: 15px auto;
}

.share-text {
  background: #eef6ff;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-weight: 600;
}

.share-btn {
  background: #25d366;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 7px;
  cursor: pointer;
  margin-top: 12px;
  margin-right: 8px;
}

.delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 7px;
  cursor: pointer;
  margin-top: 12px;
}

.leader-card {
  max-width: 700px;
  margin: 15px auto;
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

footer {
  background: #063970;
  color: white;
  text-align: center;
  padding: 18px;
  margin-top: 40px;
}

@media (max-width: 850px) {
  .nav {
    flex-direction: column;
    gap: 12px;
  }

  nav a {
    margin: 0 8px;
  }

  .match-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 32px;
  }
}

.user-box {
  color: #fff;
  font-weight: 700;
  margin-left: 15px;
}

.nav {
  gap: 15px;
  flex-wrap: wrap;
}


.social-share {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-share a,
.copy-btn {
  padding: 9px 12px;
  border-radius: 7px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.whatsapp { background: #25D366; }
.facebook { background: #1877F2; }
.twitter { background: #000; }
.copy-btn { background: #555; }
.instagram { background: #E4405F; }

.hidden-prediction {
  display: none;
}

.all-predictions-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.space  {
  padding: 2px;
  margin: 16px;
 }

 .prediction-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin: 10px 0;
}

.score-badge {
  background: #e8f1ff;
  color: #0056d6;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid #cfe0ff;
}

.winner-badge {
  background: #fff4d6;
  color: #b8860b;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid #ffe08a;
}

.time-badge {
  background: #eef7ee;
  color: #1f7a1f;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid #cdeccd;
}

.prediction-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.score-badge {
  background: #e8f1ff;
  color: #0056d6;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid #cfe0ff;
}

.winner-badge {
  background: #fff4d6;
  color: #b8860b;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  border: 1px solid #ffe08a;
}

.time-badge {
  background: #eef7ee;
  color: #1f7a1f;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid #cdeccd;
}

.saved-card {
  border-left: 5px solid #007bff;
}

.saved-card:hover {
  transform: translateY(-2px);
  transition: 0.2s;
}

.language-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  padding: 6px 10px;
  border-radius: 8px;
}

#google_translate_element {
  background: white;
  padding: 3px 6px;
  border-radius: 6px;
}

.goog-te-gadget {
  font-size: 0 !important;
}

.goog-te-gadget span {
  display: none;
}

.goog-te-combo {
  padding: 5px;
  border-radius: 5px;
  border: none;
  font-weight: 600;
}

.team-name {
  display: inline-block;
  margin: 3px 5px;
}

.vs-text {
  color: #777;
  font-size: 14px;
  margin: 0 6px;
}

.match-card h3 {
  line-height: 1.5;
}

.flag {
  width: 24px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.flag {
  width: 24px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.match-status {
  font-size: 14px;
  font-weight: 500;
  color: #777;
  margin: 10px 0;
  padding: 6px 10px;
  background: #f5f5f5;
  border-radius: 6px;
}

.score {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin: 10px 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(135deg,#0d47a1,#1565c0);
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
}

.nav {
  padding: 12px 20px;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


#topBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 55px;
  height: 55px;

  border: none;
  border-radius: 50%;

  background: #0d6efd;
  color: white;

  font-size: 24px;
  font-weight: bold;

  cursor: pointer;

  box-shadow: 0 4px 15px rgba(0,0,0,.25);

  opacity: 0;
  visibility: hidden;

  transition: all .3s ease;

  z-index: 9999;
}

#topBtn.show {
  opacity: 1;
  visibility: visible;
}

#topBtn:hover {
  transform: translateY(-4px);
  background: #0056d6;
}

body {
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.35) 0 2px, transparent 3px),
    linear-gradient(135deg, #eaf4ff, #f7fbff);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 15px;
}

.football-bg {
  position: absolute;
  right: 8%;
  top: 20%;
  font-size: 130px;
  opacity: .12;
  transform: rotate(-20deg);
}

.match-card {
  position: relative;
  border-top: 4px solid #00a86b;
  overflow: hidden;
}

.match-card::after {
  content: "⚽";
  position: absolute;
  right: 15px;
  bottom: 10px;
  font-size: 45px;
  opacity: .06;
}

.match-card:hover {
  transform: translateY(-4px);
  transition: .25s ease;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: #063970;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #00a86b;
  margin: 10px auto 0;
  border-radius: 10px;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #063970;
  color: white;
  text-align: center;
  font-weight: 800;
}

.stats-strip div {
  padding: 18px 10px;
  border-right: 1px solid rgba(255,255,255,.15);
}

@media (max-width: 768px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.match-search-box {
  max-width: 600px;
  margin: 20px auto 30px;
}

.match-search-box input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 30px;
  border: 2px solid #dbeafe;
  font-size: 16px;
  outline: none;
  box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.match-search-box input:focus {
  border-color: #0d6efd;
}

.points-badge {
  display: inline-block;
  background: #e8fff1;
  color: #008f4c;
  padding: 7px 14px;
  border-radius: 20px;
  font-weight: 800;
}

.leader-card {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: white;
  padding: 15px 20px;
  margin-bottom: 10px;

  border-radius: 10px;

  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.leader-rank {
  font-size: 20px;
  font-weight: bold;
  color: #ff9800;
}

.leader-name {
  flex: 1;
  margin-left: 20px;
  font-weight: 600;
}

.leader-points {
  color: #008f4c;
  font-weight: 700;
}

.score-label-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.score-label-row span {
  display: block;
  font-weight: 700;
  color: #063970;
  margin-bottom: 6px;
}

.score-vs {
  font-size: 24px;
  font-weight: 900;
  padding-bottom: 12px;
}

.warning-modal {
  display: none;
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,.6);

  z-index: 99999;

  justify-content: center;
  align-items: center;
}

.warning-box {
  background: white;
  width: 90%;
  max-width: 420px;

  padding: 25px;

  border-radius: 15px;

  text-align: center;

  animation: popup .25s ease;
}

.warning-icon {
  font-size: 60px;
  margin-bottom: 10px;
}

.warning-box h3 {
  color: #d32f2f;
  margin-bottom: 10px;
}

.warning-box p {
  font-size: 16px;
  line-height: 1.5;
}

.warning-box button {
  margin-top: 15px;

  background: #0d6efd;
  color: white;

  border: none;

  padding: 10px 25px;

  border-radius: 8px;

  cursor: pointer;
}

@keyframes popup {
  from {
    transform: scale(.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.team-score-box {
  text-align: center;
}

.team-score-box span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-weight: 700;
  color: #063970;

  margin-bottom: 8px;
}

.team-score-box .flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.goal-row {
  margin-bottom: 10px;
}

.small-btn {
  margin-top: 8px;
  background: #00a86b;
  color: white;
  border: none;
  padding: 9px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
}

.my-rank {
  border: 2px solid #00a86b;
  background: #eafff4;
}

.leader-card span:first-child {
  color: #ff9800;
  font-size: 20px;
  font-weight: 900;
}

.leaderboard-wrapper {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
  align-items: start;
}

.leaderboard-sidebar {
  position: sticky;
  top: 100px;
}

.points-rules-box {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,.1);
}

.points-rules-box h3 {
  margin-top: 0;
  color: #063970;
}

.points-rules-box p {
  margin: 12px 0;
  font-weight: 600;
}

.points-rules-box strong {
  color: #00a86b;
}

@media (max-width: 900px) {
  .leaderboard-wrapper {
    grid-template-columns: 1fr;
  }

  .leaderboard-sidebar {
    position: static;
  }
}
.notif-link {
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 22px;
  margin-left: 15px;
}

.notif-count {
  position: absolute;
  top: -8px;
  right: -10px;

  background: red;
  color: white;

  min-width: 18px;
  height: 18px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 11px;
  font-weight: bold;
}