/* ============================================================
   mobile/base.css — Mobile-first layout shell, body, root vars
   Depends on: preflight.css, theme.css, spacing.css, style.css
   ============================================================ */

/* ── Mobile-specific overrides ── */
:root {
    --m-tabbar-h: 60px;
    --m-header-h: 52px;
    --m-radius: 12px;
    --m-radius-sm: 8px;
    --m-radius-lg: 16px;
    --m-gap: 10px;
    --m-padding: 12px;
}

/* ── Body ── */
html, body {
    overscroll-behavior-y: contain;  /* prevent pull-to-refresh bounce */
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100dvh;
    padding-bottom: var(--m-tabbar-h);  /* space for fixed tabbar */
}

/* ── App shell ── */
.m-app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

/* ── Main content area ── */
.m-main {
    flex: 1;
    padding-top: var(--m-header-h);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Utility classes ── */
.m-section-pad {
    padding-left: var(--m-padding);
    padding-right: var(--m-padding);
}

/* Horizontal scroll container */
.m-scroll-x {
    display: flex;
    gap: var(--m-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-left: var(--m-padding);
    padding-right: var(--m-padding);
}
.m-scroll-x::-webkit-scrollbar { display: none; }
.m-scroll-x > * { scroll-snap-align: start; flex-shrink: 0; }

/* Section header */
.m-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--m-padding);
}

.m-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.m-section-title .material-symbols-rounded {
    font-size: 18px;
}

.m-section-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 10px 4px 12px;
    cursor: pointer;
    transition: color .2s, background .2s;
}
.m-section-link:active {
    background: var(--surface2);
    color: var(--text2);
}
.m-section-link .material-symbols-rounded {
    font-size: 14px;
}
/* ============================================================
   mobile/header.css — Sticky top header (logo + auth buttons)
   ============================================================ */

.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--m-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--m-padding);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-width: 480px;
    margin: 0 auto;
    transition: box-shadow .25s;
}

.m-header.scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,.35);
}

/* Logo */
.m-header-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0;
}
.m-header-logo span {
    color: var(--accent);
}

/* Auth buttons group */
.m-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-btn-login {
    padding: 7px 16px;
    border-radius: var(--m-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface2);
    border: 1px solid var(--border2);
    cursor: pointer;
    transition: background .2s;
}
.m-btn-login:active {
    background: var(--surface3);
}

.m-btn-register {
    padding: 7px 16px;
    border-radius: var(--m-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-green-600);
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.m-btn-register:active {
    background: var(--color-green-700);
}
/* ============================================================
   mobile/tabbar.css — Fixed bottom tab bar (5 tabs)
   ============================================================ */

.m-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--m-tabbar-h);
    display: flex;
    align-items: stretch;
    background: var(--bg);
    border-top: 1px solid var(--border);
    max-width: 480px;
    margin: 0 auto;
    /* safe area for iPhone notch */
    padding-bottom: env(safe-area-inset-bottom);
}

.m-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    color: var(--text3);
    position: relative;
    transition: color .2s;
    -webkit-tap-highlight-color: transparent;
}

.m-tab .material-symbols-rounded {
    font-size: 22px;
    transition: transform .15s;
}

.m-tab-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

/* Active state */
.m-tab.active {
    color: var(--accent);
}
.m-tab.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* Active indicator dot */
.m-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--accent);
}

/* Tap feedback */
.m-tab:active .material-symbols-rounded {
    transform: scale(0.9);
}
/* ============================================================
   mobile/drawer.css — Slide-in menu drawer (from left)
   ============================================================ */

/* Overlay */
.m-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.m-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Drawer panel */
.m-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 201;
    width: 280px;
    max-width: 80vw;
    background: var(--bg2);
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.25,.8,.25,1);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    display: flex;
    flex-direction: column;
}
.m-drawer.open {
    transform: translateX(0);
}

/* Drawer header */
.m-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.m-drawer-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}
.m-drawer-logo span { color: var(--accent); }

.m-drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: none;
    border-radius: var(--m-radius-sm);
    color: var(--text3);
    cursor: pointer;
}
.m-drawer-close .material-symbols-rounded {
    font-size: 18px;
}

/* Nav items */
.m-drawer-nav {
    flex: 1;
    padding: 8px 0;
}

.m-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.m-drawer-item:active {
    background: var(--surface);
}
.m-drawer-item.active {
    color: var(--accent);
    background: color-mix(in oklch, var(--accent) 8%, transparent);
}
.m-drawer-item .material-symbols-rounded {
    font-size: 20px;
    color: var(--text3);
}
.m-drawer-item.active .material-symbols-rounded {
    color: var(--accent);
}

.m-drawer-badge {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--red);
    color: var(--color-white);
    text-transform: uppercase;
}

.m-drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 16px;
}

/* Drawer footer */
.m-drawer-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.m-drawer-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background .2s;
    margin-bottom: 8px;
}
.m-drawer-cta:active {
    background: var(--surface2);
}

.m-drawer-cta-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--m-radius-sm);
    background: color-mix(in oklch, var(--accent) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.m-drawer-cta-icon .material-symbols-rounded {
    font-size: 18px;
    color: var(--accent);
}

.m-drawer-cta-text {
    flex: 1;
}
.m-drawer-cta-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}
.m-drawer-cta-sub {
    font-size: 10px;
    color: var(--text3);
}
/* ============================================================
   mobile/banner.css — Hero banner carousel + promo cards
   ============================================================ */

/* ── Hero carousel ── */
.m-banner-carousel {
    position: relative;
    padding: 0 var(--m-padding);
}

.m-banner-track {
    display: flex;
    gap: var(--m-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--m-radius-lg);
}
.m-banner-track::-webkit-scrollbar { display: none; }

.m-banner-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--m-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface);
}

.m-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient overlay for text readability */
.m-banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,.65) 0%,
        rgba(0,0,0,.2) 60%,
        transparent 100%
    );
    pointer-events: none;
}

.m-banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.m-banner-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 4px;
}

.m-banner-sub {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    line-height: 1.3;
}

/* Dots indicator */
.m-banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-top: 10px;
}

.m-banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--surface3);
    transition: all .25s;
    cursor: pointer;
}
.m-banner-dot.active {
    width: 18px;
    border-radius: 3px;
    background: var(--accent);
}

/* ── Promo duo cards (Free money / Bonus style) ── */
.m-promo-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--m-gap);
    padding: 0 var(--m-padding);
}

.m-promo-card {
    position: relative;
    border-radius: var(--m-radius);
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: 1.4;
    cursor: pointer;
    transition: transform .15s;
}
.m-promo-card:active {
    transform: scale(0.97);
}

.m-promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.m-promo-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,.6) 0%,
        transparent 70%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
}

.m-promo-card-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
}

.m-promo-card-sub {
    font-size: 10px;
    color: rgba(255,255,255,.65);
    margin-top: 2px;
    line-height: 1.3;
}
/* ============================================================
   mobile/game.css — Game card grid & horizontal scroll rows
   ============================================================ */

/* ── Game card (used in horizontal scroll & grid) ── */
.m-game-card {
    position: relative;
    border-radius: var(--m-radius);
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    transition: transform .15s;
}
.m-game-card:active {
    transform: scale(0.96);
}

.m-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 3 / 4;
}

/* Badge overlay (HOT, NEW, LIVE) */
.m-game-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-white);
    line-height: 1.3;
}
.m-game-badge--hot { background: var(--red); }
.m-game-badge--new { background: var(--accent); }
.m-game-badge--live { 
    background: var(--color-green-600);
    animation: m-live-pulse 2s infinite;
}

@keyframes m-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

/* Game name overlay at bottom */
.m-game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 8px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    font-size: 11px;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-game-provider {
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: rgba(255,255,255,.55);
    margin-top: 1px;
}

/* ── Horizontal game row (like "1win games") ── */
.m-game-row {
    display: flex;
    gap: var(--m-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 var(--m-padding);
}
.m-game-row::-webkit-scrollbar { display: none; }

.m-game-row .m-game-card {
    flex: 0 0 120px;
    scroll-snap-align: start;
}

/* ── Full grid (3 columns like "Semua permainan") ── */
.m-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--m-gap);
    padding: 0 var(--m-padding);
}

/* ── Category / provider chips (horizontal scroll) ── */
.m-cat-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--m-padding);
}
.m-cat-scroll::-webkit-scrollbar { display: none; }

.m-cat-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text3);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.m-cat-chip .material-symbols-rounded {
    font-size: 16px;
}
.m-cat-chip.active {
    color: var(--color-white);
    background: var(--accent);
    border-color: var(--accent);
}
.m-cat-chip:active:not(.active) {
    background: var(--surface2);
}
/* ============================================================
   mobile/components.css — Promo strip, search, misc components
   ============================================================ */

/* ── Promo strip / marquee ── */
.m-promo-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px var(--m-padding);
    background: color-mix(in oklch, var(--accent) 10%, transparent);
    border-bottom: 1px solid color-mix(in oklch, var(--accent) 15%, transparent);
    overflow: hidden;
}

.m-promo-strip-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-promo-strip-icon .material-symbols-rounded {
    font-size: 14px;
    color: var(--color-white);
}

.m-promo-strip-text {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    position: relative;
}

/* Inner span handles the actual scrolling */
.m-promo-strip-text span {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    /* start from right edge */
    animation: m-marquee 12s linear infinite;
}

@keyframes m-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Pause on tap/hold for readability */
.m-promo-strip-text:active span {
    animation-play-state: paused;
}

.m-promo-strip-btn {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
}

/* ── Search bar (inline) ── */
.m-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 var(--m-padding);
    padding: 10px 12px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.m-search .material-symbols-rounded {
    font-size: 18px;
    color: var(--text3);
    flex-shrink: 0;
}

.m-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
}

.m-search input::placeholder {
    color: var(--text3);
}

/* ── Provider card scroll row ── */
.m-provider-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 var(--m-padding);
}

.m-provider-scroll::-webkit-scrollbar {
    display: none;
}

.m-provider-card {
    flex: 0 0 100px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background .15s, border-color .2s, transform .15s;
}

.m-provider-card:active {
    transform: scale(0.96);
    background: var(--surface2);
    border-color: var(--border2);
}

/* Logo image wrapper — skeleton lives here */
.m-provider-logo {
    position: relative;
    width: 64px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Skeleton shimmer (visible by default, hidden when img loads) */
.m-provider-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--m-radius-sm);
    background: linear-gradient(90deg,
            var(--surface) 25%,
            var(--surface2) 50%,
            var(--surface) 75%);
    background-size: 200% 100%;
    animation: m-skeleton-shine 1.4s ease-in-out infinite;
}

/* Image itself — hidden until loaded */
.m-provider-logo img {
    position: relative;
    /* sit above skeleton */
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity .3s ease;
}

/* When image is loaded, reveal it and kill skeleton */
.m-provider-logo.loaded::before {
    display: none;
}

.m-provider-logo.loaded img {
    opacity: 1;
}

/* Provider name */
.m-provider-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text2);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1;
}

@keyframes m-skeleton-shine {
    0% {
        background-position: 200% 0;
    }

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

/* ── Floating deposit FAB ── */
.m-fab-deposit {
    position: fixed;
    bottom: calc(var(--m-tabbar-h) + 16px + env(safe-area-inset-bottom));
    right: 16px;
    z-index: 90;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-green-600);
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.m-fab-deposit:active {
    transform: scale(0.92);
}

.m-fab-deposit .material-symbols-rounded {
    font-size: 24px;
    color: var(--color-white);
}

/* ── Mini footer (simplified for mobile) ── */
.m-footer {
    padding: 20px var(--m-padding);
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.m-footer-brand {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.m-footer-brand span {
    color: var(--accent);
}

.m-footer-desc {
    font-size: 11px;
    color: var(--text3);
    line-height: 1.5;
    margin-bottom: 12px;
}

.m-footer-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.m-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text3);
}

.m-footer-badge .material-symbols-rounded {
    font-size: 14px;
}

.m-footer-copy {
    font-size: 10px;
    color: color-mix(in oklch, var(--text3) 60%, transparent);
}

/* ── Live indicator for drawer ── */
.m-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-green-500);
    animation: m-live-pulse 2s infinite;
    flex-shrink: 0;
}/* ============================================================
   mobile/components/forms.css — Form inputs, selects, buttons
   Ultra mobile-first: large touch targets, clear labels
   ============================================================ */

/* ── Form container ── */
.m-form-box {
    padding: 0 var(--m-padding);
}

.m-form-header {
    padding: 16px 0 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.m-form-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.m-form-header p {
    font-size: 12px;
    color: var(--text3);
    margin-top: 4px;
}

/* ── Form group / field ── */
.m-form-group {
    margin-bottom: 14px;
}

.m-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-form-label .material-symbols-rounded {
    font-size: 16px;
    color: var(--text3);
}

/* ── Text input / textarea ── */
.m-form-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}

.m-form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: color-mix(in oklch, var(--accent) 5%, var(--surface));
}

.m-form-input::placeholder {
    color: var(--text3);
    font-size: 13px;
}

.m-form-input[readonly] {
    opacity: .6;
    cursor: default;
}

.m-form-input[disabled] {
    opacity: .4;
    cursor: not-allowed;
}

.m-form-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color .2s;
    -webkit-appearance: none;
}

.m-form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── Password input with toggle ── */
.m-form-password-wrap {
    position: relative;
}

.m-form-password-wrap .m-form-input {
    padding-right: 48px;
}

.m-form-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
}

.m-form-password-toggle .material-symbols-rounded {
    font-size: 20px;
}

/* ── Select ── */
.m-form-select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 14px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color .2s;
}

.m-form-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── Buttons ── */
.m-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border-radius: var(--m-radius);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all .2s;
    text-transform: uppercase;
    letter-spacing: .5px;
    -webkit-tap-highlight-color: transparent;
}

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

.m-btn .material-symbols-rounded {
    font-size: 18px;
}

.m-btn--primary {
    background: var(--accent);
    color: var(--color-white);
}

.m-btn--primary:active {
    background: var(--accent2);
}

.m-btn--green {
    background: var(--color-green-600);
    color: var(--color-white);
}

.m-btn--green:active {
    background: var(--color-green-700);
}

.m-btn--outline {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--text2);
}

.m-btn--outline:active {
    background: var(--surface);
}

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

.m-btn--sm {
    height: 38px;
    font-size: 12px;
    border-radius: var(--m-radius-sm);
}

/* ── Quick amount chips ── */
.m-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.m-chip {
    flex: 1;
    min-width: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--m-radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    transition: all .15s;
}

.m-chip:active,
.m-chip.active {
    background: color-mix(in oklch, var(--accent) 15%, transparent);
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Form footer / link ── */
.m-form-footer {
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
    color: var(--text3);
}

.m-form-footer a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

/* ── Form sub-header ── */
.m-form-sub-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 10px;
    padding-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-form-optional {
    font-size: 11px;
    font-weight: 400;
    color: var(--text3);
}

/* ── Form split row ── */
.m-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Inline alert / error ── */
.m-form-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    border-radius: var(--m-radius);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.m-form-alert--info {
    background: color-mix(in oklch, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in oklch, var(--accent) 25%, transparent);
    color: var(--text2);
}

.m-form-alert--error {
    background: color-mix(in oklch, var(--red) 10%, transparent);
    border: 1px solid color-mix(in oklch, var(--red) 25%, transparent);
    color: var(--color-red-300);
}

.m-form-alert--success {
    background: color-mix(in oklch, var(--green) 10%, transparent);
    border: 1px solid color-mix(in oklch, var(--green) 25%, transparent);
    color: var(--color-green-300);
}

.m-form-alert .material-symbols-rounded {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Method tabs (deposit) ── */
.m-method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.m-method-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}

.m-method-tab .material-symbols-rounded {
    font-size: 22px;
}

.m-method-tab.active {
    background: color-mix(in oklch, var(--accent) 12%, transparent);
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Promo selection cards ── */
.m-promo-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.m-promo-select-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .15s;
}

.m-promo-select-card.active {
    border-color: var(--accent);
    background: color-mix(in oklch, var(--accent) 8%, transparent);
}

.m-promo-select-card .m-promo-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--m-radius-sm);
    background: color-mix(in oklch, var(--gold) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.m-promo-select-card .m-promo-icon .material-symbols-rounded {
    font-size: 16px;
    color: var(--gold);
}

.m-promo-select-card .m-promo-body {
    flex: 1;
    min-width: 0;
}

.m-promo-select-card .m-promo-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-promo-select-card .m-promo-tags {
    display: flex;
    gap: 4px;
    margin-top: 3px;
}

.m-promo-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.m-promo-tag--pct {
    background: color-mix(in oklch, var(--green) 15%, transparent);
    color: var(--green);
}

.m-promo-tag--nom {
    background: color-mix(in oklch, var(--gold) 15%, transparent);
    color: var(--gold);
}

.m-promo-tag--limit {
    background: var(--surface2);
    color: var(--text3);
}

.m-promo-check {
    font-size: 20px;
    color: var(--border2);
    flex-shrink: 0;
    transition: color .15s;
}

.m-promo-select-card.active .m-promo-check {
    color: var(--accent);
}

/* ── Bonus preview box ── */
.m-bonus-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--m-radius);
    background: color-mix(in oklch, var(--green) 8%, transparent);
    border: 1px solid color-mix(in oklch, var(--green) 20%, transparent);
    margin-top: 10px;
}

.m-bonus-preview-label {
    font-size: 11px;
    color: var(--text3);
}

.m-bonus-preview-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
}

/* ── Image upload ── */
.m-form-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px dashed var(--border2);
    cursor: pointer;
}

.m-form-upload-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface2);
    flex-shrink: 0;
}

.m-form-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-form-upload-text {
    font-size: 12px;
    color: var(--text3);
}

.m-form-upload-text strong {
    color: var(--accent);
    display: block;
    margin-bottom: 2px;
}
/* ============================================================
   mobile/components/tables.css — Tables, lists, data display
   Ultra mobile: card-based rows, not traditional tables
   ============================================================ */

/* ── Card-table (mobile-friendly table replacement) ── */
.m-card-table {
    padding: 0 var(--m-padding);
}

.m-card-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 10px;
}

.m-card-table-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

/* ── Table row as card ── */
.m-table-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 8px;
    transition: background .15s;
}

.m-table-card:active {
    background: var(--surface2);
}

.m-table-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--m-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.m-table-card-icon--deposit {
    background: color-mix(in oklch, var(--green) 12%, transparent);
    color: var(--green);
}

.m-table-card-icon--withdraw {
    background: color-mix(in oklch, var(--red) 12%, transparent);
    color: var(--red);
}

.m-table-card-icon--bonus {
    background: color-mix(in oklch, var(--gold) 12%, transparent);
    color: var(--gold);
}

.m-table-card-icon--info {
    background: color-mix(in oklch, var(--accent) 12%, transparent);
    color: var(--accent);
}

.m-table-card-icon--game {
    background: var(--surface2);
    overflow: hidden;
    border-radius: var(--m-radius-sm);
}

.m-table-card-icon--game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-table-card-icon .material-symbols-rounded {
    font-size: 20px;
}

.m-table-card-body {
    flex: 1;
    min-width: 0;
}

.m-table-card-primary {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-table-card-secondary {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.m-table-card-end {
    text-align: right;
    flex-shrink: 0;
}

.m-table-card-amount {
    font-size: 14px;
    font-weight: 700;
}

.m-table-card-amount.positive { color: var(--green); }
.m-table-card-amount.negative { color: var(--red); }
.m-table-card-amount.neutral  { color: var(--text); }

.m-table-card-balance {
    font-size: 10px;
    color: var(--text3);
    margin-top: 2px;
}

/* ── Status badge ── */
.m-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.m-status--pending {
    background: color-mix(in oklch, var(--orange) 12%, transparent);
    color: var(--orange);
}

.m-status--success {
    background: color-mix(in oklch, var(--green) 12%, transparent);
    color: var(--green);
}

.m-status--failed {
    background: color-mix(in oklch, var(--red) 12%, transparent);
    color: var(--red);
}

.m-status--void {
    background: var(--surface2);
    color: var(--text3);
}

.m-status--running {
    background: color-mix(in oklch, var(--accent) 12%, transparent);
    color: var(--accent);
}

/* ── Loadmore button ── */
.m-loadmore {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 40px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text3);
    cursor: pointer;
    transition: all .15s;
    margin-top: 4px;
}

.m-loadmore:active {
    background: var(--surface2);
    color: var(--text2);
}

.m-loadmore .material-symbols-rounded {
    font-size: 16px;
}

/* ── Empty state ── */
.m-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px var(--m-padding);
    text-align: center;
}

.m-empty .material-symbols-rounded {
    font-size: 48px;
    color: var(--surface3);
}

.m-empty-text {
    font-size: 13px;
    color: var(--text3);
}

/* ── Inbox message cards ── */
.m-inbox-card {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.m-inbox-card.unread {
    border-left: 3px solid var(--accent);
}

.m-inbox-card.self {
    background: color-mix(in oklch, var(--accent) 5%, var(--surface));
}

.m-inbox-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.m-inbox-avatar .material-symbols-rounded {
    font-size: 16px;
    color: var(--text3);
}

.m-inbox-body {
    flex: 1;
    min-width: 0;
}

.m-inbox-type {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.m-inbox-content {
    font-size: 12px;
    color: var(--text2);
    margin-top: 4px;
    line-height: 1.5;
    word-break: break-word;
}

.m-inbox-time {
    font-size: 10px;
    color: var(--text3);
    margin-top: 6px;
}

/* ── Notif process box (deposit/withdraw pending) ── */
.m-notif-box {
    padding: 20px;
    border-radius: var(--m-radius-lg);
    background: color-mix(in oklch, var(--accent) 6%, var(--surface));
    border: 1px solid color-mix(in oklch, var(--accent) 20%, transparent);
    text-align: center;
    margin: 0 var(--m-padding);
}

.m-notif-box-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.m-notif-box-status .material-symbols-rounded {
    font-size: 16px;
    animation: spin 2s linear infinite;
}

.m-notif-box-bank {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.m-notif-box-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 4px;
    cursor: pointer;
}

.m-notif-box-name {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 12px;
}

.m-notif-box-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.m-notif-box-qr {
    width: 140px;
    height: 140px;
    margin: 12px auto;
    border-radius: var(--m-radius);
    overflow: hidden;
    background: var(--color-white);
    padding: 8px;
}

.m-notif-box-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.m-notif-box-hint {
    font-size: 11px;
    color: var(--text3);
    margin-top: 8px;
}

.m-copy-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 4px;
    cursor: pointer;
}

.m-copy-label .material-symbols-rounded {
    font-size: 14px;
}

/* ── Referral box ── */
.m-referral-box {
    padding: 16px;
    border-radius: var(--m-radius-lg);
    background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 15%, var(--bg2)), color-mix(in oklch, var(--gold) 8%, var(--bg2)));
    border: 1px solid color-mix(in oklch, var(--accent) 25%, transparent);
    text-align: center;
    margin: 0 var(--m-padding) 12px;
}

.m-referral-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.m-referral-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    word-break: break-all;
    margin-bottom: 6px;
}

.m-referral-hint {
    font-size: 11px;
    color: var(--text3);
    line-height: 1.4;
}

/* ── Tab filter bar ── */
.m-tab-filter {
    display: flex;
    gap: 0;
    padding: 0 var(--m-padding);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.m-tab-filter-item {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .2s;
}

.m-tab-filter-item.active {
    color: var(--accent);
    border-color: var(--accent);
}
/* ============================================================
   mobile/pages/all-pages.css — Page-level styles for all mobile pages
   ============================================================ */

/* ── Page wrapper ── */
.m-page {
    padding: 0;
}

.m-page-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px var(--m-padding);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--m-header-h);
    z-index: 10;
    background: var(--bg);
}

.m-page-back {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--m-radius-sm);
    background: var(--surface);
    border: none;
    color: var(--text2);
    cursor: pointer;
    flex-shrink: 0;
}

.m-page-back .material-symbols-rounded {
    font-size: 20px;
}

.m-page-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-page-action {
    flex-shrink: 0;
}

/* ── Profile dashboard page ── */
.m-profile-hero {
    padding: 20px var(--m-padding) 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}

.m-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface2);
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

.m-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-profile-info h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.m-profile-balance {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
    margin-top: 2px;
}

.m-profile-balance-label {
    font-size: 10px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Profile quick actions */
.m-profile-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px var(--m-padding);
}

.m-profile-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 4px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
    transition: all .15s;
}

.m-profile-action:active {
    transform: scale(0.96);
    background: var(--surface2);
}

.m-profile-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-profile-action-icon .material-symbols-rounded {
    font-size: 20px;
}

.m-profile-action-icon--deposit {
    background: color-mix(in oklch, var(--green) 15%, transparent);
    color: var(--green);
}

.m-profile-action-icon--withdraw {
    background: color-mix(in oklch, var(--red) 15%, transparent);
    color: var(--red);
}

.m-profile-action-icon--bonus {
    background: color-mix(in oklch, var(--gold) 15%, transparent);
    color: var(--gold);
}

.m-profile-action-icon--history {
    background: color-mix(in oklch, var(--accent) 15%, transparent);
    color: var(--accent);
}

.m-profile-action-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text2);
    text-align: center;
}

/* Profile menu list */
.m-profile-menu {
    padding: 8px var(--m-padding);
}

.m-profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: var(--text2);
    transition: color .15s;
}

.m-profile-menu-item:last-child {
    border-bottom: none;
}

.m-profile-menu-item:active {
    color: var(--text);
}

.m-profile-menu-item .material-symbols-rounded {
    font-size: 20px;
    color: var(--text3);
}

.m-profile-menu-item span:nth-child(2) {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.m-profile-menu-arrow {
    font-size: 16px !important;
    color: var(--text3) !important;
}

.m-profile-menu-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--red);
    color: var(--color-white);
}

/* ── Bonus / Promo list page ── */
.m-bonus-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px var(--m-padding);
}

.m-bonus-card {
    position: relative;
    border-radius: var(--m-radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform .15s;
}

.m-bonus-card:active {
    transform: scale(0.98);
}

.m-bonus-card-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
    background: var(--surface2);
}

.m-bonus-card-body {
    padding: 12px;
}

.m-bonus-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.m-bonus-card-desc {
    font-size: 12px;
    color: var(--text3);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bonus detail page */
.m-bonus-detail-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.m-bonus-detail-body {
    padding: 16px var(--m-padding);
}

.m-bonus-detail-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.m-bonus-detail-content {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
}

.m-bonus-detail-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 16px 0 6px;
}

.m-bonus-detail-content p {
    margin-bottom: 10px;
}

.m-bonus-detail-content ul,
.m-bonus-detail-content ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.m-bonus-detail-content li {
    margin-bottom: 4px;
}

/* ── Game list / search page ── */
.m-game-search {
    position: sticky;
    top: var(--m-header-h);
    z-index: 10;
    padding: 10px var(--m-padding);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.m-game-search-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.m-game-search-input .material-symbols-rounded {
    font-size: 18px;
    color: var(--text3);
}

.m-game-search-input input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}

.m-game-search-input input::placeholder {
    color: var(--text3);
}

/* Game detail page */
.m-game-detail-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-black);
    border: none;
}

.m-game-detail-info {
    padding: 14px var(--m-padding);
}

.m-game-detail-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.m-game-detail-provider {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 12px;
}

.m-game-detail-actions {
    display: flex;
    gap: 8px;
}

/* ── Provider list page ── */
.m-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px var(--m-padding);
}

.m-provider-grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}

.m-provider-grid-card:active {
    transform: scale(0.96);
    border-color: var(--accent);
}

.m-provider-grid-logo {
    width: 60px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-provider-grid-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.m-provider-grid-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text2);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ── About / Static content pages ── */
.m-static-content {
    padding: 16px var(--m-padding);
}

.m-static-content h1 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.m-static-content h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 20px 0 8px;
}

.m-static-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0 6px;
}

.m-static-content p {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 10px;
}

.m-static-content ul,
.m-static-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.m-static-content li {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 4px;
}

.m-static-content a {
    color: var(--accent);
    text-decoration: none;
}

/* ── About sub-menu cards ── */
.m-about-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px var(--m-padding);
}

.m-about-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: var(--text2);
    transition: all .15s;
}

.m-about-menu-item:active {
    background: var(--surface2);
    border-color: var(--border2);
}

.m-about-menu-item .material-symbols-rounded {
    font-size: 22px;
    color: var(--accent);
}

.m-about-menu-item span:nth-child(2) {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

/* ── Contact cards ── */
.m-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px var(--m-padding);
}

.m-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all .15s;
}

.m-contact-card:active {
    background: var(--surface2);
}

.m-contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: color-mix(in oklch, var(--accent) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.m-contact-card-icon img {
    width: 24px;
    height: 24px;
}

.m-contact-card-icon .material-symbols-rounded {
    font-size: 20px;
    color: var(--accent);
}

.m-contact-card-body {
    flex: 1;
}

.m-contact-card-title {
    font-size: 14px;
    font-weight: 600;
}

.m-contact-card-sub {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
}

/* ── Bank info grid ── */
.m-bank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px var(--m-padding);
}

.m-bank-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
}

.m-bank-card-logo {
    width: 48px;
    height: 28px;
    object-fit: contain;
}

.m-bank-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.m-bank-card-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
}

.m-bank-card-status.online {
    color: var(--green);
}

.m-bank-card-status.offline {
    color: var(--red);
}

.m-bank-card-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

/* ── Livescore / Livestream ── */
.m-livescore-frame {
    width: 100%;
    min-height: 500px;
    border: none;
    background: var(--bg2);
}

.m-livestream-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px var(--m-padding);
}

.m-livestream-card {
    position: relative;
    border-radius: var(--m-radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
}

.m-livestream-card:active {
    transform: scale(0.98);
}

.m-livestream-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--surface2);
}

.m-livestream-live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--red);
    font-size: 9px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
}

.m-livestream-live-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-white);
    animation: m-live-pulse 1.5s infinite;
}

.m-livestream-info {
    padding: 10px 12px;
}

.m-livestream-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.m-livestream-meta {
    font-size: 11px;
    color: var(--text3);
    margin-top: 3px;
}

/* ── Category page cards ── */
.m-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px var(--m-padding);
}

.m-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 8px;
    border-radius: var(--m-radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: all .15s;
}

.m-category-card:active {
    transform: scale(0.96);
    border-color: var(--accent);
}

.m-category-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in oklch, var(--accent) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-category-card-icon .material-symbols-rounded {
    font-size: 24px;
    color: var(--accent);
}

.m-category-card-name {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* ── Settings page list ── */
.m-settings-list {
    padding: 8px var(--m-padding);
}

.m-settings-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 12px 0 6px;
}

/* ── User bank account cards ── */
.m-user-bank-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--m-radius);
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.m-user-bank-card-logo {
    width: 40px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.m-user-bank-card-body {
    flex: 1;
    min-width: 0;
}

.m-user-bank-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.m-user-bank-card-number {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
}
