/* Bobby Premium 3.0 (TASK 2.57) — an ADDITIVE layer over app.css ("glass noir"): same palette and tokens, richer surfaces, clearer hierarchy,
   horizontal match rows, probability bars, premium hero and tables-that-become-cards on phones. Loaded after app.css; remove the <link> to revert. */

:root {
    --space-7: 40px; --space-8: 56px; --radius-l: 22px;
    --surface-1: rgba(20,20,26,.66); --surface-2: rgba(28,28,36,.72); --hairline: rgba(255,255,255,.06);
    --ring: 0 0 0 3px rgba(255,101,0,.28);
    --good: #4ADE80; --bad: #FF6B83;
    --fs-xs: .72rem; --fs-sm: .84rem; --fs-md: .95rem; --fs-lg: 1.15rem; --fs-xl: 1.7rem; --fs-hero: clamp(1.7rem, 4.6vw, 2.9rem);
}

/* ---- typography & text safety: names wrap on word boundaries, numbers stay aligned ---- */
.page { max-width: 1520px; }
.page-head h1 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.num, .v, .tile .value, .ptrio, .bb-odds { font-variant-numeric: tabular-nums; }
.match-cell, .mt-team b, .bb-teams b { overflow-wrap: break-word; word-break: normal; hyphens: manual; }

/* ---- navigation: grouped, with a clear active state ---- */
.nav .nav-label { padding: 18px 12px 6px; position: relative; }
.nav .nav-label::after { content: ""; display: block; height: 1px; margin-top: 8px; background: linear-gradient(90deg, var(--glass-border-strong), transparent); }
.nav .nav-label:first-child { padding-top: 4px; }
.nav a { min-height: 42px; }
.nav a.active { box-shadow: inset 0 0 0 1px rgba(255,101,0,.22), 0 6px 18px rgba(0,0,0,.35); }
.nav a.active::after { content: "›"; margin-left: auto; color: var(--red-bright); font-weight: 800; }
.nav a:not(.active):hover .ico { color: var(--red-bright); }

/* ---- surfaces ---- */
.card { border-radius: var(--radius-l); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { border-color: var(--glass-border-strong); }
.card h2 { display: flex; align-items: center; gap: 10px; }
.card h2::before { content: ""; width: 4px; height: 1.05em; border-radius: 2px; background: var(--accent-grad); flex: none; box-shadow: 0 0 10px var(--crimson-glow); }
.card.empty h2::before, .card h2.plain::before { display: none; }

/* ---- hero (dashboard, pages) — abstract sporting graphic, no photographs ---- */
.hero { position: relative; overflow: hidden; border-radius: var(--radius-l); border: 1px solid var(--glass-border-strong); margin-bottom: var(--space-4); padding: clamp(20px, 3.4vw, 40px);
    background:
        radial-gradient(60% 120% at 92% 0%, rgba(255,101,0,.30), transparent 62%),
        radial-gradient(40% 90% at 0% 100%, rgba(150,58,0,.34), transparent 65%),
        linear-gradient(135deg, rgba(20,20,26,.92), rgba(8,8,11,.94));
    box-shadow: var(--shadow); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
    background:
        radial-gradient(circle at 78% 54%, transparent 0 62px, rgba(255,255,255,.07) 63px 64px, transparent 65px),
        linear-gradient(90deg, transparent calc(78% - 1px), rgba(255,255,255,.06) calc(78% - 1px) 78%, transparent 78%),
        radial-gradient(circle at 78% 54%, rgba(255,255,255,.08) 0 3px, transparent 4px),
        linear-gradient(180deg, transparent 0 22%, rgba(255,255,255,.035) 22% calc(22% + 1px), transparent calc(22% + 1px) 78%, rgba(255,255,255,.035) 78% calc(78% + 1px), transparent calc(78% + 1px)); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,101,0,.5), transparent); }
.hero h1 { font-size: var(--fs-hero); line-height: 1.08; letter-spacing: -.015em; max-width: 18ch; text-transform: none; }
.hero .eyebrow { font-family: var(--display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 10px; }
.hero .lead { color: var(--text-2); max-width: 56ch; margin: 12px 0 0; font-size: var(--fs-md); }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero .chips .chip { font-family: var(--display); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-soft); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---- team emblem (monogram) ---- */
.tmark { --tm: 34px; width: var(--tm); height: var(--tm); border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: hidden;
    font-family: var(--display); font-weight: 800; font-size: calc(var(--tm) * .36); letter-spacing: .02em; color: #fff; line-height: 1;
    background: radial-gradient(120% 120% at 25% 15%, var(--tm-a, #3a3a46), var(--tm-b, #15151b)); border: 1px solid var(--glass-border-strong);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 3px 10px rgba(0,0,0,.45); }
.tmark img { width: 100%; height: 100%; object-fit: contain; }
.tm-0 { --tm-a: #5b1424; --tm-b: #1b0a10; } .tm-1 { --tm-a: #3b4252; --tm-b: #14161c; } .tm-2 { --tm-a: #6b2a1a; --tm-b: #1d0f0a; }
.tm-3 { --tm-a: #2f3b52; --tm-b: #10141d; } .tm-4 { --tm-a: #4a2a44; --tm-b: #170d15; } .tm-5 { --tm-a: #2c4a44; --tm-b: #0f1a18; }

/* ---- "Home – Away" ---- */
.mt { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--text); font-weight: 700; line-height: 1.25; }
a.mt:hover { color: var(--text); } a.mt:hover b { color: var(--red-bright); }
.mt .vs { color: var(--dim); font-weight: 500; margin: 0; }
.mt-team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.mt-team b { font-weight: 700; }

/* ---- 1 · X · 2 bar ---- */
.ptrio { min-width: 150px; display: flex; flex-direction: column; gap: 6px; }
.ptrio .pt-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.06); gap: 2px; }
.ptrio .pt-bar i { display: block; height: 100%; background: rgba(255,255,255,.16); transition: width .4s var(--ease); }
.ptrio .pt-bar i.s1 { background: linear-gradient(90deg, #B84800, #FF6500); } .ptrio .pt-bar i.sx { background: linear-gradient(90deg, #4a4a55, #6a6a76); } .ptrio .pt-bar i.s2 { background: linear-gradient(90deg, #FF6500, #FF8A00); }
.ptrio .pt-bar i.top { box-shadow: 0 0 10px var(--crimson-glow); filter: brightness(1.15); }
.ptrio .pt-nums { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); color: var(--text-2); }
.ptrio .pt-nums em { font-style: normal; color: var(--dim); font-family: var(--display); font-weight: 700; margin-right: 3px; }
.ptrio .pt-nums .top { color: var(--text); font-weight: 800; } .ptrio .pt-nums .top em { color: var(--red-bright); }
.ptrio.mkt .pt-bar i { background: rgba(138,180,248,.30) !important; box-shadow: none !important; filter: none; } .ptrio.mkt .pt-nums { font-style: italic; }
.ptrio.compact { min-width: 120px; } .ptrio.compact .pt-bar { height: 6px; } .ptrio.compact .pt-nums { font-size: var(--fs-xs); }

/* ---- tables: calmer, sticky header, row hover ---- */
.table-wrap { border: 1px solid var(--hairline); border-radius: var(--radius); background: rgba(0,0,0,.18); }
th { background: rgba(255,255,255,.025); }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: rgba(255,255,255,.035); }
td { padding: 14px 12px; }
.match-cell .mt { font-size: var(--fs-md); }
.kick { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; } .kick .d { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---- match rows as horizontal "cards" on phones (tables with .mm-matches / .dash-window-table) ---- */
@media (max-width: 720px) {
    .mm-matches thead, .dash-window-table thead { display: none; }
    .mm-matches, .mm-matches tbody, .dash-window-table table, .dash-window-table tbody { display: block; width: 100%; }
    .mm-matches tr.mm-main, .dash-window-table tbody tr { display: grid; gap: 10px 10px; padding: 14px 14px 12px; margin: 0 0 10px; border: 1px solid var(--glass-border); border-radius: var(--radius); background: var(--surface-1); }
    .mm-matches tr.mm-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dash-window-table tbody tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mm-matches td, .dash-window-table td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; }
    .mm-matches td.hide-s { display: none; }
    .mm-matches td:nth-child(1) { grid-column: 1 / 4; } .dash-window-table td:nth-child(1) { grid-column: 1 / -1; }
    .mm-matches td.mm-col { grid-column: 4; grid-row: 1; justify-self: end; }
    .mm-matches td.match-cell, .dash-window-table td.match-cell { grid-column: 1 / -1; }
    .mm-matches tr.mm-row, .mm-matches tr.mm-row td { display: block; padding: 0; border: 0; margin: 0 0 10px; }
    .mm-matches td.num .prob, .dash-window-table td.num .prob { min-width: 0; }
}

/* ---- skeleton / loading ---- */
.sk { position: relative; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.05); min-height: 14px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: sk 1.4s infinite; }
@keyframes sk { to { transform: translateX(100%); } }
.card.empty { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ---- expandable panels ---- */
details.panel { border: 1px solid var(--hairline); border-radius: var(--radius-s); background: rgba(0,0,0,.18); }
details.panel > summary { cursor: pointer; padding: 10px 14px; min-height: 40px; list-style: none; font-weight: 600; color: var(--text-2); }
details.panel > summary::before { content: "▸ "; } details.panel[open] > summary::before { content: "▾ "; }
details.panel > :not(summary) { padding: 0 14px 12px; }

/* ---- focus & motion ---- */
:where(a, button, input, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; box-shadow: var(--ring); }
@media (prefers-reduced-motion: reduce) { .sk::after, .ptrio .pt-bar i, .card, tbody tr { animation: none !important; transition: none !important; } }

/* ---- small screens ---- */
@media (max-width: 960px) { .hero h1 { max-width: none; } .page { padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 420px) { .hero { padding: 18px 16px; } .ptrio { min-width: 0; } .ptrio .pt-nums { font-size: var(--fs-xs); } }

/* ---- Bet Builder: horizontal match rows with emblems + 1·X·2 bar ---- */
.bb-mhead { grid-template-columns: auto minmax(0, 1fr) minmax(150px, 230px) auto; grid-template-areas: "time teams trio badge" "time comp trio badge"; column-gap: 16px; }
.bb-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--fs-md); }
.bb-teams .mt-team b { font-size: 1rem; } .bb-vs { font-weight: 500; }
.bb-trio { grid-area: trio; display: block; } .bb-mhead .badge { align-self: center; }
.bb-match { border-radius: var(--radius-l); } .bb-match.open { border-color: rgba(255,101,0,.32); box-shadow: var(--shadow-lift); }
.bb-var { border-radius: var(--radius); background: var(--surface-2); }
.bb-var .bb-odds { display: inline-block; padding: 2px 10px; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-border-strong); color: #fff; }
.bb-var.value .bb-odds { border-color: rgba(34,197,94,.5); background: var(--ok-soft); }
@media (max-width: 760px) { .bb-mhead { grid-template-columns: 1fr auto; grid-template-areas: "time badge" "teams teams" "comp comp" "trio trio"; row-gap: 8px; } }
/* ---- Match detail: emblems header ---- */
.md-emblems { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; } .md-vs { font-family: var(--display); font-weight: 800; letter-spacing: .2em; color: var(--dim); font-size: var(--fs-sm); }
.md-emblems .tmark { --tm: 64px; font-size: 1.4rem; box-shadow: 0 6px 22px rgba(0,0,0,.5), 0 0 0 4px rgba(255,255,255,.03), inset 0 1px 0 rgba(255,255,255,.2); }
.md-trio .ptrio { max-width: 560px; } .md-trio .pt-bar { height: 12px; } .md-trio .pt-nums { font-size: var(--fs-md); }
.match-hero .teams { overflow-wrap: break-word; }
h1:focus, h1:focus-visible, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
/* tables (wide screens): the two teams are stacked, emblem + name on each line; on phones they sit side by side in the card */
@media (min-width: 721px) { .match-cell .mt { flex-direction: column; align-items: flex-start; gap: 8px; } .match-cell .mt .vs { display: none; } }
.bb-h2 { justify-content: flex-start; } .bb-h2 .small { margin-left: auto; }

/* ---- competition catalog ---- */
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lg-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--glass-border); background: var(--surface-1); }
.lg-card.on { border-color: rgba(34,197,94,.28); } .lg-card.off { opacity: .8; }
.lg-top { display: flex; align-items: center; gap: 10px; } .lg-top b { overflow-wrap: break-word; }
.lg-stats { display: flex; gap: 14px; color: var(--text-2); } .lg-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.lg-card .badge { align-self: flex-start; }
/* overflow guards found by the 2.57 sweep (320 / 360 px) */
.ptrio { width: 100%; max-width: 100%; } .ptrio .pt-nums > span { white-space: nowrap; }
.seg { flex-wrap: wrap; max-width: 100%; justify-content: center; } .seg button { white-space: nowrap; }
@media (max-width: 420px) { .md-trio .pt-nums { font-size: var(--fs-sm); gap: 4px; } .seg button { padding: 8px 12px; } }
.toolbar > * { min-width: 0; max-width: 100%; } .toolbar > div[style*="flex:0 0 auto"] { flex: 0 1 auto !important; }
.kv > * { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 480px) { .kv { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 6px 12px; } }
.bb-var.added { border-color: rgba(255,101,0,.55); box-shadow: 0 0 0 1px rgba(255,101,0,.25) inset, 0 6px 22px rgba(255,101,0,.15); }
.bb-operator { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bb-add { font-weight: 700; } .bb-var.added .bb-add { background: var(--red-soft); border-color: rgba(255,101,0,.45); color: #FFB866; }

/* =====================  2.57b — every page gets the premium frame  ===================== */

/* page header: a glass panel with the same sporting line-art and crimson glint as the hero */
.page-head { position: relative; overflow: hidden; padding: 22px 26px; border-radius: var(--radius-l); border: 1px solid var(--glass-border-strong); margin-bottom: var(--space-4); align-items: center;
    background: radial-gradient(70% 160% at 100% 0%, rgba(255,101,0,.20), transparent 62%), radial-gradient(40% 120% at 0% 100%, rgba(150,58,0,.22), transparent 65%), linear-gradient(135deg, rgba(20,20,26,.9), rgba(10,10,13,.92));
    box-shadow: var(--shadow); isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; pointer-events: none;
    background: radial-gradient(circle at 88% 50%, transparent 0 34px, rgba(255,255,255,.08) 35px 36px, transparent 37px), linear-gradient(90deg, transparent calc(88% - 1px), rgba(255,255,255,.06) calc(88% - 1px) 88%, transparent 88%); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,101,0,.45), transparent); }
.page-head h1 { -webkit-text-fill-color: transparent; }
.page-head > div:first-child { min-width: 0; max-width: 72ch; }
.subtitle { max-width: 70ch; }
@media (max-width: 720px) { .page-head { padding: 16px; } }

/* login / account */
.auth.auth-premium { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 480px); gap: 24px; align-items: stretch; max-width: 1180px; margin: 0 auto; place-items: stretch; min-height: 100vh; padding: 24px; }
.auth-hero { display: flex; flex-direction: column; justify-content: center; margin-bottom: 0; min-height: 420px; }
.auth-hero .brand { padding: 0 0 28px; justify-content: flex-start; }
.auth-title { font-family: var(--display); font-weight: 800; font-size: var(--fs-hero); line-height: 1.08; letter-spacing: -.015em; margin: 0; max-width: 16ch; background: linear-gradient(180deg, #fff, #cfcfd8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; }
.auth-panel .card { max-width: none; margin-bottom: 12px; } .auth-panel h1 { font-size: 1.5rem; }
@media (max-width: 900px) { .auth.auth-premium { grid-template-columns: 1fr; gap: 14px; padding: 14px; min-height: 0; } .auth-hero { min-height: 0; padding: 20px; } .auth-hero .brand { padding-bottom: 14px; } .auth-title { font-size: 1.5rem; max-width: none; } }
.nf-hero { text-align: left; } .nf-hero h1 { max-width: none; }

/* live rows: names are never cut with an ellipsis; emblem + full name, big score */
.live-row { grid-template-columns: 52px minmax(0, 1fr) 76px minmax(0, 1fr) auto; padding: 12px 16px; gap: 12px; }
.live-row .team { white-space: normal; overflow: visible; text-overflow: clip; display: inline-flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: break-word; font-size: var(--fs-md); }
.live-row .team.home { justify-content: flex-end; text-align: right; } .live-row .team b { font-weight: 700; }
.live-row .score { font-size: 1.35rem; padding: 4px 10px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--glass-border); }
.live-row.is-live { background: linear-gradient(90deg, rgba(255,101,0,.10), transparent 50%); box-shadow: inset 3px 0 0 var(--red-bright); }
@media (max-width: 720px) {
    .live-row { grid-template-columns: 48px minmax(0, 1fr) 64px; grid-template-areas: "min home score" "st away score"; row-gap: 8px; }
    .live-row .min { grid-area: min; } .live-row .team.home { grid-area: home; justify-content: flex-end; text-align: left; flex-direction: row-reverse; }
    .live-row .team.away { grid-area: away; } .live-row .score { grid-area: score; align-self: center; } .live-row .st { grid-area: st; justify-self: start; }
}
/* 2.64 — LIVE score regression (visible on iPhone): at <= 520 px app.css turns .score into display: contents and places its two numbers in the named areas "sh" / "sa",
   but the premium template above only declares "score": the numbers fell into implicit columns and were stacked on each other / cut at the right edge.
   Here the phone layout is restated COMPLETELY: two lines, each team with its own goals on the same line. */
@media (max-width: 520px) {
    .live-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "min home sh" "st away sa"; row-gap: 8px; column-gap: 10px; }
    .live-row .team.home { justify-content: flex-end; text-align: left; }   /* row-reverse: flex-end = left edge, same as the away team */
    .live-row .score { display: contents; background: none; border: 0; padding: 0; }
    .live-row .score i { display: none; }
    .live-row .score b { min-width: 34px; padding: 3px 8px; text-align: center; font-size: 1.2rem; line-height: 1.2; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--glass-border); font-variant-numeric: tabular-nums; align-self: center; }
    .live-row .score b:first-child { grid-area: sh; justify-self: end; }
    .live-row .score b:last-child { grid-area: sa; justify-self: end; }
}

/* offers: full names, no nowrap */
.of-teams .side { white-space: normal; overflow-wrap: break-word; }
.of-teams { gap: 6px 10px; }

/* recommended / virtual / analytic tickets: names complete, aerated rows */
.st-link { text-align: left; }
.ticket-table .match-cell .st-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; line-height: 1.3; }
.ticket-table .match-cell .mt { font-size: var(--fs-md); }
.ticket-table td { padding: 14px 12px; }
.ticket-table .match-cell .mt-team b { overflow-wrap: break-word; }
@media (min-width: 721px) { .ticket-table .match-cell .mt { flex-direction: column; align-items: flex-start; gap: 6px; } .ticket-table .match-cell .mt .vs { display: none; } }

/* ---- Bet Builder tickets ("Bilete calculate cu Bet Builder") ---- */
.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 12px 0; }
.bt-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius-l); border: 1px solid rgba(255,101,0,.28); background: linear-gradient(160deg, rgba(120,44,0,.30), rgba(20,20,26,.78) 55%); box-shadow: var(--shadow); }
.bt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } .bt-title { font-family: var(--display); font-size: 1.05rem; } .bt-count { margin-left: auto; }
.bt-badge { letter-spacing: .08em; }
.bt-matches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bt-match { padding: 10px 12px; border-radius: var(--radius-s); background: rgba(0,0,0,.28); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 6px; }
.bt-mhead { display: flex; flex-direction: column; gap: 4px; }
.bt-leg { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: var(--fs-sm); color: var(--text-2); } .bt-leg b { color: var(--text); }
.bt-odds { padding: 1px 9px; border-radius: 7px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-border-strong); }
.bt-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; } .bt-sum dt { color: var(--text-2); } .bt-sum dd { margin: 0; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.bt-sum .pos { color: var(--good); } .bt-sum .neg { color: var(--bad); } .bt-card .warn-text { color: #FCD34D; margin: 0; }
.bt-actions { margin-top: auto; } .bt-none { margin: 10px 0; } .bt-panel .btn.ghost { margin-top: 4px; }

/* ---- licensed photographs (Wikimedia Commons; credits in credite-imagini.html) behind headers ---- */
.photo-night { background-image: linear-gradient(90deg, rgba(5,5,7,.95) 0%, rgba(5,5,7,.80) 40%, rgba(5,5,7,.30) 100%), url("img/hero/hero-stadion-noapte-m.jpg"); }
.photo-meci { background-image: linear-gradient(90deg, rgba(5,5,7,.95) 0%, rgba(5,5,7,.80) 45%, rgba(5,5,7,.40) 100%), url("img/hero/hero-meci-m.jpg"); background-position: center 8%; }
@media (min-width: 900px) {
    .photo-night { background-image: linear-gradient(90deg, rgba(5,5,7,.95) 0%, rgba(5,5,7,.78) 38%, rgba(5,5,7,.18) 100%), url("img/hero/hero-stadion-noapte.jpg"); }
    .photo-meci { background-image: linear-gradient(90deg, rgba(5,5,7,.95) 0%, rgba(5,5,7,.78) 42%, rgba(5,5,7,.30) 100%), url("img/hero/hero-meci.jpg"); }
}

/* ---- horizontal match rows (Dashboard "next matches") ---- */
.mrows { display: flex; flex-direction: column; gap: 10px; }
.mrow { display: grid; grid-template-columns: 74px minmax(0, 1.4fr) auto minmax(150px, 230px) auto; gap: 12px 18px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--glass-border); background: var(--surface-1); transition: border-color .2s var(--ease), transform .15s var(--ease); }
.mrow:hover { border-color: rgba(255,101,0,.35); transform: translateY(-1px); }
.mr-time { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; } .mr-time b { font-family: var(--display); font-size: 1.1rem; }
.mr-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mr-odds { display: flex; gap: 8px; } .chip-odd { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border-strong); font-weight: 800; font-variant-numeric: tabular-nums; }
.chip-odd em { font-style: normal; color: var(--dim); font-weight: 700; font-size: var(--fs-xs); }
@media (max-width: 1100px) { .mrow { grid-template-columns: 64px minmax(0, 1fr) auto; } .mr-odds { grid-column: 2 / 4; } .mr-prob { grid-column: 1 / 3; } .mr-go { grid-column: 3; grid-row: 1; justify-self: end; } }
@media (max-width: 560px) { .mrow { grid-template-columns: 1fr auto; padding: 12px; } .mr-time { grid-column: 1; flex-direction: row; gap: 8px; align-items: baseline; } .mr-go { grid-column: 2; grid-row: 1; } .mr-main, .mr-odds, .mr-prob { grid-column: 1 / -1; } .mr-odds { flex-wrap: wrap; } }

/* ---- labelled bars (Backtest) ---- */
.mbars { display: flex; flex-direction: column; gap: 14px; }
.mbar .mb-top { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: var(--text-2); } .mbar .mb-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.mbar .mb-track { height: 10px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; margin: 6px 0 4px; }
.mbar .mb-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4a4a55, #8a8a96); }
.mbar.good .mb-track i { background: linear-gradient(90deg, #15803d, var(--ok)); } .mbar.bad .mb-track i { background: linear-gradient(90deg, #B84800, #FF8A00); } .mbar.warn .mb-track i { background: linear-gradient(90deg, #b45309, var(--warn)); }
.kpi { border-radius: var(--radius-l); position: relative; overflow: hidden; } .kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(255,101,0,.14), transparent 70%); pointer-events: none; }
.kpi .v.neg { text-shadow: 0 0 18px rgba(255,107,131,.25); } .kpi .v.pos { text-shadow: 0 0 18px rgba(34,197,94,.22); }

/* ---- jump navigation (Admin, Performance) ---- */
.adm-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--glass-border); background: var(--surface-1); }
.adm-nav a { padding: 6px 12px; border-radius: 999px; font-size: var(--fs-sm); color: var(--text-2); border: 1px solid var(--glass-border); background: var(--glass-soft); min-height: 32px; display: inline-flex; align-items: center; }
.adm-nav a:hover { color: var(--text); border-color: rgba(255,101,0,.4); }
.page h2[id] { scroll-margin-top: 84px; }

/* ---- bottom navigation (phones) ---- */
.bottom-nav { display: none; }
@media (max-width: 960px) {
    .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(10,10,13,.92); backdrop-filter: blur(var(--blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%); border-top: 1px solid var(--glass-border-strong); }
    .bottom-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,101,0,.5), transparent); }
    .bottom-nav a, .bottom-nav .bn-menu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border-radius: 12px; color: var(--muted); font: inherit; font-size: .64rem; font-weight: 700; letter-spacing: .02em; background: transparent; border: 0; cursor: pointer; text-decoration: none; }
    .bottom-nav a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .bottom-nav .bn-burger { font-size: 1.25rem; line-height: 22px; height: 22px; }
    .bottom-nav a.active { color: #fff; background: linear-gradient(180deg, rgba(255,101,0,.22), transparent); } .bottom-nav a.active svg { color: var(--red-bright); }
    .bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .main { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
    #blazor-error-ui { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .bottom-nav { display: none; } }

/* phones: a stronger veil so text always reads; the photo stays as atmosphere */
@media (max-width: 899px) {
    .photo-night { background-image: linear-gradient(180deg, rgba(5,5,7,.78) 0%, rgba(5,5,7,.88) 100%), url("img/hero/hero-stadion-noapte-m.jpg"); }
    .photo-meci { background-image: linear-gradient(180deg, rgba(5,5,7,.82) 0%, rgba(5,5,7,.92) 100%), url("img/hero/hero-meci-m.jpg"); }
}
.hero h1, .hero .lead, .page-head h1, .page-head .subtitle { text-shadow: 0 2px 18px rgba(0,0,0,.65); }

.bb-fab { display: none; }
@media (max-width: 1100px) {
    .bb-fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 24; padding: 12px 18px; min-height: 48px; border-radius: 999px; color: #fff; font-weight: 700;
        background: var(--accent-grad); box-shadow: 0 10px 28px rgba(255,101,0,.45), inset 0 1px 0 rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.12); }
    .bb-fab:hover { color: #fff; } .bb-fab b { background: rgba(0,0,0,.28); border-radius: 999px; padding: 1px 9px; }
    #bb-ticket { scroll-margin-top: 76px; }
}

/* =====================  2.60 — photographic banners (photo is the hero, the veil only protects the text)  ===================== */
.photo-night, .photo-meci, .photo-dortmund, .photo-anfield, .photo-natarena, .photo-spurs, .photo-etihad, .photo-sansiro { background-repeat: no-repeat; background-size: cover; background-position: center; }
.photo-dortmund::before, .photo-anfield::before, .photo-natarena::before, .photo-spurs::before, .photo-etihad::before, .photo-sansiro::before { display: none; }
:root { --veil: linear-gradient(90deg, rgba(5,5,7,.86) 0%, rgba(5,5,7,.52) 38%, rgba(5,5,7,.06) 100%); --veil-m: linear-gradient(180deg, rgba(5,5,7,.55) 0%, rgba(5,5,7,.86) 100%); }
.photo-night { background-image: var(--veil-m), url("img/hero/hero-stadion-noapte-m.jpg"); }
.photo-meci { background-image: var(--veil-m), url("img/hero/hero-meci-m.jpg"); background-position: center 38%; }
.photo-dortmund { background-image: var(--veil-m), url("img/hero/hero-dortmund-m.jpg"); background-position: center 60%; }
.photo-anfield { background-image: var(--veil-m), url("img/hero/hero-anfield-m.jpg"); background-position: center 45%; }
.photo-natarena { background-image: var(--veil-m), url("img/hero/hero-natarena-m.jpg"); background-position: center 55%; }
.photo-spurs { background-image: var(--veil-m), url("img/hero/hero-spurs-m.jpg"); background-position: center 70%; }
.photo-sansiro { background-image: var(--veil-m), url("img/hero/hero-sansiro-m.jpg"); background-position: center 40%; }
.photo-etihad { background-image: linear-gradient(180deg, rgba(3,12,40,.60) 0%, rgba(3,12,40,.88) 100%), url("img/hero/hero-etihad-m.jpg"); background-position: center 65%; }
@media (min-width: 900px) {
    .photo-night { background-image: var(--veil), url("img/hero/hero-stadion-noapte.jpg"); background-position: 70% 50%; }
    .photo-meci { background-image: var(--veil), url("img/hero/hero-meci.jpg"); }
    .photo-dortmund { background-image: var(--veil), url("img/hero/hero-dortmund.jpg"); }
    .photo-anfield { background-image: var(--veil), url("img/hero/hero-anfield.jpg"); }
    .photo-natarena { background-image: var(--veil), url("img/hero/hero-natarena.jpg"); }
    .photo-spurs { background-image: var(--veil), url("img/hero/hero-spurs.jpg"); }
    .photo-sansiro { background-image: var(--veil), url("img/hero/hero-sansiro.jpg"); }
    .photo-etihad { background-image: linear-gradient(90deg, rgba(3,12,40,.90) 0%, rgba(4,20,70,.55) 42%, rgba(8,40,120,.10) 100%), url("img/hero/hero-etihad.jpg"); }
}
/* taller banners so the photograph is actually visible */
.page-head.photo-night, .page-head.photo-meci, .page-head.photo-dortmund, .page-head.photo-anfield, .page-head.photo-natarena, .page-head.photo-spurs, .page-head.photo-sansiro, .page-head.photo-etihad { min-height: 168px; }
.hero.photo-dortmund { min-height: 340px; }
.md-hero.photo-natarena { min-height: 240px; }

/* large flags in banners */
.ph-flag { margin-left: auto; align-self: center; width: clamp(104px, 15vw, 210px); aspect-ratio: 32 / 22; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.35), 0 0 36px rgba(255,101,0,.25); transform: rotate(-2deg); flex: none; }
.ph-flag .flag { width: 100%; height: 100%; display: block; border-radius: 0; box-shadow: none; vertical-align: top; }
.ph-flag.ph-uefa { box-shadow: 0 14px 40px rgba(0,0,0,.65), 0 0 0 1px rgba(233,196,106,.55), 0 0 44px rgba(40,90,220,.55); }
.page-head .league-pick { flex: none; }
@media (max-width: 720px) { .ph-flag { width: 88px; margin-left: 0; order: -1; } .page-head:has(.ph-flag) { align-items: flex-start; } }
.ul-tags { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.ul-t { font-family: var(--display); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.ul-t.cl { background: rgba(20,60,170,.55); color: #cfe0ff; } .ul-t.el { background: rgba(230,120,20,.45); color: #ffe2c2; } .ul-t.ecl { background: rgba(30,150,90,.45); color: #cdf5de; }
/* small flag before the league name in rows */
.kick-lg { display: inline-flex; align-items: center; gap: 6px; } .kick-lg .flag { width: 18px; height: 12px; }
/* text on photographic banners: solid white, readable on any crop */
.page-head[class*="photo-"] h1 { background: none; -webkit-text-fill-color: #fff; color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,.85); }
.page-head[class*="photo-"] .subtitle, .page-head[class*="photo-"] .small, .md-hero[class*="photo-"] .muted { color: #e8e8f0; text-shadow: 0 1px 14px rgba(0,0,0,.9); }
/* narrow screens: cards never force the page wider (found at 320 / 360 px) */
.bt-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.bb-col-main, .bb-col-side { min-width: 0; }
@media (max-width: 1100px) { .bb-grid { grid-template-columns: minmax(0, 1fr); } }

/* 2.61 — neutral placeholder for a news picture that failed to load (see blazor-start.js) */
.news-img.img-failed img { display: none; }
.news-img.img-failed { background: radial-gradient(circle at 30% 20%, rgba(255,101,0,.12), rgba(255,255,255,.02) 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1ac' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='14' height='15' rx='2'/%3E%3Cpath d='M17 9h3v9a2 2 0 0 1-2 2'/%3E%3Cpath d='M6.5 9h7M6.5 12.5h7M6.5 16h4'/%3E%3C/svg%3E") center / 28px no-repeat; }

/* 2.62 — EV profile panel: parameters in a wrapping row, never wider than the screen */
.bp-params { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px 12px; align-items: end; margin: 10px 0; }
.bp-params .field { margin: 0; } .bp-params input { width: 100%; box-sizing: border-box; }
.bb-profile .bt-card { min-width: 0; }

/* 2.64 — smart Bet Builder panel (same-match combinations) */
.bl-params { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px 12px; align-items: end; margin: 10px 0; } .bl-params .field { margin: 0; } .bl-params input { width: 100%; box-sizing: border-box; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; margin: 12px 0; }
.bl-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-width: 0; border-radius: var(--radius-l); border: 1px solid rgba(255,101,0,.22); background: rgba(255,255,255,.03); }
.bl-head { display: flex; flex-direction: column; gap: 4px; }
.bl-alt { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--glass-border); background: rgba(0,0,0,.22); min-width: 0; }
.bl-alt.on { border-color: var(--red-bright); box-shadow: 0 0 0 1px rgba(255,101,0,.45) inset; }
.bl-alt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bl-conds, .bl-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bl-conds li, .bl-leg { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.04); overflow-wrap: anywhere; }
.bl-conds li b, .bl-leg b { flex: none; }
.bl-alt p { margin: 0; } .bl-pick { align-self: flex-start; }
.bl-ticket, .bl-history { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--glass-border); }
.bl-part-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 4px; }
.bl-tester { margin-top: 18px; } .bl-tester-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; margin: 8px 0; } .bl-tester-grid select { width: 100%; min-width: 0; }
.bl-verdict { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--glass-border); margin: 6px 0; }
.bl-verdict.compatible { color: #4ADE80; border-color: #4ADE80; } .bl-verdict.contradictory { color: #F87171; border-color: #F87171; } .bl-verdict.redundant { color: #FCD34D; border-color: #FCD34D; } .bl-verdict.unverifiable { color: #A1A1AC; }
.bl-hist-item { padding: 10px 0; border-bottom: 1px solid var(--glass-border); } .bl-hist-part { margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; } .bl-hist-part ul { flex-basis: 100%; margin: 2px 0 0 16px; padding: 0; }

/* ---- 2.70 Bet Builder cote mari: simple form, three clean tickets ---- */
.ho-panel { display: flex; flex-direction: column; gap: 14px; }
.ho-form { display: grid; gap: 14px; max-width: 760px; }
.ho-label { display: block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 6px; }
.ho-seg { display: flex; flex-wrap: wrap; gap: 8px; } .ho-seg .btn { min-width: 112px; }
.ho-form input[type="text"] { width: 100%; box-sizing: border-box; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ho-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.ho-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--glass-border-strong); background: rgba(255,255,255,.05); color: inherit; cursor: pointer; font-variant-numeric: tabular-nums; min-height: 36px; }
.ho-chip:hover { border-color: rgba(255,101,0,.5); }
.ho-adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin-top: 8px; }
.ho-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ho-run { min-height: 48px; padding: 0 26px; font-weight: 800; letter-spacing: .03em; }
.ho-tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.ho-ticket { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-width: 0; border-radius: var(--radius-l); border: 1px solid rgba(255,101,0,.28); background: rgba(255,255,255,.03); }
.ho-missing { border-style: dashed; border-color: var(--glass-border-strong); }
.ho-thead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.ho-total { margin-left: auto; text-align: right; } .ho-total-v { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.ho-match { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--glass-border); }
.ho-bb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 4px; } .ho-bb-l { font-weight: 800; letter-spacing: .06em; font-size: var(--fs-sm); color: var(--red-bright); }
.ho-group-v { font-variant-numeric: tabular-nums; }
.ho-conds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ho-conds li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.04); overflow-wrap: anywhere; }
.ho-conds li b { flex: none; }
@media (max-width: 520px) { .ho-total { margin-left: 0; text-align: left; flex-basis: 100%; } .ho-seg .btn { flex: 1 1 30%; min-width: 0; } }

/* ---- 2.71 high-odds ticket: Bet Builder block with the conditions as a vertical timeline (dot + connecting line, pick bold, market under it, price on the right) ---- */
.hb-match { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 6px; border-top: 1px solid var(--glass-border); }
.hb-head { display: flex; align-items: center; gap: 8px; }
.hb-ico { color: var(--red-bright); flex: none; } .hb-title { font-weight: 800; letter-spacing: .06em; font-size: var(--fs-sm); color: var(--red-bright); }
.hb-godds { margin-left: auto; display: inline-flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; } .hb-godds b { font-size: 1.2rem; }
.hb-gstatus { font-size: var(--fs-xs); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--glass-border-strong); color: var(--text2, #B4B4C0); }
.hb-teams { display: flex; flex-direction: column; gap: 6px; } .hb-team { display: flex; align-items: center; gap: 10px; min-width: 0; } .hb-team b { overflow-wrap: anywhere; font-size: 1rem; }
.hb-comp { margin: 0 0 4px; }
.hb-picks { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; }
.hb-pick { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 0 0 14px 22px; min-width: 0; }
.hb-pick:last-child { padding-bottom: 4px; }
.hb-dot { position: absolute; left: 0; top: 5px; width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid var(--red-bright); background: var(--bg, #0A0A0D); z-index: 1; }
.hb-pick:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: -2px; width: 2px; background: rgba(255,101,0,.45); }
.hb-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; } .hb-p { font-size: 1rem; overflow-wrap: anywhere; } .hb-mk { font-size: var(--fs-sm); color: var(--text2, #B4B4C0); overflow-wrap: anywhere; }
.hb-o { margin-left: auto; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; } .hb-o b { font-size: 1rem; }
.hb-other { font-size: var(--fs-xs); color: #F59E0B; }
