:root {
    --app-height: 100dvh;
    --topbar-height: 78px;
    --bottom-nav-height: 72px;
    --navy: #111a2e;
    --navy-soft: #526078;
    --green: #08b44f;
    --green-dark: #049643;
    --green-soft: #e8f9ef;
    --green-pale: #f3fcf7;
    --red: #ef4444;
    --red-soft: #fff0f0;
    --surface: #ffffff;
    --canvas: #f8fafc;
    --line: #e6ebf1;
    --line-soft: #eef2f6;
    --muted: #7d889d;
    --shadow: 0 8px 24px rgba(17, 26, 46, 0.06);
    --shadow-soft: 0 3px 12px rgba(17, 26, 46, 0.045);
}

html.theme-dark {
    color-scheme: dark;
    --navy: #edf5f1;
    --navy-soft: #aebdcc;
    --green: #25cf70;
    --green-dark: #32dc7c;
    --green-soft: #123725;
    --green-pale: #102c20;
    --red-soft: #3a1d24;
    --surface: #111e2b;
    --canvas: #0b1420;
    --line: #304153;
    --line-soft: #263647;
    --muted: #9aabbd;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    --shadow-soft: 0 3px 12px rgba(0, 0, 0, 0.18);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #edf1f6;
    color: var(--navy);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-synthesis: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

.app-shell {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: var(--app-height);
    margin: 0 auto;
    overflow: hidden;
    background: var(--canvas);
    box-shadow: 0 0 34px rgba(17, 26, 46, 0.12);
}

.topbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
    padding: max(13px, env(safe-area-inset-top)) 20px 8px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(230, 235, 241, 0.72);
}

.brand {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -1.7px;
}

.brand-match {
    color: var(--navy);
}

.brand-iq,
.brand-dot {
    color: var(--green);
}

.brand-dot {
    display: inline-block;
    margin-left: 3px;
    transform: translateY(-2px);
    font-size: 20px;
}

.circle-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.circle-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--navy);
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-scroll {
    height: calc(var(--app-height) - var(--topbar-height) - var(--bottom-nav-height));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    background:
        radial-gradient(circle at 90% 0%, rgba(8, 180, 79, 0.04), transparent 25%),
        var(--canvas);
}

.page-scroll::-webkit-scrollbar,
.date-strip::-webkit-scrollbar,
.top-analysis-grid::-webkit-scrollbar {
    display: none;
}

.page {
    min-height: 100%;
    padding: 20px 16px 28px;
}

.page-home {
    padding-top: 14px;
}

.bottom-nav {
    position: absolute;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: var(--bottom-nav-height);
    padding: 7px 4px max(7px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.985);
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 22px rgba(17, 26, 46, 0.04);
}

.nav-item {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #637087;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 650;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item.is-active {
    color: var(--green);
}

.nav-item.is-active svg {
    stroke-width: 2.2;
}

.toast {
    position: absolute;
    z-index: 100;
    bottom: 86px;
    left: 50%;
    max-width: calc(100% - 36px);
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(17, 26, 46, 0.94);
    color: #fff;
    box-shadow: 0 9px 26px rgba(17, 26, 46, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: 0.22s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 650;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cookie-banner {
    position: fixed;
    z-index: 1000;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: none;
    max-width: 640px;
    margin: 0 auto;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(17, 26, 46, 0.22);
}

.cookie-banner.is-visible {
    display: grid;
    gap: 14px;
}

.cookie-banner p {
    margin: 0;
    color: var(--navy-soft);
    font-size: 12px;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--green-dark);
    font-weight: 750;
}

.cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cookie-actions button {
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 780;
}

.cookie-actions button:last-child {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.hero-card {
    position: relative;
    min-height: 216px;
    margin-bottom: 22px;
    padding: 31px 23px 24px;
    overflow: hidden;
    border: 1px solid #dcefe4;
    border-radius: 26px;
    background:
        linear-gradient(132deg, rgba(250, 255, 252, 0.98), rgba(231, 249, 239, 0.97)),
        #effaf4;
    box-shadow: var(--shadow);
}

.hero-card::before {
    position: absolute;
    top: -70px;
    right: -35px;
    width: 235px;
    height: 235px;
    border: 1px solid rgba(8, 180, 79, 0.09);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    content: "";
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 260px;
}

.hero-title {
    margin: 0;
    font-size: 33px;
    line-height: 1.04;
    font-weight: 860;
    letter-spacing: -1.25px;
}

.hero-title span {
    display: block;
    margin-top: 3px;
    color: var(--green);
}

.hero-description {
    max-width: 245px;
    margin: 16px 0 18px;
    color: #4f5a70;
    font-size: 13px;
    line-height: 1.46;
}

.primary-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0abd57, #05a648);
    box-shadow: 0 8px 18px rgba(8, 180, 79, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
}

.primary-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-ball {
    position: absolute;
    right: -39px;
    bottom: -46px;
    width: 205px;
    height: 205px;
    opacity: 0.52;
}

.hero-ball circle,
.hero-ball path,
.hero-ball polygon {
    fill: rgba(8, 180, 79, 0.035);
    stroke: rgba(8, 180, 79, 0.14);
    stroke-width: 1.3;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 5px 12px;
}

.section-header h2 {
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 820;
    letter-spacing: -0.35px;
}

.text-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.text-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.compact-match-list,
.match-list,
.analysis-list,
.result-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.compact-match-list {
    margin-bottom: 24px;
}

.compact-match {
    appearance: none;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 54px 17px;
    align-items: center;
    width: 100%;
    min-height: 78px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    text-align: left;
    cursor: pointer;
}

.compact-time strong,
.match-time strong {
    display: block;
    font-size: 15px;
    line-height: 1;
    font-weight: 820;
}

.compact-time span,
.match-time span {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    color: var(--navy-soft);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10.5px;
    line-height: 1.2;
}

.compact-teams,
.match-teams {
    min-width: 0;
}

.team-row {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.team-row + .team-row {
    margin-top: 7px;
}

.team-name {
    min-width: 0;
    overflow: hidden;
    color: var(--navy);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13.5px;
    font-weight: 720;
}

.team-logo-wrap {
    position: relative;
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
}

.team-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-logo-fallback {
    display: none;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef5f1, #e4efe9);
    color: #587064;
    font-size: 10px;
    font-weight: 850;
}

.confidence-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 37px;
    padding: 0 8px;
    border-radius: 10px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 15px;
    font-weight: 850;
}

.chevron {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #6a7589;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.top-analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(215px, 1fr));
    gap: 10px;
    margin-bottom: 6px;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: none;
}

.top-analysis-card {
    appearance: none;
    min-height: 130px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    text-align: left;
    cursor: pointer;
}

.top-match-line {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 780;
}

.top-match-line .team-logo-wrap {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
}

.top-match-names {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.top-card-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.pick-tag {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 0 8px;
    border-radius: 7px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 9.5px;
    font-weight: 780;
}

.top-pick {
    min-width: 0;
}

.top-pick strong {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 820;
}

.top-score {
    padding-left: 10px;
    border-left: 1px solid var(--line);
    color: var(--green);
    text-align: right;
    font-size: 23px;
    line-height: 1;
    font-weight: 880;
}

.top-score small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 8.5px;
    font-weight: 650;
}

.score-track {
    height: 4px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef2;
}

.score-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), #34cf77);
}

.page-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 2px 3px 19px;
}

.heading-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border-radius: 14px;
    background: var(--green-soft);
    color: var(--green);
}

.heading-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-heading h1,
.results-intro h1,
.more-title {
    margin: 0;
    font-size: 27px;
    line-height: 1.08;
    font-weight: 860;
    letter-spacing: -0.9px;
}

.page-heading p,
.results-intro p {
    margin: 5px 0 0;
    color: var(--navy-soft);
    font-size: 12px;
    line-height: 1.35;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 0.92fr 1.2fr 46px;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-pill,
.filter-search-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 45px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    color: #445168;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 720;
}

.filter-pill svg,
.filter-search-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filter-pill.is-active {
    border-color: var(--green);
    background: linear-gradient(135deg, #0abd57, #05a648);
    box-shadow: 0 7px 17px rgba(8, 180, 79, 0.18);
    color: #fff;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.filter-pill.is-active .live-dot {
    background: #fff;
}

.search-panel {
    display: none;
    margin: 0 0 13px;
}

.search-panel.is-visible {
    display: block;
}

.search-field {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dfe6ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.search-field svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: #7b8799;
    stroke-width: 2;
    stroke-linecap: round;
}

.search-field input {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--navy);
    font-size: 13px;
}

.search-field input::placeholder {
    color: #a0a8b5;
}

.match-card {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 100px 32px;
    align-items: center;
    min-height: 112px;
    padding: 15px 11px 15px 15px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.match-card .team-name {
    font-size: 14px;
}

.match-prediction {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.prediction-label {
    max-width: 100%;
    padding: 6px 8px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--green-dark);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9.5px;
    font-weight: 780;
}

.match-prediction strong {
    padding: 6px 8px;
    border-radius: 9px;
    background: #effbf4;
    color: var(--green);
    font-size: 20px;
    line-height: 1;
    font-weight: 880;
}

.favorite-button {
    appearance: none;
    display: grid;
    width: 32px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #68768b;
    cursor: pointer;
}

.favorite-button svg {
    width: 24px;
    height: 24px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.favorite-button.is-favorite {
    color: #f5b400;
}

.favorite-button.is-favorite svg {
    fill: #ffd95b;
}

.analysis-page-title {
    margin: 2px 3px 18px;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 860;
    letter-spacing: -0.85px;
}

.date-strip {
    display: flex;
    gap: 9px;
    margin: 0 -16px 18px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

@media (hover: hover) and (pointer: fine) {
    .date-strip,
    .date-strip .date-chip {
        cursor: grab;
    }

    .date-strip.is-dragging,
    .date-strip.is-dragging .date-chip {
        cursor: grabbing;
        user-select: none;
    }
}

.date-chip {
    appearance: none;
    width: 63px;
    height: 67px;
    flex: 0 0 63px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: #637087;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.22;
    font-weight: 760;
}

.date-chip span {
    display: block;
}

.date-chip.is-active {
    border-color: var(--green);
    background: linear-gradient(145deg, #0cc45b, #05aa4a);
    box-shadow: 0 7px 18px rgba(8, 180, 79, 0.17);
    color: #fff;
}

.analysis-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.analysis-card-summary {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 96px 56px 20px;
    align-items: center;
    min-height: 96px;
    padding: 13px 13px;
    cursor: pointer;
}

.analysis-card-summary .team-row {
    gap: 7px;
}

.analysis-card-summary .team-row + .team-row {
    margin-top: 6px;
}

.analysis-card-summary .team-name {
    font-size: 12.5px;
}

.strong-pick {
    padding: 8px 7px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0fbf5, #e6f8ee);
    color: var(--green-dark);
    text-align: center;
}

.strong-pick span {
    display: block;
    font-size: 8.5px;
    font-weight: 680;
}

.strong-pick strong {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 850;
}

.analysis-confidence {
    color: var(--green);
    text-align: center;
    font-size: 22px;
    line-height: 1;
    font-weight: 880;
}

.analysis-confidence small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 650;
}

.analysis-toggle {
    display: grid;
    place-items: center;
}

.analysis-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #66738a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.analysis-card.is-open .analysis-toggle svg {
    transform: rotate(180deg);
}

.analysis-details {
    display: none;
    padding: 0 15px 17px;
}

.analysis-card.is-open .analysis-details {
    display: block;
}

.details-divider {
    height: 1px;
    margin-bottom: 15px;
    background: var(--line-soft);
}

.details-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 1px 13px;
    font-size: 12px;
    font-weight: 820;
}

.details-title svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.probability-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

.probability-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 67px;
    padding: 6px 3px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.probability-item span {
    min-height: 25px;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 760;
}

.probability-item strong {
    margin-top: 3px;
    color: #59657b;
    font-size: 15px;
    line-height: 1;
    font-weight: 850;
}

.probability-item.is-best {
    border-color: #55d68c;
    background: var(--green-pale);
}

.probability-item.is-best strong {
    color: var(--green);
}

.analysis-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    color: #7f8a9d;
    font-size: 9px;
    line-height: 1.35;
}

.analysis-note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.results-hero {
    position: relative;
    margin: -20px -16px 20px;
    padding: 26px 19px 20px;
    overflow: hidden;
    background: linear-gradient(150deg, #fff, #f5fcf8);
    border-bottom: 1px solid var(--line-soft);
}

.results-intro {
    position: relative;
    z-index: 2;
    padding: 4px 3px 23px;
}

.results-intro p {
    max-width: 245px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.results-ball {
    position: absolute;
    top: -22px;
    right: -35px;
    width: 175px;
    height: 175px;
    border: 1px solid rgba(8, 180, 79, 0.08);
    border-radius: 50%;
    background: rgba(8, 180, 79, 0.025);
}

.result-stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 8px;
    border: 1px solid #dceee4;
    border-radius: 20px;
    background: rgba(250, 255, 252, 0.88);
    box-shadow: var(--shadow-soft);
}

.stat-item {
    padding: 10px 9px;
    border-right: 1px solid #dfece5;
    border-bottom: 1px solid #dfece5;
    text-align: center;
}

.stat-item:nth-child(2n) {
    border-right: 0;
}

.stat-item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.stat-icon {
    display: grid;
    width: 31px;
    height: 31px;
    margin: 0 auto 7px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
}

.stat-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-item span {
    display: block;
    color: #5f6a7f;
    font-size: 8px;
    line-height: 1.25;
    font-weight: 680;
}

.stat-item strong {
    display: block;
    margin-top: 5px;
    color: var(--green);
    font-size: 23px;
    line-height: 1;
    font-weight: 880;
}

.result-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 76px;
    align-items: center;
    min-height: 112px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.result-score-area {
    min-width: 0;
    text-align: center;
}

.result-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.result-team {
    min-width: 0;
}

.result-team .team-logo-wrap {
    margin: 0 auto 5px;
}

.result-team span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9px;
    font-weight: 760;
}

.score {
    font-size: 25px;
    font-weight: 880;
    letter-spacing: -0.8px;
}

.result-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 7px;
    margin-top: 8px;
}

.result-analysis-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef8f2;
    color: #14864c;
    font-size: 8px;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
}

.result-analysis-badge.is-elite {
    background: #e8f8ee;
    color: #087a3d;
    box-shadow: inset 0 0 0 1px #c7edd6;
}

.result-analysis-badge.is-strong {
    background: #eef8f2;
    color: #14864c;
}

.result-analysis-badge.is-system {
    background: #f1f4f8;
    color: #59677d;
}

.result-pick {
    margin-top: 0;
    color: #6f7b90;
    font-size: 9px;
}

.result-pick strong {
    color: var(--green);
}

.result-status {
    justify-self: end;
    padding: 7px 9px;
    border-radius: 9px;
    background: var(--green-soft);
    color: var(--green-dark);
    text-align: center;
    font-size: 9px;
    font-weight: 780;
}

.result-status.is-wrong {
    background: var(--red-soft);
    color: var(--red);
}

.more-title {
    margin: 3px 4px 22px;
}

.profile-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 117px;
    margin-bottom: 18px;
    padding: 17px;
    border: 1px solid #ccebd8;
    border-radius: 22px;
    background: linear-gradient(135deg, #f2fcf6, #eaf9f0);
    box-shadow: var(--shadow-soft);
}

.avatar {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #087c43, #00472b);
    color: #fff;
    font-size: 27px;
    font-weight: 820;
}

.profile-copy {
    min-width: 0;
}

.profile-copy strong {
    display: block;
    font-size: 18px;
    font-weight: 840;
}

.profile-copy span {
    display: block;
    margin-top: 7px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 720;
}

.plan-badge {
    padding: 9px 12px;
    border: 1px solid #bfe6ce;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 780;
}

.favorites-panel,
.settings-panel {
    margin-bottom: 17px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.favorites-panel .section-header {
    margin: 0 1px 12px;
}

.favorite-mini-list {
    display: flex;
    flex-direction: column;
}

.favorite-mini {
    appearance: none;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 52px 15px;
    align-items: center;
    min-height: 69px;
    width: 100%;
    padding: 8px 4px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.favorite-mini:last-child {
    border-bottom: 0;
}

.favorite-mini .compact-time span {
    max-width: 58px;
}

.favorite-mini .team-row {
    gap: 6px;
}

.favorite-mini .team-row + .team-row {
    margin-top: 4px;
}

.favorite-mini .team-logo-wrap {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
}

.favorite-mini .team-name {
    font-size: 11px;
}

.favorite-mini .confidence-badge {
    min-width: 44px;
    height: 31px;
    font-size: 12px;
}

.settings-panel {
    padding: 4px 16px;
}

.menu-row {
    appearance: none;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
    text-align: left;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.more-menu-page {
    padding-top: 16px;
}

.more-menu-header {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    margin: 0 2px 18px;
}

.more-menu-back {
    appearance: none;
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--navy);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.more-menu-back svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.more-menu-header > div > span {
    display: block;
    margin: 1px 0 4px;
    color: var(--green-dark);
    font-size: 9px;
    font-weight: 840;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.more-menu-header h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.08;
    font-weight: 860;
    letter-spacing: -0.7px;
}

.more-menu-header p {
    margin: 7px 0 0;
    color: var(--navy-soft);
    font-size: 11px;
    line-height: 1.45;
}

.more-menu-panel {
    padding: 2px 16px;
}

.more-menu-group {
    padding: 13px 0 9px;
}

.more-menu-group + .more-menu-group {
    border-top: 1px solid var(--line-soft);
}

.more-menu-group h2 {
    margin: 0 0 3px;
    color: #8893a5;
    font-size: 8px;
    font-weight: 840;
    letter-spacing: 1.25px;
    text-transform: uppercase;
}

.more-menu-rows .menu-row {
    min-height: 58px;
}

.more-menu-panel a.menu-row,
.more-menu-panel a.menu-row:link,
.more-menu-panel a.menu-row:visited,
.more-menu-panel a.menu-row:hover,
.more-menu-panel a.menu-row:active {
    color: var(--navy);
    text-decoration: none;
}

.more-menu-panel a.menu-row span {
    color: inherit;
    text-decoration: none;
}

.menu-row:last-child {
    border-bottom: 0;
}

.menu-icon {
    color: #607087;
}

.menu-icon svg,
.menu-row > svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.menu-row span {
    font-size: 13px;
    font-weight: 720;
}

.menu-row > svg {
    width: 17px;
    height: 17px;
    color: #718097;
}

.menu-row.is-premium .menu-icon,
.menu-row.is-premium span {
    color: var(--green);
}

.status-card,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.empty-icon,
.loading-spinner {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
}

.empty-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.loading-spinner::after {
    width: 21px;
    height: 21px;
    border: 2px solid rgba(8, 180, 79, 0.2);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    content: "";
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state h3,
.status-card h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 820;
}

.empty-state p,
.status-card p {
    max-width: 270px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.retry-button {
    appearance: none;
    margin-top: 15px;
    padding: 9px 14px;
    border: 1px solid #bde6cc;
    border-radius: 10px;
    background: var(--green-pale);
    color: var(--green-dark);
    cursor: pointer;
    font-size: 11px;
    font-weight: 760;
}

.tiny-empty {
    padding: 17px 8px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
}


@media (max-width: 520px) {
    .result-class-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }
    .result-class-card-head {
        gap: 9px;
    }
    .result-class-copy > strong {
        flex-wrap: wrap;
        font-size: 11px;
        gap: 5px;
    }
    .result-class-copy small {
        white-space: normal;
    }
    .result-class-pro {
        padding: 3px 5px;
        font-size: 6px;
    }
    .result-class-metrics {
        width: 100%;
    }
    .result-class-metric {
        padding: 8px 4px;
    }
    .result-class-metric span {
        font-size: 6px;
    }
    .result-class-metric strong {
        font-size: 15px;
    }
    .result-class-rate strong {
        font-size: 13px;
    }
}

@media (max-width: 460px) {
    .result-class-card {
        grid-template-columns: minmax(0, 1fr) 198px;
        gap: 10px;
        padding: 12px;
    }
    .result-class-copy > strong {
        font-size: 11px;
        gap: 4px;
    }
    .result-class-copy small {
        font-size: 7.2px;
    }
    .result-class-pro {
        padding: 3px 4px;
        font-size: 5.8px;
    }
    .result-class-metric {
        min-height: 54px;
        padding: 8px 4px;
    }
    .result-class-metric span {
        font-size: 6.4px;
    }
    .result-class-metric strong {
        font-size: 14px;
    }
    .result-class-rate strong {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .hero-card {
        padding-left: 19px;
    }

    .hero-title {
        font-size: 29px;
    }

    .compact-match {
        grid-template-columns: 64px minmax(0, 1fr) 49px 15px;
        padding-right: 9px;
        padding-left: 10px;
    }

    .match-card {
        grid-template-columns: 65px minmax(0, 1fr) 88px 28px;
        padding-left: 11px;
    }

    .analysis-card-summary {
        grid-template-columns: 58px minmax(0, 1fr) 82px 49px 17px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .probability-grid {
        gap: 5px;
    }

    .probability-item span {
        font-size: 8px;
    }

    .probability-item strong {
        font-size: 13px;
    }
}

@media (min-width: 431px) {
    body {
        padding: 14px 0;
    }

    .app-shell {
        height: calc(var(--app-height) - 28px);
        border-radius: 28px;
    }

    .page-scroll {
        height: calc(var(--app-height) - 28px - var(--topbar-height) - var(--bottom-nav-height));
    }
}

/* iPhone Safari ve Ana Ekran PWA: yalnız orta alan kayar, tarayıcı çubuğu alanı büyütmez. */
@supports (-webkit-touch-callout: none) {
    :root {
        --topbar-height: 58px;
        --bottom-nav-height: 56px;
        --safari-toolbar-bridge: 12px;
    }

    body {
        padding: 0;
    }

    .app-shell {
        width: 100%;
        max-width: none;
        height: calc(var(--app-height) + var(--safari-toolbar-bridge));
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .page-scroll {
        height: calc(var(--app-height) + var(--safari-toolbar-bridge) - var(--topbar-height) - var(--bottom-nav-height));
    }

    .topbar {
        padding: 6px 16px 4px;
    }

    .brand { font-size: 25px; letter-spacing: -1.35px; }
    .brand-dot { margin-left: 2px; font-size: 15px; }
    .circle-button { width: 36px; height: 36px; box-shadow: 0 2px 9px rgba(17, 26, 46, 0.035); }
    .circle-button svg { width: 18px; height: 18px; }
    .page { padding: 14px 14px 20px; }
    .page-home { padding-top: 10px; }
    .hero-card { min-height: 190px; margin-bottom: 16px; padding: 24px 19px 18px; border-radius: 23px; }
    .hero-title { font-size: 29px; }
    .hero-description { margin: 12px 0 14px; font-size: 12px; }
    .bottom-nav {
        align-items: stretch;
        padding: 0 3px;
        box-shadow: 0 -3px 14px rgba(17, 26, 46, 0.035);
    }
    .nav-item {
        height: 100%;
        gap: 1px;
        font-size: 9px;
        transform: translateY(-6px);
    }
    .nav-item svg { width: 19px; height: 19px; }

    @media (display-mode: standalone) {
        :root {
            --topbar-height: calc(58px + env(safe-area-inset-top));
            --bottom-nav-height: calc(56px + env(safe-area-inset-bottom));
            --safari-toolbar-bridge: 0px;
        }

        .topbar {
            padding: env(safe-area-inset-top) 16px 4px;
        }

        .bottom-nav {
            padding: 3px 3px max(4px, env(safe-area-inset-bottom));
        }

        .nav-item {
            height: auto;
            transform: translateY(-4px);
        }
    }
}

/* =========================================================
   MATCHIQ V3 - PREMIUM, KESFET, DETAY VE COKLU DIL
   ========================================================= */

svg {
    pointer-events: none;
}

.home-match-list {
    margin-bottom: 17px;
}

.home-pro-banner {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    min-height: 154px;
    margin: 3px 0 8px;
    padding: 21px 18px;
    overflow: hidden;
    border: 1px solid #c9ebd7;
    border-radius: 23px;
    background:
        radial-gradient(circle at 96% 10%, rgba(8, 180, 79, 0.15), transparent 33%),
        linear-gradient(135deg, #f5fff8, #e9f9ef);
    box-shadow: var(--shadow);
}

.home-pro-banner::after {
    position: absolute;
    right: -26px;
    bottom: -48px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(8, 180, 79, 0.11);
    border-radius: 50%;
    content: "";
}

.home-pro-icon {
    position: relative;
    z-index: 2;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient(145deg, #087b44, #034d2e);
    color: #fff;
    box-shadow: 0 8px 18px rgba(3, 77, 46, 0.18);
}

.home-pro-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-pro-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.home-pro-copy > span {
    color: var(--green);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.home-pro-copy h2 {
    margin: 4px 0 5px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 850;
}

.home-pro-copy p {
    max-width: 245px;
    margin: 0 0 11px;
    color: #5e6b7f;
    font-size: 10.5px;
    line-height: 1.38;
}

.home-pro-copy button,
.premium-detail-lock button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green-dark);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.home-pro-copy button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.updated-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 31px;
    margin: 0 2px 9px;
    color: #8a94a5;
    font-size: 9px;
}

.updated-line button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #647187;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
}

.updated-line svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
}

.date-chip {
    position: relative;
}

.date-chip.is-locked {
    padding-bottom: 12px;
    color: #8791a2;
}

.date-chip.is-locked i {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: grid;
    width: 14px;
    height: 14px;
    place-items: center;
    color: #8b95a6;
}

.date-chip.is-locked i svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.scope-switch {
    display: grid;
    grid-template-columns: 1.02fr 1fr 1.18fr;
    gap: 5px;
    margin-bottom: 9px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.scope-switch button {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 40px;
    padding: 0 5px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #68758a;
    cursor: pointer;
    font-size: 10px;
    font-weight: 780;
}

.scope-switch button.is-active {
    background: linear-gradient(135deg, #0abd57, #05a648);
    box-shadow: 0 6px 14px rgba(8, 180, 79, 0.18);
    color: #fff;
}

.scope-switch svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scope-switch b {
    padding: 3px 5px;
    border-radius: 6px;
    background: #e8f9ef;
    color: var(--green-dark);
    font-size: 7px;
    letter-spacing: 0.35px;
}

.scope-switch button.is-active b {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.match-tools {
    display: grid;
    grid-template-columns: 1fr 1.22fr 46px;
    gap: 8px;
    margin-bottom: 10px;
}

.match-tools button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: #5e6b80;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 740;
}

.match-tools button.is-active {
    border-color: #b7e6ca;
    background: var(--green-soft);
    color: var(--green-dark);
}

.match-tools svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.match-prediction small {
    display: block;
    max-width: 90px;
    overflow: hidden;
    color: #66748a;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 8px;
    font-weight: 700;
}

.explore-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 21px;
    padding: 16px 8px;
    border: 1px solid #d7eee1;
    border-radius: 19px;
    background: linear-gradient(145deg, #f6fff9, #edf9f2);
    box-shadow: var(--shadow-soft);
}

.explore-summary > button {
    appearance: none;
    min-width: 0;
    padding: 0 5px;
    border: 0;
    border-right: 1px solid #dcebe3;
    background: transparent;
    color: inherit;
    text-align: center;
    cursor: pointer;
}

.explore-summary > button:last-child {
    border-right: 0;
}

.explore-summary > button:active {
    transform: scale(.98);
}

.explore-summary strong,
.explore-summary span {
    display: block;
}

.explore-summary strong {
    color: var(--green);
    font-size: 23px;
    line-height: 1;
    font-weight: 880;
}

.explore-summary span {
    margin-top: 6px;
    color: #6d798c;
    font-size: 8.5px;
    font-weight: 700;
}

.league-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
}

.league-card {
    padding: 13px;
    cursor: pointer;
    transition: transform .14s ease, border-color .14s ease;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.league-card:active {
    transform: scale(.992);
}

.league-card-top {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
}

.league-ball {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
}

.league-ball svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.league-card-top strong,
.league-card-top small {
    display: block;
}

.league-card-top strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 820;
}

.league-card-top small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8.5px;
}

.league-card-top button {
    appearance: none;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7b8799;
    cursor: pointer;
}

.league-card-top button.is-followed {
    color: #f3b500;
}

.league-card-top button svg {
    width: 20px;
    height: 20px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
}

.league-card-top button.is-followed svg {
    fill: #ffd75b;
}

.league-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}

.league-metrics span {
    color: #788396;
    text-align: center;
    font-size: 7.5px;
    line-height: 1.2;
}

.league-metrics b {
    display: block;
    margin-top: 4px;
    color: var(--green);
    font-size: 12px;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 22px;
}

.trend-grid article {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d6ebdf;
    border-radius: 17px;
    background: linear-gradient(145deg, #f9fffb, #effaf3);
}

.trend-grid span,
.trend-grid strong,
.trend-grid b {
    display: block;
}

.trend-grid span {
    color: #6f7c90;
    font-size: 8px;
    font-weight: 700;
}

.trend-grid strong {
    margin-top: 7px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
}

.trend-grid b {
    margin-top: 9px;
    color: var(--green);
    font-size: 22px;
}

.featured-team-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.featured-team-list button {
    appearance: none;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    text-align: left;
    cursor: pointer;
}

.featured-team-list button .team-logo-wrap {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
}

.featured-team-list strong,
.featured-team-list small {
    display: block;
}

.featured-team-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11.5px;
}

.featured-team-list small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 8px;
}

.featured-team-list b {
    color: var(--green);
    text-align: right;
    font-size: 17px;
}

.result-range,
.result-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 10px;
}

.result-range button,
.result-filter button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: #68758a;
    cursor: pointer;
    font-size: 9.5px;
    font-weight: 750;
}

.result-range button.is-active,
.result-filter button.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.result-range svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.performance-panel {
    margin: 14px 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.performance-panel h2 {
    margin: 0 0 13px;
    font-size: 13px;
    font-weight: 830;
}

.market-performance {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px 13px;
}

.market-performance > div {
    min-width: 0;
}

.market-performance span,
.market-performance strong {
    display: inline-block;
    font-size: 8.5px;
}

.market-performance span {
    max-width: calc(100% - 35px);
    overflow: hidden;
    color: #66738a;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.market-performance strong {
    float: right;
    color: var(--green);
}

.market-performance i {
    display: block;
    height: 4px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f4;
}

.market-performance i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.weekly-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 6px;
    height: 120px;
}

.weekly-chart > div {
    display: grid;
    grid-template-rows: 82px 14px 12px;
    min-width: 0;
    text-align: center;
}

.weekly-chart > div > span {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    height: 82px;
    border-radius: 7px;
    background: #f2f6f4;
}

.weekly-chart i {
    display: block;
    width: 72%;
    min-height: 3px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(#28cf72, #08a94b);
}

.weekly-chart b,
.weekly-chart small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 6.5px;
}

.weekly-chart b {
    color: #7c8798;
    font-weight: 650;
}

.weekly-chart small {
    color: var(--green);
    font-weight: 780;
}

.plan-badge {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.plan-badge svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.legal-short {
    margin: 16px 7px 4px;
    color: #8a94a5;
    text-align: center;
    font-size: 8px;
    line-height: 1.45;
}

.modal-root {
    position: absolute;
    z-index: 200;
    inset: 0;
    display: none;
}

.modal-root.is-open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 28, 0.48);
    backdrop-filter: blur(2px);
}

.modal-root.suppress-sheet-animation .bottom-sheet {
    animation: none !important;
}

.bottom-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 91%;
    padding: 13px 17px max(21px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 26px 26px 0 0;
    background: #fff;
    box-shadow: 0 -16px 40px rgba(10, 18, 34, 0.18);
    animation: sheet-in 0.24s ease;
    scrollbar-width: none;
}

@keyframes sheet-in {
    from {
        transform: translateY(35px);
        opacity: 0;
    }
}

.sheet-handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #dfe4ea;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.sheet-header span {
    display: block;
    margin-bottom: 3px;
    color: var(--green);
    font-size: 8px;
    font-weight: 750;
}

.sheet-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 860;
}

.sheet-header > button {
    appearance: none;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: #657288;
    cursor: pointer;
}

.sheet-header > button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.detail-match-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 13px 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfcfd;
}

.detail-match-head > div {
    min-width: 0;
    text-align: center;
}

.detail-match-head .team-logo-wrap {
    width: 38px;
    height: 38px;
    margin: 0 auto 6px;
}

.detail-match-head strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
}

.detail-match-head > span {
    text-align: center;
}

.detail-match-head > span b,
.detail-match-head > span small {
    display: block;
}

.detail-match-head > span b {
    font-size: 13px;
}

.detail-match-head > span small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 7.5px;
}

.detail-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0;
}

.detail-actions button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #647187;
    cursor: pointer;
    font-size: 8.5px;
    font-weight: 720;
}

.detail-actions button.is-favorite {
    color: #e2a600;
}

.detail-actions svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.detail-actions button.is-favorite svg {
    fill: #ffd65a;
}

.detail-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 12px;
    padding: 2px 17px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.detail-tabs button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 67px;
    height: 36px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #6c788c;
    cursor: pointer;
    white-space: nowrap;
    font-size: 8.5px;
    font-weight: 740;
}

.detail-tabs button.is-active {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green-dark);
}

.detail-tabs svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.detail-content {
    min-height: 220px;
}

.detail-best {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 10px;
    padding: 13px 14px;
    border: 1px solid #ccebd8;
    border-radius: 16px;
    background: linear-gradient(145deg, #f7fff9, #eaf9f0);
}

.detail-best > span {
    color: var(--green-dark);
    font-size: 8px;
    font-weight: 720;
}

.detail-best > strong {
    grid-column: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 840;
}

.detail-best > b {
    grid-column: 2;
    grid-row: 1 / 3;
    color: var(--green);
    text-align: right;
    font-size: 25px;
}

.detail-best small {
    display: block;
    margin-top: 3px;
    color: #778397;
    font-size: 7px;
    font-weight: 650;
}

.detail-section-title {
    margin: 16px 2px 11px;
    font-size: 12px;
    font-weight: 830;
}

.detail-probability-grid {
    grid-template-columns: repeat(4, 1fr);
}

.detail-probability-grid .probability-item {
    min-height: 61px;
}

.premium-detail-lock {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border: 1px solid #d9eee2;
    border-radius: 18px;
    background: linear-gradient(145deg, #fbfffc, #f0faf4);
    text-align: center;
}

.premium-detail-lock > svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.8;
}

.premium-detail-lock h3 {
    margin: 12px 0 5px;
    font-size: 15px;
}

.premium-detail-lock p {
    max-width: 260px;
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.premium-detail-lock button {
    height: 38px;
    padding: 0 15px;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
}

.season-teams {
    display: grid;
    grid-template-columns: 1fr 35px 1fr;
    align-items: center;
    margin-bottom: 11px;
}

.season-teams > div {
    min-width: 0;
    text-align: center;
}

.season-teams .team-logo-wrap {
    width: 36px;
    height: 36px;
    margin: 0 auto 5px;
}

.season-teams strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9px;
}

.season-teams > span {
    color: var(--muted);
    text-align: center;
    font-size: 8px;
    font-weight: 780;
}

.season-table,
.standings-table,
.history-list,
.form-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.season-table > div {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: center;
    min-height: 37px;
    padding: 0 11px;
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
}

.season-table > div:last-child {
    border-bottom: 0;
}

.season-table strong {
    font-size: 10px;
}

.season-table span {
    color: var(--muted);
    font-size: 8px;
}

.season-table .season-head {
    background: #f7faf8;
}

.history-list > div {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 46px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--line-soft);
}

.history-list > div:last-child {
    border-bottom: 0;
}

.history-list span {
    color: var(--muted);
    font-size: 7px;
}

.history-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 8px;
}

.history-list b {
    color: var(--green);
    text-align: center;
    font-size: 11px;
}

.form-block + .form-block {
    margin-top: 15px;
}

.form-block h3 {
    margin: 0 0 8px 2px;
    font-size: 10px;
}

.form-list > div {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 6px 9px;
    border-bottom: 1px solid var(--line-soft);
}

.form-list > div:last-child {
    border-bottom: 0;
}

.form-marker {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 7px;
    background: #eef2f5;
    color: #657287;
    font-size: 8px;
    font-weight: 850;
}

.form-G {
    background: var(--green-soft);
    color: var(--green-dark);
}

.form-M {
    background: var(--red-soft);
    color: var(--red);
}

.form-list strong,
.form-list small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.form-list strong {
    font-size: 8.5px;
}

.form-list small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7px;
}

.form-list b {
    text-align: right;
    font-size: 10px;
}

.standings-table > div {
    display: grid;
    grid-template-columns: 23px minmax(82px, 1fr) repeat(4, 23px) 32px;
    align-items: center;
    min-height: 39px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line-soft);
    text-align: center;
    font-size: 7px;
}

.standings-table > div:first-child {
    background: #f5faf7;
}

.standings-table > div:last-child {
    border-bottom: 0;
}

.standings-table strong {
    overflow: hidden;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-standings-wrap {
    width: 100%;
}

.detail-standings-tabs {
    margin-top: 0;
}

.detail-full-standings {
    background: var(--surface);
    overflow-x: auto;
}

.detail-full-standings > div {
    position: relative;
    transition: background .18s ease, box-shadow .18s ease;
}

.detail-full-standings .detail-standing-row.is-home-team {
    background: rgba(8, 180, 79, .14);
    box-shadow: inset 3px 0 0 var(--green);
}

.detail-full-standings .detail-standing-row.is-away-team {
    background: rgba(47, 128, 237, .14);
    box-shadow: inset 3px 0 0 #2f80ed;
}

.detail-full-standings .detail-standing-row.is-home-team > b:first-child,
.detail-full-standings .detail-standing-row.is-home-team strong,
.detail-full-standings .detail-standing-row.is-home-team > b:last-child {
    color: var(--green-dark);
    font-weight: 900;
}

.detail-full-standings .detail-standing-row.is-away-team > b:first-child,
.detail-full-standings .detail-standing-row.is-away-team strong,
.detail-full-standings .detail-standing-row.is-away-team > b:last-child {
    color: #2f80ed;
    font-weight: 900;
}

.standing-team-marker {
    display: none;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 999px;
    vertical-align: 1px;
}

.is-home-team .standing-team-marker {
    display: inline-block;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(8, 180, 79, .12);
}

.is-away-team .standing-team-marker {
    display: inline-block;
    background: #2f80ed;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, .12);
}

.detail-standings-loading {
    min-height: 210px;
}

.points-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.points-comparison > div {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 7px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.points-comparison .team-logo-wrap {
    width: 30px;
    height: 30px;
}

.points-comparison strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 8.5px;
}

.points-comparison b {
    color: var(--green);
    text-align: right;
    font-size: 18px;
}

.points-comparison small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 6px;
}

.detail-muted {
    margin: 11px 5px;
    color: var(--muted);
    text-align: center;
    font-size: 8px;
    line-height: 1.4;
}

.premium-sheet,
.lock-sheet {
    padding-right: 23px;
    padding-left: 23px;
    text-align: center;
}

.premium-crown,
.lock-circle {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 2px auto 11px;
    place-items: center;
    border-radius: 21px;
    background: linear-gradient(145deg, #0a8a4a, #035431);
    color: #fff;
    box-shadow: 0 10px 22px rgba(3, 84, 49, 0.2);
}

.lock-circle {
    border-radius: 50%;
    background: var(--green-soft);
    box-shadow: none;
    color: var(--green);
}

.premium-crown svg,
.lock-circle svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.premium-sheet h2,
.lock-sheet h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 880;
}

.premium-sheet > p,
.lock-sheet > p {
    max-width: 310px;
    margin: 8px auto 14px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.45;
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 17px 0;
    text-align: left;
}

.premium-features > div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 35px;
    padding: 8px 10px;
    border: 1px solid #deeee4;
    border-radius: 11px;
    background: #f8fdf9;
}

.premium-features svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
}

.premium-features span {
    font-size: 9.5px;
    font-weight: 700;
}

.premium-sheet .billing-note {
    margin: 10px auto 14px;
    color: #8791a1;
    font-size: 8px;
}

.premium-main-button,
.reward-button,
.premium-outline-button,
.sheet-close-text {
    appearance: none;
    width: 100%;
    min-height: 45px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 790;
}

.premium-main-button {
    background: linear-gradient(135deg, #0abd57, #049c43);
    box-shadow: 0 8px 18px rgba(8, 180, 79, 0.18);
    color: #fff;
}

.sheet-close-text {
    margin-top: 7px;
    background: transparent;
    color: #718095;
}

.unlock-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin: 0 auto 15px;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 800;
}

.reward-button {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 9px 13px;
    background: var(--green);
    color: #fff;
    text-align: left;
}

.reward-button > svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.reward-button strong,
.reward-button small {
    display: block;
}

.reward-button strong {
    font-size: 11px;
}

.reward-button small {
    margin-top: 3px;
    opacity: 0.78;
    font-size: 7.5px;
    line-height: 1.3;
}

.premium-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    border: 1px solid #bfe5cd;
    background: #fff;
    color: var(--green-dark);
}

.premium-outline-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.settings-group {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.settings-group > label {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.settings-group > label > svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.8;
}

.settings-group strong,
.settings-group small {
    display: block;
}

.settings-group strong {
    font-size: 11px;
}

.settings-group small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.35;
}

.language-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 11px;
}

.language-switch button {
    appearance: none;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #647187;
    cursor: pointer;
    font-size: 9px;
    font-weight: 740;
}

.language-switch button.is-active {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green-dark);
}

.toggle-switch {
    appearance: none;
    position: relative;
    width: 42px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #dce2e8;
    cursor: pointer;
}

.toggle-switch i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(20, 30, 48, 0.16);
    transition: 0.2s ease;
}

.toggle-switch.is-on {
    background: var(--green);
}

.toggle-switch.is-on i {
    transform: translateX(18px);
}

.settings-test-badge {
    width: max-content;
    margin: 10px auto 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f4f6;
    color: #8791a2;
    font-size: 7px;
    font-weight: 750;
}

.legal-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 4px auto 13px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
}

.legal-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.legal-sheet > p {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fafcfd;
    color: #647187;
    font-size: 10px;
    line-height: 1.65;
}

.admin-panel-open {
    overflow: hidden;
}

.admin-overlay {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    background: #f3f6f9;
}

.admin-overlay.is-open {
    display: block;
}

.admin-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #f3f6f9;
}

.admin-overlay-close {
    position: fixed;
    z-index: 1002;
    top: max(12px, env(safe-area-inset-top));
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(214, 221, 229, 0.95);
    border-radius: 13px;
    color: #475467;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(17, 26, 46, 0.12);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 380px) {
    .scope-switch button {
        font-size: 8.5px;
    }

    .match-prediction small {
        max-width: 78px;
    }

    .detail-probability-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .points-comparison {
        grid-template-columns: 1fr;
    }
}
/* MatchIQ v4.3: profesyonel filtreler, beta üyeliği ve reklam alanı */
.advanced-filters { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:9px 0; }
.smart-filter-button { min-width:0; min-height:47px; display:grid; grid-template-columns:27px minmax(0,1fr) 14px; align-items:center; gap:7px; padding:6px 9px; border:1px solid var(--line); border-radius:13px; color:var(--navy); background:var(--surface); box-shadow:none; text-align:left; }
.smart-filter-button.has-value { border-color:rgba(8,180,79,.38); background:var(--green-pale); }
.smart-filter-button .filter-icon { width:27px; height:27px; display:grid; place-items:center; border-radius:9px; color:var(--green-dark); background:var(--green-soft); font-size:11px; font-weight:900; }
.smart-filter-button > span:nth-child(2) { min-width:0; display:grid; gap:2px; }
.smart-filter-button small { color:var(--muted); font-size:8px; font-weight:750; }
.smart-filter-button strong { overflow:hidden; color:var(--navy); font-size:10.5px; text-overflow:ellipsis; white-space:nowrap; }
.smart-filter-button > svg { width:14px; height:14px; color:var(--muted); transform:rotate(90deg); }
.filter-sheet, .member-sheet { padding-bottom:max(24px, env(safe-area-inset-bottom)); }
.filter-option-list { display:grid; gap:7px; margin-top:15px; }
.filter-option { min-height:48px; display:flex; align-items:center; justify-content:space-between; padding:0 14px; border:1px solid var(--line); border-radius:13px; color:var(--navy); background:var(--surface); font-weight:750; text-align:left; }
.filter-option svg { width:18px; height:18px; color:var(--green); }
.filter-option.is-active { border-color:rgba(8,180,79,.42); color:var(--green-dark); background:var(--green-pale); }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:15px 0; padding:4px; border-radius:13px; background:var(--canvas); }
.auth-tabs button { min-height:40px; border:0; border-radius:10px; color:var(--muted); background:transparent; font-weight:800; }
.auth-tabs button.is-active { color:#fff; background:var(--green); box-shadow:0 6px 16px rgba(8,180,79,.2); }
.member-auth-form { display:grid; gap:12px; }
.member-auth-form label { display:grid; gap:6px; color:var(--navy-soft); font-size:11px; font-weight:750; }
.member-auth-form input { width:100%; min-height:47px; padding:0 13px; border:1px solid var(--line); border-radius:12px; color:var(--navy); background:var(--surface); outline:none; }
.member-auth-form input:focus { border-color:var(--green); box-shadow:0 0 0 4px rgba(8,180,79,.1); }
.member-auth-form .auth-consent { grid-template-columns:18px minmax(0,1fr); align-items:start; gap:9px; font-size:9px; font-weight:650; line-height:1.45; }
.member-auth-form .auth-consent input { width:17px; min-height:17px; margin:1px 0 0; padding:0; border-radius:4px; accent-color:var(--green); }
.member-auth-form .auth-consent a { color:var(--green-dark); font-weight:800; }
.member-auth-error { min-height:18px; margin:0; color:#ef4444 !important; font-size:11px; }
.beta-note { margin:13px 4px 0; color:var(--muted); font-size:10px; line-height:1.5; text-align:center; }
.member-account-card { display:grid; gap:6px; margin:16px 0; padding:16px; border:1px solid var(--line); border-radius:15px; background:var(--green-pale); }
.member-account-card strong { color:var(--navy); }
.member-account-card span { color:var(--green-dark); font-weight:800; }
.member-account-card small { color:var(--muted); }
.member-logout-button { width:100%; min-height:46px; border:1px solid #fecaca; border-radius:12px; color:#dc2626; background:var(--surface); font-weight:800; }
.ad-slot { margin:12px 0; min-height:72px; display:grid; place-items:center; border:1px dashed #b8c7c0; border-radius:16px; color:#65736d; background:#f7fbf9; font-size:12px; }
/* MatchIQ v4.2: Safari uyumlu tam koyu tema */
.theme-dark body,
body.theme-dark,
.theme-dark .app-shell,
.theme-dark .page-scroll {
    background: #0b1420;
    color: var(--navy);
}

.theme-dark .topbar,
.theme-dark .bottom-nav {
    background: rgba(15, 27, 40, 0.98);
    border-color: var(--line);
}

.theme-dark .circle-button,
.theme-dark .cookie-banner,
.theme-dark .cookie-actions button,
.theme-dark .compact-match,
.theme-dark .top-analysis-card,
.theme-dark .filter-search-button,
.theme-dark .search-field,
.theme-dark .match-card,
.theme-dark .date-chip,
.theme-dark .analysis-card,
.theme-dark .probability-item,
.theme-dark .result-card,
.theme-dark .favorites-panel,
.theme-dark .settings-panel,
.theme-dark .more-menu-back,
.theme-dark .status-card,
.theme-dark .empty-state,
.theme-dark .empty-card,
.theme-dark .scope-switch,
.theme-dark .match-tools button,
.theme-dark .league-card,
.theme-dark .featured-team-list button,
.theme-dark .result-filter button,
.theme-dark .performance-panel,
.theme-dark .bottom-sheet,
.theme-dark .sheet-header > button,
.theme-dark .detail-match-head,
.theme-dark .detail-actions button,
.theme-dark .detail-tabs button,
.theme-dark .premium-features > div,
.theme-dark .premium-outline-button,
.theme-dark .language-switch button,
.theme-dark .settings-group,
.theme-dark .legal-sheet > p,
.theme-dark .smart-filter-button,
.theme-dark .filter-option,
.theme-dark .member-auth-form input,
.theme-dark .member-logout-button,
.theme-dark input {
    background: var(--surface);
    color: var(--navy);
    border-color: var(--line);
}

.theme-dark .results-hero,
.theme-dark .profile-card,
.theme-dark .strong-pick,
.theme-dark .explore-summary,
.theme-dark .trend-grid article,
.theme-dark .detail-best,
.theme-dark .premium-detail-lock {
    background: linear-gradient(145deg, #14283a, #10251e);
    border-color: #274235;
    color: var(--navy);
}

.theme-dark .season-table .season-head,
.theme-dark .standings-table > div:first-child,
.theme-dark .weekly-chart > div > span,
.theme-dark .settings-test-badge,
.theme-dark .ad-slot {
    background: #172534;
    color: var(--navy-soft);
    border-color: var(--line);
}

.theme-dark .smart-filter-button,
.theme-dark .filter-option,
.theme-dark .member-auth-form input { background:#172534; color:var(--navy); }

.theme-dark .menu-row,
.theme-dark .more-menu-header h1,
.theme-dark .more-menu-panel a.menu-row,
.theme-dark .more-menu-panel a.menu-row:visited {
    color: var(--navy);
}

.theme-dark .more-menu-group + .more-menu-group,
.theme-dark .menu-row,
.theme-dark .favorite-mini {
    border-color: var(--line-soft);
}

.theme-dark .language-switch button.is-active {
    background: var(--green);
    color: #ffffff;
    border-color: var(--green);
}

.theme-dark .modal-backdrop {
    background: rgba(0, 6, 12, 0.72);
}

.theme-dark p,
.theme-dark small {
    color: var(--navy-soft);
}

/* MatchIQ account deletion + Google sign-in */
.auth-divider { display:flex; align-items:center; gap:10px; margin:12px 0; color:var(--muted); font-size:9px; font-weight:800; }
.auth-divider::before, .auth-divider::after { content:""; flex:1; height:1px; background:var(--line); }
.google-signin-button { width:100%; min-height:46px; display:flex; align-items:center; justify-content:center; gap:10px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--navy); font-weight:800; cursor:pointer; }
.google-signin-button:disabled { opacity:.62; cursor:wait; }
.google-g { display:grid; place-items:center; width:22px; height:22px; border:1px solid var(--line); border-radius:50%; background:#fff; color:#4285f4; font:900 15px/1 Arial,sans-serif; }
.google-terms-note { margin:8px 2px 12px; color:var(--muted); font-size:8px; line-height:1.45; text-align:center; }
.google-terms-note a { color:var(--green-dark); font-weight:800; }
.member-delete-button { width:100%; min-height:44px; margin-top:10px; border:1px solid #fecaca; border-radius:12px; color:#dc2626; background:var(--surface); font-weight:850; }
.member-delete-web-link { display:block; margin-top:10px; color:var(--muted); font-size:9px; font-weight:750; text-align:center; text-decoration:underline; }
.delete-account-warning { margin:16px 0; padding:15px; border:1px solid #fecaca; border-radius:14px; background:#fff7f7; color:#7f1d1d; }
.delete-account-warning strong { display:block; margin-bottom:6px; font-size:12px; }
.delete-account-warning p { margin:0; font-size:10px; line-height:1.5; }
.member-delete-confirm-button { width:100%; min-height:46px; border:0; border-radius:12px; background:#dc2626; color:#fff; font-weight:850; }
.member-delete-confirm-button:disabled { opacity:.65; }
.theme-dark .google-signin-button, .theme-dark .member-delete-button { background:#172534; }
.theme-dark .delete-account-warning { background:#341d24; border-color:#63303b; color:#fecaca; }



/* MatchIQ v4.7: clickable explore, league standings, remember-me, bulk favorites */
.favorite-share-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin: 9px 0 12px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}
.favorite-share-toolbar > button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--navy-soft);
    font-size: 9px;
    font-weight: 820;
    cursor: pointer;
}
.favorite-share-toolbar > span {
    color: var(--muted);
    text-align: center;
    font-size: 8.5px;
    font-weight: 760;
}
.favorite-share-toolbar .share-selected-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}
.favorite-share-toolbar .share-selected-button:disabled { opacity: .45; cursor: default; }
.favorite-share-toolbar svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.match-card.has-selection {
    grid-template-columns: 64px minmax(0, 1fr) 92px 32px;
    padding-left: 43px;
}
.match-card.is-selected {
    border-color: rgba(8, 180, 79, .55);
    box-shadow: 0 0 0 2px rgba(8, 180, 79, .08), var(--shadow-soft);
}
.favorite-select-button {
    position: absolute;
    left: 10px;
    top: 50%;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    border: 1.5px solid #b9c4cf;
    border-radius: 8px;
    background: var(--surface);
    color: #fff;
    cursor: pointer;
}
.favorite-select-button.is-selected { border-color: var(--green); background: var(--green); }
.favorite-select-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.3; }
.auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 2px 10px;
    color: var(--navy-soft);
    font-size: 10px;
    font-weight: 760;
    cursor: pointer;
}
.auth-remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.league-standings-sheet,
.league-directory-sheet { max-height: 94%; }
.league-view-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 2px 0 12px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--canvas);
}
.league-view-tabs button {
    min-height: 36px;
    padding: 0 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--navy-soft);
    font-size: 9px;
    font-weight: 820;
    cursor: pointer;
}
.league-view-tabs button.is-active { background: var(--green); color: #fff; box-shadow: 0 5px 14px rgba(8, 180, 79, .18); }
.league-full-table {
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.league-table-row {
    display: grid;
    grid-template-columns: 25px minmax(105px, 1fr) repeat(4, 28px) 34px;
    align-items: center;
    min-height: 38px;
    padding: 0 7px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 8.5px;
    text-align: center;
}
.league-table-row:last-child { border-bottom: 0; }
.league-table-row strong {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
    font-size: 9px;
}
.league-table-row > b:last-child { color: var(--green-dark); }
.league-table-head { min-height: 34px; background: var(--green-pale); color: var(--navy-soft); font-size: 7.5px; }
.league-modal-loading {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 760;
}
.league-empty {
    min-height: 150px;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
}
.league-empty button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font-weight: 800; }
.league-data-note { margin: 10px 3px 0; color: var(--muted); font-size: 8px; line-height: 1.45; text-align: center; }
.league-directory-list { display: flex; flex-direction: column; gap: 9px; padding-bottom: 5px; }
.theme-dark .favorite-share-toolbar,
.theme-dark .favorite-share-toolbar > button,
.theme-dark .favorite-select-button,
.theme-dark .league-full-table { background: var(--surface); border-color: var(--line); }
.theme-dark .league-view-tabs,
.theme-dark .league-table-head { background: var(--green-pale); }
.theme-dark .detail-full-standings .detail-standing-row.is-home-team { background: rgba(37, 207, 112, .16); }
.theme-dark .detail-full-standings .detail-standing-row.is-away-team { background: rgba(70, 146, 255, .17); }
.theme-dark .detail-full-standings .detail-standing-row.is-away-team > b:first-child,
.theme-dark .detail-full-standings .detail-standing-row.is-away-team strong,
.theme-dark .detail-full-standings .detail-standing-row.is-away-team > b:last-child { color: #73aaff; }
.settings-update-group .settings-update-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.settings-update-button {
    width: auto;
    min-width: 154px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 9px;
    white-space: nowrap;
}
@media (max-width: 370px) {
    .favorite-share-toolbar { grid-template-columns: 1fr 1fr; }
    .favorite-share-toolbar > span { display: none; }
    .match-card.has-selection { grid-template-columns: 57px minmax(0, 1fr) 82px 30px; padding-left: 39px; }
    .league-table-row { grid-template-columns: 22px minmax(88px, 1fr) repeat(4, 25px) 30px; padding: 0 5px; }
}

/* MatchIQ 28.08.2026 - H2H kart görünümü */
.h2h-cards {
    display: grid;
    gap: 9px;
}

.h2h-card {
    position: relative;
    overflow: hidden;
    padding: 10px 11px 11px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.h2h-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: transparent;
}

.h2h-card.is-home-win::before,
.h2h-card.is-away-win::before {
    background: var(--green);
}

.h2h-card.is-draw::before {
    background: #f5a623;
}

.h2h-card-date {
    margin-bottom: 8px;
    color: var(--muted);
    text-align: center;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

.h2h-card-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.h2h-team-side {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.h2h-team-side.h2h-team-away {
    grid-template-columns: minmax(0, 1fr) 30px;
    text-align: right;
}

.h2h-team-side.h2h-team-away .team-logo-wrap {
    grid-column: 2;
    grid-row: 1;
}

.h2h-team-side.h2h-team-away strong {
    grid-column: 1;
    grid-row: 1;
}

.h2h-team-side .team-logo-wrap {
    width: 30px;
    height: 30px;
    margin: 0;
}

.h2h-team-side strong {
    overflow: hidden;
    color: var(--navy);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9px;
    font-weight: 780;
}

.h2h-team-side.is-winner strong {
    color: var(--green-dark);
    font-weight: 900;
}

.h2h-score-box {
    display: grid;
    grid-template-columns: 1fr 10px 1fr;
    align-items: center;
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--canvas);
    text-align: center;
}

.h2h-score-box b {
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.h2h-score-box span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.h2h-card.is-home-win .h2h-score-box b:first-child,
.h2h-card.is-away-win .h2h-score-box b:last-child {
    color: var(--green);
}

.h2h-card.is-draw .h2h-score-box b {
    color: #d79000;
}

.theme-dark .h2h-card {
    background: #132130;
    border-color: var(--line);
}

.theme-dark .h2h-score-box {
    background: #0d1925;
    border-color: #33485c;
}

.theme-dark .h2h-team-side.is-winner strong,
.theme-dark .h2h-card.is-home-win .h2h-score-box b:first-child,
.theme-dark .h2h-card.is-away-win .h2h-score-box b:last-child {
    color: #48df87;
}

@media (max-width: 370px) {
    .h2h-card-main {
        grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
        gap: 6px;
    }
    .h2h-team-side,
    .h2h-team-side.h2h-team-away {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }
    .h2h-team-side.h2h-team-away .team-logo-wrap,
    .h2h-team-side.h2h-team-away strong {
        grid-column: 1;
        grid-row: auto;
    }
}

/* 29.08.2026 - Hafif canlı skor görünümü */
.match-list.live-match-list {
    gap: 10px;
}

.live-match-card {
    position: relative;
    padding: 12px 13px 11px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.live-card-head {
    display: grid;
    grid-template-columns: auto 1fr 34px;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.live-badge {
    padding: 4px 7px;
    border-radius: 7px;
    background: #ef3038;
    color: #fff;
    font-size: 8px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .2px;
}

.live-minute {
    color: var(--green);
    font-size: 13px;
    font-weight: 850;
}

.live-card-head .favorite-button {
    width: 34px;
    height: 28px;
    justify-self: end;
}

.live-score-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.live-team {
    display: grid;
    justify-items: center;
    min-width: 0;
    gap: 5px;
    text-align: center;
}

.live-team .team-logo-wrap {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.live-team .team-logo,
.live-team .team-logo-fallback {
    width: 34px;
    height: 34px;
}

.live-team strong {
    display: block;
    width: 100%;
    overflow: hidden;
    color: var(--navy);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10.5px;
    font-weight: 790;
}

.live-score {
    color: var(--navy);
    text-align: center;
    font-size: 23px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .3px;
}

.live-league {
    margin-top: 6px;
    overflow: hidden;
    color: var(--navy-soft);
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9px;
}

.live-pick-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #edf1f4;
}

.live-probability {
    padding: 5px 7px;
    border-radius: 8px;
    background: #effbf4;
    color: var(--green);
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
}

.live-pick-row b {
    min-width: 0;
    overflow: hidden;
    color: var(--navy);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
    font-weight: 800;
}

.live-pick-row em {
    padding: 5px 7px;
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--green-dark);
    white-space: nowrap;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
}

/* Filtre alanını gereksiz dikey boşluktan arındır. */
.match-tools {
    margin-bottom: 5px;
}

.updated-line {
    min-height: 24px;
    margin-bottom: 6px;
}

.theme-dark .live-match-card {
    border-color: var(--line);
    background: #101b2a;
}

.theme-dark .live-pick-row {
    border-top-color: #26364a;
}

@media (max-width: 360px) {
    .live-score-grid {
        grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
        gap: 5px;
    }
    .live-score {
        font-size: 20px;
    }
    .live-pick-row {
        gap: 5px;
    }
    .live-pick-row em {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* MatchIQ Elit Tercih UI - mobil sade kart düzeni */
.scope-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.scope-switch .scope-card {
    appearance: none;
    display: flex;
    min-width: 0;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    color: #68758a;
    cursor: pointer;
    font: inherit;
}

.scope-switch .scope-card svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scope-switch .scope-title {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10.5px;
    line-height: 1;
    font-weight: 820;
}

.scope-switch .scope-pro {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 3px 5px;
    border-radius: 7px;
    background: #e8f9ef;
    color: var(--green-dark);
    font-size: 6.2px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .3px;
}

.scope-switch .scope-card.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #0abd57, #05a648);
    box-shadow: 0 7px 16px rgba(8, 180, 79, .18);
    color: #fff;
}

.scope-switch .scope-card.is-active .scope-pro {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.scope-switch .scope-card.is-pro-only:not(.is-active) {
    border-color: #dce9e2;
}

.match-card {
    grid-template-columns: 74px minmax(0, 1fr) 92px 30px;
    min-height: 106px;
    padding: 13px 9px 13px 13px;
    border-radius: 19px;
}

.match-card .match-time {
    min-width: 0;
    padding-right: 10px;
    border-right: 1px solid #e8edf1;
}

.match-card .match-time strong {
    font-size: 15.5px;
}

.match-card .match-time span {
    max-width: 64px;
    font-size: 9.5px;
}

.match-card .match-time .match-country {
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.match-card .match-time .match-country + .match-competition {
    margin-top: 2px;
}

.match-card .match-teams {
    min-width: 0;
    padding: 0 10px;
}

.match-card .team-row {
    gap: 8px;
}

.match-card .team-row + .team-row {
    margin-top: 8px;
}

.match-card .team-logo-wrap {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
}

.match-card .team-name {
    font-size: 13px;
    font-weight: 760;
}

.match-card .match-prediction {
    min-width: 0;
    align-items: flex-end;
    gap: 6px;
}

.prediction-head {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.prediction-pro {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    border-radius: 6px;
    background: #e8f9ef;
    color: var(--green-dark);
    font-size: 6.5px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .25px;
}

.match-card .prediction-label {
    max-width: 78px;
    padding: 5px 6px;
    font-size: 8.5px;
}

.match-card .match-prediction strong {
    min-width: 62px;
    padding: 6px 8px;
    text-align: center;
    font-size: 20px;
}

.match-card .match-prediction small {
    font-size: 8.5px;
    font-weight: 720;
}

.result-class-stats {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.result-class-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 208px;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 13px 14px;
    border: 1px solid #dceee4;
    border-radius: 18px;
    background: rgba(250,255,252,.94);
    box-shadow: var(--shadow-soft);
}

.result-class-card-head {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.result-class-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: var(--green-soft);
    color: #536279;
}

.result-class-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.result-class-copy {
    min-width: 0;
}

.result-class-copy > strong {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    align-items: center;
    gap: 5px;
    color: var(--navy);
    font-size: 11.5px;
    line-height: 1.12;
    font-weight: 840;
}

.result-class-copy small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #758197;
    white-space: normal;
    text-overflow: ellipsis;
    font-size: 7.6px;
    line-height: 1.2;
    font-weight: 620;
}

.result-class-pro {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 3px 5px;
    border-radius: 7px;
    background: #0ab650;
    color: #fff;
    font-size: 6px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .3px;
}

.result-class-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 208px;
    justify-self: end;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5eee9;
    border-radius: 12px;
    background: #fff;
}

.result-class-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 64px;
    padding: 7px 4px;
    text-align: center;
}

.result-class-metric + .result-class-metric {
    border-left: 1px solid #e7eeea;
}

.result-class-metric span {
    display: block;
    color: #6d788b;
    font-size: 6.8px;
    line-height: 1.1;
    font-weight: 700;
}

.result-class-metric strong {
    display: block;
    margin-top: 5px;
    color: var(--green);
    font-size: 18px;
    line-height: 1;
    font-weight: 880;
}

.result-class-rate strong {
    font-size: 12px;
    letter-spacing: -.15px;
}

.result-class-card.is-locked .result-class-metric strong {
    color: #98a2b3;
}

.theme-dark .scope-switch .scope-card,
.theme-dark .result-class-card,
.theme-dark .result-class-metrics {
    border-color: #253247;
    background: #101827;
}

.theme-dark .scope-switch .scope-card.is-active {
    background: linear-gradient(135deg, #0abd57, #078b41);
}

.theme-dark .result-class-copy > strong {
    color: #f5f7fa;
}

.theme-dark .match-card .match-time,
.theme-dark .result-class-metric + .result-class-metric {
    border-color: #253247;
}

@media (max-width: 380px) {
    .scope-switch {
        gap: 6px;
    }
    .scope-switch .scope-card {
        height: 51px;
        gap: 4px;
        padding: 0 5px;
    }
    .scope-switch .scope-card svg {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }
    .scope-switch .scope-title {
        font-size: 9px;
    }
    .scope-switch .scope-pro {
        padding: 3px 4px;
        font-size: 6px;
    }
    .match-card {
        grid-template-columns: 68px minmax(0,1fr) 84px 28px;
        padding-left: 10px;
        padding-right: 6px;
    }
    .match-card .match-teams {
        padding: 0 7px;
    }
    .match-card .team-name {
        font-size: 11.5px;
    }
    .match-card .prediction-label {
        max-width: 70px;
        font-size: 7.7px;
    }
    .match-card .match-prediction strong {
        min-width: 56px;
        font-size: 18px;
    }
    .result-class-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }
    .result-class-copy small {
        font-size: 7.2px;
    }
    .result-class-rate strong {
        font-size: 12px;
    }
}


/* MatchIQ Web parity v4.8.0 */
.web-premium-plans {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:12px 0 4px;
}
.web-premium-plans > div,
.web-premium-status {
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--surface);
    padding:10px;
}
.web-premium-plans strong,
.web-premium-plans span,
.web-premium-status strong,
.web-premium-status small { display:block; }
.web-premium-plans strong { font-size:10px; }
.web-premium-plans span { margin-top:3px; color:var(--muted); font-size:8px; }
.web-premium-status {
    display:flex;
    align-items:center;
    gap:9px;
    margin:12px 0 4px;
    text-align:left;
    border-color:#bfe5cd;
    background:var(--green-pale);
}
.web-premium-status svg { width:18px; height:18px; flex:0 0 18px; fill:none; stroke:var(--green); stroke-width:2; }
.web-premium-status strong { font-size:10px; }
.web-premium-status small { margin-top:2px; color:var(--muted); font-size:8px; line-height:1.35; }
.theme-dark .web-premium-plans > div,
.theme-dark .web-premium-status { background:var(--surface); }


/* MatchIQ Results analysis-type filter v4.9.6 */
.result-type-filter-wrap {
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid #dceee4;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(237,252,244,.96), rgba(248,255,251,.96));
}
.result-type-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.result-type-filter-head > div {
    min-width: 0;
}
.result-type-filter-head strong,
.result-type-filter-head small {
    display: block;
}
.result-type-filter-head strong {
    color: var(--navy);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 830;
}
.result-type-filter-head small {
    margin-top: 2px;
    color: #758197;
    font-size: 7.5px;
    font-weight: 650;
}
.result-type-filter-head > b {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 7px;
    background: var(--green);
    color: #fff;
    font-size: 6px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .25px;
}
.result-type-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.result-type-filter button {
    appearance: none;
    min-width: 0;
    height: 36px;
    padding: 0 5px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #68758a;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
    font-size: 8px;
    font-weight: 780;
}
.result-type-filter button.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}
.result-type-filter-wrap.is-locked .result-type-filter button:not(:first-child) {
    opacity: .62;
}
.theme-dark .result-type-filter-wrap {
    border-color: #253247;
    background: #101827;
}
.theme-dark .result-type-filter-head strong {
    color: #f5f7fa;
}
.theme-dark .result-type-filter button {
    border-color: #2a3850;
    background: #151f31;
    color: #aeb9ca;
}
.theme-dark .result-type-filter button.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}
@media (max-width: 380px) {
    .result-type-filter {
        gap: 5px;
    }
    .result-type-filter button {
        padding: 0 3px;
        font-size: 7.2px;
    }
}
