: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;
}

.sa-home-slide,
.sa-home-stat-slide {
    display: none;
}

#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) {
    display: block;
}

.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;
}

.sa-live-ring {
    width: 118px;
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 999px;
    padding: 11px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 32% 24%, rgba(255,255,255,.9) 0 8%, transparent 9%),
        conic-gradient(from -95deg, #0f6dff 0 calc(var(--home-pct) * 1%), #f43f5e 0 100%);
    box-shadow:
        0 24px 48px rgba(18, 104, 255, .19),
        0 10px 30px rgba(244, 63, 94, .11);
    position: relative;
    isolation: isolate;
}

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

.sa-signal-ring {
    width: 118px;
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 999px;
    padding: 10px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 32% 24%, rgba(255,255,255,.86) 0 9%, transparent 10%),
        conic-gradient(from -95deg, #0f6dff 0 calc(var(--home-pct) * 1%), #f43f5e 0 100%);
    box-shadow:
        0 18px 42px rgba(18, 104, 255, .14),
        0 8px 24px rgba(244, 63, 94, .09);
    position: relative;
    isolation: isolate;
}

.sa-live-ring::before,
.sa-signal-ring::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 28% 30%, rgba(18, 104, 255, .28), transparent 46%),
        radial-gradient(circle at 72% 70%, rgba(244, 63, 94, .22), transparent 48%);
    filter: blur(12px);
    opacity: .78;
    z-index: -1;
}

.sa-live-ring::after,
.sa-signal-ring::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.55);
    pointer-events: none;
}

.sa-signal-ring > div {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: grid;
    place-items: center;
    align-content: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(18,104,255,.06), transparent 58%),
        #fff;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.sa-signal-ring span,
.sa-signal-ring small {
    color: #16a34a;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1.05;
}

.sa-signal-ring strong {
    color: var(--sa-navy);
    font-size: .95rem;
    line-height: 1.05;
}

.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 > div {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: grid;
    place-items: center;
    align-content: center;
    gap: .15rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(18,104,255,.07), transparent 58%),
        #fff;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.sa-live-ring span {
    color: var(--sa-muted);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sa-live-ring strong {
    max-width: 108px;
    color: var(--sa-navy);
    font-size: .94rem;
    line-height: 1.08;
}

.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;
}

.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;
    }
}
