* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

:root {
    --app-bg: #070b18;
    --header-bg: #111827;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-bg-strong: rgba(255, 255, 255, 0.12);
    --border-soft: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.22);

    --primary: #7c3aed;
    --primary-dark: #4c1d95;
    --accent: #f59e0b;
    --accent-light: #fbbf24;

    --success: #22c55e;
    --danger: #ef4444;

    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.68);
    --text-soft: rgba(255, 255, 255, 0.82);

    --shadow-main: 0 20px 45px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.24);
}

html {
    background: var(--app-bg);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.20), transparent 30%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.13), transparent 34%),
        #070b18;
    color: var(--text-main);
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.app-container::before,
.app-container::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.app-container::before {
    width: 230px;
    height: 230px;
    top: -90px;
    right: -100px;
    background: rgba(124, 58, 237, 0.20);
    filter: blur(10px);
}

.app-container::after {
    width: 210px;
    height: 210px;
    bottom: 80px;
    left: -120px;
    background: rgba(245, 158, 11, 0.12);
    filter: blur(12px);
}

.header {
    position: relative;
    z-index: 2;
    padding: 22px 18px 26px;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.22), transparent 34%),
        #111827;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
    box-shadow: var(--shadow-main);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.brand-text h1 {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0.2px;
    white-space: nowrap;
    color: #ffffff;
}

.brand-text p {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.live-pill {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--status-bg);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--status-text-color);
    backdrop-filter: blur(14px);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.paused-pill {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fecaca;
}

.live-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--status-color);
    box-shadow: 0 0 14px var(--status-color);
}

.hero-card {
    position: relative;
    padding: 22px;
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
        #141b2d;
    border: 1px solid var(--border-soft);
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transform: translateY(0);
    transition: 0.25s ease;
}

.hero-card:hover {
    transform: translateY(-2px);
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: -70px;
    right: -55px;
    background: rgba(245, 158, 11, 0.22);
    border-radius: 50%;
    filter: blur(3px);
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    left: -45px;
    bottom: -45px;
    background: rgba(124, 58, 237, 0.20);
    border-radius: 50%;
}

.paused-hero-card {
    background:
        linear-gradient(145deg, rgba(239, 68, 68, 0.13), rgba(255, 255, 255, 0.05)),
        #171827;
    border-color: rgba(239, 68, 68, 0.24);
}

.paused-hero-card::before {
    background: rgba(239, 68, 68, 0.22);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.round-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.round-info span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.round-info h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 950;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.round-circle {
    min-width: 92px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #f59e0b;
    color: #17110a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 950;
    border: 7px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 16px 32px rgba(245, 158, 11, 0.26),
        inset 0 2px 0 rgba(255, 255, 255, 0.24);
}

.paused-round-circle {
    background: #ef4444;
    color: #ffffff;
    box-shadow:
        0 16px 32px rgba(239, 68, 68, 0.24),
        inset 0 2px 0 rgba(255, 255, 255, 0.18);
}

.paused-round-circle .material-icons-round {
    font-size: 38px;
    font-weight: 900;
}

.game-schedule-card {
    margin-top: 22px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid var(--border-soft);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 12px 25px rgba(0, 0, 0, 0.20);
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
}

.schedule-header > .material-icons-round {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 15px;
    background: var(--accent);
    color: #1c1204;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.22);
}

.schedule-header small {
    display: block;
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-header strong {
    display: block;
    margin-top: 2px;
    font-size: 18px;
    font-weight: 950;
    color: #ffffff;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
}

.schedule-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.085);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.16);
}

.schedule-box > .material-icons-round {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 15px;
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.schedule-box small {
    display: block;
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-box strong {
    display: block;
    margin-top: 3px;
    font-size: 20px;
    font-weight: 950;
    color: #ffffff;
    letter-spacing: 0.1px;
}

.stats-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
}

.stat-card {
    padding: 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(0, 0, 0, 0.16);
}

.stat-card .label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-card .material-icons-round {
    font-size: 18px;
    color: #fbbf24;
}

.ticket-only-grid {
    grid-template-columns: 1fr;
}

.ticket-limit-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.20), transparent 38%),
        rgba(255, 255, 255, 0.085);
    border: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 12px 26px rgba(0, 0, 0, 0.20);
}

.ticket-limit-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ticket-icon-box {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    background: #f59e0b;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.24);
}

.ticket-icon-box .material-icons-round {
    font-size: 25px;
    color: #111827;
}

.ticket-label {
    margin-bottom: 3px !important;
    font-size: 13px !important;
    color: #ffffff !important;
    font-weight: 900 !important;
}

.ticket-note {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.58);
}

.ticket-value {
    font-size: 26px;
    font-weight: 950;
    color: #ffffff;
    line-height: 1;
}

.ticket-limit-card .ticket-value {
    min-width: 58px;
    height: 58px;
    padding: 0 14px;
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 950;
    color: #fbbf24;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.tab-wrapper {
    position: relative;
    z-index: 3;
    margin: 8px 18px 0;
}

.tab-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 7px;
    border-radius: 24px;
    background: rgba(17, 24, 39, 0.88);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.30);
    margin-top: -2px;
}

.tab-item {
    text-decoration: none;
    text-align: center;
    padding: 13px 6px;
    border-radius: 17px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 850;
    transition: 0.22s ease;
    cursor: pointer;
}

.tab-item .material-icons-round {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.tab-item.active {
    color: #111827;
    background: #f59e0b;
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.24);
}

.tab-item:hover {
    color: #ffffff;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.tab-item.active:hover {
    color: #111827;
    background: #f59e0b;
}

.screen-container {
    position: relative;
    z-index: 2;
    margin: 20px 18px 18px;
    min-height: 260px;
    padding: 18px;
    border-radius: 25px;
    background: rgba(17, 24, 39, 0.76);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(16px);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.page-loader {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.loading-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.14);
    border-top-color: #f59e0b;
    border-right-color: #7c3aed;
    animation: spin 0.75s linear infinite;
    box-shadow: 0 0 22px rgba(245, 158, 11, 0.18);
}

.loading-text {
    font-size: 13px;
    font-weight: 850;
    color: var(--text-soft);
    letter-spacing: 0.2px;
}

.tab-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(7, 11, 24, 0.76);
    backdrop-filter: blur(10px);
}

.tab-loading-overlay.show {
    display: flex;
}

.tab-loading-box {
    width: 150px;
    min-height: 130px;
    border-radius: 26px;
    background: rgba(17, 24, 39, 0.94);
    border: 1px solid var(--border-soft);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.40);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    font-size: 14px;
    color: var(--text-soft);
}

.loader .material-icons-round {
    animation: spin 1s linear infinite;
    color: #f59e0b;
}

.error-box {
    padding: 16px;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.30);
    color: #fecaca;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 400px) {
    .schedule-grid {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-box strong {
        font-size: 17px;
    }
}

@media (max-width: 360px) {
    .header {
        padding: 20px 14px 24px;
    }

    .brand-text h1 {
        font-size: 22px;
    }

    .brand-text p {
        font-size: 11px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 16px;
    }

    .live-pill {
        padding: 8px 10px;
        font-size: 11px;
    }

    .hero-card {
        padding: 18px;
        border-radius: 26px;
    }

    .round-circle {
        width: 82px;
        height: 82px;
        min-width: 82px;
        font-size: 24px;
        border-width: 6px;
    }

    .round-info h2 {
        font-size: 22px;
    }

    .schedule-box strong {
        font-size: 17px;
    }

    .ticket-limit-card {
        padding: 14px;
    }

    .ticket-icon-box {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 14px;
    }

    .ticket-label {
        font-size: 12px !important;
    }

    .ticket-note {
        font-size: 10px;
    }

    .ticket-limit-card .ticket-value {
        min-width: 52px;
        height: 52px;
        font-size: 25px;
        border-radius: 17px;
    }

    .tab-loading-box {
        width: 138px;
        min-height: 120px;
        border-radius: 24px;
    }

    .loading-circle {
        width: 42px;
        height: 42px;
        border-width: 4px;
    }
}