*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --blue-900: #003087;
    --blue-700: #0057b8;
    --blue-500: #1a73e8;
    --blue-100: #e8f0fe;
    --blue-50: #f4f8ff;
    --yellow-500: #ffc72c;
    --yellow-400: #ffd54f;
    --yellow-100: #fff8e1;
    --white: #ffffff;
    --gray-900: #1e293b;
    --gray-600: #64748b;
    --gray-200: #e2e8f0;
    --shadow-soft: 0 8px 30px rgba(0, 48, 135, 0.08);
    --shadow-card: 0 4px 18px rgba(0, 48, 135, 0.06);
    --glass-surface: rgba(255, 255, 255, 0.52);
    --glass-border: rgba(255, 255, 255, 0.78);
    --glass-shadow: 0 4px 18px rgba(0, 48, 135, 0.07);
    --glass-blur: 12px;
    --landing-max: 480px;
    --page-pad-x: clamp(1rem, 4vw, 1.25rem);
    --page-pad-top: clamp(0.75rem, 3vw, 1.5rem);
    --page-pad-bottom: clamp(1rem, 4vw, 1.5rem);
    --agent-header-height: calc(4.15rem + env(safe-area-inset-top, 0px));
    --agent-bottom-nav-height: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.5;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.hidden {
    display: none !important;
}

html.has-agent-session .landing {
    display: none !important;
}

html.has-agent-session body {
    overflow: hidden;
    height: 100dvh;
    height: 100svh;
}

html.has-agent-session #agent-home.hidden {
    display: flex !important;
}

.app-shell {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    min-height: 100svh;
    overflow-x: hidden;
    background: var(--white);
}

.splash-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 100% 80%, rgba(0, 87, 184, 0.08), transparent 35%),
        radial-gradient(circle at 0% 60%, rgba(0, 48, 135, 0.05), transparent 30%),
        linear-gradient(180deg, var(--yellow-400) 0%, var(--white) 45%, var(--white) 100%);
}

.splash-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.7;
}

.splash-glow--blue {
    width: min(200px, 50vw);
    height: min(200px, 50vw);
    bottom: 12%;
    right: max(-50px, -10vw);
    background: rgba(0, 87, 184, 0.15);
}

.landing {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--landing-max);
    min-height: 100dvh;
    min-height: 100svh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding:
        calc(var(--page-pad-top) + env(safe-area-inset-top, 0px))
        calc(var(--page-pad-x) + env(safe-area-inset-right, 0px))
        calc(var(--page-pad-bottom) + env(safe-area-inset-bottom, 0px))
        calc(var(--page-pad-x) + env(safe-area-inset-left, 0px));
}

.landing__promo {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vh, 1rem) 0;
    overflow: hidden;
}

.landing__promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(100%, 360px);
    gap: clamp(0.35rem, 1.5vh, 0.75rem);
}

.landing__logo {
    width: clamp(110px, 35vw, 150px);
    height: clamp(110px, 35vw, 150px);
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 48, 135, 0.12));
}

.landing__promo-img {
    width: 100%;
    max-width: 100%;
    max-height: min(78dvh, 68svh, 780px);
    object-fit: contain;
    mix-blend-mode: lighten;
}

.landing__actions {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: clamp(1rem, 3vh, 2rem);
    display: grid;
    gap: 0.75rem;
    width: 100%;
}

.btn {
    width: 100%;
    min-height: clamp(48px, 12vw, 52px);
    border-radius: 14px;
    font-size: clamp(0.95rem, 3.5vw, 1rem);
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    color: var(--blue-900);
    background: linear-gradient(180deg, var(--yellow-400) 0%, var(--yellow-500) 100%);
    box-shadow: none;
    border: 1px solid rgba(255, 199, 44, 0.6);
}

.btn--primary:hover {
    box-shadow: none;
}

.btn--ghost {
    color: var(--blue-700);
    background: var(--white);
    border: 2px solid var(--blue-700);
}

.btn--danger {
    color: var(--white);
    background: #dc2626;
    border: 1px solid #b91c1c;
    box-shadow: 0 8px 22px rgba(220, 38, 38, 0.22);
}

.landing__note {
    margin: 0.35rem 0 0;
    text-align: center;
    font-size: clamp(0.7rem, 2.8vw, 0.75rem);
    color: var(--gray-600);
}

/* Small phones (e.g. iPhone SE, narrow Android) */
@media (max-width: 374px) {
    :root {
        --page-pad-x: 0.875rem;
    }

    .landing__promo-img {
        max-width: 100%;
        max-height: min(48dvh, 48svh, 400px);
    }
}

/* Short viewports — keep buttons visible */
@media (max-height: 700px) {
    .landing__promo-img {
        max-height: min(44dvh, 44svh, 380px);
    }

    .landing__actions {
        padding-top: 0.75rem;
    }
}

@media (max-height: 580px) {
    .landing__logo {
        width: 88px;
        height: 88px;
    }

    .landing__promo-img {
        max-height: min(36dvh, 36svh, 280px);
    }

    .landing__actions {
        padding-top: 0.5rem;
        gap: 0.5rem;
    }

    .btn {
        min-height: 44px;
    }
}

/* Landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
    .landing {
        min-height: auto;
        padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }

    .landing__logo {
        width: 72px;
        height: 72px;
    }

    .landing__promo-img {
        max-height: min(32dvh, 220px);
    }

    .landing__actions {
        padding-top: 0.5rem;
    }
}

/* Tablets and larger */
@media (min-width: 768px) {
    :root {
        --page-pad-top: 2.5rem;
    }

    .landing__logo {
        width: 160px;
        height: 160px;
    }

    .landing__promo-img {
        max-width: 400px;
        max-height: 520px;
    }
}

@media (display-mode: standalone) {
    .landing {
        padding-top: calc(var(--page-pad-top) + env(safe-area-inset-top, 0px));
    }
}

/* Bottom sheet */
.sheet-root {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    visibility: hidden;
}

.sheet-root.is-open {
    pointer-events: auto;
    visibility: visible;
}

.sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 24, 64, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sheet-root.is-open .sheet-backdrop {
    opacity: 1;
}

.sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    width: 100%;
    max-width: var(--landing-max);
    max-height: min(88dvh, 88svh);
    background: var(--white);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 48, 135, 0.15);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sheet-root.is-open .sheet {
    transform: translateY(0);
}

.sheet--confirm {
    max-height: none;
}

.logout-confirm__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.logout-confirm__actions .btn {
    width: 100%;
    min-height: 46px;
}

.verification-prompt__steps {
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.verification-prompt__step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.verification-prompt__step-num {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.verification-prompt__step-text {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--gray-900);
}

.verification-prompt__step-text strong {
    color: var(--blue-900);
}

.verification-prompt__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.verification-prompt__actions .btn {
    width: 100%;
    min-height: 46px;
}

.sheet--hits-congrats {
    text-align: center;
}

.hits-congrats__icon {
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.hits-congrats__title {
    margin-bottom: 0.35rem;
}

.hits-congrats__subtitle {
    margin-bottom: 0.85rem;
}

.hits-congrats__amount {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--blue-900);
    line-height: 1.1;
}

.hits-congrats__label {
    margin: 0.2rem 0 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hits-congrats__draws {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hits-congrats__draws li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: #eff6ff;
    font-size: 0.88rem;
}

.hits-congrats__draws li span:first-child {
    font-weight: 600;
    color: var(--blue-900);
}

.hits-congrats__draws li span:last-child {
    font-weight: 700;
    color: var(--blue-700);
}

.hits-congrats__actions {
    margin-top: 0.25rem;
}

.hits-congrats__actions .btn {
    width: 100%;
    min-height: 46px;
}

.sheet-handle {
    flex-shrink: 0;
    width: 40px;
    height: 4px;
    margin: 10px auto 6px;
    border-radius: 999px;
    background: var(--gray-200);
}

.sheet-step {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 clamp(1.25rem, 4vw, 1.5rem) clamp(1rem, 3vw, 1.25rem);
    overflow: hidden;
}

.sheet-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 5vw, 1.5rem);
    font-weight: 800;
    color: var(--blue-900);
    letter-spacing: -0.02em;
}

.sheet-subtitle {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.sheet-note {
    margin: -0.75rem 0 1rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    color: var(--blue-700);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: 10px;
}

.sheet-text {
    margin: 0;
    font-size: clamp(0.92rem, 3.6vw, 1rem);
    color: var(--gray-600);
    line-height: 1.6;
}

.slide-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-900);
    background: var(--yellow-100);
    border-radius: 999px;
}

.carousel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.carousel-viewport {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0.25rem 0 0.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: clamp(0.92rem, 3.5vw, 0.98rem);
    color: var(--gray-900);
    line-height: 1.45;
}

.benefit-check {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: 0.75rem;
    font-weight: 700;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 0 0.25rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    background: var(--gray-200);
    transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: var(--blue-700);
}

/* PWA install prompt */
.sheet--install {
    max-height: min(92dvh, 92svh);
}

.install-prompt {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 clamp(1.25rem, 4vw, 1.5rem) clamp(1rem, 3vw, 1.25rem);
}

.install-prompt__header {
    flex-shrink: 0;
    text-align: center;
    padding: 0.25rem 0 0.75rem;
}

.install-prompt__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 6px 16px rgba(0, 48, 135, 0.12));
}

.install-prompt__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.2rem, 4.8vw, 1.35rem);
    font-weight: 800;
    color: var(--blue-900);
    letter-spacing: -0.02em;
}

.install-prompt__subtitle {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--gray-600);
}

.install-carousel {
    flex: 1;
    min-height: 0;
    margin-top: 0.5rem;
}

.install-carousel-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.25rem 0 0.5rem;
}

.install-screenshot {
    width: min(100%, 200px);
    margin: 0 auto 0.75rem;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 16px 40px rgba(0, 48, 135, 0.18),
        0 0 0 1px rgba(0, 48, 135, 0.06);
}

.install-screenshot img,
.install-screenshot svg {
    display: block;
    width: 100%;
    height: auto;
}

.install-carousel-slide__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-900);
}

.install-carousel-slide__text {
    margin: 0;
    max-width: 28ch;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--gray-600);
}

.install-prompt__actions {
    flex-shrink: 0;
    display: grid;
    gap: 0.65rem;
    padding-top: 0.5rem;
}

.install-prompt__hint {
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--gray-600);
}

.install-prompt__hint strong {
    color: var(--blue-700);
}

@media (max-height: 640px) {
    .install-screenshot {
        width: min(100%, 160px);
        margin-bottom: 0.5rem;
    }

    .install-carousel-slide__text {
        font-size: 0.78rem;
    }
}

.sheet-footer {
    flex-shrink: 0;
    padding-top: 0.75rem;
}

.sheet-form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sheet-form-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 0.85rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.form-error {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    color: #b42318;
    text-align: center;
}

.form-error.is-success {
    color: var(--blue-700);
}

.sheet-switch {
    margin: 0.85rem 0 0;
    text-align: center;
}

.sheet-link {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blue-700);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sheet-link:hover,
.sheet-link:focus-visible {
    color: var(--blue-900);
}

.reset-password-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: var(--blue-50);
}

.reset-password-card {
    width: min(100%, 420px);
    padding: clamp(1.15rem, 3vw, 1.5rem);
    border: 1px solid rgba(0, 48, 135, 0.1);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 48, 135, 0.08);
}

.reset-password-card__title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--blue-900);
}

.reset-password-card__lead {
    margin: 0.45rem 0 1rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.reset-password-card__form {
    display: grid;
    gap: 0.85rem;
}

.reset-password-card__btn {
    width: 100%;
    margin-top: 0.35rem;
}

.reset-password-card__error {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: #b42318;
}

.sheet-back {
    align-self: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-700);
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-900);
}

.field-input {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font: inherit;
    font-size: 1rem;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.field-password {
    position: relative;
    display: block;
}

.field-input--password {
    padding-right: 3rem;
}

.field-password__toggle {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--gray-600);
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.field-password__toggle:hover {
    color: var(--blue-700);
    background: var(--blue-50);
}

.field-password__toggle:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

.field-password__icon {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.field-password__icon[hidden] {
    display: none !important;
}

body.sheet-open {
    overflow: hidden;
}

.agent-home {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--landing-max);
    height: 100dvh;
    height: 100svh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, var(--yellow-400) 0%, var(--yellow-500) 100%);
}

.agent-home__content {
    width: auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px;
    padding-bottom: 0;
    background-color: white;
    margin-top: calc(var(--agent-header-height) - 0.15rem);
    border-radius: 25px 25px 0px 0px;
}

.agent-home__content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.agent-home--settings-subpage:not(.agent-home--settings-keep-header) .agent-home__content {
    margin-top: 0;
    padding-top: calc(var(--page-pad-top) + env(safe-area-inset-top, 0px));
}

.agent-home--settings-subpage:not(.agent-home--settings-keep-header) .agent-home__header {
    display: none;
}

.agent-home--settings-subpage.agent-home--settings-keep-header .agent-home__content {
    margin-top: calc(var(--agent-header-height) - 0.15rem);
    padding-top: 10px;
}

.agent-home--bet-entry .agent-home__header {
    display: none;
}

.agent-home--bet-entry .agent-home__content {
    margin-top: 0;
    border-radius: 0;
    padding: calc(0.35rem + env(safe-area-inset-top, 0px)) 8px 0;
}

.agent-home--bet-entry .agent-tab[data-tab="play"].agent-tab--active {
    overflow: hidden;
    padding-bottom: 0;
    min-height: 0;
}

.agent-tab {
    display: none;
}

.agent-tab--active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding-bottom: var(--agent-bottom-nav-height);
    scroll-padding-bottom: var(--agent-bottom-nav-height);
}

.agent-tab--active::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.agent-tab__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 55dvh;
    padding: 2rem 1rem;
    text-align: center;
}

.agent-tab__placeholder--settings {
    min-height: 50dvh;
}

.scan-tab {
    padding: 0 0 2rem;
}

.scan-tab__hero {
    margin-bottom: 1.15rem;
}

.scan-tab__title {
    margin: 0 0 0.3rem;
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--blue-900);
    letter-spacing: -0.012em;
    line-height: 1.25;
}

.scan-tab__hint {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--gray-600);
}

.scan-tab__camera {
    margin-bottom: 1rem;
}

.scan-tab__camera-shell {
    position: relative;
    overflow: hidden;
    height: clamp(240px, 42vh, 300px);
    border-radius: 18px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 48, 135, 0.18);
}

.scan-tab__reader {
    width: 100%;
    height: 100%;
}

.scan-tab__reader video {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.scan-tab__reader > div {
    border: none !important;
    height: 100% !important;
}

.scan-tab__reader #qr-shaded-region {
    border-color: rgba(255, 199, 44, 0.85) !important;
    border-width: 2px !important;
}

.scan-tab__finder {
    position: absolute;
    inset: 14% 12%;
    pointer-events: none;
}

.scan-tab__corner {
    position: absolute;
    width: 1.35rem;
    height: 1.35rem;
    border-color: var(--yellow-500);
    border-style: solid;
}

.scan-tab__corner--tl {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
    border-radius: 4px 0 0 0;
}

.scan-tab__corner--tr {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
    border-radius: 0 4px 0 0;
}

.scan-tab__corner--bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 4px;
}

.scan-tab__corner--br {
    right: 0;
    bottom: 0;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 4px 0;
}

.scan-tab__camera-hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    color: var(--gray-600);
}

.scan-tab__status {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

.scan-tab__status.is-ready {
    color: var(--blue-700);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
}

.scan-tab__status.is-loading {
    color: var(--blue-900);
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
}

.scan-tab__status.is-error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.scan-tab__manual {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.scan-tab__manual-title {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.scan-tab__manual-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.scan-tab__manual-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--blue-700);
}

.scan-tab__manual-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scan-tab__manual-input {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--blue-900);
}

.scan-tab__manual-input:focus {
    outline: none;
}

.scan-tab__manual-input::placeholder {
    color: var(--gray-600);
    font-weight: 500;
}

.scan-tab__manual-submit {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 10px;
    color: var(--white);
    background: var(--blue-700);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.scan-tab__manual-submit svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scan-tab__manual-submit:active {
    opacity: 0.85;
    transform: scale(0.96);
}

.scan-tab__result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.scan-tab__result-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue-900);
}

.scan-tab__result-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue-700);
}

.scan-tab__result-back svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scan-tab__ticket-card {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.scan-tab__ticket-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.scan-tab__ticket-number {
    display: block;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--blue-900);
    word-break: break-all;
}

.scan-tab__ticket-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
}

.scan-tab__ticket-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.scan-tab__ticket-meta-item dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gray-600);
}

.scan-tab__ticket-meta-item dd {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--blue-900);
}

.scan-tab__bets-title {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.scan-tab__bets {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.scan-tab__bet-card {
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.scan-tab__bet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.scan-tab__bet-game {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--blue-900);
}

.scan-tab__bet-amount {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--blue-700);
    white-space: nowrap;
}

.scan-tab__bet-numbers {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.scan-tab__bet-digit {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--blue-900);
    background: var(--yellow-100);
    border: 1.5px solid var(--yellow-500);
}

.scan-tab__bet-meta {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--gray-600);
}

.scan-tab__verify-note {
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--blue-700);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
}

.scan-tab__status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scan-tab__status-badge--active {
    color: var(--blue-700);
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
}

.scan-tab__status-badge--cancelled {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.scan-tab__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.scan-tab__actions .btn {
    width: 100%;
    min-height: 44px;
}

.settings-panel {
    padding: 0.5rem 0 2rem;
}

.settings-commission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 1.25rem;
    padding: 1rem 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.settings-commission__col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.settings-commission__col--total {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    text-align: right;
    align-items: flex-end;
}

.settings-commission__label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-600);
}

.settings-commission__value {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue-900);
    white-space: nowrap;
}

.settings-commission__emoji {
    font-size: 1.15rem;
    line-height: 1;
}

.settings-commission__col--total .settings-commission__value {
    color: var(--blue-700);
}

.settings-commission__value.is-error {
    color: #b42318;
}

.settings-menu {
    margin-bottom: 1.25rem;
}

.settings-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.settings-menu__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 0;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
    transition: opacity 0.15s ease;
}

.settings-menu__list li:last-child .settings-menu__item {
    border-bottom: none;
}

.settings-menu__item:active {
    opacity: 0.7;
}

.settings-menu__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--blue-50);
    color: var(--blue-700);
}

.settings-menu__icon svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-menu__label {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--blue-900);
}

.settings-menu__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gray-600);
    opacity: 0.55;
}

.settings-menu__chevron svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-menu__badge {
    flex-shrink: 0;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: var(--yellow-100);
    border: 1px solid rgba(255, 199, 44, 0.45);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue-900);
}

.settings-menu__item--logout {
    margin-top: 0.35rem;
    border-top: 1px solid var(--gray-200);
}

.settings-menu__item--logout .settings-menu__label {
    color: #dc2626;
}

.settings-menu__icon--logout {
    background: #fef2f2;
    color: #dc2626;
}

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

.settings-admin .settings-card {
    margin-bottom: 0;
}

.account-details {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.account-details-page {
    padding: 0.5rem 0 2rem;
}

.account-details-page__header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.account-details-page__back {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: -0.35rem;
    flex-shrink: 0;
    color: var(--blue-700);
}

.account-details-page__back svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-details-page__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue-900);
}

.account-details-page__subtitle {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    color: var(--gray-600);
}

.account-details-page__empty {
    margin: 0;
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.monthly-statement-page {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    padding: 0.5rem 0 2rem;
}

.monthly-statement-page__header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}

.monthly-statement-page__back {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: -0.35rem;
    flex-shrink: 0;
    color: var(--blue-700);
}

.monthly-statement-page__back svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.monthly-statement-page__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue-900);
}

.monthly-statement-page__subtitle {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: var(--gray-600);
    flex-shrink: 0;
}

.monthly-statement-page__toolbar {
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.monthly-statement-page__month-input {
    min-width: 9.5rem;
}

.monthly-statement-page__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.monthly-statement-page__summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 48, 135, 0.12);
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.9) 0%, rgba(244, 248, 255, 0.55) 100%);
}

.monthly-statement-page__summary-item--wide {
    grid-column: 1 / -1;
}

.monthly-statement-page__summary-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.monthly-statement-page__summary-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-900);
}

.monthly-statement-page__ledger {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.monthly-statement-page__ledger-head,
.monthly-statement-page__ledger-row {
    display: grid;
    grid-template-columns: minmax(4.5rem, 1.1fr) repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    align-items: center;
}

.monthly-statement-page__ledger-head {
    padding: 0.55rem 0.65rem;
    background: var(--blue-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue-900);
}

.monthly-statement-page__ledger-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
    max-height: min(42dvh, 360px);
}

.monthly-statement-page__ledger-row {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.72rem;
    color: var(--gray-900);
}

.monthly-statement-page__ledger-row:last-child {
    border-bottom: 0;
}

.monthly-statement-page__ledger-date {
    font-weight: 700;
    color: var(--blue-900);
}

.monthly-statement-page__ledger-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.monthly-statement-page__ledger-empty {
    margin: 0;
    padding: 1.5rem 0.75rem;
    text-align: center;
    font-size: 0.84rem;
    color: var(--gray-600);
}

.monthly-statement-page__status {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: var(--gray-600);
    flex-shrink: 0;
}

.monthly-statement-page__status.is-error {
    color: #b42318;
    font-weight: 700;
}

.settings-text-page {
    padding: 0.5rem 0 2rem;
}

.settings-text-page__header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.settings-text-page__back {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: -0.35rem;
    flex-shrink: 0;
    color: var(--blue-700);
}

.settings-text-page__back svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-text-page__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue-900);
}

.settings-text-page__subtitle {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--gray-600);
}

.settings-text-page__body {
    padding: 0.95rem 1rem 1.1rem;
    border-radius: 14px;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.settings-prose {
    color: var(--blue-900);
    font-size: 0.9rem;
    line-height: 1.55;
}

.settings-prose__updated {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
}

.settings-prose h2 {
    margin: 1.1rem 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--blue-900);
}

.settings-prose h2:first-child {
    margin-top: 0;
}

.settings-prose p {
    margin: 0 0 0.75rem;
}

.settings-prose p:last-child,
.settings-prose ol:last-child,
.settings-prose ul:last-child {
    margin-bottom: 0;
}

.settings-prose ol,
.settings-prose ul {
    margin: 0 0 0.85rem;
    padding-left: 1.2rem;
}

.settings-prose li {
    margin-bottom: 0.35rem;
}

.settings-prose li:last-child {
    margin-bottom: 0;
}

.settings-prose strong {
    font-weight: 700;
    color: var(--blue-800, var(--blue-900));
}

.settings-printer-test {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(0, 48, 135, 0.1);
}

.settings-printer-test__btn {
    width: 100%;
    margin-top: 0.65rem;
}

.agent-id-verification-page {
    padding: 0.5rem 0 2rem;
}

.agent-id-verification__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    margin-top: 0.25rem;
    padding: 0.75rem 0 1.5rem;
    text-align: center;
}

.agent-id-verification__status {
    margin: 0;
}

.agent-id-verification__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.agent-id-verification__status-badge--pending {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fdba74;
}

.agent-id-verification__status-badge--verified {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.agent-id-verification__status-badge--verified::before {
    content: "✓";
    font-size: 0.85rem;
    line-height: 1;
}

.agent-id-verification-page--verified .agent-id-verification__qr-wrap {
    opacity: 0.72;
}

.agent-id-verification-page--verified .agent-id-verification__copy {
    display: none;
}

.agent-id-verification__name {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue-900);
    line-height: 1.35;
}

.agent-id-verification__qr-wrap {
    display: grid;
    place-items: center;
    padding: 0.85rem;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0, 48, 135, 0.07);
}

.agent-id-verification__qr {
    display: block;
    width: min(240px, 68vw);
    height: auto;
    aspect-ratio: 1;
    border-radius: 6px;
}

.agent-id-verification__id-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
}

.agent-id-verification__id-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.agent-id-verification__id-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.agent-id-verification__id {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    color: var(--blue-900);
    word-break: break-all;
}

.agent-id-verification__copy {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border: 1px solid var(--blue-700);
    border-radius: 999px;
    background: transparent;
    color: var(--blue-700);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.agent-id-verification__copy:active {
    background: var(--blue-50);
}

.agent-id-verification__copy.is-copied {
    border-color: var(--green-600, #16a34a);
    color: var(--green-600, #16a34a);
    background: rgba(22, 163, 74, 0.08);
}

.account-details__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-details__row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.account-details__row:last-child {
    border-bottom: none;
}

.account-details__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.account-details__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-900);
    line-height: 1.45;
    word-break: break-word;
}

.settings-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.settings-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.settings-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: var(--blue-50, #eef4ff);
    color: var(--blue-700);
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.settings-card__title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-900);
}

.settings-card__text {
    margin: 0;
    font-size: 0.78rem;
    color: var(--gray-600);
}

.settings-bet-limit__value {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blue-900);
}

.settings-bet-limit__meta {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.settings-bet-limit__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-bet-limit__save {
    width: 100%;
}

.agent-tab__icon {
    font-size: 2.5rem;
    color: var(--blue-700);
    margin-bottom: 0.75rem;
}

.agent-tab__title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--blue-900);
}

.agent-tab__text {
    margin: 0;
    max-width: 28ch;
    font-size: 0.92rem;
    color: var(--gray-600);
}

.agent-home__header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem;
    width: 100%;
    max-width: var(--landing-max);
    height: var(--agent-header-height);
    transform: translateX(-50%);
    padding:
        calc(0.6rem + env(safe-area-inset-top, 0px))
        calc(var(--page-pad-x) + env(safe-area-inset-right, 0px))
        0.55rem
        calc(var(--page-pad-x) + env(safe-area-inset-left, 0px));
}

.agent-home__header .landing__logo {
    width: 68px;
    height: 48px;
    flex-shrink: 0;
}

.agent-home__profile {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    text-align: right;
}

.agent-home__profile-name {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blue-900);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.agent-home__profile-id-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    max-width: 100%;
}

.agent-home__profile-id {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-home__copy {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 8px;
    color: var(--blue-700);
    background: transparent;
    border: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.agent-home__copy svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.agent-home__copy:active {
    background: transparent;
}

.agent-home__copy.is-copied {
    color: var(--blue-900);
    background: transparent;
    border-color: transparent;
}

.agent-home__body {
    margin-top: 0;
}

.agent-home__title {
    margin: 0 0 0.85rem;
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--blue-900);
    letter-spacing: -0.012em;
    line-height: 1.25;
}

.agent-home__emoji {
    display: inline-block;
    margin-left: 0.3rem;
    transform-origin: 72% 72%;
    animation: agent-hand-wave 1.8s ease-in-out infinite;
}

@keyframes agent-hand-wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(14deg);
    }
    20% {
        transform: rotate(-8deg);
    }
    30% {
        transform: rotate(14deg);
    }
    40% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .agent-home__emoji {
        animation: none;
    }
}

.agent-home__toolbar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.agent-home__date-search {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    min-height: 44px;
}

.agent-home__date-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--blue-700);
}

.agent-home__date-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.agent-home__date-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-900);
    padding: 0.65rem 0;
}

.agent-home__date-input:focus {
    outline: none;
}

.agent-home__print {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--blue-700);
    transition: opacity 0.15s ease;
}

.agent-home__print svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.agent-home__print:active {
    opacity: 0.7;
}

.agent-home__summary {
    margin-top: 1rem;
}

.grand-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.grand-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    line-height: 1.25;
}

.grand-table th,
.grand-table td {
    padding: 0.42rem 0;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.grand-table__title-row th {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.grand-table__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.grand-table__title-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue-900);
    white-space: nowrap;
}

.grand-table__title-leader {
    flex: 1;
    min-width: 0.75rem;
    border-bottom: 1px dotted var(--blue-200);
}

.grand-table__title-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--blue-700);
    white-space: nowrap;
}

.grand-table tbody tr:last-child td {
    border-bottom: none;
}

.grand-table__kabig-row td {
    border-top: 1px solid var(--gray-200);
    font-weight: 800;
    color: var(--blue-900);
    padding-top: 0.48rem;
    padding-bottom: 0.48rem;
}

.grand-table__amount {
    text-align: right;
    white-space: nowrap;
}

.draw-results {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.home-results-preview {
    margin-top: 0.85rem;
}

.home-results-preview .home-results-preview__title {
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
}

.home-results-preview__list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home-results-preview__item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.home-results-preview__item:active {
    transform: scale(0.99);
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.68);
}

.home-results-preview .home-results-preview__item.draw-table-wrap {
    overflow: visible;
}

.home-results-preview .draw-table__header {
    gap: 0.45rem;
}

.home-results-preview .draw-table__time {
    font-size: 0.74rem;
    line-height: 1.25;
    max-width: 62%;
}

.home-results-preview .draw-table__countdown {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    color: #1d5fbf;
    animation: draw-countdown-tick 1s ease-in-out infinite;
}

@keyframes draw-countdown-tick {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.72;
    }
}

.home-results-preview .draw-result__balls {
    gap: 0.28rem;
}

.home-results-preview .lotto-ball {
    width: 1.55rem;
    height: 1.55rem;
    border-width: 1.5px;
    box-shadow:
        inset -1px -2px 4px rgba(0, 0, 0, 0.24),
        inset 1px 1px 1px rgba(255, 255, 255, 0.35),
        0 1px 3px rgba(15, 55, 120, 0.18);
}

.home-results-preview .lotto-ball__num {
    font-size: 0.78rem;
}

.home-results-preview .draw-result__tba {
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.home-results-preview .draw-result__tba-badge {
    padding: 0.1rem 0.32rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
}

.home-results-preview .draw-result__tba-text {
    display: none;
}

.home-games {
    margin-top: 1rem;
}

.play-tickets {
    margin-top: 1.15rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.play-tickets__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.65rem;
}

.play-tickets__title {
    margin: 0;
    flex: 1 1 auto;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-900);
}

.play-tickets__date {
    flex: 0 0 auto;
}

.play-tickets__date-input {
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-surface);
    color: var(--blue-900);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
}

.play-tickets__count {
    flex: 1 1 100%;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-600);
}

.play-tickets__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: min(34dvh, 250px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.1rem;
}

.play-tickets__list::-webkit-scrollbar {
    width: 6px;
}

.play-tickets__list::-webkit-scrollbar-track {
    background: rgba(100, 116, 139, 0.12);
    border-radius: 999px;
}

.play-tickets__list::-webkit-scrollbar-thumb {
    background: rgba(0, 87, 184, 0.45);
    border-radius: 999px;
}

.play-tickets__list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 87, 184, 0.65);
}

.play-tickets__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.1rem 0.5rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.play-tickets__main {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.play-tickets__number {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--blue-900);
    word-break: break-all;
}

.play-tickets__meta {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gray-600);
}

.play-tickets__meta--cancelled {
    color: #b42318;
}

.play-tickets__amount {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--blue-700);
    white-space: nowrap;
}

.play-tickets__reprint {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--blue-700);
    border-radius: 999px;
    background: transparent;
    color: var(--blue-700);
    font-size: 0.64rem;
    font-weight: 700;
    cursor: pointer;
}

.play-tickets__reprint:disabled {
    opacity: 0.55;
    cursor: wait;
}

.play-tickets__status {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--gray-600);
}

.play-tickets__pagination {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.play-tickets__page-btn {
    min-width: 3.35rem;
    min-height: 1.9rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--blue-700);
    background: transparent;
    color: var(--blue-700);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.play-tickets__page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.play-tickets__page-info {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gray-600);
}

.play-tickets__status.is-error {
    color: #b42318;
}

.sheet--ticket-detail {
    max-height: min(88dvh, 720px);
}

.ticket-detail-sheet__body {
    overflow-y: auto;
    padding: 0 1.1rem 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.ticket-detail-sheet__body::-webkit-scrollbar {
    width: 6px;
}

.ticket-detail-sheet__body::-webkit-scrollbar-track {
    background: rgba(100, 116, 139, 0.12);
    border-radius: 999px;
}

.ticket-detail-sheet__body::-webkit-scrollbar-thumb {
    background: rgba(0, 87, 184, 0.45);
    border-radius: 999px;
}

.ticket-detail-sheet__body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 87, 184, 0.65);
}

.ticket-detail-sheet__body .scan-tab__result-head {
    margin-top: 0.15rem;
}

.ticket-detail-sheet__body .scan-tab__actions {
    position: sticky;
    bottom: 0;
    padding-top: 0.75rem;
    background: linear-gradient(to top, var(--white) 70%, transparent);
}

.home-games__title,
.home-results-preview__title {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-900);
}

.home-games__list {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
}

.home-games__list::-webkit-scrollbar {
    display: none;
}

.home-games__item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 5.25rem;
    padding: 0.5rem 0.4rem 0.55rem;
    border: none;
    background: transparent;
    box-shadow: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.home-games__item:active {
    transform: scale(0.97);
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.68);
}

.home-games__item--locked {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.home-games__item--locked:active {
    transform: none;
    opacity: 0.55;
}

.home-games__lock {
    font-size: 0.58rem;
    font-weight: 700;
    color: #b42318;
    text-align: center;
    line-height: 1.2;
}

#home-games .home-games__item,
#play-games .home-games__item {
    border-radius: 12px;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.home-games__item--active {
    opacity: 1;
}

.home-games__icon {
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
    border-radius: 10px;
}

.home-games__name {
    font-size: 0.66rem;
    font-weight: 700;
    text-align: center;
    color: var(--blue-900);
    line-height: 1.2;
}

.home-games__status {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: var(--gray-600);
    text-align: center;
}

.results-tab__body {
    padding-top: 0.15rem;
}

.play-tab__body {
    padding-top: 0.15rem;
}

.play-tab__body .home-games {
    margin-top: 0;
}

.results-tab__body .agent-home__toolbar {
    margin-bottom: 0.55rem;
}

.play-tab__hint {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: var(--gray-600);
}

/* ── Bet entry (3D Lotto) ── */

.bet-entry {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: var(--agent-bottom-nav-height);
}

.bet-entry::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.bet-entry__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    flex-shrink: 0;
}

.bet-entry__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--blue-900);
}

.bet-entry__back {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    margin-right: -0.25rem;
    flex-shrink: 0;
    color: var(--blue-700);
}

.bet-entry__back svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bet-entry__fields {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.bet-entry__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bet-entry__label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-900);
}

.bet-entry__time-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}

.bet-entry__time-btn {
    padding: 0.42rem 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-900);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bet-entry__time-btn--active {
    border-color: var(--blue-700);
    background: var(--blue-50);
    color: var(--blue-900);
}

.bet-entry__combo {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.35rem;
    border-radius: 10px;
    border: 1px solid var(--blue-100);
    background: var(--blue-50);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bet-entry__combo--focused {
    border-color: var(--yellow-500);
    transition: none;
    animation: bet-combo-focus-blink 1s ease-in-out infinite;
}

@keyframes bet-combo-focus-blink {
    0%,
    100% {
        border-color: var(--yellow-500);
        box-shadow: 0 0 0 2px rgba(255, 199, 44, 0.65);
    }

    50% {
        border-color: var(--yellow-400);
        box-shadow: 0 0 0 2px rgba(255, 199, 44, 0.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bet-entry__combo--focused,
    .bet-entry__amount-row--focused {
        animation: none;
        box-shadow: 0 0 0 2px rgba(255, 199, 44, 0.45);
    }
}

.bet-entry__combo-digit {
    display: grid;
    place-items: center;
    width: clamp(2rem, 11vw, 2.35rem);
    height: clamp(2rem, 11vw, 2.35rem);
    border-radius: 50%;
    border: 2px solid var(--blue-700);
    background: linear-gradient(180deg, var(--yellow-400) 0%, var(--yellow-500) 100%);
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-900);
    box-shadow:
        inset -1px -2px 4px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 48, 135, 0.12);
}

.bet-entry__combo-digit.is-empty {
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: none;
}

.bet-entry__amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.42rem 0.6rem;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bet-entry__amount-row--focused {
    border-color: var(--yellow-500);
    transition: none;
    animation: bet-combo-focus-blink 1s ease-in-out infinite;
}

.bet-entry__limit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.35rem 0 0;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--blue-50);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--blue-700);
}

.bet-entry__limit.is-available {
    border-color: rgba(0, 87, 184, 0.18);
    background: var(--blue-50);
    color: var(--blue-700);
}

.bet-entry__limit.is-low {
    border-color: rgba(255, 199, 44, 0.55);
    background: var(--yellow-100);
    color: #8a5a00;
}

.bet-entry__limit.is-over,
.bet-entry__limit.is-sold-out {
    border-color: rgba(180, 35, 24, 0.25);
    background: #fef3f2;
    color: #b42318;
    font-weight: 800;
}

.bet-entry__rambol-hint {
    margin: 0.25rem 0 0;
    font-size: 0.72rem;
    color: var(--blue-700);
    font-weight: 600;
}

.bet-entry__amount {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue-900);
    letter-spacing: 0.02em;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bet-entry__amount:focus-visible {
    outline: 2px solid var(--blue-700);
    outline-offset: 2px;
    border-radius: 4px;
}

.bet-entry__bet-type {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.bet-entry__bet-type-btn {
    padding: 0.32rem 0.5rem;
    border-radius: 7px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--gray-600);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.bet-entry__bet-type-btn--active {
    border-color: var(--blue-700);
    background: var(--blue-700);
    color: var(--white);
}

.bet-entry__bottom {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    overflow: hidden;
}

.bet-entry__bottom::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.bet-entry__panel-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 0.4rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--white);
}

.bet-entry__panel-tab {
    padding: 0.45rem 0.4rem;
    background: var(--white);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--gray-600);
    transition: background 0.15s ease, color 0.15s ease;
}

.bet-entry__panel-tab--active {
    background: var(--blue-900);
    color: var(--white);
}

.bet-entry__panel {
    display: none;
}

.bet-entry__panel--active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.bet-keypad {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.bet-keypad__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: clamp(0.2rem, 1.2dvh, 0.35rem);
    margin-bottom: clamp(0.25rem, 1.5dvh, 0.45rem);
    flex: 1;
    min-height: 0;
}

.bet-keypad__key {
    display: grid;
    place-items: center;
    min-height: clamp(1.85rem, 9dvh, 3.25rem);
    height: 100%;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-size: clamp(0.88rem, 4.2vw, 1rem);
    font-weight: 700;
    color: var(--blue-900);
    box-shadow: var(--shadow-card);
    transition: transform 0.1s ease, background 0.1s ease;
}

.bet-keypad__key:active {
    transform: scale(0.96);
    background: var(--blue-50);
}

.bet-keypad__key svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bet-keypad__key--wide {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.bet-keypad__add {
    flex-shrink: 0;
    min-height: clamp(2.1rem, 6.5dvh, 2.75rem);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

.bet-entry__panel[data-panel="bets"].bet-entry__panel--active .bet-slip {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-height: 700px) {
    .bet-entry__fields {
        gap: 0.35rem;
    }

    .bet-entry__header {
        margin-bottom: 0.3rem;
    }

    .bet-entry__bottom {
        margin-top: 0.15rem;
        padding-top: 0.25rem;
    }

    .bet-keypad__key {
        min-height: clamp(1.65rem, 8dvh, 2.5rem);
    }

    .bet-keypad__add {
        min-height: clamp(1.9rem, 5.5dvh, 2.35rem);
    }
}

.bet-slip {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bet-slip__empty {
    margin: 1rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--gray-600);
}

.bet-slip__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 0 0 auto;
    min-height: 0;
}

.bet-slip__pagination {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    flex-shrink: 0;
}

.bet-slip__page-btn {
    min-width: 3.35rem;
    min-height: 1.9rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--blue-700);
    background: transparent;
    color: var(--blue-700);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.bet-slip__page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bet-slip__page-info {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gray-600);
}

.bet-slip__item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-auto-rows: auto;
    align-items: center;
    gap: 0.25rem 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 48, 135, 0.14);
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.85) 0%, rgba(244, 248, 255, 0.55) 100%);
}

.bet-slip__item-combo {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.bet-slip__ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 24%, #ffffff 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 50% 115%, #0a2f6b 0%, #1a56b0 55%, #0d3d8a 100%);
    box-shadow:
        inset -2px -4px 8px rgba(0, 0, 0, 0.22),
        inset 1px 1px 2px rgba(255, 255, 255, 0.32),
        0 2px 5px rgba(15, 55, 120, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.bet-slip__item-meta {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-600);
    line-height: 1.25;
    white-space: normal;
}

.bet-slip__item-footer {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.1rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(0, 48, 135, 0.12);
}

.bet-slip__item-amount {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--blue-900);
}

.bet-slip__item-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.bet-slip__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border: 1px solid rgba(0, 48, 135, 0.12);
    border-radius: 10px;
    background: transparent;
    color: var(--blue-700);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.bet-slip__action svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bet-slip__action:active {
    transform: scale(0.96);
}

.bet-slip__action--edit:hover,
.bet-slip__action--edit:focus-visible {
    background: var(--blue-100);
    color: var(--blue-900);
}

.bet-slip__action--delete {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.2);
}

.bet-slip__action--delete:hover,
.bet-slip__action--delete:focus-visible {
    background: #fef3f2;
    border-color: rgba(180, 35, 24, 0.35);
    color: #912018;
}

.bet-slip__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--blue-100);
}

.bet-slip__total-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-900);
}

.bet-slip__total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue-900);
}

.bet-slip__message {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    text-align: center;
    color: #b42318;
}

.bet-slip__message.is-success {
    color: #027a48;
    font-weight: 700;
}

.bet-slip__submit {
    width: 100%;
    min-height: 2.7rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.bet-slip__print {
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.ticket-receipt-print {
    display: none;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media print {
    body.has-print-receipt * {
        visibility: hidden;
    }

    body.has-print-receipt #ticket-receipt-print,
    body.has-print-receipt #ticket-receipt-print * {
        visibility: visible;
    }

    body.has-print-receipt #ticket-receipt-print {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 384px;
        min-width: 384px;
        max-width: 384px;
        padding: 0;
        overflow: visible;
        font-family: monospace, "Courier New", Courier, monospace;
        font-size: 9pt;
        line-height: 1.35;
        color: #111;
    }

    body.has-print-receipt .app-shell,
    body.has-print-receipt .bottom-nav {
        display: none !important;
    }
}

.receipt__header {
    text-align: center;
    margin-bottom: 8px;
}

.receipt__logo {
    max-height: 36px;
    width: auto;
}

.receipt__meta {
    font-size: 10px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.receipt__meta-row {
    margin: 0 0 2px;
}

.receipt__ticket-no {
    text-align: center;
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.08em;
    margin: 8px 0 2px;
    word-break: break-all;
}

.receipt__ticket-label {
    text-align: center;
    font-size: 9px;
    margin-bottom: 8px;
}

.receipt__sig-box {
    width: 90%;
    height: 24px;
    border: 1px solid #000;
    margin: 0 auto 4px;
}

.receipt__sig-label {
    text-align: center;
    font-size: 9px;
    margin-bottom: 8px;
}

.receipt__bet {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #ccc;
}

.receipt__bet:last-child {
    border-bottom: none;
}

.receipt__bet-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
}

.receipt__bet-numbers {
    font-weight: 800;
    letter-spacing: 0.15em;
}

.receipt__bet-price {
    text-align: right;
    font-size: 10px;
    margin-top: 2px;
}

.receipt__total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 11px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #000;
}

.receipt__footer {
    text-align: center;
    font-size: 9px;
    color: #666;
    margin-top: 10px;
}

.results-tab__body .draw-results,
#results-draw-results {
    gap: 0.55rem;
    margin-top: 0;
}

.results-tab__body .draw-table-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border-radius: 12px;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.results-tab__body .draw-table {
    font-size: 0.8rem;
    line-height: 1.25;
}

.results-tab__body .draw-table th,
.results-tab__body .draw-table td {
    padding: 0.42rem 0.75rem;
}

.results-tab__body .draw-table__title-row th {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
}

.results-tab__body .draw-table__header {
    gap: 0.5rem;
}

.results-tab__body .draw-table__time {
    font-size: 0.78rem;
}

.results-tab__body .draw-result__balls {
    gap: 0.3rem;
}

.results-tab__body .lotto-ball {
    width: 1.75rem;
    height: 1.75rem;
    border-width: 1.5px;
    box-shadow:
        inset -1px -2px 4px rgba(0, 0, 0, 0.24),
        inset 1px 1px 1px rgba(255, 255, 255, 0.35),
        0 1px 3px rgba(15, 55, 120, 0.18);
}

.results-tab__body .lotto-ball__num {
    font-size: 0.82rem;
}

.results-tab__body .draw-result__tba {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
}

.results-tab__body .draw-result__tba-badge {
    padding: 0.1rem 0.32rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
}

.results-tab__body .draw-result__tba-text {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
}

.results-tab__body .draw-table__kabig-row td {
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.draw-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-card);
    background: var(--white);
}

.draw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.draw-table th,
.draw-table td {
    padding: 0.65rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.draw-table__title-row th {
    padding: 0.85rem 0.9rem;
    border-bottom: 2px solid var(--blue-100);
    background: var(--white);
}

.draw-table__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.draw-table__time {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--blue-900);
    white-space: nowrap;
}

.draw-result {
    flex-shrink: 0;
}

.coordinator-draw-entry {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.coordinator-draw-entry__header {
    margin-bottom: 0.85rem;
}

.coordinator-draw-entry__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--blue-900);
}

.coordinator-draw-entry__subtitle {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--gray-600);
}

.coordinator-draw-entry__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.coordinator-draw-entry__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.coordinator-draw-entry__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.coordinator-draw-entry__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.coordinator-draw-entry__select,
.coordinator-draw-entry__input,
.results-game-filter__select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--blue-900);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
}

.coordinator-draw-entry__input {
    text-align: center;
    letter-spacing: 0.12em;
}

.coordinator-draw-entry__status {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--gray-600);
}

.coordinator-draw-entry__status.is-error {
    color: #b42318;
}

.coordinator-draw-entry__status.is-success {
    color: #15803d;
}

.coordinator-draw-entry__submit {
    width: 100%;
}

.results-game-filter {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.results-game-filter__label {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.results-game-filter__select {
    flex: 1;
    min-width: 0;
}

.draw-result {
    flex-shrink: 0;
}

.draw-result__tba {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.12rem;
    margin: 0;
    text-align: right;
}

.draw-result__tba-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

.draw-result__tba-text {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    text-transform: uppercase;
}

.draw-result__balls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lotto-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 24%, #ffffff 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 50% 115%, #0a2f6b 0%, #1a56b0 55%, #0d3d8a 100%);
    box-shadow:
        inset -2px -4px 8px rgba(0, 0, 0, 0.28),
        inset 1px 1px 2px rgba(255, 255, 255, 0.35),
        0 2px 5px rgba(15, 55, 120, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.lotto-ball__num {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.draw-result--announced .lotto-ball:nth-child(1) {
    background:
        radial-gradient(circle at 30% 24%, #ffffff 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 50% 115%, #8a6200 0%, var(--yellow-500) 55%, #d4a017 100%);
}

.draw-result--announced .lotto-ball:nth-child(2) {
    background:
        radial-gradient(circle at 30% 24%, #ffffff 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 50% 115%, #0a2f6b 0%, #1a56b0 55%, #0d3d8a 100%);
}

.draw-result--announced .lotto-ball:nth-child(3) {
    background:
        radial-gradient(circle at 30% 24%, #ffffff 0%, rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle at 50% 115%, #6b0a0a 0%, #c62828 55%, #8b0000 100%);
}

.draw-result--announced .lotto-ball:nth-child(1) .lotto-ball__num {
    color: var(--blue-900);
    text-shadow: none;
}

.draw-table tbody tr:last-child td {
    border-bottom: none;
}

.draw-table__kabig-row td {
    border-top: 2px solid var(--blue-100);
    background: var(--blue-50);
    font-weight: 700;
    color: var(--blue-900);
}

.draw-table__amount {
    text-align: right;
    white-space: nowrap;
}

.agent-home__name {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: var(--gray-600);
}

.agent-home__card {
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    text-align: center;
}

.agent-home__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-600);
}

.agent-home__id {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blue-900);
    letter-spacing: 0.06em;
}

.coming-soon-banner {
    position: fixed;
    left: 50%;
    bottom: calc(var(--agent-bottom-nav-height) + 0.65rem);
    transform: translateX(-50%) translateY(0.75rem);
    z-index: 60;
    width: calc(100% - 1.25rem);
    max-width: calc(var(--landing-max) - 1.25rem);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 199, 44, 0.55);
    background: linear-gradient(180deg, var(--yellow-400) 0%, var(--yellow-500) 100%);
    box-shadow: 0 8px 24px rgba(0, 48, 135, 0.16);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.coming-soon-banner.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.coming-soon-banner__text {
    display: block;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue-900);
}

.app-toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--agent-bottom-nav-height) + 0.65rem);
    transform: translateX(-50%) translateY(0.85rem);
    z-index: 70;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    width: calc(100% - 1.25rem);
    max-width: calc(var(--landing-max) - 1.25rem);
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    box-shadow: 0 12px 28px rgba(0, 48, 135, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.app-toast__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.app-toast__body {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

.app-toast__title {
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.25;
}

.app-toast__text {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.92;
}

.app-toast--info {
    border-color: rgba(0, 87, 184, 0.22);
    background: linear-gradient(180deg, #edf4ff 0%, #dceaff 100%);
    color: var(--blue-900);
}

.app-toast--info .app-toast__icon {
    background: var(--blue-700);
    color: var(--white);
}

.app-toast--warning {
    border-color: rgba(255, 199, 44, 0.55);
    background: linear-gradient(180deg, var(--yellow-400) 0%, var(--yellow-500) 100%);
    color: var(--blue-900);
}

.app-toast--warning .app-toast__icon {
    background: rgba(0, 48, 135, 0.12);
    color: var(--blue-900);
}

.app-toast--error {
    border-color: rgba(180, 35, 24, 0.28);
    background: linear-gradient(180deg, #fff1f0 0%, #ffe4e1 100%);
    color: #7a1c14;
}

.app-toast--error .app-toast__icon {
    background: #b42318;
    color: var(--white);
}

.app-toast--success {
    border-color: rgba(11, 128, 67, 0.25);
    background: linear-gradient(180deg, #edfaf3 0%, #d9f5e5 100%);
    color: #0b8043;
}

.app-toast--success .app-toast__icon {
    background: #0b8043;
    color: var(--white);
}

.agent-home--bet-entry .app-toast,
.agent-home--bet-entry .coming-soon-banner {
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--landing-max);
    min-height: var(--agent-bottom-nav-height);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: flex-end;
    gap: 0;
    padding:
        0.35rem calc(var(--page-pad-x) + env(safe-area-inset-right, 0px))
        calc(0.5rem + env(safe-area-inset-bottom, 0px))
        calc(var(--page-pad-x) + env(safe-area-inset-left, 0px));
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 24px rgba(0, 48, 135, 0.08);
    z-index: 50;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    padding: 0.35rem 0.15rem;
    color: var(--gray-600);
    font-size: 0.65rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.bottom-nav__item--active {
    color: var(--blue-700);
}

.bottom-nav__item--active .bottom-nav__icon {
    color: var(--blue-700);
}

.bottom-nav__item--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.bottom-nav__item--disabled .bottom-nav__label {
    color: var(--gray-600);
}

.bottom-nav__icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--gray-600);
}

.bottom-nav__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav__item--scan .bottom-nav__icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.bottom-nav__label {
    line-height: 1.1;
}

.bottom-nav__item--scan {
    position: relative;
}

.bottom-nav__scan-btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: -1.35rem;
    margin-bottom: 0.15rem;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--yellow-400) 0%, var(--yellow-500) 100%);
    color: var(--blue-900);
    box-shadow: 0 6px 18px rgba(255, 199, 44, 0.45);
    border: 3px solid var(--white);
}

.bottom-nav__item--scan .bottom-nav__icon {
    color: var(--blue-900);
}

.bottom-nav__item--scan.bottom-nav__item--active .bottom-nav__label {
    color: var(--blue-700);
}

@media (max-height: 580px) {
    .sheet {
        max-height: 92dvh;
    }

    .carousel-slide {
        padding-bottom: 0.25rem;
    }
}

/* Softer typography: reduce heavy bold usage across UI */
.app-shell h1,
.app-shell h2,
.app-shell h3,
.app-shell .btn,
.app-shell .field-label,
.app-shell .sheet-title,
.app-shell .agent-home__title,
.app-shell .home-games__title,
.app-shell .home-results-preview__title,
.app-shell .draw-table__time,
.app-shell .settings-menu__label,
.app-shell .settings-card__title,
.app-shell .bet-entry__label,
.app-shell .bet-slip__total-label {
    font-weight: 600 !important;
}
