/* ============================================================
   Auth UI + Matches dashboard
   British colors palette inherited from styles.css
   ============================================================ */

/* ---------- Generic helpers ---------- */
.hidden { display: none !important; }

/* ---------- Nav adjustments ---------- */
.nav-auth-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-signin {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    color: white;
    padding: 9px 18px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.nav-signin:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

.nav-cta-account {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 18px;
    background: rgba(255,255,255,0.05);
    color: white !important;
    background-image: none;
    animation: none;
    border: 1px solid rgba(255,255,255,0.14);
}
.nav-cta-account:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    transform: translateY(-1px);
}
.nav-account-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.nav-account-balance {
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite;
    color: white;
    padding: 6px 14px;
    border: none;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-account-balance:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.4);
}
.nav-account-name {
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-account-name:hover { color: var(--gold); }

.nav-logout {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--text-dim);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}
.nav-logout:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-overlay,
.welcome-overlay,
.bet-overlay,
.topup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal,
.welcome-modal,
.bet-modal,
.topup-modal {
    background: linear-gradient(160deg, #161c2e 0%, #0c111e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 38px 34px 30px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255,255,255,0.03);
    animation: modalIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s;
}
.auth-close:hover {
    background: rgba(255,255,255,0.14);
    color: white;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 22px;
    letter-spacing: 1px;
}
.auth-logo {
    animation: ballSpin 8s linear infinite;
}
.auth-brand-text em {
    background: var(--gradient-britain);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
}
.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 9px 0;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s;
}
.auth-tab.active {
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite;
    color: white;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-field span {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}
.auth-field input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}
.auth-field input:focus {
    outline: none;
    border-color: rgba(108, 173, 223, 0.55);
    background: rgba(255,255,255,0.05);
}

.auth-error {
    color: #ff6b6b;
    font-size: 0.82rem;
    min-height: 1.1em;
    margin-top: -4px;
}

.auth-submit {
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 3px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
    transition: transform 0.2s;
    margin-top: 4px;
}
.auth-submit:hover {
    transform: translateY(-2px);
}
.auth-submit:active {
    transform: translateY(0);
}

.auth-hint {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 4px;
}
.auth-hint a {
    color: var(--mancity);
    font-weight: 600;
}
.auth-hint strong {
    color: var(--gold);
}

/* ============================================================
   WELCOME BONUS MODAL
   ============================================================ */
.welcome-modal {
    text-align: center;
    overflow: hidden;
    max-width: 460px;
}
.welcome-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle 4px at 12% 20%, var(--liverpool) 100%, transparent 0),
        radial-gradient(circle 3px at 78% 14%, var(--gold) 100%, transparent 0),
        radial-gradient(circle 4px at 25% 78%, var(--mancity) 100%, transparent 0),
        radial-gradient(circle 5px at 88% 65%, var(--chelsea) 100%, transparent 0),
        radial-gradient(circle 4px at 55% 92%, var(--arsenal) 100%, transparent 0),
        radial-gradient(circle 3px at 8% 55%, var(--gold) 100%, transparent 0),
        radial-gradient(circle 4px at 70% 30%, var(--spurs) 100%, transparent 0);
    opacity: 0.8;
    animation: confettiPulse 4s ease-in-out infinite;
}
@keyframes confettiPulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

.welcome-icon {
    font-size: 3.6rem;
    margin-bottom: 8px;
    animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.welcome-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 5s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.welcome-sub {
    color: var(--text-dim);
    margin-bottom: 18px;
}
.welcome-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    font-family: 'Bebas Neue', sans-serif;
    margin: 6px 0 18px;
    text-shadow: 0 4px 30px rgba(253, 185, 19, 0.6);
}
.welcome-plus {
    font-size: 2rem;
    color: var(--gold);
}
.welcome-num {
    font-size: 5rem;
    color: var(--gold);
    line-height: 1;
}
.welcome-cur {
    font-size: 2.2rem;
    color: var(--gold);
}

.welcome-text {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 22px;
}

.welcome-cta {
    display: inline-block;
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite;
    color: white;
    border: none;
    padding: 14px 38px;
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 3px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(200, 16, 46, 0.4);
    transition: transform 0.2s;
}
.welcome-cta:hover {
    transform: translateY(-3px) scale(1.02);
}

/* ============================================================
   MATCHES PAGE
   ============================================================ */
.page-matches {
    padding-top: 80px;
}

.matches-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 24px 80px;
    position: relative;
    z-index: 2;
}

.matches-hero {
    text-align: center;
    margin-bottom: 40px;
}
.matches-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 2px;
    line-height: 0.95;
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 8s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.matches-hero-sub {
    color: var(--text-dim);
    margin-top: 6px;
    font-size: 1rem;
}

/* ============================================================
   FULL-WIDTH MEGA LIVE BANNER
   ============================================================ */
.live-banner-mega {
    position: relative;
    display: block;
    text-decoration: none;
    color: white;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 60px;
    overflow: hidden;
    min-height: 540px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    isolation: isolate;
    transition: filter 0.4s;
}
.live-banner-mega:hover { filter: brightness(1.05); }
.live-banner-mega:hover .live-mega-cta-shine { animation: shine 1.4s ease forwards; }
.live-banner-mega:hover .mega-pitch-ball { animation-duration: 3s; }

/* Background layers */
.live-mega-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.live-mega-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 65% at 25% 50%, rgba(200, 16, 46, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 75% 35%, rgba(3, 70, 148, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 90% 80%, rgba(253, 185, 19, 0.35) 0%, transparent 60%),
        linear-gradient(135deg, #1a0612 0%, #0a0e1f 50%, #061626 100%);
    animation: megaBgPulse 9s ease-in-out infinite;
}
@keyframes megaBgPulse {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    50%      { filter: hue-rotate(8deg) brightness(1.1); }
}

/* Diagonal color rays */
.live-mega-rays {
    position: absolute;
    inset: -25%;
    pointer-events: none;
    transform: rotate(-22deg);
}
.live-mega-rays span {
    position: absolute;
    width: 200%;
    height: 6%;
    left: -50%;
    opacity: 0.18;
    filter: blur(20px);
    animation: rayMove 14s linear infinite;
}
.live-mega-rays span:nth-child(1) { top: 5%;  background: #c8102e; animation-delay: -1s; }
.live-mega-rays span:nth-child(2) { top: 20%; background: #fdb913; animation-delay: -3s; }
.live-mega-rays span:nth-child(3) { top: 33%; background: #6caddf; animation-delay: -5s; }
.live-mega-rays span:nth-child(4) { top: 47%; background: #034694; animation-delay: -7s; }
.live-mega-rays span:nth-child(5) { top: 60%; background: #1abc9c; animation-delay: -9s; }
.live-mega-rays span:nth-child(6) { top: 73%; background: #9b59b6; animation-delay: -11s; }
.live-mega-rays span:nth-child(7) { top: 86%; background: #ef0107; animation-delay: -13s; }
.live-mega-rays span:nth-child(8) { top: 96%; background: #fdb913; animation-delay: -2s; }
@keyframes rayMove {
    0%   { transform: translateX(-15%); }
    100% { transform: translateX(15%); }
}

/* Vertical color stripes (subtle) */
.live-mega-stripes {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
    opacity: 0.07;
}
.live-mega-stripes span {
    flex: 1;
    background: var(--c);
    transform: skewX(-8deg);
}

.live-mega-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.04) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 1px, transparent 1px),
        radial-gradient(circle at 40% 90%, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px, 50px 50px, 70px 70px;
    mix-blend-mode: screen;
    opacity: 0.7;
}

/* Stadium scene on the right */
.live-mega-stadium {
    position: absolute;
    right: -8%;
    top: -8%;
    bottom: -8%;
    width: 60%;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-flood {
    position: absolute;
    width: 5px;
    height: 130%;
    transform-origin: top center;
    pointer-events: none;
    filter: blur(28px);
    opacity: 0.55;
}
.mega-flood::after {
    content: '';
    position: absolute;
    top: 0;
    left: -90px;
    width: 180px;
    height: 100%;
    background: linear-gradient(to bottom, currentColor 0%, transparent 70%);
}
.mega-flood-1 { color: #c8102e; left: 12%; top: -15%; transform: rotate(15deg); animation: floodPulse 3.2s ease-in-out infinite; }
.mega-flood-2 { color: #fdb913; left: 36%; top: -15%; transform: rotate(-10deg); animation: floodPulse 2.8s ease-in-out 0.4s infinite; }
.mega-flood-3 { color: #6caddf; left: 64%; top: -15%; transform: rotate(8deg);  animation: floodPulse 3.5s ease-in-out 0.9s infinite; }
.mega-flood-4 { color: #034694; left: 88%; top: -15%; transform: rotate(-14deg); animation: floodPulse 3s ease-in-out 1.4s infinite; }

.mega-pitch {
    position: relative;
    width: 92%;
    height: 75%;
    background: linear-gradient(180deg, #1c5d2a 0%, #2a8038 50%, #1c5d2a 100%);
    border: 3px solid rgba(255,255,255,0.55);
    border-radius: 10px;
    transform: rotateX(60deg) rotateZ(-8deg);
    box-shadow: 0 60px 120px rgba(0,0,0,0.6),
                inset 0 0 60px rgba(0,0,0,0.35);
    overflow: hidden;
}
.mega-pitch::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
        rgba(0,0,0,0) 0px, rgba(0,0,0,0) 8%,
        rgba(0,0,0,0.13) 8%, rgba(0,0,0,0.13) 16%);
}
.mega-pitch-vline {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 3px;
    background: rgba(255,255,255,0.55);
}
.mega-pitch-circle {
    position: absolute;
    left: 50%; top: 50%;
    width: 28%; aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(255,255,255,0.5);
    border-radius: 50%;
}
.mega-pitch-box {
    position: absolute;
    top: 25%;
    width: 14%;
    height: 50%;
    border: 3px solid rgba(255,255,255,0.45);
}
.mega-box-l { left: 0; border-left: none; }
.mega-box-r { right: 0; border-right: none; }
.mega-pitch-ball {
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    box-shadow: 0 0 18px rgba(255,255,255,0.7), 0 0 40px rgba(255, 224, 130, 0.5);
    animation: megaBall 5s ease-in-out infinite;
    z-index: 3;
}
@keyframes megaBall {
    0%,100% { transform: translate(-50%, -50%) translate(0, 0); }
    20%     { transform: translate(-50%, -50%) translate(80px, -40px); }
    40%     { transform: translate(-50%, -50%) translate(-90px, 50px); }
    60%     { transform: translate(-50%, -50%) translate(110px, 30px); }
    80%     { transform: translate(-50%, -50%) translate(-50px, -55px); }
}

.mega-pitch-player {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0,0,0,0.5);
    animation: megaPlayer 6s ease-in-out infinite;
}
.mega-player-r1, .mega-player-r2, .mega-player-r3 {
    background: #c8102e;
}
.mega-player-b1, .mega-player-b2, .mega-player-b3 {
    background: #6caddf;
}
.mega-player-r1 { top: 20%; left: 32%; animation-delay: -0.4s; }
.mega-player-r2 { top: 55%; left: 20%; animation-delay: -1.6s; }
.mega-player-r3 { top: 75%; left: 38%; animation-delay: -2.8s; }
.mega-player-b1 { top: 28%; left: 60%; animation-delay: -0.8s; }
.mega-player-b2 { top: 50%; left: 76%; animation-delay: -2.0s; }
.mega-player-b3 { top: 72%; left: 62%; animation-delay: -3.2s; }
@keyframes megaPlayer {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(8px, -6px); }
    50% { transform: translate(-6px, 8px); }
    75% { transform: translate(10px, 4px); }
}

/* Foreground content */
.live-mega-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: white;
}

.live-mega-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.live-mega-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255, 82, 82, 0.16);
    border: 1px solid rgba(255, 82, 82, 0.55);
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 82, 82, 0.3);
}
.live-mega-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5252;
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.6);
    animation: pulseLive 1.4s infinite;
}
.live-mega-count {
    background: rgba(255, 82, 82, 0.3);
    color: #ffeaea;
    padding: 3px 10px;
    border-radius: 99px;
    margin-left: 4px;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
}

.live-mega-meta {
    font-size: 0.74rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
}

.live-mega-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.6rem, 11vw, 9rem);
    line-height: 0.85;
    letter-spacing: 0;
    display: flex;
    flex-direction: column;
    text-shadow: 0 12px 60px rgba(0, 0, 0, 0.5);
}
.live-mega-line-1 {
    color: white;
    opacity: 0.92;
}
.live-mega-line-2 {
    background: linear-gradient(120deg, #ff5252 0%, #fdb913 30%, #6caddf 70%, #ffffff 100%);
    background-size: 250% 250%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradMove 5s ease infinite;
    text-shadow: 0 0 80px rgba(255, 82, 82, 0.4);
    -webkit-text-stroke: 1px rgba(255,255,255,0.05);
}

.live-mega-desc {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 560px;
}

.live-mega-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.live-mega-mini-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    padding: 9px 16px;
    border-radius: 99px;
    font-size: 0.92rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.live-mega-mini-row .mini-min {
    color: #ff5252;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 1px;
}
.live-mega-mini-row .mini-team {
    color: white;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.live-mega-mini-row .mini-score {
    background: linear-gradient(120deg, #fdb913, #ff8c42);
    color: #1a0612;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.live-mega-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.live-mega-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 22px 44px;
    background: linear-gradient(120deg, #c8102e 0%, #ef0107 30%, #fdb913 100%);
    background-size: 200% 200%;
    border-radius: 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(200, 16, 46, 0.5),
                0 0 60px rgba(253, 185, 19, 0.25);
    animation: gradMove 6s ease infinite;
    transition: transform 0.25s, box-shadow 0.25s;
    color: white;
}
.live-banner-mega:hover .live-mega-cta {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 30px 80px rgba(200, 16, 46, 0.65),
                0 0 80px rgba(253, 185, 19, 0.4);
}
.live-mega-cta-shine {
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
}
.live-mega-cta-text {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.live-mega-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 22px;
    border-left: 1px solid rgba(255,255,255,0.18);
}
.live-mega-side-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1;
    background: linear-gradient(120deg, #fdb913, #ff8c42);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(253, 185, 19, 0.4);
}
.live-mega-side-label {
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.6);
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
    font-weight: 700;
}

@media (max-width: 920px) {
    .live-banner-mega { min-height: 480px; }
    .live-mega-content { padding: 50px 22px; gap: 18px; }
    .live-mega-stadium { width: 100%; opacity: 0.18; }
    .live-mega-cta { padding: 16px 28px; font-size: 1.3rem; }
    .live-mega-side { padding-left: 0; border-left: none; }
}

/* ============================================================
   BIG LIVE BANNER (legacy)
   ============================================================ */
.live-banner {
    position: relative;
    display: block;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 50px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #0a1d35 0%, #06101e 60%, #1a0710 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5),
                0 0 0 1px rgba(200, 16, 46, 0.15);
    min-height: 320px;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
                box-shadow 0.4s;
    isolation: isolate;
}
.live-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(200, 16, 46, 0.4),
                0 0 60px rgba(200, 16, 46, 0.15);
}
.live-banner:hover .live-banner-cta-shine {
    animation: shine 1.4s ease forwards;
}
.live-banner:hover .live-pitch-ball {
    animation-duration: 3s;
}

.live-banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.live-banner-stripes {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    opacity: 0.08;
    pointer-events: none;
}
.live-banner-stripes span {
    flex: 1;
    background: var(--c);
    transform: skewY(-2deg);
    animation: stripeSlide 12s linear infinite;
}
.live-banner-stripes span:nth-child(1) { animation-delay: 0s; }
.live-banner-stripes span:nth-child(2) { animation-delay: 1.5s; }
.live-banner-stripes span:nth-child(3) { animation-delay: 3s; }
.live-banner-stripes span:nth-child(4) { animation-delay: 4.5s; }
.live-banner-stripes span:nth-child(5) { animation-delay: 6s; }
@keyframes stripeSlide {
    0%, 100% { transform: skewY(-2deg) translateX(0); }
    50% { transform: skewY(-2deg) translateX(20px); }
}

.live-banner-stadium {
    position: absolute;
    right: -5%;
    top: 0;
    bottom: 0;
    width: 55%;
    perspective: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-banner-pitch {
    position: relative;
    width: 90%;
    height: 80%;
    background: linear-gradient(180deg, #1c5d2a 0%, #2a8038 50%, #1c5d2a 100%);
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 8px;
    transform: rotateX(58deg) rotateZ(-6deg);
    box-shadow: 0 50px 100px rgba(0,0,0,0.5),
                inset 0 0 50px rgba(0,0,0,0.3);
    overflow: hidden;
}
.live-banner-pitch::before {
    /* turf stripes */
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg,
        rgba(0,0,0,0.0) 0px,
        rgba(0,0,0,0.0) 10%,
        rgba(0,0,0,0.12) 10%,
        rgba(0,0,0,0.12) 20%);
}
.live-pitch-vline {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.5);
}
.live-pitch-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 50%;
}
.live-pitch-ball {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    box-shadow: 0 0 16px rgba(255,255,255,0.6);
    animation: pitchBall 5s linear infinite;
}
@keyframes pitchBall {
    0%   { transform: translate(-50%, -50%) translate(0, 0); }
    20%  { transform: translate(-50%, -50%) translate(40px, -25px); }
    40%  { transform: translate(-50%, -50%) translate(-50px, 30px); }
    60%  { transform: translate(-50%, -50%) translate(60px, 15px); }
    80%  { transform: translate(-50%, -50%) translate(-30px, -40px); }
    100% { transform: translate(-50%, -50%) translate(0, 0); }
}

/* Floodlights */
.floodlight {
    position: absolute;
    width: 4px;
    height: 110%;
    transform-origin: top center;
    pointer-events: none;
    filter: blur(20px);
    opacity: 0.55;
}
.floodlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60px;
    width: 120px;
    height: 100%;
    background: linear-gradient(to bottom, currentColor 0%, transparent 70%);
}
.floodlight-1 { color: #c8102e; left: 8%;  top: -10%; transform: rotate(15deg); animation: floodPulse 3.2s ease-in-out infinite; }
.floodlight-2 { color: #fdb913; left: 28%; top: -10%; transform: rotate(-10deg); animation: floodPulse 2.8s ease-in-out 0.4s infinite; }
.floodlight-3 { color: #6caddf; left: 62%; top: -10%; transform: rotate(8deg);  animation: floodPulse 3.5s ease-in-out 0.9s infinite; }
.floodlight-4 { color: #034694; left: 86%; top: -10%; transform: rotate(-14deg); animation: floodPulse 3s ease-in-out 1.4s infinite; }
@keyframes floodPulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.75; }
}

.live-banner-content {
    position: relative;
    z-index: 2;
    padding: 38px 38px 36px;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.live-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.5);
    border-radius: 99px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 2px;
    width: fit-content;
}
.live-banner-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5252;
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.6);
    animation: pulseLive 1.4s infinite;
}
.live-banner-count {
    background: rgba(255, 82, 82, 0.25);
    color: #ffd0d0;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 4px;
    font-size: 0.7rem;
}

.live-banner-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 0.9;
    letter-spacing: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.live-banner-title em {
    font-style: normal;
    background: linear-gradient(120deg, #ff5252 0%, #fdb913 50%, #ff5252 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradMove 4s ease infinite;
    text-shadow: 0 0 50px rgba(255, 82, 82, 0.4);
}

.live-banner-desc {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 460px;
}

.live-banner-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 6px;
}
.live-banner-mini-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.82rem;
}
.live-banner-mini-row .mini-min {
    color: #ff5252;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
}
.live-banner-mini-row .mini-team {
    color: white;
    font-weight: 700;
}
.live-banner-mini-row .mini-score {
    background: var(--gold);
    color: #111;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
}
.live-banner-mini-row .mini-vs {
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 1px;
}

.live-banner-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: linear-gradient(120deg, #c8102e 0%, #fdb913 100%);
    background-size: 200% 200%;
    border-radius: 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 3px;
    width: fit-content;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(200, 16, 46, 0.4);
    animation: gradMove 6s ease infinite;
    margin-top: 8px;
}
.live-banner-cta-shine {
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
}

@media (max-width: 920px) {
    .live-banner-content {
        max-width: 100%;
        padding: 28px 22px;
    }
    .live-banner-stadium {
        opacity: 0.18;
        width: 100%;
        right: 0;
    }
    .live-banner-mini-row {
        font-size: 0.78rem;
        padding: 5px 10px;
    }
}

.match-section {
    margin-bottom: 50px;
}
.match-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.match-section-head h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
    color: white;
}

.match-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid currentColor;
}
.match-pill-live { color: #ff5252; background: rgba(255, 82, 82, 0.08); }
.match-pill-upcoming { color: var(--mancity); background: rgba(108, 173, 223, 0.08); }
.match-pill-past { color: var(--text-dim); background: rgba(255,255,255,0.04); }
.match-pill-bets { color: var(--gold); background: rgba(253, 185, 19, 0.08); }

.live-dot-mini {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulseLive 1.4s infinite;
}

.match-list, .bets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-row {
    background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 130px 1fr 320px;
    align-items: center;
    gap: 16px;
    transition: border-color 0.25s, transform 0.25s;
}
.match-row:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}
.match-row-live {
    border-color: rgba(255, 82, 82, 0.35);
    box-shadow: 0 0 30px rgba(255, 82, 82, 0.05);
}
.match-row-past { opacity: 0.85; }

.match-row-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.match-clock {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #ff5252;
    line-height: 1;
}
.match-kickoff {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 1px;
    color: white;
    line-height: 1;
}
.live-label, .upcoming-label, .past-label {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}
.live-label { color: #ff5252; display: inline-flex; gap: 4px; align-items: center; }
.match-row-time .live-dot-mini {
    width: 6px; height: 6px; color: #ff5252;
    margin-right: 4px;
}

.match-row-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}
.match-team {
    display: flex;
    align-items: center;
    gap: 10px;
}
.match-team-away { justify-content: flex-end; }
.match-team-crest {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--c, #444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--c, #444) 35%, transparent);
}
.match-team-name {
    font-weight: 700;
    font-size: 0.92rem;
}
.match-row-teams > .match-team-away .match-team-name {
    text-align: right;
    order: -1;
}
.match-row-teams > .match-team-away .match-team-crest {
    order: 1;
}

.match-score-big {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    color: white;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}
.match-score-big em {
    color: var(--text-dim);
    font-style: normal;
    font-size: 1.4rem;
}
.match-score-final .won {
    color: var(--gold);
}

.match-vs {
    color: var(--text-dim);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.match-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 320px;
}
.odd-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.odd-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(108, 173, 223, 0.5);
    transform: translateY(-2px);
}
.odd-btn .odd-label {
    font-size: 0.66rem;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-transform: uppercase;
}
.odd-btn strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: 0.5px;
    line-height: 1;
}

.my-bet-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(253, 185, 19, 0.08);
    border: 1px solid rgba(253, 185, 19, 0.35);
    border-radius: 99px;
    font-size: 0.85rem;
}
.my-bet-tag .my-bet-label {
    font-size: 0.66rem;
    color: var(--gold);
    letter-spacing: 1.5px;
    font-weight: 700;
}
.my-bet-tag strong { color: white; }
.my-bet-tag .my-bet-stake {
    background: var(--gold);
    color: #111;
    padding: 3px 8px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.78rem;
}

.past-result-tag {
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.04);
    color: var(--text-dim);
    border: 1px solid rgba(255,255,255,0.08);
}

.empty-state {
    text-align: center;
    color: var(--text-dim);
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 14px;
    font-style: italic;
}

/* ============================================================
   BET MODAL
   ============================================================ */
.bet-modal {
    max-width: 460px;
}
.bet-modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 18px;
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bet-modal-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(255,255,255,0.03);
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-weight: 700;
}
.bet-modal-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}
.bet-modal-team span:first-child {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.bet-modal-vs {
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 2px;
}
.bet-modal-pick {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 18px;
    font-size: 0.95rem;
}
.bet-modal-pick strong {
    color: white;
}
.bet-modal-pick .odds-num {
    color: var(--gold);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
}

.bet-stake {
    display: block;
    margin-bottom: 8px;
}
.bet-stake > span {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
.bet-stake-input {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.bet-stake-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 14px;
    font-size: 1.2rem;
    font-weight: 700;
    -moz-appearance: textfield;
}
.bet-stake-input input::-webkit-outer-spin-button,
.bet-stake-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bet-stake-input input:focus { outline: none; }
.bet-stake-input span {
    color: var(--gold);
    font-weight: 800;
    padding-right: 14px;
    font-size: 1.05rem;
}

.bet-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}
.bet-quick button {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s;
}
.bet-quick button:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.bet-summary {
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.bet-summary > div {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.88rem;
}
.bet-summary span { color: var(--text-dim); }
.bet-summary b {
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.bet-error {
    color: #ff6b6b;
    font-size: 0.82rem;
    min-height: 1.1em;
    margin: 0 0 8px;
    text-align: center;
}

.bet-confirm {
    width: 100%;
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 3px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
    transition: transform 0.2s;
}
.bet-confirm:hover { transform: translateY(-2px); }

/* ============================================================
   TOP-UP MODAL
   ============================================================ */
.topup-modal {
    text-align: center;
    max-width: 480px;
}
.topup-icon {
    font-size: 3.2rem;
    margin-bottom: 8px;
    animation: bounce 1.8s ease-in-out infinite;
}
.topup-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.topup-sub {
    color: var(--text-dim);
    margin-bottom: 22px;
    font-size: 0.92rem;
}
.topup-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.topup-opt {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    text-align: left;
}
.topup-opt:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
    border-color: rgba(108, 173, 223, 0.4);
}
.topup-opt-best {
    background: linear-gradient(120deg, rgba(200, 16, 46, 0.15), rgba(253, 185, 19, 0.15));
    border-color: rgba(253, 185, 19, 0.5);
}
.topup-opt-best:hover {
    border-color: rgba(253, 185, 19, 0.85);
}
.topup-amt {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--gold);
}
.topup-tag {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.topup-skip {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}
.topup-skip:hover { color: white; }

/* ============================================================
   BETS HISTORY
   ============================================================ */
.bet-row {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 100px 1fr 1fr 90px 110px;
    gap: 14px;
    align-items: center;
    font-size: 0.88rem;
}
.bet-row .bet-status {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}
.bet-row-active { border-left: 3px solid var(--gold); }
.bet-row-active .bet-status { color: var(--gold); }
.bet-row-win { border-left: 3px solid #2ecc71; }
.bet-row-win .bet-status { color: #2ecc71; }
.bet-row-loss { border-left: 3px solid #e74c3c; opacity: 0.75; }
.bet-row-loss .bet-status { color: #e74c3c; }
.bet-match em { color: var(--text-dim); font-style: normal; padding: 0 4px; }
.bet-pick { color: var(--text-dim); }
.bet-stake-amt {
    font-weight: 700;
    text-align: right;
}
.bet-payout-amt {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    text-align: right;
    color: var(--gold);
}
.bet-row-loss .bet-payout-amt { color: #e74c3c; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: linear-gradient(135deg, #1a2034, #0e1320);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.3s, opacity 0.3s;
    max-width: 360px;
}
.toast.toast-out {
    transform: translateX(40px);
    opacity: 0;
}
.toast-goal {
    border-color: rgba(253, 185, 19, 0.5);
    background: linear-gradient(135deg, #3a2a0d, #1a1208);
}
.toast-win {
    border-color: rgba(46, 204, 113, 0.5);
    background: linear-gradient(135deg, #0e2d1c, #061a10);
}
.toast-lose {
    border-color: rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, #2c1614, #1a0a08);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
    .match-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .match-row-time {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    .match-row-actions {
        justify-content: stretch;
    }
    .odds-grid { max-width: 100%; }
    .bet-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .bet-row > * { font-size: 0.82rem; }
    .nav-account-name { display: none; }
}

/* ============================================================
   TARIFFS / TOP-UP MODAL (rich version)
   ============================================================ */
.tariffs-modal {
    max-width: 760px;
    padding: 30px;
}

.tariffs-head {
    text-align: center;
    margin-bottom: 22px;
}
.tariffs-pill {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 800;
    background: rgba(253, 185, 19, 0.1);
    border: 1px solid rgba(253, 185, 19, 0.3);
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 10px;
}
.tariffs-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 1.5px;
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}
.tariffs-sub {
    color: var(--text-dim);
    font-size: 0.92rem;
    max-width: 540px;
    margin: 0 auto;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.tariff-card {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 18px 16px 16px;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s;
    overflow: hidden;
}
.tariff-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(108, 173, 223, 0.55);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.tariff-card-best {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.18), rgba(253, 185, 19, 0.18));
    border-color: rgba(253, 185, 19, 0.55);
    box-shadow: 0 0 30px rgba(253, 185, 19, 0.15);
}
.tariff-card-best:hover {
    border-color: rgba(253, 185, 19, 0.9);
    box-shadow: 0 12px 40px rgba(253, 185, 19, 0.3);
}
.tariff-best-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(120deg, #fdb913, #ff8c42);
    color: #1a0612;
    padding: 3px 12px 4px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    border-bottom-left-radius: 8px;
}
.tariff-bonus-badge {
    display: inline-block;
    background: rgba(46, 204, 113, 0.18);
    color: #5be584;
    border: 1px solid rgba(46, 204, 113, 0.35);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 2px 8px;
    border-radius: 99px;
    margin-bottom: 8px;
}
.tariff-amt {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    color: var(--gold);
    line-height: 1;
}
.tariff-card-best .tariff-amt {
    background: linear-gradient(120deg, #fdb913, #ff8c42);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tariff-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 2px 0 2px;
}
.tariff-sub {
    color: var(--text-dim);
    font-size: 0.74rem;
    letter-spacing: 0.3px;
}
.tariff-final {
    display: block;
    margin-top: 6px;
    color: #5be584;
    font-size: 0.75rem;
    font-weight: 600;
}
.tariff-burst {
    position: absolute;
    inset: 0;
    background: rgba(46, 204, 113, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    animation: tarBurst 0.7s ease forwards;
}
@keyframes tarBurst {
    0%   { opacity: 0; transform: scale(0.4); }
    40%  { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.5); }
}

.tariffs-pay-methods {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    margin-bottom: 12px;
}
.tariffs-pay-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-right: 4px;
}
.pay-icon {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
}
.pay-visa { background: linear-gradient(135deg, #1a1f71, #1e3a8a); border-color: #2a3da1; }
.pay-mc   { background: linear-gradient(135deg, #eb001b, #f79e1b); border-color: #ff6b3d; color: #fff; }
.pay-amex { background: linear-gradient(135deg, #006fcf, #0096db); border-color: #0aa1e0; }
.pay-pp   { background: linear-gradient(135deg, #003087, #009cde); border-color: #0099d8; }
.pay-crypto { background: linear-gradient(135deg, #f7931a, #ffb347); border-color: #ff8c00; color: #1a0612; }

.tariffs-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.tariffs-secure {
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.tariffs-skip {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}
.tariffs-skip:hover { color: white; }

@media (max-width: 720px) {
    .tariffs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
    .tariffs-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.page-account { padding-top: 80px; }

.account-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 24px 80px;
    position: relative;
    z-index: 2;
}

.account-hero {
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.18) 0%, rgba(3, 70, 148, 0.18) 100%),
                linear-gradient(160deg, #181f33 0%, #0c111e 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 32px 32px 28px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.account-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(253, 185, 19, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(108, 173, 223, 0.12) 0%, transparent 35%);
    pointer-events: none;
}
.account-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.account-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 7s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: white;
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.35),
                inset 0 -8px 20px rgba(0,0,0,0.3);
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.account-username {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.6rem;
    letter-spacing: 1px;
    line-height: 0.95;
    margin-bottom: 4px;
}
.account-since {
    color: var(--text-dim);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 600px;
}
.account-stat {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 14px;
}
.acc-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}
.acc-stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    color: white;
    line-height: 1;
}
.acc-stat-balance {
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pnl-up { color: #5be584; }
.pnl-down { color: #ff7170; }

.account-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    min-width: 170px;
}
.acc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    transition: all 0.2s;
}
.acc-action-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.acc-action-primary {
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite;
    border: none;
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}

/* Account sections */
.account-section {
    margin-bottom: 40px;
}
.account-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}
.account-section-head h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
    color: white;
}

.tx-filter {
    display: flex;
    gap: 6px;
    background: rgba(255,255,255,0.04);
    padding: 4px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.06);
}
.tx-filter button {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
}
.tx-filter button:hover { color: white; }
.tx-filter button.active {
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 6s ease infinite;
    color: white;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}

.tx-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tx-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    transition: border-color 0.2s, transform 0.2s;
}
.tx-row:hover {
    border-color: rgba(255,255,255,0.16);
    transform: translateX(2px);
}
.tx-row.tx-credit { border-left: 3px solid #5be584; }
.tx-row.tx-debit  { border-left: 3px solid #ff7170; }
.tx-row.tx-info   { border-left: 3px solid #6caddf; opacity: 0.85; }

.tx-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.tx-row.tx-credit .tx-icon { background: rgba(46, 204, 113, 0.15); }
.tx-row.tx-debit .tx-icon { background: rgba(231, 76, 60, 0.15); }

.tx-line-1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.tx-type {
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.tx-date {
    color: var(--text-dim);
    font-size: 0.74rem;
    letter-spacing: 0.4px;
}
.tx-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.tx-amount-block {
    text-align: right;
}
.tx-amount {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    line-height: 1;
}
.tx-amount-pos { color: #5be584; }
.tx-amount-neg { color: #ff7170; }
.tx-amount-zero { color: var(--text-dim); }
.tx-balance {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    margin-top: 4px;
}

@media (max-width: 720px) {
    .account-hero-inner { grid-template-columns: 1fr; gap: 18px; }
    .account-avatar { width: 80px; height: 80px; font-size: 2.6rem; justify-self: center; }
    .account-username { text-align: center; }
    .account-since { text-align: center; }
    .account-stats { grid-template-columns: repeat(2, 1fr); }
    .account-hero-actions { flex-direction: row; }
    .acc-action-btn { flex: 1; }
    .tx-row { grid-template-columns: 40px 1fr; gap: 10px; padding: 12px; }
    .tx-amount-block { grid-column: 1 / -1; text-align: left; padding-left: 50px; }
}

/* ============================================================
   FOOTER (multi-column)
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, #06091a 0%, #03050d 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 24px 28px;
    position: relative;
    z-index: 2;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 8s ease infinite;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 42px;
}

.footer-brand .footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-brand .footer-logo em {
    font-style: normal;
    background: var(--gradient-britain);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer-tagline {
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 320px;
    margin-bottom: 14px;
}
.footer-socials {
    display: flex;
    gap: 8px;
}
.footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: all 0.2s;
}
.footer-socials a:hover {
    background: rgba(255,255,255,0.12);
    color: white;
    border-color: rgba(108, 173, 223, 0.4);
    transform: translateY(-2px);
}

.footer-col-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 2.5px;
    margin-bottom: 16px;
    color: white;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-col ul a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s, padding-left 0.2s;
    position: relative;
    padding-left: 0;
    display: inline-block;
}
.footer-col ul a::before {
    content: '→';
    position: absolute;
    left: -14px;
    opacity: 0;
    transition: all 0.2s;
    color: var(--gold);
}
.footer-col ul a:hover {
    color: white;
    padding-left: 14px;
}
.footer-col ul a:hover::before { opacity: 1; left: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.78rem;
}
.footer-bottom-links a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 4px 14px;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: color 0.2s;
}
.footer-bottom-links a:last-child {
    border-right: none;
}
.footer-bottom-links a:hover { color: var(--gold); }

@media (max-width: 920px) {
    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom-links {
        gap: 6px 0;
    }
    .footer-bottom-links a:nth-child(3) {
        border-right: none;
    }
}
@media (max-width: 520px) {
    .footer-cols {
        grid-template-columns: 1fr;
    }
}

/* Hide the old single-line footer if some pages still use it */
.footer:not(.site-footer) .footer-disclaimer {
    /* keep visible — backward compatibility */
}

/* ============================================================
   LEGAL / INFO PAGES (Terms, Privacy, etc.)
   ============================================================ */
.page-legal { padding-top: 80px; }

.legal-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.legal-side {
    position: sticky;
    top: 100px;
    align-self: start;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 16px;
}
.legal-side-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-side ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.legal-side a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 9px 12px;
    border-radius: 8px;
    transition: all 0.18s;
}
.legal-side a:hover {
    color: white;
    background: rgba(255,255,255,0.04);
}
.legal-side a.active {
    color: white;
    background: linear-gradient(120deg, rgba(200, 16, 46, 0.25), rgba(253, 185, 19, 0.15));
    border-left: 3px solid var(--gold);
    padding-left: 9px;
}
.legal-side a .legal-icon {
    width: 24px;
    text-align: center;
    font-size: 1rem;
}

.legal-content {
    background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 40px 44px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.legal-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 8px;
    background: rgba(253, 185, 19, 0.08);
    border: 1px solid rgba(253, 185, 19, 0.25);
    padding: 4px 12px;
    border-radius: 99px;
}

.legal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 8px;
    background: var(--gradient-britain);
    background-size: 200% 200%;
    animation: gradMove 7s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.legal-updated {
    color: var(--text-dim);
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.legal-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    margin: 28px 0 14px;
    color: white;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 22px 0 10px;
    color: white;
    letter-spacing: 0.5px;
}
.legal-content p, .legal-content li {
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
}
.legal-content p { margin-bottom: 14px; }
.legal-content ul, .legal-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
}
.legal-content ul li, .legal-content ol li { margin-bottom: 6px; }
.legal-content strong { color: white; }
.legal-content a {
    color: var(--mancity);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.legal-content a:hover { border-bottom-color: var(--mancity); }

.legal-callout {
    background: rgba(253, 185, 19, 0.06);
    border-left: 3px solid var(--gold);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin: 18px 0;
    font-size: 0.9rem;
}
.legal-callout strong { color: var(--gold); }

.legal-demo-banner {
    background: linear-gradient(120deg, rgba(108, 173, 223, 0.10), rgba(46, 204, 113, 0.06));
    border: 1px solid rgba(108, 173, 223, 0.35);
    border-left: 4px solid #6caddf;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 0 0 30px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}
.legal-demo-banner strong {
    color: #a9d4f5;
    letter-spacing: 0.3px;
}

/* Lead paragraph (right under the title) */
.legal-lead {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: -4px 0 8px;
    max-width: 720px;
}

/* Inline TOC — "On this page" */
.legal-toc {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 0 0 32px;
}
.legal-toc-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 10px;
}
.legal-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 24px;
}
.legal-toc li {
    margin: 0;
}
.legal-toc a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    gap: 8px;
    padding: 5px 0;
    transition: color 0.18s, padding-left 0.18s;
    border-bottom: 1px solid transparent;
}
.legal-toc a:hover {
    color: white;
    padding-left: 4px;
}
.legal-toc .toc-num {
    color: var(--gold);
    font-weight: 700;
    min-width: 22px;
}

@media (max-width: 720px) {
    .legal-toc ol { grid-template-columns: 1fr; gap: 2px 0; }
}

/* Quick-points recap block at the top of legal pages */
.legal-quickpoints {
    margin: 0 0 32px;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(108, 173, 223, 0.08), rgba(253, 185, 19, 0.05));
    border: 1px solid rgba(108, 173, 223, 0.28);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
}
.legal-quickpoints-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    color: white;
    margin: 0 0 6px;
}
.legal-quickpoints-lead {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin: 0 0 14px;
}
.legal-quickpoints ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.legal-quickpoints ul li {
    position: relative;
    padding: 6px 0 6px 28px;
    line-height: 1.55;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.92);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.legal-quickpoints ul li:last-child { border-bottom: none; }
.legal-quickpoints ul li::before {
    content: '●';
    position: absolute;
    left: 6px;
    top: 6px;
    color: var(--gold);
    font-size: 0.7rem;
    line-height: 1.7;
}
.legal-quickpoints-note {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    line-height: 1.55;
}
.legal-quickpoints-note a {
    color: var(--mancity);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.legal-quickpoints-note a:hover { border-bottom-color: var(--mancity); }

/* "At a glance" key-facts module */
.legal-glance {
    margin: 0 0 32px;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.06), rgba(108, 173, 223, 0.05));
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-left: 4px solid #5be584;
    border-radius: 12px;
}
.legal-glance-head { margin-bottom: 14px; }
.legal-glance-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #5be584;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.35);
    padding: 3px 12px;
    border-radius: 99px;
    margin-bottom: 8px;
}
.legal-glance-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1.5px;
    color: white;
    margin: 0;
}
.legal-glance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.legal-glance-list li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    line-height: 1.55;
}
.legal-glance-list li:last-child { border-bottom: none; }
.legal-glance-key {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    color: #5be584;
}
.legal-glance-val {
    color: rgba(255,255,255,0.88);
}
.legal-glance-foot {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-style: italic;
}
@media (max-width: 560px) {
    .legal-glance-list li { grid-template-columns: 1fr; gap: 2px; }
    .legal-glance-key { font-size: 0.75rem; }
}

/* Storage / cookies table */
.legal-table-wrap {
    overflow-x: auto;
    margin: 14px 0 24px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}
.legal-storage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.legal-storage-table thead th {
    background: rgba(255,255,255,0.04);
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
}
.legal-storage-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top;
    color: rgba(255,255,255,0.86);
    line-height: 1.5;
}
.legal-storage-table tbody tr:last-child td { border-bottom: none; }
.legal-storage-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.legal-storage-table code {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--gold);
    white-space: nowrap;
}
.legal-table-tag {
    display: inline-block;
    background: rgba(108, 173, 223, 0.15);
    border: 1px solid rgba(108, 173, 223, 0.35);
    color: #a9d4f5;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 2px 7px;
    border-radius: 99px;
    margin-left: 6px;
    text-transform: uppercase;
    vertical-align: middle;
}
@media (max-width: 720px) {
    .legal-storage-table { font-size: 0.78rem; }
    .legal-storage-table thead th,
    .legal-storage-table tbody td { padding: 9px 10px; }
}

/* Bottom "you control" module */
.legal-bottom-module {
    margin: 36px 0 0;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(108, 173, 223, 0.10), rgba(46, 204, 113, 0.06));
    border: 1px solid rgba(108, 173, 223, 0.30);
    border-left: 4px solid var(--mancity);
    border-radius: 12px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.legal-bottom-module-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(108, 173, 223, 0.18);
    border: 1px solid rgba(108, 173, 223, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.legal-bottom-module-body { flex: 1; }
.legal-bottom-module-body h3 {
    margin: 0 0 6px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: white;
}
.legal-bottom-module-body p {
    margin: 0;
    color: rgba(255,255,255,0.86);
    font-size: 0.92rem;
    line-height: 1.6;
}
@media (max-width: 560px) {
    .legal-bottom-module { flex-direction: column; }
}

/* Inline REMINDER callout (compact, neutral) */
.legal-reminder {
    margin: 0 0 32px;
    padding: 14px 18px 14px 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 3px solid var(--mancity);
    border-radius: 10px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.legal-reminder-label {
    flex-shrink: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 2.5px;
    color: var(--mancity);
    padding: 4px 10px;
    border: 1px solid rgba(108, 173, 223, 0.4);
    border-radius: 99px;
    background: rgba(108, 173, 223, 0.08);
}
.legal-reminder p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* "Questions about your privacy?" contact callout */
.legal-questions {
    margin: 36px 0 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(108, 173, 223, 0.10), rgba(46, 204, 113, 0.06));
    border: 1px solid rgba(108, 173, 223, 0.32);
    border-radius: 14px;
    display: flex;
    gap: 18px;
    align-items: center;
}
.legal-questions-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--mancity);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(108, 173, 223, 0.35);
}
.legal-questions-body { flex: 1; }
.legal-questions-body h3 {
    margin: 0 0 4px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1.2px;
    color: white;
}
.legal-questions-body p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    line-height: 1.55;
}
.legal-questions-body a {
    color: var(--mancity);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    font-weight: 600;
}
.legal-questions-body a:hover { border-bottom-color: var(--mancity); }
@media (max-width: 560px) {
    .legal-questions { flex-direction: column; align-items: flex-start; }
}

/* Closing summary block at the end of legal pages */
.legal-closing {
    margin: 32px 0 0;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.10), rgba(253, 185, 19, 0.06));
    border: 1px solid rgba(200, 16, 46, 0.32);
    border-left: 4px solid #ff5252;
    border-radius: 12px;
}
.legal-closing p {
    margin: 0 0 10px;
    line-height: 1.65;
    color: rgba(255,255,255,0.92);
    font-size: 0.98rem;
}
.legal-closing p:last-child { margin-bottom: 0; }
.legal-closing strong {
    color: #ffd0a0;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 20px 0;
}
.legal-grid-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 16px;
}
.legal-grid-item h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.legal-grid-item p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 920px) {
    .legal-main {
        grid-template-columns: 1fr;
    }
    .legal-side {
        position: static;
        order: 2;
    }
    .legal-side ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .legal-side a {
        font-size: 0.78rem;
        padding: 7px 10px;
    }
    .legal-content { padding: 28px 22px; }
    .legal-grid { grid-template-columns: 1fr; }
}
