:root {
  --ink: #142033;
  --muted: #5f6f86;
  --line: #dde4ee;
  --navy: #0b2545;
  --navy-2: #13315c;
  --gold: #e0a810;
  --gold-soft: #fff4d4;
  --green: #17845f;
  --red: #c0392b;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --rose: #b0306a;
  --pitch: #127a4b;
  --violet: #5b3cc4;
  --orange: #d9631e;
  --accent: var(--navy-2);
  --radius: 14px;
  --shadow: 0 14px 40px rgba(16, 30, 54, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; color: var(--navy); }
.brand small { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--navy-2);
}
.nav-links a:hover { background: #edf2f9; }
.nav-links a.active { background: var(--navy); color: #fff; }
.menu-button {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between;
}
.menu-button span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(44px, 7vw, 90px) clamp(16px, 5vw, 72px);
  color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(224, 168, 16, 0.35), transparent 40%),
              linear-gradient(130deg, var(--navy) 0%, var(--accent) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto -80px -120px auto; width: 380px; height: 380px;
  border-radius: 50%; border: 60px solid rgba(255, 255, 255, 0.06);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
.presents { margin: 0 0 10px; color: var(--gold); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.hero h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(38px, 6.5vw, 76px); line-height: 1.02; }
.hero p.lead { max-width: 640px; font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.facts { display: grid; gap: 10px; }
.fact {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18);
}
.fact .ico { font-size: 22px; width: 32px; text-align: center; }
.fact small { display: block; color: rgba(255, 255, 255, 0.7); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.fact strong { font-size: 16px; }
.theme-mrmrs { --accent: #7a1f4f; }
.theme-cricket { --accent: #0f6b45; }
.theme-mega { --accent: #3d2a8f; }
.theme-pitch { --accent: #9c4413; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 800; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button.primary { background: var(--gold); color: #1d1500; box-shadow: 0 8px 20px rgba(224, 168, 16, .3); }
.button.dark { background: var(--navy); color: #fff; }
.button.secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.button.ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.button.danger { background: var(--red); color: #fff; }
.button.small { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.button.block { width: 100%; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 6vw, 76px) clamp(16px, 5vw, 72px); }
.section.white { background: #fff; }
.section-head { max-width: 860px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 6px; color: var(--gold); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; color: var(--navy); }
.section-head p { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-card { padding: 22px; }
.info-card h3 { margin: 0 0 10px; font-size: 18px; color: var(--navy); display: flex; gap: 8px; align-items: center; }
.info-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.info-card li { margin: 6px 0; }
.info-card p { margin: 6px 0; color: var(--muted); }
.price { font-size: 30px; font-weight: 900; color: var(--navy); }
.note-strip {
  margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--gold-soft);
  border: 1px solid #f1d98a; color: #6b4e00; font-weight: 600;
}
.note-strip.red { background: #fdecea; border-color: #f5c2bc; color: #8a2116; }

/* ---------- event cards (home) ---------- */
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.event-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 260px; padding: 26px; border-radius: 18px; color: #fff;
  background: linear-gradient(140deg, var(--navy), var(--accent));
  box-shadow: var(--shadow); transition: transform .15s;
}
.event-card:hover { transform: translateY(-3px); }
.event-card .emoji { position: absolute; right: 18px; top: 10px; font-size: 76px; opacity: .25; }
.event-card h3 { margin: 6px 0; font-size: 28px; font-family: "Playfair Display", Georgia, serif; }
.event-card p { margin: 0; color: rgba(255, 255, 255, .85); }
.event-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
}
.chip.gold { background: var(--gold); color: #1d1500; border-color: transparent; }
.chip.soon { background: rgba(0, 0, 0, .25); }
.chip.light { background: #eef2f8; color: var(--navy-2); border-color: var(--line); }
.chip.ok { background: #e3f5ec; color: #0d6b45; border-color: #bfe6d1; }
.chip.warn { background: #fff4d4; color: #7a5800; border-color: #f1d98a; }
.chip.bad { background: #fdecea; color: #a12a1d; border-color: #f5c2bc; }

/* ---------- forms ---------- */
.form-shell { max-width: 1100px; margin: 0 auto; }
.step { padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.step-title .num {
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 800;
}
.step-title h3 { margin: 0; font-size: 20px; color: var(--navy); }
.step-title p { margin: 0; color: var(--muted); font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.span-2 { grid-column: span 2; }
label.field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
label.field .hint { font-weight: 500; color: var(--muted); font-size: 12px; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd8e5; border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(224, 168, 16, .25); border-color: var(--gold); }
input[readonly] { background: #f3f6fa; }
.req { color: var(--red); }

.upload {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px;
  border: 1.5px dashed #b9c6d8; border-radius: 10px; background: #f8fafd; cursor: pointer; font-weight: 600; font-size: 13px;
}
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .thumb { width: 34px; height: 34px; border-radius: 7px; background: #e5ebf3 center/cover; flex: 0 0 34px; display: grid; place-items: center; font-size: 16px; }
.upload .txt { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload.done { border-style: solid; border-color: #9fd8bd; background: #effaf4; }
.upload.done .txt { color: #0d6b45; }
.upload.busy { border-color: var(--gold); }
.upload.error { border-color: var(--red); background: #fdf0ee; }
.upload .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--gold); width: 0; transition: width .2s; border-radius: 0 0 0 10px; }

.person {
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe;
}
.person h4 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: var(--navy-2); }
.couple-card { border-top: 5px solid var(--rose); }
.couple-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.couple-head h3 { margin: 0; color: var(--navy); }
.cat-badge { padding: 6px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; background: #eef2f8; color: var(--muted); }
.cat-badge.ok { background: #e3f5ec; color: #0d6b45; }
.cat-badge.bad { background: #fdecea; color: #a12a1d; }
.age-pill { font-size: 12px; font-weight: 700; color: var(--muted); }
.age-pill.ok { color: #0d6b45; }
.age-pill.bad { color: var(--red); }

.cat-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cat-option { position: relative; }
.cat-option input { position: absolute; opacity: 0; pointer-events: none; }
.cat-option span {
  display: grid; gap: 2px; padding: 14px 10px; text-align: center; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; font-weight: 800; transition: .12s;
}
.cat-option span small { font-weight: 600; color: var(--muted); font-size: 11px; }
.cat-option span .e { font-size: 24px; }
.cat-option input:checked + span { border-color: var(--pitch); background: #e9f7f0; box-shadow: 0 0 0 3px rgba(18, 122, 75, .15); }
.cat-option input:focus-visible + span { outline: 3px solid var(--gold); }

.players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.player {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #fbfcfe;
}
.player .ph {
  position: relative; width: 92px; height: 108px; border-radius: 10px; background: #e7edf5 center/cover no-repeat;
  display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; cursor: pointer;
  border: 1.5px dashed #b9c6d8; overflow: hidden;
}
.player .ph.has { border-style: solid; border-color: #9fd8bd; color: transparent; }
.player .ph input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.player .ph .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--gold); width: 0; }
.player .pno { font-weight: 900; color: var(--pitch); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.player .pf { display: grid; gap: 8px; }
.player .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.player input, .player select { min-height: 40px; padding: 8px 10px; font-size: 14px; }
.player .upload { min-height: 40px; }
.cv { display: flex; gap: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cv label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.cv input { width: auto; min-height: auto; }

.summary-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; border-radius: var(--radius); background: var(--navy); color: #fff;
}
.summary-bar .tot { font-size: 26px; font-weight: 900; color: var(--gold); }
.summary-bar small { display: block; color: rgba(255, 255, 255, .75); font-weight: 600; }

.status { min-height: 22px; margin: 12px 0; font-weight: 700; }
.status.error { color: var(--red); }
.status.info { color: var(--navy-2); }
.status.ok { color: var(--green); }

.alert {
  padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; margin-bottom: 16px; font-weight: 600;
}
.alert.lock { background: #fff8e6; border-color: #f1d98a; color: #6b4e00; }
.alert.ok { background: #e9f7f0; border-color: #bfe6d1; color: #0d6b45; }
.alert .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.alert .row input { max-width: 240px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--muted); margin: 14px 0; }
.consent input { width: 20px; min-height: 20px; margin-top: 2px; flex: 0 0 20px; }

/* ---------- review ---------- */
.review h2 { margin: 0 0 4px; color: var(--navy); }
.review .sub { color: var(--muted); margin: 0 0 16px; }
.review-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.review-block h4 { margin: 0 0 10px; color: var(--navy-2); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 14px; }
.kv div span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.kv div b { word-break: break-word; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 10px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 18, 36, .6); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; width: min(100%, 980px); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.modal-close {
  position: sticky; float: right; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2;
}

/* ---------- success ---------- */
.success { text-align: center; padding: clamp(24px, 4vw, 40px); }
.success .tick { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 38px; background: #e3f5ec; color: var(--green); }
.success h2 { margin: 0; color: var(--navy); }
.success p { color: var(--muted); }

/* ---------- poster ---------- */
.poster-wrap { overflow-x: auto; }
.poster {
  width: 900px; margin: 0 auto; border-radius: 20px; overflow: hidden; color: #fff; position: relative;
  background: radial-gradient(circle at 15% 0%, rgba(224, 168, 16, .35), transparent 35%),
              radial-gradient(circle at 100% 100%, rgba(31, 186, 116, .35), transparent 40%),
              linear-gradient(160deg, #06213f 0%, #0b3a2a 100%);
  font-family: Inter, Arial, sans-serif;
}
.poster-head { display: flex; align-items: center; gap: 16px; padding: 26px 30px 10px; }
.poster-head img { width: 70px; height: 70px; object-fit: contain; background: #fff; border-radius: 14px; padding: 4px; }
.poster-head .t small { display: block; color: var(--gold); font-weight: 800; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; }
.poster-head .t b { display: block; font-size: 15px; color: rgba(255, 255, 255, .85); }
.poster-head .cat { margin-left: auto; padding: 8px 16px; border-radius: 99px; background: var(--gold); color: #1d1500; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.poster-title { padding: 4px 30px 18px; }
.poster-title h2 { margin: 0; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 46px; line-height: 1.05; }
.poster-title p { margin: 4px 0 0; color: rgba(255, 255, 255, .8); font-weight: 700; letter-spacing: .04em; }
.poster-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 6px 30px 24px; }
.pp { text-align: center; }
.pp .img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, .1) center/cover no-repeat; border: 2px solid rgba(255, 255, 255, .25);
}
.pp .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp .tag { position: absolute; top: 6px; right: 6px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #1d1500; font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.pp b { display: block; margin-top: 8px; font-size: 14px; line-height: 1.2; }
.pp small { display: block; color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 600; margin-top: 2px; }
.poster-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 30px; background: rgba(0, 0, 0, .28); font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.poster-scale { transform-origin: top left; }

.teams-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.teams-toolbar button { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 99px; font: inherit; font-weight: 700; cursor: pointer; }
.teams-toolbar button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.team-list { display: grid; gap: 26px; }
.team-item { display: grid; gap: 10px; }
.team-item .acts { display: flex; justify-content: center; gap: 8px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .big { font-size: 54px; }

/* ---------- coming soon ---------- */
.soon-box { max-width: 720px; margin: 0 auto; text-align: center; padding: clamp(28px, 5vw, 48px); }
.soon-box .big { font-size: 64px; }
.soon-box h2 { margin: 6px 0; color: var(--navy); font-size: clamp(26px, 4vw, 38px); }
.soon-box p { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px clamp(16px, 5vw, 72px);
  background: var(--navy); color: rgba(255, 255, 255, .8); font-size: 13px;
}
.site-footer strong { display: block; color: #fff; font-size: 15px; }
.site-footer a { color: var(--gold); font-weight: 800; white-space: nowrap; }

/* ---------- admin ---------- */
.admin-body { background: #eef2f7; }
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(140deg, #0b2545, #13315c); }
.login-card { width: min(100%, 400px); padding: 30px; text-align: center; }
.login-card img { width: 70px; }
.login-card h1 { margin: 6px 0; color: var(--navy); }
.login-card p { color: var(--muted); margin-top: 0; }
.login-card label { text-align: left; margin-top: 12px; }
.login-card .button { margin-top: 18px; width: 100%; }
.admin-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px clamp(14px, 3vw, 32px); background: var(--navy); color: #fff;
}
.admin-top .brand strong { color: #fff; }
.admin-top .brand small { color: rgba(255, 255, 255, .7); }
.admin-top .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.live i { width: 10px; height: 10px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .7); animation: pulse 1.8s infinite; }
.live.off i { background: #e74c3c; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
.admin-tabs { display: flex; gap: 6px; padding: 12px clamp(14px, 3vw, 32px) 0; overflow-x: auto; }
.admin-tabs button {
  border: 0; background: transparent; padding: 10px 16px; border-radius: 12px 12px 0 0; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.admin-tabs button.active { background: #fff; color: var(--navy); box-shadow: 0 -4px 12px rgba(0, 0, 0, .04); }
.admin-tabs .count { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 4px; border-radius: 99px; background: #dfe6f0; font-size: 12px; }
.admin-tabs button.active .count { background: var(--gold); color: #1d1500; }
.admin-main { margin: 0 clamp(14px, 3vw, 32px) 30px; padding: clamp(14px, 2.5vw, 24px); background: #fff; border-radius: 0 16px 16px 16px; min-height: 60vh; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px; border-radius: 14px; background: #f6f8fc; border: 1px solid var(--line); }
.stat span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat strong { display: block; margin-top: 4px; font-size: 28px; color: var(--navy); line-height: 1.1; }
.stat em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ov-card { padding: 18px; border-radius: 16px; color: #fff; background: linear-gradient(140deg, var(--navy), var(--accent)); cursor: pointer; }
.ov-card h3 { margin: 0 0 10px; font-size: 20px; }
.ov-card .nums { display: flex; gap: 22px; flex-wrap: wrap; }
.ov-card .nums div b { display: block; font-size: 26px; }
.ov-card .nums div span { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .75); text-transform: uppercase; }
.panel-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-top: 14px; }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 16px; color: var(--navy); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.feed li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: #f6f8fc; font-size: 14px; }
.feed li small { display: block; color: var(--muted); }
.pending-groups { display: flex; flex-wrap: wrap; gap: 6px; max-height: 300px; overflow: auto; }
.pending-groups span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #fdecea; color: #8a2116; }
.pending-groups span.done { background: #e3f5ec; color: #0d6b45; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; min-height: 40px; }
.toolbar .grow { flex: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 980px; font-size: 14px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f3f6fb; color: var(--navy-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; }
tr:hover td { background: #fafcff; }
td small { display: block; color: var(--muted); }
td .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: 12px; }
.switch input { width: 36px; min-height: 20px; height: 20px; appearance: none; background: #cfd8e5; border-radius: 99px; position: relative; cursor: pointer; border: 0; padding: 0; transition: .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { left: 18px; }
td select.pay { min-height: 32px; padding: 4px 8px; width: auto; font-size: 13px; font-weight: 700; }
.pay.Paid { color: var(--green); }
.pay.Pending { color: #a06d00; }
.chart-box { position: relative; height: 240px; }
.detail-person { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; }
.detail-person img.ph { width: 90px; height: 110px; object-fit: cover; border-radius: 10px; background: #eef2f8; }
.doc-link { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 8px; background: #eef2f8; font-weight: 700; font-size: 13px; color: var(--navy-2); margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 9px; font-size: 13px; }
}
@media (max-width: 960px) {
  .hero-inner, .info-grid, .event-grid, .panel-row, .overview-grid { grid-template-columns: 1fr; }
  .players { grid-template-columns: 1fr; }
  .cat-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-button { display: flex; }
  .nav-links {
    display: none; position: absolute; left: 12px; right: 12px; top: 66px; flex-direction: column; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 15px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .kv { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .cat-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player { grid-template-columns: 80px minmax(0, 1fr); }
  .player .ph { width: 80px; height: 96px; }
  .player .row2 { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .summary-bar { flex-direction: column; align-items: stretch; }
  .toolbar input, .toolbar select { min-width: 0; width: 100%; }
  .admin-main { border-radius: 0 0 16px 16px; }
}

/* ---------- box cricket rules ---------- */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rule-grid .info-card ul { margin-top: 10px; font-size: 14px; }
.rule-live { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; }
.rule-live:empty { display: none; }
.player select.extra { font-weight: 700; }

/* ---------- mega event ---------- */
.mega-hero { background: radial-gradient(circle at 80% 15%, rgba(255, 70, 160, .45), transparent 40%), radial-gradient(circle at 10% 90%, rgba(224, 168, 16, .35), transparent 40%), linear-gradient(135deg, #12063a 0%, #3d2a8f 60%, #6a1b9a 100%); }
.mega-kicker { margin: 0 0 6px; font-weight: 900; font-size: clamp(16px, 2vw, 20px); color: #ffd36b; }
.mega-star { margin: 10px 0 0; font-size: clamp(22px, 3vw, 32px); font-weight: 900; }
.mega-star span { color: var(--gold); }
.mega-q { text-align: center; }
.mega-q .big { font-size: 44px; }
.mega-q h3 { justify-content: center; }
.mega-banner { margin-top: 18px; display: grid; gap: 12px; padding: 24px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #12063a, #6a1b9a); }
.mega-banner p { margin: 0; font-weight: 800; color: #ffd36b; }
.mega-banner h3 { margin: 4px 0; font-size: clamp(20px, 3vw, 28px); }
.mega-banner small { color: rgba(255, 255, 255, .8); }
.mega-banner .hash { font-weight: 700; color: rgba(255, 255, 255, .7); font-size: 13px; word-break: break-word; }

/* ---------- multiple teams ---------- */
.team-lines { display: grid; gap: 8px; margin: 10px 0; }
.team-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.team-line small { display: block; color: var(--muted); font-weight: 600; }
.team-name-box { padding: 12px 14px; border-radius: 10px; background: #e9f7f0; border: 1px solid #bfe6d1; color: #0d6b45; font-weight: 600; }
.player input[data-f="aadhaarNo"] { letter-spacing: .04em; }

/* ---------- full pitch / mega / awards ---------- */
.theme-award { --accent: #8a5a00; }
.link-btn { border: 0; background: none; color: var(--red); font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; padding: 0 0 0 8px; }
.bearer-row { display: grid; grid-template-columns: 34px 1.3fr 1fr 1fr 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.bearer-row .n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.bearer-row button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; color: var(--red); }
@media (max-width: 640px) {
  .bearer-row { grid-template-columns: 30px 1fr 34px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
  .bearer-row .n { grid-row: 1 / 4; align-self: start; }
  .bearer-row input { grid-column: 2; }
  .bearer-row button { grid-column: 3; grid-row: 1; }
}

/* mobile + group lookup */
.lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.lookup-row .hint { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .lookup-row { grid-template-columns: 1fr; } }
input[readonly] { background: #f3f4f6; color: #374151; }
/* public team counts */
.count-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.count-card { padding: 22px; display: grid; gap: 12px; align-content: start; }
.count-head { display: flex; gap: 12px; align-items: center; }
.count-head .ico { font-size: 34px; }
.count-head h3 { margin: 0; }
.count-head small { color: var(--muted); font-weight: 600; }
.count-big { display: flex; align-items: baseline; gap: 10px; }
.count-big b { font-size: 56px; line-height: 1; color: var(--pitch, #166534); }
.count-big span { font-weight: 700; color: var(--muted); }
.count-sub { margin: -6px 0 0; color: var(--muted); }
.count-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.count-cats div { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 8px; }
.count-cats b { font-size: 18px; }

.pp .img .ini { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 26px; color: #fff; letter-spacing: 1px; }
.player .row2.r-aad { grid-template-columns: minmax(0, 1fr) 118px; }
.masked-opt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); grid-column: 1 / -1; cursor: pointer; }
.masked-opt input { width: 16px; height: 16px; min-height: 0; margin: 0; }

/* PST Meet */
.theme-pst { --accent: #0b2545; }
.hero.theme-pst { background: radial-gradient(circle at 85% 15%, rgba(212, 175, 55, .35), transparent 40%), linear-gradient(135deg, #0b2545 0%, #13315c 60%, #1d4e89 100%); }
.event-card.theme-pst { background: linear-gradient(135deg, #0b2545, #1d4e89); }
.ov-card.theme-pst { background: linear-gradient(135deg, #0b2545, #1d4e89); color: #fff; }
/* Other registration rows */
.other-row { display: grid; grid-template-columns: 34px 1.3fr 1fr 1.2fr 0.9fr 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.other-row .n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.other-row button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; color: var(--red); }
@media (max-width: 760px) {
  .other-row { grid-template-columns: 30px 1fr 34px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
  .other-row .n { grid-row: 1 / 5; align-self: start; }
  .other-row input, .other-row select { grid-column: 2; }
  .other-row button { grid-column: 3; grid-row: 1; }
}
