:root {
    --bg: #05070b;
    --bg-2: #0a1220;
    --card: rgba(12, 22, 38, 0.82);
    --line: rgba(68, 175, 0, 0.18);
    --navy: #0a3d62;
    --navy-2: #12355b;
    --blue: #1f6fad;
    --green: #44af00;
    --green-2: #5cdb2a;
    --gold: #d4af37;
    --text: #f4f7fb;
    --muted: #8b9bb4;
    --danger: #ff4d6d;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(10, 61, 98, 0.45), transparent 50%),
        radial-gradient(900px 500px at 110% 10%, rgba(68, 175, 0, 0.18), transparent 45%),
        linear-gradient(180deg, #05070b 0%, #071018 100%);
    color: var(--text);
    min-height: 100vh;
}
html[lang="en"] body { font-family: Inter, Cairo, "Segoe UI", sans-serif; letter-spacing: -.015em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.nav {
    position: sticky; top: 0; z-index: 40;
    background: transparent; border-bottom: 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .4px; }
.brand img { height: 58px; width: auto; }
.lang-duo {
    display: inline-flex; align-items: center; padding: 3px;
    border-radius: 999px; background: rgba(5,8,14,.55);
    border: 1px solid rgba(255,255,255,.12); gap: 2px;
}
.lang-duo a {
    min-width: 34px; height: 28px; padding: 0 8px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .4px;
    color: #9bb0c8;
}
.lang-duo a.on {
    background: linear-gradient(180deg, #63e024, #3ea800);
    color: #041307;
}
.lang-duo.is-compact a { min-width: 30px; height: 26px; }

.btn, button.btn, input.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; cursor: pointer; border-radius: 12px;
    padding: 12px 20px; min-height: 44px;
    font-family: inherit; font-weight: 800; font-size: 14px; letter-spacing: .2px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-green {
    background: linear-gradient(180deg, #63e024 0%, #3ea800 100%);
    color: #041307; box-shadow: 0 10px 24px rgba(68,175,0,.28);
}
.btn-green:hover { box-shadow: 0 14px 30px rgba(68,175,0,.38); }
.btn-navy {
    background: linear-gradient(180deg, #1d6aa3, #0a3d62);
    color: #fff; box-shadow: 0 8px 20px rgba(10,61,98,.35);
}
.btn-ghost {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.16); color: var(--text);
}
.btn-ghost:hover { border-color: rgba(68,175,0,.4); color: var(--green-2); }
.btn-gold { background: linear-gradient(180deg, #f0d06a, #c49a22); color: #2a1d00; }
.btn-danger { background: #3d1520; color: #ff8aa0; border-color: rgba(255,77,109,.25); }
.btn-sm { padding: 8px 14px; min-height: 36px; border-radius: 10px; font-size: 13px; }
.btn-book { width: 100%; min-height: 48px; font-size: 15px; border-radius: 14px; }

.hero { padding: 54px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.kicker { color: var(--green-2); font-weight: 800; letter-spacing: 1px; }
.hero h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.15; margin: 8px 0 16px; }
.hero p.lead { color: var(--muted); font-size: 18px; line-height: 1.9; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-card {
    background: linear-gradient(180deg, rgba(18,53,91,.55), rgba(5,7,11,.2));
    border: 1px solid var(--line); border-radius: 28px; padding: 18px;
    box-shadow: var(--shadow); text-align: center;
}
.hero-card img { height: 280px; object-fit: contain; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 10px; }
.stat {
    background: var(--card); border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px; padding: 18px; box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 28px; color: var(--green-2); }
.stat span { color: var(--muted); font-size: 13px; }

.section { padding: 48px 0; }
.section h2 { font-size: 32px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.grid-4, .grid-3, .grid-2 { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; }
.cat-card {
    min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end;
    background:
        linear-gradient(180deg, transparent, rgba(5,7,11,.85)),
        linear-gradient(135deg, rgba(10,61,98,.7), rgba(68,175,0,.25));
    border: 1px solid rgba(68,175,0,.25);
}
.player-card { overflow: hidden; padding: 0; }
.player-card .top {
    padding: 22px 20px 14px;
    background: linear-gradient(135deg, #0a3d62, #062033 60%, #1a5a12);
}
.player-card .num { font-size: 42px; font-weight: 900; color: var(--gold); line-height: 1; }
.player-card .body { padding: 16px 20px 20px; }
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(68,175,0,.12); color: var(--green-2);
    border: 1px solid rgba(68,175,0,.25); border-radius: 999px;
    padding: 4px 10px; font-size: 12px; font-weight: 700;
}
.badge-gold { background: rgba(212,175,55,.12); color: var(--gold); border-color: rgba(212,175,55,.3); }
.badge-blue { background: rgba(31,111,173,.15); color: #8ec8ff; border-color: rgba(31,111,173,.3); }
.badge-red { background: rgba(255,77,109,.12); color: #ff8aa0; border-color: rgba(255,77,109,.25); }
.badge-ok { background: rgba(68,175,0,.16); color: #9be36a; border-color: rgba(68,175,0,.32); }

.form { display: grid; gap: 12px; }
label { font-size: 13px; color: var(--muted); font-weight: 700; }
input, select, textarea {
    width: 100%; background: #07111c; color: var(--text);
    border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
    padding: 12px 14px; font-family: inherit; font-size: 15px;
}
textarea { min-height: 110px; resize: vertical; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
.alert-ok { background: rgba(68,175,0,.12); color: #b6f08a; }
.alert-err { background: rgba(255,77,109,.12); color: #ffb3c1; }
.alert-info { background: rgba(31,111,173,.15); color: #b9dcff; }

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side {
    background: linear-gradient(180deg, #07101a, #05070b);
    border-inline-end: 1px solid rgba(255,255,255,.06);
    padding: 18px 14px;
    position: sticky; top: 0; height: 100vh;
}
.side a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 700;
}
.side a.active, .side a:hover { background: rgba(68,175,0,.12); color: var(--green-2); }
.main { padding: 22px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: start; }
th { color: var(--muted); font-size: 13px; }
.pitch {
    background:
        repeating-linear-gradient(90deg, rgba(68,175,0,.05) 0 18px, transparent 18px 36px),
        linear-gradient(180deg, rgba(10,61,98,.35), rgba(5,7,11,.2));
    border: 1px solid var(--line); border-radius: 24px;
}

.profile-hero {
    display: grid; grid-template-columns: 280px 1fr; gap: 22px;
    padding: 26px; border-radius: 28px;
    background:
        radial-gradient(circle at 20% 20%, rgba(212,175,55,.18), transparent 28%),
        linear-gradient(135deg, #0a3d62 0%, #071018 55%, #163b10 100%);
    border: 1px solid rgba(212,175,55,.18);
}
.avatar-xl {
    width: 220px; height: 220px; border-radius: 50%;
    display: grid; place-items: center; margin: 0 auto;
    background: radial-gradient(circle, #12355b, #05070b);
    border: 4px solid var(--gold); font-size: 72px; font-weight: 900; color: var(--gold);
}
.metric { text-align: center; padding: 16px; }
.metric b { display: block; font-size: 26px; color: var(--green-2); }

.footer { border-top: 1px solid rgba(255,255,255,.06); padding: 28px 0; color: var(--muted); margin-top: 40px; }
.pagination { display:flex; gap:6px; list-style:none; padding:0; flex-wrap:wrap; }
.page-link, .page-item a, .page-item span { padding:6px 10px; background:#07111c; border-radius:8px; color:#fff; display:inline-block; }
.page-item.active .page-link, .page-item.active span { background: var(--green); color:#041307; }

@media (max-width: 960px) {
    .hero-grid, .grid-4, .grid-3, .profile-hero { grid-template-columns: 1fr; }
    .stats-row, .grid-2 { grid-template-columns: 1fr 1fr; }
    body:not(.portal-body) .shell { grid-template-columns: 1fr; }
    body:not(.portal-body) .side { position: relative; height: auto; }
}
@media (max-width: 640px) {
    .stats-row, .grid-2 { grid-template-columns: 1fr; }
}
