:root {
    --bg: #0a0a12;
    --bg-deep: #05050b;
    --surface: rgba(20, 20, 34, 0.88);
    --surface-strong: rgba(27, 26, 44, 0.96);
    --surface-soft: rgba(255, 255, 255, 0.045);
    --text: #f4f0ff;
    --muted: #a7a1ba;
    --muted-2: #706b83;
    --primary: #ff2d78;
    --secondary: #00ffcc;
    --tertiary: #ffe04a;
    --purple: #8b5cf6;
    --danger: #ff5d73;
    --ok: #00ff9d;
    --border: rgba(255, 255, 255, 0.12);
    --pink-border: rgba(255, 45, 120, 0.42);
    --cyan-border: rgba(0, 255, 204, 0.42);
    --glow-pink: 0 0 18px rgba(255, 45, 120, 0.34);
    --glow-cyan: 0 0 18px rgba(0, 255, 204, 0.22);
    --radius: 18px;
    --radius-lg: 28px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, "Noto Sans Hebrew", Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        radial-gradient(circle at 18% 0%, rgba(255, 45, 120, .16), transparent 31%),
        radial-gradient(circle at 82% 8%, rgba(0, 255, 204, .13), transparent 28%),
        radial-gradient(circle at 50% 75%, rgba(139, 92, 246, .10), transparent 28%),
        var(--bg);
    background-size: 38px 38px, 38px 38px, auto, auto, auto, auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.026) 0, rgba(255,255,255,.026) 1px, transparent 1px, transparent 5px);
    opacity: .24;
    mix-blend-mode: screen;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(ellipse at center, transparent 44%, rgba(0,0,0,.36) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, select, textarea, button { font: inherit; }
button { color: inherit; }

input, select, textarea {
    width: 100%;
    color: var(--text);
    border: 1px solid rgba(255,255,255,.14);
    border-bottom-color: rgba(0,255,204,.45);
    background: rgba(8, 8, 18, .82);
    border-radius: 12px;
    padding: 11px 12px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(0,255,204,.72);
    box-shadow: 0 0 0 3px rgba(0,255,204,.10), inset 0 0 14px rgba(0,255,204,.06);
    background: rgba(12, 12, 24, .96);
}

select option { color: #0d0d18; background: #fff; }
textarea { resize: vertical; }
label { display: block; font-weight: 700; color: #f2ecff; margin-bottom: 14px; }
label input, label select, label textarea { margin-top: 6px; }

h1, h2, h3, .brand, .admin-brand {
    font-family: Sora, Inter, "Noto Sans Hebrew", Arial, sans-serif;
    letter-spacing: -.035em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 80px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 16px 26px;
    background: rgba(7, 7, 16, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.brand, .admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 23px;
    white-space: nowrap;
}

.brand-text span:first-child { color: var(--primary); text-shadow: var(--glow-pink); }
.brand-text span:last-child { color: var(--secondary); text-shadow: var(--glow-cyan); }

.brand-logo {
    display: block;
    max-width: 178px;
    max-height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255,45,120,.32));
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
    min-width: 0;
}

.main-nav a {
    position: relative;
    color: var(--muted);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 2px;
    transition: color .18s ease, text-shadow .18s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .18s ease, transform .18s ease;
    box-shadow: var(--glow-pink);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
    text-shadow: 0 0 8px currentColor;
}

.main-nav a:hover::after, .main-nav a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

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

.icon-button, .avatar-button, .language-pill {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    background: rgba(255,255,255,.045);
    color: var(--muted);
    transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.icon-button:hover, .avatar-button:hover, .language-pill:hover {
    color: var(--secondary);
    border-color: rgba(0,255,204,.46);
    box-shadow: var(--glow-cyan);
    transform: translateY(-1px);
}

.avatar-button {
    border-color: rgba(255,45,120,.35);
    color: #fff;
    background: linear-gradient(145deg, rgba(255,45,120,.18), rgba(0,255,204,.08));
    font-weight: 900;
}

.language-pill {
    position: relative;
    width: auto;
    grid-template-columns: auto auto;
    gap: 4px;
    padding: 0 11px;
}

.language-switch {
    border: 0;
    padding: 0;
    width: 54px;
    height: auto;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}

.mini-search input {
    width: 150px;
    height: 42px;
    border-radius: 14px;
    padding: 8px 12px;
}

.menu-toggle { display: none; }

.site-main {
    width: min(1230px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0 78px;
}

.ad-slot {
    width: min(1230px, calc(100% - 48px));
    margin: 24px auto 8px;
    padding: 0;
    text-align: center;
}

.site-header + .ad-slot {
    margin-top: 30px;
}

.demo-ad {
    min-height: 40px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.46);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.055);
}

.radar-hero {
    position: relative;
    min-height: 484px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    padding: clamp(30px, 5vw, 64px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10,10,18,.10), rgba(10,10,18,.92)),
        radial-gradient(circle at 32% 0%, rgba(255,45,120,.28), transparent 24%),
        radial-gradient(circle at 68% 0%, rgba(0,255,204,.18), transparent 26%),
        linear-gradient(120deg, rgba(255,45,120,.16), rgba(139,92,246,.11) 45%, rgba(0,255,204,.11)),
        #11101c;
    box-shadow: inset 0 0 42px rgba(255,45,120,.08), 0 0 0 1px rgba(255,255,255,.025);
}

.radar-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(72deg, transparent 16%, rgba(255,45,120,.42) 17%, transparent 18%),
        linear-gradient(108deg, transparent 28%, rgba(255,45,120,.32) 29%, transparent 30%),
        linear-gradient(84deg, transparent 43%, rgba(0,255,204,.26) 44%, transparent 45%),
        linear-gradient(96deg, transparent 61%, rgba(255,45,120,.32) 62%, transparent 63%),
        linear-gradient(116deg, transparent 73%, rgba(0,255,204,.24) 74%, transparent 75%);
    filter: blur(2px);
    opacity: .7;
    transform: perspective(700px) rotateX(38deg) translateY(-150px);
    transform-origin: top;
}

.radar-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, transparent 4%, rgba(10,10,18,.18) 40%, rgba(10,10,18,.94) 100%),
        linear-gradient(180deg, rgba(255,255,255,.06), transparent 22%);
}

.hero-stage-lights {
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 70%;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.22), transparent 56%);
    opacity: .22;
}

.hero-content, .hero-buttons { position: relative; z-index: 2; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,45,120,.42);
    background: rgba(255,45,120,.08);
    border-radius: 999px;
    padding: 6px 14px;
    color: var(--primary);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-shadow: 0 0 8px currentColor;
}

.neon-cyan { color: var(--secondary); border-color: rgba(0,255,204,.38); background: rgba(0,255,204,.08); }
.neon-pink { color: var(--primary); }

.radar-hero h1 {
    max-width: 760px;
    margin: 22px 0 12px;
    font-size: clamp(42px, 6.4vw, 76px);
    line-height: .98;
    color: #f6f2ff;
}

.radar-hero h1::first-line { color: #fff; }

.radar-hero h1 {
    background: linear-gradient(90deg, #f6f2ff 0%, #f6f2ff 35%, #ff2d78 48%, #bfb9d4 60%, #00ffcc 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.radar-hero p {
    max-width: 630px;
    margin: 0;
    color: #c4bed4;
    font-size: 18px;
    font-weight: 600;
}

.hero-buttons {
    align-self: end;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn, .pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 4px;
    background: rgba(18,18,31,.72);
    color: #f4f0ff;
    padding: 11px 20px;
    cursor: pointer;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-weight: 800;
    transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.btn:hover, .pill:hover {
    transform: translateY(-1px);
    border-color: rgba(255,45,120,.54);
    box-shadow: 0 0 16px rgba(255,45,120,.4);
    color: #fff;
}

.btn.primary {
    border-color: rgba(255,45,120,.72);
    color: var(--primary);
    text-shadow: 0 0 8px currentColor;
    background: rgba(255,45,120,.055);
}

.btn.ghost {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.045);
}

.home-radar-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 290px;
    gap: 24px;
    margin-top: 32px;
}

.home-column, .home-center, .feature-stack {
    display: grid;
    align-content: start;
    gap: 18px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-heading h2, .panel-heading h3 {
    margin: 0;
}

.panel-heading h2 { font-size: 22px; }
.panel-heading h3 { font-size: 17px; }
.panel-heading span, .panel-heading a, .side-label {
    color: var(--secondary);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-shadow: 0 0 8px currentColor;
}

.radar-card, .radar-panel, .article-card, .widget, .auth-card, .admin-panel, .odds-card, .timeline-item, .ranking-row, .stat-card, .brand-asset-preview {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 9px;
    box-shadow: inset 0 0 16px rgba(255,255,255,.018);
}

.radar-panel {
    padding: 22px;
}

.radar-panel:hover, .radar-card:hover, .article-card:hover {
    border-color: rgba(255,45,120,.32);
    box-shadow: inset 0 0 18px rgba(255,45,120,.05), 0 0 18px rgba(255,45,120,.08);
}

.news-tile {
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.news-tile:hover { transform: translateY(-2px); }

.tile-thumb, .thumb {
    display: block;
    background-color: #2a2932;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tile-thumb::before, .thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(10,10,18,.25));
}

.news-tile.compact .tile-thumb { height: 132px; }
.news-tile.lead-tile .tile-thumb { height: 148px; }

.news-tile.wide {
    display: grid;
    grid-template-rows: 150px auto;
}

.news-tile.wide .tile-thumb { min-height: 150px; }

.tile-copy { padding: 16px; }

.tile-label, .badge {
    display: inline-flex;
    color: var(--secondary);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 0 8px currentColor;
}

.news-tile:nth-child(odd) .tile-label { color: var(--primary); }
.news-tile:nth-child(4n) .tile-label { color: var(--tertiary); }

.tile-copy h3, .article-card h3 {
    margin: 6px 0 8px;
    color: #f7f3ff;
    font-size: 15px;
    line-height: 1.24;
    letter-spacing: -.02em;
}

.news-tile.wide .tile-copy h3 { font-size: 18px; }
.tile-time, .card-meta { color: var(--muted-2); font-size: 12px; }

.data-hub-panel { border-color: rgba(255,255,255,.14); }
.entry-table { margin-top: 18px; display: grid; }
.entry-row {
    display: grid;
    grid-template-columns: 1.15fr 1.1fr 1.35fr 60px;
    align-items: center;
    gap: 14px;
    padding: 13px 8px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #bfb9cd;
    font-size: 14px;
}
.entry-head {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    border-top: 0;
}
.play-dot {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    color: var(--secondary);
    border: 1px solid rgba(0,255,204,.38);
    border-radius: 999px;
    background: rgba(0,255,204,.08);
    box-shadow: inset 0 0 12px rgba(0,255,204,.08);
}

.viral-panel {
    border-color: rgba(255,45,120,.24);
    background: linear-gradient(90deg, rgba(18,18,31,.96), rgba(255,45,120,.11));
}
.viral-list { display: grid; gap: 12px; margin-top: 18px; }
.viral-row {
    display: grid;
    grid-template-columns: 38px 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 6px;
    background: rgba(255,255,255,.035);
}
.viral-row strong:first-child { color: var(--primary); font-size: 22px; }
.song-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: radial-gradient(circle at 30% 20%, rgba(0,255,204,.30), rgba(255,45,120,.18));
    box-shadow: 0 0 14px rgba(0,255,204,.18);
}
.viral-row b { display: block; color: #fff; }
.viral-row small { color: var(--muted); }
.viral-row em { color: var(--secondary); font-style: normal; font-weight: 800; }

.next-event-panel {
    text-align: center;
    border-color: rgba(0,255,204,.72);
    box-shadow: inset 0 0 18px rgba(0,255,204,.08), var(--glow-cyan);
}
.next-event-panel h3 { margin: 8px 0 20px; font-size: 19px; }
.countdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.countdown-grid div {
    padding: 10px 6px;
    background: rgba(255,45,120,.08);
    border: 1px solid rgba(255,45,120,.18);
    border-radius: 6px;
}
.countdown-grid strong { display: block; color: var(--primary); font-size: 24px; line-height: 1; text-shadow: var(--glow-pink); }
.countdown-grid span { color: var(--muted); font-size: 10px; text-transform: uppercase; }

.comment-feed {
    display: grid;
    gap: 9px;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.17);
}
.comment-feed p { margin: 0; color: #bfb9cd; font-size: 13px; line-height: 1.35; }
.comment-feed strong { color: var(--secondary); }
.comment-feed p:nth-child(even) strong { color: var(--primary); }
.join-line {
    display: block;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.04);
    color: #d7d1e5;
    font-size: 12px;
}
.odds-mini-panel h3 { margin: 0 0 12px; }
.odds-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.odds-list li { color: #d6d0e2; font-weight: 700; }
.odds-list li::marker { color: var(--muted); }
.odds-list li { display: list-item; }
.odds-list span { display: inline-block; min-width: 130px; }
.odds-list strong { color: var(--secondary); float: inline-end; }

.focus-country-panel {
    border-color: rgba(0,255,204,.28);
    background: linear-gradient(130deg, rgba(0,255,204,.07), rgba(255,45,120,.035) 55%, rgba(255,255,255,.04));
}
.focus-country-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.country-hero-mini, .metric {
    min-height: 74px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.035);
    border-radius: 6px;
}
.country-hero-mini {
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
}
.country-hero-mini span { grid-row: span 2; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255,45,120,.42); background: rgba(255,255,255,.85); font-size: 24px; }
.country-hero-mini strong, .metric strong { color: #fff; font-size: 18px; }
.country-hero-mini small, .metric span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.metric strong { color: var(--secondary); text-shadow: var(--glow-cyan); }
.deep-link {
    display: block;
    margin-top: 16px;
    padding: 10px 12px;
    text-align: center;
    color: var(--secondary);
    border: 1px solid rgba(0,255,204,.35);
    background: rgba(0,255,204,.08);
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section-head, .page-title, .admin-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0 22px;
}
.page-title { display: grid; align-items: start; justify-content: start; gap: 12px; }
.section-head h2, .page-title h1, .admin-title h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.03;
}
.page-title p { margin: 0; color: var(--muted); font-size: 18px; }

.content-grid.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-card { overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.article-card:hover { transform: translateY(-3px); }
.thumb { height: 188px; background-color: #25242d; }
.card-body { padding: 18px; }
.article-card h3 { font-size: 20px; margin: 10px 0; }
.article-card p { margin: 0 0 14px; color: var(--muted); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.read-more { color: var(--tertiary); font-weight: 900; text-shadow: 0 0 8px rgba(255,224,74,.35); }
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.widget { padding: 22px; }
.gradient-widget { background: linear-gradient(135deg, rgba(255,45,120,.18), rgba(0,255,204,.10)); }

.article-page { max-width: 900px; margin: 0 auto; }
.article-hero { text-align: center; padding: 34px 0 24px; }
.article-hero h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.02; margin: 16px 0; }
.lead { font-size: 21px; color: #c8c2d8; }
.meta { color: var(--muted); }
.article-image { display: block; width: 100%; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); margin: 20px 0; }
.article-body { font-size: 20px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 32px; }
.article-body h2, .article-body h3 { color: var(--tertiary); text-shadow: 0 0 8px rgba(255,224,74,.25); }
.article-body a { color: var(--secondary); text-decoration: underline; }

.table-wrap { overflow: auto; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.data-table, .admin-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td, .admin-table th, .admin-table td { padding: 14px 15px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: inherit; }
.data-table th, .admin-table th { color: var(--secondary); background: rgba(255,255,255,.045); font-family: "Space Grotesk", Inter, sans-serif; font-size: 12px; text-transform: uppercase; }
.data-table tr:hover, .admin-table tr:hover { background: rgba(255,255,255,.035); }

.timeline { display: grid; gap: 16px; }
.timeline-item { border-inline-start: 4px solid var(--primary); padding: 20px; }
.timeline-item time { color: var(--secondary); font-weight: 900; text-shadow: var(--glow-cyan); }
.timeline-item h3 { margin: 8px 0; }
.timeline-item p { margin: 0; color: var(--muted); }

.odds-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.odds-card { padding: 22px; }
.odds-card span { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.odds-card h3 { margin: 8px 0; }
.odds-card strong { font-size: 34px; color: var(--secondary); text-shadow: var(--glow-cyan); }

.ranking-list { display: grid; gap: 12px; }
.ranking-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 170px 90px 92px; gap: 12px; align-items: center; padding: 13px; }
.ranking-row button { border: 1px solid rgba(255,45,120,.62); border-radius: 5px; background: rgba(255,45,120,.12); color: var(--primary); padding: 10px; font-weight: 900; cursor: pointer; }
.ranking-row button:hover { box-shadow: var(--glow-pink); }

.auth-card { width: min(520px, 100%); margin: 64px auto; padding: 28px; }
.auth-card h1 { margin-top: 0; }
.flash { padding: 14px 18px; border-radius: 9px; margin: 14px 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.flash.success { background: rgba(0,255,157,.10); border-color: rgba(0,255,157,.32); }
.flash.error { background: rgba(255,93,115,.12); border-color: rgba(255,93,115,.32); }
.empty, .empty-card { text-align: center; color: var(--muted); padding: 48px 20px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0; }
.pagination a { padding: 10px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.pagination a.active { border-color: rgba(255,45,120,.62); color: var(--primary); box-shadow: var(--glow-pink); }

.site-footer {
    width: min(1230px, calc(100% - 48px));
    margin: 0 auto;
    padding: 54px 0 70px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,.14);
}
.footer-brand strong { display: block; margin-bottom: 12px; color: #f7f3ff; font-family: Sora, Inter, sans-serif; font-size: 20px; }
.footer-brand p { max-width: 520px; margin: 0; }
.footer-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-links a { text-decoration: underline; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--secondary); text-shadow: var(--glow-cyan); }

.admin-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: var(--bg); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px; background: rgba(12,12,24,.96); border-inline-end: 1px solid rgba(255,255,255,.12); overflow-y: auto; }
.admin-brand { font-size: 20px; color: var(--primary); text-shadow: var(--glow-pink); }
.admin-brand span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,45,120,.4); background: rgba(255,45,120,.10); }
.admin-brand .brand-logo { max-width: 176px; max-height: 48px; }
.admin-sidebar nav { display: grid; gap: 7px; margin-top: 26px; }
.admin-sidebar nav a { color: var(--muted); padding: 11px 13px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; }
.admin-sidebar nav a:hover { color: var(--secondary); border-color: rgba(0,255,204,.25); background: rgba(0,255,204,.055); box-shadow: inset 0 0 14px rgba(0,255,204,.05); }
.admin-main { padding: 28px; min-width: 0; }
.admin-topbar { display: flex; justify-content: flex-end; align-items: center; min-height: 42px; margin-bottom: 18px; color: var(--muted); }
.admin-login { display: grid; place-items: center; min-height: 100vh; }
.admin-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.code-area { font-family: Consolas, monospace; direction: ltr; text-align: left; }
.admin-preview { max-width: 220px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); }
.danger { color: var(--danger) !important; }
.hint { color: var(--muted); }
.admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-grid.compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 14px; }
.stat-card { padding: 24px; background: linear-gradient(135deg, rgba(255,45,120,.16), rgba(0,255,204,.08)); }
.stat-card span { display: block; color: var(--muted); }
.stat-card strong { font-size: 40px; color: #fff; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.filters { display: flex; gap: 12px; align-items: end; margin-bottom: 16px; flex-wrap: wrap; }
.filters label { margin: 0; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
.mini-chart { height: 220px; display: flex; align-items: end; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.mini-chart div { flex: 1; min-height: 8px; background: linear-gradient(180deg, var(--secondary), var(--primary)); border-radius: 10px 10px 0 0; position: relative; box-shadow: 0 0 14px rgba(0,255,204,.18); }
.mini-chart span { position: absolute; bottom: -24px; font-size: 11px; white-space: nowrap; transform: rotate(-35deg); transform-origin: right; }
.brand-assets-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.brand-asset-preview { padding: 16px; }
.brand-asset-preview img { display: block; max-height: 86px; max-width: 260px; object-fit: contain; margin: 12px 0; }
.brand-asset-preview .favicon-preview { width: 48px; height: 48px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.admin-table td { vertical-align: top; }
.progress-shell { width: 100%; height: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), var(--primary), var(--tertiary)); border-radius: 999px; transition: width .35s ease; box-shadow: var(--glow-pink); }
.progress-meta { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px; color: #efeaff; }
.translation-log { display: grid; gap: 8px; max-height: 240px; overflow: auto; margin-top: 16px; }
.log-line { padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.055); color: #ded9ff; }
.log-line.error { background: rgba(255,93,93,.16); color: #ffd7d7; }
.admin-panel[hidden] { display: none !important; }

@media (max-width: 1180px) {
    .home-radar-layout { grid-template-columns: minmax(0, 1fr) 310px; }
    .trend-column { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .trend-column .panel-heading { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
    .site-header { grid-template-columns: 1fr auto; }
    .menu-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.05); color: var(--text); }
    .main-nav { display: none; grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
    .header-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
    .mini-search input { width: min(240px, 100%); }
    .radar-hero, .home-radar-layout, .content-grid.with-sidebar, .admin-body, .admin-grid { grid-template-columns: 1fr; }
    .hero-buttons { justify-content: flex-start; }
    .trend-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-grid, .odds-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .focus-country-grid { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { position: relative; height: auto; }
    .form-grid, .brand-assets-grid { grid-template-columns: 1fr; }
    .ranking-row { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; }
}

@media (max-width: 640px) {
    .site-header { padding: 12px 14px; }
    .site-main, .site-footer, .ad-slot { width: min(100% - 24px, 1230px); }
    .radar-hero { min-height: 420px; padding: 24px; }
    .radar-hero h1 { font-size: 40px; }
    .trend-column, .article-grid, .odds-grid, .stat-grid, .focus-country-grid { grid-template-columns: 1fr; }
    .entry-row { grid-template-columns: 1fr; gap: 4px; }
    .entry-head { display: none; }
    .article-body { font-size: 18px; padding: 22px; }
    .section-head h2, .page-title h1, .admin-title h1 { font-size: 34px; }
    .footer-links { gap: 14px; }
}

/* Homepage hero carousel + admin hero manager */
.hero-carousel {
    display: block;
    padding: 0;
    min-height: 484px;
}

.hero-carousel::before,
.hero-carousel::after {
    z-index: 1;
    pointer-events: none;
}

.hero-carousel .hero-stage-lights {
    z-index: 3;
    pointer-events: none;
}

.hero-track {
    position: relative;
    min-height: 484px;
    z-index: 2;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    padding: clamp(30px, 5vw, 64px);
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity .55s ease, transform .85s ease;
    background-image:
        linear-gradient(180deg, rgba(10,10,18,.12), rgba(10,10,18,.94)),
        radial-gradient(circle at 18% 0%, rgba(255,45,120,.33), transparent 28%),
        radial-gradient(circle at 86% 10%, rgba(0,255,204,.20), transparent 34%),
        var(--hero-bg);
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-carousel .hero-content,
.hero-carousel .hero-buttons {
    z-index: 4;
}

.hero-carousel-controls {
    position: absolute;
    z-index: 5;
    inset-inline: clamp(20px, 4vw, 48px);
    bottom: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(8,8,18,.72);
    color: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 26px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(8,8,18,.42);
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

.hero-arrow:hover,
.hero-dot:hover,
.hero-dot.active {
    border-color: rgba(0,255,204,.72);
    background: rgba(0,255,204,.16);
    box-shadow: var(--glow-cyan);
    transform: translateY(-1px);
}

.table-thumb {
    width: 98px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.14);
}

.hero-admin-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
}

.hero-admin-preview img {
    width: min(360px, 100%);
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.16);
}

.inline-form {
    display: inline;
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--secondary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.link-button:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 980px) {
    .hero-carousel,
    .hero-track {
        min-height: 430px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-carousel-controls {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-carousel,
    .hero-track {
        min-height: 430px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-carousel-controls {
        bottom: 14px;
        inset-inline: 18px;
    }
}

/* ODDS + SVG flags */
.country-name-with-flag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.country-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 6px 16px rgba(0,0,0,.24);
    flex: 0 0 auto;
    background: rgba(255,255,255,.08);
}

.country-flag.small {
    width: 24px;
    height: 18px;
}

.country-flag.large {
    width: 72px;
    height: 52px;
    border-radius: 12px;
}

.flag-placeholder {
    display: inline-grid;
    place-items: center;
    background: rgba(255,255,255,.08);
    color: var(--secondary);
}

.flag-avatar {
    overflow: hidden;
    background: transparent !important;
}

.flag-avatar .country-flag {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.odds-page-title {
    margin-bottom: 18px;
}

.odds-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.odds-status-strip > div {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,45,120,.13), rgba(0,255,204,.06));
}

.odds-status-strip span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.odds-status-strip strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 20px;
}

.odds-market-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.odds-market-tabs a {
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,.045);
    font-weight: 800;
}

.odds-market-tabs a.active,
.odds-market-tabs a:hover {
    color: #06110f;
    border-color: rgba(0,255,204,.55);
    background: var(--secondary);
    box-shadow: var(--glow-cyan);
}

.odds-table-wrap {
    border-radius: var(--radius);
}

.odds-table {
    min-width: 980px;
}

.odds-table th,
.odds-table td {
    white-space: nowrap;
}

.odds-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.odds-rank {
    color: var(--secondary);
    font-weight: 900;
    width: 54px;
}

.odds-country-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.odds-country-cell strong {
    display: block;
    color: #fff;
}

.odds-country-cell small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    white-space: normal;
    max-width: 340px;
}

.odds-probability-cell strong {
    display: block;
    margin-bottom: 6px;
    color: var(--secondary);
}

.odds-bar {
    display: block;
    width: 90px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    overflow: hidden;
}

.odds-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    box-shadow: var(--glow-cyan);
}

.odds-table tfoot td {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    background: rgba(255,255,255,.035);
}

.odds-admin-stats {
    margin-bottom: 18px;
}

.odds-admin-stats .stat-card strong {
    font-size: 28px;
}

.odds-admin-form,
.odds-run-panel {
    margin-bottom: 18px;
}

.odds-cron-box {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(0,255,204,.2);
    border-radius: 12px;
    background: rgba(0,255,204,.045);
}

.odds-cron-box code {
    display: block;
    padding: 12px;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.24);
    color: #d9fff6;
    direction: ltr;
    text-align: left;
}

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

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    font-size: 12px;
    font-weight: 900;
}

.status-pill.success {
    color: var(--ok);
    border-color: rgba(0,255,157,.35);
    background: rgba(0,255,157,.08);
}

.status-pill.failed {
    color: var(--danger);
    border-color: rgba(255,93,115,.35);
    background: rgba(255,93,115,.08);
}

.status-pill.processing {
    color: var(--tertiary);
    border-color: rgba(255,224,74,.35);
    background: rgba(255,224,74,.08);
}

@media (max-width: 980px) {
    .odds-status-strip {
        grid-template-columns: 1fr;
    }
}

.odds-progress-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.odds-progress-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.odds-progress-head h2 {
    margin: 0 0 6px;
}

.odds-progress-head p {
    margin: 0;
    color: var(--muted);
}

.odds-progress-track {
    width: 100%;
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.08);
}

.odds-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--tertiary));
    transition: width .35s ease;
}

.odds-progress-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 13px;
}

.odds-progress-meta strong {
    color: var(--text);
}

.odds-progress-actions {
    align-items: center;
}

.odds-progress-actions small {
    color: var(--muted);
}

.status-pill.queued,
.status-pill.locked {
    color: var(--tertiary);
    border-color: rgba(255,224,74,.35);
    background: rgba(255,224,74,.08);
}

.status-pill.skipped,
.status-pill.not_run {
    color: var(--muted);
}

@media (max-width: 720px) {
    .odds-progress-head {
        flex-direction: column;
        align-items: stretch;
    }

    .odds-progress-head .status-pill {
        align-self: flex-start;
    }
}

.btn.danger {
    border-color: rgba(255,93,115,.48);
    color: var(--danger);
    background: rgba(255,93,115,.08);
}

.btn.danger:hover {
    border-color: rgba(255,93,115,.72);
    box-shadow: 0 0 16px rgba(255,93,115,.32);
}
