:root {
    /* Grey-forward body palette while keeping teal accent actions */
    --st-bg-deep: #0b1220;
    --st-bg-elevated: #3a414c;
    --st-bg-panel: #454d59;
    --st-bg-card: #515b69;
    --st-border: rgba(226, 232, 240, 0.32);
    --st-border-strong: rgba(226, 232, 240, 0.46);

    /* Single accent family (teal → mint) */
    --st-accent: #34e4b4;
    --st-accent-dim: #0d9488;
    --st-accent-soft: rgba(52, 228, 180, 0.14);
    --st-accent-ring: rgba(52, 228, 180, 0.35);

    --st-gold: #fbbf24;
    --st-gold-deep: #b45309;

    --st-text: #ffffff;
    --st-text-soft: #f1f5f9;
    --st-muted: #d5deea;

    --st-radius: 14px;
    --st-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

body.sokatips-body {
    font-family: "DM Sans", system-ui, sans-serif;
    background:
        radial-gradient(1250px 580px at 12% -10%, rgba(255, 255, 255, 0.16), transparent 58%),
        radial-gradient(980px 520px at 90% 0%, rgba(226, 232, 240, 0.14), transparent 54%),
        linear-gradient(180deg, #39414d 0%, #464f5d 100%);
    color: var(--st-text);
    min-height: 100vh;
}

/* Bootstrap dark helpers on this skin */
.sokatips-body .text-secondary {
    color: var(--st-muted) !important;
}

.text-accent-st {
    color: var(--st-accent) !important;
}

.text-st-gold {
    color: var(--st-gold) !important;
}

.st-nav {
    background: color-mix(in srgb, var(--st-bg-deep) 88%, transparent) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--st-border) !important;
}

.st-nav .nav-link {
    color: var(--st-muted) !important;
    font-weight: 500;
}

.st-nav .nav-link:hover,
.st-nav .nav-link.active {
    color: var(--st-text) !important;
}

.st-brand {
    letter-spacing: -0.02em;
    font-weight: 700;
    background: linear-gradient(120deg, var(--st-accent-dim), var(--st-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.st-logo-nav {
    height: 32px;
    width: auto;
    max-width: min(200px, 52vw);
    display: block;
}

.st-logo-footer {
    height: 56px;
    width: auto;
    max-width: min(280px, 100%);
    display: block;
}

.st-hero {
    padding: 2.5rem 0 2rem;
}

.st-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--st-accent-soft);
    border: 1px solid var(--st-accent-ring);
    color: var(--st-accent);
}

.st-panel {
    background: linear-gradient(145deg, var(--st-bg-panel), var(--st-bg-elevated));
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow);
}

.st-league-pin {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.st-league-pin:hover {
    background: rgba(148, 163, 184, 0.08);
    border-color: var(--st-border);
    color: var(--st-text);
}

.st-league-pin img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(241, 245, 249, 0.06);
}

.st-filter-tabs .nav-link {
    border-radius: 999px !important;
    padding: 0.45rem 1rem !important;
    color: var(--st-muted) !important;
    font-weight: 600;
}

.st-filter-tabs .nav-link.active {
    background: linear-gradient(120deg, var(--st-accent-dim), var(--st-accent)) !important;
    color: var(--st-bg-deep) !important;
}

.match-card-st {
    background: linear-gradient(165deg, var(--st-bg-card), color-mix(in srgb, var(--st-bg-card) 86%, black));
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    overflow: hidden;
    min-height: 260px;
    transition:
        transform 0.14s ease,
        border-color 0.14s ease,
        box-shadow 0.14s ease;
}

.match-card-st:hover {
    transform: translateY(-2px);
    border-color: var(--st-accent-ring);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

/* Prevent first/last card clipping from Bootstrap row negative gutters in tight 3-col grids */
.st-card-grid {
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 992px) {
    .st-home-layout {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 768px) {
    .match-card-st {
        min-height: 280px;
    }
}

@media (min-width: 992px) {
    /* No fixed aspect-ratio — three columns + wrapped names need natural height; ratio + overflow hid bottoms */
    .match-card-st {
        min-height: 300px;
    }
}

.match-card-st .crest {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.06);
    border: 1px solid var(--st-border);
}

.match-card-st .vs-pill {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--st-muted);
}

.match-card-st .league-ribbon {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--st-muted);
    border-bottom: 1px solid var(--st-border);
    background: color-mix(in srgb, var(--st-bg-elevated) 92%, transparent);
}

.match-card-st .match-card-body {
    padding: 0.72rem 0.95rem 0.95rem;
}

.match-card-st .match-card-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.42rem;
}

.match-card-st .team-col {
    min-width: 0;
}

.match-card-st .pick-col {
    padding-inline: 0.2rem;
    max-width: 6.2rem;
}

@media (min-width: 992px) {
    /* Slightly more right breathing room to avoid edge clipping of away-team content */
    .match-card-st .match-card-body {
        padding-right: 1.1rem;
    }
}

.match-card-st .match-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.match-card-st .meta-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--st-muted) 92%, var(--st-accent));
    background: rgba(241, 245, 249, 0.05);
    border: 1px solid var(--st-border);
}

.match-card-st .meta-pill.muted {
    color: var(--st-muted);
    opacity: 0.88;
}

.match-card-st .match-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}

.match-card-st .stat-cell {
    text-align: center;
    padding: 0.45rem 0.35rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid color-mix(in srgb, var(--st-border) 80%, transparent);
}

.match-card-st .stat-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--st-muted);
    margin-bottom: 0.18rem;
}

.match-card-st .stat-val {
    font-size: 0.92rem;
    font-weight: 800;
    color: color-mix(in srgb, #f8fafc 88%, var(--st-accent));
}

.match-card-st .match-card-odds {
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    border: 1px dashed color-mix(in srgb, var(--st-accent) 22%, var(--st-border));
    background: rgba(52, 228, 180, 0.04);
}

.match-card-st .odds-caption {
    font-size: 0.65rem !important;
    letter-spacing: 0.03em;
}

.match-card-st .odds-trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    text-align: center;
}

.match-card-st .odds-lbl {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--st-muted);
    margin-bottom: 0.06rem;
}

.match-card-st .odds-num {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 0.88rem;
    color: #f8fafc;
}

.st-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--st-bg-deep) 88%, transparent),
        color-mix(in srgb, var(--st-bg-deep) 55%, transparent)
    );
    backdrop-filter: blur(3px);
    border-radius: 0 0 var(--st-radius) var(--st-radius);
}

.prob-mask {
    filter: blur(6px);
    user-select: none;
}

.footer-st {
    margin-top: 4rem;
    padding: 3rem 0 2.25rem;
    border-top: 1px solid var(--st-border);
    background: linear-gradient(180deg, color-mix(in srgb, var(--st-bg-panel) 55%, transparent), color-mix(in srgb, var(--st-bg-deep) 90%, black));
    color: var(--st-muted);
    font-size: 0.9rem;
}

.footer-st-heading {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--st-text-soft);
    margin-bottom: 0.85rem;
}

.footer-st-links li {
    margin-bottom: 0.45rem;
}

.footer-st-links a {
    color: var(--st-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-st-links a:hover {
    color: var(--st-accent);
}

.footer-st-bottom {
    border-top: 1px solid var(--st-border);
}

.st-browse-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--st-accent-soft);
    color: var(--st-accent);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: 1px solid var(--st-accent-ring);
}

.sp-country-badge {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--st-accent-soft);
    color: var(--st-accent);
    font-weight: 800;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--st-accent-ring);
}

.sp-explorer-acc .accordion-button {
    background: transparent;
    color: var(--st-text-soft);
    box-shadow: none;
    font-size: 0.9rem;
}

.sp-explorer-acc .accordion-button:not(.collapsed) {
    background: rgba(148, 163, 184, 0.1);
    color: var(--st-text);
}

.sp-explorer-acc .accordion-button::after {
    filter: invert(0.82) brightness(1.05);
}

.sp-explorer-acc .accordion-body {
    background: rgba(15, 23, 42, 0.72);
    border-top: 1px solid var(--st-border);
}

.sp-explorer-acc .accordion-body a.sp-league-mini-link {
    color: var(--st-text-soft) !important;
    border: 1px solid transparent;
    transition:
        border-color 0.12s ease,
        background 0.12s ease;
}

.sp-explorer-acc .accordion-body .sp-league-mini-link .sp-league-count {
    color: #cbd5e1 !important;
    font-weight: 600;
    flex-shrink: 0;
}

a.sp-league-mini-link:focus-visible {
    outline: 2px solid var(--st-accent-ring);
    outline-offset: 2px;
}

a.sp-league-mini-link:hover {
    border-color: var(--st-border-strong);
    background: rgba(148, 163, 184, 0.1);
}

.sp-league-active {
    border-color: var(--st-accent-ring) !important;
    background: var(--st-accent-soft) !important;
}

.st-league-pin.sp-league-active {
    border-color: var(--st-accent-ring) !important;
    background: var(--st-accent-soft) !important;
}

.sp-dense-table tbody tr {
    border-color: var(--st-border) !important;
}

.sp-vs-badge {
    font-size: 0.65rem;
}

/* —— Buttons / pills (avoid mixing Bootstrap greens with custom skin) —— */

.st-btn-primary {
    background: linear-gradient(120deg, var(--st-accent-dim), var(--st-accent));
    color: var(--st-bg-deep) !important;
    border: none;
    font-weight: 600;
}

.st-btn-primary:hover {
    filter: brightness(1.06);
}

.st-btn-outline {
    color: var(--st-text-soft) !important;
    border: 1px solid var(--st-border-strong) !important;
    background: rgba(15, 23, 42, 0.35);
    font-weight: 600;
}

.st-btn-outline:hover {
    border-color: var(--st-accent-ring) !important;
    color: var(--st-text) !important;
}

.st-btn-vip {
    background: linear-gradient(120deg, var(--st-gold-deep), var(--st-gold));
    color: var(--st-bg-deep) !important;
    border: none;
    font-weight: 700;
}

.st-btn-vip:hover {
    filter: brightness(1.06);
}

.st-pill-muted {
    color: var(--st-text-soft) !important;
    border: 1px solid var(--st-border-strong) !important;
    background: rgba(15, 23, 42, 0.4);
}

.st-pill-muted:hover {
    border-color: var(--st-accent-ring) !important;
}

.st-pill-active {
    background: var(--st-text-soft) !important;
    color: var(--st-bg-deep) !important;
    border: 1px solid transparent !important;
    font-weight: 700 !important;
}

.st-pill-market-active {
    background: linear-gradient(120deg, var(--st-accent-dim), var(--st-accent)) !important;
    color: var(--st-bg-deep) !important;
    border: none !important;
    font-weight: 700 !important;
}

.st-topstrip {
    background: color-mix(in srgb, var(--st-bg-panel) 92%, transparent);
    border: 1px solid var(--st-border) !important;
}

.st-panel-explorer {
    background: linear-gradient(160deg, var(--st-bg-panel), var(--st-bg-elevated));
    border-color: var(--st-border) !important;
}

/* Let the left explorer grow with the full country/league list — no inner clipping */
.st-explorer-sidebar {
    top: 88px;
    max-height: none;
    overflow: visible;
}

.st-accordion-item {
    background: rgba(241, 245, 249, 0.04);
    border: 1px solid var(--st-border) !important;
}

.st-badge-conf {
    background: var(--st-accent-soft) !important;
    color: var(--st-accent) !important;
    border: 1px solid var(--st-accent-ring) !important;
}

.st-rule {
    border-color: var(--st-border) !important;
}

.st-input-dark {
    background: var(--st-bg-deep) !important;
    border-color: var(--st-border-strong) !important;
    color: var(--st-text) !important;
}

.st-input-dark:focus {
    border-color: var(--st-accent-ring) !important;
    box-shadow: 0 0 0 0.2rem var(--st-accent-soft) !important;
}

.st-badge-count {
    background: var(--st-bg-elevated) !important;
    border: 1px solid var(--st-border) !important;
    color: var(--st-text-soft) !important;
}

.st-thumb-muted {
    object-fit: contain;
    background: rgba(241, 245, 249, 0.06);
    border: 1px solid var(--st-border);
}

.st-divider-top {
    border-top: 1px solid var(--st-border) !important;
}

.st-media-showcase {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.st-media-lane .lane-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-muted);
    margin-bottom: 0.25rem;
}

.st-media-lane .lane-track {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
}

.st-media-lane .lane-chip {
    min-width: 210px;
    max-width: 230px;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    border: 1px solid var(--st-border);
    background: color-mix(in srgb, var(--st-bg-panel) 90%, transparent);
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
}

.st-media-lane .lane-chip img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--st-border);
    background: rgba(241, 245, 249, 0.08);
    flex-shrink: 0;
}

.st-media-lane .chip-title {
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-media-lane .chip-sub {
    font-size: 0.68rem;
    color: var(--st-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-jumbo-scroller {
    position: relative;
    border: 1px solid var(--st-border);
    border-radius: 14px;
    overflow: hidden;
    height: 188px;
    background: linear-gradient(130deg, #1f2937, #334155);
}

.st-jumbo-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.62));
}

.st-jumbo-overlay .jumbo-title {
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
}

.st-jumbo-overlay .jumbo-sub {
    font-size: 0.78rem;
    color: rgba(241, 245, 249, 0.9);
}

.st-jumbo-track {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    width: max-content;
    animation: stJumboScroll 42s linear infinite;
}

.st-jumbo-item {
    width: 320px;
    height: 100%;
    margin: 0;
    flex: 0 0 auto;
}

.st-jumbo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}

@keyframes stJumboScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Auth (login / register) */
.st-auth-card {
    margin-left: auto;
    margin-right: auto;
}

.st-auth-form .form-label {
    color: var(--st-text-soft);
}

.st-auth-form .form-control {
    background: color-mix(in srgb, var(--st-bg-card) 92%, white 8%);
    border-color: var(--st-border-strong);
    color: var(--st-text);
}

.st-auth-form .form-control::placeholder {
    color: rgba(241, 245, 249, 0.45);
}

.st-auth-form .form-control:focus {
    background: color-mix(in srgb, var(--st-bg-card) 88%, white 12%);
    border-color: var(--st-accent-ring);
    box-shadow: 0 0 0 0.2rem var(--st-accent-ring);
    color: var(--st-text);
}

.st-auth-form .form-control.is-invalid {
    border-color: rgba(248, 113, 113, 0.8);
}

.st-auth-form .form-text {
    color: var(--st-muted) !important;
}

.st-auth-form .invalid-feedback.d-block {
    color: #fecaca !important;
}

.st-auth-form .form-check-input {
    border-color: var(--st-border-strong);
    background-color: var(--st-bg-card);
}

.st-auth-form .form-check-input:checked {
    background-color: var(--st-accent-dim);
    border-color: var(--st-accent-dim);
}

.st-auth-step-idle {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--st-border);
    color: var(--st-muted);
    font-weight: 600;
}

.st-auth-step-active {
    background: var(--st-accent-soft);
    border: 1px solid var(--st-accent-ring);
    color: var(--st-accent);
    font-weight: 700;
}

.st-auth-step-done {
    background: rgba(52, 228, 180, 0.12);
    border: 1px solid rgba(52, 228, 180, 0.35);
    color: var(--st-accent-dim);
    font-weight: 600;
}

.st-auth-sent-banner {
    background: rgba(52, 228, 180, 0.08);
    border: 1px solid rgba(52, 228, 180, 0.22);
}

/* Dashboard / prediction board */
.st-dashboard-banner {
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.st-dashboard-banner--ok {
    background: rgba(52, 228, 180, 0.06);
    border: 1px solid rgba(52, 228, 180, 0.22);
}

.st-pagination-wrap .pagination .page-link {
    background-color: color-mix(in srgb, var(--st-bg-card) 94%, transparent);
    border-color: var(--st-border-strong);
    color: var(--st-text-soft);
}

.st-pagination-wrap .pagination .page-item.active .page-link {
    background: linear-gradient(120deg, var(--st-accent-dim), var(--st-accent));
    border-color: transparent;
    color: var(--st-bg-deep);
    font-weight: 700;
}

.st-pagination-wrap .pagination .page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
}

.st-pagination-wrap .pagination .page-link:hover {
    background-color: color-mix(in srgb, var(--st-accent) 18%, var(--st-bg-card));
    border-color: var(--st-accent-ring);
    color: var(--st-text);
}

/* Admin console */
.st-admin-shell {
    background: linear-gradient(180deg, rgba(57, 65, 77, 0.35) 0%, transparent 420px),
        linear-gradient(180deg, #39414d 0%, #464f5d 100%);
}

.st-admin-sidebar {
    width: 260px;
    background: color-mix(in srgb, var(--st-bg-deep) 94%, transparent);
}

.st-admin-nav-link {
    display: block;
    padding: 0.45rem 0.85rem;
    margin-bottom: 0.125rem;
    border-radius: 10px;
    color: var(--st-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.st-admin-nav-link:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--st-text-soft);
}

.st-admin-nav-link.active {
    background: var(--st-accent-soft);
    border: 1px solid var(--st-accent-ring);
    color: var(--st-accent);
}

.st-admin-main {
    min-width: 0;
}

.st-admin-top {
    background: color-mix(in srgb, var(--st-bg-deep) 78%, transparent);
    backdrop-filter: blur(12px);
    border-color: var(--st-border) !important;
}

.st-admin-metric {
    transition: transform 0.14s ease, border-color 0.14s ease;
}

.st-admin-metric:hover {
    transform: translateY(-2px);
    border-color: var(--st-accent-ring) !important;
}
