:root {
    --navy-950: #06111f;
    --navy-900: #0a1728;
    --navy-850: #0d1d31;
    --navy-800: #11243a;
    --navy-700: #1a3550;
    --green-600: #0fbf71;
    --green-500: #20d487;
    --green-400: #56e8a7;
    --green-100: #dcfaec;
    --gold-500: #f5be3d;
    --gold-100: #fff5d8;
    --red-500: #e84f5f;
    --red-100: #ffeaed;
    --blue-500: #3e8cff;
    --blue-100: #e9f2ff;
    --orange-500: #f28c36;
    --orange-100: #fff0e3;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --surface-tint: #eef3f8;
    --text: #142235;
    --text-soft: #53677d;
    --text-faint: #8494a7;
    --border: #dfe7ef;
    --border-strong: #cad6e1;
    --shadow-xs: 0 1px 2px rgba(8, 23, 39, .05);
    --shadow-sm: 0 8px 24px rgba(8, 23, 39, .07);
    --shadow-md: 0 18px 48px rgba(8, 23, 39, .11);
    --shadow-lg: 0 30px 80px rgba(8, 23, 39, .18);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--surface-tint);
    font: 15px/1.6 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--text);
    line-height: 1.16;
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(2.1rem, 4vw, 3.75rem);
}

h2 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

h3 {
    font-size: 1.1rem;
}

p {
    color: var(--text-soft);
}

main {
    min-height: calc(100vh - 220px);
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    color: white;
    background: rgba(6, 17, 31, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--green-500), #74efb8 45%, var(--gold-500));
}

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: white;
    font-size: 1.05rem;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--navy-950);
    background: linear-gradient(145deg, var(--green-400), var(--green-600));
    box-shadow: 0 8px 24px rgba(32, 212, 135, .28);
}

.brand-mark .icon {
    width: 23px;
    height: 23px;
    stroke-width: 2;
}

.brand small {
    display: block;
    color: #7f94aa;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-drawer {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-left: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 11px;
    color: #b9c8d8;
    font-size: .9rem;
    font-weight: 750;
    transition: .2s ease;
}

.nav-link .icon {
    width: 17px;
    height: 17px;
}

.nav-link:hover,
.nav-link.is-active {
    color: white;
    background: rgba(255, 255, 255, .075);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 4px;
    left: 13px;
    height: 2px;
    border-radius: 99px;
    background: var(--green-500);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 11px;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px 6px 6px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .07);
}

.user-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--navy-950);
    background: var(--green-500);
    font-size: .76rem;
    font-weight: 900;
}

.user-chip span {
    max-width: 130px;
    overflow: hidden;
    color: white;
    font-size: .84rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inline {
    display: inline;
    margin: 0;
}

.link-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: #a9bbcc;
    background: transparent;
    cursor: pointer;
    transition: .2s ease;
}

.link-btn:hover {
    color: white;
    background: rgba(255, 255, 255, .08);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    place-items: center;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    color: white;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

/* Buttons */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #052719;
    background: linear-gradient(145deg, var(--green-400), var(--green-600));
    box-shadow: 0 8px 20px rgba(15, 191, 113, .18);
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 191, 113, .25);
    filter: saturate(1.06);
}

.btn:active {
    transform: translateY(0);
}

.btn.small {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .83rem;
}

.btn.large {
    min-height: 50px;
    padding-inline: 23px;
}

.btn.secondary {
    color: var(--navy-900);
    background: white;
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}

.btn.secondary:hover {
    border-color: #aac1d4;
    box-shadow: var(--shadow-sm);
}

.btn.ghost {
    color: white;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .2);
    box-shadow: none;
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, .12);
}

.btn.danger {
    color: #7d1824;
    background: var(--red-100);
    border-color: #ffcbd1;
    box-shadow: none;
}

.btn.icon-only {
    width: 40px;
    min-height: 40px;
    padding: 0;
}

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

/* Hero */
.home-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 77% 26%, rgba(32, 212, 135, .18), transparent 25%),
        radial-gradient(circle at 95% 100%, rgba(62, 140, 255, .13), transparent 31%),
        linear-gradient(125deg, var(--navy-950), #0a2137 64%, #0d2c36);
}

.home-hero::before {
    content: "";
    position: absolute;
    width: 680px;
    height: 680px;
    right: -210px;
    top: -205px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(255, 255, 255, .018), 0 0 0 160px rgba(255, 255, 255, .012);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, transparent, #000 55%);
}

.home-hero-grid {
    position: relative;
    z-index: 2;
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
    align-items: center;
    gap: 76px;
    padding-block: 72px 82px;
}

.hero-copy {
    max-width: 710px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-500);
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.hero-copy h1 {
    margin: 17px 0 21px;
    color: white;
    font-size: clamp(3rem, 5.3vw, 5.25rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-copy h1 span {
    color: var(--green-400);
}

.hero-copy > p {
    max-width: 650px;
    margin-bottom: 29px;
    color: #b8c8d8;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    color: #b9c9d8;
    font-size: .85rem;
    font-weight: 750;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-points .icon {
    width: 16px;
    height: 16px;
    color: var(--green-500);
}

.hero-console {
    position: relative;
    max-width: 560px;
    justify-self: end;
}

.hero-console::before {
    content: "";
    position: absolute;
    inset: 25px -25px -25px 25px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(32, 212, 135, .28), rgba(62, 140, 255, .08));
    filter: blur(1px);
}

.match-console {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 28px;
    background: rgba(12, 31, 49, .86);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.console-head,
.console-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.console-head span,
.console-foot span {
    color: #9eb1c4;
    font-size: .77rem;
    font-weight: 800;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green-400) !important;
}

.live-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 5px rgba(32, 212, 135, .12);
}

.console-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 30px 25px 23px;
}

.console-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    text-align: center;
    font-weight: 850;
}

.console-club-mark,
.club-mark {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--navy-900);
    background: white;
    font-weight: 950;
    letter-spacing: -.03em;
}

.console-club-mark {
    width: 72px;
    height: 72px;
    font-size: 1.15rem;
    box-shadow: 0 9px 30px rgba(0, 0, 0, .2);
}

.console-club-mark img,
.club-mark img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.console-score {
    text-align: center;
}

.console-score strong {
    display: block;
    color: white;
    font-size: 2.35rem;
    line-height: 1;
    letter-spacing: -.06em;
}

.console-score small {
    display: block;
    margin-top: 9px;
    color: #9eb1c4;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.prediction-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 20px 21px;
    padding: 12px 16px;
    border: 1px solid rgba(32, 212, 135, .22);
    border-radius: 13px;
    color: var(--green-400);
    background: rgba(32, 212, 135, .08);
    font-weight: 850;
}

.mini-ranking {
    margin: 0 20px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 15px;
}

.mini-ranking-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    color: #dce6ef;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: .81rem;
}

.mini-ranking-row:last-child {
    border-bottom: 0;
}

.mini-ranking-row b {
    color: white;
}

.rank-dot {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--navy-950);
    background: var(--gold-500);
    font-size: .7rem;
    font-weight: 950;
}

.console-foot {
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 0;
    background: rgba(255, 255, 255, .025);
}

/* Sections */
.section {
    padding-block: 72px;
}

.section.compact {
    padding-block: 42px;
}

.section.white {
    background: white;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-title-row h2 {
    margin: 5px 0 0;
}

.section-title-row > p {
    max-width: 620px;
    margin: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green-600);
    font-size: .88rem;
    font-weight: 900;
}

.text-link:hover {
    color: #078c52;
}

.text-link .icon {
    width: 17px;
    height: 17px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 85% 18%, rgba(32, 212, 135, .18), transparent 27%),
        linear-gradient(120deg, var(--navy-950), #0c2940);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent 15%, #000);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 235px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-block: 46px;
}

.page-hero h1 {
    margin: 8px 0 9px;
    color: white;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
}

.page-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: #b6c7d7;
}

.page-hero-actions {
    flex: 0 0 auto;
}

.page-body {
    padding-block: 40px 72px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .42fr);
    gap: 26px;
    align-items: start;
}

.content-grid.equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-stack {
    display: grid;
    gap: 22px;
}

/* Cards */
.card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 24px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 23px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, white, #fbfcfe);
}

.card-head h2,
.card-head h3 {
    margin: 0;
}

.card-head p {
    margin: 3px 0 0;
    font-size: .84rem;
}

.card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: var(--green-600);
    background: var(--green-100);
}

.card-icon.gold {
    color: #a96e00;
    background: var(--gold-100);
}

.card-icon.blue {
    color: #2267ce;
    background: var(--blue-100);
}

.card-icon .icon {
    width: 21px;
    height: 21px;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 28px;
    color: var(--text-soft);
    text-align: center;
}

.empty-state .card-icon {
    margin-bottom: 12px;
}

.grid {
    display: grid;
    gap: 22px;
}

.competition-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.competition-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.competition-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--green-500), var(--green-400));
}

.competition-card:hover {
    transform: translateY(-4px);
    border-color: #b7c9d7;
    box-shadow: var(--shadow-md);
}

.competition-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.competition-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    color: var(--green-600);
    background: var(--surface-soft);
    font-size: .92rem;
    font-weight: 950;
}

.competition-logo img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.competition-card h3 {
    margin: 20px 0 7px;
    font-size: 1.27rem;
}

.competition-card p {
    margin-bottom: 0;
    font-size: .88rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 13px;
    margin-top: 19px;
    color: var(--text-soft);
    font-size: .79rem;
    font-weight: 750;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-meta .icon {
    width: 15px;
    height: 15px;
    color: var(--green-600);
}

.card-footer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    color: var(--green-600);
    font-weight: 900;
}

.card-footer-link .icon {
    width: 17px;
    height: 17px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-xs);
}

.feature-card .card-icon {
    margin-bottom: 18px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    margin-bottom: 0;
    font-size: .88rem;
}

/* Stat cards */
.stat-strip {
    position: relative;
    z-index: 4;
    margin-top: -38px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-md);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 20px 23px;
    border-right: 1px solid var(--border);
}

.stat-card:last-child {
    border-right: 0;
}

.stat-card .stat-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: var(--green-600);
    background: var(--green-100);
}

.stat-card:nth-child(2) .stat-icon {
    color: #2267ce;
    background: var(--blue-100);
}

.stat-card:nth-child(3) .stat-icon {
    color: #a96e00;
    background: var(--gold-100);
}

.stat-card:nth-child(4) .stat-icon {
    color: #b55200;
    background: var(--orange-100);
}

.stat-card b {
    display: block;
    font-size: 1.65rem;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.stat-card span {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: .77rem;
    font-weight: 780;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 26px;
}

.dashboard-stat {
    position: relative;
    overflow: hidden;
    min-height: 135px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

.dashboard-stat::after {
    content: "";
    position: absolute;
    right: -25px;
    bottom: -35px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--green-100);
}

.dashboard-stat:nth-child(2)::after {
    background: var(--gold-100);
}

.dashboard-stat:nth-child(3)::after {
    background: var(--blue-100);
}

.dashboard-stat:nth-child(4)::after {
    background: var(--orange-100);
}

.dashboard-stat .stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dashboard-stat .stat-label .icon {
    width: 17px;
    height: 17px;
    color: var(--green-600);
}

.dashboard-stat strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 16px;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -.06em;
}

.dashboard-stat small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 8px;
    color: var(--text-faint);
}

/* Tables */
.table-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 650px;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.data-table th {
    padding: 13px 17px;
    color: #6d8094;
    background: #f6f8fb;
    border-bottom: 1px solid var(--border);
    font-size: .69rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 17px;
    border-bottom: 1px solid #edf1f5;
    color: #26384b;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr {
    transition: background .15s ease;
}

.data-table tbody tr:nth-child(even) {
    background: #fcfdfe;
}

.data-table tbody tr:hover {
    background: #f4faf7;
}

.data-table .cell-main {
    color: var(--text);
    font-weight: 830;
}

.data-table .cell-sub {
    display: block;
    margin-top: 2px;
    color: var(--text-faint);
    font-size: .76rem;
    font-weight: 600;
}

.data-table .number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table .center {
    text-align: center;
}

.rank-cell {
    width: 52px;
}

.rank-number {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    color: var(--text-soft);
    background: #edf2f6;
    font-size: .79rem;
    font-weight: 950;
}

tr.rank-1 .rank-number {
    color: #7c5300;
    background: var(--gold-100);
}

tr.rank-2 .rank-number {
    color: #4f6071;
    background: #edf1f5;
}

tr.rank-3 .rank-number {
    color: #8a4f25;
    background: #f7e6dc;
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.player-avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 11px;
    color: var(--navy-950);
    background: linear-gradient(145deg, var(--green-400), var(--green-600));
    font-size: .72rem;
    font-weight: 950;
}

.points-cell {
    color: var(--green-600) !important;
    font-size: 1rem;
    font-weight: 950;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.table-empty {
    padding: 35px !important;
    color: var(--text-soft) !important;
    text-align: center;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #53677d;
    background: #edf2f6;
    font-size: .7rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge.success {
    color: #087747;
    background: var(--green-100);
}

.badge.info {
    color: #286cca;
    background: var(--blue-100);
}

.badge.warning {
    color: #a6570b;
    background: var(--orange-100);
}

.badge.live,
.badge.danger {
    color: #bb2938;
    background: var(--red-100);
}

.badge.neutral {
    color: #637589;
    background: #edf2f6;
}

/* List rows and fixtures */
.list-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 19px;
    border-bottom: 1px solid #edf1f5;
    transition: background .18s ease;
}

.list-row:last-child {
    border-bottom: 0;
}

a.list-row:hover {
    background: #f5faf7;
}

.list-row-main {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.list-row-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    color: var(--green-600);
    background: var(--green-100);
}

.list-row-text {
    min-width: 0;
}

.list-row-text b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-row-text small {
    display: block;
    margin-top: 2px;
    color: var(--text-faint);
}

.list-row-end {
    flex: 0 0 auto;
    color: var(--green-600);
    font-size: .84rem;
    font-weight: 900;
}

.fixture-list {
    display: grid;
}

.fixture-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 105px;
    align-items: center;
    gap: 18px;
    min-height: 74px;
    padding: 13px 18px;
    border-bottom: 1px solid #edf1f5;
}

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

.fixture-date {
    color: var(--text-soft);
    font-size: .75rem;
    font-weight: 800;
}

.fixture-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
}

.fixture-team {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-weight: 820;
}

.fixture-team.home {
    justify-content: flex-end;
    text-align: right;
}

.fixture-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-mark.tiny {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: .61rem;
}

.fixture-score {
    min-width: 63px;
    padding: 6px 9px;
    border-radius: 9px;
    color: var(--text);
    background: #edf2f6;
    font-size: .93rem;
    font-weight: 950;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fixture-competition {
    color: var(--text-faint);
    font-size: .73rem;
    font-weight: 800;
    text-align: right;
}

/* Scoring rules */
.rules-table {
    display: grid;
    gap: 10px;
}

.rule-row {
    display: grid;
    grid-template-columns: 51px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: white;
}

.rule-points {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #075e39;
    background: var(--green-100);
    font-size: 1.15rem;
    font-weight: 950;
}

.rule-row:nth-child(2) .rule-points {
    color: #225fae;
    background: var(--blue-100);
}

.rule-row:nth-child(3) .rule-points {
    color: #9a6500;
    background: var(--gold-100);
}

.rule-row:nth-child(4) .rule-points {
    color: #8a3340;
    background: var(--red-100);
}

.rule-row b {
    display: block;
}

.rule-row small {
    display: block;
    margin-top: 2px;
    color: var(--text-faint);
}

.rule-row > span:last-child {
    color: var(--text-soft);
    font-size: .76rem;
    font-weight: 850;
}

/* Clubs */
.club-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.club-card {
    position: relative;
    min-height: 275px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.club-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.club-card-accent {
    height: 65px;
    background: linear-gradient(135deg, var(--club-primary, var(--navy-800)), var(--club-secondary, var(--green-600)));
}

.club-card-body {
    padding: 0 20px 21px;
    text-align: center;
}

.club-card-logo {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: -43px auto 14px;
    overflow: hidden;
    border: 5px solid white;
    border-radius: 24px;
    color: var(--navy-900);
    background: white;
    box-shadow: 0 9px 25px rgba(8, 23, 39, .15);
    font-size: 1rem;
    font-weight: 950;
}

.club-card-logo img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.club-card h3 {
    margin: 0 0 6px;
    font-size: 1.16rem;
}

.club-card p {
    margin-bottom: 17px;
    font-size: .82rem;
}

.club-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.club-card-info span {
    color: var(--text-faint);
    font-size: .69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.club-card-info b {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: .8rem;
    text-transform: none;
    letter-spacing: 0;
}

.club-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: white;
    background: linear-gradient(120deg, #06111f, #0c2c3c);
    background-position: center;
    background-size: cover;
}

.club-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 14, 27, .96) 0%, rgba(4, 14, 27, .75) 50%, rgba(4, 14, 27, .2));
}

.club-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, var(--club-primary, var(--green-500)), var(--club-secondary, var(--green-400)));
}

.club-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    padding-block: 65px;
}

.club-hero-logo {
    width: 145px;
    height: 145px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, .16);
    border-radius: 31px;
    color: var(--navy-900);
    background: white;
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
    font-weight: 950;
}

.club-hero-logo img {
    width: 100%;
    height: 100%;
    padding: 13px;
    object-fit: contain;
}

.club-hero h1 {
    margin: 9px 0 12px;
    color: white;
    font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.club-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 18px;
    color: #c3d2df;
    font-size: .86rem;
    font-weight: 750;
}

.club-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.club-hero-meta .icon {
    width: 16px;
    height: 16px;
    color: var(--green-400);
}

.article-card {
    padding: 28px;
}

.article-card h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.article-card h2:not(:first-child) {
    margin-top: 34px;
    padding-top: 29px;
    border-top: 1px solid var(--border);
}

.article-card p:last-child {
    margin-bottom: 0;
}

.stadium-photo {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
}

.stadium-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.stadium-detail {
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-soft);
}

.stadium-detail span {
    display: block;
    color: var(--text-faint);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stadium-detail b {
    display: block;
    margin-top: 3px;
    font-size: .85rem;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 13px;
    background: #dfe7ef;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* Predictions */
.prediction-wrap {
    max-width: 1020px;
    margin-inline: auto;
}

.deadline-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 19px;
    padding: 16px 19px;
    border: 1px solid #bfe7d4;
    border-radius: 15px;
    color: #08643d;
    background: var(--green-100);
}

.deadline-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deadline-info .icon {
    width: 23px;
    height: 23px;
}

.deadline-info b,
.deadline-info small {
    display: block;
}

.deadline-info small {
    margin-top: 2px;
    color: #277756;
}

.deadline-countdown {
    font-size: .84rem;
    font-weight: 900;
    white-space: nowrap;
}

.prediction-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-md);
}

.prediction-card-head {
    display: grid;
    grid-template-columns: 135px 1fr 125px;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-faint);
    background: #f6f8fb;
    border-bottom: 1px solid var(--border);
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.prediction-row {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr) 170px minmax(0, 1fr) 125px;
    align-items: center;
    gap: 15px;
    min-height: 88px;
    padding: 14px 20px;
    border-bottom: 1px solid #edf1f5;
}

.prediction-row:last-child {
    border-bottom: 0;
}

.prediction-row:hover {
    background: #fbfdfc;
}

.prediction-time {
    color: var(--text-soft);
    font-size: .75rem;
    font-weight: 800;
}

.prediction-time b {
    display: block;
    color: var(--text);
    font-size: .83rem;
}

.prediction-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 850;
}

.prediction-team.home {
    justify-content: flex-end;
    text-align: right;
}

.prediction-team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.score-inputs {
    display: grid;
    grid-template-columns: 64px 20px 64px;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.score-inputs input {
    min-height: 52px;
    padding: 8px;
    border: 2px solid var(--border);
    border-radius: 13px;
    color: var(--navy-900);
    background: white;
    font-size: 1.28rem;
    font-weight: 950;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.score-inputs input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(32, 212, 135, .13);
}

.score-separator {
    color: var(--text-faint);
    font-weight: 950;
    text-align: center;
}

.prediction-status {
    text-align: right;
}

.prediction-actions {
    position: sticky;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.prediction-actions p {
    margin: 0;
    font-size: .8rem;
}

/* Forms */
.form-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

label,
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    color: var(--text);
    font-size: .79rem;
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    outline: 0;
    color: var(--text);
    background: white;
    transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #9aa9b8;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(32, 212, 135, .12);
}

input[type="color"] {
    min-height: 46px;
    padding: 5px;
}

input[type="file"] {
    padding: 8px;
}

.form-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 19px;
}

.form-section-head h3 {
    margin: 0;
}

.form-section-head p {
    margin: 4px 0 0;
    font-size: .8rem;
}

.field-help {
    color: var(--text-faint);
    font-size: .72rem;
    font-weight: 600;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
}

.score-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.score-inline input {
    width: 48px;
    min-height: 38px;
    padding: 6px;
    text-align: center;
    font-weight: 900;
}

.score-inline button {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #075e39;
    background: var(--green-100);
    cursor: pointer;
}

/* Auth */
.auth-page {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
    background: white;
}

.auth-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 55px;
    color: white;
    background:
        radial-gradient(circle at 70% 20%, rgba(32, 212, 135, .24), transparent 24%),
        linear-gradient(145deg, var(--navy-950), #0d3040);
}

.auth-visual::before {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    right: -230px;
    top: -160px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.016);
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 510px;
}

.auth-visual h1 {
    margin: 14px 0 16px;
    color: white;
    font-size: clamp(2.6rem, 5vw, 4.3rem);
}

.auth-visual p {
    color: #b9cad9;
    font-size: 1.03rem;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.auth-benefits span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dbe6ef;
    font-weight: 750;
}

.auth-benefits .icon {
    width: 18px;
    height: 18px;
    color: var(--green-400);
}

.auth-panel {
    display: grid;
    place-items: center;
    padding: 50px 28px;
    background: #f7f9fc;
}

.auth-card {
    width: min(470px, 100%);
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: white;
    box-shadow: var(--shadow-md);
}

.auth-card-head {
    margin-bottom: 24px;
}

.auth-card h2 {
    margin-bottom: 7px;
}

.auth-card p {
    margin-bottom: 0;
}

.auth-card form {
    display: grid;
    gap: 16px;
}

.auth-card .btn {
    width: 100%;
    margin-top: 4px;
}

.auth-switch {
    margin: 21px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: .84rem;
}

.auth-switch a {
    color: var(--green-600);
    font-weight: 900;
}

.form-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 17px;
    padding: 12px 14px;
    border: 1px solid #ffd0d6;
    border-radius: 12px;
    color: #942433;
    background: var(--red-100);
    font-size: .82rem;
    font-weight: 750;
}

/* Pools */
.pool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.pool-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: white;
    box-shadow: var(--shadow-xs);
    transition: .2s ease;
}

.pool-card:hover {
    transform: translateY(-2px);
    border-color: #b8c9d7;
    box-shadow: var(--shadow-sm);
}

.pool-card-icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    color: var(--green-600);
    background: var(--green-100);
}

.pool-card-body {
    min-width: 0;
}

.pool-card-body h3 {
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pool-card-body p {
    margin: 0;
    font-size: .78rem;
}

.pool-card > .icon {
    margin-left: auto;
    color: var(--text-faint);
}

.invite-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    color: white;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.invite-card span {
    display: block;
    color: #99aec1;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.invite-card b {
    display: block;
    margin-top: 4px;
    font-size: 1.15rem;
    letter-spacing: .12em;
}

.copy-button {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    color: white;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

/* Flashes */
.flash-wrap {
    position: fixed;
    z-index: 80;
    top: 92px;
    right: 22px;
    width: min(390px, calc(100% - 44px));
    display: grid;
    gap: 10px;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    border: 1px solid #bfe7d4;
    border-radius: 14px;
    color: #075e39;
    background: rgba(230, 252, 242, .98);
    box-shadow: var(--shadow-md);
    font-size: .83rem;
    font-weight: 760;
    animation: slide-in .3s ease both;
}

.flash.error {
    color: #8c2331;
    border-color: #ffc8cf;
    background: rgba(255, 235, 238, .98);
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin */
.admin-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    background: #edf2f7;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 17px 18px;
    color: white;
    background: var(--navy-950);
    border-right: 1px solid rgba(255, 255, 255, .07);
}

.admin-sidebar .brand {
    padding: 0 8px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-nav-label {
    margin: 25px 10px 9px;
    color: #617990;
    font-size: .64rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-nav {
    display: grid;
    gap: 4px;
}

.admin-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.admin-main {
    min-width: 0;
    padding: 28px clamp(22px, 3.2vw, 48px) 55px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.admin-topbar p {
    margin: 3px 0 0;
}

.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-page-head h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.admin-page-head p {
    margin: 5px 0 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
    gap: 24px;
    align-items: start;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: white;
    box-shadow: var(--shadow-xs);
}

.admin-stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-stat-card .card-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.admin-stat-card strong {
    display: block;
    margin-top: 18px;
    font-size: 2rem;
    line-height: 1;
}

.admin-stat-card span {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    font-size: .77rem;
    font-weight: 800;
}

/* Footer */
.site-footer {
    color: #9eb0c2;
    background: var(--navy-950);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, .75fr);
    gap: 45px;
    padding-block: 48px 35px;
}

.footer-brand p {
    max-width: 430px;
    margin: 16px 0 0;
    color: #8298ac;
    font-size: .84rem;
}

.footer-links h4 {
    margin-bottom: 13px;
    color: white;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-links a {
    color: #93a8bb;
    font-size: .83rem;
}

.footer-links a:hover {
    color: var(--green-400);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #71889d;
    font-size: .75rem;
}

/* Error */
.error-page {
    min-height: 65vh;
    display: grid;
    place-items: center;
    padding: 50px 24px;
    text-align: center;
}

.error-card {
    max-width: 550px;
}

.error-code {
    color: var(--green-600);
    font-size: 6rem;
    font-weight: 950;
    line-height: .9;
    letter-spacing: -.08em;
}

/* Responsive */
@media (max-width: 1120px) {
    .home-hero-grid {
        gap: 40px;
        grid-template-columns: minmax(0, 1fr) minmax(385px, .85fr);
    }

    .competition-grid,
    .club-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .menu-toggle {
        display: grid;
    }

    .nav-drawer {
        position: fixed;
        z-index: 60;
        top: 80px;
        right: 18px;
        left: 18px;
        display: none;
        max-height: calc(100vh - 98px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 18px;
        background: rgba(6, 17, 31, .98);
        box-shadow: var(--shadow-lg);
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .header-actions {
        align-items: stretch;
        margin-top: 10px;
        padding: 12px 0 0;
        border-top: 1px solid rgba(255,255,255,.08);
        border-left: 0;
    }

    .site-header.menu-open .nav-drawer {
        display: flex;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 12px;
    }

    .header-actions .btn {
        flex: 1;
    }

    .user-chip {
        flex: 1;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        padding-block: 62px 92px;
    }

    .hero-copy {
        max-width: 760px;
    }

    .hero-console {
        width: min(570px, 100%);
        justify-self: start;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card:nth-child(2) {
        border-right: 0;
    }

    .stat-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .content-grid,
    .content-grid.equal,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .auth-visual {
        min-height: 400px;
        padding: 45px 28px;
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-nav {
        grid-template-columns: repeat(4, minmax(145px, 1fr));
        overflow-x: auto;
    }

    .admin-sidebar-footer {
        display: none;
    }

    .admin-nav-label {
        display: none;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 30px, var(--container));
    }

    .nav-shell {
        min-height: 70px;
    }

    .brand small {
        display: none;
    }

    .home-hero-grid {
        min-height: auto;
        padding-block: 52px 82px;
    }

    .hero-copy h1 {
        font-size: clamp(2.7rem, 13vw, 4.2rem);
    }

    .hero-points {
        gap: 10px 18px;
    }

    .hero-console::before {
        display: none;
    }

    .console-match {
        grid-template-columns: 1fr auto 1fr;
        gap: 12px;
        padding-inline: 15px;
    }

    .console-club-mark {
        width: 58px;
        height: 58px;
    }

    .console-score strong {
        font-size: 1.8rem;
    }

    .stat-strip {
        margin-top: -26px;
    }

    .stat-grid,
    .dashboard-stats,
    .competition-grid,
    .club-grid,
    .pool-grid,
    .feature-grid,
    .admin-stat-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .stat-card:last-child {
        border-bottom: 0;
    }

    .section {
        padding-block: 50px;
    }

    .section-title-row,
    .page-hero-inner,
    .admin-page-head,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-hero-inner {
        min-height: 210px;
        padding-block: 38px;
    }

    .page-hero-actions {
        width: 100%;
    }

    .page-hero-actions .btn {
        width: 100%;
    }

    .fixture-row {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .fixture-date,
    .fixture-competition {
        text-align: center;
    }

    .club-hero {
        min-height: 390px;
    }

    .club-hero-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding-block: 48px;
    }

    .club-hero-logo {
        width: 105px;
        height: 105px;
        border-radius: 24px;
    }

    .stadium-details,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .prediction-card-head {
        display: none;
    }

    .prediction-row {
        grid-template-columns: 1fr 135px 1fr;
        gap: 11px;
        padding: 17px 14px;
    }

    .prediction-time {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
    }

    .prediction-status {
        grid-column: 1 / -1;
        text-align: center;
    }

    .score-inputs {
        grid-template-columns: 52px 15px 52px;
    }

    .score-inputs input {
        min-height: 48px;
    }

    .prediction-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .prediction-actions .btn {
        width: 100%;
    }

    .deadline-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-visual {
        min-height: 350px;
    }

    .auth-card {
        padding: 26px 21px;
    }

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-main {
        padding-inline: 15px;
    }
}

@media (max-width: 480px) {
    .actions {
        flex-direction: column;
    }

    .actions .btn {
        width: 100%;
    }

    .hero-points {
        display: grid;
    }

    .console-team {
        font-size: .76rem;
    }

    .console-club-mark {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: .78rem;
    }

    .mini-ranking {
        display: none;
    }

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

    .prediction-row {
        grid-template-columns: 1fr 116px 1fr;
    }

    .prediction-team {
        align-items: center;
        flex-direction: column;
        font-size: .78rem;
        text-align: center !important;
    }

    .prediction-team.home {
        flex-direction: column-reverse;
    }

    .score-inputs {
        grid-template-columns: 45px 12px 45px;
        gap: 4px;
    }
}

.admin-topbar .user-chip {
    border: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow-xs);
}

.admin-topbar .user-chip > span:last-child {
    color: var(--text);
}

/* Destructive admin actions */
.delete-form {
    display: inline-flex;
    margin: 0;
}

.btn.danger:hover {
    color: #8d1423;
    background: #ffe1e5;
    border-color: #f3aab4;
    box-shadow: 0 8px 18px rgba(187, 41, 56, .12);
}

.admin-warning-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 16px;
    padding: 15px 17px;
    border: 1px solid #f2d4a7;
    border-radius: 14px;
    color: #76501f;
    background: #fffaf0;
    box-shadow: var(--shadow-xs);
}

.admin-warning-card strong {
    display: block;
    margin-bottom: 3px;
    color: #604016;
    font-size: .88rem;
}

.admin-warning-card p {
    margin: 0;
    color: #80633d;
    font-size: .78rem;
    line-height: 1.55;
}

.admin-warning-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #a6570b;
    background: #ffedc9;
}

@media (max-width: 860px) {
    .table-actions {
        min-width: 310px;
    }
}

/* Stadium administration */
.admin-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.stadium-table {
    min-width: 920px;
}

.stadium-thumb {
    width: 50px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--green-600);
    background: #f1f8f5;
}

.stadium-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stadium-thumb .icon {
    width: 22px;
    height: 22px;
}

.stadium-club-list {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stadium-form-preview {
    width: min(100%, 360px);
    height: 180px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-xs);
}

.check-row {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 9px;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: .75rem;
    font-weight: 700;
}

.check-row input[type="checkbox"] {
    width: 17px;
    min-height: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--green-600);
}

.upload-placeholder {
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
    color: var(--text-faint);
    background: #fafcfd;
    font-size: .76rem;
    font-weight: 750;
}

.upload-placeholder .icon {
    width: 32px;
    height: 32px;
    color: var(--green-600);
}

.inline-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--green-700);
    font-weight: 850;
}

.inline-admin-link .icon {
    width: 13px;
    height: 13px;
}
