:root {
    --navy: #0f2942;
    --navy-strong: #081b2d;
    --green: #16a34a;
    --green-dark: #12813c;
    --live: #ef4444;
    --whatsapp: #25d366;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --shadow: 0 18px 45px rgba(15, 41, 66, 0.08);
    --radius: 16px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 18ch; margin-bottom: .65rem; color: var(--navy); font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.06; letter-spacing: -.045em; }
h2 { color: var(--navy); line-height: 1.2; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; transform: translateY(-150%); background: var(--surface); padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(226,232,240,.9); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--navy); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 4px rgba(255,255,255,.14); }
.desktop-nav { display: none; align-items: center; gap: 1.5rem; font-size: .9rem; font-weight: 600; }
.desktop-nav a { position: relative; padding-block: 1.55rem; color: #334155; transition: color 180ms ease; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--green); }
.desktop-nav a[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.language-link { padding: .52rem .72rem; border: 1px solid var(--border); border-radius: 999px; color: var(--navy); font-size: .82rem; font-weight: 600; transition: border-color 180ms ease, color 180ms ease; }
.language-link:hover { border-color: var(--green); color: var(--green); }
.menu-button { width: 42px; height: 42px; display: grid; place-content: center; gap: 4px; border: 0; border-radius: 10px; background: var(--navy); cursor: pointer; }
.menu-button span:not(.sr-only) { width: 19px; height: 2px; display: block; background: #fff; border-radius: 2px; }
.mobile-nav { padding: .35rem 1rem 1rem; border-top: 1px solid var(--border); background: var(--surface); }
.mobile-nav a { display: block; padding: .8rem .5rem; border-bottom: 1px solid var(--border); color: var(--navy); font-weight: 600; }
.mobile-nav a[aria-current="page"] { color: var(--green); }

.home-intro { overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; background: linear-gradient(145deg, #fff 0%, #f1f7f4 58%, #e7f5ed 100%); border-bottom: 1px solid var(--border); }
.intro-grid { display: grid; gap: 2rem; align-items: end; }
.intro-grid > div:first-child p:not(.eyebrow) { max-width: 48ch; color: var(--muted); font-size: 1.04rem; }
.eyebrow { margin-bottom: .7rem; color: var(--green); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.quick-actions { display: grid; gap: .7rem; padding: 1rem; border: 1px solid rgba(226,232,240,.8); border-radius: var(--radius); background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1rem; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 600; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: var(--navy); color: #fff; }
.button-secondary:hover { background: var(--navy-strong); }
.button-whatsapp { background: var(--whatsapp); color: #072f18; }
.button-whatsapp:hover { background: #1fbd59; }
.button-outline { border-color: var(--border); background: #fff; color: var(--navy); }
.button-outline:hover { border-color: var(--navy); }
.affiliate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.responsible { color: var(--muted); font-size: .78rem; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page-heading { padding: clamp(3rem, 8vw, 5.5rem) 0 2.5rem; background: linear-gradient(145deg, #fff, #edf5f0); border-bottom: 1px solid var(--border); }
.match-scroller { display: grid; grid-auto-columns: minmax(285px, 86%); grid-auto-flow: column; gap: 1rem; overflow-x: auto; padding: .35rem .15rem 1.2rem; scroll-snap-type: x mandatory; scrollbar-color: #b9c5d1 transparent; }
.match-card, .prediction-card, .article-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 9px 28px rgba(15,41,66,.055); }
.match-card { min-height: 260px; padding: 1.2rem; scroll-snap-align: start; }
.match-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 26px; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; }
.live-badge { padding: .22rem .48rem; border-radius: 999px; background: var(--live); color: #fff; font-size: .68rem; letter-spacing: .08em; }
.match-card time { display: block; margin-top: .4rem; color: var(--navy); font-size: .95rem; font-weight: 600; }
.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; margin: 1.5rem 0; text-align: center; }
.teams > div { min-width: 0; display: grid; justify-items: center; gap: .55rem; }
.teams strong { overflow-wrap: anywhere; font-size: .93rem; }
.team-logo-placeholder { width: 48px; height: 48px; display: block; border: 1px solid var(--border); border-radius: 50%; background: #f1f5f9; }
.team-logo { width: 48px; height: 48px; object-fit: contain; }
.versus { color: var(--muted); font-size: .72rem; font-weight: 600; }
.safe-tip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .72rem .8rem; border-radius: 10px; background: #eefbf3; color: #166534; font-size: .84rem; }
.view-all-card { min-height: 260px; display: grid; place-items: center; padding: 2rem; border: 1px dashed #94a3b8; border-radius: var(--radius); color: var(--navy); font-weight: 600; scroll-snap-align: start; }
.match-grid, .prediction-grid, .article-grid { display: grid; gap: 1rem; }
.match-tools { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
.match-tools input, .match-tools select { width: 100%; min-height: 46px; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.match-tools > span { align-self: center; color: var(--muted); font-size: .85rem; }
.empty-state.compact { min-height: 140px; margin-top: 1rem; }
.prediction-card { position: relative; padding: 1.25rem; }
.prediction-card p, .article-card p { color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.prediction-card h2, .article-card h2 { font-size: 1rem; }
.confidence { position: absolute; top: 1rem; right: 1rem; padding: .35rem .55rem; border-radius: 999px; background: #eefbf3; color: #166534; font-size: .78rem; font-weight: 600; }
.article-card { overflow: hidden; }
.article-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-card > div { padding: 1.2rem; }
.article-card a { color: var(--green); font-weight: 600; }
.prediction-selection { display: grid; gap: .15rem; padding-right: 3.5rem; }
.prediction-selection small { color: var(--muted); }
.section-tinted { border-block: 1px solid var(--border); background: #f1f7f4; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.section-heading > a { color: var(--green-dark); font-size: .9rem; font-weight: 700; }
.data-disclaimer { margin-bottom: 1.25rem; padding: .85rem 1rem; border-left: 4px solid var(--green); border-radius: 8px; background: #eefbf3; color: #166534; }
.data-disclaimer.warning { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.empty-state { min-height: 310px; display: grid; place-content: center; justify-items: center; padding: 2rem; border: 1px dashed #b8c5d2; border-radius: var(--radius); background: rgba(255,255,255,.65); text-align: center; }
.empty-state h2 { max-width: 31ch; margin-bottom: .45rem; font-size: 1.1rem; }
.empty-state p { max-width: 54ch; margin-bottom: 0; color: var(--muted); }
.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 50%; background: var(--navy); color: #fff; }

.site-footer { padding: 2.2rem 0; background: var(--navy-strong); color: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
.footer-inner p { margin: .3rem 0 0; color: #cbd5e1; }
.footer-inner .responsible { color: #cbd5e1; }
.floating-actions { position: fixed; z-index: 25; inset-inline-end: 1rem; bottom: 1rem; display: flex; align-items: center; justify-content: flex-end; gap: .55rem; max-width: calc(100vw - 2rem); }
.whatsapp-float, .install-floating { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .68rem .88rem; border-radius: 999px; box-shadow: 0 12px 28px rgba(0,0,0,.19); font-size: .78rem; font-weight: 700; line-height: 1.15; text-align: center; }
.whatsapp-float { background: var(--whatsapp); color: #062b15; }
.whatsapp-float:hover { background: #1fbd59; }
.whatsapp-float svg, .install-floating svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.install-floating { display: none; border: 1px solid rgba(255,255,255,.28); background: var(--navy); color: #fff; cursor: pointer; }
.install-floating:hover { background: var(--navy-strong); }
.install-floating[hidden] { display: none !important; }

.promo-dialog { width: min(92vw, 520px); padding: 1.6rem; border: 0; border-radius: 20px; color: var(--text); box-shadow: 0 28px 80px rgba(2,12,27,.32); }
.promo-dialog::backdrop { background: rgba(8,27,45,.62); }
.promo-dialog h2 { margin-bottom: 1rem; }
.dialog-close { position: absolute; top: .7rem; right: .8rem; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f9; color: var(--navy); cursor: pointer; font-size: 1.45rem; }
.promo-list { display: grid; gap: .65rem; margin-bottom: 1rem; }
.promo-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid var(--border); border-radius: 10px; }
.promo-row button { border: 0; border-radius: 8px; background: var(--navy); color: #fff; padding: .46rem .65rem; cursor: pointer; font-size: .78rem; font-weight: 600; }

.admin-body { min-height: 100vh; background: #eef3f7; }
.admin-header { padding: 1rem max(1rem, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--border); background: #fff; }
.admin-header-inner { display: flex; align-items: center; gap: 1rem; }
.admin-header-inner .brand-logo { flex: 0 0 auto; }
.admin-header-inner form { margin-left: auto; }
.admin-nav { display: flex; align-items: center; gap: .25rem; overflow-x: auto; }
.admin-nav a { padding: .65rem .75rem; border-radius: 9px; color: #334155; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.admin-nav a:hover { background: #eefbf3; color: var(--green-dark); }
.admin-main { width: min(calc(100% - 2rem), 1120px); margin: 0 auto; padding: 3rem 0; }
.login-panel { width: min(100%, 460px); margin: 1rem auto; padding: clamp(1.4rem, 5vw, 2.4rem); border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.login-panel h1 { font-size: 2rem; }
.login-panel > p:not(.eyebrow) { color: var(--muted); }
.admin-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.admin-form label { display: grid; gap: .4rem; color: var(--navy); font-size: .86rem; font-weight: 600; }
.admin-form input { width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 10px; outline: none; }
.admin-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.14); }
.form-error { margin-top: 1rem; padding: .8rem; border-left: 4px solid var(--live); background: #fff1f2; color: #991b1b; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dashboard-heading h1 { font-size: 2.2rem; }
.admin-notice { margin-top: 2rem; padding: 1.25rem; border: 1px solid #bae6fd; border-radius: 14px; background: #f0f9ff; }
.admin-notice p { margin: .45rem 0 0; color: #475569; }
.admin-notice.success { border-color: #86efac; background: #f0fdf4; }
.admin-notice.error { border-color: #fca5a5; background: #fff1f2; }
.metric-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.metric-card { display: grid; gap: .2rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.metric-card strong { color: var(--navy); font-size: 1.8rem; line-height: 1; }
.metric-card span, .admin-help { color: var(--muted); }
.admin-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-page-heading h1 { margin-bottom: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin-table th, .admin-table td { padding: .85rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.admin-table th { background: #f8fafc; color: #475569; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.admin-table td small { display: block; margin-top: .2rem; color: var(--muted); }
.table-actions { display: flex; align-items: center; gap: .7rem; white-space: nowrap; }
.table-actions a, .table-actions button { border: 0; background: none; color: var(--green-dark); cursor: pointer; font-size: .82rem; font-weight: 600; }
.table-actions button { color: #b91c1c; }
.status-pill { display: inline-flex; padding: .25rem .5rem; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: .72rem; font-weight: 700; }
.status-pill.published { background: #dcfce7; color: #166534; }
.mini-button { padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.mini-button.active { border-color: #86efac; background: #dcfce7; color: #166534; }
.admin-editor { display: grid; gap: 1.1rem; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.admin-editor label { display: grid; gap: .4rem; color: var(--navy); font-size: .86rem; font-weight: 600; }
.admin-editor input, .admin-editor textarea, .admin-editor select { width: 100%; min-height: 46px; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; color: var(--text); outline: none; }
.admin-editor textarea { resize: vertical; line-height: 1.55; }
.admin-editor input:focus, .admin-editor textarea:focus, .admin-editor select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.form-grid { display: grid; gap: 1rem; }
.check-label { display: flex !important; align-items: center; grid-template-columns: auto 1fr; }
.check-label input { width: 18px; min-height: 18px; }
.admin-editor fieldset { padding: 1rem; border: 1px solid var(--border); border-radius: 12px; }
.admin-editor legend { padding: 0 .4rem; color: var(--navy); font-weight: 700; }

.prediction-card .prediction-selection { margin: .9rem 0 .5rem; color: var(--green-dark); font-size: 1.05rem; }
.prediction-card .prediction-explanation { color: var(--muted); font-size: .9rem; letter-spacing: 0; text-transform: none; }
.prediction-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.risk-pill, .time-pill { padding: .3rem .55rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .74rem; font-weight: 700; }
.risk-pill.low { background: #dcfce7; color: #166534; }
.risk-pill.medium { background: #fef3c7; color: #92400e; }
.risk-pill.high { background: #fee2e2; color: #991b1b; }
.article-excerpt { margin: -.1rem 0 .8rem; color: var(--muted); font-size: .9rem; }
.article-hero { padding: clamp(3rem, 8vw, 6rem) 0 3rem; background: linear-gradient(145deg, #fff, #edf5f0); border-bottom: 1px solid var(--border); }
.article-heading { max-width: 820px; }
.article-heading h1 { max-width: 22ch; }
.article-lead { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.article-heading time, .back-link { color: var(--muted); font-size: .85rem; }
.back-link { display: inline-block; margin-bottom: 2rem; font-weight: 600; }
.article-cover { max-width: 920px; margin-top: 2rem; }
.article-cover img { width: 100%; max-height: 520px; border-radius: var(--radius); object-fit: cover; }
.article-content { max-width: 760px; padding-top: 2.5rem; padding-bottom: 4.5rem; font-size: 1.04rem; line-height: 1.8; white-space: normal; }

@media (min-width: 640px) {
    .intro-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); }
    .match-scroller { grid-auto-columns: 330px; }
    .match-grid, .prediction-grid, .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .match-tools { grid-template-columns: minmax(220px, 1fr) 200px auto; align-items: center; }
}

@media (min-width: 1024px) {
    .desktop-nav { display: flex; }
    .menu-button { display: none; }
    .mobile-nav { display: none !important; }
    .match-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prediction-grid, .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Brand, language and theme controls */
.brand-logo { width: clamp(150px, 18vw, 232px); height: 54px; overflow: hidden; border-radius: 9px; background: #fff; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.language-switcher { position: relative; }
.language-switcher summary, .theme-toggle { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font-size: .72rem; font-weight: 600; list-style: none; transition: border-color 180ms ease, background-color 180ms ease; }
.language-switcher summary { width: auto; min-width: 54px; padding: 0 .65rem; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:hover, .theme-toggle:hover { border-color: var(--green); }
.language-menu { position: absolute; z-index: 45; top: calc(100% + .55rem); right: 0; min-width: 155px; padding: .4rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.language-menu a { display: block; padding: .62rem .7rem; border-radius: 8px; font-size: .86rem; }
.language-menu a:hover, .language-menu a[aria-current="true"] { background: rgba(22,163,74,.11); color: var(--green); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* Dark theme */
[data-theme="dark"] {
    --background: #07131f;
    --surface: #0d2132;
    --border: #243c4f;
    --text: #e5edf3;
    --muted: #9fb0bd;
    --shadow: 0 18px 45px rgba(0,0,0,.25);
    color-scheme: dark;
}
[data-theme="dark"] h1, [data-theme="dark"] h2 { color: #e6f0f6; }
[data-theme="dark"] .site-header { border-color: #36566f; background: rgba(4,14,24,.98); box-shadow: 0 8px 28px rgba(0,0,0,.32); }
[data-theme="dark"] .desktop-nav a { color: #f4f8fb; font-weight: 700; text-shadow: 0 1px 1px rgba(0,0,0,.45); }
[data-theme="dark"] .desktop-nav a:hover,
[data-theme="dark"] .desktop-nav a[aria-current="page"] { color: #6ee7a0; }
[data-theme="dark"] .mobile-nav a { color: #f4f8fb; border-color: #36566f; }
[data-theme="dark"] .mobile-nav a:hover,
[data-theme="dark"] .mobile-nav a[aria-current="page"] { color: #6ee7a0; background: rgba(110,231,160,.08); }
[data-theme="dark"] .language-switcher summary,
[data-theme="dark"] .theme-toggle { border-color: #48667d; background: #132b3e; color: #ffffff; }
[data-theme="dark"] .language-menu a { color: #f4f8fb; }
[data-theme="dark"] .language-menu a:hover,
[data-theme="dark"] .language-menu a[aria-current="true"] { color: #6ee7a0; background: rgba(110,231,160,.12); }
[data-theme="dark"] .menu-button { border: 1px solid #48667d; background: #17374f; }
[data-theme="dark"] .mobile-nav, [data-theme="dark"] .language-menu { background: var(--surface); }
[data-theme="dark"] .home-intro, [data-theme="dark"] .page-heading { background: linear-gradient(145deg, #0b1c2a 0%, #102b31 100%); border-color: var(--border); }
[data-theme="dark"] .quick-actions, [data-theme="dark"] .empty-state { border-color: var(--border); background: rgba(13,33,50,.82); }
[data-theme="dark"] .button-outline { border-color: var(--border); background: #10283b; color: #e6f0f6; }
[data-theme="dark"] .match-card, [data-theme="dark"] .prediction-card, [data-theme="dark"] .article-card { border-color: var(--border); background: var(--surface); }
[data-theme="dark"] .section-tinted { border-color: var(--border); background: #0a1a28; }
[data-theme="dark"] .data-disclaimer { background: #103b2a; color: #b7f7ce; }
[data-theme="dark"] .data-disclaimer.warning { background: #422f0c; color: #fde68a; }
[data-theme="dark"] .risk-pill, [data-theme="dark"] .time-pill { background: #173247; color: #d7e3eb; }
[data-theme="dark"] .team-logo-placeholder { border-color: var(--border); background: #173247; }
[data-theme="dark"] .safe-tip { background: #103b2a; color: #98efb8; }
[data-theme="dark"] .confidence { background: #103b2a; color: #98efb8; }
[data-theme="dark"] .promo-dialog { background: var(--surface); color: var(--text); }
[data-theme="dark"] .dialog-close { background: #173247; color: var(--text); }
[data-theme="dark"] .promo-row { border-color: var(--border); }
[data-theme="dark"] .site-footer { background: #040c13; }
[data-theme="dark"] .admin-body { background: var(--background); }
[data-theme="dark"] .admin-header, [data-theme="dark"] .login-panel { border-color: var(--border); background: var(--surface); }
[data-theme="dark"] .article-hero { border-color: var(--border); background: linear-gradient(145deg, #0b1c2a, #102b31); }

/* Arabic right-to-left layout */
html[lang="ar"] body { font-family: "Noto Sans Arabic", system-ui, sans-serif; }
html[dir="rtl"] .language-menu { right: auto; left: 0; }
html[dir="rtl"] .form-error { border-left: 0; border-right: 4px solid var(--live); }

@media (max-width: 639px) {
    .brand-logo { width: 130px; height: 38px; }
    .header-inner { gap: .45rem; }
    .header-actions { gap: .4rem; }
    .language-switcher summary, .theme-toggle, .menu-button { width: 36px; height: 36px; }
    .language-switcher summary { min-width: 42px; padding-inline: .3rem; }
}

@media (max-width: 900px) {
    .admin-header-inner { flex-wrap: wrap; }
    .admin-nav { order: 3; width: 100%; padding-top: .6rem; border-top: 1px solid var(--border); }
    .admin-header-inner form .button { min-height: 40px; padding: .55rem .7rem; }
}

/* Match-centre redesign */
:root { --xbet: #1267c4; --xbet-dark: #084b91; --melbet: #f6ad19; --melbet-dark: #d68a00; }
.home-workspace { padding: 1rem 0 3rem; background: radial-gradient(circle at 50% 0, rgba(22,163,74,.09), transparent 30rem), var(--background); }
.home-shell { display: grid; gap: 1rem; align-items: start; }
.league-sidebar, .prediction-rail, .score-panel, .sponsor-marquee, .detail-panel, .match-actions-panel { border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: 0 12px 34px rgba(15,41,66,.07); }
.league-sidebar { display: flex; gap: .45rem; overflow-x: auto; padding: .75rem; scrollbar-width: thin; }
.panel-title { display: flex; align-items: center; gap: .65rem; }
.panel-title > span:first-child { color: var(--green); }
.panel-title h2 { margin: 0; font-size: .95rem; }
.panel-title .eyebrow { margin: 0 0 .18rem; }
.league-sidebar > .panel-title { min-width: 175px; padding: .5rem; }
.league-nav-link { min-width: 172px; display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: .55rem; padding: .62rem .7rem; border: 1px solid transparent; border-radius: 10px; color: var(--text); }
.league-nav-link:hover, .league-nav-link.active { border-color: rgba(22,163,74,.28); background: rgba(22,163,74,.08); }
.league-nav-link img { width: 24px; height: 24px; object-fit: contain; }
.league-nav-link span { min-width: 0; }
.league-nav-link strong { display: block; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.league-nav-link small { display: block; color: var(--muted); font-size: .68rem; }
.league-mini-logo { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--navy); color: #fff; font-size: .7rem; }
.install-card { min-width: 230px; display: grid; gap: .2rem; padding: .75rem; border: 1px solid rgba(22,163,74,.28); border-radius: 10px; background: rgba(22,163,74,.08); color: var(--text); cursor: pointer; text-align: start; }
.install-card span { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.install-header { min-height: 38px; padding: 0 .8rem; border: 1px solid rgba(22,163,74,.4); border-radius: 9px; background: rgba(22,163,74,.1); color: var(--green-dark); cursor: pointer; font-size: .76rem; font-weight: 700; }
.home-main-column { min-width: 0; display: grid; gap: 1rem; }
.sponsor-marquee { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .7rem; overflow: hidden; padding: .65rem .75rem; }
.marquee-window { min-width: 0; overflow: hidden; }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 1rem; color: var(--text); font-size: .78rem; font-weight: 700; animation: sponsor-scroll 24s linear infinite; }
.marquee-track > span[aria-hidden] { color: var(--green); }
.marquee-actions { display: flex; gap: .4rem; }
.partner-chip { min-width: 66px; padding: .4rem .6rem; border-radius: 8px; color: #fff; text-align: center; font-size: .72rem; font-weight: 800; }
.partner-chip.xbet, .button-xbet { background: var(--xbet); color: #fff; }
.partner-chip.xbet:hover, .button-xbet:hover { background: var(--xbet-dark); }
.partner-chip.melbet, .button-melbet { background: var(--melbet); color: #201500; }
.partner-chip.melbet:hover, .button-melbet:hover { background: var(--melbet-dark); }
@keyframes sponsor-scroll { from { transform: translateX(10%); } to { transform: translateX(-100%); } }
.score-panel { overflow: hidden; }
.score-panel-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.1rem .8rem; }
.score-panel-header h1 { margin: 0; font-size: clamp(1.65rem,4vw,2.35rem); }
.score-panel-header .eyebrow { margin-bottom: .35rem; }
.score-panel-header > a { color: var(--green-dark); font-size: .78rem; font-weight: 800; }
.match-filter-tabs { display: flex; gap: .45rem; overflow-x: auto; padding: .6rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.match-filter-tabs button { min-height: 36px; padding: .45rem .7rem; border: 0; border-radius: 8px; background: rgba(100,116,139,.11); color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.match-filter-tabs button:hover, .match-filter-tabs button.active { background: var(--green); color: #fff; }
.home-tabs { margin: 0 1rem .75rem; }
.date-strip { display: flex; align-items: center; justify-content: space-between; margin: 0 1rem .8rem; padding: .65rem .8rem; border-radius: 9px; background: var(--navy-strong); color: #fff; font-size: .8rem; }
.compact-match-list { display: grid; gap: .8rem; }
.home-match-list { max-height: 680px; overflow-y: auto; padding: 0 1rem 1rem; scrollbar-width: thin; }
.league-match-group { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.league-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .75rem; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--navy) 8%, var(--surface)); }
.league-identity { min-width: 0; display: flex; align-items: center; gap: .6rem; }
.league-identity img { width: 28px; height: 28px; object-fit: contain; }
.league-identity strong, .league-identity small { display: block; }
.league-identity strong { overflow: hidden; color: var(--text); font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.league-identity small { color: var(--muted); font-size: .68rem; }
.league-row > span:last-child { color: var(--muted); font-size: .7rem; }
.match-row { min-height: 70px; display: grid; grid-template-columns: 76px minmax(0,1fr) 28px auto 16px; align-items: center; gap: .65rem; padding: .55rem .7rem; border-bottom: 1px solid var(--border); color: var(--text); transition: background-color 160ms ease, transform 160ms ease; }
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: rgba(22,163,74,.07); transform: translateX(2px); }
.match-row-time { display: grid; gap: .1rem; color: var(--muted); font-size: .7rem; }
.match-row-time strong { color: var(--text); font-size: .73rem; }
.match-row-time.is-live strong { color: var(--live); }
.match-row-teams { min-width: 0; display: grid; gap: .28rem; }
.match-row-teams > span { min-width: 0; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: .5rem; }
.match-row-teams img, .match-row-teams i { width: 26px; height: 26px; object-fit: contain; }
.match-row-teams i { display: block; border: 1px solid var(--border); border-radius: 50%; background: rgba(100,116,139,.08); }
.match-row-teams strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.match-row-score { display: grid; gap: .28rem; color: var(--text); text-align: center; font-size: .82rem; }
.prediction-dot { min-width: 29px; padding: .25rem .35rem; border-radius: 7px; background: rgba(22,163,74,.13); color: var(--green-dark); font-size: .65rem; font-weight: 900; text-align: center; }
.match-row-arrow { color: var(--muted); font-size: 1.3rem; }
.prediction-rail { padding: 1rem; }
.prediction-rail > .panel-title { margin-bottom: .9rem; }
.ai-spark { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg,var(--green),#0f6f43); color: #fff !important; font-size: .68rem; font-weight: 900; }
.spotlight-predictions { display: grid; gap: .7rem; }
.spotlight-predictions .prediction-card { padding: 1rem; box-shadow: none; }
.spotlight-predictions .prediction-card h2 { padding-right: 3.2rem; font-size: .88rem; }
.spotlight-predictions .prediction-explanation { display: none; }
.spotlight-predictions .confidence { top: .8rem; right: .8rem; }
.rail-action { width: 100%; margin-top: .75rem; }
.prediction-detail-link { display: inline-block; margin-top: .85rem; color: var(--green-dark); font-size: .76rem; font-weight: 800; }
.compact-heading { padding: 2.3rem 0 1.7rem; }
.compact-heading h1 { margin-bottom: .35rem; }
.compact-heading p:last-child { margin: 0; color: var(--muted); }
.match-list-section { padding-top: 1.5rem; }
.match-tools { grid-template-columns: minmax(220px,1fr) !important; }
.match-tools input { width: 100%; min-height: 46px; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.match-tools > span { justify-self: end; }
.match-detail-hero { padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--border); background: linear-gradient(145deg,#fff,#e9f6ef); }
.match-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.match-detail-heading h1 { margin: 0; font-size: clamp(1.5rem,4vw,2.35rem); }
.detail-status { padding: .42rem .65rem; border-radius: 999px; background: rgba(100,116,139,.12); color: var(--text); font-size: .75rem; font-weight: 800; }
.detail-status.live { background: rgba(239,68,68,.12); color: #dc2626; }
.detail-scoreboard { max-width: 760px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin: 2rem auto 0; }
.detail-team { min-width: 0; display: grid; justify-items: center; gap: .7rem; text-align: center; }
.detail-team img { width: 76px; height: 76px; object-fit: contain; }
.detail-team strong { overflow-wrap: anywhere; font-size: clamp(.9rem,2vw,1.15rem); }
.detail-score { display: grid; justify-items: center; gap: .45rem; text-align: center; }
.detail-score time { color: var(--muted); font-size: .72rem; }
.detail-score strong { color: var(--navy); font-size: clamp(1.5rem,5vw,2.5rem); }
.detail-layout, .detail-content { display: grid; gap: 1rem; }
.detail-panel, .match-actions-panel { padding: clamp(1rem,3vw,1.35rem); }
.detail-panel h2, .match-actions-panel h2 { margin-bottom: 1rem; font-size: 1.05rem; }
.main-prediction { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; padding: 1rem; border-radius: 12px; background: rgba(22,163,74,.08); }
.main-prediction small, .main-prediction strong { display: block; }
.main-prediction strong { margin-top: .2rem; color: var(--green-dark); font-size: 1.25rem; }
.main-prediction p { margin: .55rem 0 0; color: var(--muted); font-size: .86rem; }
.main-prediction > span { color: var(--green-dark); font-size: 1.25rem; font-weight: 900; }
.exact-prediction, .expected-goals { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; padding: .75rem .85rem; border: 1px solid var(--border); border-radius: 10px; }
.exact-prediction span, .exact-prediction small, .expected-goals span { color: var(--muted); font-size: .75rem; }
.probability-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; }
.probability-grid > div { min-width: 0; display: grid; gap: .25rem; padding: .85rem .6rem; border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.probability-grid span { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.probability-grid strong { color: var(--navy); }
.match-actions-panel { align-self: start; display: grid; gap: .7rem; }
.match-actions-panel .affiliate-actions { margin-top: 0; }

[data-theme="dark"] .home-workspace { background: radial-gradient(circle at 50% 0,rgba(22,163,74,.11),transparent 30rem),var(--background); }
[data-theme="dark"] .league-sidebar, [data-theme="dark"] .prediction-rail, [data-theme="dark"] .score-panel, [data-theme="dark"] .sponsor-marquee, [data-theme="dark"] .detail-panel, [data-theme="dark"] .match-actions-panel, [data-theme="dark"] .league-match-group { background: #0b2030; border-color: #28475d; }
[data-theme="dark"] .league-row { background: #0f2c43; border-color: #2d5069; }
[data-theme="dark"] .match-row { border-color: #213f54; color: #f2f7fa; }
[data-theme="dark"] .match-row-time strong, [data-theme="dark"] .league-identity strong, [data-theme="dark"] .league-nav-link, [data-theme="dark"] .marquee-track { color: #f2f7fa; }
[data-theme="dark"] .match-filter-tabs { border-color: #28475d; background: #0b2030; }
[data-theme="dark"] .match-filter-tabs button { background: #15354c; color: #dce8ef; }
[data-theme="dark"] .match-filter-tabs button.active { background: #20a758; color: #fff; }
[data-theme="dark"] .prediction-dot, [data-theme="dark"] .main-prediction { background: rgba(62,220,123,.13); color: #86efac; }
[data-theme="dark"] .prediction-dot, [data-theme="dark"] .main-prediction strong, [data-theme="dark"] .main-prediction > span, [data-theme="dark"] .prediction-detail-link { color: #86efac; }
[data-theme="dark"] .match-detail-hero { background: linear-gradient(145deg,#07131f,#0d2b31); }
[data-theme="dark"] .detail-score strong, [data-theme="dark"] .probability-grid strong { color: #f5f9fc; }
[data-theme="dark"] .install-header { border-color: rgba(110,231,160,.4); background: rgba(110,231,160,.1); color: #86efac; }
[data-theme="dark"] .install-floating { border-color: rgba(134,239,172,.45); background: #166534; color: #fff; }
[data-theme="dark"] .install-floating:hover { background: #15803d; }

@media (min-width: 640px) {
    .match-tools { grid-template-columns: minmax(220px,1fr) auto auto !important; align-items: center; }
    .detail-layout { grid-template-columns: minmax(0,1fr) 330px; }
}
@media (min-width: 1120px) {
    .home-shell { grid-template-columns: 220px minmax(470px,1fr) 310px; }
    .league-sidebar { position: sticky; top: 88px; display: block; overflow: visible; padding: .75rem; }
    .league-sidebar > .panel-title { min-width: 0; margin-bottom: .6rem; border-bottom: 1px solid var(--border); }
    .league-nav-link { min-width: 0; }
    .install-card { min-width: 0; width: 100%; margin-top: .7rem; }
    .prediction-rail { position: sticky; top: 88px; }
}
@media (max-width: 760px) {
    .floating-actions { inset-inline: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); max-width: none; }
    .install-floating:not([hidden]) { display: inline-flex; }
    .floating-actions > * { max-width: calc(50vw - 1.05rem); }
    .floating-actions span { overflow: hidden; text-overflow: ellipsis; }
    .sponsor-marquee { grid-template-columns: 1fr; }
    .marquee-actions { justify-content: flex-end; }
    .match-row { grid-template-columns: 61px minmax(0,1fr) 24px auto 12px; gap: .4rem; padding-inline: .55rem; }
    .match-row-time small { display: none; }
    .prediction-dot { min-width: 25px; font-size: .58rem; }
    .score-panel-header { align-items: center; }
    .score-panel-header > a { max-width: 110px; text-align: end; }
}
@media (max-width: 480px) {
    .install-header { display: none !important; }
    .whatsapp-float, .install-floating { min-height: 48px; padding: .65rem .75rem; font-size: .72rem; }
    .detail-team img { width: 58px; height: 58px; }
    .detail-scoreboard { gap: .45rem; }
    .affiliate-actions { grid-template-columns: 1fr; }
    .probability-grid { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; transform: none; } }

/* V7: goals-led prediction cards and consistent market panels. */
.home-main-column { min-width: 0; }
.home-shell { grid-template-columns: minmax(0,1fr); }
.prediction-showcase { padding-block: .6rem 1.5rem; min-width: 0; }
.showcase-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.showcase-heading h2 { margin: 0; font-size: clamp(1.3rem,3vw,1.8rem); }
.showcase-heading .eyebrow { margin-bottom: .35rem; }
.showcase-heading > a { max-width: 14rem; text-align: end; color: var(--text); font-size: .875rem; font-weight: 600; }
.showcase-heading > a:hover { text-decoration: underline; }
.showcase-intro { margin: .7rem 0 1rem; color: var(--muted); }
.tip-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(275px,calc((100% - 1rem)/2)); gap: 1rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: .35rem .1rem 1rem; scrollbar-width: thin; scrollbar-color: #3887d3 transparent; }
.tip-carousel:focus-visible { outline: 3px solid #3188db; outline-offset: 3px; }
.tip-card { min-width: 0; display: flex; flex-direction: column; gap: .8rem; padding: 1rem; border: 1px solid #38506d; border-radius: 16px; background: linear-gradient(155deg,#162840,#101b2e 68%); color: #f5f8ff; box-shadow: 0 10px 28px #07112418; scroll-snap-align: start; transition: transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease; animation: tip-arrive 320ms ease both; }
.tip-card:nth-child(2) { animation-delay: 60ms; }
.tip-card:nth-child(3) { animation-delay: 120ms; }
.tip-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.competition-tag { max-width: 100%; padding: .3rem .5rem; border-radius: 6px; background: #e5f0ff; color: #174278; font-size: .875rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.tip-top time { color: #c7d6eb; font-size: .875rem; white-space: nowrap; }
.tip-teams { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); gap: .6rem; align-items: start; padding-block: .5rem; }
.tip-teams > div { display: grid; justify-items: center; gap: .65rem; text-align: center; min-width: 0; }
.tip-teams img { width: 52px; height: 52px; object-fit: contain; padding: 4px; border-radius: 50%; background: #f8fafc; }
.tip-teams strong { font-size: 1rem; font-weight: 600; color: #f5f8ff; overflow-wrap: anywhere; line-height: 1.45; }
.tip-versus { padding-top: 1rem; color: #bdcee6; font-size: .875rem; font-weight: 600; }
.tip-insight { padding: .85rem; border: 1px solid #47607f; border-inline-start: 3px solid #68d6a2; background: #1b2d46; border-radius: 8px; }
.tip-insight > small { display: block; color: #cbdcf1; font-size: .875rem; line-height: 1.5; }
.tip-insight > strong { display: block; margin-block: .35rem .5rem; color: #fff; font-size: 1.2rem; line-height: 1.35; }
.tip-insight p { margin: 0; font-size: .875rem; color: #d7e3f3; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tip-probability { display: flex; justify-content: space-between; align-items: center; gap: .65rem; color: #d5e2f3; font-size: .875rem; }
.tip-probability strong { font-size: 1.15rem; white-space: nowrap; color: #9cebc4; }
.tip-meter { width: 100%; height: 9px; display: block; background: #344961; border: 0; border-radius: 9px; overflow: hidden; }
.tip-meter::-webkit-meter-bar { background: #344961; border: 0; border-radius: 9px; }
.tip-meter::-webkit-meter-optimum-value { background: #69dba1; }
.tip-meter::-moz-meter-bar { background: #69dba1; }
.tip-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; color: #d5e2f3; font-size: .875rem; }
.tip-card .risk-pill { background: #334359; color: #f2f7ff; font-size: .875rem; }
.tip-card .risk-pill.high { background: #563129; color: #ffdfc1; }
.tip-card .risk-pill.medium { background: #434020; color: #fff2b0; }
.tip-actions { display: grid; gap: .6rem; margin-top: auto; padding-top: .4rem; }
.tip-bet { display: flex; gap: .8rem; justify-content: center; background: linear-gradient(110deg,#ffb026,#ff8749); color: #211403; border: 1px solid #ffbe65; border-radius: 8px; min-height: 46px; font-size: .9375rem; font-weight: 600; box-shadow: 0 5px 16px #ef98152b; }
.tip-analysis { min-height: 44px; display: flex; gap: .5rem; align-items: center; justify-content: center; text-align: center; color: #93c9ff; font-size: .9375rem; font-weight: 600; }
.tip-analysis:hover { color: #d7ebff; text-decoration: underline; }
.tip-card a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.prediction-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,285px),1fr)); align-items: stretch; }
.market-note { margin-block: .75rem; color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.detail-panel h3 { margin: 1.6rem 0 .7rem; color: var(--text); font-size: 1rem; }
.outcome-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.outcome-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.outcome-cell { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: .85rem .65rem; border: 1px solid var(--border); border-radius: 10px; background: var(--background); text-align: center; overflow-wrap: anywhere; }
.outcome-cell > span { font-size: .875rem; }
.outcome-cell strong { color: var(--text); font-size: clamp(1.1rem,3vw,1.45rem); font-variant-numeric: tabular-nums; }
.outcome-cell.leading { border-color: #218450; box-shadow: inset 0 3px #218450; }
.outcome-symbol { align-self: center; display: inline-flex; justify-content: center; min-width: 30px; padding: .15rem .55rem; border-radius: 6px; background: #dcecff; color: #174278; font-weight: 600; }
.goals-market-grid { display: grid; gap: .65rem; }
.goal-market { display: flex; gap: .85rem; align-items: stretch; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.goal-line { display: grid; place-content: center; padding: .6rem; min-width: 54px; background: #dcecff; color: #174278; font-weight: 600; }
.goal-market dl { flex: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; padding: .75rem .75rem .75rem 0; margin: 0; }
.goal-market dt { color: var(--muted); font-size: .875rem; }
.goal-market dd { margin: .25rem 0 0; font-weight: 600; color: var(--text); }
.unavailable-market { margin-top: 1.25rem; padding: 1rem; border: 1px dashed var(--border); border-radius: 10px; }
.unavailable-market h3 { margin: 0 0 .5rem; }
.unavailable-market p { color: var(--muted); margin: 0; font-size: .9375rem; }
.methodology summary { color: var(--text); cursor: pointer; font-weight: 600; min-height: 30px; }
.methodology p { margin: .9rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.score-scenario small { font-size: .875rem; color: var(--muted); }
.main-prediction { align-items: start; flex-wrap: wrap; }
.main-prediction > span small { display: block; font-size: .875rem; font-weight: 400; }
.exact-prediction { flex-wrap: wrap; }
#statistics, #partners { scroll-margin-top: 110px; }
.partner-button { display: flex; flex-direction: column; gap: .2rem; border-radius: 9px; padding: .8rem; border: 1px solid #ffffff29; }
.partner-button small { font-size: .875rem; overflow-wrap: anywhere; }
.partner-xbet { background: #1260ad; color: #fff; }
.partner-melbet { background: #ffb825; color: #201700; }
.partner-betwinner { background: #126d4c; color: #fff; }
.partner-1win { background: #162c4f; color: #fff; }
.partner-paripesa { background: #2354a7; color: #fff; }
.partner-afroparis { background: #f08036; color: #291200; }
.marquee-actions { flex-wrap: wrap; }
.contact-heading p { max-width: 42rem; color: var(--muted); margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 1.25rem; }
.contact-card { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.25rem,3vw,2rem); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.contact-card h2 { margin: 0; font-size: 1.25rem; }
.contact-symbol { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #dcecff; color: #174278; font-size: 1.65rem; }
.contact-value { color: var(--text); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; }
.contact-card .button { margin-top: auto; align-self: start; }
.footer-contact { display: inline-block; padding-block: .5rem; text-decoration: underline; text-underline-offset: 4px; }
.admin-editor [readonly], .admin-editor select:disabled { background: var(--background); color: var(--muted); cursor: default; }
.promo-list { max-height: min(55vh,460px); overflow-y: auto; }
.promo-dialog { max-height: 90dvh; overflow-y: auto; }
@keyframes tip-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (hover: hover) { .tip-card:hover { transform: translateY(-3px); border-color: #7298c0; box-shadow: 0 15px 30px #09142833; } .tip-bet:hover { filter: brightness(1.08); } }
@media (min-width: 1120px) { .home-shell { grid-template-columns: 200px minmax(0,1fr); } }
@media (max-width: 1359px) { .desktop-nav { display: none; } .menu-button { display: grid; } }
@media (max-width: 600px) {
    .tip-carousel { grid-auto-columns: minmax(260px,87%); }
    .showcase-heading { align-items: start; }
    .showcase-heading > a { max-width: 8rem; font-size: .875rem; }
    .tip-teams { padding-block: .4rem; }
    .outcome-grid { gap: .4rem; }
    .outcome-cell { padding: .75rem .4rem; }
    .goal-market dl { grid-template-columns: 1fr; }
    .marquee-actions { justify-content: start; }
}
@media (prefers-reduced-motion: reduce) { .tip-card { animation: none; transition: none; } .tip-card:hover { transform: none; } }

/* V8 · editorial coupon: a luminous ticket, with independent partner accents. */
.coupon-card { position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: clamp(1rem,3vw,1.8rem); border: 1px solid #75dfc2; border-radius: 22px; background: radial-gradient(ellipse at 100% 0,#20756166,transparent 60%),linear-gradient(135deg,#142d40,#0b1b2f 70%); color: #f4f9ff; box-shadow: 0 0 0 4px #59ddb00c,0 12px 40px #1bbf8a18; scroll-margin-top: 6rem; }
.coupon-card::before { content: ''; position: absolute; z-index: -1; inset: 0 15% auto; height: 2px; background: linear-gradient(90deg,transparent,#97ffe0,#e9c87b,transparent); box-shadow: 0 0 25px 4px #71ffd040; }
.coupon-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.coupon-kicker { margin-bottom: .6rem; color: #9fffe1; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.coupon-kicker span { margin-inline-end: .3rem; }
.coupon-card h2 { color: #fff; font-size: clamp(1.4rem,3vw,2rem); margin: 0; letter-spacing: -.025em; overflow-wrap: anywhere; }
.coupon-ticket-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid #98ffd650; border-radius: 14px; color: #abffe5; font-size: 2rem; background: #9affd80b; transform: rotate(-8deg); }
.coupon-note { color: #eef6ff; overflow-wrap: anywhere; margin-block: 1rem .7rem; }
.coupon-help,.coupon-validity { color: #c0d4e7; font-size: .83rem; margin-bottom: .7rem; }
.coupon-validity { color: #a1efd7; }
.coupon-codes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin-block: 1.2rem; }
.coupon-brand-xbet { --coupon-accent: #69b5ff; }
.coupon-brand-melbet { --coupon-accent: #ffc84a; }
.coupon-brand-betwinner { --coupon-accent: #62dfa4; }
.coupon-brand-1win { --coupon-accent: #78bcff; }
.coupon-brand-paripesa { --coupon-accent: #a2bcff; }
.coupon-brand-afroparis { --coupon-accent: #ffb168; }
.coupon-code-row { min-width: 0; padding: .8rem 1rem; border: 1px solid #8aaac33d; border-inline-start: 3px solid var(--coupon-accent,#8cf2cc); border-radius: 12px; background: #ffffff07; transition: background .2s,border-color .2s; }
.coupon-provider { display: flex; align-items: center; gap: .5rem; color: #f3f8ff; }
.coupon-brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coupon-accent); box-shadow: 0 0 10px var(--coupon-accent); }
.coupon-provider a { margin-inline-start: auto; display: grid; place-items: center; min-width: 44px; min-height: 44px; margin-block: -.5rem; color: var(--coupon-accent); font-size: 1.2rem; }
.coupon-code-value { display: flex; align-items: center; gap: .6rem; margin-top: .65rem; }
.coupon-card code { min-width: 0; overflow-wrap: anywhere; white-space: normal; font: 700 1.13rem/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; color: #fff; letter-spacing: .025em; unicode-bidi: isolate; }
.coupon-code-value code { flex: 1; }
.coupon-card button { flex-shrink: 0; min-height: 44px; padding: .5rem .7rem; border: 1px solid #8ab4d263; border-radius: 8px; color: #e2f5ff; background: #243c51; font-size: .78rem; font-weight: 700; cursor: pointer; }
.coupon-card button:focus-visible,.coupon-card a:focus-visible { outline: 3px solid #9effde; outline-offset: 3px; }
.coupon-promo-area { position: relative; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed #8eb2c95c; }
.coupon-promo-area h3 { font-size: .82rem; font-weight: 650; color: #c0d4e7; margin: 0 0 .8rem; }
.coupon-promo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.coupon-promo { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .2rem .6rem; padding: .6rem .75rem; border: 1px solid #8aaac32e; border-radius: 9px; background: #00000018; }
.coupon-promo > span { color: var(--coupon-accent); font-weight: 650; font-size: .75rem; }
.coupon-promo code { grid-column: 1; font-size: .92rem; }
.coupon-promo button { grid-column: 2; grid-row: 1 / 3; }
.coupon-whatsapp { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: 1.2rem; padding: .9rem 1rem; min-height: 52px; border-radius: 11px; background: linear-gradient(115deg,#78efb4,#39d881); color: #062e1d; font-weight: 800; font-size: .94rem; box-shadow: 0 6px 25px #19d87b20; }
.coupon-whatsapp svg,.coupon-whatsapp > span:last-child { flex-shrink: 0; }
.coupon-disclaimer { margin: .85rem 0 0; color: #b7ccde; font-size: .72rem; }
.coupon-card[hidden] { display: none; }
.admin-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.coupon-editor-intro { display: grid; gap: .6rem; }
.coupon-editor { margin-top: 1.5rem; }
.coupon-editor .field-help { color: #52647b; font-size: .84rem; margin-bottom: .7rem; }
.coupon-editor label > span { color: #52647b; font-weight: 400; }
.coupon-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.coupon-editor .coupon-admin-provider { display: grid; gap: .7rem; min-width: 0; margin: 0; border-top: 3px solid var(--coupon-accent); }
.coupon-admin-provider small { color: #52647b; }
.coupon-publish-panel { display: grid; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.coupon-editor .checkbox-label { display: flex; align-items: center; gap: .65rem; }
.coupon-editor .checkbox-label input { width: 20px; min-height: 20px; height: 20px; accent-color: #12813c; }
.coupon-publish-panel .button { justify-self: start; }
@media (hover:hover) { .coupon-code-row:hover { background: #ffffff0e; border-color: var(--coupon-accent); } .coupon-card button:hover { background: #35526a; } .coupon-whatsapp:hover { filter: brightness(1.06); } }
@media (max-width:600px) { .coupon-codes,.coupon-promo-grid,.coupon-admin-grid { grid-template-columns: minmax(0,1fr); } .coupon-ticket-icon { width: 38px; height: 38px; } .coupon-whatsapp { font-size: .85rem; } }
@media (prefers-reduced-motion:reduce) { .coupon-code-row { transition: none; } }

/* V9 · readable discovery, favorites, editorial guides and transparent results. */
.home-discovery { display: flex; gap: .6rem; flex-wrap: wrap; }
.home-discovery a { padding: .65rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .875rem; font-weight: 650; }
.freshness { color: var(--muted); font-size: .875rem; margin: .35rem 0 .8rem; }
.match-row-wrap { display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: stretch; gap: .25rem; }
.match-row-wrap > .match-row { min-width: 0; }
.match-row-wrap[hidden] { display: none !important; }
.favorite-button { border: 1px solid var(--border); background: var(--surface); color: var(--text); min-height: 44px; padding: .6rem .85rem; border-radius: 10px; font: inherit; cursor: pointer; }
.favorite-button[aria-pressed="true"] { color: #064e3b; background: #b6f3d1; border-color: #5bcc91; }
.match-star { padding: .3rem; font-size: 1.35rem; align-self: center; margin-inline-end: .25rem; }
.favorite-saved,.match-follow-tools { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.competition-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: 1rem; }
.competition-card { padding: 1.5rem; border: 1px solid var(--border); background: var(--surface); border-radius: 16px; }
.competition-card > a { display: block; margin-top: 1rem; font-weight: 650; }
.share-tools { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-block: 1rem; }
.share-status { color: var(--muted); font-size: .875rem; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.pagination a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.pagination a[aria-current] { background: #12813c; color: #fff; border-color: #12813c; }
.reading-width { max-width: 760px; }
.article-content { max-width: 800px; font-size: 1.0625rem; line-height: 1.8; }
.article-content h2 { margin-top: 2rem; font-size: clamp(1.3rem,3vw,1.7rem); }
.article-content h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.article-content p { margin-bottom: 1.15rem; }
.article-content a:not(.button) { text-decoration: underline; text-underline-offset: .2em; }
.article-byline,.article-source { font-size: .875rem; color: var(--muted); }
.article-partner { margin-block: 1.6rem 2rem; padding: clamp(1rem,3vw,1.5rem); background: var(--surface); border: 1px solid var(--border); border-inline-start: 4px solid var(--coupon-accent,#69b5ff); border-radius: 14px; box-shadow: var(--shadow); }
.article-partner h2 { margin-top: 0; }
.article-partner .eyebrow { margin-bottom: .6rem; }
.article-promo-value { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.article-promo-value code { overflow-wrap: anywhere; max-width: 100%; font: 700 1.7rem/1.3 ui-monospace,Consolas,monospace; }
.article-related { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: .5rem; }
.article-related > a { display: block; padding-block: .6rem; }
.history-filters { display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; margin-bottom: 1.2rem; }
.history-filters label { display: grid; gap: .35rem; }
.history-filters select { min-height: 44px; padding: .5rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.history-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: .75rem; margin-block: 1rem 1.5rem; }
.history-metrics > div { padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.history-metrics strong { display: block; font-size: 1.7rem; }
.history-metrics span { color: var(--muted); font-size: .875rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.history-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--surface); text-align: start; }
.history-table th,.history-table td { padding: .9rem; border-bottom: 1px solid var(--border); vertical-align: top; text-align: start; font-size: .875rem; }
.history-table th { color: var(--muted); }
.history-table small { display: block; margin-top: .3rem; color: var(--muted); }
.result-pill { display: inline-block; padding: .2rem .6rem; border-radius: 7px; background: var(--background); }
.result-won { background: #c2f3d5; color: #064e3b; }
.result-lost { background: #ffe0e0; color: #921c30; }
.result-pending { background: #e2ebff; color: #183b79; }
.growth-section { margin-top: 1.5rem; }
.growth-section a { text-decoration: underline; text-underline-offset: .15em; }
.growth-section form { display: grid; gap: .8rem; }
.growth-section .button { justify-self: start; }
.footer-tools { display: flex; flex-wrap: wrap; gap: .7rem; padding-block: .75rem 1.5rem; }
.footer-tools button,.audience-banner button { color: #e4f0fc; background: #19344a; border: 1px solid #587388; border-radius: 8px; padding: .6rem .85rem; min-height: 44px; cursor: pointer; font: inherit; font-size: .875rem; }
.audience-banner { padding: 1rem; border: 1px solid #456478; border-radius: 12px; margin-bottom: 1rem; }
.audience-banner p { max-width: 80ch; font-size: .875rem; color: #d0dfeb; }
.audience-banner button { margin-inline-end: .5rem; }
.audience-dialog { max-width: min(95vw,540px); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; }
.audience-dialog::backdrop { background: #05122199; }
.audience-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1rem 0; }
.favorite-button:focus-visible,.pagination a:focus-visible { outline: 3px solid #39a96b; outline-offset: 3px; }
@media(max-width:600px){ .article-partner .button { width: 100%; justify-content: center; } .history-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .home-discovery { gap: .4rem; } .home-discovery a { padding: .6rem .75rem; } }

/* V10 — compact readable evidence, keyboard-accessible FAQ */
.faq-layout{max-width:960px}.faq-hero{padding:1.5rem 0 2rem}.faq-hero h1{font-size:clamp(1.9rem,4vw,3rem);line-height:1.15}.faq-hero>p:not(.eyebrow){max-width:720px;line-height:1.8}.faq-list{display:grid;gap:.8rem;margin:0 0 2rem}.faq-item{border:1px solid var(--border);background:var(--surface);border-radius:16px;overflow:hidden}.faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem;cursor:pointer;list-style:none}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary h2{font-size:1.05rem;line-height:1.6;margin:0;color:var(--text)}.faq-item summary>span{font-size:1.5rem;color:#16a34a;transition:transform .2s}.faq-item[open] summary>span{transform:rotate(45deg)}.faq-item[open] summary{border-bottom:1px solid var(--border)}.faq-answer{padding:1.2rem;overflow-wrap:anywhere;line-height:1.8}.faq-partner{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;padding:1.2rem;margin-top:1rem;border:1px solid var(--border);border-radius:12px}.faq-partner small{flex-basis:100%}.faq-code{font-size:1.15rem;letter-spacing:.06em;unicode-bidi:isolate;direction:ltr;display:inline-block}.faq-home{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;text-decoration:none;color:var(--text)}.faq-home>span{font-size:2rem}.faq-home h2{font-size:1.3rem}.ai-reading li{padding:.4rem 0;line-height:1.7}.tip-score-preview{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;padding:.65rem 0;border-top:1px solid var(--border);font-size:.75rem}.tip-score-preview strong{font-size:1.15rem;margin-inline-start:auto}.tip-card-v10{transition:transform .2s,border-color .2s,box-shadow .2s}.tip-card-v10:hover{transform:translateY(-3px);box-shadow:0 12px 28px #0002}.faq-item summary:focus-visible,.faq-home:focus-visible{outline:3px solid #16a34a;outline-offset:3px}[data-theme="dark"] .faq-item summary h2,[data-theme="dark"] .faq-home{color:#f4f8fb}.faq-partner.partner-xbet .button{background:#1265b2;color:white}.faq-partner.partner-melbet .button{background:#f9b515;color:#151b25}
@media(min-width:1101px){.desktop-nav{gap:.9rem}.desktop-nav a{font-size:.8rem}}
@media(max-width:600px){.faq-partner .button{width:100%;white-space:normal}.faq-item summary,.faq-answer{padding:1rem}.faq-home>span{display:none}}
@media(prefers-reduced-motion:reduce){.tip-card-v10,.faq-item summary>span{transition:none}.tip-card-v10:hover{transform:none}}

/* V11: a slightly denser sports layout, with readable text and touch targets. */
.tip-card { gap: .6rem; padding: .9rem; border-radius: 14px; }
.tip-teams { padding-block: .25rem; }
.tip-teams > div { gap: .45rem; }
.tip-teams img { width: 46px; height: 46px; }
.tip-insight { padding: .7rem; }
.tip-insight > strong { margin-block: .3rem .4rem; }
.tip-insight p { -webkit-line-clamp: 2; }
.tip-top time { white-space: normal; }
.tip-actions { gap: .35rem; padding-top: .25rem; }
.match-card { min-height: 230px; padding: 1rem; }
.coupon-card { padding: clamp(.9rem,2.4vw,1.45rem); border-radius: 18px; }
.coupon-card h2 { font-size: clamp(1.25rem,2.6vw,1.7rem); }
.coupon-header { margin-bottom: .6rem; }
.coupon-note { margin-block: .65rem .5rem; }
.coupon-codes { gap: .5rem; margin-block: .8rem; }
.coupon-promo-area { margin-top: .85rem; padding-top: .8rem; }
.coupon-ticket-icon { width: 42px; height: 42px; }
.coupon-code-value button,.coupon-promo button { min-height: 44px; }
.timezone-control { display: block; width: fit-content; max-width: 100%; padding: .65rem .85rem; margin-block: .6rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: .875rem; }
.timezone-control summary { cursor: pointer; min-height: 28px; line-height: 1.8; overflow-wrap: anywhere; }
.timezone-control label { display: grid; gap: .35rem; margin-top: .65rem; }
.timezone-control select { max-width: 100%; min-width: 0; min-height: 44px; padding: .5rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }
.timezone-control p { max-width: 34rem; margin-top: .6rem; }
.local-date-filter { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; padding: .5rem 0; margin-block: .5rem 1rem; }
.score-panel .local-date-filter { padding-inline: .85rem; }
.local-date-filter label { display: grid; gap: .25rem; color: var(--text); font-size: .875rem; }
.local-date-filter select { padding: .5rem; min-height: 44px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; }
.local-date-filter button { min-height: 44px; }
.tip-card[hidden],.timezone-control[hidden],.local-date-filter[hidden],.match-row-wrap[hidden] { display: none !important; }
.editorial-source { color: var(--green); font-weight: 600; font-size: .9375rem; }
.editorial-analysis > div { line-height: 1.8; overflow-wrap: anywhere; }
.editorial-form fieldset { margin: 1.3rem 0; padding: 1.25rem; min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.editorial-form legend { padding-inline: .5rem; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.editorial-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.editorial-wide { grid-column: 1 / -1; }
.editorial-form label { display: grid; gap: .5rem; color: var(--text); font-size: .9375rem; }
.editorial-form .check-label { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.editorial-form input:not([type="checkbox"]),.editorial-form select,.editorial-form textarea,.editorial-filters input,.editorial-filters select { display: block; width: 100%; max-width: 100%; min-width: 0; padding: .7rem .8rem; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.editorial-form textarea { resize: vertical; line-height: 1.65; }
.editorial-form input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; }
.editorial-locales { display: grid; gap: .7rem; }
.editorial-locale { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.editorial-locale > summary { padding: .8rem 1rem; cursor: pointer; font-weight: 600; color: var(--text); background: var(--background); }
.editorial-locale > summary .status-pill { margin-inline-start: .7rem; }
.editorial-locale-content { display: grid; gap: 1rem; padding: 1rem; }
.editorial-submit { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; padding-block: .8rem; }
.editorial-preview { max-width: 48rem; margin-block: 1.5rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.editorial-preview .tip-card { max-width: 24rem; margin: 1rem auto; }
.editorial-detail-preview { padding: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.editorial-auto-tools,.editorial-revisions { padding: 1rem; margin-block: 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.editorial-auto-tools summary,.editorial-revisions summary { cursor: pointer; font-weight: 600; }
.editorial-revisions > div { margin-top: 1rem; padding: 1rem; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.editorial-revisions details { margin-block: .7rem; }
.editorial-filters { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem; margin-block: 1.3rem; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.editorial-filters label { display: grid; gap: .4rem; flex: 1 1 150px; min-width: 0; font-size: .875rem; }
.admin-table td time { display: block; min-width: 8rem; }
@media(max-width: 640px) {
    .editorial-fields { grid-template-columns: minmax(0,1fr); }
    .editorial-form fieldset { padding: .85rem; }
    .editorial-locale-content { padding: .75rem; }
    .editorial-submit > label,.editorial-submit > button { width: 100%; }
    .editorial-filters > button { width: 100%; }
    .editorial-page .admin-page-heading h1 { font-size: 1.6rem; overflow-wrap: anywhere; }
    .coupon-card { padding: .9rem; }
}
/* V12: editorial library and compact result navigation. */
.admin-article-filters{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin:1rem 0 1.25rem}.admin-article-filters label{display:grid;gap:.35rem;flex:1 1 140px}.admin-article-filters label:first-child{flex-basis:240px}.admin-article-filters input,.admin-article-filters select{min-height:44px;width:100%;padding:.6rem;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text)}.admin-article-filters button{min-height:44px}.table-actions{flex-wrap:wrap}.table-actions button{min-height:40px}.page-heading .button{margin-top:.8rem}.match-filter-tabs a{display:inline-flex;align-items:center;padding:.55rem .8rem;color:var(--text);text-decoration:none}.lifecycle-notice{font-size:.9rem;color:var(--muted);margin:1rem 0}
