:root {
    --sa-navy: #061a3d;
    --sa-navy-2: #0b2758;
    --sa-blue: #1268ff;
    --sa-blue-2: #5a9cff;
    --sa-sky: #eaf3ff;
    --sa-soft: #f6f9ff;
    --sa-card: rgba(255, 255, 255, 0.88);
    --sa-border: rgba(13, 45, 96, 0.10);
    --sa-muted: #64748b;
    --sa-green: #22c55e;
    --sa-red: #f43f5e;
    --sa-shadow: 0 18px 45px rgba(10, 38, 87, 0.10);
    --sa-shadow-sm: 0 10px 28px rgba(10, 38, 87, 0.08);
}

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    min-height: 100vh;
    margin-bottom: 60px;
    color: var(--sa-navy);
    background:
        radial-gradient(circle at 10% 0%, rgba(18, 104, 255, 0.10), transparent 28rem),
        radial-gradient(circle at 96% 18%, rgba(90, 156, 255, 0.16), transparent 24rem),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #eef6ff 100%);
    font-family: "Segoe UI", "Aptos", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(18, 104, 255, 0.16) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(90deg, transparent, #000 15%, transparent 58%, #000 82%, transparent);
    opacity: 0.38;
    z-index: -1;
}

a {
    color: var(--sa-blue);
}

.navbar {
    border: 1px solid rgba(255, 255, 255, 0.40);
    box-shadow: var(--sa-shadow-sm);
    backdrop-filter: blur(18px);
}

.sa-navbar {
    position: relative;
    z-index: 1030;
    margin: 1rem auto 1.35rem;
    max-width: 1360px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82) !important;
}

.sa-navbar .dropdown-menu {
    z-index: 1040;
    box-shadow: 0 18px 35px rgba(10, 38, 87, 0.14);
}

.sa-navbar .navbar-brand,
.sa-navbar .nav-link,
.sa-navbar .dropdown-toggle {
    color: var(--sa-navy) !important;
}

.sa-navbar .navbar-brand {
    letter-spacing: 0;
    padding-block: .15rem;
}

.sa-brand-link,
.sa-auth-brand,
.sa-auth-logo {
    line-height: 1;
}

.sa-site-logo {
    width: auto;
    height: 42px;
    max-width: min(256px, 58vw);
    display: block;
    object-fit: contain;
}

.sa-site-logo-lg {
    height: 54px;
    max-width: min(320px, 74vw);
}

.sa-footer-logo {
    width: auto;
    height: 42px;
    max-width: min(220px, 68vw);
    object-fit: contain;
}

.sa-navbar .navbar-toggler {
    border: 0;
    border-radius: 14px;
    background: var(--sa-sky);
}

.sa-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%286, 26, 61, 0.78%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.sa-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sa-blue), var(--sa-navy));
    box-shadow: 0 12px 22px rgba(18, 104, 255, 0.25);
}

.sa-profile-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 35%, #ffffff 0 16%, transparent 17%),
        radial-gradient(circle at 50% 78%, #ffffff 0 26%, transparent 27%),
        linear-gradient(135deg, var(--sa-blue), var(--sa-navy));
    box-shadow: 0 10px 20px rgba(18, 104, 255, 0.20);
}

.sa-navbar .nav-link {
    border-radius: 999px;
    padding: 0.45rem 0.7rem !important;
    font-weight: 650;
    opacity: 0.78;
    white-space: nowrap;
}

.sa-navbar .nav-link:hover {
    background: var(--sa-sky);
    opacity: 1;
}

.sa-sport-switch {
    min-width: min(520px, 100%);
    border: 1px solid rgba(6, 26, 61, .48);
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(4, minmax(78px, 1fr));
    background: rgba(255, 255, 255, .72);
}

.sa-sport-segment {
    min-height: 38px;
    padding: .42rem .62rem;
    border-right: 1px solid rgba(6, 26, 61, .42);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    color: rgba(6, 26, 61, .62);
    text-decoration: none;
    font-weight: 800;
    font-size: .92rem;
    white-space: nowrap;
}

.sa-sport-segment:last-child {
    border-right: 0;
}

.sa-sport-segment:hover {
    color: var(--sa-navy);
    background: rgba(234, 243, 255, .88);
}

.sa-sport-segment.active {
    color: #fff;
    background: #3c4146;
}

.sa-sport-emoji {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22));
}

.sa-sport-empty {
    width: 18px;
    height: 18px;
}

.container {
    max-width: 1180px;
}

.card,
.list-group,
.alert,
.form-control,
.form-select,
.dropdown-menu {
    border-color: var(--sa-border) !important;
}

.card {
    border-radius: 22px;
    background: var(--sa-card);
    box-shadow: var(--sa-shadow-sm);
}

.card-header,
.card-footer {
    border-color: var(--sa-border) !important;
}

.btn {
    border-radius: 13px;
    font-weight: 650;
}

.btn-primary {
    border-color: var(--sa-blue);
    background: linear-gradient(135deg, var(--sa-blue), #0054e8);
    box-shadow: 0 12px 24px rgba(18, 104, 255, 0.22);
}

.btn-outline-primary {
    border-color: rgba(18, 104, 255, 0.30);
    color: var(--sa-blue);
}

.btn-outline-primary:hover {
    border-color: var(--sa-blue);
    background: var(--sa-blue);
}

.table {
    --bs-table-bg: transparent;
}

.table th {
    color: var(--sa-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.badge {
    border-radius: 999px;
    font-weight: 650;
}

.form-control,
.form-select {
    border-radius: 14px;
    min-height: 46px;
    background-color: rgba(255, 255, 255, 0.86);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(18, 104, 255, 0.52);
    box-shadow: 0 0 0 0.22rem rgba(18, 104, 255, 0.13);
}

.sa-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--sa-border);
    border-radius: 34px;
    padding: clamp(1.3rem, 4vw, 3.4rem);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(246,250,255,0.82)),
        radial-gradient(circle at 88% 82%, rgba(18, 104, 255, 0.20), transparent 18rem);
    box-shadow: var(--sa-shadow);
}

.sa-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -140px;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(18, 104, 255, 0.16), rgba(90, 156, 255, 0.42));
}

.sa-hero > * {
    position: relative;
    z-index: 1;
}

.sa-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .75rem;
    border-radius: 999px;
    color: var(--sa-blue);
    background: var(--sa-sky);
    font-weight: 800;
    font-size: .85rem;
}

.sa-hero-title {
    max-width: 620px;
    font-size: clamp(2.5rem, 7vw, 5.7rem);
    line-height: .94;
    letter-spacing: -0.07em;
    font-weight: 900;
    color: var(--sa-navy);
}

.sa-hero-copy {
    max-width: 650px;
    color: #40516f;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.sa-dashboard-card {
    border: 1px solid var(--sa-border);
    border-radius: 28px;
    padding: 1.35rem;
    background: rgba(255,255,255,0.84);
    box-shadow: var(--sa-shadow);
}

.sa-match-card {
    min-height: 230px;
}

.sa-hero-live {
    padding-block: clamp(1.2rem, 3.4vw, 2.65rem);
}

.sa-home-carousel-layout {
    max-width: 1160px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.sa-home-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sa-home-match-strip,
.sa-home-ai-wide {
    width: 100%;
}

.sa-hero-live .sa-hero-title {
    max-width: 650px;
    font-size: clamp(2.45rem, 5.8vw, 4.7rem);
}

.sa-hero-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    max-width: 690px;
}

.sa-hero-insight {
    min-width: 0;
    min-height: 88px;
    padding: .8rem;
    border: 1px solid var(--sa-border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: .7rem;
    background: rgba(255,255,255,.74);
    box-shadow: 0 10px 24px rgba(10, 38, 87, .07);
}

.sa-hero-insight b,
.sa-hero-insight small {
    display: block;
}

.sa-hero-insight small {
    color: var(--sa-muted);
}

.sa-home-carousel {
    position: relative;
    max-width: none;
    margin-inline: auto;
}

.sa-home-carousel-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sa-home-slides {
    max-width: 100%;
    margin-inline: auto;
    touch-action: pan-y;
    cursor: grab;
}

/* Track-slide carousel — the SAME mechanic as the accuracy slider below: the
   checked radio translates a flex track while the active slide scales/fades in. */
.sa-home-match-strip,
.sa-home-ai-wide {
    overflow: hidden;
}

.sa-home-slides,
.sa-home-stat-slides {
    display: flex;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.sa-home-slide,
.sa-home-stat-slide {
    flex: 0 0 100%;
    min-width: 0;
    opacity: .35;
    transform: scale(.94);
    transition: opacity .55s ease, transform .55s ease;
}

#sa-home-match-0:checked ~ .sa-home-carousel-layout .sa-home-slides,
#sa-home-match-0:checked ~ .sa-home-carousel-layout .sa-home-stat-slides { transform: translateX(0); }
#sa-home-match-1:checked ~ .sa-home-carousel-layout .sa-home-slides,
#sa-home-match-1:checked ~ .sa-home-carousel-layout .sa-home-stat-slides { transform: translateX(-100%); }
#sa-home-match-2:checked ~ .sa-home-carousel-layout .sa-home-slides,
#sa-home-match-2:checked ~ .sa-home-carousel-layout .sa-home-stat-slides { transform: translateX(-200%); }

#sa-home-match-0:checked ~ .sa-home-carousel-layout .sa-home-slide:nth-child(1),
#sa-home-match-1:checked ~ .sa-home-carousel-layout .sa-home-slide:nth-child(2),
#sa-home-match-2:checked ~ .sa-home-carousel-layout .sa-home-slide:nth-child(3),
#sa-home-match-0:checked ~ .sa-home-carousel-layout .sa-home-stat-slide:nth-child(1),
#sa-home-match-1:checked ~ .sa-home-carousel-layout .sa-home-stat-slide:nth-child(2),
#sa-home-match-2:checked ~ .sa-home-carousel-layout .sa-home-stat-slide:nth-child(3) {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .sa-home-slides, .sa-home-stat-slides,
    .sa-home-slide, .sa-home-stat-slide { transition: none; }
}

.sa-home-ai-panel {
    max-width: none;
}

.sa-home-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    margin-bottom: 1rem;
}

.sa-home-stat-head > span:last-child {
    color: var(--sa-muted);
    font-size: .86rem;
    font-weight: 800;
    white-space: nowrap;
}

.sa-home-stat-title {
    max-width: 620px;
    margin-bottom: 1rem;
    color: var(--sa-navy);
    font-size: clamp(1.75rem, 4vw, 3.25rem);
    line-height: 1.02;
    font-weight: 900;
}

.sa-home-ai-text {
    padding: clamp(1rem, 1.8vw, 1.25rem);
    border: 1px solid var(--sa-border);
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 14px 34px rgba(10, 38, 87, .08);
    color: #33435f;
    font-size: clamp(.95rem, 1.3vw, 1.08rem);
    line-height: 1.55;
    white-space: pre-line;
}

.sa-live-card {
    border: 1px solid rgba(13, 45, 96, .12);
    border-radius: 28px;
    padding: clamp(1rem, 2vw, 1.25rem);
    background: rgba(255,255,255,.94);
    box-shadow: var(--sa-shadow);
    user-select: none;
}

.sa-live-card-wide {
    padding: clamp(1.05rem, 2.1vw, 1.6rem);
}

.sa-live-card-wide .sa-live-card-head {
    margin-bottom: .85rem;
}

.sa-live-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
}

.sa-live-showcase-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2.4rem);
    margin-bottom: clamp(1.25rem, 3.6vw, 2.6rem);
}

.sa-live-date {
    color: var(--sa-muted);
    font-size: .82rem;
    font-weight: 750;
    white-space: nowrap;
}

.sa-live-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
}

.sa-live-stage {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 128px 168px 128px minmax(170px, 1fr);
    align-items: center;
    gap: clamp(.9rem, 2.6vw, 2.2rem);
}

.sa-live-main-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.sa-live-team {
    min-width: 0;
    text-align: center;
}

.sa-live-team strong,
.sa-live-team small,
.sa-live-team b {
    display: block;
}

.sa-live-team strong {
    min-height: 2.5rem;
    color: var(--sa-navy);
    font-size: 1rem;
    line-height: 1.16;
}

.sa-live-team small {
    margin-top: .1rem;
    color: var(--sa-muted);
}

.sa-live-team b {
    margin-top: .2rem;
    font-size: 1.65rem;
    line-height: 1;
}

.sa-home-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto .45rem;
    border: 1px solid rgba(6, 26, 61, .12);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    color: var(--sa-navy);
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(10, 38, 87, .09);
}

.sa-home-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.sa-live-card-showcase .sa-home-logo {
    width: 112px;
    height: 112px;
    margin-bottom: .8rem;
    border-radius: 26px;
    border-color: rgba(6, 26, 61, .10);
    background:
        linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,250,255,.92));
    box-shadow:
        0 24px 48px rgba(10, 38, 87, .13),
        inset 0 1px 0 rgba(255,255,255,.92);
}

.sa-live-card-showcase .sa-home-logo img {
    padding: 10px;
    image-rendering: auto;
}

.sa-live-card-showcase .sa-home-logo > span {
    font-size: 2.35rem;
    line-height: 1;
}

/* --- Turbo boost gauges: dark carbon dial, glowing band, chrome bezel, ticks --- */
.sa-live-ring,
.sa-signal-ring {
    --gauge-blue: #2b8bff;
    --gauge-red: #ff3656;
    width: 118px;
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 999px;
    padding: 12px;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
    background:
        /* tick marks — thin dark radial notches segmenting the dial */
        repeating-conic-gradient(from 180deg,
            rgba(4, 8, 18, 0) 0 10.2deg,
            rgba(4, 8, 18, .72) 10.2deg 12deg),
        /* glowing boost band: home (blue) sweeps the left, away (red) the right */
        conic-gradient(from 180deg,
            var(--gauge-blue) 0 calc(var(--home-pct) * 1%),
            var(--gauge-red) 0 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .05),
        0 18px 38px rgba(2, 8, 23, .5),
        0 0 26px rgba(43, 139, 255, .22);
}

.sa-live-card-showcase .sa-live-ring {
    width: 156px;
    padding: 14px;
}

/* neon halo — a blurred copy of the boost band bleeding outward */
.sa-live-ring::before,
.sa-signal-ring::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background:
        conic-gradient(from 180deg,
            var(--gauge-blue) 0 calc(var(--home-pct) * 1%),
            var(--gauge-red) 0 100%);
    filter: blur(11px);
    opacity: .55;
    z-index: -1;
}

/* polished chrome bezel ring hugging the outer edge */
.sa-live-ring::after,
.sa-signal-ring::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: conic-gradient(from 140deg,
        #9aa4b6, #f2f5fa, #5b6577, #c8d1de,
        #3c4456, #e6ebf3, #707a8f, #9aa4b6);
    -webkit-mask: radial-gradient(circle closest-side,
        transparent 0 calc(100% - 6px), #000 calc(100% - 5px) 100%);
            mask: radial-gradient(circle closest-side,
        transparent 0 calc(100% - 6px), #000 calc(100% - 5px) 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .45);
    pointer-events: none;
    z-index: 1;
}

/* dark carbon dial face */
.sa-live-ring > div,
.sa-signal-ring > div {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .12rem;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .12), transparent 52%),
        radial-gradient(circle at 50% 38%, #1b2740, #0a1120 68%, #05080f 100%);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, .75),
        inset 0 0 0 1px rgba(140, 170, 220, .12);
}

.sa-signal-ring span {
    color: #8ea6cc;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.sa-signal-ring small {
    color: #46e08a;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 0 10px rgba(70, 224, 138, .55);
}

.sa-signal-ring strong {
    color: #eef5ff;
    font-size: .98rem;
    line-height: 1.05;
    text-shadow: 0 0 12px rgba(120, 180, 255, .35);
}

.sa-live-ring,
.sa-signal-ring {
    transition: transform .18s ease, filter .18s ease;
}

.sa-live-card-showcase .sa-home-logo {
    transition: transform .18s ease, box-shadow .18s ease;
}

@media (hover: hover) {
    .sa-live-card-showcase:hover .sa-live-ring,
    .sa-live-card-showcase:hover .sa-signal-ring {
        transform: translateY(-2px);
        filter: saturate(1.08);
    }

    .sa-live-card-showcase:hover .sa-home-logo {
        transform: translateY(-2px);
        box-shadow:
            0 28px 56px rgba(10, 38, 87, .16),
            inset 0 1px 0 rgba(255,255,255,.92);
    }
}

.sa-live-ring span {
    color: #8ea6cc;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-shadow: 0 0 10px rgba(43, 139, 255, .4);
}

.sa-live-ring strong {
    max-width: 108px;
    color: #f4f9ff;
    font-size: .96rem;
    line-height: 1.08;
    text-shadow: 0 0 14px rgba(120, 180, 255, .42);
}

.sa-live-score {
    margin-top: 1rem;
    padding: .75rem;
    border-radius: 18px;
    background: #f5f9ff;
    text-align: center;
}

.sa-live-result-center {
    width: min(500px, 100%);
    margin: clamp(1.2rem, 3vw, 1.75rem) auto 0;
}

.sa-live-result-center .sa-live-score {
    margin-top: 0;
}

.sa-live-score span,
.sa-live-score em {
    display: block;
    color: var(--sa-muted);
    font-size: .78rem;
    font-style: normal;
}

.sa-live-score strong {
    display: block;
    color: var(--sa-navy);
    font-size: 2rem;
    line-height: 1.08;
}

.sa-live-odds {
    margin-top: .8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.sa-live-odds span {
    min-height: 30px;
    padding: .34rem .55rem;
    border: 1px solid rgba(18, 104, 255, .13);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(255,255,255,.78);
    color: #43536f;
    font-size: .78rem;
    font-weight: 750;
}

.sa-live-odds .sa-live-odds-title {
    color: var(--sa-blue);
    background: var(--sa-sky);
}

.sa-live-odds .sa-live-pick {
    border-color: rgba(34, 197, 94, .28);
    color: #0f8b43;
    background: rgba(34, 197, 94, .10);
}

.sa-live-stats {
    margin-top: .95rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
}

.sa-live-stats-wide {
    margin-top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
}

.sa-live-stats > div {
    min-width: 0;
    padding: .65rem .35rem;
    border: 1px solid var(--sa-border);
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    text-align: center;
}

.sa-live-stats small {
    display: block;
    margin-top: .32rem;
    color: var(--sa-muted);
    font-size: .72rem;
    font-weight: 750;
}

.sa-home-stat-facts {
    margin-top: .75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
}

.sa-home-stat-facts > div {
    min-width: 0;
    padding: .75rem;
    border: 1px solid var(--sa-border);
    border-radius: 16px;
    background: rgba(255,255,255,.72);
}

.sa-home-stat-facts span,
.sa-home-stat-facts small {
    display: block;
    color: var(--sa-muted);
    font-size: .74rem;
    font-weight: 750;
}

.sa-home-stat-facts strong {
    display: block;
    margin-block: .15rem;
    color: var(--sa-navy);
    font-size: 1.05rem;
    line-height: 1.15;
}

.sa-mini-ring {
    --ring-color: var(--sa-green);
    width: 54px;
    aspect-ratio: 1;
    border-radius: 999px;
    padding: 6px;
    display: inline-grid;
    place-items: center;
    background:
        conic-gradient(var(--ring-color) calc(var(--value) * 1%), #e7edf8 0);
}

.sa-mini-ring strong {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--sa-navy);
    font-size: .82rem;
    line-height: 1;
}

.sa-mini-ring-blue {
    --ring-color: var(--sa-blue);
}

.sa-mini-ring-red {
    --ring-color: var(--sa-red);
}

.sa-mini-ring-green {
    --ring-color: var(--sa-green);
}

.sa-live-trend {
    margin-top: .95rem;
    padding: .75rem;
    border-radius: 18px;
    background: #f8fbff;
}

.sa-live-trend-title {
    margin-bottom: .35rem;
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    color: var(--sa-navy);
    font-size: .82rem;
    font-weight: 800;
}

.sa-live-trend-title small {
    color: var(--sa-muted);
    font-weight: 700;
}

.sa-live-trend svg,
.sa-line-spark svg {
    width: 100%;
    height: 46px;
    overflow: visible;
}

.sa-live-trend line {
    stroke: rgba(100, 116, 139, .18);
    stroke-width: 1;
}

.sa-live-trend polyline,
.sa-line-spark polyline {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.sa-live-trend .home,
.sa-line-spark .home {
    stroke: var(--sa-blue);
}

.sa-live-trend .away,
.sa-line-spark .away {
    stroke: var(--sa-red);
}

.sa-line-spark {
    width: 78px;
    height: 46px;
    display: inline-flex;
}

.sa-live-legend {
    margin-top: .35rem;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .75rem;
    color: var(--sa-muted);
    font-size: .72rem;
    font-weight: 750;
}

.sa-live-legend span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.sa-live-legend i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
}

.sa-live-legend i.home {
    background: var(--sa-blue);
}

.sa-live-legend i.away {
    background: var(--sa-red);
}

.sa-home-dots {
    margin-top: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.sa-home-dots label {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 2px solid rgba(18, 104, 255, .35);
    background: #fff;
    cursor: pointer;
    transition: width .16s ease, background-color .16s ease, border-color .16s ease;
}

#sa-home-match-0:checked ~ .sa-home-carousel-layout .sa-home-dots label:nth-child(1),
#sa-home-match-1:checked ~ .sa-home-carousel-layout .sa-home-dots label:nth-child(2),
#sa-home-match-2:checked ~ .sa-home-carousel-layout .sa-home-dots label:nth-child(3) {
    width: 28px;
    border-color: var(--sa-blue);
    background: var(--sa-blue);
}

.sa-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .75rem;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--sa-navy);
    font-weight: 750;
}

@media (max-width: 991.98px) {
    .sa-home-ai-panel,
    .sa-home-slides {
        max-width: 720px;
    }

    .sa-live-stage {
        grid-template-columns: minmax(96px, 1fr) 94px 126px 94px minmax(96px, 1fr);
        gap: .65rem;
    }

    .sa-live-card-showcase .sa-home-logo {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }

    .sa-live-card-showcase .sa-home-logo img {
        padding: 8px;
    }

    .sa-live-card-showcase .sa-live-ring {
        width: 126px;
    }

    .sa-signal-ring {
        width: 94px;
    }
}

.sa-stat-tile {
    border: 1px solid var(--sa-border);
    border-radius: 22px;
    padding: 1rem;
    height: 100%;
    background: rgba(255,255,255,0.82);
    box-shadow: var(--sa-shadow-sm);
}

.sa-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sa-blue);
    background: var(--sa-sky);
    font-size: 1.35rem;
}

/* Administrator-managed home-page cards and image slider. */
.sa-home-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
}

.sa-home-info-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sa-home-info-card p {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.sa-content-slider {
    min-width: 0;
    padding: clamp(.65rem, 1.45vw, 1.1rem);
    overflow: hidden;
    border: 1px solid var(--sa-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 7%, rgba(90, 156, 255, .21), transparent 30rem),
        radial-gradient(circle at 92% 90%, rgba(34, 197, 94, .12), transparent 26rem),
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(243, 248, 255, .98) 58%, rgba(232, 243, 255, .96));
    box-shadow: 0 16px 38px rgba(10, 38, 87, .10);
}

.sa-content-slider-viewport {
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

.sa-content-slider-track {
    display: flex;
    align-items: stretch;
    transition: transform .5s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.sa-content-slide {
    min-width: 0;
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(.85rem, 2vw, 1.5rem);
    padding: clamp(.5rem, 1.5vw, 1rem);
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sa-content-slide-media {
    --slide-photo-max-height: clamp(290px, 45vw, 560px);
    --slide-photo-max-width: min(100%, 620px);
    min-width: 0;
    width: var(--slide-photo-max-width);
    height: var(--slide-photo-max-height);
    min-height: 0;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.sa-content-slide-media img {
    width: auto;
    height: auto;
    max-width: var(--slide-photo-max-width);
    max-height: var(--slide-photo-max-height);
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 22px;
    box-shadow: none;
}

.sa-content-slide-image-button {
    width: fit-content;
    height: fit-content;
    min-width: 0;
    min-height: 0;
    max-width: var(--slide-photo-max-width);
    max-height: var(--slide-photo-max-height);
    padding: 0;
    border: 0;
    display: block;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 22px;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
    box-shadow: 0 16px 34px rgba(10, 38, 87, .16);
}

.sa-content-slide-image-button:focus-visible {
    outline: 3px solid rgba(18, 104, 255, .5);
    outline-offset: 4px;
    border-radius: 22px;
}

.sa-image-lightbox {
    width: min(94vw, 1400px);
    max-width: 94vw;
    max-height: 94svh;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.sa-image-lightbox::backdrop {
    background: rgba(3, 12, 29, .82);
    backdrop-filter: blur(5px);
}

.sa-image-lightbox-inner {
    position: relative;
    min-width: 0;
    max-height: 90svh;
    padding: clamp(.45rem, 1.3vw, .9rem);
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

.sa-image-lightbox img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(90svh - 1.8rem);
    display: block;
    object-fit: contain;
    border-radius: 14px;
}

.sa-image-lightbox-close {
    position: absolute;
    z-index: 1;
    top: -.65rem;
    right: -.65rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--sa-navy);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.sa-image-lightbox-close:focus-visible {
    outline: 3px solid #8dc1ff;
    outline-offset: 3px;
}

.sa-content-slide-copy {
    order: -1;
    width: min(100%, 760px);
    margin-inline: auto;
    min-width: 0;
    padding: clamp(.55rem, 1.25vw, 1rem) clamp(.8rem, 1.8vw, 1.4rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: .8rem;
    text-align: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.sa-content-slide-copy h2,
.sa-content-slide-copy p {
    margin: 0;
}

.sa-content-slide-copy p {
    max-width: 62ch;
    color: var(--sa-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.sa-content-slider-controls {
    min-height: 58px;
    margin-top: .35rem;
    padding: .4rem .65rem 0;
    border-top: 1px solid var(--sa-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem;
}

.sa-content-slider-controls > button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--sa-sky);
    color: var(--sa-navy);
    font-size: 1.3rem;
    line-height: 1;
    transition: background-color .2s ease, transform .2s ease;
}

.sa-content-slider-controls > button:hover {
    background: #dbeaff;
    transform: translateY(-1px);
}

.sa-content-slider-controls button:focus-visible {
    outline: 3px solid rgba(18, 104, 255, .35);
    outline-offset: 2px;
}

.sa-content-slider:focus-visible {
    outline: 3px solid rgba(18, 104, 255, .35);
    outline-offset: 3px;
}

.sa-content-slider-dots {
    min-height: 44px;
    flex: 1 1 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
}

.sa-content-slider-dots button {
    position: relative;
    width: 32px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
}

.sa-content-slider-dots button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(13, 45, 96, .22);
    transform: translate(-50%, -50%);
    transition: width .2s ease, background-color .2s ease;
}

.sa-content-slider-dots button[aria-current="true"]::before {
    width: 26px;
    background: var(--sa-blue);
}

/* On wider screens keep a centred vertical composition: copy first, then the full image. */
@media (min-width: 768px) {
    .sa-content-slide {
        justify-content: center;
        gap: clamp(1rem, 2.4vw, 1.75rem);
        padding: clamp(1rem, 2.5vw, 1.8rem);
    }

    .sa-content-slide-media {
        --slide-photo-max-height: clamp(400px, 48vw, 620px);
        --slide-photo-max-width: min(100%, 640px);
        min-height: 0;
        width: var(--slide-photo-max-width);
        height: var(--slide-photo-max-height);
        padding: 0;
    }

    .sa-content-slide-copy {
        padding: .65rem 1rem;
    }
}

/* TVS administration page. */
.sa-tvs-page {
    max-width: 1240px;
    margin-inline: auto;
}

.sa-tvs-panel {
    overflow: hidden;
    border: 1px solid var(--sa-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--sa-shadow-sm);
}

.sa-tvs-panel-head {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--sa-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(234, 243, 255, .8), rgba(255, 255, 255, .72));
}

.sa-tvs-create-form {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.sa-tvs-field-wide {
    grid-column: span 2;
}

.sa-tvs-create-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.sa-tvs-list {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.sa-tvs-item {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--sa-border);
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.7fr);
    gap: 1rem;
    background: #fff;
}

.sa-tvs-item-preview {
    min-width: 0;
    border: 1px solid var(--sa-border);
    border-radius: 16px;
    background: var(--sa-soft);
}

.sa-tvs-feature-preview {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: .9rem;
}

.sa-tvs-item-preview h3 {
    margin: .1rem 0 .4rem;
    font-size: 1rem;
    font-weight: 800;
}

.sa-tvs-item-preview p {
    margin: 0;
    color: var(--sa-muted);
    font-size: .88rem;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.sa-tvs-slide-preview {
    padding: .55rem;
    overflow: hidden;
    background: var(--sa-soft);
}

.sa-tvs-slide-preview img {
    width: 100%;
    max-height: 240px;
    display: block;
    object-fit: contain;
    border-radius: 11px;
    background: #fff;
}

.sa-tvs-slide-preview > div {
    position: relative;
    padding: 1rem;
}

.sa-tvs-duration {
    position: absolute;
    top: -1.7rem;
    right: .65rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(6, 26, 61, .86);
    font-size: .75rem;
    font-weight: 800;
}

.sa-tvs-edit-form {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    align-items: start;
}

.sa-tvs-item-actions {
    grid-column: 1 / -1;
    padding-top: .9rem;
    border-top: 1px solid var(--sa-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .55rem;
}

.sa-tvs-item-actions form,
.sa-tvs-item-actions .btn-group form {
    display: inline-flex;
    margin: 0;
}

@media (max-width: 991.98px) {
    .sa-tvs-create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sa-tvs-item {
        grid-template-columns: 1fr;
    }

    .sa-tvs-item-actions {
        grid-column: 1;
    }
}

@media (max-width: 767.98px) {
    .sa-content-slider {
        padding: .65rem;
        border-radius: 20px;
    }

    .sa-content-slide {
        gap: .85rem;
        padding: 0;
    }

    .sa-content-slide-media {
        --slide-photo-max-height: clamp(280px, 60svh, 520px);
        --slide-photo-max-width: 100%;
        width: var(--slide-photo-max-width);
        max-width: 460px;
        height: var(--slide-photo-max-height);
        min-height: 0;
        padding: 0;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .sa-content-slide-media img {
        border-radius: 18px;
    }

    .sa-content-slide-image-button {
        border-radius: 18px;
    }

    .sa-content-slide-copy {
        width: 100%;
        padding: .5rem .35rem .25rem;
    }

    .sa-content-slider-controls {
        margin-top: .2rem;
        padding-inline: .15rem;
    }

    .sa-tvs-create-form,
    .sa-tvs-edit-form {
        grid-template-columns: 1fr;
    }

    .sa-tvs-field-wide {
        grid-column: 1;
    }

    .sa-tvs-item-actions {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sa-content-slider-track,
    .sa-content-slider-controls > button,
    .sa-content-slider-dots button,
    .sa-content-slider-dots button::before {
        transition: none;
    }
}

.sa-prob-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf8;
}

.sa-prob-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sa-blue), var(--sa-blue-2));
}

.sa-team-badge {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.45rem;
    background: linear-gradient(135deg, var(--sa-blue), var(--sa-navy));
    box-shadow: 0 16px 28px rgba(18, 104, 255, 0.20);
}

.sa-team-badge-alt {
    background: linear-gradient(135deg, #f43f5e, #8b1028);
    box-shadow: 0 16px 28px rgba(244, 63, 94, 0.16);
}

.sa-participant {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    vertical-align: middle;
}

.sa-participant-mark {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid rgba(6, 26, 61, .12);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    color: var(--sa-navy);
    line-height: 1;
    box-shadow: 0 1px 2px rgba(6, 26, 61, .08);
}

.sa-participant-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.sa-participant-fallback {
    font-size: .66rem;
    font-weight: 850;
    line-height: 1;
}

.sa-participant-emblem {
    width: 68px;
    height: 68px;
    margin: 0 auto .75rem;
    border: 1px solid rgba(6, 26, 61, .12);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    color: var(--sa-navy);
    line-height: 1;
    box-shadow: 0 10px 24px rgba(6, 26, 61, .10);
}

.sa-participant-emblem-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 7px;
}

.sa-participant-emblem-fallback {
    font-size: 2rem;
    font-weight: 850;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .sa-participant-emblem {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        margin-bottom: .5rem;
    }

    .sa-participant-emblem-logo {
        padding: 6px;
    }

    .sa-participant-emblem-fallback {
        font-size: 1.65rem;
    }
}

.sa-match-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .22rem;
    min-width: 0;
    color: inherit;
}

.sa-match-team {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
}

.sa-predicted-pick {
    font-weight: 800;
    color: var(--sa-navy);
}

.sa-prediction-cell {
    display: inline-flex;
    justify-content: center;
    max-width: 100%;
}

.sa-vs {
    width: 44px;
    height: 44px;
    margin-inline: auto;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sa-muted);
    background: #f1f6fd;
    font-weight: 900;
    font-size: .8rem;
}

.fw-black {
    font-weight: 900;
}

.sa-sport-card {
    min-height: 92px;
    border: 1px solid var(--sa-border);
    border-radius: 22px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(239,246,255,.72));
}

.sa-sport-card span {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--sa-blue), var(--sa-navy));
    font-weight: 900;
}

.sa-sport-card strong {
    font-size: 1.05rem;
}

.sa-footer {
    color: var(--sa-muted);
}

.sa-auth-body {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
}

/* The auth pages have no main navbar (Layout = null), so they carry their own
   header so visitors can reach Pagrindinis / Analizė and log in / register. */
.sa-auth-header {
    position: relative;
    z-index: 1030;
    width: min(1180px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: .7rem 1rem;
    border: 1px solid var(--sa-border);
    border-radius: 20px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--sa-shadow-sm);
    backdrop-filter: blur(16px);
}

.sa-auth-header .sa-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 900;
    letter-spacing: 0;
    color: var(--sa-navy);
    text-decoration: none;
}

.sa-auth-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    flex-wrap: wrap;
    font-weight: 700;
}

.sa-auth-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: .42rem .72rem;
    border-radius: 999px;
    color: var(--sa-navy);
    text-decoration: none;
    white-space: nowrap;
}

.sa-auth-nav a:hover {
    color: var(--sa-blue);
    background: var(--sa-sky);
}

.sa-auth-body > .sa-auth-shell {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 575px) {
    .sa-auth-body {
        padding: .75rem;
        gap: .85rem;
    }

    .sa-auth-header {
        align-items: stretch;
        flex-direction: column;
        gap: .6rem;
        padding: .7rem;
        border-radius: 18px;
    }

    .sa-auth-nav {
        justify-content: center;
    }

    .sa-auth-nav a {
        min-height: 36px;
        padding-inline: .62rem;
    }
}

.sa-auth-shell {
    width: min(980px, 100%);
}

.sa-auth-shell-narrow {
    width: min(520px, 100%);
}

.sa-auth-card {
    overflow: hidden;
    border: 1px solid var(--sa-border);
    border-radius: 30px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--sa-shadow);
}

.sa-auth-panel {
    min-height: 100%;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.28), transparent 12rem),
        linear-gradient(145deg, var(--sa-navy), var(--sa-blue));
}

.sa-auth-panel h1 {
    max-width: 340px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: .98;
    letter-spacing: -.06em;
    font-weight: 900;
}

.sa-auth-panel p {
    color: rgba(255,255,255,.78);
}

.sa-auth-form {
    padding: clamp(1.4rem, 4vw, 2.5rem);
}

.sa-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--sa-navy);
    font-weight: 900;
    letter-spacing: 0;
}

.sa-auth-corner {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: .45rem .65rem;
    border: 1px solid var(--sa-border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255,255,255,.88);
    box-shadow: var(--sa-shadow-sm);
    backdrop-filter: blur(16px);
    font-weight: 750;
}

.sa-auth-corner a {
    color: var(--sa-navy);
    text-decoration: none;
}

.sa-auth-corner a:hover {
    color: var(--sa-blue);
}


/* Mobile tweaks */
@media (max-width: 575px) {
    body { margin-bottom: 30px; }
    .sa-site-logo {
        height: 34px;
        max-width: min(215px, 64vw);
    }
    .sa-site-logo-lg {
        height: 44px;
        max-width: min(270px, 80vw);
    }
    .sa-footer-logo {
        height: 36px;
    }
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    .display-6 { font-size: 1.5rem; }
    .navbar-brand { font-size: 1rem; }
    .sa-navbar { margin: .6rem .5rem 1rem; border-radius: 18px; }
    .sa-hero-insights {
        grid-template-columns: 1fr;
    }
    .sa-live-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .sa-home-stat-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .sa-live-stats-wide,
    .sa-home-stat-facts {
        grid-template-columns: 1fr;
    }
    .sa-live-main {
        grid-template-columns: 1fr;
    }
    .sa-live-card-showcase {
        padding: 1rem;
        border-radius: 24px;
    }
    .sa-live-showcase-head {
        flex-wrap: wrap;
        gap: .55rem 1rem;
        margin-bottom: 1.05rem;
    }
    .sa-live-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .85rem .75rem;
        align-items: stretch;
    }
    .sa-live-stage .sa-live-ring {
        grid-column: 1 / -1;
        order: 1;
        width: 148px;
        justify-self: center;
        margin-bottom: .15rem;
    }
    .sa-live-stage .sa-live-team:first-child {
        order: 2;
    }
    .sa-live-stage .sa-live-team:last-child {
        order: 3;
    }
    .sa-live-card-showcase .sa-live-team {
        min-width: 0;
        padding: .72rem .55rem .8rem;
        border: 1px solid rgba(13,45,96,.10);
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: .2rem;
        text-align: center;
        background: rgba(255,255,255,.82);
        box-shadow: 0 12px 28px rgba(10,38,87,.08);
    }
    .sa-live-stage .sa-signal-ring:nth-child(2) {
        order: 4;
        justify-self: end;
    }
    .sa-live-stage .sa-signal-ring:nth-child(4) {
        order: 5;
        justify-self: start;
    }
    .sa-live-main-simple {
        grid-template-columns: 1fr;
    }
    .sa-live-ring {
        width: 104px;
        order: -1;
    }
    .sa-live-team {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) auto;
        align-items: center;
        column-gap: .55rem;
        text-align: left;
    }
    .sa-home-logo {
        width: 46px;
        height: 46px;
        margin: 0;
        grid-row: span 2;
    }
    .sa-live-card-showcase .sa-home-logo {
        width: 72px;
        height: 72px;
        margin: 0 0 .45rem;
        border-radius: 19px;
        grid-row: auto;
    }
    .sa-live-card-showcase .sa-home-logo img {
        padding: 7px;
    }
    .sa-live-card-showcase .sa-home-logo > span {
        font-size: 1.75rem;
    }
    .sa-live-card-showcase .sa-live-team strong {
        width: 100%;
        min-height: 2.15rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .9rem;
        line-height: 1.08;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
    }
    .sa-live-card-showcase .sa-live-team small {
        margin-top: .05rem;
    }
    .sa-live-card-showcase .sa-live-team b {
        grid-column: auto;
        grid-row: auto;
        margin-top: .05rem;
        font-size: 1.45rem;
    }
    .sa-live-stage .sa-signal-ring {
        width: 88px;
    }
    .sa-live-stats {
        grid-template-columns: 1fr;
    }
    .card-body { padding: 0.85rem; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .sa-hero { border-radius: 24px; }
}

@media (max-width: 380px) {
    .sa-live-stage {
        gap: .7rem .55rem;
    }

    .sa-live-card-showcase .sa-home-logo {
        width: 64px;
        height: 64px;
        border-radius: 17px;
    }

    .sa-live-card-showcase .sa-live-team strong {
        min-height: 2rem;
        font-size: .82rem;
    }

    .sa-live-card-showcase .sa-live-team b {
        font-size: 1.35rem;
    }
}

/* Cookie consent bar — fixed to the bottom, brand navy, above page content. */
.sa-cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: var(--sa-navy);
    color: #fff;
    box-shadow: 0 -2px 12px rgba(6, 26, 61, 0.25);
}
.sa-cookie-bar a { color: var(--sa-blue-2); }

/* Mobile (collapsed/hamburger) nav: roomier spacing and slightly larger labels.
   Applies only below the lg breakpoint where navbar-expand-lg collapses the menu;
   desktop layout is untouched. */
@media (max-width: 991.98px) {
    .sa-navbar .navbar-nav .nav-link {
        font-size: 1.15rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    .sa-navbar .navbar-nav .nav-item + .nav-item {
        margin-top: 0.35rem;
    }
    .sa-navbar .dropdown-menu .dropdown-item {
        font-size: 1.1rem;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }
}

/* ===== Investavimas (investment dashboard) ===== */
.sa-inv-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.sa-inv-pill {
    border: 1px solid var(--sa-border); background: #fff; color: var(--sa-navy);
    border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .85rem;
    cursor: pointer; transition: all .15s ease;
}
.sa-inv-pill:hover { border-color: var(--sa-blue-2); }
.sa-inv-pill.active { background: var(--sa-navy); color: #fff; border-color: var(--sa-navy); }

.sa-inv-grid {
    display: grid; gap: .7rem;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.sa-inv-card {
    text-align: left; border: 1px solid var(--sa-border); background: var(--sa-card);
    border-radius: 16px; padding: .8rem .9rem; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sa-inv-card:hover { transform: translateY(-2px); box-shadow: var(--sa-shadow-sm); }
.sa-inv-card.selected { border-color: var(--sa-blue); box-shadow: 0 0 0 2px rgba(18,104,255,.15); }
.sa-inv-card-name { font-weight: 800; font-size: .8rem; color: var(--sa-navy); line-height: 1.15; min-height: 2.1rem; }
.sa-inv-card-price { font-size: 1.15rem; font-weight: 800; color: var(--sa-navy); margin-top: .25rem; }
.sa-inv-card-change { font-size: .78rem; font-weight: 700; }

.sa-inv-chart-wrap { position: relative; height: 260px; }

.sa-inv-horizons { display: flex; flex-wrap: wrap; gap: .4rem; }
.sa-inv-hbtn {
    border: 1px solid var(--sa-border); background: #fff; color: var(--sa-navy);
    border-radius: 10px; padding: .4rem .8rem; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.sa-inv-hbtn.active { background: var(--sa-blue); color: #fff; border-color: var(--sa-blue); }
.sa-inv-hbtn:disabled { opacity: .4; cursor: not-allowed; }

.sa-inv-forecast { border: 1px solid var(--sa-border); border-radius: 16px; padding: 1rem; background: var(--sa-soft); }
.sa-inv-fc-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sa-inv-fc-ret { font-size: 1.4rem; font-weight: 800; }
.sa-inv-range { margin-top: .8rem; display: grid; gap: .3rem; }
.sa-inv-range-row { display: flex; justify-content: space-between; padding: .35rem .6rem; border-radius: 8px; background: #fff; border: 1px solid var(--sa-border); font-size: .9rem; }
.sa-inv-range-base { background: #eef4ff; border-color: rgba(18,104,255,.25); font-weight: 700; }
.sa-inv-conf-bar { height: 8px; border-radius: 999px; background: #e6edf7; overflow: hidden; margin-top: .25rem; }
.sa-inv-conf-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #f43f5e, #f59e0b, #22c55e); }
.sa-inv-rationale { font-size: .9rem; color: #334155; line-height: 1.5; }

.sa-inv-news { display: grid; gap: .6rem; }
.sa-inv-news-item { border: 1px solid var(--sa-border); border-radius: 12px; padding: .6rem .75rem; background: #fff; }
.sa-inv-news-head { display: flex; align-items: center; gap: .45rem; font-weight: 600; }
.sa-inv-news-head a { color: var(--sa-navy); text-decoration: none; }
.sa-inv-news-head a:hover { text-decoration: underline; }
.sa-inv-dot { width: 9px; height: 9px; border-radius: 999px; flex: 0 0 auto; }
.sa-inv-news-nuance { font-size: .85rem; color: #475569; margin-top: .3rem; }
.sa-inv-news-meta { font-size: .72rem; color: var(--sa-muted); margin-top: .25rem; }

/* ── ELO / form momentum chart (team analysis) ───────────────────────────── */
.sa-trend-chart-wrap {
    position: relative;
    height: 260px;
}
/* Taller on phones so both lines stay readable when the plot is narrow; the
   toggle buttons get 44px min-height touch targets. */
@media (max-width: 575.98px) {
    .sa-trend-chart-wrap { height: 300px; }
    .sa-trend-toggle .btn {
        min-height: 44px;
        min-width: 60px;
        font-size: .95rem;
    }
}

/* ── Composite edge trend chart (single line, shorter than the 2-line ELO/form
   chart above it so the page doesn't repeat a tall empty-looking plot). ── */
.sa-edge-chart-wrap {
    position: relative;
    height: 170px;
}
@media (max-width: 575.98px) {
    .sa-edge-chart-wrap { height: 200px; }
}

/* ── Monthly accuracy slider (home page) ─────────────────────────────────── */
.sa-acc-section {
    border: 1px solid var(--sa-border);
    border-radius: 28px;
    padding: 1.5rem 1.6rem 1.75rem;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(90,156,255,.10), transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,249,255,.94));
    box-shadow: var(--sa-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.sa-acc-head {
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem;
}
.sa-acc-carousel { position: relative; overflow: hidden; }
.sa-acc-track {
    display: flex;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}
.sa-acc-slide {
    flex: 0 0 100%;
    padding: .75rem 3.25rem 1.1rem;
    opacity: .35; transform: scale(.94);
    transition: opacity .55s ease, transform .55s ease;
}
.sa-acc-slide.is-active { opacity: 1; transform: scale(1); }
.sa-acc-grid {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    max-width: 720px; margin: 0 auto;
}
.sa-acc-info { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.sa-acc-month {
    font-weight: 800; color: var(--sa-navy);
    font-size: 1.35rem; letter-spacing: .01em; text-transform: capitalize;
}
.sa-acc-delta {
    display: inline-flex; align-items: center; gap: .35rem;
    align-self: flex-start;
    padding: .28rem .7rem; border-radius: 999px;
    font-size: .8rem; font-weight: 700;
}
.sa-acc-delta.is-up   { background: rgba(34,197,94,.12);  color: #15803d; }
.sa-acc-delta.is-down { background: rgba(244,63,94,.12);  color: #be123c; }

/* mini 3-month comparison bars */
.sa-acc-bars {
    display: flex; gap: 1.1rem; align-items: flex-end;
    height: 96px; margin-top: .5rem;
}
.sa-acc-bar {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    gap: .3rem; height: 100%;
    opacity: .45; transition: opacity .3s ease;
}
.sa-acc-bar.is-current { opacity: 1; }
.sa-acc-bar b { font-size: .78rem; color: var(--sa-navy); font-variant-numeric: tabular-nums; }
.sa-acc-bar i {
    display: block; width: 34px; border-radius: 9px 9px 4px 4px;
    background: linear-gradient(180deg, var(--sa-blue-2), var(--sa-blue));
    transition: height .8s cubic-bezier(.22,.61,.36,1);
}
.sa-acc-bar.is-good i { background: linear-gradient(180deg, #4ade80, var(--sa-green)); }
.sa-acc-bar.is-low  i { background: linear-gradient(180deg, #fb7185, var(--sa-red)); }
.sa-acc-bar span { font-size: .72rem; color: var(--sa-muted); font-weight: 650; }

/* animated progress ring */
.sa-acc-ring { position: relative; width: 190px; height: 190px; }
.sa-acc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sa-acc-ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.sa-acc-ring-bg { stroke: rgba(13,45,96,.08); }
.sa-acc-ring-fg {
    /* r=52 → circumference ≈ 326.7; dashoffset animates from full to (1 - pct) */
    stroke: var(--sa-blue);
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset 1.1s cubic-bezier(.22,.61,.36,1), stroke .4s ease;
}
.sa-acc-slide.is-active .sa-acc-ring-fg {
    stroke-dashoffset: calc(326.7px - 326.7px * (var(--sa-acc) / 100));
}
.sa-acc-ring.is-good .sa-acc-ring-fg { stroke: var(--sa-green); }
.sa-acc-ring.is-ok   .sa-acc-ring-fg { stroke: var(--sa-blue); }
.sa-acc-ring.is-low  .sa-acc-ring-fg { stroke: var(--sa-red); }

.sa-acc-ring-num {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.sa-acc-pct {
    font-size: 2.9rem; font-weight: 800; line-height: 1;
    color: var(--sa-navy); font-variant-numeric: tabular-nums;
}
.sa-acc-pct small { font-size: 1.2rem; font-weight: 700; color: var(--sa-muted); }
.sa-acc-label { font-size: .78rem; color: var(--sa-muted); margin-top: .25rem; text-transform: uppercase; letter-spacing: .08em; }
.sa-acc-empty { font-size: 1rem; font-weight: 600; color: var(--sa-muted); line-height: 1.25; }
.sa-acc-meta { font-size: .9rem; color: #475569; font-weight: 500; }

/* nav arrows */
.sa-acc-nav {
    position: absolute; top: 42%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 999px;
    border: 1px solid var(--sa-border); background: rgba(255,255,255,.92);
    color: var(--sa-navy); font-size: 1.5rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--sa-shadow-sm);
    transition: background .2s ease, transform .2s ease; z-index: 2;
}
.sa-acc-nav:hover { background: var(--sa-sky); transform: translateY(-50%) scale(1.06); }
.sa-acc-prev { left: 0; }
.sa-acc-next { right: 0; }

/* dots */
.sa-acc-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; }
.sa-acc-dot {
    width: 9px; height: 9px; border-radius: 999px; padding: 0;
    border: none; background: rgba(13,45,96,.18); cursor: pointer;
    transition: background .25s ease, width .25s ease;
}
.sa-acc-dot.is-active { width: 26px; background: var(--sa-blue); }

@media (max-width: 575.98px) {
    .sa-acc-slide { padding: .5rem 2.4rem .9rem; }
    .sa-acc-grid { flex-direction: column; gap: 1rem; text-align: center; }
    .sa-acc-info { align-items: center; }
    .sa-acc-delta { align-self: center; }
    .sa-acc-bars { height: 78px; gap: .85rem; }
    .sa-acc-bar i { width: 28px; }
    .sa-acc-ring { width: 150px; height: 150px; }
    .sa-acc-pct { font-size: 2.3rem; }
    .sa-acc-nav { width: 34px; height: 34px; font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sa-acc-track, .sa-acc-slide, .sa-acc-ring-fg { transition: none; }
}

/* AI football prediction cards: probability colours are descriptive only;
   none of them implies a guaranteed result. */
.ai-prediction-card { overflow: hidden; }
.ai-score-box { display: inline-block; min-width: 4.4rem; padding: .35rem .8rem; border-radius: .75rem; background: var(--sa-blue); color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: .05em; }
.ai-probability-bar { display: flex; height: .85rem; overflow: hidden; border-radius: 999px; background: #e9ecef; }
.ai-probability-bar span { min-width: 1px; }
.ai-prob-home { background: #2d6a9f; }
.ai-prob-draw { background: #8a7d72; }
.ai-prob-away { background: #5b8c5a; }
.ai-prob-label-home { color: #24567f; }.ai-prob-label-draw { color: #6d6259; }.ai-prob-label-away { color: #477346; }
.ai-stat-grid > .col > div { height: 100%; padding: .55rem .65rem; border: 1px solid rgba(13,45,96,.12); border-radius: .55rem; background: #fff; }
.ai-stat-grid small { display: block; color: #6c757d; }.ai-stat-grid strong { display: block; margin-top: .1rem; }
.ai-odds-row { color: #59636d; }.ai-market-row { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .25rem; }
.ai-analysis-text { line-height: 1.65; white-space: normal; }
@media (max-width: 575.98px) { .ai-score-box { font-size: 1.15rem; }.ai-market-row { display: block; }.ai-market-row span { display: block; margin-top: .2rem; } }
