:root {
    --app-bg: #0b1220;
    --app-card: #111827;
    --app-card-2: #162033;
    --app-border: rgba(255,255,255,0.08);
    --app-soft: rgba(255,255,255,0.05);
    --app-text: #f8fafc;
    --app-muted: #9fb0c4;
    --app-green: #10b981;
    --app-red: #ef4444;
    --app-blue: #38bdf8;
    --app-yellow: #facc15;
}

html { scroll-behavior: smooth; }
body.public-site {
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.09), transparent 22%),
        radial-gradient(circle at top right, rgba(16,185,129,0.08), transparent 18%),
        linear-gradient(180deg, #09111d 0%, #0f172a 35%, #08101d 100%);
    color: var(--app-text);
    min-height: 100vh;
}

body.public-site a { text-decoration: none; }
body.public-site .container { position: relative; }
body.public-site .card,
.public-panel,
.public-glass,
.public-surface {
    background: linear-gradient(180deg, rgba(17,24,39,0.98), rgba(15,23,42,0.98));
    border: 1px solid var(--app-border);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.public-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--app-text);
    font-size: 0.88rem;
    font-weight: 600;
}

.public-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(17,24,39,0.96), rgba(15,23,42,0.96));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}
.public-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(56,189,248,0.12), transparent 18%),
        radial-gradient(circle at 88% 12%, rgba(16,185,129,0.12), transparent 16%);
    pointer-events: none;
}
.public-hero > * { position: relative; z-index: 1; }
.public-hero-title {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}
.public-hero-subtitle {
    color: var(--app-muted);
    max-width: 760px;
}
.public-metric {
    min-width: 140px;
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.public-metric-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--app-muted);
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.public-metric-value {
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
}

.top-score-strip {
    position: relative;
    z-index: 1031;
    padding: 8px 0;
    background: rgba(3, 7, 18, 0.92);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.top-score-strip-inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.top-score-strip-inner::-webkit-scrollbar { display: none; }
.ticker-card {
    min-width: 220px;
    max-width: 250px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--app-text);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ticker-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56,189,248,0.45);
    background: rgba(255,255,255,0.07);
}
.ticker-card .teams {
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.35;
}
.ticker-card .meta {
    color: var(--app-muted);
    font-size: 0.76rem;
}
.ticker-card .mini-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 700;
}
.ticker-status-live { color: #fecaca; }
.ticker-status-upcoming { color: #bfdbfe; }
.ticker-status-result { color: #d1d5db; }

.frontend-navbar {
    background: rgba(9, 17, 30, 0.9) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.frontend-navbar .nav-link {
    color: #cbd5e1 !important;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 999px;
    padding: 9px 16px !important;
}
.frontend-navbar .nav-link:hover,
.frontend-navbar .nav-link.active-link {
    background: rgba(255,255,255,0.06);
    color: #fff !important;
}
.frontend-navbar .nav-link.active-link {
    border: 1px solid rgba(16,185,129,0.32);
    box-shadow: inset 0 0 0 1px rgba(16,185,129,0.1);
}

.public-section-title {
    font-size: 0.86rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--app-muted);
    font-weight: 800;
}
.public-section-heading {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 800;
    margin-bottom: 0;
}

.match-mini,
.home-card,
.news-mini,
.public-match-card {
    border-radius: 18px !important;
}
.home-card,
.match-mini,
.news-mini,
.public-hover-card {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.home-card:hover,
.match-mini:hover,
.news-mini:hover,
.public-hover-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56,189,248,0.32) !important;
    box-shadow: 0 18px 35px rgba(0,0,0,0.28);
}

.public-tab-bar,
.nav-scroll-container,
.custom-tabs {
    background: rgba(6, 12, 24, 0.88) !important;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0 8px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}
.scorecard-tab,
.custom-tabs .nav-link {
    min-height: 52px;
    border-radius: 14px;
}
.scorecard-tab.active-tab,
.custom-tabs .nav-link.active {
    background: rgba(16,185,129,0.12) !important;
}

.table,
.table > :not(caption) > * > * {
    color: #e5edf7;
}
.table thead th {
    color: #9fb0c4;
    text-transform: uppercase;
    letter-spacing: .7px;
    font-size: .74rem;
    border-bottom-color: rgba(255,255,255,0.08);
}
.table tbody td,
.table tbody th {
    border-color: rgba(255,255,255,0.06);
}

.public-card-grid { gap: 16px; }
.public-news-image { border-radius: 16px 16px 0 0; object-fit: cover; }
.public-match-meta {
    color: var(--app-muted);
    font-size: 0.82rem;
}

.match-center-hero,
.scorecard-hero,
.info-hero {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 42px rgba(0,0,0,0.28);
}

.sticky-summary {
    position: sticky;
    top: 96px;
}

.footer-glow {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(3, 7, 18, 0.82);
}

@media (max-width: 991px) {
    .public-hero { padding: 24px 18px; border-radius: 20px; }
    .public-metric { min-width: calc(50% - 6px); }
    .frontend-navbar .navbar-collapse {
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .frontend-navbar .nav-link { border-radius: 12px; }
}

@media (max-width: 576px) {
    .top-score-strip { padding: 6px 0; }
    .ticker-card { min-width: 190px; }
    .public-hero-title { font-size: 1.55rem; }
    .public-metric { min-width: 100%; }
}
