@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Sans+Myanmar:wght@400;500;600;700;800&family=Noto+Sans+Thai:wght@400;500;700;900&display=swap");

:root {
    --blue: #D4AF37;
    --blue-dark: #8A6813;
    --black: #0B0B0F;
    --text: #1C1C22;
    --muted: #6B7280;
    --line: #E8E8EC;
    --soft: #F7F8FA;
    --white: #ffffff;
    --danger: #c62828;
    --success: #087443;
    --shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
    --blue-soft: #FFF6D8;
    --font-app: "Inter", "Noto Sans Myanmar", "Noto Sans JP", "Noto Sans Thai", "Segoe UI", Arial, sans-serif;
}

/* Play Boss public app redesign */
html {
    background: #F7F8FA;
}

body.public-page {
    min-height: 100vh;
    color: #1C1C22;
    background:
        linear-gradient(90deg, rgba(11, 11, 15, 0.03) 1px, transparent 1px),
        #F7F8FA;
    background-size: 34px 34px;
}

.public-page .site-header {
    width: min(430px, 100%);
    min-height: 66px;
    margin: 0 auto;
    padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 1rem 0.65rem;
    border-bottom: 1px solid #E8E8EC;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.06);
}

.public-page .brand {
    gap: 0.58rem;
}

.public-page .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: contain;
    background: #0B0B0F;
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.22);
}

.public-page .brand span {
    color: #0B0B0F;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.public-page .site-header-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.agent-header-btn {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    gap: 0.35rem;
    padding: 0.48rem 0.72rem;
    border: 1px solid #E8E8EC;
    border-radius: 14px;
    color: #0B0B0F;
    background: #FFFAEC;
    font-size: 0.78rem;
    font-weight: 900;
}

.agent-header-btn .app-icon {
    color: #D4AF37;
}

.agent-profile-modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(11, 11, 15, 0.64);
}

.agent-profile-modal[hidden] {
    display: none;
}

.agent-profile-card {
    position: relative;
    display: grid;
    width: min(420px, 100%);
    gap: 0.45rem;
    padding: 1.2rem;
    border: 1px solid #E8E8EC;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.agent-profile-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 0.25rem;
    border-radius: 18px;
    color: #FFFFFF;
    background: #D4AF37;
}

.agent-profile-card > span {
    color: #D4AF37;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.agent-profile-card h2 {
    margin: 0;
    color: #0B0B0F;
    font-size: 1.35rem;
    font-weight: 900;
}

.agent-contact-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.55rem;
}

.agent-contact-list a,
.agent-contact-list > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    min-height: 54px;
    padding: 0.55rem 0.7rem;
    border: 1px solid #E8E8EC;
    border-radius: 14px;
    color: #1C1C22;
    background: #F7F8FA;
}

.agent-contact-list .app-icon {
    color: #D4AF37;
}

.agent-contact-list span {
    display: grid;
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.agent-contact-list small {
    color: #6B7280;
    font-size: 0.68rem;
    font-weight: 700;
}

.public-page .icon-btn {
    width: 42px;
    height: 42px;
    color: #D4AF37;
    border-color: #E8E8EC;
    border-radius: 14px;
    background: #FFFAEC;
    box-shadow: none;
}

.public-page .settings-panel {
    right: max(1rem, calc((100vw - 430px) / 2 + 1rem));
    border-color: #E8E8EC;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.public-page .app-shell,
.public-page .app-shell.narrow {
    width: min(430px, 100%);
    padding: 0.88rem 1rem calc(6.8rem + env(safe-area-inset-bottom, 0px));
}

.public-page .section-heading,
.public-page .section-heading.compact,
.public-page .panel-title,
.public-page .section-title-row {
    display: grid;
    align-items: start;
    justify-content: stretch;
    gap: 0.14rem;
    margin-bottom: 0.72rem;
}

.section-kicker,
.public-page .section-heading > span:first-child,
.public-page .panel-title > span:first-child,
.public-page .result-topbar span,
.public-page .news-topbar span {
    color: #D4AF37;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-page .section-heading h1,
.public-page .section-heading h2,
.public-page .panel-title h1,
.public-page .panel-title h2 {
    color: #0B0B0F;
    font-size: 1.22rem;
    font-weight: 900;
}

.primary-btn,
.settings-action {
    border: 0;
    border-radius: 999px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #D4AF37, #F3D879);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
}

.ghost-btn {
    border-color: #E8E8EC;
    border-radius: 999px;
    color: #D4AF37;
    background: #FFFFFF;
}

.public-page a,
.public-page button,
.public-page .category-tile,
.public-page .news-card {
    transition: all 0.2s ease;
}

.public-page a:focus-visible,
.public-page button:focus-visible,
.public-page input:focus-visible,
.public-page select:focus-visible,
.public-page textarea:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.28);
    outline-offset: 2px;
}

.public-page .slide-section,
.public-page .quick-grid-section {
    margin-bottom: 1rem;
}

.public-page .ad-slider {
    min-height: 124px;
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    background: #0B0B0F;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
}

.public-page .slider-dots button {
    background: rgba(212, 175, 55, 0.2);
}

.public-page .slider-dots button.active {
    background: #D4AF37;
}

.public-page .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.public-page .category-tile {
    position: relative;
    min-height: 118px;
    padding: 0.84rem 0.7rem;
    border: 1px solid #E8E8EC;
    border-radius: 18px;
    color: #0B0B0F;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
    font-size: 0.82rem;
}

.public-page .category-tile:hover,
.public-page .category-tile:focus-visible {
    border-color: #D4AF37;
    background: #FFFAEC;
    transform: translateY(-2px);
}

.public-page .tile-icon {
    width: 54px;
    height: 54px;
    border-color: rgba(212, 175, 55, 0.14);
    border-radius: 18px;
    color: #D4AF37;
    background: linear-gradient(180deg, #FFFAEC, #FFFFFF);
    box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.public-page .tile-label {
    color: #1C1C22;
    font-weight: 900;
}

.news-page .news-shell,
.inbox-page .inbox-shell,
.live-page .live-shell,
.live-score-page .result-shell {
    gap: 0.9rem;
}

.public-page .news-topbar,
.public-page .result-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem;
    border: 0;
    border-radius: 24px;
    color: #FFFFFF;
    background:
        radial-gradient(circle at 88% 0%, rgba(243, 216, 121, 0.46), transparent 7rem),
        linear-gradient(135deg, #09090B, #1A1A1F);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.public-page .news-topbar h1,
.public-page .result-topbar h1 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: #FFFFFF;
    font-size: 1.35rem;
    font-weight: 900;
}

.public-page .news-topbar .icon-btn,
.public-page .result-topbar .icon-btn {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
}

.news-filter-tabs,
.live-tabs,
.result-filter-bar {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.24rem;
    border: 1px solid #E8E8EC;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.06);
    scrollbar-width: none;
}

.news-filter-tabs::-webkit-scrollbar,
.live-tabs::-webkit-scrollbar,
.result-filter-bar::-webkit-scrollbar {
    display: none;
}

.news-filter-tabs button,
.live-tabs button,
.result-filter-bar button {
    min-height: 38px;
    padding: 0.44rem 0.78rem;
    border: 0;
    border-radius: 999px;
    color: #1C1C22;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.news-filter-tabs button.active,
.live-tabs button.active,
.result-filter-bar button.active {
    color: #FFFFFF;
    background: #D4AF37;
}

.public-page .news-state {
    border: 1px solid #E8E8EC;
    border-radius: 18px;
    color: #D4AF37;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.06);
}

.public-page .news-list,
.public-page .inbox-list,
.public-page .live-list,
.public-page .league-list {
    gap: 0.72rem;
}

.public-page .news-card {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    align-items: stretch;
    gap: 0.78rem;
    width: 100%;
    min-height: 112px;
    padding: 0.62rem;
    border: 1px solid #E8E8EC;
    border-radius: 18px;
    color: #1C1C22;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
    text-align: left;
}

.public-page .news-card:hover,
.public-page .news-card:focus-visible {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.public-page .news-card img,
.public-page .skeleton-thumb {
    width: 98px;
    height: 98px;
    border-radius: 14px;
    object-fit: cover;
    background: #FFF6D8;
}

.public-page .news-card-body {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 0.28rem;
}

.public-page .news-card small {
    color: #6B7280;
    font-size: 0.72rem;
    font-weight: 800;
}

.public-page .news-card .news-source-credit {
    color: #6B7280;
}

.public-page .news-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #0B0B0F;
    font-size: 0.94rem;
    line-height: 1.55;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.public-page .news-card em {
    color: #D4AF37;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

.public-page .news-card em::after {
    content: " ->";
}

.public-page .skeleton-card,
.public-page .skeleton-thumb,
.public-page .skeleton-line {
    background: linear-gradient(90deg, #FFF6D8 0%, #FFFFFF 50%, #FFF6D8 100%);
    background-size: 220% 100%;
}

.public-page .news-empty {
    display: grid;
    place-items: center;
    min-height: 160px;
    padding: 1.2rem;
    border: 1px solid #E8E8EC;
    border-radius: 18px;
    color: #6B7280;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.06);
    text-align: center;
}

.public-page .news-detail {
    border-radius: 22px;
    border-color: #E8E8EC;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
}

.public-page .news-detail > img {
    border-radius: 18px;
}

.profile-hero-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.82rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 243, 232, 0.86), rgba(255, 255, 255, 0.96)),
        #FFFFFF;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.18);
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #0B0B0F;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.24);
}

.profile-avatar img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

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

.profile-copy span {
    color: #D4AF37;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-copy h1 {
    margin: 0.08rem 0;
    overflow: hidden;
    color: #0B0B0F;
    font-size: 1.12rem;
    line-height: 1.18;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy p {
    margin: 0 0 0.42rem;
    color: #6B7280;
    font-size: 0.82rem;
    font-weight: 800;
}

.profile-copy em {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    color: #FFFFFF;
    background: #0B0B0F;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
}

.profile-edit-btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    gap: 0.34rem;
    padding: 0.4rem 0.68rem;
    border: 1px solid #D4AF37;
    border-radius: 999px;
    color: #D4AF37;
    background: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 900;
}

.profile-menu-list {
    display: grid;
    gap: 0.66rem;
}

.profile-menu-item,
.profile-menu-link {
    display: grid;
    border: 1px solid #E8E8EC;
    border-radius: 18px;
    color: #0B0B0F;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
    overflow: hidden;
}

.profile-menu-link,
.profile-menu-item > summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    min-height: 58px;
    gap: 0.62rem;
    padding: 0.58rem 0.72rem;
    cursor: pointer;
    list-style: none;
}

.profile-menu-item > summary::-webkit-details-marker {
    display: none;
}

.profile-menu-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: #0B0B0F;
    background: #FFF6D8;
}

.profile-menu-item strong {
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 900;
}

.profile-menu-item > summary > .app-icon:last-child,
.profile-menu-link > .app-icon:last-child {
    width: 16px;
    height: 16px;
    color: #D4AF37;
    transition: transform 0.2s ease;
}

.profile-menu-item[open] > summary > .app-icon:last-child {
    transform: rotate(90deg);
}

.profile-menu-link:hover,
.profile-menu-item:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: #FFFDFB;
}

.profile-menu-panel {
    display: grid;
    gap: 0.72rem;
    padding: 0 0.72rem 0.78rem;
}

.guide-video-list {
    display: grid;
    gap: 1rem;
}

.guide-video-card {
    display: grid;
    gap: 0.8rem;
    padding: 0.75rem;
    border: 1px solid #E8E8EC;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: var(--shadow);
}

.guide-video-frame {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #0B0B0F;
}

.guide-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.guide-video-card > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.guide-video-card h2 {
    min-width: 0;
    margin: 0;
    color: #0B0B0F;
    font-size: 1rem;
    font-weight: 900;
}

@media (max-width: 420px) {
    .public-page .brand span {
        display: none;
    }

    .agent-header-btn {
        padding-inline: 0.58rem;
    }

    .guide-video-card > div:last-child {
        display: grid;
    }
}

.more-current-language,
.more-password-form {
    border-color: #E8E8EC;
    border-radius: 16px;
    background: #F7F8FA;
}

.language-picker-menu {
    border-color: #E8E8EC;
}

.language-picker-menu a.active {
    color: #D4AF37;
    background: #FFF6D8;
}

.social-grid {
    gap: 0.6rem;
}

.social-card {
    border-radius: 16px;
    border-color: #E8E8EC;
    background: #FFFFFF;
}

.prediction-history-card {
    border-color: #E8E8EC;
    border-radius: 16px;
    background: #F7F8FA;
}

.match-card,
.info-card,
.form-card,
.notice,
.inbox-card,
.live-card,
.league-card,
.result-matches-panel,
.result-detail-panel {
    border-color: #E8E8EC;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
}

.prediction-hero {
    border-color: rgba(212, 175, 55, 0.2);
    background:
        radial-gradient(circle at 100% 0%, rgba(243, 216, 121, 0.14), transparent 8rem),
        #FFFFFF;
}

.rules-accordion,
.auth-card {
    border-color: #E8E8EC;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
}

.team-box img {
    border-radius: 20px;
    background: #FFF6D8;
}

.segmented input:checked + span,
.auth-mode-tabs a.active {
    color: #FFFFFF;
    border-color: #D4AF37;
    background: #D4AF37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.22);
}

.auth-page {
    background:
        linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 52%, #FFF6D8 100%);
}

.auth-card {
    border-radius: 24px;
    background:
        linear-gradient(180deg, #FFF6D8 0%, #FFFFFF 210px),
        #FFFFFF;
}

.auth-logo-lockup img {
    object-fit: contain;
    background: #0B0B0F;
    box-shadow: 0 14px 28px rgba(212, 175, 55, 0.24);
}

.auth-logo-lockup span,
.auth-remember input:checked + .auth-remember-box {
    background: #D4AF37;
    border-color: #D4AF37;
}

.auth-title span,
.auth-language-dropdown summary,
.auth-links a {
    color: #D4AF37;
}

.auth-form input,
.auth-form select,
input,
textarea,
select {
    border-color: #E8E8EC;
}

.bottom-nav {
    position: fixed;
}

.public-page .bottom-nav {
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    display: flex;
    width: auto;
    height: 72px;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.42rem;
    border: 1px solid #E8E8EC;
    border-radius: 28px;
    background: #FFFFFF;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
    transform: none;
}

.public-page .bottom-nav .nav-item {
    position: relative;
    display: grid;
    flex: 1 1 0;
    min-width: 0;
    height: 58px;
    place-items: center;
    align-content: center;
    gap: 0.2rem;
    padding: 0.18rem;
    border-radius: 20px;
    color: #6B7280;
    font-size: 0.64rem;
    font-weight: 900;
}

.public-page .bottom-nav .nav-item .app-icon {
    width: 22px;
    height: 22px;
    font-size: 1.12rem;
}

.public-page .bottom-nav .nav-item.active {
    color: #D4AF37;
}

.public-page .bottom-nav .nav-item.active {
    background: #FFF6D8;
}

.public-page .mail-badge {
    position: absolute;
    top: 4px;
    right: 12px;
    border-color: #FFFFFF;
    background: #D4AF37;
}

@media (min-width: 680px) {
    .public-page .site-header {
        padding-inline: 1rem;
    }

    .public-page .bottom-nav {
        left: 50%;
        right: auto;
        width: min(398px, calc(100% - 32px));
        transform: translateX(-50%);
    }
}

@media (max-width: 360px) {
    .public-page .bottom-nav .nav-item {
        font-size: 0.58rem;
    }
}

html[lang="my"] {
    --font-app: "Noto Sans Myanmar", "Pyidaungsu", "Myanmar Text", "Padauk", sans-serif;
}

html[lang="jp"] {
    --font-app: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

html[lang="th"] {
    --font-app: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--soft);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    font-family: var(--font-app);
    background: var(--soft);
    line-height: 1.55;
    font-weight: 500;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-synthesis-weight: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: currentColor;
    font-size: 1.15rem;
    line-height: 1;
}

.site-header,
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 70px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: 0 10px 24px rgba(8, 13, 23, 0.05);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.65rem;
    font-weight: 800;
    color: var(--black);
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--black);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.22);
}

.brand span {
    overflow-wrap: anywhere;
}

.site-header-actions {
    display: none;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 0.45rem;
}

.site-header-actions form {
    margin: 0;
}

.header-auth-link,
.auth-user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    max-width: min(38vw, 180px);
    gap: 0.42rem;
    padding: 0.48rem 0.72rem;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 14px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 0.82rem;
    font-weight: 900;
}

.header-auth-link span,
.auth-user-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--blue);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 14px;
    background: var(--blue-soft);
    box-shadow: inset 0 -1px 0 rgba(212, 175, 55, 0.12);
}

.settings-panel {
    position: fixed;
    top: 78px;
    right: 1rem;
    z-index: 30;
    width: min(320px, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.settings-action,
.primary-btn,
.ghost-btn,
.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1rem;
    gap: 0.45rem;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    text-align: center;
}

.settings-action,
.primary-btn {
    color: var(--white);
    background: var(--blue);
}

.settings-action {
    width: 100%;
    margin-bottom: 0.8rem;
}

.settings-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 900;
}

.ghost-btn {
    color: var(--blue);
    background: var(--white);
    border-color: var(--line);
}

.danger-btn {
    color: var(--white);
    background: var(--danger);
}

.wide {
    width: 100%;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.language-grid a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-weight: 700;
    background: var(--soft);
}

.flag-icon {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 22px;
    flex: 0 0 30px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--white);
    box-shadow: inset 0 0 0 1px rgba(8, 13, 23, 0.16), 0 2px 5px rgba(8, 13, 23, 0.08);
}

.flag-us {
    background:
        linear-gradient(90deg, #21468b 0 42%, transparent 42%),
        repeating-linear-gradient(to bottom, #b22234 0 7.7%, #fff 7.7% 15.4%);
}

.flag-us::before {
    content: "";
    position: absolute;
    inset: 0 58% 46% 0;
    background:
        radial-gradient(circle at 25% 30%, #fff 0 1px, transparent 1.3px),
        radial-gradient(circle at 55% 55%, #fff 0 1px, transparent 1.3px),
        #21468b;
}

.flag-mm {
    background: linear-gradient(to bottom, #fecb00 0 33.33%, #34b233 33.33% 66.66%, #ea2839 66.66%);
}

.flag-mm::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    background: #fff;
    clip-path: polygon(50% 0, 61% 34%, 98% 34%, 68% 55%, 79% 91%, 50% 69%, 21% 91%, 32% 55%, 2% 34%, 39% 34%);
    transform: translate(-50%, -50%);
}

.flag-jp {
    background: #fff;
}

.flag-jp::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bc002d;
    transform: translate(-50%, -50%);
}

.flag-th {
    background: linear-gradient(to bottom, #a51931 0 16%, #fff 16% 32%, #2d2a4a 32% 68%, #fff 68% 84%, #a51931 84%);
}

.language-grid a.active {
    color: var(--white);
    background: var(--black);
    border-color: var(--black);
}

.language-picker {
    position: relative;
    display: grid;
    gap: 0.5rem;
}

.language-picker summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 0.5rem;
    padding: 0.52rem 0.65rem;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 14px;
    color: var(--black);
    background: var(--soft);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.language-picker summary::-webkit-details-marker {
    display: none;
}

.language-picker summary span:nth-child(2) {
    flex: 1;
}

.language-picker summary .app-icon {
    width: 14px;
    height: 14px;
    color: var(--blue);
    transition: transform 0.16s ease;
}

.language-picker[open] summary .app-icon {
    transform: rotate(180deg);
}

.language-picker-menu {
    display: grid;
    gap: 0.45rem;
    padding: 0.45rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 16px 34px rgba(8, 13, 23, 0.12);
}

.language-picker-menu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    color: var(--text);
    font-weight: 800;
}

.language-picker-menu a.active {
    color: var(--blue);
    background: var(--blue-soft);
}

.app-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 0.75rem 0.75rem 5.8rem;
}

.app-hero-card {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 22px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.98), rgba(8, 13, 23, 0.96)),
        var(--blue);
    box-shadow: 0 18px 40px rgba(212, 175, 55, 0.22);
}

.hero-brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.hero-brand-lockup img {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--white);
}

.hero-brand-lockup span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-brand-lockup h1 {
    margin: 0.1rem 0 0;
    font-size: 1.55rem;
    line-height: 1.1;
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.hero-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.13);
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.app-shell.narrow {
    width: min(760px, 100%);
}

.section-title-row,
.section-heading,
.panel-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.section-title-row h1,
.section-heading h2,
.section-heading h1,
.panel-title h1,
.panel-title h2 {
    margin: 0;
    color: var(--black);
    font-size: 1.25rem;
    line-height: 1.2;
}

.section-title-row span,
.panel-title span,
.muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.match-card,
.info-card,
.form-card,
.admin-panel,
.login-card,
.setup-box {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(8, 13, 23, 0.06);
}

.match-card,
.form-card,
.admin-panel {
    padding: 1rem;
    margin-bottom: 1rem;
}

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.16), transparent 32rem),
        linear-gradient(180deg, #f8fbff 0%, var(--soft) 100%);
}

.auth-page .app-shell {
    padding: 4.1rem 0.9rem 1.4rem;
}

.auth-language-switch {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
    right: 0.75rem;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.34rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(8, 13, 23, 0.1);
    backdrop-filter: blur(10px);
}

.auth-language-switch:not(.auth-language-dropdown) {
    display: none;
}

.auth-language-dropdown {
    display: block;
    padding: 0.34rem;
    overflow: visible;
}

.auth-language-dropdown summary {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    gap: 0.36rem;
    padding: 0.2rem 0.46rem 0.2rem 0.24rem;
    border-radius: 999px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.auth-language-dropdown summary::-webkit-details-marker {
    display: none;
}

.auth-language-dropdown summary .app-icon {
    width: 12px;
    height: 12px;
    font-size: 0.7rem;
    transition: transform 0.16s ease;
}

.auth-language-dropdown[open] summary .app-icon {
    transform: rotate(180deg);
}

.auth-language-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    gap: 0.3rem;
    padding: 0.2rem 0.45rem 0.2rem 0.24rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
}

.auth-language-switch a.active {
    color: var(--blue);
    background: var(--blue-soft);
}

.auth-language-switch .flag-icon {
    width: 26px;
    height: 20px;
    flex-basis: 26px;
}

.auth-language-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    display: grid;
    width: 174px;
    gap: 0.3rem;
    padding: 0.45rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(8, 13, 23, 0.14);
}

.auth-language-menu a {
    justify-content: flex-start;
    min-height: 40px;
    padding: 0.32rem 0.5rem;
    color: var(--black);
    background: transparent;
    font-size: 0.84rem;
}

.auth-language-menu a.active {
    color: var(--blue);
    background: var(--blue-soft);
}

.auth-shell {
    display: grid;
    min-height: calc(100vh - 5.5rem);
    align-items: center;
    padding-block: 0.75rem 1.5rem;
}

.auth-card {
    position: relative;
    display: grid;
    gap: 0.9rem;
    padding: 1.08rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(234, 242, 255, 0.72), rgba(255, 255, 255, 0) 210px),
        var(--white);
    box-shadow: 0 16px 42px rgba(8, 13, 23, 0.1);
}

.auth-logo-lockup {
    position: relative;
    display: grid;
    width: 82px;
    height: 82px;
    margin: 0 auto;
    place-items: center;
}

.auth-logo-lockup img {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    object-fit: cover;
    background: var(--black);
    box-shadow: 0 14px 28px rgba(212, 175, 55, 0.24);
}

.auth-logo-lockup span {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 3px solid var(--white);
    border-radius: 999px;
    color: var(--white);
    background: var(--blue);
}

.auth-logo-lockup .app-icon {
    width: 16px;
    height: 16px;
    font-size: 0.9rem;
}

.auth-card .tile-icon {
    justify-self: center;
}

.auth-title {
    display: grid;
    gap: 0.22rem;
    text-align: center;
}

.auth-title span {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-title h1,
.auth-title p,
.forgot-panel p {
    margin: 0;
}

.auth-title h1 {
    color: var(--black);
    font-size: 1.42rem;
    line-height: 1.2;
}

.auth-title p,
.forgot-panel p {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
    min-height: 44px;
    padding: 0.24rem;
    border-radius: 16px;
    background: var(--soft);
}

.auth-mode-tabs a {
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 900;
}

.auth-mode-tabs a.active {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.22);
}

.auth-form {
    display: grid;
    gap: 0.68rem;
}

.auth-form label {
    display: grid;
    gap: 0.35rem;
}

.auth-form label > span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 900;
}

.auth-form input,
.auth-form select {
    min-height: 48px;
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 14px;
    padding: 0.72rem 0.78rem;
    color: var(--black);
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(118px, 0.8fr) minmax(0, 1.2fr);
    gap: 0.55rem;
}

.auth-check {
    display: flex !important;
}

.auth-remember {
    display: inline-flex !important;
    align-items: center;
    justify-self: start;
    min-height: 36px;
    gap: 0.5rem !important;
    padding: 0.28rem 0.62rem 0.28rem 0.32rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.auth-remember input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    opacity: 0;
    pointer-events: none;
}

.auth-remember-box {
    display: grid !important;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: transparent !important;
    background: var(--white);
}

.auth-remember-box .app-icon {
    width: 13px;
    height: 13px;
    font-size: 0.72rem;
}

.auth-remember input:checked + .auth-remember-box {
    color: var(--white) !important;
    border-color: var(--blue);
    background: var(--blue);
}

.auth-remember-copy {
    color: var(--black) !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
}

.auth-links,
.forgot-panel {
    display: grid;
    gap: 0.7rem;
    text-align: center;
}

.auth-links a {
    display: inline-flex;
    justify-content: center;
    min-height: 36px;
    align-items: center;
    color: var(--blue);
    font-weight: 900;
}

.forgot-panel strong {
    color: var(--black);
    font-size: 1rem;
}

.slide-section,
.quick-grid-section {
    margin-bottom: 0.85rem;
}

.quick-grid-section .section-heading {
    margin-bottom: 0.5rem;
    padding: 0 0.1rem;
}

.ad-slider {
    position: relative;
    display: flex;
    gap: 0;
    overflow: hidden;
    overflow-x: auto;
    width: 100%;
    aspect-ratio: 3 / 1;
    min-height: 108px;
    border-radius: 18px;
    background: var(--black);
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: 0 12px 24px rgba(8, 13, 23, 0.08);
}

.ad-slider::-webkit-scrollbar {
    display: none;
}

.ad-slide {
    position: relative;
    display: block;
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.ad-slide.active {
    display: block;
}

.ad-slide a,
.ad-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-slide img {
    object-fit: cover;
}

.fallback-slide {
    display: block;
    padding: 0;
    background: var(--black);
}

.fallback-slide img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

.fallback-slide strong,
.fallback-slide span {
    display: block;
}

.slider-btn {
    display: none;
}

.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    margin-top: 0.5rem;
}

.slider-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.22);
    transition: width 0.2s ease, background 0.2s ease;
}

.slider-dots button.active {
    width: 22px;
    background: var(--blue);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.category-tile {
    display: grid;
    grid-template-rows: auto minmax(24px, auto);
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 78px;
    padding: 0.48rem 0.24rem;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 16px;
    color: var(--black);
    background: var(--white);
    box-shadow: 0 8px 18px rgba(8, 13, 23, 0.055);
    text-align: center;
    font-size: 0.64rem;
    font-weight: 800;
}

.tile-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--black));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 16px rgba(212, 175, 55, 0.16);
}

.tile-icon .app-icon {
    width: 24px;
    height: 24px;
    font-size: 1.45rem;
}

.category-custom-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 12px;
}

.tile-label {
    overflow-wrap: anywhere;
    line-height: 1.18;
}

.inbox-shell {
    display: grid;
    gap: 0.9rem;
}

.inbox-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inbox-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 8px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 0.84rem;
    font-weight: 900;
}

.inbox-summary[hidden] {
    display: none;
}

.inbox-list {
    display: grid;
    gap: 0.75rem;
}

.inbox-card {
    display: grid;
    gap: 0.35rem;
    width: 100%;
    padding: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(8, 13, 23, 0.055);
    color: inherit;
    text-align: left;
}

.inbox-card strong,
.inbox-card span,
.inbox-card p,
.inbox-card em {
    display: block;
    margin: 0;
    overflow-wrap: anywhere;
}

.inbox-card.is-unread {
    border-color: rgba(198, 40, 40, 0.22);
    background: #fff9f1;
}

.inbox-card strong {
    color: var(--black);
    font-size: 1rem;
}

.inbox-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.inbox-card p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.inbox-card em {
    color: var(--blue);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

.inbox-message-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 13, 23, 0.48);
}

.inbox-message-modal[hidden] {
    display: none;
}

.inbox-message-card {
    position: relative;
    display: grid;
    width: min(420px, 100%);
    max-height: 82vh;
    gap: 0.55rem;
    padding: 1.1rem;
    overflow: auto;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 48px rgba(8, 13, 23, 0.24);
    text-align: center;
}

.inbox-message-card .tile-icon {
    justify-self: center;
}

.inbox-message-card h2,
.inbox-message-card p {
    margin: 0;
}

.inbox-message-card [data-inbox-modal-date] {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.inbox-message-card [data-inbox-modal-body] {
    color: var(--text);
    line-height: 1.55;
    text-align: left;
    white-space: pre-wrap;
}

.section-heading h2,
.section-heading h1,
.info-card h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.compact {
    align-items: center;
}

.status-open,
.status-closed {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.status-open {
    color: var(--success);
    background: #e7f8ef;
}

.status-closed {
    color: var(--danger);
    background: #ffebee;
}

.team-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
}

.team-box {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    min-width: 0;
    text-align: center;
}

.team-box img {
    width: 74px;
    height: 74px;
    border: 1px solid var(--line);
    border-radius: 20px;
    object-fit: cover;
    background: var(--soft);
}

.team-box strong {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.versus {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    background: var(--black);
    font-size: 0.82rem;
    font-weight: 900;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-card {
    padding: 1rem;
}

.info-card h2 {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
}

.info-card dl,
.info-card ul {
    margin: 0;
}

.info-card dl {
    display: grid;
    gap: 0.75rem;
}

.info-card dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.info-card dd {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.1rem;
    font-weight: 900;
}

.info-card ul {
    padding-left: 1.1rem;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.28rem;
    padding: 0.5rem 0.55rem calc(0.58rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.bottom-nav a {
    position: relative;
    display: grid;
    grid-template-rows: 22px auto;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 52px;
    padding: 0.35rem 0.16rem;
    border-radius: 15px;
    color: var(--black);
    font-size: 0.68rem;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-align: center;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    will-change: transform;
}

.bottom-nav a .app-icon {
    justify-self: center;
    transition: transform 0.18s ease;
}

.mail-badge {
    position: absolute;
    top: 0.15rem;
    right: calc(50% - 1.25rem);
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 0.28rem;
    place-items: center;
    border: 2px solid var(--white);
    border-radius: 999px;
    color: var(--white);
    background: var(--danger);
    font-size: 0.58rem;
    line-height: 1;
    font-weight: 900;
}

.mail-badge[hidden] {
    display: none;
}

.spin-nav-dot {
    position: absolute;
    top: 0.3rem;
    right: calc(50% - 1.05rem);
    width: 10px;
    height: 10px;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--danger);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.bottom-nav a.active {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.22);
    transform: translateY(-2px);
}

.bottom-nav a.active .app-icon {
    transform: translateY(-1px) scale(1.08);
}

.bottom-nav a:active {
    transform: scale(0.96);
}

.telegram-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 13, 23, 0.62);
    backdrop-filter: blur(8px);
}

.telegram-card {
    position: relative;
    width: min(420px, 100%);
    padding: 1.2rem;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--black);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

.telegram-mark {
    position: relative;
    width: 68px;
}

.telegram-logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    object-fit: cover;
}

.telegram-mark span {
    position: absolute;
    right: -3px;
    bottom: -4px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 3px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    background: var(--blue);
}

.telegram-mark .app-icon {
    width: 15px;
    height: 15px;
}

.telegram-card h2 {
    margin: 0.8rem 0 0.35rem;
}

.telegram-card p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.check-row,
.switch-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.check-row {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.prediction-hero {
    margin-top: 0;
}

.rules-accordion {
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(8, 13, 23, 0.05);
    overflow: hidden;
}

.rules-accordion summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.8rem 0.9rem;
    color: var(--black);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.rules-accordion summary::-webkit-details-marker {
    display: none;
}

.rules-accordion summary::after {
    content: "+";
    margin-left: auto;
    color: var(--blue);
    font-size: 1.25rem;
    line-height: 1;
}

.rules-accordion[open] summary::after {
    content: "-";
}

.rules-content {
    display: grid;
    gap: 0.8rem;
    padding: 0 0.9rem 0.9rem;
    color: var(--muted);
}

.rules-content dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
}

.rules-content dl div {
    padding: 0.65rem;
    border-radius: 14px;
    background: var(--soft);
}

.rules-content dt {
    font-size: 0.78rem;
}

.rules-content dd {
    margin: 0.15rem 0 0;
    color: var(--blue-dark);
    font-weight: 900;
}

.rules-content ul {
    margin: 0;
    padding-left: 1.1rem;
}

.news-shell {
    display: grid;
    gap: 0.9rem;
}

.news-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.news-topbar span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.news-topbar h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.15rem 0 0;
    color: var(--black);
    font-size: 1.35rem;
    line-height: 1.2;
}

.news-refresh {
    flex: 0 0 auto;
}

.news-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 86px;
    color: var(--muted);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 18px;
    background: var(--white);
}

.news-list {
    position: relative;
    display: grid;
    gap: 0.75rem;
}

.news-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    padding: 0.62rem;
    color: var(--text);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 18px;
    background: var(--white);
    text-align: left;
    box-shadow: 0 8px 18px rgba(8, 13, 23, 0.045);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.news-card:hover,
.news-card:focus-visible {
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.news-card:active {
    transform: scale(0.985);
}

.news-card img {
    width: 112px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--soft);
}

.news-card-body {
    display: grid;
    align-content: center;
    min-width: 0;
    gap: 0.25rem;
}

.news-card small {
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 900;
}

.news-card .news-source-credit,
.news-detail-meta [data-news-detail-source] {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
}

.news-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--black);
    font-size: 0.92rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card em {
    color: var(--muted);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 800;
}

.skeleton-card,
.skeleton-league {
    pointer-events: none;
}

.skeleton-thumb,
.skeleton-line,
.skeleton-pill,
.skeleton-team,
.skeleton-score {
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, #edf2f8 0%, #f8fbff 46%, #edf2f8 100%);
    background-size: 220% 100%;
    animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

.skeleton-thumb {
    width: 112px;
    height: 84px;
    border-radius: 14px;
}

.skeleton-line {
    width: 100%;
    height: 13px;
}

.skeleton-line.short {
    width: 54%;
}

.skeleton-line.tiny {
    width: 34%;
}

.skeleton-pill {
    width: 72px;
    height: 32px;
}

.skeleton-team {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    justify-self: center;
}

.skeleton-score {
    width: 62px;
    height: 42px;
    border-radius: 14px;
}

.detail-skeleton-card {
    display: grid;
    gap: 0.55rem;
}

.detail-skeleton-card .skeleton-score {
    justify-self: center;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 140% 0;
    }

    100% {
        background-position: -80% 0;
    }
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes panel-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes card-tap {
    0% {
        transform: scale(1);
    }

    48% {
        transform: scale(0.975);
    }

    100% {
        transform: scale(1);
    }
}

.news-empty {
    padding: 1rem;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: var(--white);
    text-align: center;
}

.news-detail {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

.news-back {
    width: max-content;
}

.news-detail > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    object-fit: cover;
    background: var(--soft);
    box-shadow: 0 10px 22px rgba(8, 13, 23, 0.06);
}

.news-detail-meta {
    display: grid;
    gap: 0.18rem;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 900;
}

.news-detail h2 {
    margin: 0;
    color: var(--black);
    font-size: 1.25rem;
    line-height: 1.35;
}

.news-body {
    overflow: hidden;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.75;
}

.news-body p,
.news-body ul,
.news-body ol {
    margin: 0 0 0.85rem;
}

.news-body img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.result-shell {
    display: grid;
    gap: 0.85rem;
}

.result-matches-panel {
    position: relative;
}

.result-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.result-topbar span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.result-topbar h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.15rem 0 0;
    color: var(--black);
    font-size: 1.35rem;
    line-height: 1.2;
}

.result-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.date-icon-control {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--blue);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 14px;
    background: var(--white);
    box-shadow: inset 0 -1px 0 rgba(212, 175, 55, 0.12);
}

.date-icon-control .app-icon {
    pointer-events: none;
}

.date-icon-control input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.date-icon-control input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.result-controls {
    display: grid;
    gap: 0.65rem;
    padding: 0.7rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(8, 13, 23, 0.045);
}

.result-controls label {
    display: grid;
    gap: 0.3rem;
}

.result-controls label span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.result-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.result-section-title h2 {
    margin: 0;
    color: var(--black);
    font-size: 1.05rem;
}

.result-section-title span {
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 900;
}

.result-filter-bar {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    margin: 0 0 0.65rem;
    padding-bottom: 0.08rem;
    scrollbar-width: none;
}

.result-filter-bar::-webkit-scrollbar {
    display: none;
}

.result-filter-bar button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.46rem 0.72rem;
    color: var(--black);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: 0.82rem;
    font-weight: 900;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.result-filter-bar button:active {
    transform: scale(0.96);
}

.result-filter-bar button.active {
    color: var(--white);
    border-color: var(--blue);
    background: var(--blue);
}

.result-filter-bar em {
    display: none;
    min-width: 20px;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 0.72rem;
    font-style: normal;
    line-height: 1.5;
}

.result-filter-bar button.active em {
    color: var(--blue);
    background: var(--white);
}

.result-filter-bar em:not(:empty) {
    display: inline-grid;
    place-items: center;
}

.league-list,
.match-list,
.result-detail-body {
    display: grid;
    gap: 0.72rem;
}

.league-card,
.result-match-card,
.result-detail-panel,
.details-score-card,
.event-section,
.standings-group {
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(8, 13, 23, 0.045);
}

.league-card {
    display: grid;
    gap: 0.65rem;
    padding: 0.7rem;
}

.league-head,
.league-identity,
.result-detail-head,
.match-meta-strip {
    display: flex;
    align-items: center;
}

.league-head {
    justify-content: space-between;
    gap: 0.65rem;
}

.league-identity {
    min-width: 0;
    gap: 0.5rem;
}

.league-identity img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--soft);
}

.league-identity strong {
    overflow-wrap: anywhere;
}

.league-table-btn {
    min-height: 38px;
    padding: 0.45rem 0.7rem;
    flex: 0 0 auto;
}

.result-match-card {
    position: relative;
    display: grid;
    gap: 0.55rem;
    padding: 0.68rem;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.result-match-card:hover,
.result-match-card:focus-visible {
    border-color: rgba(212, 175, 55, 0.32);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.11);
    transform: translateY(-1px);
}

.result-match-card:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.22);
    outline-offset: 2px;
}

.result-match-card:active,
.result-match-card.is-tapping {
    animation: card-tap 0.18s ease;
}

.match-status {
    justify-self: center;
    min-height: 28px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
}

.match-status.is-upcoming {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.match-status.is-live {
    color: #9b111e;
    background: #ffe8ec;
}

.match-status.is-finished {
    color: var(--success);
    background: #e7f8ef;
}

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

.result-team {
    display: grid;
    justify-items: center;
    gap: 0.32rem;
    min-width: 0;
    text-align: center;
}

.result-team img {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    object-fit: contain;
    background: var(--soft);
}

.team-logo-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
}

.result-team strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    line-height: 1.25;
}

.result-score {
    display: grid;
    place-items: center;
    min-width: 64px;
    min-height: 42px;
    padding: 0.35rem 0.55rem;
    border-radius: 14px;
    color: var(--white);
    background: var(--black);
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
}

.result-card-cue {
    position: absolute;
    right: 0.75rem;
    bottom: 0.65rem;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--blue);
    border-radius: 50%;
    background: var(--blue-soft);
    font-size: 0.88rem;
}

.result-detail-panel {
    position: relative;
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
}

.result-matches-panel.is-entering,
.result-detail-panel.is-entering,
.news-list.is-entering,
.news-detail.is-entering {
    animation: panel-in 0.22s ease-out both;
}

.result-detail-panel.is-leaving,
.news-detail.is-leaving {
    animation: panel-out 0.18s ease-in both;
}

.result-back {
    width: max-content;
    min-height: 38px;
    padding: 0.45rem 0.7rem;
}

.result-detail-head {
    justify-content: space-between;
    gap: 0.75rem;
}

.result-detail-head h2 {
    margin: 0;
    color: var(--black);
    font-size: 1.12rem;
}

.result-detail-head span {
    display: block;
    margin-top: 0.18rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.result-tabs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
}

.result-tabs::-webkit-scrollbar {
    display: none;
}

.result-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--black);
    background: var(--white);
    font-size: 0.82rem;
    font-weight: 900;
}

.result-tabs button.active {
    color: var(--white);
    border-color: var(--blue);
    background: var(--blue);
}

.result-inline-state,
.result-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 72px;
    padding: 0.8rem;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: var(--white);
    text-align: center;
}

.result-inline-state .bi {
    color: var(--blue);
}

.result-matches-panel.is-soft-loading::after,
.news-list.is-soft-loading::after,
.result-detail-panel.is-soft-loading::after,
.news-detail.is-soft-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.result-matches-panel.is-soft-loading::before,
.news-list.is-soft-loading::before,
.result-detail-panel.is-soft-loading::before,
.news-detail.is-soft-loading::before {
    content: "";
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 3px solid rgba(212, 175, 55, 0.18);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: soft-spin 0.8s linear infinite;
    pointer-events: none;
}

.standings-group,
.event-section,
.details-score-card {
    padding: 0.75rem;
}

.standings-group h3,
.event-section h3 {
    margin: 0 0 0.55rem;
    color: var(--black);
    font-size: 0.98rem;
}

.standing-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.standing-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: var(--white);
}

.standing-table th,
.standing-table td {
    padding: 0.58rem 0.5rem;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-size: 0.82rem;
}

.standing-table th {
    color: var(--muted);
    background: var(--soft);
    font-weight: 900;
}

.standing-table tbody tr {
    border-left: 4px solid var(--standing-color, var(--blue));
}

.standing-table tr:last-child td {
    border-bottom: 0;
}

.standing-table .standing-team {
    min-width: 160px;
    color: var(--black);
    font-weight: 900;
    text-align: left;
}

.position-cell,
.points-cell {
    color: var(--blue-dark);
    font-weight: 900;
}

.h2h-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.h2h-stat {
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f6f9ff);
}

.h2h-stat span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
}

.h2h-stat strong {
    color: var(--blue-dark);
    font-size: 1.25rem;
    line-height: 1;
}

.event-list {
    display: grid;
    gap: 0.45rem;
}

.event-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
    min-height: 42px;
    padding: 0.52rem 0.6rem;
    border-radius: 14px;
    background: var(--soft);
}

.event-row span {
    color: var(--blue);
    font-weight: 900;
}

.event-row strong {
    overflow-wrap: anywhere;
}

.event-row em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

.substitution-row em::before {
    content: "Out: ";
}

.match-meta-strip {
    flex-wrap: wrap;
    gap: 0.45rem;
}

.match-meta-strip span {
    padding: 0.38rem 0.58rem;
    border-radius: 999px;
    color: var(--muted);
    background: var(--soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.details-score-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.details-score-card strong {
    overflow-wrap: anywhere;
}

.details-score-card span {
    min-width: 66px;
    padding: 0.4rem 0.55rem;
    border-radius: 14px;
    color: var(--white);
    background: var(--black);
    font-weight: 900;
}

.details-score-card.detail-skeleton-card span {
    min-width: 0;
    padding: 0;
    color: transparent;
}

.details-score-card.detail-skeleton-card .skeleton-line,
.details-score-card.detail-skeleton-card .skeleton-score {
    background: linear-gradient(90deg, #edf2f8 0%, #f8fbff 46%, #edf2f8 100%);
    background-size: 220% 100%;
}

.details-score-card small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-weight: 800;
}

.stat-list {
    display: grid;
    gap: 0.65rem;
}

.stat-values {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.28rem;
    text-align: center;
}

.stat-values span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.stat-values strong {
    color: var(--black);
}

.stat-bar {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf5;
}

.stat-bar span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--blue);
}

.live-shell,
.live-list,
.live-card-list {
    display: grid;
    gap: 0.85rem;
}

.live-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.35rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(8, 13, 23, 0.045);
}

.live-tabs button {
    min-height: 40px;
    padding: 0.45rem 0.35rem;
    border: 0;
    border-radius: 12px;
    color: var(--black);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 900;
}

.live-tabs button.active {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.18);
}

.live-section {
    display: grid;
    gap: 0.62rem;
}

.live-section-title,
.live-card-head,
.live-actions {
    display: flex;
    align-items: center;
}

.live-section-title {
    justify-content: space-between;
    gap: 0.75rem;
}

.live-section-title h2 {
    margin: 0;
    color: var(--black);
    font-size: 1.05rem;
}

.live-section-title span {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    border-radius: 999px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 0.82rem;
    font-weight: 900;
}

.live-card {
    display: grid;
    gap: 0.65rem;
    width: 100%;
    padding: 0.72rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 18px;
    color: var(--text);
    background: var(--white);
    box-shadow: 0 8px 18px rgba(8, 13, 23, 0.045);
    text-align: left;
}

.live-card.is-live {
    border-color: rgba(198, 40, 40, 0.22);
}

.live-card.is-watchable {
    cursor: pointer;
}

.live-card:disabled {
    cursor: default;
    opacity: 1;
}

.live-card-head {
    justify-content: space-between;
    gap: 0.65rem;
}

.live-card-head strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--black);
}

.live-pill {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: 0.72rem;
    font-weight: 900;
}

.live-card.is-live .live-pill {
    color: #9b111e;
    background: #ffe8ec;
}

.live-time {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
}

.live-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
}

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

.live-team img {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    object-fit: contain;
    background: var(--soft);
}

.live-team strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 0.84rem;
    line-height: 1.25;
}

.live-vs {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--white);
    background: var(--black);
    font-size: 0.8rem;
    font-weight: 900;
}

.live-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.live-card-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 38px;
    padding: 0.48rem 0.65rem;
    border-radius: 12px;
    color: var(--white);
    background: var(--blue);
    font-size: 0.84rem;
    font-weight: 900;
}

.live-card-cue .bi {
    font-size: 1rem;
}

.live-player-open {
    overflow: hidden;
}

.live-player-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: end center;
    padding: 0.75rem;
    background: rgba(8, 13, 23, 0.72);
    backdrop-filter: blur(10px);
}

.live-player-card {
    display: grid;
    gap: 0.75rem;
    width: min(920px, 100%);
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px 20px 18px 18px;
    color: var(--white);
    background: #050914;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42);
}

.live-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.live-player-head span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.live-player-head h2 {
    margin: 0.08rem 0 0;
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.25;
}

.live-player-head .modal-close {
    position: static;
    flex: 0 0 auto;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
}

.live-player-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: var(--black);
}

.live-player-frame iframe,
.live-player-frame video {
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--black);
}

.live-fullscreen-btn {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: var(--white);
    background: rgba(8, 13, 23, 0.68);
    backdrop-filter: blur(8px);
}

.live-fullscreen-btn .app-icon {
    width: 18px;
    height: 18px;
    font-size: 1rem;
}

.live-player-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    min-height: 40px;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.live-player-status span,
.live-player-status strong {
    display: block;
    overflow-wrap: anywhere;
}

.live-player-status span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.live-player-status strong {
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 900;
    text-align: right;
}

.live-stream-choices {
    display: grid;
    gap: 0.5rem;
}

.stream-choice-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.stream-choice-buttons {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
}

.stream-choice-buttons::-webkit-scrollbar {
    display: none;
}

.stream-choice-buttons button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.45rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 900;
}

.stream-choice-buttons button.active {
    border-color: var(--blue);
    background: var(--blue);
}

.live-watermark {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 2;
    width: clamp(40px, 9vw, 72px);
    height: clamp(40px, 9vw, 72px);
    padding: 0.22rem;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.live-external-link {
    min-height: 40px;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.more-hero,
.more-panel {
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(8, 13, 23, 0.045);
}

.more-hero {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
    padding: 1rem;
}

.more-page .app-shell {
    display: grid;
    gap: 0.85rem;
}

.more-page .more-hero {
    margin-bottom: 0;
}

.more-logo {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 20px;
    object-fit: cover;
    background: var(--black);
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.18);
}

.more-hero span {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.more-hero h1 {
    margin: 0.1rem 0 0.25rem;
    color: var(--black);
    font-size: 1.45rem;
}

.more-hero p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.social-grid,
.more-links {
    display: grid;
    gap: 0.72rem;
}

.social-grid {
    margin-bottom: 0.85rem;
}

.social-card,
.more-links a {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-height: 68px;
    padding: 0.82rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(8, 13, 23, 0.045);
}

.social-card > .app-icon,
.more-links a > .app-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: var(--white);
    background: var(--blue);
    font-size: 1.45rem;
}

.social-card.facebook > .app-icon {
    background: #1877f2;
}

.social-card.telegram > .app-icon {
    background: #229ed9;
}

.social-card.tiktok > .app-icon {
    background: var(--black);
}

.social-card span,
.more-links span {
    display: grid;
    min-width: 0;
}

.social-card strong,
.more-links span {
    color: var(--black);
    font-weight: 900;
}

.social-card small {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.more-panel {
    padding: 1rem;
}

.more-panel h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    color: var(--black);
    font-size: 1.05rem;
}

.more-accordion {
    display: grid;
    gap: 0;
}

.more-accordion-summary {
    display: flex;
    align-items: center;
    min-height: 52px;
    gap: 0.62rem;
    color: var(--black);
    cursor: pointer;
    list-style: none;
    font-weight: 900;
}

.more-accordion-summary::-webkit-details-marker {
    display: none;
}

.more-accordion-summary span {
    flex: 1;
}

.more-accordion-summary .app-icon:last-child {
    width: 16px;
    height: 16px;
    color: var(--blue);
    transition: transform 0.16s ease;
}

.more-accordion[open] > .more-accordion-summary .app-icon:last-child {
    transform: rotate(180deg);
}

.more-accordion-content {
    display: grid;
    gap: 0.72rem;
    padding-top: 0.45rem;
}

.more-current-language {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 14px;
    background: var(--soft);
    color: var(--black);
    font-weight: 900;
}

.prediction-history-list {
    gap: 0.65rem;
}

.prediction-history-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.65rem;
    padding: 0.78rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.prediction-history-card div {
    display: grid;
    gap: 0.18rem;
}

.prediction-history-card strong {
    color: var(--black);
}

.prediction-history-card span,
.prediction-history-card p {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.prediction-history-card p {
    grid-column: 1 / -1;
    margin: 0;
}

.prediction-history-card em {
    align-self: start;
    min-width: 58px;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    text-align: center;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

.prediction-history-card.is-win em {
    color: var(--success);
    background: #e7f8ef;
}

.prediction-history-card.is-lose em {
    color: var(--danger);
    background: #fff1f1;
}

.empty-copy {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.more-action-list {
    gap: 0.72rem;
}

.more-panel .social-grid {
    margin-bottom: 0;
}

.more-language-grid,
.more-language-picker {
    margin-top: 0.25rem;
}

.more-actions {
    display: grid;
    gap: 0.72rem;
}

.more-actions .settings-action {
    margin-bottom: 0;
}

.more-actions form,
.more-password-form {
    display: grid;
    gap: 0.72rem;
    margin: 0;
}

.more-password-box {
    display: grid;
    gap: 0.72rem;
}

.more-password-box summary {
    cursor: pointer;
    list-style: none;
}

.more-password-box summary::-webkit-details-marker {
    display: none;
}

.more-password-form {
    padding: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    background: var(--soft);
}

.more-password-form label {
    display: grid;
    gap: 0.38rem;
    color: var(--black);
    font-size: 0.84rem;
    font-weight: 900;
}

.more-password-form input {
    min-height: 44px;
    padding: 0.68rem 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 14px;
    color: var(--black);
    background: var(--white);
    font-weight: 800;
}

.profile-edit-preview {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    color: var(--black);
    font-size: 0.84rem;
    font-weight: 900;
}

.profile-edit-preview img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--black);
}

.profile-edit-form input[type="file"] {
    padding: 0.58rem 0.75rem;
}

.profile-clear-row {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.profile-clear-row input {
    width: auto;
    min-height: auto;
}

.login-device-list {
    gap: 0.62rem;
}

.login-device-card {
    display: grid;
    gap: 0.62rem;
    padding: 0.78rem;
    border: 1px solid #E8E8EC;
    border-radius: 16px;
    background: #F7F8FA;
}

.login-device-card > div {
    display: grid;
    gap: 0.12rem;
}

.login-device-card strong {
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 900;
}

.login-device-card span,
.login-device-card small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.login-device-card em {
    width: max-content;
    padding: 0.16rem 0.48rem;
    border-radius: 999px;
    color: var(--success);
    background: #e7f8ef;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
}

.login-device-card form {
    margin: 0;
}

.more-action-secondary {
    width: 100%;
}

.notice {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
}

.notice.success {
    color: var(--success);
    border-color: #b9ebcf;
    background: #effbf4;
}

.notice.error {
    color: var(--danger);
    border-color: #ffc9c9;
    background: #fff1f1;
}

.form-card.center {
    text-align: center;
}

.form-card h2,
.form-card p {
    margin-top: 0;
}

.prediction-form,
.admin-form {
    display: grid;
    gap: 0.85rem;
}

.prediction-form label,
.admin-form label,
.inline-form label,
.grid-form label {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.prediction-form span,
.admin-form span,
.inline-form span,
.grid-form span {
    font-weight: 800;
}

.field-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    color: var(--text);
}

textarea {
    resize: vertical;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 0.45rem;
    font-weight: 800;
}

.segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.segmented label {
    position: relative;
}

.segmented input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
    text-align: center;
}

.segmented input:checked + span {
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

.setup-page,
.admin-login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 1rem;
}

.login-card,
.setup-box {
    width: min(420px, 100%);
    padding: 1.25rem;
}

.login-logo,
.setup-logo {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
}

.login-card h1,
.setup-box h1 {
    margin: 0.85rem 0 0.25rem;
}

.login-card p,
.setup-box p,
.login-card small {
    color: var(--muted);
}

.setup-box code {
    display: block;
    overflow: auto;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
}

.admin-page {
    background: #eef4fb;
}

.admin-app-header {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 70px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(8, 13, 23, 0.05);
    backdrop-filter: blur(16px);
}

.admin-brand {
    min-width: 0;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.admin-header-actions .ghost-btn {
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
}

.admin-public-link,
.admin-user-chip {
    display: none;
}

.admin-user-chip {
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 800;
}

.admin-layout {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.admin-scrim {
    position: fixed;
    inset: 70px 0 0;
    z-index: 35;
    display: none;
    background: rgba(8, 13, 23, 0.45);
}

.sidebar-open .admin-scrim {
    display: block;
}

.admin-sidebar {
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: min(292px, calc(100vw - 3rem));
    padding: 1rem;
    overflow-y: auto;
    border-right: 1px solid rgba(212, 175, 55, 0.12);
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(-104%);
    transition: transform 0.22s ease;
}

.sidebar-open .admin-sidebar {
    transform: translateX(0);
}

.sidebar-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--soft);
}

.sidebar-heading img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--black);
}

.sidebar-heading strong,
.sidebar-heading span {
    display: block;
}

.sidebar-heading span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-nav {
    display: grid;
    gap: 0.45rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 46px;
    padding: 0.68rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--black);
    font-weight: 900;
}

.admin-nav i {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--blue);
    font-size: 1.1rem;
}

.admin-nav a.active {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.18);
}

.admin-nav a.active i {
    color: var(--white);
}

.admin-shell {
    width: 100%;
    margin: 0;
    padding: 1rem;
}

.admin-page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.admin-page-title span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-page-title h1 {
    margin: 0.08rem 0 0;
    color: var(--black);
    font-size: 1.45rem;
    line-height: 1.15;
}

.admin-update-form {
    flex: 0 0 auto;
}

.admin-update-form .primary-btn {
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.admin-quick-grid a {
    display: grid;
    gap: 0.25rem;
    min-height: 118px;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f6f9ff);
    box-shadow: 0 8px 18px rgba(8, 13, 23, 0.045);
}

.admin-quick-grid i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 0.25rem;
    border-radius: 14px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 1.25rem;
}

.admin-quick-grid strong {
    color: var(--black);
    font-size: 1rem;
}

.admin-quick-grid span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-stats article {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.admin-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-stats strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--blue-dark);
    font-size: 1.35rem;
}

.admin-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.admin-filter-form label {
    display: grid;
    flex: 1 1 240px;
    gap: 0.38rem;
    color: var(--black);
    font-size: 0.84rem;
    font-weight: 900;
}

.admin-filter-form select {
    min-height: 44px;
    padding: 0.62rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--black);
    background: var(--white);
    font-weight: 800;
}

.admin-panel {
    margin-bottom: 1rem;
}

.panel-title {
    align-items: center;
    flex-wrap: wrap;
}

.grid-form {
    grid-template-columns: 1fr;
}

.wide-field {
    grid-column: 1 / -1;
}

.switch-row {
    min-height: 44px;
    padding: 0.65rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.team-admin,
.upload-preview {
    display: grid;
    gap: 0.75rem;
}

.upload-preview {
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.upload-preview img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--soft);
}

.inline-form {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-list {
    display: grid;
    gap: 0.75rem;
}

.ad-admin-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.ad-admin-row img {
    width: 96px;
    aspect-ratio: 3 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: var(--black);
}

.ad-admin-row strong,
.ad-admin-row span {
    display: block;
    overflow-wrap: anywhere;
}

.ad-admin-row span {
    color: var(--muted);
    font-size: 0.86rem;
}

.live-admin-row {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.live-admin-summary strong,
.live-admin-summary span {
    display: block;
    overflow-wrap: anywhere;
}

.live-admin-summary span {
    color: var(--muted);
    font-size: 0.86rem;
}

.live-admin-summary small {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-weight: 800;
}

.agent-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.agent-metric-grid span {
    display: grid;
    gap: 0.1rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--white);
    font-size: 0.76rem;
    font-weight: 800;
}

.agent-metric-grid strong {
    color: var(--blue-dark);
    font-size: 1.05rem;
    line-height: 1;
}

.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.admin-pagination a {
    display: grid;
    place-items: center;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--black);
    background: var(--white);
    font-weight: 900;
}

.admin-pagination a.active {
    color: var(--white);
    border-color: var(--blue);
    background: var(--blue);
}

/* Daily Spin */
.spin-shell {
    display: grid;
    width: min(430px, calc(100vw - 20px)) !important;
    min-width: 0;
    gap: 1rem;
    overflow: hidden;
}

.spin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.spin-topbar > div:first-child {
    min-width: 0;
}

.spin-topbar span {
    color: #D4AF37;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spin-topbar h1 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.08rem 0 0;
    color: #0b0b0f;
    font-size: 1.35rem;
    font-weight: 900;
}

.spin-unit-badge {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    min-width: 64px;
    min-height: 44px;
    padding: 0.5rem 0.58rem;
    border: 1px solid #EADBA5;
    border-radius: 8px;
    color: #8A6813;
    background: #FFF6D8;
}

.spin-top-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
    margin-right: 0.35rem;
}

.spin-prize-trigger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #f3cf77;
    border-radius: 8px;
    color: #6f4c00;
    background: #fff7da;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(111, 76, 0, 0.1);
}

.spin-prize-trigger:hover,
.spin-prize-trigger:focus-visible {
    color: #ffffff;
    background: #b77900;
}

.spin-unit-badge strong {
    font-size: 1.15rem;
    font-weight: 900;
}

.spin-daily-login {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem;
    border: 1px solid #EADBA5;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8ee 0%, #fff1df 100%);
    box-shadow: 0 8px 22px rgba(199, 80, 0, 0.08);
}

.spin-daily-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: #D4AF37;
    font-size: 1.05rem;
}

.spin-daily-copy {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.spin-daily-copy small {
    color: #8A6813;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.spin-daily-copy strong {
    color: #0b0b0f;
    font-size: 0.94rem;
    font-weight: 900;
}

.spin-daily-copy span {
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
}

.spin-daily-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 94px;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
    color: #166534;
    background: #dcfce7;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.spin-stage {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    padding: 1.3rem 0.7rem 1rem;
    overflow: hidden;
    border: 1px solid #e8e8ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.spin-machine {
    position: relative;
    display: grid;
    justify-items: center;
    width: min(350px, 100%);
    padding-bottom: 2.4rem;
    filter: drop-shadow(0 18px 14px rgba(72, 15, 15, 0.18));
}

.spin-wheel-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 1;
    padding: 27px;
    border: 7px solid #7f0808;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 22%, #ff5858 0 5%, transparent 24%),
        linear-gradient(145deg, #f52d2d 0%, #c70d12 48%, #850306 100%);
    box-shadow:
        inset 0 5px 6px rgba(255, 255, 255, 0.38),
        inset 0 -9px 12px rgba(77, 0, 0, 0.52),
        0 0 0 3px #ff7676,
        0 12px 20px rgba(86, 0, 0, 0.28);
}

.spin-frame-bulbs {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.spin-frame-bulbs i {
    position: absolute;
    top: calc(50% - 6px);
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border: 2px solid #fff2ad;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0 17%, #ffe66b 34%, #e49b00 76%);
    box-shadow: 0 0 7px 2px rgba(255, 210, 45, 0.78);
    transform: rotate(var(--bulb-angle)) translateY(calc(-1 * min(162px, calc((100vw - 2.6rem) / 2 - 11px))));
    animation: spin-bulb-glow 1.1s ease-in-out var(--bulb-delay) infinite alternate;
}

.spin-wheel {
    --wheel-turn: 0deg;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border: 5px solid #fff5c4;
    border-radius: 50%;
    box-shadow:
        0 0 0 3px #8b0808,
        inset 0 0 18px rgba(64, 0, 0, 0.3);
    transform: rotate(var(--wheel-turn));
    transition: transform 4.6s cubic-bezier(0.12, 0.72, 0.12, 1);
}

.spin-wheel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from -90deg, rgba(94, 0, 0, 0.56) 0 1deg, transparent 1deg var(--segment-angle)),
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.34), transparent 38%),
        radial-gradient(circle, transparent 0 63%, rgba(57, 0, 0, 0.18) 84%, rgba(57, 0, 0, 0.45) 100%);
    pointer-events: none;
}

.spin-wheel-label {
    position: absolute;
    bottom: 50%;
    left: calc(50% - 19px);
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 42px;
    height: 47%;
    padding-top: 15px;
    color: #ffffff;
    font-size: clamp(0.56rem, 2.35vw, 0.76rem);
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 3px rgba(44, 0, 0, 0.65);
    transform: rotate(var(--label-angle));
    transform-origin: 50% 100%;
}

.spin-wheel-label em {
    display: block;
    max-height: 100%;
    overflow-wrap: anywhere;
    font-style: normal;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.spin-pointer {
    position: absolute;
    top: 40px;
    left: 50%;
    z-index: 4;
    width: 24px;
    height: calc(50% - 38px);
    background: linear-gradient(90deg, #8a5100 0%, #ffd86b 27%, #fff2ad 52%, #c17c00 100%);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    filter: drop-shadow(0 3px 3px rgba(91, 38, 0, 0.5));
    transform: translateX(-50%);
    pointer-events: none;
}

.spin-center-shine {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 106px;
    height: 106px;
    border: 3px solid #8b4b00;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 26%, #fff8c9 0 9%, transparent 23%),
        radial-gradient(circle at 48% 42%, #ffd762 0 24%, #dc9800 58%, #8a4700 100%);
    box-shadow:
        inset 0 5px 7px rgba(255, 255, 255, 0.65),
        inset 0 -8px 10px rgba(91, 42, 0, 0.4),
        0 5px 9px rgba(80, 20, 0, 0.42);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.spin-main-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 2px solid rgba(255, 246, 180, 0.9);
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(145deg, #ffdf68 0%, #d99400 53%, #925000 100%);
    box-shadow:
        inset 0 4px 5px rgba(255, 255, 255, 0.55),
        inset 0 -5px 7px rgba(91, 42, 0, 0.32),
        0 4px 8px rgba(80, 20, 0, 0.38);
    transform: translate(-50%, -50%);
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.spin-main-button span {
    color: #6f2100;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-shadow: 0 1px rgba(255, 247, 183, 0.7);
}

.spin-main-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.spin-main-button.spinning span {
    animation: spin-icon-pulse 0.55s ease-in-out infinite alternate;
}

.spin-stand {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 1;
    display: grid;
    justify-items: center;
    transform: translateX(-50%);
}

.spin-stand i {
    display: block;
    width: 62px;
    height: 56px;
    border: 4px solid #790407;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(90deg, #8f0509 0%, #f44242 38%, #c30d12 68%, #720205 100%);
    box-shadow: inset 4px 0 5px rgba(255, 255, 255, 0.22);
}

.spin-stand b {
    display: block;
    width: 160px;
    height: 32px;
    margin-top: -5px;
    border: 5px solid #760306;
    border-radius: 50% 50% 12px 12px;
    background: linear-gradient(180deg, #ff4b4b 0%, #bd0910 52%, #760306 100%);
    box-shadow:
        inset 0 4px 4px rgba(255, 255, 255, 0.25),
        0 8px 10px rgba(85, 0, 0, 0.22);
}

.spin-hint {
    max-width: 100%;
    min-height: 2.6em;
    margin: 0;
    padding: 0 0.45rem;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: center;
}

.spin-prize-list,
.spin-history-list {
    display: grid;
    gap: 0.6rem;
}

.spin-history-item[hidden] {
    display: none;
}

.spin-history-toggle {
    display: block;
    min-width: 132px;
    min-height: 42px;
    margin: 0.8rem auto 0;
    padding: 0.55rem 1rem;
    border: 1px solid #dedee5;
    border-radius: 8px;
    color: #0b0b0f;
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.spin-history-toggle:hover,
.spin-history-toggle:focus-visible {
    border-color: #D4AF37;
    color: #8A6813;
    background: #FFF6D8;
}

.spin-prize-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    min-height: 66px;
    padding: 0.7rem;
    border: 1px solid #e8e8ec;
    border-radius: 8px;
    background: #ffffff;
}

.spin-rank {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: #D4AF37;
    font-size: 1.1rem;
    font-weight: 900;
}

.spin-prize-card.rank-2 .spin-rank {
    background: #64748b;
}

.spin-prize-card.rank-3 .spin-rank {
    background: #b45309;
}

.spin-prize-card div,
.spin-history-item div {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.spin-prize-card strong,
.spin-history-item strong {
    overflow-wrap: anywhere;
    color: #0b0b0f;
    font-size: 0.86rem;
    font-weight: 900;
}

.spin-prize-card div span,
.spin-prize-card small,
.spin-history-item small,
.spin-history-item time {
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 700;
}

.spin-prize-card small {
    color: #D4AF37;
}

.spin-history-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    min-height: 58px;
    padding: 0.6rem;
    border: 1px solid #e8e8ec;
    border-radius: 8px;
    background: #ffffff;
}

.spin-history-item > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    background: #334155;
}

.spin-history-item.outcome-prize > span {
    background: #D4AF37;
}

.spin-history-item.outcome-extra_spin > span {
    background: #16a34a;
}

.spin-history-item time {
    max-width: 78px;
    text-align: right;
}

.spin-result-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow: hidden;
    background: rgba(11, 11, 15, 0.75);
}

.spin-result-modal[hidden] {
    display: none;
}

.spin-result-card {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    width: min(370px, 100%);
    gap: 0.45rem;
    padding: 1.35rem;
    border: 1px solid #e8e8ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    animation: spin-result-pop 0.5s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.spin-prize-popup {
    width: min(420px, 100%);
    max-height: min(640px, calc(100vh - 2rem));
    overflow: auto;
}

.spin-prize-popup .spin-prize-list {
    width: 100%;
    margin-top: 0.55rem;
}

.spin-prize-notice {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.55rem;
    margin-top: 0.35rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #EADBA5;
    border-radius: 8px;
    color: #8f3d00;
    background: #FFF6D8;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: left;
}

.spin-prize-notice i {
    flex: 0 0 auto;
    font-size: 1rem;
}

.spin-prize-popup .spin-prize-card {
    grid-template-columns: 44px minmax(0, 1fr);
    text-align: left;
}

.spin-popup-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e8e8ec;
    border-radius: 50%;
    color: #334155;
    background: #ffffff;
}

.spin-result-art {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin-bottom: 0.3rem;
    border-radius: 50%;
    color: #ffffff;
    background: #D4AF37;
    font-size: 2.2rem;
    animation: spin-result-bounce 0.8s ease-in-out infinite alternate;
}

.spin-result-card.outcome-lose .spin-result-art {
    background: #475569;
    animation: spin-result-sad 1.4s ease-in-out infinite;
}

.spin-result-card.outcome-extra_spin .spin-result-art {
    background: #16a34a;
}

.spin-result-card > span {
    color: #D4AF37;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spin-result-card h2 {
    margin: 0;
    color: #0b0b0f;
    font-size: 1.45rem;
    font-weight: 900;
}

.spin-result-card p {
    margin: 0 0 0.65rem;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 700;
}

.spin-confetti {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.spin-confetti i {
    position: absolute;
    top: -10%;
    left: var(--x);
    width: 9px;
    height: 16px;
    background: var(--color);
    animation: spin-confetti-fall var(--fall) linear var(--delay) infinite;
}

@keyframes spin-icon-pulse {
    to { transform: scale(1.18); }
}

@keyframes spin-bulb-glow {
    to {
        background: radial-gradient(circle at 35% 30%, #ffffff 0 25%, #fff8aa 43%, #ffbc13 80%);
        box-shadow: 0 0 10px 4px rgba(255, 220, 78, 0.95);
    }
}

@keyframes spin-result-pop {
    from { opacity: 0; transform: scale(0.72); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin-result-bounce {
    to { transform: translateY(-8px) rotate(5deg); }
}

@keyframes spin-result-sad {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-4px) rotate(-3deg); }
    70% { transform: translateX(4px) rotate(3deg); }
}

@keyframes spin-confetti-fall {
    to { transform: translateY(120vh) rotate(720deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spin-wheel {
        transition-duration: 0.4s;
    }

    .spin-result-card,
    .spin-result-art,
    .spin-confetti i,
    .spin-frame-bulbs i {
        animation: none;
    }
}

@media (max-width: 430px) {
    .spin-top-actions {
        gap: 0.3rem;
        margin-right: 0.45rem;
    }

    .spin-prize-trigger {
        width: 42px;
        height: 42px;
    }

    .spin-unit-badge {
        min-width: 62px;
        min-height: 42px;
        padding: 0.45rem 0.55rem;
    }

    .spin-history-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .spin-history-item time {
        display: none;
    }
}

.notification-admin-row {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.notification-admin-row strong,
.notification-admin-row span,
.notification-admin-row p {
    display: block;
    margin: 0;
    overflow-wrap: anywhere;
}

.notification-admin-row span {
    color: var(--muted);
    font-size: 0.86rem;
}

.inline-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.ad-edit-form {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.65rem;
}

.category-editor {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.category-edit-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.category-icon-edit {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: center;
}

.admin-category-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: var(--blue);
    background: var(--blue-soft);
}

.admin-category-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
}

.admin-category-icon .app-icon {
    width: 26px;
    height: 26px;
    font-size: 1.55rem;
}

.delete-category-box {
    margin-top: 1rem;
}

.mini-delete {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}

.clear-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto;
    gap: 0.5rem;
}

.correct-filter {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.85rem;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.correct-filter-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.correct-filter-title span,
.correct-filter-grid span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.correct-filter-title strong {
    display: block;
    color: var(--black);
}

.correct-filter-title em {
    flex: 0 0 auto;
    padding: 0.35rem 0.55rem;
    color: var(--blue);
    border-radius: 999px;
    background: var(--blue-soft);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

.correct-filter-grid {
    display: grid;
    gap: 0.65rem;
}

.correct-filter-grid label {
    display: grid;
    gap: 0.35rem;
}

.submission-table tr.is-correct-match td {
    background: #effbf5;
}

.winner-save-form {
    display: grid;
    gap: 0.8rem;
}

.winner-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 8px;
    background: var(--blue-soft);
}

.winner-save-bar span {
    color: var(--blue-dark);
    font-size: 0.86rem;
    font-weight: 900;
}

.winner-check {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    gap: 0.45rem;
    padding: 0.38rem 0.62rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--danger);
    background: #fff1f1;
    font-weight: 900;
    cursor: pointer;
}

.winner-check:has(input:checked) {
    color: var(--success);
    background: #e7f8ef;
    border-color: rgba(8, 116, 67, 0.22);
}

.winner-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--success);
}

.submission-table td .winner-check span {
    display: inline;
    color: inherit;
}

.submission-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.submission-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    background: var(--white);
}

.submission-table th,
.submission-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.submission-table th {
    color: var(--black);
    background: var(--soft);
}

.submission-table td span,
.submission-table td strong {
    display: block;
}

.submission-table td span {
    color: var(--muted);
}

.submission-table details {
    margin-top: 0.35rem;
}

.submission-table pre {
    max-width: 420px;
    max-height: 220px;
    overflow: auto;
    padding: 0.6rem;
    border-radius: 8px;
    background: var(--black);
    color: var(--white);
    white-space: pre-wrap;
}

@media (min-width: 680px) {
    .site-header,
    .admin-topbar {
        padding-inline: 1.5rem;
    }

    .app-shell {
        padding: 1rem 1rem 6.5rem;
    }

    .section-title-row h1,
    .section-heading h2,
    .section-heading h1 {
        font-size: 1.55rem;
    }

    .category-tile {
        min-height: 84px;
        font-size: 0.82rem;
    }

    .team-box img {
        width: 92px;
        height: 92px;
    }

    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .result-controls,
    .correct-filter-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .correct-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    }

    .result-controls .primary-btn {
        min-width: 170px;
    }

    .bottom-nav {
        right: 50%;
        left: auto;
        width: min(520px, calc(100% - 2rem));
        transform: translateX(50%);
        border: 1px solid var(--line);
        border-bottom: 0;
        border-radius: 8px 8px 0 0;
    }

    .grid-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inline-form {
        grid-template-columns: minmax(170px, 1fr) minmax(220px, 2fr) minmax(90px, 0.6fr) auto;
        align-items: end;
    }

    .category-edit-row {
        grid-template-columns: minmax(260px, 1.45fr) minmax(140px, 1fr) minmax(220px, 1.35fr) 90px auto;
        align-items: center;
    }

    .admin-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-public-link,
    .admin-user-chip {
        display: inline-flex;
    }

    .admin-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .admin-menu-toggle,
    .admin-scrim {
        display: none !important;
    }

    .admin-app-header {
        grid-template-columns: minmax(0, 1fr) auto;
        padding-inline: 1.4rem;
    }

    .admin-brand {
        grid-column: 1;
    }

    .admin-header-actions {
        grid-column: 2;
    }

    .admin-layout {
        display: grid;
        grid-template-columns: 292px minmax(0, 1fr);
        gap: 0;
    }

    .admin-sidebar {
        position: sticky;
        top: 70px;
        align-self: start;
        height: calc(100vh - 70px);
        width: 292px;
        box-shadow: none;
        transform: none;
    }

    .admin-shell {
        padding: 1.25rem;
    }

    .admin-quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ad-admin-row {
        grid-template-columns: 160px minmax(0, 1fr) minmax(360px, 1.5fr) auto;
    }

    .ad-admin-row img {
        width: 160px;
    }

    .live-player-modal {
        place-items: center;
        padding: 1.25rem;
    }

    .ad-edit-form {
        grid-column: auto;
        grid-template-columns: minmax(160px, 1fr) 86px auto auto;
        align-items: end;
    }
}

/* Play Boss cascade guard */
body.public-page .primary-btn,
body.public-page .settings-action {
    border: 0;
    border-radius: 999px;
    color: #FFFFFF;
    background: linear-gradient(135deg, #D4AF37, #F3D879);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
}

body.public-page .ghost-btn {
    border-color: #E8E8EC;
    border-radius: 999px;
    color: #D4AF37;
    background: #FFFFFF;
}

body.public-page.auth-page {
    background:
        linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 52%, #FFF6D8 100%);
}

body.public-page .auth-card {
    border-color: #E8E8EC;
    border-radius: 24px;
    background:
        linear-gradient(180deg, #FFF6D8 0%, #FFFFFF 210px),
        #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
}

body.public-page .auth-logo-lockup img {
    object-fit: contain;
    background: #0B0B0F;
    box-shadow: 0 14px 28px rgba(212, 175, 55, 0.24);
}

body.public-page .auth-title span,
body.public-page .auth-language-dropdown summary,
body.public-page .auth-links a {
    color: #D4AF37;
}

body.public-page .auth-mode-tabs a.active,
body.public-page .segmented input:checked + span {
    color: #FFFFFF;
    border-color: #D4AF37;
    background: #D4AF37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.22);
}

body.public-page .live-tabs,
body.public-page .result-filter-bar,
body.public-page .news-filter-tabs {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.24rem;
    border: 1px solid #E8E8EC;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.06);
}

body.public-page .live-tabs button,
body.public-page .result-filter-bar button,
body.public-page .news-filter-tabs button {
    min-height: 38px;
    padding: 0.44rem 0.78rem;
    border: 0;
    border-radius: 999px;
    color: #1C1C22;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

body.public-page .live-tabs button.active,
body.public-page .result-filter-bar button.active,
body.public-page .news-filter-tabs button.active {
    color: #FFFFFF;
    background: #D4AF37;
}

body.public-page .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.46rem;
}

body.public-page .category-tile {
    min-height: 76px;
    padding: 0.42rem 0.2rem;
    border-radius: 16px;
    font-size: 0.61rem;
    box-shadow: 0 8px 18px rgba(15, 15, 20, 0.055);
}

body.public-page .tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
}

body.public-page .tile-icon .app-icon {
    width: 21px;
    height: 21px;
    font-size: 1.22rem;
}

body.public-page .category-custom-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

body.public-page .tile-label {
    line-height: 1.12;
}

body.public-page .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    width: min(1120px, 100%);
}

body.public-page .settings-panel {
    right: max(1rem, calc((100vw - min(1120px, 100vw)) / 2 + 1rem));
}

body.public-page .app-shell {
    width: min(1120px, 100%);
}

body.public-page .app-shell.narrow {
    width: min(860px, 100%);
}

body.public-page .ad-slider {
    min-height: 124px;
    aspect-ratio: 16 / 5.4;
    max-height: 300px;
}

body.public-page .ad-slide,
body.public-page .ad-slide a,
body.public-page .ad-slide img {
    height: 100%;
}

body.public-page .bottom-nav {
    left: 50%;
    right: auto;
    width: min(560px, calc(100% - 32px));
    height: 72px;
    transform: translateX(-50%);
}

body.public-page .bottom-nav .nav-item {
    flex: 1 1 0;
    height: 58px;
    margin-top: 0;
    border-radius: 20px;
    color: #6B7280;
    background: transparent;
    box-shadow: none;
}

body.public-page .bottom-nav .nav-item.active {
    color: #D4AF37;
    background: #FFF6D8;
}

body.public-page .bottom-nav .nav-item .app-icon {
    width: 22px;
    height: 22px;
    color: currentColor;
    font-size: 1.12rem;
}

body.public-page .bottom-nav .nav-item span:last-child {
    color: currentColor;
    font-size: 0.64rem;
}

.market-shell,
.odds-shell,
.ibet-rule-shell {
    display: grid;
    gap: 0.88rem;
}

.market-topbar,
.ibet-rule-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 24px;
    color: #FFFFFF;
    background:
        radial-gradient(circle at 92% 0%, rgba(243, 216, 121, 0.42), transparent 7rem),
        linear-gradient(135deg, #09090B, #1A1A1F);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.market-topbar h1,
.ibet-rule-hero h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(1.28rem, 2.5vw, 2rem);
    font-weight: 900;
}

.market-topbar span,
.ibet-rule-kicker,
.ibet-rule-hero p {
    color: #FFB15C;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-topbar .icon-btn {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
}

.market-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.46rem;
}

.market-tabs.odds-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-tabs button {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    border: 1px solid #E8E8EC;
    border-radius: 15px;
    color: #1C1C22;
    background: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 900;
}

.market-tabs button.active {
    border-color: #D4AF37;
    color: #D4AF37;
    background: #FFF6D8;
}

.market-region-control {
    display: grid;
    gap: 0.4rem;
    color: #6B7280;
    font-size: 0.76rem;
    font-weight: 900;
}

.market-region-control select {
    min-height: 44px;
    border-radius: 14px;
}

.market-region-buttons {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
}

.market-region-buttons[hidden] {
    display: none;
}

.market-region-buttons::-webkit-scrollbar {
    display: none;
}

.market-region-buttons button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 0.78rem;
    border: 1px solid #E8E8EC;
    border-radius: 999px;
    color: #1C1C22;
    background: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 900;
}

.market-region-buttons button.active {
    border-color: #D4AF37;
    color: #D4AF37;
    background: #FFF6D8;
}

.market-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.45rem;
    color: #6B7280;
    font-size: 0.72rem;
    font-weight: 800;
}

.market-rate-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.market-rate-card {
    display: grid;
    gap: 0.72rem;
    padding: 0.82rem;
    border: 1px solid #E8E8EC;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
    cursor: pointer;
}

.market-rate-card:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.28);
    outline-offset: 2px;
}

.market-rate-head {
    display: flex;
    align-items: center;
    gap: 0.66rem;
    min-width: 0;
}

.market-rate-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 15px;
    color: #D4AF37;
    background: #FFF6D8;
    font-size: 1.3rem;
    font-weight: 900;
}

.market-rate-title {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.market-rate-title strong {
    color: #0B0B0F;
    font-size: 0.92rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.market-rate-title small {
    color: #6B7280;
    font-size: 0.68rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.market-rate-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem;
}

.market-rate-values.single {
    grid-template-columns: 1fr;
}

.market-rate-box {
    display: grid;
    gap: 0.16rem;
    padding: 0.58rem;
    border-radius: 14px;
    background: #F7F8FA;
}

.market-rate-box small {
    color: #6B7280;
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
}

.market-rate-box strong {
    color: #0B0B0F;
    font-size: clamp(0.98rem, 2vw, 1.25rem);
    font-weight: 900;
    line-height: 1.15;
}

.rate-change {
    width: max-content;
    padding: 0.12rem 0.36rem;
    border-radius: 999px;
    color: #6B7280;
    background: #E8E8EC;
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 900;
}

.rate-change.up {
    color: #087443;
    background: #E9F8EF;
}

.rate-change.down {
    color: #C62828;
    background: #FFF1F1;
}

.market-history-body {
    margin-top: 0.85rem;
    max-height: min(56vh, 420px);
    overflow-y: auto;
    padding-right: 0.2rem;
    -webkit-overflow-scrolling: touch;
}

.market-history-list {
    display: grid;
    gap: 0.58rem;
}

.market-history-row {
    display: grid;
    gap: 0.45rem;
    padding: 0.72rem;
    border: 1px solid #E8E8EC;
    border-radius: 15px;
    background: #F7F8FA;
}

.market-history-row > strong {
    color: #0B0B0F;
    font-size: 0.82rem;
    font-weight: 900;
}

.market-history-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
}

.market-history-values.single {
    grid-template-columns: 1fr;
}

.market-history-values span {
    display: grid;
    gap: 0.12rem;
    padding: 0.48rem;
    border-radius: 12px;
    background: #FFFFFF;
}

.market-history-values small {
    color: #6B7280;
    font-size: 0.62rem;
    font-weight: 900;
}

.market-history-values b {
    color: #0B0B0F;
    font-size: 0.88rem;
    font-weight: 900;
}

.odds-league-card,
.ibet-rule-card,
.market-empty-card,
.ibet-rule-warning {
    border: 1px solid #E8E8EC;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
}

.odds-league-head,
.ibet-rule-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.odds-league-head h2,
.ibet-rule-title h2 {
    margin: 0;
    color: #0B0B0F;
    font-size: 0.96rem;
    font-weight: 900;
}

.odds-league-head span,
.ibet-rule-title span {
    color: #D4AF37;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.odds-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.odds-values span {
    display: grid;
    gap: 0.08rem;
    padding: 0.46rem;
    border-radius: 12px;
    background: #FFFAEC;
}

.odds-values small {
    color: #6B7280;
    font-size: 0.62rem;
    font-weight: 900;
}

.odds-values b {
    color: #0B0B0F;
    font-size: 0.82rem;
    font-weight: 900;
}

.market-empty-card {
    padding: 1rem;
    color: #6B7280;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
}

.odds-league-list,
.odds-match-list {
    display: grid;
    gap: 0.72rem;
}

.odds-league-card {
    display: grid;
    gap: 0.64rem;
    padding: 0.82rem;
}

.odds-match-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 0.7rem;
    padding: 0.72rem;
    border: 1px solid #E8E8EC;
    border-radius: 15px;
    background: #F7F8FA;
}

.odds-teams {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
}

.odds-team {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 0.5rem;
}

.odds-team-logo {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #D4AF37;
    background: #FFF6D8;
    font-size: 0.8rem;
    font-weight: 900;
    overflow: hidden;
}

.odds-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.odds-team strong {
    color: #0B0B0F;
    font-size: 0.86rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.odds-team.fav strong {
    color: #C62828;
}

.verify-mark {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #FFFFFF;
    background: #1D9BF0;
    font-size: 0.7rem;
    font-weight: 900;
}

.odds-history-modal[hidden] {
    display: none;
}

.odds-history-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 13, 23, 0.62);
}

.odds-history-dialog,
.market-history-panel {
    width: min(640px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #E8E8EC;
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.market-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.odds-analysis-summary {
    display: grid;
    gap: 0.18rem;
    margin-top: 0.85rem;
    padding: 0.72rem;
    border-radius: 15px;
    color: #1C1C22;
    background: #FFFAEC;
}

.odds-analysis-summary span {
    color: #D4AF37;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.odds-analysis-summary strong {
    color: #0B0B0F;
    font-size: 0.95rem;
    font-weight: 900;
}

.odds-analysis-summary small {
    color: #6B7280;
    font-size: 0.72rem;
    font-weight: 800;
}

.odds-analysis-grid {
    display: grid;
    gap: 0.72rem;
    margin-top: 0.75rem;
}

.odds-chart-row {
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid #E8E8EC;
    border-radius: 16px;
    background: #FFFFFF;
}

.odds-chart-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.odds-chart-label strong {
    color: #0B0B0F;
    font-size: 0.92rem;
    font-weight: 900;
}

.odds-chart-label span {
    color: #C62828;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.odds-chart-bars {
    display: grid;
    gap: 0.45rem;
}

.odds-chart-bars span {
    display: grid;
    gap: 0.24rem;
}

.odds-chart-bars small {
    color: #6B7280;
    font-size: 0.68rem;
    font-weight: 800;
}

.odds-chart-bars i {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: #C62828;
}

.odds-chart-bars i.current {
    background: #D4AF37;
}

.ibet-rule-hero {
    display: grid;
    justify-items: start;
}

.ibet-logo-frame {
    display: inline-grid;
    gap: 0.4rem;
    align-items: center;
    justify-items: start;
}

.ibet-logo-img {
    max-width: 150px;
    max-height: 54px;
    object-fit: contain;
}

.ibet-logo-mark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.18rem;
    padding: 0.34rem 0.58rem;
    border-radius: 14px;
    color: #FFFFFF;
    background: #D4AF37;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.ibet-logo-img + .ibet-logo-mark {
    display: none;
}

.ibet-logo-mark strong {
    color: #0B0B0F;
}

.ibet-rule-card {
    display: grid;
    gap: 0.65rem;
    padding: 0.95rem;
}

.ibet-rule-title {
    justify-content: flex-start;
}

.ibet-rule-title .app-icon,
.ibet-rule-warning .app-icon {
    color: #C62828;
}

.ibet-rule-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ibet-rule-list li {
    padding: 0.58rem 0.66rem;
    border-radius: 13px;
    color: #1C1C22;
    background: #F7F8FA;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.55;
}

.ibet-rule-list li.important {
    color: #C62828;
    background: #FFF1F1;
}

.ibet-rule-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.88rem;
    color: #C62828;
    background: #FFF1F1;
    font-weight: 900;
    line-height: 1.5;
}

.ibet-rule-warning p {
    margin: 0;
}

.ibet-rule-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

.accept-btn,
.decline-btn {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border-radius: 16px;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 900;
}

.accept-btn {
    background: #087443;
}

.decline-btn {
    background: #C62828;
}

@media (max-width: 760px) {
    body.public-page .site-header,
    body.public-page .app-shell,
    body.public-page .app-shell.narrow {
        width: 100%;
    }

    .odds-match-card,
    .ibet-rule-actions {
        grid-template-columns: 1fr;
    }

    .market-rate-list {
        grid-template-columns: 1fr;
    }

    .odds-values {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 390px) {
    body.public-page .category-tile {
        min-height: 72px;
        font-size: 0.56rem;
    }

    body.public-page .tile-icon {
        width: 38px;
        height: 38px;
    }

    body.public-page .bottom-nav {
        width: calc(100% - 20px);
    }

    body.public-page .bottom-nav .nav-item span:last-child {
        font-size: 0.56rem;
    }
}

.profile-avatar {
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

body.public-page .profile-copy em {
    display: none;
}

/* Play Boss white, gold, and black glass theme */
:root {
    --blue: #D4AF37;
    --blue-dark: #8A6813;
    --black: #080808;
    --text: #111111;
    --muted: #5C5543;
    --line: rgba(138, 104, 19, 0.28);
    --soft: #FFFDF7;
    --white: #FFFFFF;
    --blue-soft: #FFF6D8;
    --shadow: 0 14px 36px rgba(17, 13, 4, 0.12);
    --gold: #D4AF37;
    --gold-bright: #F3D879;
    --gold-dark: #8A6813;
    --glass-card:
        linear-gradient(135deg, rgba(243, 216, 121, 0.38), rgba(8, 8, 8, 0.09)),
        rgba(255, 255, 255, 0.76);
    --glass-card-strong:
        linear-gradient(135deg, rgba(212, 175, 55, 0.52), rgba(8, 8, 8, 0.14)),
        rgba(255, 255, 255, 0.82);
}

html,
body,
body.public-page,
.admin-page,
.admin-login-page,
.setup-page {
    color: var(--black);
    background:
        radial-gradient(circle at 8% 0%, rgba(212, 175, 55, 0.14), transparent 24rem),
        radial-gradient(circle at 100% 40%, rgba(8, 8, 8, 0.045), transparent 28rem),
        #FFFFFF;
    background-attachment: fixed;
}

body,
body.public-page,
.admin-page,
.admin-login-page,
.setup-page,
input,
textarea,
select,
button {
    color: var(--black);
}

a,
.app-icon,
.bi,
.section-kicker,
.public-page .section-heading > span:first-child,
.public-page .panel-title > span:first-child,
.public-page .result-topbar span,
.public-page .news-topbar span,
.auth-title > span,
.profile-menu-icon,
.field-label .app-icon {
    color: var(--gold-dark);
}

body.public-page .site-header,
.admin-app-header,
body.public-page .bottom-nav,
.settings-panel,
.auth-language-dropdown,
.admin-sidebar {
    border-color: rgba(138, 104, 19, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(243, 216, 121, 0.18)),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 32px rgba(17, 13, 4, 0.1);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.public-page .brand-logo,
.admin-brand .brand-logo,
.sidebar-heading img,
.auth-logo-lockup img,
.login-logo,
.setup-logo,
.telegram-logo {
    background: #080808;
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 10px 28px rgba(138, 104, 19, 0.26);
}

.public-page .brand span,
.admin-brand span,
h1,
h2,
h3,
h4,
strong,
.public-page .section-heading h1,
.public-page .section-heading h2,
.public-page .panel-title h1,
.public-page .panel-title h2,
.admin-page-title h1 {
    color: var(--black);
}

.primary-btn,
.settings-action,
body.public-page .primary-btn,
body.public-page .settings-action,
.segmented input:checked + span,
body.public-page .segmented input:checked + span,
.auth-mode-tabs a.active,
body.public-page .auth-mode-tabs a.active,
.admin-nav a.active,
.admin-pagination a.active,
.accept-btn {
    color: #080808;
    border: 1px solid rgba(138, 104, 19, 0.55);
    background: linear-gradient(135deg, #F3D879 0%, #D4AF37 52%, #A88019 100%);
    box-shadow: 0 10px 24px rgba(138, 104, 19, 0.26);
}

.primary-btn .app-icon,
.primary-btn .bi,
.settings-action .app-icon,
.settings-action .bi,
.admin-nav a.active i,
.accept-btn .app-icon {
    color: #080808;
}

.ghost-btn,
body.public-page .ghost-btn,
.icon-btn,
.agent-header-btn,
.spin-prize-trigger {
    color: var(--black);
    border-color: rgba(138, 104, 19, 0.34);
    background:
        linear-gradient(135deg, rgba(243, 216, 121, 0.32), rgba(8, 8, 8, 0.06)),
        rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 20px rgba(17, 13, 4, 0.08);
}

.ghost-btn .app-icon,
.ghost-btn .bi,
.icon-btn .app-icon,
.icon-btn .bi,
.agent-header-btn .app-icon,
.agent-header-btn .bi {
    color: var(--gold-dark);
}

.primary-btn:hover,
.primary-btn:focus-visible,
.settings-action:hover,
.settings-action:focus-visible,
.ghost-btn:hover,
.ghost-btn:focus-visible,
.icon-btn:hover,
.icon-btn:focus-visible,
.agent-header-btn:hover,
.agent-header-btn:focus-visible {
    color: #080808;
    border-color: #D4AF37;
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.agent-profile-card,
.telegram-card,
.inbox-message-card,
.odds-history-dialog,
.market-history-panel,
.spin-result-card,
.login-card,
.setup-box,
.auth-card,
body.public-page .auth-card,
.admin-panel,
.admin-stats article,
.admin-quick-grid a,
.sidebar-heading,
.admin-filter-form,
.ad-admin-row,
.live-admin-row,
.upload-preview,
.switch-row,
.match-card,
.info-card,
.form-card,
.inbox-card,
.live-card,
.league-card,
.guide-video-card,
.news-card,
.profile-hero-card,
.profile-menu-item,
.social-card,
.prediction-history-card,
.category-tile,
.app-hero-card,
.prediction-hero,
.spin-stage,
.spin-daily-login,
.spin-prize-card,
.spin-history-item,
.market-rate-card,
.odds-league-card,
.odds-match-card,
.odds-chart-row,
.odds-analysis-summary,
.market-history-row,
.market-empty-card,
.ibet-rule-card,
.ibet-rule-warning,
.live-player-card,
.result-detail-card,
.result-match-card,
.result-league-group,
.settings-panel {
    color: var(--black);
    border-color: rgba(138, 104, 19, 0.3);
    background: var(--glass-card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.app-hero-card,
.prediction-hero,
.market-topbar,
.ibet-rule-hero,
.profile-hero-card {
    color: var(--black);
    border-color: rgba(138, 104, 19, 0.38);
    background: var(--glass-card-strong);
}

.app-hero-card *,
.prediction-hero *,
.market-topbar *,
.ibet-rule-hero *,
.profile-hero-card * {
    color: var(--black);
}

.agent-contact-list a,
.agent-contact-list > div,
.profile-menu-panel,
.market-history-values span,
.odds-values span,
.ibet-rule-list li,
.agent-metric-grid span,
.submission-table td,
.submission-table th {
    color: var(--black);
    border-color: rgba(138, 104, 19, 0.24);
    background:
        linear-gradient(135deg, rgba(243, 216, 121, 0.22), rgba(8, 8, 8, 0.045)),
        rgba(255, 255, 255, 0.78);
}

.tile-icon,
.admin-quick-grid i,
.agent-profile-mark,
.telegram-mark > span,
.auth-logo-lockup > span,
.spin-daily-icon,
.profile-avatar,
.odds-team-logo,
.live-team-logo,
.team-logo-wrap {
    color: var(--black);
    border: 1px solid rgba(138, 104, 19, 0.34);
    background: linear-gradient(135deg, #F3D879, #D4AF37);
    box-shadow: 0 8px 20px rgba(138, 104, 19, 0.2);
}

.tile-icon .app-icon,
.tile-icon .bi,
.agent-profile-mark .app-icon,
.agent-profile-mark .bi,
.telegram-mark > span .app-icon,
.telegram-mark > span .bi,
.auth-logo-lockup > span .app-icon,
.auth-logo-lockup > span .bi,
.admin-quick-grid i {
    color: var(--black);
}

input,
textarea,
select,
.admin-filter-form select {
    color: var(--black);
    border-color: rgba(138, 104, 19, 0.34);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input:focus,
textarea:focus,
select:focus {
    border-color: #D4AF37;
    outline: 3px solid rgba(212, 175, 55, 0.2);
}

input::placeholder,
textarea::placeholder {
    color: #756D58;
}

body.public-page .live-tabs,
body.public-page .result-filter-bar,
body.public-page .news-filter-tabs,
.market-tabs,
.market-region-buttons,
.auth-mode-tabs {
    border-color: rgba(138, 104, 19, 0.28);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(17, 13, 4, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.public-page .live-tabs button,
body.public-page .result-filter-bar button,
body.public-page .news-filter-tabs button,
.market-tabs button,
.market-region-buttons button,
.auth-mode-tabs a {
    color: var(--black);
    border-color: rgba(138, 104, 19, 0.2);
    background: transparent;
}

body.public-page .live-tabs button.active,
body.public-page .result-filter-bar button.active,
body.public-page .news-filter-tabs button.active,
.market-tabs button.active,
.market-region-buttons button.active {
    color: #080808;
    border-color: #D4AF37;
    background: linear-gradient(135deg, #F3D879, #D4AF37);
}

body.public-page .bottom-nav .nav-item,
.bottom-nav a {
    color: #3A352A;
}

body.public-page .bottom-nav .nav-item.active,
.bottom-nav a.active {
    color: #080808;
    background: linear-gradient(135deg, rgba(243, 216, 121, 0.82), rgba(212, 175, 55, 0.52));
    box-shadow: 0 8px 20px rgba(138, 104, 19, 0.18);
}

.admin-nav a {
    color: var(--black);
}

.admin-nav i,
.admin-page-title span,
.admin-stats strong,
.agent-metric-grid strong,
.profile-menu-icon,
.social-card > .app-icon,
.social-card > .bi,
.agent-contact-list .app-icon,
.agent-contact-list .bi,
.spin-topbar span,
.market-topbar span,
.ibet-rule-kicker,
.odds-league-head span,
.ibet-rule-title span,
.news-card em,
.inbox-card em {
    color: var(--gold-dark);
}

.admin-nav a.active {
    color: #080808;
}

.submission-table {
    border-color: rgba(138, 104, 19, 0.28);
    background: rgba(255, 255, 255, 0.74);
}

.submission-table thead th {
    color: #080808;
    background: linear-gradient(135deg, rgba(243, 216, 121, 0.56), rgba(8, 8, 8, 0.08));
}

.submission-table tbody tr:hover td {
    background: rgba(243, 216, 121, 0.26);
}

.notice {
    color: var(--black);
    border-color: rgba(138, 104, 19, 0.3);
    background: var(--glass-card);
}

.notice.success {
    color: #173F24;
    border-color: rgba(8, 116, 67, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(8, 116, 67, 0.12)), #FFFFFF;
}

.notice.error,
.danger-btn,
.decline-btn {
    color: #FFFFFF;
}

.modal-close {
    color: var(--black);
    border-color: rgba(138, 104, 19, 0.32);
    background: linear-gradient(135deg, #F3D879, #D4AF37);
}

.agent-profile-modal,
.telegram-modal,
.inbox-message-modal,
.odds-history-modal,
.spin-result-modal,
.live-player-modal {
    background: rgba(8, 8, 8, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.muted,
small,
.admin-stats span,
.admin-quick-grid span,
.sidebar-heading span,
.live-admin-summary span,
.live-admin-summary small,
.agent-contact-list small,
.news-card small,
.profile-copy span,
.profile-copy p {
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .primary-btn:hover,
    .primary-btn:focus-visible,
    .settings-action:hover,
    .settings-action:focus-visible,
    .ghost-btn:hover,
    .ghost-btn:focus-visible,
    .icon-btn:hover,
    .icon-btn:focus-visible,
    .agent-header-btn:hover,
    .agent-header-btn:focus-visible {
        transform: none;
    }
}

/* Play Boss dark sports app redesign */
:root {
    --blue: #FFD60A;
    --blue-dark: #FFD60A;
    --black: #050505;
    --text: #FFFFFF;
    --muted: #A6A6A6;
    --line: rgba(255, 214, 10, 0.2);
    --soft: #0D0E10;
    --white: #FFFFFF;
    --blue-soft: rgba(255, 214, 10, 0.12);
    --danger: #FF4D4F;
    --success: #34D399;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
    --yellow: #FFD60A;
    --yellow-soft: #FFF176;
    --surface: #0D0E10;
    --surface-raised: #151619;
    --surface-glass: linear-gradient(145deg, rgba(255, 214, 10, 0.08), rgba(255, 255, 255, 0.018) 40%, rgba(0, 0, 0, 0.3)), rgba(15, 16, 18, 0.92);
    --surface-glass-strong: linear-gradient(145deg, rgba(255, 214, 10, 0.16), rgba(255, 255, 255, 0.025) 45%, rgba(0, 0, 0, 0.42)), rgba(16, 17, 19, 0.96);
}

html {
    background: #050505;
}

body,
body.public-page,
body.public-page.auth-page,
.admin-page,
.admin-login-page,
.setup-page {
    color: #FFFFFF;
    background:
        radial-gradient(circle at 12% -5%, rgba(255, 214, 10, 0.13), transparent 22rem),
        radial-gradient(circle at 96% 18%, rgba(255, 214, 10, 0.055), transparent 28rem),
        linear-gradient(180deg, #050505, #08090A 58%, #050505);
    background-attachment: fixed;
}

body.public-page::before,
.admin-page::before,
.admin-login-page::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

body,
input,
textarea,
select,
button {
    color: #FFFFFF;
}

a {
    color: #FFD60A;
}

p,
dd,
li {
    color: #D8D8D8;
}

small,
.muted,
.admin-stats span,
.admin-quick-grid span,
.sidebar-heading span,
.live-admin-summary span,
.live-admin-summary small,
.agent-contact-list small,
.news-card small,
.profile-copy span,
.profile-copy p {
    color: #A6A6A6;
}

h1,
h2,
h3,
h4,
strong,
.public-page .brand span,
.admin-brand span,
.public-page .section-heading h1,
.public-page .section-heading h2,
.public-page .panel-title h1,
.public-page .panel-title h2,
.admin-page-title h1,
.agent-profile-card h2,
.news-card strong,
.odds-team strong,
.market-history-row > strong,
.market-history-values b,
.odds-values b,
.odds-league-head h2,
.ibet-rule-title h2,
.odds-analysis-summary strong,
.odds-chart-label strong,
.spin-topbar h1,
.spin-daily-copy strong,
.spin-prize-card strong,
.spin-history-item strong {
    color: #FFFFFF;
}

.app-icon,
.bi,
.section-kicker,
.public-page .section-heading > span:first-child,
.public-page .panel-title > span:first-child,
.public-page .result-topbar span,
.public-page .news-topbar span,
.auth-title > span,
.profile-menu-icon,
.field-label .app-icon,
.admin-nav i,
.admin-page-title span,
.admin-stats strong,
.agent-metric-grid strong,
.social-card > .app-icon,
.agent-contact-list .app-icon,
.spin-topbar span,
.market-topbar span,
.ibet-rule-kicker,
.odds-league-head span,
.ibet-rule-title span,
.news-card em,
.inbox-card em {
    color: #FFD60A;
}

body.public-page .site-header {
    position: sticky;
    top: 10px;
    z-index: 90;
    width: min(1180px, calc(100% - 20px));
    min-height: 72px;
    margin: 10px auto 0;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: 22px;
    background: rgba(10, 11, 12, 0.86);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.public-page .brand {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-width: 0;
}

.public-page .brand-logo,
.admin-brand .brand-logo,
.sidebar-heading img,
.auth-logo-lockup img,
.login-logo,
.setup-logo,
.telegram-logo {
    border: 1px solid rgba(255, 214, 10, 0.5);
    background: #050505;
    box-shadow: 0 0 0 4px rgba(255, 214, 10, 0.06), 0 10px 28px rgba(0, 0, 0, 0.5);
}

.public-page .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 15px;
}

.brand-copy {
    display: grid;
    min-width: 0;
    gap: 0.02rem;
    line-height: 1;
}

.brand-copy small {
    color: #FFD60A;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.brand-copy strong {
    color: #FFFFFF;
    font-size: 1.04rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.site-header-actions {
    gap: 0.4rem;
}

.agent-header-btn,
.icon-btn,
.ghost-btn,
body.public-page .ghost-btn,
.spin-prize-trigger,
.modal-close {
    color: #FFFFFF;
    border: 1px solid rgba(255, 214, 10, 0.22);
    background: #151619;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.agent-header-btn .app-icon,
.icon-btn .app-icon,
.ghost-btn .app-icon,
.spin-prize-trigger .app-icon,
.modal-close .app-icon {
    color: #FFD60A;
}

.agent-header-btn:hover,
.icon-btn:hover,
.ghost-btn:hover,
.spin-prize-trigger:hover,
.modal-close:hover {
    color: #050505;
    border-color: #FFD60A;
    background: #FFD60A;
}

.agent-header-btn:hover .app-icon,
.icon-btn:hover .app-icon,
.ghost-btn:hover .app-icon,
.spin-prize-trigger:hover .app-icon,
.modal-close:hover .app-icon {
    color: #050505;
}

body.public-page .app-shell,
body.public-page .app-shell.narrow {
    width: min(1180px, 100%);
    padding: 1.35rem 1rem calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

body.public-page .app-shell.narrow {
    width: min(900px, 100%);
}

.home-command-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.6fr);
    min-height: 270px;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: clamp(1.35rem, 4vw, 3rem);
    overflow: hidden;
    border: 1px solid rgba(255, 214, 10, 0.24);
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 50%, rgba(255, 214, 10, 0.22), transparent 15rem),
        linear-gradient(120deg, rgba(255, 214, 10, 0.12), transparent 42%),
        #0E0F11;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.home-command-hero::before {
    position: absolute;
    inset: auto -8% -68% auto;
    width: 360px;
    height: 360px;
    border: 70px solid rgba(255, 214, 10, 0.045);
    border-radius: 50%;
    content: "";
}

.home-command-copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.75rem;
}

.home-command-kicker {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #FFD60A;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-command-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FFD60A;
    box-shadow: 0 0 0 5px rgba(255, 214, 10, 0.1), 0 0 18px #FFD60A;
}

.home-command-copy h1 {
    margin: 0;
    max-width: 720px;
    color: #FFFFFF;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-transform: uppercase;
}

.home-command-copy h1 em {
    color: #FFD60A;
    font-style: normal;
}

.home-command-copy p {
    max-width: 580px;
    margin: 0;
    color: #B8B8B8;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.6;
}

.home-command-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-command-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    min-height: 34px;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(255, 214, 10, 0.18);
    border-radius: 999px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.65rem;
    font-weight: 800;
}

.home-command-badges .app-icon {
    color: #FFD60A;
}

.home-command-mark {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    justify-self: end;
    width: min(250px, 100%);
    aspect-ratio: 1;
}

.home-command-mark span {
    position: absolute;
    inset: 6%;
    border: 1px solid rgba(255, 214, 10, 0.28);
    border-radius: 50%;
    box-shadow:
        0 0 0 24px rgba(255, 214, 10, 0.035),
        0 0 0 48px rgba(255, 214, 10, 0.018),
        inset 0 0 60px rgba(255, 214, 10, 0.1);
}

.home-command-mark img {
    position: relative;
    width: 68%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 214, 10, 0.45);
    border-radius: 28%;
    object-fit: cover;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.55), 0 0 42px rgba(255, 214, 10, 0.12);
    transform: rotate(4deg);
}

.home-section-heading {
    margin-top: 0.2rem;
}

.section-heading,
.panel-title,
.section-title-row {
    margin-bottom: 0.82rem;
}

.section-kicker,
.public-page .section-heading > span:first-child,
.public-page .panel-title > span:first-child,
.public-page .result-topbar span,
.public-page .news-topbar span {
    color: #FFD60A;
    letter-spacing: 0.13em;
}

.slide-section,
.quick-grid-section,
.news-shell,
.live-shell,
.market-shell,
.odds-shell,
.ibet-rule-shell {
    margin-bottom: 1.2rem;
}

body.public-page .ad-slider {
    min-height: 150px;
    max-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: 26px;
    background: #101113;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

body.public-page .ad-slide {
    border-radius: 26px;
}

.slider-dots button {
    background: #3A3A3A;
}

.slider-dots button.active {
    width: 28px;
    background: #FFD60A;
}

body.public-page .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.72rem;
}

body.public-page .category-tile {
    position: relative;
    min-height: 124px;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.9rem 0.72rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 22px;
    color: #FFFFFF;
    background:
        linear-gradient(145deg, rgba(255, 214, 10, 0.08), transparent 42%),
        #111214;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.public-page .category-tile::after {
    position: absolute;
    right: -24px;
    bottom: -28px;
    width: 74px;
    height: 74px;
    border: 18px solid rgba(255, 214, 10, 0.04);
    border-radius: 50%;
    content: "";
}

body.public-page .category-tile:hover,
body.public-page .category-tile:focus-visible {
    border-color: rgba(255, 214, 10, 0.6);
    background:
        linear-gradient(145deg, rgba(255, 214, 10, 0.16), transparent 52%),
        #17181A;
    transform: translateY(-4px);
}

body.public-page .tile-icon,
.profile-menu-icon,
.agent-profile-mark,
.telegram-mark > span,
.auth-logo-lockup > span,
.spin-daily-icon,
.admin-quick-grid i,
.odds-team-logo,
.live-team-logo,
.team-logo-wrap {
    display: grid;
    place-items: center;
    color: #FFD60A;
    border: 1px solid rgba(255, 214, 10, 0.24);
    background: rgba(255, 214, 10, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.public-page .tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}

body.public-page .tile-icon .app-icon,
.profile-menu-icon .app-icon,
.agent-profile-mark .app-icon,
.telegram-mark > span .app-icon,
.auth-logo-lockup > span .app-icon,
.admin-quick-grid i {
    color: #FFD60A;
}

body.public-page .tile-label {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.25;
}

.agent-profile-card,
.telegram-card,
.inbox-message-card,
.odds-history-dialog,
.market-history-panel,
.spin-result-card,
.login-card,
.setup-box,
.auth-card,
body.public-page .auth-card,
.admin-panel,
.admin-stats article,
.admin-quick-grid a,
.sidebar-heading,
.admin-filter-form,
.ad-admin-row,
.live-admin-row,
.upload-preview,
.switch-row,
.match-card,
.info-card,
.form-card,
.inbox-card,
.live-card,
.league-card,
.guide-video-card,
.news-card,
.profile-hero-card,
.profile-menu-item,
.profile-menu-link,
.social-card,
.prediction-history-card,
.app-hero-card,
.prediction-hero,
.spin-stage,
.spin-daily-login,
.spin-prize-card,
.spin-history-item,
.market-rate-card,
.odds-league-card,
.odds-match-card,
.odds-chart-row,
.odds-analysis-summary,
.market-history-row,
.market-empty-card,
.ibet-rule-card,
.ibet-rule-warning,
.live-player-card,
.result-detail-card,
.result-match-card,
.result-league-group,
.settings-panel,
.rules-accordion {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.16);
    background: var(--surface-glass);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.app-hero-card,
.prediction-hero,
.market-topbar,
.ibet-rule-hero,
.profile-hero-card {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.25);
    background: var(--surface-glass-strong);
}

.app-hero-card *,
.prediction-hero *,
.market-topbar *,
.ibet-rule-hero *,
.profile-hero-card * {
    color: #FFFFFF;
}

.agent-contact-list a,
.agent-contact-list > div,
.profile-menu-panel,
.market-history-values span,
.odds-values span,
.ibet-rule-list li,
.agent-metric-grid span,
.submission-table td,
.submission-table th {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.12);
    background: rgba(255, 255, 255, 0.035);
}

.agent-contact-list a:hover,
.profile-menu-item:hover,
.profile-menu-link:hover,
.social-card:hover {
    border-color: rgba(255, 214, 10, 0.52);
    background: rgba(255, 214, 10, 0.08);
}

.primary-btn,
.settings-action,
body.public-page .primary-btn,
body.public-page .settings-action,
.segmented input:checked + span,
body.public-page .segmented input:checked + span,
.auth-mode-tabs a.active,
body.public-page .auth-mode-tabs a.active,
.admin-nav a.active,
.admin-pagination a.active,
.accept-btn {
    color: #050505;
    border: 1px solid #FFD60A;
    background: #FFD60A;
    box-shadow: 0 10px 28px rgba(255, 214, 10, 0.18);
}

.primary-btn .app-icon,
.primary-btn .bi,
.settings-action .app-icon,
.settings-action .bi,
.admin-nav a.active i,
.accept-btn .app-icon {
    color: #050505;
}

.primary-btn:hover,
.settings-action:hover,
.auth-mode-tabs a.active:hover {
    color: #050505;
    background: #FFF176;
    filter: none;
    transform: translateY(-2px);
}

input,
textarea,
select,
.admin-filter-form select {
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: #111214;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

input:focus,
textarea:focus,
select:focus {
    border-color: #FFD60A;
    outline: 3px solid rgba(255, 214, 10, 0.12);
    background: #151619;
}

input::placeholder,
textarea::placeholder {
    color: #737373;
}

option {
    color: #FFFFFF;
    background: #111214;
}

body.public-page .live-tabs,
body.public-page .result-filter-bar,
body.public-page .news-filter-tabs,
.market-tabs,
.market-region-buttons,
.auth-mode-tabs {
    border: 1px solid rgba(255, 214, 10, 0.14);
    background: #0D0E10;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

body.public-page .live-tabs button,
body.public-page .result-filter-bar button,
body.public-page .news-filter-tabs button,
.market-tabs button,
.market-region-buttons button,
.auth-mode-tabs a {
    color: #A6A6A6;
    border-color: transparent;
    background: transparent;
}

body.public-page .live-tabs button.active,
body.public-page .result-filter-bar button.active,
body.public-page .news-filter-tabs button.active,
.market-tabs button.active,
.market-region-buttons button.active,
.auth-mode-tabs a.active {
    color: #050505;
    border-color: #FFD60A;
    background: #FFD60A;
}

body.public-page .bottom-nav {
    position: fixed;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
    left: 50%;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(580px, calc(100% - 24px));
    height: 76px;
    padding: 0.44rem;
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: 25px;
    background: rgba(10, 11, 12, 0.93);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.62);
    transform: translateX(-50%);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
}

body.public-page .bottom-nav .nav-item,
.bottom-nav a {
    position: relative;
    display: grid;
    min-width: 0;
    height: 64px;
    place-items: center;
    align-content: center;
    gap: 0.18rem;
    margin: 0;
    border-radius: 18px;
    color: #777777;
    background: transparent;
}

.bottom-nav .nav-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
}

body.public-page .bottom-nav .nav-item .app-icon {
    color: currentColor;
    font-size: 1.15rem;
}

body.public-page .bottom-nav .nav-item span:last-child {
    color: currentColor;
    font-size: 0.56rem;
    font-weight: 800;
}

body.public-page .bottom-nav .nav-item.active {
    color: #FFD60A;
    background: rgba(255, 214, 10, 0.075);
    box-shadow: inset 0 0 0 1px rgba(255, 214, 10, 0.12);
}

body.public-page .bottom-nav .nav-item-featured .nav-icon {
    width: 46px;
    height: 46px;
    margin-top: -26px;
    border: 5px solid #08090A;
    border-radius: 50%;
    color: #050505;
    background: #FFD60A;
    box-shadow: 0 10px 28px rgba(255, 214, 10, 0.25);
}

body.public-page .bottom-nav .nav-item-featured .nav-icon .app-icon {
    color: #050505;
    font-size: 1.3rem;
}

.spin-nav-dot,
.mail-badge {
    border-color: #08090A;
    background: #FFD60A;
    color: #050505;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    align-items: center;
}

body.public-page.auth-page .app-shell {
    width: min(520px, 100%);
    padding-top: 4.5rem;
    padding-bottom: 4rem;
}

body.public-page .auth-card,
.login-card,
.setup-box {
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 214, 10, 0.13), transparent 15rem),
        #0D0E10;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.auth-title span,
.auth-language-dropdown summary,
.auth-links a {
    color: #FFD60A;
}

.auth-title h1,
.auth-title p,
.login-card h1,
.login-card p,
.login-card small {
    color: #FFFFFF;
}

.auth-language-dropdown,
.auth-language-menu,
.language-picker-menu {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.2);
    background: #111214;
}

.auth-language-menu a,
.language-picker-menu a {
    color: #D8D8D8;
}

.auth-language-menu a.active,
.language-picker-menu a.active {
    color: #050505;
    background: #FFD60A;
}

.profile-hero-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 150px;
    padding: 1.25rem;
    border-radius: 28px;
}

.profile-avatar {
    border: 2px solid #FFD60A;
    background: #151619;
    box-shadow: 0 0 0 7px rgba(255, 214, 10, 0.07);
}

.profile-menu-item,
.profile-menu-link {
    overflow: hidden;
    border-radius: 18px;
}

.profile-menu-item > summary,
.profile-menu-link {
    min-height: 68px;
    color: #FFFFFF;
}

.profile-menu-item strong,
.profile-menu-link strong {
    color: #FFFFFF;
}

.news-topbar,
.result-topbar,
.market-topbar,
.ibet-rule-hero {
    padding: 1rem;
    border: 1px solid rgba(255, 214, 10, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 214, 10, 0.1), transparent 48%),
        #101113;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.news-topbar h1,
.result-topbar h1,
.market-topbar h1,
.ibet-rule-hero h1 {
    color: #FFFFFF;
}

.news-card,
.live-card,
.league-card,
.market-rate-card,
.odds-league-card {
    border-radius: 22px;
}

.news-card img,
.live-card img,
.league-card img {
    background: #08090A;
}

.news-card:hover,
.live-card:hover,
.market-rate-card:hover,
.odds-match-card:hover {
    border-color: rgba(255, 214, 10, 0.55);
}

.prediction-hero,
.form-card,
.rules-accordion {
    border-radius: 24px;
}

.team-box {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.035);
}

.versus {
    color: #050505;
    background: #FFD60A;
}

.notice {
    color: #FFFFFF;
    border: 1px solid rgba(255, 214, 10, 0.2);
    background: #151619;
}

.notice.success {
    color: #D9FFE9;
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.1);
}

.notice.error {
    color: #FFE5E5;
    border-color: rgba(255, 77, 79, 0.35);
    background: rgba(255, 77, 79, 0.1);
}

.agent-profile-modal,
.telegram-modal,
.inbox-message-modal,
.odds-history-modal,
.spin-result-modal,
.live-player-modal {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.admin-page {
    background:
        radial-gradient(circle at 85% 0%, rgba(255, 214, 10, 0.09), transparent 25rem),
        #070809;
}

.admin-app-header {
    border-color: rgba(255, 214, 10, 0.16);
    background: rgba(10, 11, 12, 0.92);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.admin-sidebar {
    border-color: rgba(255, 214, 10, 0.14);
    background: #0D0E10;
    box-shadow: 14px 0 34px rgba(0, 0, 0, 0.26);
}

.sidebar-heading {
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 214, 10, 0.1), transparent),
        #151619;
}

.admin-nav a {
    min-height: 50px;
    color: #B8B8B8;
    border-radius: 15px;
}

.admin-nav a:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.045);
}

.admin-nav a.active {
    color: #050505;
    background: #FFD60A;
    box-shadow: 0 10px 26px rgba(255, 214, 10, 0.16);
}

.admin-page-title {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 214, 10, 0.13);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.admin-panel {
    padding: 1rem;
    border-radius: 22px;
}

.admin-stats article {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.admin-stats article::after {
    position: absolute;
    right: -18px;
    bottom: -24px;
    width: 70px;
    height: 70px;
    border: 16px solid rgba(255, 214, 10, 0.04);
    border-radius: 50%;
    content: "";
}

.admin-stats strong {
    color: #FFD60A;
}

.admin-quick-grid a {
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 214, 10, 0.08), transparent 45%),
        #111214;
}

.admin-quick-grid strong {
    color: #FFFFFF;
}

.submission-table-wrap {
    border: 1px solid rgba(255, 214, 10, 0.12);
    border-radius: 18px;
    background: #0D0E10;
}

.submission-table {
    color: #FFFFFF;
    background: transparent;
}

.submission-table thead th {
    color: #FFD60A;
    background: #151619;
}

.submission-table tbody td {
    color: #D8D8D8;
    border-color: rgba(255, 255, 255, 0.055);
    background: transparent;
}

.submission-table tbody tr:hover td {
    background: rgba(255, 214, 10, 0.055);
}

.admin-filter-form,
.switch-row,
.ad-admin-row,
.live-admin-row,
.upload-preview {
    border-radius: 16px;
    background: #111214;
}

.spin-stage {
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 214, 10, 0.09), transparent 16rem),
        #0D0E10;
}

.spin-daily-login,
.spin-unit-badge,
.spin-prize-card,
.spin-history-item {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.18);
    background: #151619;
}

.spin-daily-copy small,
.spin-unit-badge,
.spin-rank {
    color: #FFD60A;
}

@media (max-width: 760px) {
    body.public-page .site-header {
        top: 7px;
        width: calc(100% - 14px);
        margin-top: 7px;
        border-radius: 19px;
    }

    .agent-header-btn span {
        display: none;
    }

    body.public-page .app-shell,
    body.public-page .app-shell.narrow {
        padding: 1rem 0.75rem calc(7.4rem + env(safe-area-inset-bottom, 0px));
    }

    .home-command-hero {
        grid-template-columns: minmax(0, 1fr) 110px;
        min-height: 210px;
        padding: 1.1rem;
        border-radius: 24px;
    }

    .home-command-copy {
        gap: 0.55rem;
    }

    .home-command-copy h1 {
        font-size: clamp(1.8rem, 10vw, 2.75rem);
    }

    .home-command-copy p {
        display: -webkit-box;
        max-width: 95%;
        overflow: hidden;
        font-size: 0.69rem;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .home-command-mark {
        width: 110px;
    }

    .home-command-badges span:last-child {
        display: none;
    }

    body.public-page .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    body.public-page .category-tile {
        min-height: 102px;
        padding: 0.68rem 0.55rem;
        border-radius: 18px;
    }

    body.public-page .tile-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    body.public-page .bottom-nav {
        width: calc(100% - 16px);
        height: 72px;
        padding: 0.36rem;
        border-radius: 23px;
    }

    body.public-page .bottom-nav .nav-item,
    .bottom-nav a {
        height: 60px;
        border-radius: 17px;
    }

    .profile-hero-card {
        min-height: 130px;
        padding: 1rem;
        border-radius: 23px;
    }

    .news-topbar,
    .result-topbar,
    .market-topbar,
    .ibet-rule-hero {
        border-radius: 20px;
    }
}

@media (max-width: 390px) {
    .brand-copy small {
        display: none;
    }

    .home-command-hero {
        grid-template-columns: minmax(0, 1fr) 88px;
        min-height: 196px;
    }

    .home-command-mark {
        width: 88px;
    }

    body.public-page .category-tile {
        min-height: 94px;
    }
}

body.public-page.auth-page .auth-form label > span,
body.public-page.auth-page .auth-form .field-label,
body.public-page.auth-page .auth-form legend {
    color: #FFFFFF;
}

body.public-page.auth-page .auth-form label > span .app-icon,
body.public-page.auth-page .auth-form .field-label .app-icon,
body.public-page.auth-page .auth-form legend .app-icon {
    color: #FFD60A;
}

body.public-page.auth-page .auth-form input,
body.public-page.auth-page .auth-form select,
body.public-page.auth-page .phone-row input,
body.public-page.auth-page .phone-row select {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.12);
    background: #151619;
}

body.public-page.auth-page .auth-form input:focus,
body.public-page.auth-page .auth-form select:focus {
    border-color: #FFD60A;
    outline: 3px solid rgba(255, 214, 10, 0.12);
}

body.public-page .icon-btn,
body.public-page .agent-header-btn {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.22);
    background: #151619;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 18px rgba(0, 0, 0, 0.22);
}

body.public-page .icon-btn .app-icon,
body.public-page .agent-header-btn .app-icon {
    color: #FFD60A;
}

body.public-page .icon-btn:hover,
body.public-page .agent-header-btn:hover {
    color: #050505;
    border-color: #FFD60A;
    background: #FFD60A;
}

body.public-page .icon-btn:hover .app-icon,
body.public-page .agent-header-btn:hover .app-icon {
    color: #050505;
}

body.public-page .fallback-slide {
    min-height: 210px;
    background:
        radial-gradient(circle at 82% 50%, rgba(255, 214, 10, 0.2), transparent 12rem),
        linear-gradient(135deg, rgba(255, 214, 10, 0.12), transparent 55%),
        #101113;
}

.fallback-promo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    min-height: 210px;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
}

.fallback-promo > div {
    display: grid;
    gap: 0.45rem;
}

.fallback-promo span {
    color: #FFD60A;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.fallback-promo strong {
    color: #FFFFFF;
    font-size: clamp(1.6rem, 5vw, 2.7rem);
    font-weight: 950;
    line-height: 0.95;
    text-transform: uppercase;
}

.fallback-promo small {
    max-width: 28rem;
    color: #A8A8A8;
    font-size: 0.72rem;
    font-weight: 700;
}

body.public-page .fallback-promo img {
    width: min(100%, 140px);
    height: auto;
    justify-self: end;
    object-fit: contain;
    border: 1px solid rgba(255, 214, 10, 0.35);
    border-radius: 28px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 214, 10, 0.12);
}

@media (max-width: 520px) {
    .fallback-promo {
        grid-template-columns: minmax(0, 1fr) 88px;
        min-height: 170px;
        padding: 1rem;
    }

    body.public-page .fallback-promo img {
        border-radius: 20px;
    }
}

/* Keep the dashboard settings control visually consistent on touch and focus. */
body.public-page .site-header [data-settings-toggle],
body.public-page .site-header [data-settings-toggle]:hover,
body.public-page .site-header [data-settings-toggle]:focus,
body.public-page .site-header [data-settings-toggle]:focus-visible,
body.public-page .site-header [data-settings-toggle]:active,
body.public-page .site-header [data-settings-toggle][aria-expanded="true"] {
    color: #FFD60A;
    border-color: rgba(255, 214, 10, 0.42);
    background: #111214;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 8px 20px rgba(0, 0, 0, 0.3);
    filter: none;
    transform: none;
    -webkit-tap-highlight-color: transparent;
}

body.public-page .site-header [data-settings-toggle] .app-icon,
body.public-page .site-header [data-settings-toggle]:hover .app-icon,
body.public-page .site-header [data-settings-toggle]:focus .app-icon,
body.public-page .site-header [data-settings-toggle]:focus-visible .app-icon,
body.public-page .site-header [data-settings-toggle]:active .app-icon,
body.public-page .site-header [data-settings-toggle][aria-expanded="true"] .app-icon {
    color: #FFD60A;
}

body.public-page .site-header [data-settings-toggle]:focus-visible {
    outline: 3px solid rgba(255, 214, 10, 0.18);
    outline-offset: 2px;
}

body.public-page [data-settings-panel] {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.34);
    background: rgba(13, 14, 16, 0.97);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.58);
}

body.public-page [data-settings-panel] .settings-label {
    color: #FFFFFF;
}

body.public-page [data-settings-panel] .settings-label .app-icon {
    color: #FFD60A;
}

body.public-page [data-settings-panel] .language-picker summary {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.22);
    background: #151619;
}

body.public-page [data-settings-panel] .language-picker summary .app-icon {
    color: #FFD60A;
}

body.public-page [data-settings-panel] .language-picker-menu {
    border-color: rgba(255, 214, 10, 0.22);
    background: #111214;
}

body.public-page [data-settings-panel] .language-picker-menu a {
    color: #FFFFFF;
}

body.public-page [data-settings-panel] .language-picker-menu a:hover {
    color: #FFD60A;
    background: rgba(255, 214, 10, 0.08);
}

body.public-page [data-settings-panel] .language-picker-menu a.active {
    color: #050505;
    background: #FFD60A;
}

body.public-page .site-header .agent-header-btn {
    min-height: 42px;
    padding: 0.48rem 0.68rem;
    gap: 0.38rem;
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.32);
    background: #111214;
}

body.public-page .site-header .agent-header-btn .app-icon {
    color: #FFD60A;
    font-size: 1.05rem;
}

body.public-page .site-header .agent-header-btn span {
    display: inline;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.public-page .site-header .agent-header-btn:hover,
body.public-page .site-header .agent-header-btn:focus-visible,
body.public-page .site-header .agent-header-btn:active,
body.public-page .site-header .agent-header-btn[aria-expanded="true"] {
    color: #050505;
    border-color: #FFD60A;
    background: #FFD60A;
}

body.public-page .site-header .agent-header-btn:hover .app-icon,
body.public-page .site-header .agent-header-btn:focus-visible .app-icon,
body.public-page .site-header .agent-header-btn:active .app-icon,
body.public-page .site-header .agent-header-btn[aria-expanded="true"] .app-icon,
body.public-page .site-header .agent-header-btn:hover span,
body.public-page .site-header .agent-header-btn:focus-visible span,
body.public-page .site-header .agent-header-btn:active span,
body.public-page .site-header .agent-header-btn[aria-expanded="true"] span {
    color: #050505;
}

@media (max-width: 390px) {
    body.public-page .site-header .agent-header-btn {
        padding-inline: 0.52rem;
    }

    body.public-page .site-header .agent-header-btn span {
        font-size: 0.58rem;
    }
}

/* Data-heavy public pages: one consistent dark visual system. */
body.public-page.live-page .result-topbar .icon-btn,
body.public-page.live-score-page .result-topbar .icon-btn,
body.public-page.inbox-page .result-topbar .icon-btn,
body.public-page.news-page .news-topbar .icon-btn,
body.public-page.market-page .market-topbar .icon-btn,
body.public-page.odds-page .market-topbar .icon-btn {
    color: #FFD60A;
    border-color: rgba(255, 214, 10, 0.36);
    background: #151619;
    box-shadow: none;
}

body.public-page.live-page .result-topbar .icon-btn .app-icon,
body.public-page.live-score-page .result-topbar .icon-btn .app-icon,
body.public-page.inbox-page .result-topbar .icon-btn .app-icon,
body.public-page.news-page .news-topbar .icon-btn .app-icon,
body.public-page.market-page .market-topbar .icon-btn .app-icon,
body.public-page.odds-page .market-topbar .icon-btn .app-icon {
    color: #FFD60A;
}

body.public-page.live-page .news-state,
body.public-page.live-score-page .news-state,
body.public-page.inbox-page .news-state,
body.public-page.market-page .news-state,
body.public-page.odds-page .news-state {
    color: #FFD60A;
    border-color: rgba(255, 214, 10, 0.18);
    background: #111214;
    box-shadow: none;
}

body.public-page.live-page .result-empty,
body.public-page.live-score-page .result-empty,
body.public-page.live-score-page .result-inline-state,
body.public-page.inbox-page .result-empty,
body.public-page.market-page .market-empty-card,
body.public-page.odds-page .market-empty-card {
    color: #A8A8A8;
    border-color: rgba(255, 214, 10, 0.18);
    background: #111214;
    box-shadow: none;
}

/* Live */
body.public-page.live-page .live-section-title h2,
body.public-page.live-page .live-card-head strong,
body.public-page.live-page .live-team strong,
body.public-page.live-page .live-player-head h2,
body.public-page.live-page .live-player-status strong {
    color: #FFFFFF;
}

body.public-page.live-page .live-section-title span {
    color: #FFD60A;
    background: rgba(255, 214, 10, 0.1);
}

body.public-page.live-page .live-card {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.16);
    background: #111214;
}

body.public-page.live-page .live-card.is-live {
    border-color: rgba(255, 77, 79, 0.32);
}

body.public-page.live-page .live-time,
body.public-page.live-page .live-player-head span,
body.public-page.live-page .live-player-status span,
body.public-page.live-page .stream-choice-label {
    color: #A8A8A8;
}

body.public-page.live-page .live-team img {
    border-color: rgba(255, 214, 10, 0.24);
    background: #08090A;
}

body.public-page.live-page .live-pill {
    color: #FFD60A;
    background: rgba(255, 214, 10, 0.1);
}

body.public-page.live-page .live-card.is-live .live-pill {
    color: #FFB4B5;
    background: rgba(255, 77, 79, 0.14);
}

body.public-page.live-page .live-card-cue {
    color: #050505;
    background: #FFD60A;
}

body.public-page.live-page .live-player-card {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.22);
    background: #0D0E10;
}

body.public-page.live-page .live-player-status,
body.public-page.live-page .stream-choice-buttons button {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.16);
    background: #151619;
}

body.public-page.live-page .stream-choice-buttons button.active {
    color: #050505;
    border-color: #FFD60A;
    background: #FFD60A;
}

body.public-page.live-page .live-watermark {
    background: #08090A;
}

/* Results */
body.public-page.live-score-page .date-icon-control {
    color: #FFD60A;
    border-color: rgba(255, 214, 10, 0.36);
    background: #151619;
    box-shadow: none;
}

body.public-page.live-score-page .date-icon-control .app-icon {
    color: #FFD60A;
}

body.public-page.live-score-page .result-matches-panel {
    color: #FFFFFF;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.public-page.live-score-page .result-section-title h2,
body.public-page.live-score-page .league-identity strong,
body.public-page.live-score-page .result-team strong,
body.public-page.live-score-page .result-detail-head h2,
body.public-page.live-score-page .standings-group h3,
body.public-page.live-score-page .event-section h3,
body.public-page.live-score-page .stat-values strong,
body.public-page.live-score-page .details-score-card strong {
    color: #FFFFFF;
}

body.public-page.live-score-page .result-section-title span,
body.public-page.live-score-page .result-detail-head span,
body.public-page.live-score-page .event-row em,
body.public-page.live-score-page .match-meta-strip span,
body.public-page.live-score-page .details-score-card small,
body.public-page.live-score-page .stat-values span {
    color: #A8A8A8;
}

body.public-page.live-score-page .league-card,
body.public-page.live-score-page .result-match-card,
body.public-page.live-score-page .result-detail-panel,
body.public-page.live-score-page .details-score-card,
body.public-page.live-score-page .event-section,
body.public-page.live-score-page .standings-group,
body.public-page.live-score-page .h2h-stat {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.16);
    background: #111214;
    box-shadow: none;
}

body.public-page.live-score-page .result-team img,
body.public-page.live-score-page .league-identity img {
    border-color: rgba(255, 214, 10, 0.2);
    background: #08090A;
}

body.public-page.live-score-page .result-card-cue {
    color: #FFD60A;
    background: rgba(255, 214, 10, 0.12);
}

body.public-page.live-score-page .match-status.is-upcoming {
    color: #FFD60A;
    background: rgba(255, 214, 10, 0.1);
}

body.public-page.live-score-page .match-status.is-live {
    color: #FFB4B5;
    background: rgba(255, 77, 79, 0.14);
}

body.public-page.live-score-page .match-status.is-finished {
    color: #6EE7B7;
    background: rgba(52, 211, 153, 0.12);
}

body.public-page.live-score-page .result-filter-bar button.active em {
    color: #FFD60A;
    background: #050505;
}

body.public-page.live-score-page .result-tabs {
    padding: 0.3rem;
    border: 1px solid rgba(255, 214, 10, 0.14);
    border-radius: 16px;
    background: #0D0E10;
}

body.public-page.live-score-page .result-tabs button {
    color: #A8A8A8;
    border-color: transparent;
    background: transparent;
}

body.public-page.live-score-page .result-tabs button.active {
    color: #050505;
    border-color: #FFD60A;
    background: #FFD60A;
}

body.public-page.live-score-page .standing-table-wrap {
    border-color: rgba(255, 214, 10, 0.16);
}

body.public-page.live-score-page .standing-table {
    color: #FFFFFF;
    background: #0D0E10;
}

body.public-page.live-score-page .standing-table th {
    color: #FFD60A;
    border-color: rgba(255, 255, 255, 0.07);
    background: #151619;
}

body.public-page.live-score-page .standing-table td,
body.public-page.live-score-page .standing-table .standing-team {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.07);
    background: #0D0E10;
}

body.public-page.live-score-page .position-cell,
body.public-page.live-score-page .points-cell,
body.public-page.live-score-page .h2h-stat strong,
body.public-page.live-score-page .event-row span {
    color: #FFD60A;
}

body.public-page.live-score-page .event-row,
body.public-page.live-score-page .match-meta-strip span {
    background: #151619;
}

body.public-page.live-score-page .stat-bar {
    background: #292A2E;
}

body.public-page.live-score-page .result-matches-panel.is-soft-loading::after,
body.public-page.live-score-page .result-detail-panel.is-soft-loading::after {
    background: rgba(5, 5, 5, 0.62);
}

body.public-page.live-score-page .result-matches-panel.is-soft-loading::before,
body.public-page.live-score-page .result-detail-panel.is-soft-loading::before {
    border-color: rgba(255, 214, 10, 0.2);
    border-top-color: #FFD60A;
}

/* Market data and odds */
body.public-page.market-page .market-rate-card,
body.public-page.odds-page .odds-league-card,
body.public-page.odds-page .odds-match-card {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.16);
    background: #111214;
    box-shadow: none;
}

body.public-page.market-page .market-rate-title strong,
body.public-page.market-page .market-rate-box strong,
body.public-page.market-page .market-history-row > strong,
body.public-page.market-page .market-history-values b,
body.public-page.odds-page .odds-league-head h2,
body.public-page.odds-page .odds-team strong,
body.public-page.odds-page .odds-values b,
body.public-page.odds-page .market-history-head h2,
body.public-page.odds-page .odds-analysis-summary strong,
body.public-page.odds-page .odds-chart-label strong {
    color: #FFFFFF;
}

body.public-page.market-page .market-rate-title small,
body.public-page.market-page .market-rate-box small,
body.public-page.market-page .market-history-values small,
body.public-page.odds-page .odds-values small,
body.public-page.odds-page .odds-chart-bars small {
    color: #A8A8A8;
}

body.public-page.market-page .market-rate-icon,
body.public-page.odds-page .odds-team-logo {
    color: #FFD60A;
    border: 1px solid rgba(255, 214, 10, 0.3);
    background: rgba(255, 214, 10, 0.1);
}

body.public-page.market-page .market-rate-box,
body.public-page.market-page .market-history-row,
body.public-page.market-page .market-history-values span,
body.public-page.odds-page .odds-values span,
body.public-page.odds-page .odds-analysis-summary,
body.public-page.odds-page .odds-chart-row {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.12);
    background: #151619;
}

body.public-page.market-page .rate-change {
    color: #A8A8A8;
    background: #292A2E;
}

body.public-page.market-page .rate-change.up {
    color: #6EE7B7;
    background: rgba(52, 211, 153, 0.12);
}

body.public-page.market-page .rate-change.down {
    color: #FFB4B5;
    background: rgba(255, 77, 79, 0.14);
}

body.public-page.market-page .market-history-panel,
body.public-page.odds-page .odds-history-dialog {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.22);
    background: #0D0E10;
}

body.public-page.market-page .market-history-head span,
body.public-page.odds-page .market-history-head span,
body.public-page.odds-page .odds-analysis-summary span {
    color: #FFD60A;
}

body.public-page.odds-page .odds-team.fav strong,
body.public-page.odds-page .odds-chart-label span {
    color: #FFB4B5;
}

/* Inbox */
body.public-page.inbox-page .inbox-summary {
    color: #FFD60A;
    border-color: rgba(255, 214, 10, 0.18);
    background: rgba(255, 214, 10, 0.08);
}

body.public-page.inbox-page .inbox-card {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.16);
    background: #111214;
    box-shadow: none;
}

body.public-page.inbox-page .inbox-card.is-unread {
    border-color: rgba(255, 214, 10, 0.42);
    background: rgba(255, 214, 10, 0.07);
}

body.public-page.inbox-page .inbox-card strong,
body.public-page.inbox-page .inbox-message-card h2 {
    color: #FFFFFF;
}

body.public-page.inbox-page .inbox-card span,
body.public-page.inbox-page .inbox-card p,
body.public-page.inbox-page .inbox-message-card [data-inbox-modal-date],
body.public-page.inbox-page .inbox-message-card [data-inbox-modal-body] {
    color: #A8A8A8;
}

body.public-page.inbox-page .inbox-card em {
    color: #FFD60A;
}

body.public-page.inbox-page .inbox-message-card {
    color: #FFFFFF;
    border: 1px solid rgba(255, 214, 10, 0.22);
    background: #0D0E10;
}

body.public-page.inbox-page .notice.success {
    color: #FFFFFF;
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.09);
}

body.public-page.inbox-page .notice.success strong,
body.public-page.inbox-page .notice.success span {
    color: #FFFFFF;
}

body.public-page.news-page .news-card img,
body.public-page.news-page .news-detail > img {
    background: #08090A;
}

/* Remaining public-page semantic and nested states. */
body.public-page.more-page .more-current-language,
body.public-page.more-page .login-device-card {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.16);
    background: #111214;
}

body.public-page.more-page .more-current-language span,
body.public-page.more-page .login-device-card strong {
    color: #FFFFFF;
}

body.public-page.more-page .login-device-card span,
body.public-page.more-page .login-device-card small {
    color: #A8A8A8;
}

body.public-page.more-page .login-device-card em,
body.public-page.more-page .prediction-history-card.is-win em {
    color: #6EE7B7;
    background: rgba(52, 211, 153, 0.12);
}

body.public-page.more-page .prediction-history-card.is-lose em {
    color: #FFB4B5;
    background: rgba(255, 77, 79, 0.14);
}

body.public-page.prediction-page .status-open {
    color: #6EE7B7;
    background: rgba(52, 211, 153, 0.12);
}

body.public-page.prediction-page .status-closed {
    color: #FFB4B5;
    background: rgba(255, 77, 79, 0.14);
}

body.public-page.prediction-page .rules-accordion {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.18);
    background: #111214;
}

body.public-page.prediction-page .rules-accordion summary,
body.public-page.prediction-page .rules-accordion summary span,
body.public-page.prediction-page .rules-content dt,
body.public-page.prediction-page .rules-content li {
    color: #FFFFFF;
}

body.public-page.prediction-page .rules-content dl div {
    color: #FFFFFF;
    background: #151619;
}

body.public-page.prediction-page .rules-content dd {
    color: #FFD60A;
}

body.public-page.spin-page .spin-daily-status {
    color: #6EE7B7;
    background: rgba(52, 211, 153, 0.12);
}

body.public-page.spin-page .spin-main-button span {
    color: #050505;
    text-shadow: none;
}

body.public-page.spin-page .spin-hint,
body.public-page.spin-page .spin-prize-card div span,
body.public-page.spin-page .spin-prize-card small,
body.public-page.spin-page .spin-history-item small,
body.public-page.spin-page .spin-history-item time,
body.public-page.spin-page .spin-result-card p {
    color: #A8A8A8;
}

body.public-page.spin-page .spin-history-toggle,
body.public-page.spin-page .spin-popup-close {
    color: #FFD60A;
    border-color: rgba(255, 214, 10, 0.24);
    background: #151619;
}

body.public-page.spin-page .spin-result-card,
body.public-page.spin-page .spin-prize-card,
body.public-page.spin-page .spin-history-item {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.18);
    background: #111214;
}

body.public-page.spin-page .spin-result-card h2,
body.public-page.spin-page .spin-prize-card strong,
body.public-page.spin-page .spin-history-item strong {
    color: #FFFFFF;
}

body.public-page.spin-page .spin-prize-notice {
    color: #FFD60A;
    border-color: rgba(255, 214, 10, 0.22);
    background: rgba(255, 214, 10, 0.08);
}

body.public-page.ibet-rules-page .ibet-rule-list li.important {
    color: #FFB4B5;
    border-color: rgba(255, 77, 79, 0.22);
    background: rgba(255, 77, 79, 0.1);
}

.admin-page .panel-title h1,
.admin-page .panel-title h2,
.admin-page .admin-panel h2,
.admin-page .admin-panel h3 {
    color: #FFFFFF;
}

.admin-page .panel-title span,
.admin-page .admin-panel > p {
    color: #A8A8A8;
}

.admin-page-title .primary-btn {
    min-width: 150px;
    justify-content: center;
}

.admin-page-title .primary-btn span,
.admin-page-title .primary-btn i {
    display: inline-block;
    color: #050505;
}

.admin-page input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    accent-color: #FFD60A;
    box-shadow: none;
}

.admin-user-chip {
    color: #FFFFFF;
    border: 1px solid rgba(255, 214, 10, 0.2);
    background: #151619;
}

.admin-user-chip i {
    color: #FFD60A;
}

/* Icon-first dashboard category launchers */
body.public-page .home-categories-only .quick-grid-section {
    width: min(760px, 100%);
    margin-inline: auto;
}

body.public-page .home-categories-only .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.72rem 0.45rem;
}

body.public-page .home-categories-only .category-tile {
    min-height: 92px;
    align-content: center;
    justify-content: center;
    justify-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.24rem;
    border-color: transparent;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.012);
    box-shadow: none;
    text-align: center;
}

body.public-page .home-categories-only .category-tile::after {
    display: none;
}

body.public-page .home-categories-only .category-tile:hover,
body.public-page .home-categories-only .category-tile:focus-visible {
    border-color: rgba(255, 214, 10, 0.12);
    background: rgba(255, 214, 10, 0.035);
    box-shadow: none;
    transform: translateY(-2px);
}

body.public-page .home-categories-only .tile-icon {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 214, 10, 0.42);
    border-radius: 20px;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 241, 118, 0.24), transparent 44%),
        rgba(255, 214, 10, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 24px rgba(255, 214, 10, 0.09);
}

body.public-page .home-categories-only .tile-icon .app-icon {
    width: 28px;
    height: 28px;
    font-size: 1.55rem;
}

body.public-page .home-categories-only .category-custom-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

body.public-page .home-categories-only .tile-label {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    color: #CFCFCF;
    font-size: 0.6rem;
    line-height: 1.2;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Profile page dark surface consistency */
body.public-page.more-page .profile-copy span {
    color: #FFD60A;
}

body.public-page.more-page .profile-copy h1 {
    color: #FFFFFF;
}

body.public-page.more-page .profile-copy p {
    color: #A8A8A8;
}

body.public-page.more-page .profile-edit-btn {
    color: #FFD60A;
    border-color: rgba(255, 214, 10, 0.45);
    background: #151619;
    cursor: pointer;
    font: inherit;
}

body.public-page.more-page .profile-edit-btn .app-icon {
    color: #FFD60A;
}

@media (max-width: 520px) {
    body.public-page.more-page .profile-hero-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    body.public-page.more-page .profile-edit-btn {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
    }
}

body.public-page.more-page .profile-menu-panel {
    color: #FFFFFF;
    background: #0C0D0F;
}

body.public-page.more-page .profile-edit-preview,
body.public-page.more-page .more-password-form label,
body.public-page.more-page .profile-edit-form label > span {
    color: #FFFFFF;
}

body.public-page.more-page .profile-edit-form input[type="text"],
body.public-page.more-page .profile-edit-form input[type="file"] {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.2);
    background: #151619;
}

body.public-page.more-page .profile-edit-form input[type="file"]::file-selector-button {
    margin-right: 0.65rem;
    padding: 0.42rem 0.62rem;
    color: #050505;
    border: 0;
    border-radius: 9px;
    background: #FFD60A;
    font-weight: 900;
}

/* News previews and detail page */
body.public-page.news-page .news-state,
body.public-page.news-page .news-empty,
body.public-page.news-page .news-card {
    color: #FFFFFF;
    border-color: rgba(255, 214, 10, 0.16);
    background: #111214;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

body.public-page.news-page .news-card:hover,
body.public-page.news-page .news-card:focus-visible {
    border-color: rgba(255, 214, 10, 0.55);
    background: #17181A;
}

body.public-page.news-page .news-card strong,
body.public-page.news-page .news-detail h2 {
    color: #FFFFFF;
}

body.public-page.news-page .news-card small,
body.public-page.news-page .news-card .news-source-credit,
body.public-page.news-page .news-body {
    color: #A8A8A8;
}

body.public-page.news-page .news-card em,
body.public-page.news-page .news-detail-meta {
    color: #FFD60A;
}

body.public-page.news-page .skeleton-card,
body.public-page.news-page .skeleton-thumb,
body.public-page.news-page .skeleton-line {
    background: linear-gradient(90deg, #111214 0%, #242529 50%, #111214 100%);
    background-size: 220% 100%;
}

body.public-page.news-page .news-list.is-soft-loading::after,
body.public-page.news-page .news-detail.is-soft-loading::after {
    background: rgba(5, 5, 5, 0.58);
}

body.public-page.news-page .news-list.is-soft-loading::before,
body.public-page.news-page .news-detail.is-soft-loading::before {
    border-color: rgba(255, 214, 10, 0.2);
    border-top-color: #FFD60A;
}

body.public-page.news-page .news-refresh:disabled {
    color: #FFD60A;
    background: #151619;
    opacity: 0.72;
}

@media (max-width: 520px) {
    body.public-page .home-categories-only .category-grid {
        gap: 0.64rem 0.3rem;
    }

    body.public-page .home-categories-only .category-tile {
        min-height: 84px;
        padding: 0.4rem 0.15rem;
        border-radius: 16px;
    }

    body.public-page .home-categories-only .tile-icon {
        width: 52px;
        height: 52px;
        border-radius: 18px;
    }

    body.public-page .home-categories-only .tile-icon .app-icon {
        width: 25px;
        height: 25px;
        font-size: 1.35rem;
    }

    body.public-page .home-categories-only .category-custom-icon {
        width: 34px;
        height: 34px;
    }

    body.public-page .home-categories-only .tile-label {
        font-size: 0.54rem;
    }
}

/* Dashboard ads and user-selectable day/night appearance */
html[data-theme="dark"] {
    color-scheme: dark;
}

body.public-page .slide-section {
    width: min(1000px, 100%);
    margin: 0 auto 1.25rem;
}

body.public-page .ad-slider {
    width: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 1;
}

body.public-page .ad-slide,
body.public-page .ad-slide a,
body.public-page .ad-slide img {
    height: 100%;
}

.brand-copy strong {
    display: block;
    white-space: nowrap;
}

.theme-choice-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    padding: 0.3rem;
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: 16px;
    background: #090A0B;
}

.theme-choice-group button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #A8A8A8;
    background: transparent;
    font-weight: 900;
}

.theme-choice-group button .app-icon {
    color: #FFD60A;
}

.theme-choice-group button[aria-pressed="true"] {
    color: #050505;
    border-color: #FFD60A;
    background: #FFD60A;
}

.theme-choice-group button[aria-pressed="true"] .app-icon {
    color: #050505;
}

.profile-theme-setting {
    padding: 0.75rem;
    border: 1px solid rgba(255, 214, 10, 0.16);
    border-radius: 16px;
    background: #111214;
}

.profile-theme-setting .theme-choice-group {
    margin-bottom: 0;
}

/* Day mode keeps the same Play Boss structure with white surfaces and black text. */
html[data-theme="light"] {
    color-scheme: light;
    --blue: #D4A900;
    --blue-dark: #8A6813;
    --black: #111111;
    --text: #111111;
    --muted: #666666;
    --line: rgba(17, 17, 17, 0.12);
    --soft: #FFFFFF;
    --white: #FFFFFF;
    --blue-soft: #FFF8D8;
    --shadow: 0 14px 36px rgba(17, 17, 17, 0.09);
    --surface: #FFFFFF;
    --surface-raised: #FFFFFF;
    --surface-glass: linear-gradient(145deg, rgba(255, 214, 10, 0.14), rgba(255, 255, 255, 0.98) 48%, rgba(17, 17, 17, 0.03));
    --surface-glass-strong: linear-gradient(145deg, rgba(255, 214, 10, 0.2), #FFFFFF 52%, rgba(17, 17, 17, 0.04));
}

html[data-theme="light"],
html[data-theme="light"] body,
html[data-theme="light"] body.public-page,
html[data-theme="light"] body.public-page.auth-page {
    color: #111111;
    background: #FFFFFF;
}

html[data-theme="light"] body.public-page::before {
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

html[data-theme="light"] body.public-page,
html[data-theme="light"] body.public-page input,
html[data-theme="light"] body.public-page textarea,
html[data-theme="light"] body.public-page select,
html[data-theme="light"] body.public-page button,
html[data-theme="light"] body.public-page h1,
html[data-theme="light"] body.public-page h2,
html[data-theme="light"] body.public-page h3,
html[data-theme="light"] body.public-page h4,
html[data-theme="light"] body.public-page strong,
html[data-theme="light"] body.public-page p,
html[data-theme="light"] body.public-page dd,
html[data-theme="light"] body.public-page li {
    color: #111111;
}

html[data-theme="light"] body.public-page small,
html[data-theme="light"] body.public-page .muted,
html[data-theme="light"] body.public-page .profile-copy p,
html[data-theme="light"] body.public-page .news-card small,
html[data-theme="light"] body.public-page .news-card .news-source-credit,
html[data-theme="light"] body.public-page .news-body,
html[data-theme="light"] body.public-page .live-time,
html[data-theme="light"] body.public-page .market-card-subtitle,
html[data-theme="light"] body.public-page .odds-match-time {
    color: #666666;
}

html[data-theme="light"] body.public-page .site-header,
html[data-theme="light"] body.public-page .bottom-nav,
html[data-theme="light"] body.public-page [data-settings-panel],
html[data-theme="light"] body.public-page .agent-profile-card,
html[data-theme="light"] body.public-page .telegram-card,
html[data-theme="light"] body.public-page .inbox-message-card,
html[data-theme="light"] body.public-page .live-player-card,
html[data-theme="light"] body.public-page .odds-history-dialog,
html[data-theme="light"] body.public-page .market-history-panel,
html[data-theme="light"] body.public-page .spin-result-card {
    color: #111111;
    border-color: rgba(212, 169, 0, 0.28);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 42px rgba(17, 17, 17, 0.12);
}

html[data-theme="light"] body.public-page .brand-copy strong,
html[data-theme="light"] body.public-page [data-settings-panel] .settings-label,
html[data-theme="light"] body.public-page [data-settings-panel] .language-picker summary,
html[data-theme="light"] body.public-page [data-settings-panel] .language-picker-menu a,
html[data-theme="light"] body.public-page .site-header .agent-header-btn span {
    color: #111111;
}

html[data-theme="light"] body.public-page .site-header [data-settings-toggle],
html[data-theme="light"] body.public-page .site-header [data-settings-toggle]:hover,
html[data-theme="light"] body.public-page .site-header [data-settings-toggle]:focus,
html[data-theme="light"] body.public-page .site-header [data-settings-toggle]:focus-visible,
html[data-theme="light"] body.public-page .site-header [data-settings-toggle]:active,
html[data-theme="light"] body.public-page .site-header [data-settings-toggle][aria-expanded="true"],
html[data-theme="light"] body.public-page .site-header .agent-header-btn,
html[data-theme="light"] body.public-page .icon-btn,
html[data-theme="light"] body.public-page .ghost-btn,
html[data-theme="light"] body.public-page .modal-close,
html[data-theme="light"] body.public-page .spin-prize-trigger {
    color: #111111;
    border-color: rgba(212, 169, 0, 0.32);
    background: #FFF8D8;
    box-shadow: none;
}

html[data-theme="light"] body.public-page .site-header [data-settings-toggle] .app-icon,
html[data-theme="light"] body.public-page .site-header .agent-header-btn .app-icon,
html[data-theme="light"] body.public-page .icon-btn .app-icon,
html[data-theme="light"] body.public-page .ghost-btn .app-icon,
html[data-theme="light"] body.public-page .modal-close .app-icon {
    color: #D4A900;
}

html[data-theme="light"] body.public-page [data-settings-panel] .language-picker summary,
html[data-theme="light"] body.public-page [data-settings-panel] .language-picker-menu,
html[data-theme="light"] body.public-page .theme-choice-group {
    border-color: rgba(212, 169, 0, 0.25);
    background: #FFFFFF;
}

html[data-theme="light"] body.public-page .theme-choice-group button {
    color: #666666;
}

html[data-theme="light"] body.public-page .theme-choice-group button[aria-pressed="true"],
html[data-theme="light"] body.public-page .primary-btn,
html[data-theme="light"] body.public-page .settings-action {
    color: #111111;
    border-color: #FFD60A;
    background: #FFD60A;
}

html[data-theme="light"] body.public-page .theme-choice-group button[aria-pressed="true"] .app-icon,
html[data-theme="light"] body.public-page .primary-btn .app-icon,
html[data-theme="light"] body.public-page .settings-action .app-icon {
    color: #111111;
}

html[data-theme="light"] body.public-page :is(
    .profile-hero-card,
    .profile-menu-item,
    .profile-menu-link,
    .profile-menu-panel,
    .profile-theme-setting,
    .match-card,
    .info-card,
    .form-card,
    .rules-accordion,
    .news-card,
    .news-state,
    .news-empty,
    .news-detail,
    .inbox-card,
    .inbox-summary,
    .live-card,
    .live-player-status,
    .stream-choice-buttons button,
    .league-card,
    .result-matches-panel,
    .result-detail-panel,
    .result-detail-card,
    .match-row,
    .market-rate-card,
    .market-history-row,
    .odds-league-card,
    .odds-match-card,
    .odds-analysis-summary,
    .spin-daily-login,
    .spin-history-item,
    .spin-prize-card,
    .social-card,
    .prediction-history-card,
    .login-device-card,
    .more-current-language,
    .more-password-form
) {
    color: #111111;
    border-color: rgba(17, 17, 17, 0.1);
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
}

html[data-theme="light"] body.public-page :is(
    .result-topbar,
    .news-topbar,
    .market-topbar,
    .spin-topbar,
    .ibet-rule-hero
) {
    color: #111111;
    border: 1px solid rgba(212, 169, 0, 0.28);
    background:
        radial-gradient(circle at 88% 0%, rgba(255, 214, 10, 0.22), transparent 8rem),
        #FFFFFF;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.09);
}

html[data-theme="light"] body.public-page :is(
    .result-topbar,
    .news-topbar,
    .market-topbar,
    .spin-topbar,
    .ibet-rule-hero
) h1,
html[data-theme="light"] body.public-page :is(
    .live-card,
    .league-card,
    .odds-match-card,
    .market-rate-card,
    .news-card,
    .profile-menu-item,
    .profile-menu-link
) strong {
    color: #111111;
}

html[data-theme="light"] body.public-page :is(
    .news-filter-tabs,
    .live-tabs,
    .result-filter-bar,
    .market-tabs,
    .market-region-buttons
) {
    border-color: rgba(17, 17, 17, 0.1);
    background: #FFFFFF;
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.07);
}

html[data-theme="light"] body.public-page :is(
    .news-filter-tabs,
    .live-tabs,
    .result-filter-bar,
    .market-tabs,
    .market-region-buttons
) button:not(.active) {
    color: #111111;
    background: transparent;
}

html[data-theme="light"] body.public-page input,
html[data-theme="light"] body.public-page textarea,
html[data-theme="light"] body.public-page select,
html[data-theme="light"] body.public-page .profile-edit-form input[type="text"],
html[data-theme="light"] body.public-page .profile-edit-form input[type="file"] {
    color: #111111;
    border-color: rgba(17, 17, 17, 0.14);
    background: #FFFFFF;
}

html[data-theme="light"] body.public-page .home-categories-only .category-tile {
    color: #111111;
    border-color: transparent;
    background: transparent;
}

html[data-theme="light"] body.public-page .home-categories-only .category-tile:hover,
html[data-theme="light"] body.public-page .home-categories-only .category-tile:focus-visible {
    border-color: rgba(212, 169, 0, 0.2);
    background: #FFFBEA;
}

html[data-theme="light"] body.public-page .home-categories-only .tile-icon {
    border-color: rgba(212, 169, 0, 0.5);
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 241, 118, 0.48), transparent 44%),
        #FFF8D8;
    box-shadow: 0 8px 22px rgba(212, 169, 0, 0.14);
}

html[data-theme="light"] body.public-page .home-categories-only .tile-label,
html[data-theme="light"] body.public-page .bottom-nav .nav-item {
    color: #555555;
}

html[data-theme="light"] body.public-page .bottom-nav .nav-item.active {
    color: #8A6813;
    background: #FFF8D8;
}

html[data-theme="light"] body.public-page .profile-avatar {
    background: #FFF8D8;
}

html[data-theme="light"] body.public-page .profile-copy h1,
html[data-theme="light"] body.public-page.more-page .profile-copy h1,
html[data-theme="light"] body.public-page.more-page .profile-edit-preview,
html[data-theme="light"] body.public-page.more-page .more-password-form label,
html[data-theme="light"] body.public-page.more-page .profile-edit-form label > span,
html[data-theme="light"] body.public-page.more-page .profile-menu-panel {
    color: #111111;
}

html[data-theme="light"] body.public-page.more-page .profile-menu-panel {
    background: #FFFFFF;
}

html[data-theme="light"] body.public-page.news-page :is(.news-state, .news-empty, .news-card) {
    color: #111111;
    border-color: rgba(17, 17, 17, 0.1);
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
}

html[data-theme="light"] body.public-page.news-page .news-card:hover,
html[data-theme="light"] body.public-page.news-page .news-card:focus-visible {
    border-color: rgba(212, 169, 0, 0.5);
    background: #FFFBEA;
}

html[data-theme="light"] body.public-page.news-page .news-card strong,
html[data-theme="light"] body.public-page.news-page .news-detail h2 {
    color: #111111;
}

html[data-theme="light"] body.public-page :is(
    .agent-contact-list a,
    .agent-contact-list > div,
    .notice,
    .auth-card,
    .auth-language-dropdown,
    .auth-language-menu,
    .language-picker-menu,
    .guide-video-card,
    .date-icon-control,
    .result-match-card,
    .details-score-card,
    .event-section,
    .standings-group,
    .h2h-stat,
    .result-tabs,
    .standing-table,
    .event-row,
    .match-meta-strip span,
    .market-rate-box,
    .market-history-values span,
    .odds-values span,
    .odds-chart-row,
    .inbox-message-card,
    .rules-content dl div,
    .spin-result-card,
    .spin-prize-notice
) {
    color: #111111;
    border-color: rgba(17, 17, 17, 0.1);
    background: #FFFFFF;
    box-shadow: 0 10px 26px rgba(17, 17, 17, 0.07);
}

html[data-theme="light"] body.public-page :is(
    .live-page .live-card,
    .live-page .live-player-card,
    .live-page .live-player-status,
    .live-page .stream-choice-buttons button,
    .live-score-page .league-card,
    .live-score-page .result-match-card,
    .live-score-page .result-detail-panel,
    .live-score-page .details-score-card,
    .live-score-page .event-section,
    .live-score-page .standings-group,
    .live-score-page .h2h-stat,
    .market-page .market-rate-card,
    .market-page .market-rate-box,
    .market-page .market-history-row,
    .market-page .market-history-values span,
    .odds-page .odds-league-card,
    .odds-page .odds-match-card,
    .odds-page .odds-values span,
    .odds-page .odds-analysis-summary,
    .odds-page .odds-chart-row,
    .inbox-page .inbox-summary,
    .inbox-page .inbox-card,
    .inbox-page .inbox-card.is-unread,
    .inbox-page .inbox-message-card,
    .prediction-page .rules-accordion,
    .prediction-page .rules-content dl div,
    .spin-page .spin-result-card,
    .spin-page .spin-prize-card,
    .spin-page .spin-history-item,
    .spin-page .spin-prize-notice
) {
    color: #111111;
    border-color: rgba(17, 17, 17, 0.1);
    background: #FFFFFF;
}

html[data-theme="light"] body.public-page :is(
    .live-page .news-state,
    .live-score-page .news-state,
    .inbox-page .news-state,
    .market-page .news-state,
    .odds-page .news-state,
    .live-page .result-empty,
    .live-score-page .result-empty,
    .live-score-page .result-inline-state,
    .inbox-page .result-empty,
    .market-page .market-empty-card,
    .odds-page .market-empty-card
) {
    color: #666666;
    border-color: rgba(17, 17, 17, 0.1);
    background: #FFFFFF;
}

html[data-theme="light"] body.public-page :is(
    .live-tabs,
    .result-filter-bar,
    .news-filter-tabs,
    .market-tabs,
    .market-region-buttons,
    .auth-mode-tabs,
    .result-tabs
) {
    border-color: rgba(17, 17, 17, 0.1);
    background: #FFFFFF;
}

html[data-theme="light"] body.public-page :is(
    .live-tabs,
    .result-filter-bar,
    .news-filter-tabs,
    .market-tabs,
    .market-region-buttons,
    .auth-mode-tabs,
    .result-tabs
) button.active,
html[data-theme="light"] body.public-page .language-picker-menu a.active {
    color: #111111;
    border-color: #FFD60A;
    background: #FFD60A;
}

html[data-theme="light"] body.public-page :is(
    .result-team img,
    .league-identity img,
    .live-team img,
    .news-card img,
    .news-detail > img
) {
    border-color: rgba(212, 169, 0, 0.22);
    background: #FFF8D8;
}

html[data-theme="light"] body.public-page .standing-table th,
html[data-theme="light"] body.public-page .standing-table td,
html[data-theme="light"] body.public-page .standing-table .standing-team {
    color: #111111;
    border-color: rgba(17, 17, 17, 0.08);
    background: #FFFFFF;
}

html[data-theme="light"] body.public-page.auth-page .auth-form input,
html[data-theme="light"] body.public-page.auth-page .auth-form select,
html[data-theme="light"] body.public-page.auth-page .phone-row input,
html[data-theme="light"] body.public-page.auth-page .phone-row select,
html[data-theme="light"] body.public-page option {
    color: #111111;
    border-color: rgba(17, 17, 17, 0.14);
    background: #FFFFFF;
}

html[data-theme="light"] body.public-page .spin-history-toggle,
html[data-theme="light"] body.public-page .spin-popup-close,
html[data-theme="light"] body.public-page .profile-edit-btn {
    color: #8A6813;
    border-color: rgba(212, 169, 0, 0.35);
    background: #FFF8D8;
}

@media (max-width: 390px) {
    .brand-copy strong {
        font-size: 0.86rem;
    }
}

/* Static API client compatibility */
.static-language-menu button {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    color: inherit;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
}

.static-language-menu button.active {
    color: #050505;
    background: #FFD60A;
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 160;
    width: min(360px, calc(100vw - 2rem));
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    border: 0.16rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: static-spin 0.7s linear infinite;
}

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

.admin-resource-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.admin-resource-tabs button {
    flex: 0 0 auto;
    padding: 0.7rem 0.9rem;
    color: #a8a8a8;
    border: 1px solid rgba(255, 214, 10, 0.18);
    border-radius: 12px;
    background: #111214;
}

.admin-resource-tabs button.active {
    color: #050505;
    border-color: #ffd60a;
    background: #ffd60a;
}

.admin-resource-content,
.admin-resource-list,
.admin-user-actions {
    display: grid;
    gap: 0.8rem;
}

.admin-resource-item > summary,
.admin-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #fff;
    cursor: pointer;
}

.admin-resource-item .admin-form,
.admin-panel > .admin-form {
    margin-top: 1rem;
}

.admin-resource-item .danger-btn {
    margin-top: 0.75rem;
}

.admin-user-actions {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 0.75rem;
}

.admin-user-actions form {
    display: flex;
    gap: 0.5rem;
}

.admin-resource-content pre {
    max-width: 100%;
    padding: 0.8rem;
    overflow: auto;
    color: #fff;
    border-radius: 12px;
    background: #08090a;
}
