/* TIPNIX UX foundation */
:root {
    --tnx-ink: #15171a;
    --tnx-muted: #68707b;
    --tnx-line: #e5e8ec;
    --tnx-soft: #f6f7f9;
    --tnx-green: #137a4b;
    --tnx-red: #d92d20;
    --tnx-header-height: 72px;
}

html { scroll-padding-top: calc(var(--tnx-header-height) + 20px); }
body { min-height: 100vh; }
button, .button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .button { min-height: 42px; }
:focus-visible { outline: 3px solid rgba(34, 98, 220, .32); outline-offset: 3px; }

.tnx-skip-link {
    position: fixed; left: 16px; top: -70px; z-index: 5000;
    padding: 10px 14px; border-radius: 10px; background: #15171a; color: #fff;
    text-decoration: none; transition: top .15s ease;
}
.tnx-skip-link:focus { top: 12px; }

/* Header and navigation */
.tnx-app-header {
    position: sticky; top: 0; z-index: 800;
    min-height: var(--tnx-header-height);
    background: rgba(255,255,255,.92); border-bottom: 1px solid var(--tnx-line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tnx-header-inner {
    width: min(calc(100% - 40px), 1180px); min-height: var(--tnx-header-height);
    margin: 0 auto; display: flex; align-items: center; gap: 32px;
}
.tnx-app-header .tnx-brand { margin: 0; position: static; }
.tnx-primary-nav {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 0; border: 0; background: transparent;
}
.tnx-primary-nav a {
    min-height: 42px; padding: 10px 13px; display: inline-flex; align-items: center;
    border-radius: 10px; color: #535a64; font-weight: 650; text-decoration: none;
}
.tnx-primary-nav a:hover { background: #f2f4f6; color: var(--tnx-ink); opacity: 1; }
.tnx-primary-nav a.is-active { background: #eef0f2; color: var(--tnx-ink); }
.tnx-primary-nav .tnx-nav-create { background: var(--tnx-ink); color: #fff; padding-inline: 16px; }
.tnx-primary-nav .tnx-nav-create:hover, .tnx-primary-nav .tnx-nav-create.is-active { background: #2a2d31; color: #fff; }
.tnx-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tnx-group-pill {
    display: inline-flex; align-items: center; gap: 8px; max-width: 190px;
    padding: 8px 10px; border-radius: 10px; color: #5d646e; font-size: 13px;
    font-weight: 650; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tnx-group-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--tnx-green); flex: 0 0 auto; }
.tnx-group-pill:hover { background: #f2f4f6; color: var(--tnx-ink); }

.tnx-app-header .tn-account-menu { position: relative; top: auto; right: auto; z-index: 20; }
.tnx-app-header .tn-account-menu summary { box-shadow: none; min-height: 42px; }
.tnx-app-header .tn-account-dropdown { max-height: min(72vh, 620px); overflow-y: auto; width: 250px; }
.tnx-menu-user { display: flex; flex-direction: column; padding: 10px 11px 8px; }
.tnx-menu-user strong { font-size: 14px; }
.tnx-menu-user span { color: var(--tnx-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tnx-public-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; border: 0; background: transparent; min-height: 0; }
.tnx-public-nav a { text-decoration: none; font-weight: 650; }
.tnx-public-nav > a:not(.button) { color: #5f6670; padding: 10px; }

.tnx-mobile-nav { display: none; }

/* Global page rhythm */
main.tnx-page {
    width: min(calc(100% - 40px), 1180px); margin: 0 auto;
    padding: 22px 0 64px;
}
.tnx-playmoney-note {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: fit-content; margin: 0 auto 24px; color: #7a5a1d; font-size: 11px;
}
.tnx-playmoney-note strong { font-size: 10px; text-transform: uppercase; letter-spacing: .055em; }
.tnx-playmoney-note span::before { content: "·"; margin-right: 7px; }
.tnx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
    color: #69717b; font-size: 11px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase;
}
.tnx-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--tnx-green); }
.tnx-page-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 10px 0 28px;
}
.tnx-page-head h1 { margin-bottom: 7px; }
.tnx-page-head p { color: var(--tnx-muted); margin: 0; max-width: 610px; }
.tnx-section-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.tnx-section-bar h2 { margin: 0; font-size: 23px; }
.tnx-section-bar .tnx-eyebrow { margin-bottom: 5px; }
.tnx-section-bar > a { color: #5e6570; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tnx-section-bar > a:hover { color: var(--tnx-ink); }

/* Landing */
.tnx-public main.tnx-page-main-index { width: 100%; max-width: none; padding: 0; overflow: hidden; }
.tnx-landing-hero {
    width: min(calc(100% - 40px), 1180px); margin: 0 auto; padding: 84px 0 78px;
    display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr); gap: 88px; align-items: center;
}
.tnx-landing-copy h1 { margin: 10px 0 22px; font-size: clamp(45px, 6vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.tnx-landing-copy h1 em { color: #777f89; font-style: normal; }
.tnx-landing-lead { max-width: 620px; color: #5f6670; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.tnx-landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tnx-button-large { min-height: 50px; padding: 14px 20px; border-radius: 12px; }
.tnx-microcopy { margin: 14px 0 0; color: #838a93; font-size: 12px; }

.tnx-product-preview {
    position: relative; padding: 16px; border: 1px solid #dfe3e7; border-radius: 28px;
    background: linear-gradient(145deg,#f7f8fa,#eceff2); box-shadow: 0 32px 80px rgba(22,27,35,.16);
    transform: rotate(1deg);
}
.tnx-product-preview::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(circle,rgba(19,122,75,.13),transparent 66%); }
.tnx-preview-topbar { display: flex; justify-content: space-between; padding: 6px 8px 16px; color: #68707b; font-size: 12px; }
.tnx-preview-topbar strong { color: var(--tnx-ink); }
.tnx-preview-card { padding: 24px; border: 1px solid #e1e4e8; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(22,27,35,.08); }
.tnx-preview-meta { display: flex; justify-content: space-between; align-items: center; color: #7a818a; font-size: 11px; }
.tnx-preview-card h2 { margin: 18px 0 5px; font-size: 24px; }
.tnx-preview-card > p { color: #747b85; font-size: 13px; }
.tnx-preview-odds { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 12px 14px; border: 1px solid #e7e9ed; border-radius: 11px; }
.tnx-preview-odds strong { font-size: 17px; }
.tnx-preview-tip { margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: #eff7f2; color: #37624c; font-size: 12px; }
.tnx-preview-rank { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 13px 17px; border-radius: 15px; background: #1a1c1f; color: #fff; }
.tnx-preview-rank span { color: #c7cbd0; font-size: 12px; }
.tnx-preview-rank strong { font-size: 21px; }

.tnx-landing-trust { padding: 21px max(20px,calc((100vw - 1180px)/2)); display: flex; justify-content: space-between; gap: 20px; border-block: 1px solid #e6e8eb; color: #6a717b; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .045em; }
.tnx-landing-section { width: min(calc(100% - 40px),1180px); margin: 0 auto; padding: 96px 0; }
.tnx-section-heading { max-width: 660px; margin-bottom: 40px; }
.tnx-section-heading h2, .tnx-feature-split h2, .tnx-final-cta h2 { margin: 6px 0 14px; font-size: clamp(31px,4vw,46px); letter-spacing: -.045em; }
.tnx-section-heading p, .tnx-feature-split > div > p { color: var(--tnx-muted); font-size: 17px; }
.tnx-how-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.tnx-how-grid article { min-height: 220px; padding: 24px; border: 1px solid var(--tnx-line); border-radius: 18px; background: #fff; }
.tnx-how-grid article > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #17191c; color: #fff; font-weight: 800; }
.tnx-how-grid h3 { margin: 38px 0 8px; }
.tnx-how-grid p { color: var(--tnx-muted); font-size: 14px; }
.tnx-feature-split { padding: 86px max(20px,calc((100vw - 1180px)/2)); display: grid; grid-template-columns: 1.08fr .92fr; gap: 90px; align-items: center; background: #17191c; color: #fff; }
.tnx-feature-split h2 { color: #fff; }
.tnx-feature-split > div > p { color: #b9bec5; }
.tnx-feature-split ul { margin: 0; padding: 0; list-style: none; }
.tnx-feature-split li { display: flex; flex-direction: column; gap: 3px; padding: 19px 0; border-bottom: 1px solid #33363b; }
.tnx-feature-split li strong { font-size: 16px; }
.tnx-feature-split li span { color: #aeb4bc; font-size: 13px; }
.tnx-final-cta { width: min(calc(100% - 40px),1180px); margin: 90px auto; padding: 38px 42px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 24px; background: #eef1f3; }
.tnx-final-cta h2 { margin-bottom: 0; font-size: clamp(28px,3vw,40px); }

/* Statuses and live indicator */
.tnx-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.tnx-status-open, .tnx-status-live { background: #fff1f0; color: #bd241c; }
.tnx-status-open i, .tnx-status-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--tnx-red); box-shadow: 0 0 0 0 rgba(217,45,32,.45); animation: tnx-pulse 1.5s ease-out infinite; }
.tnx-status-draft { background: #eef0f2; color: #626a74; }
.tnx-status-closed { background: #fff7e6; color: #8b5a05; }
.tnx-status-settled { background: #edf4ff; color: #285ea8; }
.tnx-status-cancelled { background: #fff1f0; color: #a92b23; }
@keyframes tnx-pulse { 70% { box-shadow: 0 0 0 7px rgba(217,45,32,0); } 100% { box-shadow: 0 0 0 0 rgba(217,45,32,0); } }

/* Dashboard */
.tnx-dashboard-head { margin: 12px 0 46px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.tnx-dashboard-head h1 { margin: 2px 0 7px; font-size: clamp(33px,4vw,46px); }
.tnx-dashboard-head p { margin: 0; color: var(--tnx-muted); font-size: 16px; }
.tnx-dashboard-summary { display: flex; align-items: stretch; gap: 10px; }
.tnx-dashboard-summary > div { min-width: 115px; padding: 10px 14px; border-left: 1px solid var(--tnx-line); }
.tnx-dashboard-summary span { display: block; color: #7a818b; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.tnx-dashboard-summary strong { display: block; margin-top: 2px; font-size: 22px; }
.tnx-dashboard-summary .button { align-self: center; }
.tnx-dashboard-section { margin-bottom: 42px; }

.tnx-dashboard-invite {
    position: relative; margin: -18px 0 46px; padding: 22px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    overflow: hidden; border: 1px solid #dce4df; border-radius: 20px;
    background: linear-gradient(120deg,#f0f7f3 0%,#f8faf9 58%,#fff 100%);
    box-shadow: 0 8px 28px rgba(25,75,52,.06);
}
.tnx-dashboard-invite::after {
    content: ""; position: absolute; right: -55px; top: -90px; width: 210px; height: 210px;
    border: 34px solid rgba(19,122,75,.045); border-radius: 50%; pointer-events: none;
}
.tnx-dashboard-invite-copy { min-width: 0; display: flex; align-items: center; gap: 16px; }
.tnx-dashboard-invite-icon {
    width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center;
    border-radius: 15px; background: #173c2b; color: #fff; font-size: 28px; font-weight: 350;
}
.tnx-dashboard-invite .tnx-eyebrow { margin-bottom: 3px; color: #47725d; }
.tnx-dashboard-invite h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.025em; }
.tnx-dashboard-invite p { margin: 0; color: #698073; font-size: 12px; }
.tnx-dashboard-invite-actions { position: relative; z-index: 1; display: flex; align-items: stretch; gap: 8px; }
.tnx-dashboard-code {
    min-width: 142px; padding: 8px 13px; display: flex; flex-direction: column; justify-content: center;
    border: 1px solid #d6e1db; border-radius: 11px; background: rgba(255,255,255,.86);
}
.tnx-dashboard-code span { color: #6e7f76; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tnx-dashboard-code strong { margin-top: 1px; font-size: 19px; letter-spacing: .14em; white-space: nowrap; }
.tnx-copy-code-button, .tnx-invite-link-button { min-height: 48px; align-self: stretch; white-space: nowrap; }
.tnx-copy-code-button { border-color: #cbd8d1; background: #fff; color: #214735; }
.tnx-copy-code-button:hover { border-color: #aebfb6; background: #f9fbfa; }
.tnx-invite-link-button { display: inline-flex; align-items: center; justify-content: center; }

.tnx-live-bets-section .tnx-section-bar { align-items: center; }
.tnx-live-bets-section .tnx-section-bar > div { min-width: 0; }
.tnx-live-bets-section .tnx-section-bar p { margin: 5px 0 0; color: var(--tnx-muted); font-size: 12px; }
.tnx-open-bet-count { margin-left: auto; padding: 6px 9px; border-radius: 999px; background: #fff0ef; color: #b32820; font-size: 10px; font-weight: 850; white-space: nowrap; }
.tnx-bet-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }

/* Bet cards */
.tnx-bet-card { margin: 0; padding: 18px; display: flex; flex-direction: column; min-height: 270px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(20,24,30,.025); }
.tnx-bet-card:hover { border-color: #cfd4da; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,24,30,.075); }
.tnx-bet-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #7b828b; font-size: 10px; }
.tnx-bet-deadline-label { display: none; }
.tnx-bet-card-top time { text-align: right; }
.tnx-bet-card-copy { margin: 18px 0 12px; }
.tnx-bet-people { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 0 7px; }
.tnx-bet-people > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: #28323a; font-size: 11px; }
.tnx-bet-people i { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #20262d, #4b5661); font-size: 9px; font-style: normal; font-weight: 850; }
.tnx-bet-people strong { overflow-wrap: anywhere; }
.tnx-bet-people > small { color: #6e7780; font-weight: 750; }
.tnx-measured-result { display: grid; min-width: 132px; gap: 4px; }
.tnx-measured-result > span { color: #5d6670; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tnx-management-content form > small { flex-basis: 100%; max-width: 520px; color: #667078; line-height: 1.35; }

@media (max-width: 680px) {
    .tnx-management-content .inline-form { display: grid; grid-template-columns: 1fr; width: 100%; }
    .tnx-management-content .inline-form > * { width: 100%; max-width: none; }
}
.tnx-bet-card-copy h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.3; }
.tnx-bet-card-copy h3 a { color: inherit; text-decoration: none; }
.tnx-bet-card-copy h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tnx-bet-card-copy p { margin: 0; color: #7a818a; font-size: 11px; }
.tnx-bet-card-copy p span { color: #b2b6bc; }
.tnx-card-odds { display: grid; gap: 6px; margin-top: auto; }
.tnx-card-odd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 9px; background: #f7f8f9; font-size: 12px; }
.tnx-card-odd strong { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; }
.tnx-card-odd strong small { color: #8b9199; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.tnx-card-option-button {
    width: 100%; min-height: 42px; margin: 0; border: 1px solid #e5e8eb;
    color: inherit; font: inherit; text-align: left; box-shadow: none; cursor: pointer;
}
.tnx-card-option-button:hover { border-color: #b9c1c8; background: #fff; transform: none; box-shadow: 0 3px 10px rgba(20,24,30,.055); }
.tnx-card-option-button.is-selected { border-color: #17191c; background: #eef1f2; box-shadow: inset 0 0 0 1px #17191c; }
.tnx-card-option-button.is-selected > span::after { content: "Im Wettschein"; margin-left: 7px; color: #59616a; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.ready-live-market { min-width: 190px; display: grid; gap: 7px; }
.ready-live-market .tnx-card-odds { min-width: 180px; }
.ready-live-market .tnx-card-odd { padding: 6px 8px; }
.tnx-more-options { color: #7b828b; font-size: 10px; padding: 3px 2px; }
.tnx-card-own-tip { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 9px 10px; border-radius: 9px; background: #edf7f1; color: #326349; }
.tnx-card-own-tip span { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tnx-card-own-tip strong { font-size: 11px; }
.tnx-card-callout { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #727983; font-size: 10px; font-weight: 700; }
.tnx-card-callout strong, .tnx-card-callout a { display: inline-flex; align-items: center; gap: 8px; color: #202327; font-size: 11px; font-weight: 800; text-decoration: none; }
.tnx-card-callout i { font-size: 15px; font-style: normal; }
.tnx-card-unavailable { margin-top: 12px; padding: 10px 11px; display: flex; flex-direction: column; gap: 2px; border-radius: 9px; background: #f2f4f5; }
.tnx-card-unavailable strong { color: #4f5760; font-size: 10px; }
.tnx-card-unavailable span { color: #747b84; font-size: 9px; }
.tnx-bet-card.is-dashboard-bet {
    position: relative; min-height: 322px; padding: 21px; overflow: hidden;
    border-color: #dfe3e7; border-radius: 18px; background: linear-gradient(160deg,#fff 0%,#fff 72%,#fafbfb 100%);
}
.tnx-bet-card.is-dashboard-bet::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #d92d20;
}
.tnx-bet-card.is-dashboard-bet .tnx-bet-card-top { justify-content: flex-start; }
.tnx-bet-card.is-dashboard-bet .tnx-bet-deadline-label { display: inline; margin-left: auto; color: #9a9fa6; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.tnx-bet-card.is-dashboard-bet .tnx-bet-card-top time { color: #555d67; font-weight: 750; }
.tnx-bet-card.is-dashboard-bet .tnx-bet-card-copy { margin: 23px 0 17px; }
.tnx-bet-card.is-dashboard-bet .tnx-bet-card-copy h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: -.022em; }
.tnx-bet-card.is-dashboard-bet .tnx-bet-card-copy p { font-size: 10px; }
.tnx-bet-card.is-dashboard-bet .tnx-card-odds { gap: 7px; }
.tnx-bet-card.is-dashboard-bet .tnx-card-odd { min-height: 40px; padding: 9px 11px; border: 1px solid #eceff1; background: #f8f9fa; }
.tnx-bet-card.is-dashboard-bet .tnx-card-odd > span { color: #454b53; font-weight: 650; }
.tnx-bet-card.is-dashboard-bet .tnx-card-odd strong { min-width: 67px; justify-content: flex-end; font-size: 15px; }
.tnx-bet-card.is-dashboard-bet .tnx-card-callout { margin: 15px -21px -21px; padding: 13px 21px; border-top: 1px solid #eceff1; background: rgba(248,249,250,.72); }
.tnx-bet-card.is-dashboard-bet .tnx-card-own-tip { margin-top: 15px; padding: 11px 12px; }
.tnx-bet-card.is-compact { min-height: 0; padding: 15px 17px; }
.tnx-bet-card.is-compact .tnx-bet-card-copy { margin: 12px 0 0; }
.tnx-bet-card.is-compact .tnx-bet-card-copy h3 { font-size: 15px; }
.tnx-bet-card.is-compact .tnx-bet-card-copy p { display: none; }

.tnx-dashboard-columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; }
.tnx-ranking-card { margin: 0; padding: 8px; }
.tnx-ranking-row { display: grid; grid-template-columns: 28px 34px 1fr auto; gap: 10px; align-items: center; min-height: 51px; padding: 7px 9px; border-radius: 10px; }
.tnx-ranking-row + .tnx-ranking-row { border-top: 1px solid #eef0f2; }
.tnx-ranking-row.is-current { background: #eff6f2; border-top-color: transparent; }
.tnx-rank-number { color: #7c838c; text-align: center; font-size: 12px; font-weight: 750; }
.tnx-rank-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #eef0f2; font-size: 11px; font-weight: 850; }
.tnx-ranking-row.is-current .tnx-rank-avatar { background: #183e2d; color: #fff; }
.tnx-rank-name { display: flex; align-items: center; gap: 7px; font-weight: 650; }
.tnx-rank-name small { margin: 0; padding: 2px 5px; border-radius: 5px; background: #dceee4; color: #326249; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.tnx-ranking-row > strong { font-size: 13px; }
.tnx-compact-list { display: grid; gap: 8px; }
.tnx-small-empty { min-height: 90px; display: grid; place-items: center; }
.tnx-small-empty p { margin: 0; color: var(--tnx-muted); }
.tnx-quick-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding-top: 4px; }
.tnx-quick-links a { display: flex; flex-direction: column; gap: 2px; padding: 15px 17px; border: 1px solid var(--tnx-line); border-radius: 13px; background: #fff; text-decoration: none; }
.tnx-quick-links span { color: #7c838d; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.tnx-quick-links strong { font-size: 13px; }

.tnx-empty-state { min-height: 250px; padding: 42px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #d5d9de; border-radius: 18px; background: rgba(255,255,255,.55); text-align: center; }
.tnx-empty-state > span { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 14px; background: #eef0f2; font-size: 22px; }
.tnx-empty-state h3 { margin: 0 0 5px; }
.tnx-empty-state p { color: var(--tnx-muted); }

/* Bets list filters */
.tnx-filter-tabs { min-height: 0; margin: 0 0 22px; display: flex; gap: 5px; border: 0; background: transparent; overflow-x: auto; scrollbar-width: none; }
.tnx-filter-tabs::-webkit-scrollbar { display: none; }
.tnx-filter-tabs a { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; color: #68707a; font-size: 12px; font-weight: 700; text-decoration: none; }
.tnx-filter-tabs a:hover { background: #edf0f2; }
.tnx-filter-tabs a.is-active { background: #17191c; color: #fff; }

/* Ranking and statistics */
.tnx-stats-grid { margin-bottom: 34px; }
.tnx-stats-grid .card { margin: 0; box-shadow: none; }
.tnx-stats-grid .kpi strong { font-size: 30px; }
.tnx-stats-layout { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); gap: 28px; align-items: start; }
.tnx-series-results { margin: 0; }
.tnx-series-results .series:first-child { padding-top: 0; }
.tnx-series-results .series:last-child { border-bottom: 0; padding-bottom: 0; }

/* Bet detail */
.tnx-back-link { display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 24px; color: #69717b; font-size: 13px; font-weight: 700; text-decoration: none; }
.tnx-bet-hero { margin-bottom: 28px; }
.tnx-bet-hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #777f89; font-size: 11px; }
.tnx-bet-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tnx-bet-title-row h1 { max-width: 850px; margin: 2px 0 8px; font-size: clamp(32px,4.4vw,50px); }
.tnx-bet-title-row p { max-width: 750px; margin: 0; color: var(--tnx-muted); font-size: 16px; }
.tnx-bet-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 16px; align-items: start; }
.tnx-tip-card, .tnx-bet-info { margin: 0; }
.tnx-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.tnx-card-heading h2, .tnx-bet-info h2 { margin: 0; }
.tnx-points-chip { padding: 7px 10px; border-radius: 9px; background: #f3f5f6; text-align: right; }
.tnx-points-chip span { display: block; color: #7c838c; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.tnx-points-chip strong { font-size: 13px; }
.tnx-tip-form fieldset { margin: 0; padding: 0; border: 0; }
.tnx-tip-form legend, .tnx-stake-label { margin: 0 0 8px; font-size: 12px; font-weight: 750; }
.tnx-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.tnx-choice-grid .choice { position: relative; min-height: 54px; margin: 0; padding: 12px; cursor: pointer; }
.tnx-choice-grid .choice:has(input:checked) { border-color: #17191c; box-shadow: inset 0 0 0 1px #17191c; background: #f7f8f8; }
.tnx-choice-grid .choice input { accent-color: #17191c; }
.tnx-choice-grid .choice strong { font-size: 16px; }
.tnx-stake-label { display: block; margin-top: 22px; }
.tnx-stake-row { display: grid; grid-template-columns: minmax(180px,1fr) auto; gap: 9px; align-items: stretch; }
.tnx-stake-input { position: relative; }
.tnx-stake-input input { height: 100%; min-height: 48px; margin: 0; padding-right: 70px; }
.tnx-stake-input span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #7b828c; font-size: 11px; }
.tnx-stake-row .primary { min-height: 48px; }
.tnx-stake-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tnx-stake-shortcuts button { min-height: 30px; padding: 5px 9px; border: 1px solid #e0e4e8; background: #fff; color: #68707a; font-size: 10px; }
.tnx-form-help { margin: 13px 0 0; color: #7b828b; font-size: 10px; }
.tnx-saved-tip { padding: 18px; border-radius: 14px; background: #eff7f2; }
.tnx-saved-tip > div > span { display: block; color: #56806a; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.tnx-saved-tip > div > strong { display: block; margin-top: 3px; font-size: 22px; }
.tnx-saved-tip dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0 12px; }
.tnx-saved-tip dl div { padding: 10px; border-radius: 9px; background: rgba(255,255,255,.7); }
.tnx-saved-tip dt { color: #62806e; font-size: 9px; }
.tnx-saved-tip dd { margin: 2px 0 0; font-size: 12px; font-weight: 800; }
.tnx-saved-tip p { margin: 0; color: #5d7868; font-size: 10px; }
.tnx-closed-note, .bet-view-only-notice { display: flex; flex-direction: column; gap: 4px; padding: 15px; border-radius: 12px; background: #f3f5f6; }
.tnx-closed-note span, .bet-view-only-notice span { color: #717882; font-size: 12px; }
.tnx-bet-info dl { margin: 18px 0 0; }
.tnx-bet-info dl div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #edf0f2; }
.tnx-bet-info dt { color: #777e88; font-size: 11px; }
.tnx-bet-info dd { margin: 0; text-align: right; font-size: 11px; font-weight: 750; }
.tnx-management-card { margin-top: 16px; padding: 0; overflow: visible; }
.tnx-management-card > summary { min-height: 68px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; }
.tnx-management-card > summary::-webkit-details-marker { display: none; }
.tnx-management-card > summary span:first-child { display: flex; flex-direction: column; }
.tnx-management-card > summary small { margin: 2px 0 0; }
.tnx-management-content { padding: 0 20px 20px; border-top: 1px solid #edf0f2; }
.tnx-management-content > p { margin: 18px 0; color: #6e7580; font-size: 12px; }
.tnx-danger-zone { margin-top: 20px; padding-top: 18px; border-top: 1px solid #eceef1; }
.tnx-danger-zone h3 { font-size: 13px; }

/* Dynamic odds: the panel only belongs on detail pages. */
.tnx-bet-card .tipnix-live-odds-v2 { display: none !important; }
.tnx-tip-card .tipnix-live-odds-v2 { margin-top: 20px; background: #fafbfb; }
.tipnix-live-odds-v2-updated { display: block; margin-top: 1px; color: #7d848d; font-size: 9px; }

/* Public authentication screens */
.tnx-public .tnx-page-main-login, .tnx-public .tnx-page-main-register { min-height: calc(100vh - 210px); display: grid; align-items: center; }
.tnx-public .narrow.card { width: min(100%,520px); margin: 36px auto; }

@media (max-width: 980px) {
    .tnx-header-inner { gap: 18px; }
    .tnx-group-pill { display: none; }
    .tnx-primary-nav a { padding-inline: 10px; }
    .tnx-landing-hero { gap: 44px; grid-template-columns: 1fr 1fr; }
    .tnx-how-grid { grid-template-columns: repeat(2,1fr); }
    .tnx-dashboard-invite { align-items: flex-start; flex-direction: column; gap: 17px; }
    .tnx-dashboard-invite-actions { width: 100%; }
    .tnx-dashboard-code { flex: 1; }
    .tnx-bet-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tnx-dashboard-columns { grid-template-columns: 1fr; gap: 0; }
    .tnx-stats-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    :root { --tnx-header-height: 62px; }
    .tnx-header-inner { width: min(calc(100% - 24px),1180px); }
    .tnx-brand-mark { width: 30px; height: 30px; }
    .tnx-brand-name { font-size: 17px; }
    .tnx-primary-nav { display: none; }
    .tnx-header-actions { margin-left: auto; }
    .tnx-app-header .tn-account-name { display: none; }
    .tnx-app-header .tn-account-menu summary { padding: 5px 8px; }
    .tnx-public-nav > a:first-child { display: none; }
    .tnx-public-nav { gap: 4px; }
    .tnx-public-nav > a:not(.button) { font-size: 12px; }
    .tnx-public-nav .button { min-height: 38px; padding: 8px 11px; font-size: 11px; }

    main.tnx-page { width: min(calc(100% - 24px),1180px); padding-top: 14px; padding-bottom: 108px; }
    .tnx-playmoney-note { margin-bottom: 18px; font-size: 9px; }
    .tnx-playmoney-note strong { font-size: 8px; }
    .tnx-mobile-nav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 850;
        min-height: calc(66px + env(safe-area-inset-bottom)); padding: 6px 7px env(safe-area-inset-bottom);
        display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid #dfe3e7;
        background: rgba(255,255,255,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    }
    .tnx-mobile-nav a { min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; color: #767d86; font-size: 9px; font-weight: 750; text-decoration: none; }
    .tnx-mobile-nav a span { height: 21px; display: flex; align-items: center; font-size: 20px; line-height: 1; letter-spacing: -3px; }
    .tnx-mobile-nav a.is-active { color: #17191c; background: #f2f4f5; }
    .tnx-mobile-nav .tnx-mobile-create span { width: 29px; height: 29px; justify-content: center; margin-top: -8px; border-radius: 10px; background: #17191c; color: #fff; font-size: 23px; letter-spacing: 0; }
    .tnx-authenticated .legal-footer { padding-bottom: 80px; }

    .tnx-landing-hero { width: min(calc(100% - 24px),1180px); padding: 54px 0 48px; grid-template-columns: 1fr; gap: 42px; }
    .tnx-landing-copy h1 { font-size: clamp(40px,13vw,58px); }
    .tnx-landing-lead { font-size: 17px; }
    .tnx-landing-actions .button { flex: 1; text-align: center; }
    .tnx-product-preview { width: min(100%,500px); margin: 0 auto; transform: none; }
    .tnx-landing-trust { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
    .tnx-landing-section { width: min(calc(100% - 24px),1180px); padding: 68px 0; }
    .tnx-feature-split { grid-template-columns: 1fr; gap: 38px; padding-block: 68px; }
    .tnx-final-cta { width: min(calc(100% - 24px),1180px); margin: 64px auto; padding: 28px; flex-direction: column; align-items: flex-start; }

    .tnx-dashboard-head, .tnx-page-head { margin-top: 4px; flex-direction: column; align-items: stretch; }
    .tnx-dashboard-head { gap: 20px; margin-bottom: 36px; }
    .tnx-dashboard-summary { display: grid; grid-template-columns: 1fr 1fr; }
    .tnx-dashboard-summary > div { min-width: 0; border-left: 0; border: 1px solid var(--tnx-line); border-radius: 11px; }
    .tnx-dashboard-summary .button { grid-column: 1/-1; text-align: center; }
    .tnx-section-bar { align-items: center; }
    .tnx-section-bar h2 { font-size: 21px; }
    .tnx-section-bar > a { font-size: 11px; }
    .tnx-bet-grid { grid-template-columns: 1fr; }
    .tnx-bet-card { min-height: 250px; }
    .tnx-dashboard-invite { margin: -12px 0 36px; padding: 18px; }
    .tnx-dashboard-invite-actions { display: grid; grid-template-columns: 1fr auto; }
    .tnx-dashboard-code { min-width: 0; }
    .tnx-invite-link-button { grid-column: 1/-1; }
    .tnx-live-bets-section .tnx-section-bar { display: grid; grid-template-columns: 1fr auto; align-items: end; }
    .tnx-live-bets-section .tnx-section-bar > a { grid-column: 1/-1; margin-top: 3px; }
    .tnx-bet-card.is-dashboard-bet { min-height: 300px; padding: 18px; }
    .tnx-bet-card.is-dashboard-bet .tnx-card-callout { margin: 15px -18px -18px; padding: 13px 18px; }
    .tnx-quick-links { grid-template-columns: 1fr; }
    .tnx-filter-tabs { margin-right: -12px; padding-right: 12px; }
    .tnx-stats-grid { grid-template-columns: repeat(2,1fr); }

    .tnx-bet-title-row { align-items: flex-start; flex-direction: column; }
    .tnx-bet-title-row h1 { font-size: 34px; }
    .tnx-bet-layout { grid-template-columns: 1fr; }
    .tnx-tip-card { order: 1; }
    .tnx-bet-info { order: 2; }
    .tnx-choice-grid { grid-template-columns: 1fr; }
    .tnx-stake-row { grid-template-columns: 1fr; }
    .tnx-saved-tip dl { grid-template-columns: 1fr; }
    .tnx-management-content .inline-form { align-items: stretch; flex-direction: column; }
    .tnx-management-content .inline-form select { width: 100%; }
}

@media (max-width: 520px) {
    .tnx-how-grid { grid-template-columns: 1fr; }
    .tnx-how-grid article { min-height: 190px; }
    .tnx-preview-card { padding: 19px; }
    .tnx-card-heading { align-items: stretch; flex-direction: column; }
    .tnx-points-chip { align-self: flex-start; text-align: left; }
    .tnx-dashboard-invite-copy { align-items: flex-start; }
    .tnx-dashboard-invite-icon { width: 40px; height: 40px; border-radius: 12px; }
    .tnx-dashboard-invite h2 { font-size: 16px; }
    .tnx-dashboard-invite-actions { grid-template-columns: 1fr; }
    .tnx-copy-code-button, .tnx-invite-link-button { grid-column: 1; width: 100%; }
    .tnx-dashboard-code { min-height: 58px; }
    .tnx-dashboard-code strong { font-size: 18px; }
    .tnx-bet-card.is-dashboard-bet .tnx-bet-deadline-label { display: none; }
    .tnx-bet-card.is-dashboard-bet .tnx-bet-card-top time { margin-left: auto; }
}

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