[x-cloak] {
    display: none !important;
}

:root {
    color-scheme: dark;
    --bg: #0b0f16;
    --panel: #121821;
    --panel-soft: #1e252f;
    --line: #202631;
    --muted: #a4abb6;
    --text: #f5f7fb;
    --green: #00ff86;
    --green-dark: #00d46f;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #05070b;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-wrap {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    background: #05070b;
}

.phone {
    position: relative;
    /*width: min(440px, 100vw);*/
    min-height: 100dvh;
    background: var(--bg);
    overflow: hidden;
}

.screen {
    min-height: 100dvh;
    padding: 0 24px 28px;
}

.auth-screen {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 92px;
}

.auth-logo {
    display: block;
    width: 205px;
    max-height: 116px;
    object-fit: contain;
    margin: 0 auto 88px;
}

.auth-logo.compact {
    width: 210px;
    margin-bottom: 78px;
}

.auth-actions {
    display: grid;
    gap: 24px;
}

.form-stack {
    display: grid;
    gap: 26px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.2;
}

.input,
.city-input,
.otp-input,
.pix-input {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 11px;
    color: #20252d;
    background: #d9d9d9;
    padding: 0 20px;
    outline: none;
}

.input {
    font-size: 18px;
}

.primary-btn,
.secondary-btn {
    width: 100%;
    min-height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 800;
}

.primary-btn {
    color: #081018;
    background: var(--green);
}

.primary-btn:active {
    background: var(--green-dark);
}

.secondary-btn {
    color: var(--text);
    background: #1f2630;
}

.city-screen,
.verify-screen {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 120px;
}

.city-screen {
    justify-content: flex-start;
    padding-top: clamp(86px, 14dvh, 132px);
    padding-bottom: 32px;
}

.city-title,
.verify-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
}

.city-input {
    font-size: 24px;
}

.city-search {
    min-height: 56px;
    display: grid;
    grid-template-columns: 1fr 40px;
    align-items: center;
    gap: 8px;
    border-radius: 11px;
    background: #d9d9d9;
    padding: 0 8px 0 18px;
    margin-bottom: 12px;
}

.city-search input {
    min-width: 0;
    border: 0;
    color: #20252d;
    background: transparent;
    outline: none;
    font-size: 18px;
}

.city-search span {
    display: grid;
    place-items: center;
    color: #20252d;
}

.city-list {
    display: grid;
    gap: 8px;
    max-height: min(48dvh, 420px);
    overflow-y: auto;
    padding-right: 2px;
}

.city-option {
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    background: #202630;
    padding: 10px 14px;
    text-align: left;
}

.city-option strong {
    min-width: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
}

.city-option span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.verify-title {
    font-size: 17px;
}

.otp-input {
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 22px;
}

.topbar {
    height: 88px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.topbar.no-line {
    border-bottom: 0;
    margin-bottom: 2px;
}

.topbar-logo {
    width: 170px;
    max-height: 46px;
    object-fit: contain;
    justify-self: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    background: transparent;
}

.icon-btn.muted {
    color: var(--muted);
}

.icon-btn svg,
.search-icon svg,
.copy-btn svg,
.route-link svg,
.edit-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.bars-search {
    height: 56px;
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    background: #202630;
    padding: 0 8px 0 22px;
    margin-bottom: 18px;
}

.bars-search input {
    min-width: 0;
    border: 0;
    color: var(--text);
    background: transparent;
    outline: none;
    font-size: 17px;
}

.bars-search input::placeholder {
    color: #f1f3f7;
    opacity: 1;
}

.selected-city-btn {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: 22px 1fr 22px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #111821;
    padding: 0 12px;
    margin: -6px 0 14px;
    text-align: left;
}

.selected-city-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
}

.selected-city-btn svg {
    width: 18px;
    height: 18px;
}

.bar-list {
    display: grid;
}

.bar-row {
    min-height: 66px;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    background: transparent;
    padding: 6px 0;
    text-align: left;
}

.bar-logo,
.bar-logo-large {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    color: #111722;
    background: #f4f4f4;
    font-size: 13px;
    font-weight: 950;
    text-align: center;
}

.bar-logo {
    width: 58px;
    height: 58px;
}

.bar-logo-large {
    width: 56px;
    height: 56px;
}

.bar-logo img,
.bar-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.bar-row strong {
    display: block;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 500;
}

.bar-row span,
.bar-address {
    color: var(--muted);
    font-size: 14px;
}

.bar-summary {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 2px 0 18px;
    border-bottom: 1px solid var(--line);
}

.bar-summary.no-line {
    border-bottom: 0;
}

.bar-summary h1 {
    margin: 0 0 3px;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
}

.bar-summary p {
    margin: 6px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.15;
}

.route-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    color: var(--green);
    background: transparent;
    padding: 0;
    font-size: 13px;
}

.page-title {
    margin: 8px 0 8px;
    font-size: 31px;
    line-height: 1;
    font-weight: 900;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 15px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.tabs button {
    min-height: 32px;
    border: 0;
    border-radius: 10px;
    color: var(--muted);
    background: #202630;
    font-size: 13px;
    font-weight: 800;
}

.tabs button.active {
    color: #071118;
    background: var(--green);
}

.match-section-title {
    margin: 12px 0 14px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.schedule-list,
.bets-list {
    display: grid;
    gap: 12px;
}

.schedule-card,
.match-card,
.bets-card,
.data-card {
    border-radius: 10px;
    background: var(--panel);
}

.schedule-card {
    position: relative;
    display: grid;
    gap: 18px;
    border: 0;
    color: var(--text);
    padding: 13px 10px 18px;
    text-align: left;
}

.league-line {
    color: var(--muted);
    font-size: 14px;
}

.schedule-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}

.schedule-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.schedule-team.home {
    justify-content: flex-end;
    text-align: right;
}

.schedule-team.away {
    justify-content: flex-start;
}

.match-time {
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    font-weight: 900;
}

.match-score-pill {
    min-height: 42px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 8px;
    background: #202630;
    color: var(--green);
    text-align: center;
    line-height: 1;
}

.match-score-pill strong {
    display: block;
    font-size: 17px;
    font-weight: 950;
}

.match-score-pill small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.status-dot {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--green);
}

.status-dot.off {
    background: #b5bdc8;
}

.team-emblem {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #fff;
    clip-path: polygon(50% 0, 88% 14%, 83% 76%, 50% 100%, 17% 76%, 12% 14%);
    font-size: 12px;
    font-weight: 950;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.team-emblem.team-logo {
    clip-path: none;
    border-radius: 999px;
    background: #f4f4f4;
    color: #111722;
    padding: 4px;
    text-shadow: none;
}

.team-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-emblem.small {
    width: 44px;
    height: 44px;
}

.team-flamengo {
    background: repeating-linear-gradient(0deg, #e50914 0 9px, #111 9px 18px);
}

.team-palmeiras {
    background: radial-gradient(circle at 50% 48%, #e9fff2 0 22%, #15803d 23% 100%);
    color: #15803d;
}

.team-sp {
    background: linear-gradient(135deg, #fff 0 48%, #e11d2e 49% 70%, #111 71%);
    color: #10141d;
}

.team-gremio {
    background: radial-gradient(circle, #fff 0 24%, #54b9ff 25% 42%, #111 43%);
}

.team-default {
    background: #394150;
}

.match-card {
    padding: 14px 10px 0;
    overflow: hidden;
}

.match-card.live {
    border: 1px solid var(--green);
}

.match-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.score-grid {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    align-items: end;
    gap: 10px;
    margin: 24px 0 24px;
}

.score-grid.compact {
    align-items: center;
    margin: 26px 0;
}

.score-side {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.score-side.live {
    color: var(--green);
}

.score-box {
    width: 108px;
    height: 31px;
    border: 1px solid var(--green);
    border-radius: 10px;
    color: var(--muted);
    background: #202630;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
}

.score-number {
    color: var(--muted);
    font-size: 24px;
    font-weight: 900;
}

.score-number.live {
    color: var(--green);
}

.score-mid {
    display: grid;
    justify-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 22px;
    font-weight: 900;
}

.score-mid small {
    font-size: 14px;
}

.card-footer {
    margin: 0 -10px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.sub-title {
    margin: 24px 0 12px 9px;
    color: var(--muted);
    font-size: 25px;
    font-weight: 400;
}

.bets-card {
    overflow: hidden;
}

.bet-row {
    position: relative;
    min-height: 60px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

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

.bet-row .trophy {
    position: absolute;
    right: 21px;
    top: 24px;
    color: var(--green);
}

.bet-meta {
    position: absolute;
    right: 20px;
    bottom: 12px;
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
}

.empty-state.compact {
    min-height: 60px;
    margin-top: 0;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--panel);
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.bottom-action {
    position: fixed;
    left: 50%;
    bottom: 86px;
    width: min(392px, calc(100vw - 48px));
    transform: translateX(-50%);
}

.qr-box {
    width: 272px;
    height: 237px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    margin: 42px auto 24px;
}

.payment-status {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111821;
    padding: 12px 14px;
    margin-top: 18px;
    text-align: center;
}

.payment-status strong {
    color: var(--green);
    font-size: 16px;
    font-weight: 900;
}

.payment-status span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.pix-qr-img {
    width: 205px;
    height: 205px;
    object-fit: contain;
}

.fake-qr {
    width: 190px;
    height: 190px;
    background:
        linear-gradient(90deg, #000 10px, transparent 10px) 0 0 / 28px 28px,
        linear-gradient(#000 10px, transparent 10px) 0 0 / 28px 28px,
        conic-gradient(from 90deg, #000 0 25%, transparent 0 50%, #000 0 75%, transparent 0) 0 0 / 54px 54px,
        #fff;
}

.pix-label {
    margin: 0 0 8px;
    font-size: 17px;
}

.pix-control {
    display: grid;
    grid-template-columns: 1fr 40px;
    align-items: center;
    border: 1px solid var(--green);
    border-radius: 10px;
    overflow: hidden;
}

.pix-input {
    min-height: 36px;
    border-radius: 0;
    color: var(--text);
    background: transparent;
    font-size: 16px;
}

.copy-btn {
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--text);
    background: transparent;
}

.payment-link {
    min-height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #081018;
    background: var(--green);
    margin-top: 14px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.profile-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.profile-heading h1,
.config-title {
    margin: 0;
    color: var(--muted);
    font-size: 24px;
    font-weight: 500;
}

.profile-heading.with-line {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.profile-bet {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 96px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.profile-bet:last-child {
    border-bottom: 0;
}

.profile-bet strong {
    display: block;
}

.profile-bet .time {
    align-self: end;
    color: var(--muted);
    font-size: 12px;
}

.profile-bet .trophy {
    justify-self: end;
    color: var(--green);
}

.data-card {
    overflow: hidden;
}

.data-row {
    display: grid;
    grid-template-columns: 1fr 36px;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

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

.data-row strong {
    display: block;
}

.edit-btn {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--muted);
    background: transparent;
}

.empty-state,
.loading-state {
    min-height: 160px;
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 20;
    width: min(392px, calc(100vw - 48px));
    transform: translateX(-50%);
    border: 1px solid var(--green);
    border-radius: 10px;
    color: var(--text);
    background: #121821;
    padding: 12px 16px;
    font-size: 14px;
}

@media (min-width: 700px) {
    .app-wrap {
        align-items: center;
        padding: 24px;
    }

    .phone {
        min-height: 845px;
        max-height: 845px;
        border-radius: 24px;
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
        overflow-y: auto;
    }

    .bottom-action {
        position: sticky;
        left: auto;
        bottom: 28px;
        width: 100%;
        transform: none;
        margin-top: 28px;
    }
}
