* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #f8fafc;
  background:
    radial-gradient(circle at top left, #14532d55, transparent 35%),
    radial-gradient(circle at top right, #0ea5e955, transparent 35%),
    #07090e;
  font-family: Inter, Arial, sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 6%;
  border-bottom: 1px solid #ffffff14;
  background: #07090ed9;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: #061006;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand small {
  display: block;
  color: #94a3b8;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 20px;
  color: #cbd5e1;
  font-weight: 800;
}

nav a:hover {
  color: #22c55e;
}

nav a.active {
  color: #22c55e;
}

.actions,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
}

.btn:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  background: #ffffff12;
  opacity: 0.72;
}

.primary {
  color: #061006;
  background: linear-gradient(135deg, #22c55e, #facc15);
}

.ghost {
  color: #fff;
  border: 1px solid #ffffff1f;
  background: #ffffff12;
}

.success-button {
  color: #22c55e;
  border-color: #22c55e88;
}

.notification-btn {
  position: relative;
  display: grid;
  width: 46px;
  min-height: 46px;
  place-items: center;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  color: #facc15;
  background: #ffffff10;
  font-weight: 900;
}

.notification-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-btn span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #061006;
  border-radius: 999px;
  color: #061006;
  background: #22c55e;
  font-size: 12px;
}

.notification-btn span.has-notifications {
  background: linear-gradient(135deg, #f97316, #facc15);
}

.notification-panel {
  position: fixed;
  top: 82px;
  right: 6%;
  z-index: 20;
  width: min(360px, 88vw);
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  padding: 14px;
  background: #07120c;
  box-shadow: 0 24px 80px #000b;
}

.notification-panel[hidden] {
  display: none;
}

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

.notification-panel-top button,
.notification-item button {
  border: 0;
  color: #facc15;
  background: transparent;
  font-weight: 900;
}

.notification-item {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 10px;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  padding: 14px 42px 14px 14px;
  background: #ffffff08;
}

.notification-item button {
  position: absolute;
  top: 10px;
  right: 12px;
}

.notification-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-title small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.notification-item p {
  margin: 0;
  color: #94a3b8;
  font-weight: 700;
}

section {
  width: min(1180px, 92%);
  margin: auto;
  padding: 70px 0;
}

.page-back-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin: 28px 0 -34px 6%;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  padding: 9px 14px;
  color: #f8fafc;
  background: #ffffff10;
  font-weight: 900;
}

.page-back-button:hover {
  color: #061006;
  background: linear-gradient(135deg, #22c55e, #facc15);
}

.hero {
  display: grid;
  min-height: 86vh;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  color: #22c55e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 18px;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.85;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 0.95;
}

h3 {
  margin-bottom: 8px;
}

p {
  color: #aab6c7;
  line-height: 1.65;
}

.hero p {
  max-width: 680px;
  font-size: 19px;
}

.stats-row {
  margin-top: 20px;
}

.stat {
  padding: 10px 14px;
  border: 1px solid #ffffff18;
  border-radius: 999px;
  color: #cbd5e1;
  background: #ffffff0a;
}

.stat b {
  color: #fff;
}

.card,
.panel {
  border: 1px solid #ffffff18;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff14, #ffffff08);
  box-shadow: 0 24px 80px #0008;
}

.card,
.panel {
  padding: 24px;
}

.home-auth form {
  grid-template-columns: 1fr;
}

.home-auth h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.auth-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
}

.auth-single {
  max-width: 620px;
}

.auth-switch {
  margin-bottom: 0;
  color: #94a3b8;
  font-weight: 800;
}

.auth-switch a {
  color: #22c55e;
  font-weight: 900;
}

.forgot-password-box {
  margin-top: 16px;
  border: 1px solid #facc1544;
  border-radius: 14px;
  padding: 14px;
  background: #facc150d;
}

.forgot-password-box[hidden] {
  display: none;
}

.forgot-password-box p {
  margin: 0 0 10px;
  color: #cbd5e1;
  font-weight: 800;
}

.forgot-password-btn {
  border: 0;
  color: #061006;
  border-radius: 10px;
  padding: 10px 12px;
  background: #facc15;
  font-weight: 900;
  cursor: pointer;
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  color: #facc15;
  font-weight: 900;
}

.form-message.error {
  color: #fb7185;
}

.form-message.success {
  color: #22c55e;
}

.champion-note {
  margin: -4px 0 0;
  border: 1px solid #facc1533;
  border-radius: 12px;
  padding: 12px;
  color: #facc15;
  background: #facc150c;
  font-size: 13px;
  font-weight: 800;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #94a3b8;
  margin-bottom: 22px;
}

.pill,
.notice {
  display: inline-block;
  border: 1px solid #22c55e55;
  border-radius: 999px;
  padding: 7px 10px;
  color: #22c55e;
  background: #22c55e1a;
  font-weight: 900;
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.team {
  border: 1px solid #ffffff14;
  border-radius: 14px;
  padding: 18px;
  background: #ffffff0a;
}

.flag {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #111827;
  background: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.team b,
.team small {
  display: block;
}

.team small {
  color: #94a3b8;
}

.choices,
.plans,
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.choices {
  margin-top: 18px;
}

.choice,
.mini-btn,
.fixture button {
  min-height: 44px;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  color: #fff;
  background: #ffffff10;
  font-weight: 900;
  cursor: pointer;
}

.choice.active,
.mini-btn.selected {
  color: #061006;
  border: 0;
  background: #22c55e;
}

.scoring-note {
  margin: 16px 0 0;
  border: 1px solid #facc1555;
  border-radius: 14px;
  padding: 14px;
  color: #facc15;
  background: #facc151a;
  font-weight: 800;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.profile-initials {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid #22c55e;
  border-radius: 50%;
  color: #061006;
  background: linear-gradient(135deg, #22c55e, #facc15);
  font-size: 26px;
  font-weight: 1000;
  box-shadow: 0 18px 50px #22c55e33;
}

.powered-by,
.stats-heading span {
  color: #fff;
  font-style: italic;
  font-weight: 900;
}

.stats-heading {
  font-weight: 1000;
}

.powered-by b,
.stats-heading b {
  font-style: italic;
  background: linear-gradient(90deg, #facc15, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.green-stat {
  color: #22c55e;
}

.danger-stat {
  color: #fb7185;
}

.fixture {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 18px;
  background: #ffffff0a;
}

.fixture-actions {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  gap: 8px;
}

.fixture-actions.knockout-actions {
  grid-template-columns: repeat(2, 110px);
}

.score-prediction {
  display: grid;
  grid-template-columns: 110px 18px 110px;
  align-items: end;
  gap: 8px;
}

.score-prediction label {
  display: grid;
  gap: 6px;
}

.score-prediction label span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.score-prediction input,
.score-prediction select {
  min-height: 44px;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  color: #fff;
  background: #ffffff10;
  padding: 10px;
  font-weight: 900;
}

.score-prediction b {
  align-self: center;
  color: #facc15;
  text-align: center;
}

.qualifier-pick {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.qualifier-pick small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.locked {
  opacity: 0.55;
}

.locked button {
  cursor: not-allowed;
}

.countdown {
  margin: 6px 0 0;
  color: #94a3b8;
}

.countdown b {
  color: #facc15;
}

.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 14px;
  background: #ffffff0a;
}

.save-bar span {
  color: #facc15;
  font-weight: 900;
}

.bottom-save {
  margin-top: 16px;
  margin-bottom: 0;
}

.price {
  min-height: 230px;
}

.price.featured {
  border-color: #22c55e88;
  background: #22c55e1f;
}

.price strong {
  display: block;
  margin-top: 28px;
  font-size: 34px;
}

.tier {
  color: #facc15;
  font-weight: 900;
}

.league-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.league-actions-after-list {
  margin-top: 24px;
}

.league-action-card {
  display: grid;
  min-height: 128px;
  align-content: center;
  gap: 8px;
  border: 1px solid #ffffff18;
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff14, #ffffff08);
  box-shadow: 0 24px 80px #0008;
}

.league-action-card span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #061006;
  background: #facc15;
  font-size: 24px;
  font-weight: 900;
}

.league-action-card b {
  font-size: 22px;
}

.league-action-card small {
  color: #94a3b8;
  line-height: 1.5;
}

.managed-league-card {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid #ffffff18;
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff14, #ffffff08);
  box-shadow: 0 24px 80px #0008;
}

.managed-league-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.managed-league-top h3 {
  margin-top: 0;
}

.managed-league-top p {
  margin-bottom: 0;
}

.status-pill {
  display: inline-flex;
  min-width: max-content;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
}

.active-status {
  color: #061006;
  background: #22c55e;
}

.review-status {
  color: #111827;
  background: #facc15;
}

.finished-status {
  color: #e2e8f0;
  background: #334155;
}

.removed-status {
  color: #fecdd3;
  border: 1px solid #fb718555;
  background: #fb71851f;
}

.manage-form {
  grid-template-columns: repeat(3, 1fr);
}

.league-prize-edit-form {
  border: 1px solid #facc1533;
  border-radius: 16px;
  padding: 14px;
  background: #facc150c;
}

.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.league-join-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff08;
}

.league-join-control b,
.league-join-control small {
  display: block;
}

.league-join-control small {
  margin-top: 4px;
  color: #94a3b8;
  font-weight: 800;
}

.public-league-control {
  border-color: #22c55e44;
  background: linear-gradient(135deg, #22c55e12, #facc1510);
}

.join-toggle {
  position: relative;
  width: 56px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  background: #334155;
}

.join-toggle span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.join-toggle.on {
  border-color: #22c55e88;
  background: #22c55e;
}

.join-toggle.on span {
  transform: translateX(24px);
}

.join-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.league-type-info div {
  border: 1px solid #ffffff18;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff0a;
}

.league-type-info b {
  color: #facc15;
}

.league-type-info p {
  margin-bottom: 0;
}

.prize-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border: 1px solid #facc1533;
  border-radius: 16px;
  padding: 16px;
  background: #facc150c;
}

.prize-fields h3,
.prize-fields p {
  grid-column: 1 / -1;
  margin: 0;
}

.prize-fields h3 {
  color: #facc15;
}

.danger {
  color: #fff;
  border: 1px solid #fb718555;
  background: #fb718522;
}

form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.join-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.wide {
  grid-column: 1 / -1;
}

.center {
  text-align: center;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #94a3b8;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  color: #fff;
  background: #ffffff10;
  padding: 0 14px;
}

select option {
  color: #111827;
}

.table {
  overflow: hidden;
  border: 1px solid #ffffff18;
  border-radius: 16px;
}

.tr {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 1fr 0.7fr;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #ffffff12;
  background: #ffffff0a;
}

.tr:last-child {
  border-bottom: 0;
}

.head {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-list {
  display: grid;
  gap: 14px;
}

[data-user-leagues-list] {
  display: grid;
  gap: 14px;
}

.leaderboard-group {
  overflow: hidden;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff14, #ffffff08);
  box-shadow: 0 24px 80px #0008;
}

.leaderboard-toggle {
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: transparent;
  padding: 18px;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.leaderboard-toggle strong {
  color: #22c55e;
  font-size: 13px;
}

.league-type-pill {
  display: inline-flex;
  width: max-content;
  margin-top: 4px;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  padding: 5px 9px;
  color: #facc15;
  font-size: 11px;
  font-weight: 1000;
}

.arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #061006;
  background: #facc15;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.leaderboard-group.open .arrow {
  transform: rotate(90deg);
}

.leaderboard-content {
  display: none;
  border-top: 1px solid #ffffff12;
  padding: 10px;
}

.leaderboard-group.open .leaderboard-content {
  display: grid;
  gap: 8px;
}

.league-prizes {
  border: 1px solid #facc1533;
  border-radius: 12px;
  background: #facc150c;
}

.points-rules {
  margin: 0 0 18px;
  border: 1px solid #22c55e44;
  border-radius: 12px;
  background: #22c55e0d;
}

.profile-points-rules {
  margin-top: 18px;
}

.league-prizes summary,
.points-rules summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #facc15;
  font-size: 13px;
  font-weight: 800;
}

.league-prizes div,
.points-rules div {
  display: grid;
  gap: 8px;
  border-top: 1px solid #ffffff12;
  padding: 0 14px 12px;
}

.league-prizes p,
.points-rules p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
}

.league-prizes b,
.points-rules b {
  color: #fff;
  text-align: right;
}

.league-name {
  margin-top: 8px;
  border-left: 4px solid #22c55e;
  padding: 10px 12px;
  color: #facc15;
  font-weight: 900;
}

.rank-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff0a;
}

.rank-row > span,
.rank-position {
  color: #22c55e;
  font-weight: 900;
}

.rank-position {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rank-trend {
  display: inline-block;
  margin-left: 5px;
  font-size: 16px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
}

.rank-trend.up {
  color: #22c55e;
}

.rank-trend.down {
  color: #ef4444;
}

.rank-trend.same {
  display: none;
}

[data-profile-maldives-rank-trend] {
  display: inline-flex;
  vertical-align: middle;
}

.rank-user {
  display: grid;
  gap: 3px;
}

.rank-user b {
  display: block;
}

.rank-user em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
}

.rank-row small {
  color: #94a3b8;
}

.rank-row strong {
  color: #facc15;
}

.rank-row.current-user-rank {
  border-color: #22c55e88;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.22), rgba(255, 255, 255, 0.06));
}

.rank-row.current-user-rank b {
  color: #22c55e;
}

.is-hidden-rank {
  display: none;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-card {
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff14, #ffffff08);
  box-shadow: 0 24px 80px #0008;
}

.news-card span {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #061006;
  background: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.news-card small {
  color: #94a3b8;
  font-weight: 800;
}

.news-card small b {
  color: #f8fafc;
}

.is-hidden-news {
  display: none;
}

.admin-news-panel {
  margin-top: 18px;
}

.admin-news-list {
  display: grid;
  gap: 12px;
}

.admin-news-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff0a;
}

.admin-news-row b,
.admin-news-row small {
  display: block;
}

.admin-news-row small {
  margin-top: 4px;
  color: #94a3b8;
  font-weight: 800;
}

.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.ad-modal[hidden] {
  display: none;
}

.ad-modal-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid #ffffff24;
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(180deg, #172033, #0b111d);
  box-shadow: 0 24px 90px #000c;
}

.ad-modal-card h2 {
  font-size: clamp(30px, 5vw, 46px);
}

.ad-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 14px 0;
  border-radius: 14px;
  object-fit: cover;
  background: #ffffff0a;
}

.ad-modal-card strong {
  display: block;
  margin-top: 18px;
  color: #facc15;
}

.ad-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid #ffffff1f;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: #ffffff12;
  font-weight: 900;
}

.ad-close:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

.ad-size-note {
  margin-top: 0;
  border: 1px solid #facc1533;
  border-radius: 12px;
  padding: 10px;
  color: #facc15;
  background: #facc150c;
  font-weight: 900;
}

.home-ad-grid {
  display: grid;
  gap: 16px;
}

[data-home-ad][hidden] {
  display: none !important;
}

.home-top-ad {
  margin-bottom: 22px;
}

.home-banner-section {
  padding: 0 0 8px;
  margin-top: -36px;
}

.home-ad-slot {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #ffffff18;
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.22), rgba(250, 204, 21, 0.12)),
    #ffffff0a;
  box-shadow: 0 24px 80px #0008;
}

.home-ad-slot.has-image {
  display: grid;
  min-height: 0;
  aspect-ratio: 4 / 1;
  align-content: end;
  background-color: #050814;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.home-ad-slot span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #061006;
  background: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.home-ad-slot h3,
.home-ad-slot p {
  max-width: 620px;
}

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

.square-sponsor-slot {
  display: grid;
  gap: 10px;
  min-width: 0;
  text-align: center;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 14px;
  background: #ffffff0a;
  box-shadow: 0 18px 55px #0007;
}

.square-sponsor-slot h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 1000;
  line-height: 1.2;
  text-align: center;
}

.square-sponsor-slot a {
  display: block;
}

.square-sponsor-image,
.square-sponsor-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  border: 1px solid #ffffff18;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(250, 204, 21, 0.14)),
    #050814;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  object-fit: cover;
}

.square-sponsor-slot p {
  margin: 0;
  color: #facc15;
  font-size: 16px;
  font-weight: 1000;
  text-align: center;
}

.login-ad-slot {
  margin: 0 auto 18px;
}

.login-ad-slot.has-image {
  aspect-ratio: 4 / 1;
  background-size: cover;
}

.login-ad-slot.has-image span,
.login-ad-slot.has-image p {
  display: none;
}

.ad-display-heading {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 1000;
  text-align: left;
}

.login-ad-slot.plain-ad-slot {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto 28px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clear: both;
  aspect-ratio: auto;
}

.plain-ad-image {
  display: block;
  width: 100%;
  height: auto;
}

.plain-ad-slot a {
  display: block;
}

.clickable-ad {
  cursor: pointer;
}

.user-message-ticker {
  display: grid;
  width: min(1180px, 92%);
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 4px;
  margin: 14px auto 0;
  overflow: visible;
}

.user-message-ticker > span {
  color: #facc15;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.user-message-ticker div {
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid #22c55e55;
  border-radius: 999px;
  padding: 7px 0;
  background: #061006;
  box-shadow: 0 16px 45px #0007;
}

.user-message-ticker p {
  display: inline-flex;
  width: max-content;
  min-width: 0;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: ticker-scroll 26s linear infinite;
}

.ticker-user {
  color: #facc15;
  font-weight: 1000;
  margin-right: 8px;
}

.ticker-official {
  margin-right: 8px;
  font-weight: 1000;
  background: linear-gradient(90deg, #22c55e, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ticker-loop {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  white-space: nowrap;
  padding-right: 34px;
}

.ticker-separator {
  display: inline-block;
  margin: 0 22px;
  color: #facc15;
}

.user-message-panel {
  margin-top: 12px;
}

.user-message-panel form {
  margin: 0;
  border-top: 1px solid #ffffff12;
  padding: 14px;
}

.ticker-rules {
  display: grid;
  gap: 7px;
  border-top: 1px solid #ffffff12;
  padding: 0 14px 12px;
}

.ticker-rules p {
  display: block;
  margin: 0;
  color: #94a3b8;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
}

.ticker-rules p:not(:first-child)::before {
  content: "* ";
  color: #facc15;
}

.ticker-message-field {
  position: relative;
}

.mention-suggestions {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 12;
  display: grid;
  overflow: hidden;
  border: 1px solid #22c55e55;
  border-radius: 12px;
  background: #061006;
  box-shadow: 0 16px 45px #0009;
}

.mention-suggestions button {
  border: 0;
  border-bottom: 1px solid #ffffff12;
  padding: 11px 13px;
  color: #f8fafc;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.mention-suggestions button:hover {
  color: #061006;
  background: linear-gradient(90deg, #22c55e, #facc15);
}

.ticker-admin-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 8px;
}

.ticker-admin-control span,
.ticker-admin-control strong {
  display: block;
}

.ticker-admin-control span {
  color: #94a3b8;
  font-weight: 900;
}

.ticker-admin-control strong {
  margin-top: 4px;
  font-size: 26px;
}

.ticker-payment-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 14px 12px;
}

.ticker-payment-box div,
.ticker-payment-box button {
  min-width: 0;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff08;
  color: #f8fafc;
  text-align: left;
}

.ticker-payment-box button {
  cursor: pointer;
  font: inherit;
}

.ticker-payment-box button.copied {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e66;
}

.ticker-payment-box span,
.user-message-admin-row small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.ticker-payment-box b {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.user-message-history {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.user-message-history h4 {
  margin: 0;
  color: #f8fafc;
}

.user-message-history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff08;
}

.user-message-history-row b,
.user-message-history-row small {
  display: block;
}

.user-message-history-row small {
  margin-top: 4px;
  color: #94a3b8;
  font-weight: 800;
}

.user-message-admin-row {
  align-items: center;
}

.admin-message-name {
  background: linear-gradient(90deg, #22c55e, #facc15);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.admin-ticker-form {
  margin: 0;
  border-top: 1px solid #ffffff12;
  padding: 14px;
}

.admin-ticker-dropdown {
  margin: 16px 0;
}

.user-message-admin-row span small {
  margin-top: 5px;
}

.user-message-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 620px) {
  .user-message-ticker {
    width: min(100% - 20px, 1180px);
    gap: 3px;
    margin-top: 10px;
  }

  .user-message-ticker > span {
    font-size: 9px;
  }

  .user-message-ticker p {
    font-size: 11px;
    animation-duration: 20s;
  }

  .ticker-separator {
    margin: 0 14px;
  }

  .ticker-admin-control {
    align-items: stretch;
    flex-direction: column;
  }

  .ticker-payment-box {
    grid-template-columns: 1fr;
  }
}

.plain-ad-slot .ad-display-heading {
  display: block;
}

.login-ad-slot.plain-ad-slot + .auth-single {
  clear: both;
  margin-top: 28px;
}

.mobile-ad-slot {
  display: grid;
  align-content: end;
  min-height: 260px;
  margin: 0 0 18px;
  border: 1px solid #ffffff18;
  border-radius: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 82% 20%, rgba(168, 85, 247, 0.32), transparent 12rem),
    linear-gradient(180deg, rgba(34, 197, 94, 0.16), rgba(250, 204, 21, 0.1)),
    #ffffff0a;
  box-shadow: 0 24px 80px #0008;
}

.mobile-ad-slot.has-image {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}

.mobile-ad-slot span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #061006;
  background: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.admin-summary .panel span {
  color: #94a3b8;
  font-weight: 900;
}

.admin-summary .panel strong {
  display: block;
  margin: 8px 0;
  color: #facc15;
  font-size: 28px;
}

.admin-square {
  display: block;
  color: inherit;
}

.admin-users-square {
  display: grid;
  gap: 10px;
}

.admin-users-square div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-users-square b {
  color: #94a3b8;
  font-size: 13px;
}

.admin-users-square strong {
  margin: 0 !important;
}

.warning-square {
  border-color: #facc1588;
  background: linear-gradient(180deg, #facc1522, #ffffff08);
}

.warning-square strong {
  display: grid !important;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #111827 !important;
  background: #facc15;
}

.admin-list,
.score-list,
.activity-list {
  display: grid;
  gap: 12px;
}

.admin-person,
.score-card,
.activity-list div {
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff14, #ffffff08);
  box-shadow: 0 24px 80px #0008;
}

.match-status-text {
  display: inline-flex;
  margin-top: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: #111827;
  background: #facc15;
  font-size: 13px;
  font-weight: 900;
}

.result-history-block,
.fixture-history-block,
.news-history-block {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff14, #ffffff08);
  box-shadow: 0 24px 80px #0008;
}

.result-history-toggle {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: transparent;
  padding: 14px;
  text-align: left;
  font-weight: 900;
}

.result-history-toggle strong {
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #061006;
  background: #22c55e;
}

.result-history-panel,
.fixture-history-panel,
.news-history-panel {
  display: none;
  border-top: 1px solid #ffffff12;
  padding: 14px;
}

.result-history-block.open .result-history-panel,
.fixture-history-block.open .fixture-history-panel,
.news-history-block.open .news-history-panel {
  display: grid;
  gap: 12px;
}

.result-history-block.open .arrow,
.fixture-history-block.open .arrow,
.news-history-block.open .arrow {
  transform: rotate(90deg);
}

.result-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.result-history-top h3 {
  margin-top: 0;
}

.result-edit {
  margin-top: 14px;
  border-top: 1px solid #ffffff12;
  padding-top: 12px;
}

.result-edit summary {
  cursor: pointer;
  color: #22c55e;
  font-size: 13px;
  font-weight: 900;
}

.result-edit form {
  margin-top: 12px;
}

.removed-result-card {
  border-color: #fb71852e;
  background: #fb71850d;
  opacity: 0.84;
}

.removed-result-card h3 {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #fb7185;
}

.removed-history-text {
  color: #fecdd3;
  background: #fb71851f;
}

.empty-result-state {
  margin-top: 14px;
  border: 1px dashed #ffffff2b;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  background: #ffffff08;
}

.empty-result-state h3 {
  margin-top: 0;
}

.admin-person {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.admin-person span,
.admin-person small,
.activity-list small {
  color: #94a3b8;
  font-weight: 800;
}

.activity-list div {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr auto;
  gap: 12px;
}

.activity-more {
  border: 1px solid #ffffff18;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff14, #ffffff08);
  box-shadow: 0 24px 80px #0008;
}

.activity-more summary {
  cursor: pointer;
  padding: 16px 18px;
  color: #22c55e;
  font-weight: 1000;
}

.activity-more .activity-list {
  padding: 0 12px 12px;
}

.username-list {
  display: grid;
  gap: 10px;
}

.username-list div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  border: 1px solid #ffffff18;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff0a;
}

.username-list span {
  color: #22c55e;
  font-weight: 900;
}

.predictions-history {
  margin-top: 34px;
}

.prediction-history-list {
  display: grid;
  gap: 12px;
}

.prediction-history-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff0a;
}

.prediction-history-row b,
.prediction-history-row small {
  display: block;
}

.prediction-history-row small {
  margin-top: 4px;
  color: #94a3b8;
}

.prediction-result {
  align-self: start;
  padding: 0;
  font-weight: 900;
}

.prediction-result.won {
  color: #22c55e;
}

.prediction-result.lost {
  color: #fb7185;
}

.prediction-result.pending {
  color: #facc15;
}

.prediction-result.pending a,
.prediction-result.pending button {
  display: inline-flex;
  margin-left: 8px;
  border: 1px solid #ffffff24;
  border-radius: 999px;
  padding: 3px 8px;
  color: #061006;
  background: #facc15;
  font-size: 12px;
  font-weight: 1000;
}

.prediction-result.pending button {
  cursor: pointer;
}

.admin-match-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-match-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff0a;
}

.removed-match-row {
  border-color: #fb71852e;
  background: #fb71850d;
  opacity: 0.78;
}

.removed-match-row b {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #fb7185;
}

.admin-match-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-match-row b,
.admin-match-row small {
  display: block;
}

.admin-match-row small {
  margin-top: 4px;
  color: #94a3b8;
  font-weight: 800;
}

.fiya-link {
  color: #facc15;
  background: linear-gradient(90deg, #facc15, #22c55e 45%, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration-color: #22c55e;
  text-underline-offset: 5px;
}

.fiya-link:hover {
  background: linear-gradient(90deg, #fde68a, #a855f7 65%, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 30px 6%;
  border-top: 1px solid #ffffff14;
  color: #94a3b8;
}

footer b {
  color: #fff;
}

.footer-admin-link {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.footer-admin-link:hover {
  color: #a855f7;
}

.security-panel {
  max-width: 720px;
}

.profile-review-list,
.profile-review-actions {
  display: grid;
  gap: 12px;
}

.profile-review-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff14, #ffffff08);
  box-shadow: 0 24px 80px #0008;
}

.profile-review-row small {
  display: block;
  margin-top: 4px;
  color: #94a3b8;
  font-weight: 800;
}

.profile-review-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-review-actions label {
  display: grid;
  gap: 6px;
}

.profile-review-actions label span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.fix-reason-box {
  display: grid;
  gap: 8px;
}

.fix-reason-box p {
  margin: 0;
  border: 1px solid #fb718555;
  border-radius: 12px;
  padding: 12px;
  color: #fecdd3;
  background: #fb71850f;
  font-weight: 900;
}

@media (max-width: 850px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }

  header .brand {
    grid-column: 1 / -1;
  }

  nav {
    width: auto;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
  }

  header .actions {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  header .actions .btn {
    min-height: 34px;
    border-radius: 10px;
    padding: 7px 11px;
    font-size: 13px;
  }

  header .notification-btn {
    width: 34px;
    min-height: 34px;
    border-radius: 10px;
    font-size: 13px;
  }

  header .notification-btn span {
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .hero,
  .grid3,
  .grid2,
  .auth-grid,
  .admin-summary,
  .ad-admin-grid,
  .admin-person,
  .admin-news-row,
  .activity-list div,
  .admin-match-row,
  .prediction-history-row,
  form,
  .manage-form,
  .league-type-info,
  .prize-fields,
  .league-actions,
  .join-form {
    grid-template-columns: 1fr;
  }

  .profile-review-row,
  .profile-review-actions {
    grid-template-columns: 1fr;
  }

  .managed-league-top {
    flex-direction: column;
  }

  .fixture {
    grid-template-columns: 1fr;
  }

  .save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .fixture-actions {
    grid-template-columns: 1fr 1fr;
  }

  .score-prediction {
    grid-template-columns: 1fr 18px 1fr;
  }

  .prediction-history-row {
    padding-right: 70px;
  }

  .prediction-result {
    position: absolute;
    top: 16px;
    right: 16px;
  }

  .teams,
  .choices,
  .plans,
  .tabs,
  .rank-row,
  .leaderboard-toggle {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 58px;
  }
}

