/* ==========================================================================
   PREMIUM USER PANEL THEME (Sprint 3)
   Original design. Layered on top of Bootstrap 5.3. Inline SVG icons only —
   no external icon/font/image dependencies. Mobile-first + desktop friendly.
   Scope: applies to the authenticated user panel shell and its content.
   ========================================================================== */

:root {
    --pnl-bg: #f6eef0;
    --pnl-surface: #ffffff;
    --pnl-surface-2: #fdf5f6;
    --pnl-ink: #1a1015;
    --pnl-muted: #8a6b73;
    --pnl-border: rgba(60, 24, 32, 0.08);
    --pnl-radius: 1.1rem;
    --pnl-radius-sm: 0.7rem;
    --pnl-radius-lg: 1.5rem;
    --pnl-shadow: 0 6px 22px rgba(120, 20, 40, 0.08), 0 2px 6px rgba(120, 20, 40, 0.05);
    --pnl-shadow-hover: 0 20px 46px rgba(120, 20, 40, 0.20);
    --pnl-primary: #e11d48;
    --pnl-primary-2: #b91c3c;
    --pnl-accent: #00c2a8;
    --pnl-gold: #ffb020;
    --pnl-danger: #ff5470;
    --pnl-grad: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #9f1239 100%);
    --pnl-grad-2: linear-gradient(135deg, #f97316 0%, #e11d48 100%);
    --pnl-grad-gold: linear-gradient(135deg, #ff9a3c 0%, #ffb020 100%);
    --pnl-grad-green: linear-gradient(135deg, #10b981 0%, #00c2a8 100%);
    --pnl-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --pnl-font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
    --pnl-sidebar-w: 260px;
    --pnl-appbar-h: 62px;
}

body.pnl-body {
    background:
        radial-gradient(1000px 500px at 100% -10%, rgba(225, 29, 72, 0.12), transparent 60%),
        radial-gradient(900px 480px at -10% 0%, rgba(159, 18, 57, 0.08), transparent 55%),
        var(--pnl-bg);
    background-attachment: fixed;
    color: var(--pnl-ink);
    font-family: var(--pnl-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    min-height: 100vh;
}
.pnl-body h1, .pnl-body h2, .pnl-body h3,
.pnl-page-head h1, .pnl-section-title,
.pnl-hero .pnl-hero-balance, .hm-market-name,
.pnl-brand { font-family: var(--pnl-font-display); letter-spacing: -0.02em; }

/* Global icon default — prevents SVGs from ever expanding to fill a container.
   Specific rules below override this size where a larger icon is required. */
.pnl-i { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- App bar ---------- */
.pnl-appbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: var(--pnl-appbar-h);
    background: var(--pnl-grad);
    color: #fff;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1rem;
    box-shadow: 0 8px 26px rgba(225, 29, 72, 0.34);
}
.pnl-appbar::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(140px 90px at 82% -30%, rgba(255,255,255,.28), transparent 70%);
}
.pnl-appbar .pnl-brand {
    color: #fff;
    font-weight: 800;
    letter-spacing: .3px;
    text-decoration: none;
    font-size: 1.12rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}
.pnl-brand .pnl-logo {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.18);
    display: grid; place-items: center;
    font-weight: 900;
    backdrop-filter: blur(6px);
}
.pnl-appbar .pnl-spacer { flex: 1 1 auto; }
.pnl-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    border-radius: 999px;
    padding: .34rem .7rem;
    font-weight: 700;
    font-size: .82rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background .2s ease, transform .2s ease;
    white-space: nowrap;
}
.pnl-chip:hover { background: rgba(255,255,255,.28); color:#fff; transform: translateY(-1px); }
.pnl-iconbtn {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.pnl-iconbtn:hover { background: rgba(255,255,255,.28); color:#fff; transform: translateY(-1px); }
.pnl-iconbtn .pnl-dot {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 999px; background: var(--pnl-gold); color: #201a00;
    font-size: .68rem; font-weight: 800; display: grid; place-items: center;
    box-shadow: 0 0 0 2px rgba(225, 29, 72,.5);
}
.pnl-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.2);
    display: grid; place-items: center; color:#fff; font-weight: 800;
    text-decoration: none;
}

/* ---------- Shell ---------- */
.pnl-shell {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - var(--pnl-appbar-h));
}
.pnl-sidebar {
    position: sticky;
    top: var(--pnl-appbar-h);
    width: var(--pnl-sidebar-w);
    height: calc(100vh - var(--pnl-appbar-h));
    overflow-y: auto;
    flex: 0 0 var(--pnl-sidebar-w);
    background: var(--pnl-surface);
    border-right: 1px solid var(--pnl-border);
    padding: 1rem .75rem 2rem;
}
.pnl-sidebar .pnl-navlabel {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .09em;
    color: var(--pnl-muted); font-weight: 800; padding: .5rem .75rem .35rem;
}
.pnl-nav a {
    display: flex; align-items: center; gap: .7rem;
    padding: .62rem .75rem; margin-bottom: .15rem;
    border-radius: var(--pnl-radius-sm);
    color: #3c3f5c; text-decoration: none; font-weight: 600; font-size: .93rem;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.pnl-nav a .pnl-i { width: 20px; height: 20px; flex: 0 0 20px; opacity: .8; }
.pnl-nav a:hover { background: var(--pnl-surface-2); color: var(--pnl-primary); transform: translateX(2px); }
.pnl-nav a.active {
    background: var(--pnl-grad); color: #fff;
    box-shadow: 0 8px 18px rgba(225, 29, 72,.28);
}
.pnl-nav a.active .pnl-i { opacity: 1; }

.pnl-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.25rem;
    padding-bottom: 2rem;
}
.pnl-main-inner { max-width: 1200px; margin: 0 auto; }

/* ---------- Bottom nav (mobile) ---------- */
.pnl-bottomnav { display: none; }

/* ---------- Page heading ---------- */
.pnl-page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}
.pnl-page-head h1 {
    font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: .2px;
}
.pnl-page-head .pnl-sub { color: var(--pnl-muted); font-size: .88rem; }

/* ---------- Cards ---------- */
.pnl-card {
    position: relative;
    background: var(--pnl-surface);
    border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius);
    box-shadow: var(--pnl-shadow);
    transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .2s ease;
}
.pnl-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.pnl-card.pnl-hover:hover { transform: translateY(-4px); box-shadow: var(--pnl-shadow-hover); }
.pnl-card-body { padding: 1.1rem 1.2rem; }
.pnl-glass {
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.5);
}
.pnl-section-title {
    font-size: 1rem; font-weight: 800; margin: 0 0 .8rem;
    display: flex; align-items: center; gap: .5rem;
}
.pnl-section-title .pnl-i { width: 18px; height: 18px; color: var(--pnl-primary); }

/* ---------- Wallet hero ---------- */
.pnl-hero {
    position: relative; overflow: hidden;
    border-radius: var(--pnl-radius-lg);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,.18), transparent 45%),
        var(--pnl-grad);
    color: #fff;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 22px 48px rgba(225, 29, 72,.38);
    border: 1px solid rgba(255,255,255,.14);
}
.pnl-hero::after {
    content: ""; position: absolute; right: -40px; top: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,.15);
}
.pnl-hero::before {
    content: ""; position: absolute; left: -30px; bottom: -70px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(255,255,255,.1);
}
.pnl-hero .pnl-hero-label { opacity: .85; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.pnl-hero .pnl-hero-balance { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.pnl-hero .pnl-hero-sub { position: relative; z-index: 1; }
.pnl-hero .btn { position: relative; z-index: 1; }

.pnl-mini {
    border-radius: var(--pnl-radius);
    padding: 1rem 1.1rem; color: #fff; position: relative; overflow: hidden;
    box-shadow: var(--pnl-shadow);
}
.pnl-mini .pnl-mini-label { opacity: .9; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.pnl-mini .pnl-mini-val { font-size: 1.3rem; font-weight: 800; }
.pnl-mini.g-purple { background: var(--pnl-grad); }
.pnl-mini.g-green { background: var(--pnl-grad-green); }
.pnl-mini.g-blue { background: var(--pnl-grad-2); }
.pnl-mini.g-gold { background: var(--pnl-grad-gold); color:#3a2b00; }

/* ---------- Stat tiles ---------- */
.pnl-stat {
    background: var(--pnl-surface);
    border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius);
    padding: .9rem 1rem; box-shadow: var(--pnl-shadow);
    display: flex; align-items: center; gap: .8rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.pnl-stat:hover { transform: translateY(-2px); box-shadow: var(--pnl-shadow-hover); }
.pnl-stat .pnl-stat-ic { box-shadow: 0 8px 18px rgba(225, 29, 72,.28); }
.pnl-stat .pnl-stat-ic {
    width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px;
    display: grid; place-items: center; color: #fff; background: var(--pnl-grad);
}
.pnl-stat .pnl-stat-ic.green { background: var(--pnl-grad-green); }
.pnl-stat .pnl-stat-ic.blue { background: var(--pnl-grad-2); }
.pnl-stat .pnl-stat-ic.gold { background: var(--pnl-grad-gold); color:#3a2b00; }
.pnl-stat .pnl-stat-ic.red { background: linear-gradient(135deg,#ff5470,#ff8a5c); }
.pnl-stat .pnl-stat-val { font-size: 1.15rem; font-weight: 800; line-height: 1; }
.pnl-stat .pnl-stat-lbl { color: var(--pnl-muted); font-size: .78rem; }

/* ---------- Quick actions ---------- */
.pnl-quick {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem;
}
.pnl-quick a {
    text-decoration: none; color: var(--pnl-ink);
    background: var(--pnl-surface); border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius); padding: .9rem .5rem; text-align: center;
    box-shadow: var(--pnl-shadow); transition: transform .15s ease, box-shadow .15s ease;
    display: flex; flex-direction: column; align-items: center; gap: .45rem; font-weight: 700; font-size: .8rem;
}
.pnl-quick a:hover { transform: translateY(-3px); box-shadow: var(--pnl-shadow-hover); }
.pnl-quick .pnl-qic {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
    background: var(--pnl-grad);
}
.pnl-quick .pnl-qic.green { background: var(--pnl-grad-green); }
.pnl-quick .pnl-qic.blue { background: var(--pnl-grad-2); }
.pnl-quick .pnl-qic.gold { background: var(--pnl-grad-gold); color:#3a2b00; }

/* ---------- Market cards ---------- */
.pnl-market {
    background: var(--pnl-surface); border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius); box-shadow: var(--pnl-shadow); overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease; height: 100%;
}
.pnl-market:hover { transform: translateY(-3px); box-shadow: var(--pnl-shadow-hover); }
.pnl-market .pnl-market-top {
    padding: 1rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap:.6rem;
    border-bottom: 1px dashed var(--pnl-border);
}
.pnl-market .pnl-market-name { font-weight: 800; font-size: 1.02rem; }
.pnl-market .pnl-market-times { display: flex; gap: .5rem; padding: .85rem 1.1rem; }
.pnl-time-box { flex: 1; text-align: center; background: var(--pnl-surface-2); border-radius: var(--pnl-radius-sm); padding: .5rem; }
.pnl-time-box .t-lbl { font-size: .68rem; color: var(--pnl-muted); text-transform: uppercase; letter-spacing:.05em; }
.pnl-time-box .t-val { font-weight: 800; font-size: .95rem; }
.pnl-market .pnl-market-foot { padding: .75rem 1.1rem 1.05rem; display: flex; gap: .5rem; }

/* ---------- Status badges ---------- */
.pnl-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .3rem .6rem; border-radius: 999px; font-weight: 700; font-size: .74rem; line-height: 1;
}
.pnl-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.pnl-badge.ok, .pnl-badge.open, .pnl-badge.active, .pnl-badge.approved, .pnl-badge.paid, .pnl-badge.won, .pnl-badge.success, .pnl-badge.declared, .pnl-badge.credit, .pnl-badge.resolved { color: #0a8f6f; background: rgba(16,185,129,.12); }
.pnl-badge.warn, .pnl-badge.pending, .pnl-badge.under_review, .pnl-badge.in_progress, .pnl-badge.result_pending, .pnl-badge.normal { color: #b6790a; background: rgba(255,176,32,.15); }
.pnl-badge.bad, .pnl-badge.closed, .pnl-badge.rejected, .pnl-badge.cancelled, .pnl-badge.lost, .pnl-badge.disabled, .pnl-badge.error, .pnl-badge.debit, .pnl-badge.high, .pnl-badge.urgent, .pnl-badge.critical { color: #c02749; background: rgba(255,84,112,.13); }
.pnl-badge.info, .pnl-badge.accepted, .pnl-badge.unread { color: #2563eb; background: rgba(37,99,235,.12); }
.pnl-badge.mute, .pnl-badge.read, .pnl-badge.refunded, .pnl-badge.low, .pnl-badge.draft { color: #5b6070; background: rgba(91,96,112,.12); }

/* ---------- List rows ---------- */
.pnl-list { display: flex; flex-direction: column; gap: .55rem; }
.pnl-row {
    display: flex; align-items: center; gap: .8rem;
    background: var(--pnl-surface); border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius-sm); padding: .7rem .85rem;
    text-decoration: none; color: var(--pnl-ink);
    transition: transform .15s ease, box-shadow .15s ease;
}
a.pnl-row:hover, button.pnl-row:hover { transform: translateY(-2px); box-shadow: var(--pnl-shadow); }
button.pnl-row { width: 100%; font: inherit; cursor: pointer; text-align: left; }
.pnl-row .pnl-row-ic {
    width: 40px; height: 40px; border-radius: 11px; flex: 0 0 40px; display: grid; place-items: center;
    background: var(--pnl-surface-2); color: var(--pnl-primary);
}
.pnl-row .pnl-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.pnl-row .pnl-row-title { display: block; font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnl-row .pnl-row-sub { display: block; color: var(--pnl-muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnl-row .pnl-row-end { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: .2rem; text-align: right; white-space: nowrap; }
.pnl-amt-pos { color: #0a8f6f; font-weight: 800; }

/* ---------- Rate sheet (Starline game rates) ---------- */
.pnl-rates { display: flex; flex-direction: column; }
.pnl-rate-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .6rem .2rem; border-bottom: 1px solid var(--pnl-border);
}
.pnl-rate-row:last-child { border-bottom: 0; }
.pnl-rate-name { font-weight: 600; color: var(--pnl-muted); }
.pnl-rate-val { font-weight: 800; color: var(--pnl-ink); letter-spacing: .3px; }
.pnl-amt-neg { color: #c02749; font-weight: 800; }

/* ---------- Result cards ---------- */
.pnl-result {
    background: var(--pnl-surface); border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius); box-shadow: var(--pnl-shadow); padding: 1rem 1.1rem;
    text-align: center;
}
.pnl-result .pnl-result-name { font-weight: 800; }
.pnl-result .pnl-result-num {
    font-size: 1.5rem; font-weight: 800; letter-spacing: .18em;
    background: var(--pnl-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}

/* ---------- Notice board ---------- */
.pnl-notice {
    background: var(--pnl-grad-gold); color: #3a2b00; border-radius: var(--pnl-radius);
    padding: .7rem 1rem; font-weight: 700; overflow: hidden; box-shadow: var(--pnl-shadow);
    display: flex; align-items: center; gap: .6rem;
}
.pnl-notice .pnl-marquee { white-space: nowrap; overflow: hidden; }
.pnl-notice .pnl-marquee span { display: inline-block; padding-left: 100%; animation: pnl-marquee 18s linear infinite; }
@keyframes pnl-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Banner slider ---------- */
.pnl-slider { position: relative; border-radius: var(--pnl-radius-lg); overflow: hidden; box-shadow: var(--pnl-shadow); }
.pnl-slides { display: flex; transition: transform .5s ease; }
.pnl-slide { min-width: 100%; position: relative; }
.pnl-slide img { width: 100%; height: 190px; object-fit: cover; display: block; }
.pnl-slide .pnl-slide-cap {
    position: absolute; inset: auto 0 0 0; padding: 1rem 1.2rem;
    background: linear-gradient(0deg, rgba(20,16,50,.82), transparent); color: #fff;
}
.pnl-slide .pnl-slide-cap h3 { font-weight: 800; margin: 0; font-size: 1.05rem; }
.pnl-slider .pnl-dots { position: absolute; bottom: .6rem; right: .9rem; display: flex; gap: .3rem; z-index: 2; }
.pnl-slider .pnl-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.pnl-slider .pnl-dots button.active { background: #fff; width: 18px; border-radius: 999px; }

/* ---------- Empty state ---------- */
.pnl-empty { text-align: center; padding: 2.4rem 1rem; color: var(--pnl-muted); }
.pnl-empty .pnl-empty-ic {
    width: 64px; height: 64px; border-radius: 20px; margin: 0 auto .8rem;
    display: grid; place-items: center; background: var(--pnl-surface-2); color: var(--pnl-primary);
}
.pnl-empty .pnl-empty-title { font-weight: 700; font-size: 1.05rem; color: var(--pnl-ink); margin-bottom: .3rem; }
.pnl-empty .pnl-empty-sub { font-size: .88rem; color: var(--pnl-muted); max-width: 22rem; margin: 0 auto; }

/* ---------- Forms ---------- */
.pnl-form .form-control, .pnl-form .form-select {
    border-radius: var(--pnl-radius-sm); padding: .62rem .8rem; border: 1px solid var(--pnl-border);
    background: var(--pnl-surface-2);
}
.pnl-form .form-control:focus, .pnl-form .form-select:focus {
    border-color: var(--pnl-primary); box-shadow: 0 0 0 .2rem rgba(225, 29, 72,.18); background: #fff;
}
.pnl-form .form-label { font-weight: 700; font-size: .84rem; }

/* ---------- Buttons ---------- */
.btn-pnl { background: var(--pnl-grad); color: #fff; border: none; border-radius: var(--pnl-radius-sm); font-weight: 700; box-shadow: 0 8px 20px rgba(225, 29, 72,.30); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.btn-pnl:hover { color: #fff; filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(225, 29, 72,.42); }
.btn-pnl:active { transform: translateY(0); }
.btn-pnl-soft { background: var(--pnl-surface-2); color: var(--pnl-primary); border: 1px solid var(--pnl-border); border-radius: var(--pnl-radius-sm); font-weight: 700; }
.btn-pnl-soft:hover { background: #fff; color: var(--pnl-primary); }
.btn-pnl-green { background: var(--pnl-grad-green); color:#fff; border:none; border-radius: var(--pnl-radius-sm); font-weight:700; }
.btn-pnl-green:hover { color:#fff; filter: brightness(1.05); }
.btn-pnl-danger { background: linear-gradient(135deg,#ff5470,#ff8a5c); color:#fff; border:none; border-radius: var(--pnl-radius-sm); font-weight:700; }
.btn-pnl-danger:hover { color:#fff; filter: brightness(1.05); }

/* ---------- Tabs (passbook / chart) ---------- */
.pnl-tabs { display: flex; gap: .4rem; background: var(--pnl-surface); border: 1px solid var(--pnl-border); padding: .35rem; border-radius: 999px; box-shadow: var(--pnl-shadow); overflow-x: auto; }
.pnl-tabs a { flex: 0 0 auto; text-decoration: none; color: var(--pnl-muted); font-weight: 700; font-size: .84rem; padding: .5rem .95rem; border-radius: 999px; white-space: nowrap; }
.pnl-tabs a.active { background: var(--pnl-grad); color: #fff; }

/* ---------- Tables ---------- */
.pnl-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.pnl-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pnl-muted); padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--pnl-border); }
.pnl-table tbody td { padding: .7rem; border-bottom: 1px solid var(--pnl-border); font-size: .88rem; vertical-align: middle; }
.pnl-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Animations ---------- */
.pnl-fade { animation: pnl-fade-up .4s ease both; }
.pnl-fade-2 { animation: pnl-fade-up .55s ease both; }
@keyframes pnl-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .pnl-sidebar { display: none; }
    .pnl-main { padding: calc(var(--pnl-appbar-h) + 1rem) .85rem calc(92px + env(safe-area-inset-bottom)); }
    .pnl-quick { grid-template-columns: repeat(4, 1fr); }
    .pnl-bottomnav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
        background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
        border-top: 1px solid var(--pnl-border);
        padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom));
        justify-content: space-around; align-items: flex-end;
    }
    .pnl-bottomnav a {
        flex: 1; text-decoration: none; color: var(--pnl-muted); font-size: .66rem; font-weight: 700;
        display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .3rem .1rem; border-radius: 12px;
    }
    .pnl-bottomnav a .pnl-i { width: 22px; height: 22px; }
    .pnl-bottomnav a.active { color: var(--pnl-primary); }
    .pnl-bottomnav a.pnl-fab {
        color: #fff; margin-top: -22px;
    }
    .pnl-bottomnav a.pnl-fab .pnl-fab-ic {
        width: 52px; height: 52px; border-radius: 50%; background: var(--pnl-grad); display: grid; place-items: center;
        box-shadow: 0 10px 22px rgba(225, 29, 72,.45); border: 4px solid #fff;
    }
    .pnl-hero .pnl-hero-balance { font-size: 1.7rem; }
}
@media (max-width: 575.98px) {
    .pnl-quick { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
    .pnl-quick a { font-size: .72rem; padding: .75rem .35rem; }
    .pnl-quick .pnl-qic { width: 42px; height: 42px; }
    .pnl-appbar .pnl-chip .pnl-chip-lbl { display: none; }
    .pnl-page-head h1 { font-size: 1.15rem; }
}

/* Public (guest) pages keep a clean centered container */
.pnl-guest-wrap { min-height: calc(100vh - var(--pnl-appbar-h)); display: flex; align-items: center; padding-top: var(--pnl-appbar-h); }

/* ==========================================================================
   HOME SCREEN — Matka app style (Add funds / Support / Market cards)
   ========================================================================== */

/* ---- Action shortcut cards (Add Funds / Withdraw) ---- */
.hm-action-card {
    background: var(--pnl-surface);
    border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius);
    box-shadow: var(--pnl-shadow);
    padding: .85rem .9rem 1rem;
    height: 100%;
}
.hm-action-title { font-weight: 800; font-size: 1.05rem; margin-bottom: .55rem; }
.hm-btn-deposit, .hm-btn-withdraw {
    color: #fff; border: none; font-weight: 800; font-size: 1.02rem;
    border-radius: .7rem; padding: .7rem 1rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
}
.hm-btn-deposit { background: var(--pnl-grad-green); box-shadow: 0 8px 18px rgba(0,194,168,.30); }
.hm-btn-deposit:hover { color: #fff; filter: brightness(1.05); }
.hm-btn-withdraw { background: linear-gradient(135deg, #ff5470 0%, #ff8a5c 100%); box-shadow: 0 8px 18px rgba(255,84,112,.30); }
.hm-btn-withdraw:hover { color: #fff; filter: brightness(1.05); }
.hm-btn-deposit.disabled, .hm-btn-withdraw.disabled { opacity: .55; pointer-events: none; }
.hm-btn-deposit .pnl-i, .hm-btn-withdraw .pnl-i { width: 20px; height: 20px; }

/* ---- Contact cards (WhatsApp / Live Support) ---- */
.hm-contact-card {
    display: flex; align-items: center; gap: .7rem; height: 100%;
    background: var(--pnl-surface);
    border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius);
    box-shadow: var(--pnl-shadow);
    padding: .85rem .9rem;
    text-decoration: none; color: var(--pnl-ink);
    transition: transform .15s ease, box-shadow .15s ease;
}
.hm-contact-card:hover { transform: translateY(-2px); box-shadow: var(--pnl-shadow-hover); color: var(--pnl-ink); }
.hm-contact-ic {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
}
.hm-contact-ic .pnl-i { width: 24px; height: 24px; }
.hm-contact-ic.green { background: var(--pnl-grad-green); }
.hm-contact-ic.red { background: var(--pnl-grad); }
.hm-contact-txt { display: flex; flex-direction: column; line-height: 1.2; }
.hm-contact-title { font-weight: 800; font-size: 1rem; }
.hm-contact-sub { color: var(--pnl-muted); font-size: .8rem; }

/* ---- Market cards (Matka style) ---- */
.hm-market {
    background: var(--pnl-surface);
    border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius);
    box-shadow: var(--pnl-shadow);
    overflow: hidden;
    margin-bottom: 1.1rem;
}
.hm-market-head { padding: 1rem 1.1rem .85rem; background: linear-gradient(180deg, var(--pnl-surface-2) 0%, var(--pnl-surface) 100%); }
.hm-market-name {
    color: var(--pnl-primary); font-weight: 800; font-size: 1.28rem;
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: .7rem;
}
.hm-market-times { display: flex; gap: .7rem; flex-wrap: wrap; }
.hm-time-pill {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--pnl-surface); border: 1px solid var(--pnl-border);
    border-radius: .7rem; padding: .55rem .8rem;
    font-size: .92rem; color: var(--pnl-muted); font-weight: 600;
    box-shadow: 0 2px 6px rgba(31,26,82,.05);
}
.hm-time-pill b { color: var(--pnl-ink); font-weight: 800; margin-left: .15rem; }
.hm-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.hm-dot.green { background: var(--pnl-accent); }
.hm-dot.red { background: var(--pnl-danger); }
.hm-market-divider { height: 2px; background: var(--pnl-grad); opacity: .55; margin: 0 1.1rem; }

.hm-market-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.hm-market-info { min-width: 0; }
.hm-result-face {
    font-size: 1.75rem; font-weight: 800; letter-spacing: .06em; color: #111827;
    font-variant-numeric: tabular-nums; line-height: 1.1;
}
.hm-status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .95rem; margin-top: .45rem; }
.hm-status .pnl-i { width: 18px; height: 18px; }
.hm-status.ok { color: #0a8f6f; }
.hm-status.closed { color: #c02749; }
.hm-status.pending { color: #b6790a; }

.hm-market-actions { display: flex; align-items: flex-start; gap: 1.15rem; flex: 0 0 auto; }
.hm-round {
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    text-decoration: none; color: var(--pnl-ink); font-weight: 700; font-size: .8rem;
}
.hm-round > .pnl-i:first-child {
    width: 56px; height: 56px; padding: 15px; border-radius: 50%; color: #fff;
    box-sizing: border-box;
}
.hm-round.blue > .pnl-i:first-child { background: var(--pnl-grad-2); box-shadow: 0 8px 18px rgba(14,165,233,.35); }
.hm-round.green > .pnl-i:first-child { background: var(--pnl-grad-green); box-shadow: 0 8px 18px rgba(0,194,168,.35); }
.hm-round.grey > .pnl-i:first-child { background: #9ca3af; }
.hm-round.disabled { pointer-events: none; opacity: .8; }
.hm-round-lbl { color: var(--pnl-ink); }
.hm-round:hover { color: var(--pnl-ink); }
.hm-round:hover > .pnl-i:first-child { filter: brightness(1.06); }

@media (max-width: 575.98px) {
    .hm-market-name { font-size: 1.15rem; }
    .hm-result-face { font-size: 1.5rem; }
    .hm-market-actions { gap: .8rem; }
    .hm-round > .pnl-i:first-child { width: 50px; height: 50px; padding: 13px; }
    .hm-time-pill { font-size: .84rem; padding: .5rem .65rem; }
}

/* ==========================================================================
   MOBILE SLIDE-IN DRAWER MENU (hamburger) — user panel
   ========================================================================== */
.pnl-menu-btn { flex: 0 0 auto; }
.pnl-drawer-overlay {
    position: fixed; inset: 0; z-index: 1055;
    background: rgba(10, 12, 30, .5);
    opacity: 0; transition: opacity .25s ease;
}
.pnl-drawer-overlay.show { opacity: 1; }
.pnl-drawer {
    position: fixed; top: 0; left: 0; z-index: 1060;
    width: 82%; max-width: 320px; height: 100%;
    background: var(--pnl-surface);
    box-shadow: 0 0 40px rgba(0,0,0,.35);
    transform: translateX(-105%);
    transition: transform .28s cubic-bezier(.22,.61,.36,1);
    display: flex; flex-direction: column;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
.pnl-drawer.open { transform: translateX(0); }
.pnl-drawer-x {
    position: absolute; top: .6rem; right: .6rem; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.18); color: #fff;
    display: grid; place-items: center; cursor: pointer;
}
.pnl-drawer-x .pnl-i { width: 18px; height: 18px; }
.pnl-drawer-head {
    background: var(--pnl-grad); color: #fff;
    padding: calc(1.1rem + env(safe-area-inset-top)) 1.1rem 1.1rem;
    display: flex; align-items: center; gap: .8rem;
}
.pnl-drawer-ava {
    width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%;
    background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.6);
    display: grid; place-items: center; overflow: hidden; color: #fff;
}
.pnl-drawer-ava img { width: 100%; height: 100%; object-fit: cover; }
.pnl-drawer-ava .pnl-i { width: 30px; height: 30px; }
.pnl-drawer-id { display: flex; flex-direction: column; min-width: 0; }
.pnl-drawer-name { font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.pnl-drawer-phone { font-size: .9rem; opacity: .85; }
.pnl-drawer-nav { padding: .75rem .7rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.pnl-drawer-logout { margin: 0; }
.pnl-drawer-link {
    width: 100%; border: 1px solid var(--pnl-border); background: var(--pnl-surface);
    border-radius: 999px; padding: .55rem .8rem;
    display: flex; align-items: center; gap: .8rem;
    text-decoration: none; color: var(--pnl-ink); font-weight: 700; font-size: .98rem;
    box-shadow: var(--pnl-shadow); cursor: pointer; text-align: left;
    transition: transform .12s ease;
}
.pnl-drawer-link:active { transform: scale(.98); }
.pnl-drawer-ic {
    width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
}
.pnl-drawer-ic .pnl-i { width: 20px; height: 20px; }
.pnl-drawer-ic.c-green  { background: var(--pnl-grad-green); }
.pnl-drawer-ic.c-blue   { background: var(--pnl-grad-2); }
.pnl-drawer-ic.c-red    { background: linear-gradient(135deg,#ff5470,#ff8a5c); }
.pnl-drawer-ic.c-purple { background: var(--pnl-grad); }
.pnl-drawer-ic.c-dark   { background: linear-gradient(135deg,#2b2f45,#4a4f70); }
.pnl-drawer-txt { flex: 1 1 auto; }
.pnl-drawer-arrow { width: 18px; height: 18px; color: var(--pnl-muted); }
body.pnl-drawer-lock { overflow: hidden; }

/* ==========================================================================
   MOBILE-STYLE APP ON ALL SCREENS (desktop mirrors the phone layout)
   ========================================================================== */
.pnl-appbar {
    left: 50%; right: auto; transform: translateX(-50%);
    width: 100%; max-width: 480px; margin: 0 auto;
}
.pnl-shell { justify-content: center; }
.pnl-sidebar { display: none !important; }
.pnl-main {
    flex: 1 1 auto; width: 100%; max-width: 480px; margin: 0 auto;
    padding: calc(var(--pnl-appbar-h) + 1rem) .85rem calc(92px + env(safe-area-inset-bottom));
}

/* Quiz-only mode: no app bar / bottom nav, so use plain edge padding. */
.pnl-shell-quiz { min-height: 100vh; }
.pnl-shell-quiz .pnl-main { padding: 1.1rem .85rem calc(1.1rem + env(safe-area-inset-bottom)); }
.pnl-main-inner { max-width: 480px; margin: 0 auto; }
.pnl-drawer, .pnl-drawer-overlay { max-width: 480px; margin: 0 auto; }
.pnl-drawer-overlay { left: 50%; transform: translateX(-50%); }
.pnl-guest-wrap { max-width: 480px; margin: 0 auto; }

/* Bottom navigation is always visible (phone-style) on every screen size. */
.pnl-bottomnav {
    display: flex; position: fixed; left: 50%; transform: translateX(-50%);
    right: auto; bottom: 0; z-index: 1040; width: 100%; max-width: 480px;
    background: rgba(255,255,255,.82); backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 -8px 30px rgba(31,26,82,.10);
    padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom));
    justify-content: space-around; align-items: flex-end;
}
.pnl-bottomnav a {
    flex: 1; text-decoration: none; color: var(--pnl-muted); font-size: .66rem; font-weight: 700;
    display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .3rem .1rem; border-radius: 12px;
    transition: color .15s ease, transform .15s ease;
}
.pnl-bottomnav a:active { transform: scale(.94); }
.pnl-bottomnav a .pnl-i { width: 22px; height: 22px; }
.pnl-bottomnav a.active { color: var(--pnl-primary); }
.pnl-bottomnav a.pnl-fab { color: #fff; margin-top: -22px; }
.pnl-bottomnav a.pnl-fab .pnl-fab-ic {
    width: 52px; height: 52px; border-radius: 50%; background: var(--pnl-grad); display: grid; place-items: center;
    box-shadow: 0 10px 22px rgba(225, 29, 72,.45); border: 4px solid #fff;
}

/* ==========================================================================
   KHATRI HOME — tagline, quick action buttons, market cards (mobile-first)
   ========================================================================== */
.km-tagline {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem;
    margin-bottom: .85rem; line-height: 1.35;
}
.km-tagline-lead { color: var(--pnl-danger); font-weight: 800; font-size: .95rem; }
.km-tagline-main { color: var(--pnl-danger); font-weight: 700; font-size: .84rem; }

.km-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.km-abtn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem .6rem; border-radius: .8rem;
    color: #fff; font-weight: 800; font-size: .98rem; text-decoration: none;
    box-shadow: var(--pnl-shadow);
}
.km-abtn:hover { color: #fff; filter: brightness(1.05); }
.km-abtn.disabled { opacity: .55; pointer-events: none; }
.km-abtn-ic {
    width: 26px; height: 26px; border-radius: 50%; flex: 0 0 26px;
    display: grid; place-items: center; background: rgba(255,255,255,.22);
}
.km-abtn-ic .pnl-i { width: 16px; height: 16px; }
.km-abtn.green  { background: var(--pnl-grad-green); }
.km-abtn.red    { background: linear-gradient(135deg,#ff5470,#ff8a5c); }
.km-abtn.purple { background: var(--pnl-grad); }
.km-notice { border-radius: .8rem; }

/* ---- Market card row: card + separate "Play Game" tile ---- */
.km-market { display: flex; align-items: stretch; gap: .5rem; margin-bottom: .35rem; }
.km-card {
    position: relative; flex: 1 1 auto; min-width: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.9), rgba(246,247,255,.9)),
        var(--pnl-surface);
    border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius); box-shadow: var(--pnl-shadow);
    padding: .55rem .7rem .5rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.km-card:hover { transform: translateY(-2px); box-shadow: var(--pnl-shadow-hover); }
.km-badge {
    position: absolute; top: 0; left: 1rem; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .6rem; border-radius: 999px;
    font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    color: #fff; box-shadow: var(--pnl-shadow);
}
.km-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.km-badge.running { background: var(--pnl-grad-green); }
.km-badge.closed  { background: linear-gradient(135deg,#ff5470,#ff8a5c); }
.km-chart-btn {
    position: absolute; top: .5rem; right: .55rem;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--pnl-surface-2); border: 1px solid var(--pnl-border);
    color: var(--pnl-primary); display: grid; place-items: center; text-decoration: none;
}
.km-chart-btn .pnl-i { width: 18px; height: 18px; }
.km-name {
    font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .4px;
    color: var(--pnl-ink); padding-right: 2.2rem;
}
.km-result {
    margin: .1rem 0 .3rem; font-weight: 800; font-size: .82rem; letter-spacing: .1em;
    color: var(--pnl-muted); font-variant-numeric: tabular-nums;
}
.km-times { display: flex; gap: .4rem; }
.km-time {
    flex: 1; text-align: center; background: var(--pnl-surface-2);
    border: 1px solid var(--pnl-border); border-radius: var(--pnl-radius-sm); padding: .24rem .3rem;
}
.km-time-lbl { display: block; font-size: .56rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pnl-muted); }
.km-time-val { display: block; font-weight: 800; font-size: .78rem; color: var(--pnl-ink); }

.km-play {
    flex: 0 0 72px; border-radius: var(--pnl-radius);
    background: var(--pnl-surface); border: 1px solid var(--pnl-border); box-shadow: var(--pnl-shadow);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
    text-decoration: none; color: var(--pnl-ink); font-weight: 800; font-size: .62rem; text-transform: uppercase;
    letter-spacing: .03em; text-align: center; padding: .35rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.km-play:not(.disabled):hover { transform: translateY(-2px); box-shadow: var(--pnl-shadow-hover); }
.km-play-ic {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: var(--pnl-grad-green); box-shadow: 0 8px 18px rgba(0,194,168,.35);
}
.km-play-ic .pnl-i { width: 18px; height: 18px; }
.km-play.disabled { pointer-events: none; opacity: .75; }
.km-play.disabled .km-play-ic { background: #9ca3af; box-shadow: none; }
.km-play:hover { color: var(--pnl-ink); }
.km-play:hover .km-play-ic { filter: brightness(1.06); }

@media (max-width: 359.98px) {
    .km-play { flex-basis: 70px; }
    .km-play-ic { width: 34px; height: 34px; }
    .km-name { font-size: .84rem; }
}

/* ==========================================================================
   PLAY FLOW — game selection grid + bid entry slip
   ========================================================================== */

/* ---- Game selection grid ---- */
.pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pl-tile {
    position: relative; overflow: hidden;
    background: var(--pnl-surface); border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius); box-shadow: var(--pnl-shadow);
    padding: 1.1rem 1rem 1rem; text-decoration: none; color: var(--pnl-ink);
    display: flex; flex-direction: column; align-items: center; gap: .7rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pl-tile:hover { transform: translateY(-3px); box-shadow: var(--pnl-shadow-hover); color: var(--pnl-ink); }
.pl-tile-ic {
    width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
    color: var(--pnl-ink);
    background: var(--pnl-surface-2, rgba(120,120,150,.10));
    border: 1px solid var(--pnl-border);
}
.pl-tile-ic .pnl-i { width: 30px; height: 30px; }
.pl-tile-name { font-weight: 800; font-size: .98rem; text-align: center; }
.pl-tile-bar { width: 60%; height: 4px; border-radius: 999px; background: var(--pnl-border); opacity: .9; }

/* ---- Compact stat tiles (3-up rows like Today's Bids) ---- */
.pnl-stat-sm { gap: .6rem; padding: .8rem .7rem; }
.pnl-stat-sm .pnl-stat-val { font-size: 1.05rem; white-space: nowrap; }
@media (max-width: 575.98px) {
    .pnl-stat-sm { flex-direction: column; text-align: center; gap: .45rem; padding: .75rem .4rem; }
    .pnl-stat-sm .pnl-stat-ic { width: 38px; height: 38px; flex-basis: 38px; }
    .pnl-stat-sm .pnl-stat-val { font-size: 1rem; }
    .pnl-stat-sm .pnl-stat-lbl { font-size: .72rem; }
}

/* ---- Bid entry: neutral balance card (no colour) ---- */
.pl-balance {
    background: var(--pnl-surface); border: 1px solid var(--pnl-border);
    border-radius: var(--pnl-radius); box-shadow: var(--pnl-shadow);
    padding: 1rem 1.2rem; color: var(--pnl-ink);
}
.pl-balance-label { color: var(--pnl-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.pl-balance-value { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }

/* ---- Bid entry: number/point fields ---- */
#entryRow .form-label { min-height: 1.2em; margin-bottom: .35rem; }
#entryRow .form-control { height: 48px; }
.pl-hint { min-height: 2.6em; font-size: .78rem; line-height: 1.3; margin-top: .3rem; }

/* ---- Bid entry: sticky submit footer ---- */
.pl-footer {
    position: sticky; bottom: 0; z-index: 1035;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border: 1px solid var(--pnl-border); border-radius: var(--pnl-radius);
    box-shadow: 0 -6px 24px rgba(31,26,82,.10);
    display: flex; align-items: center; gap: 1rem; padding: .7rem .9rem;
    margin-bottom: 1rem;
}
.pl-foot-stat { display: flex; flex-direction: column; line-height: 1.1; }
.pl-foot-stat span { color: var(--pnl-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.pl-foot-stat b { font-size: 1.05rem; font-weight: 800; }
.pl-footer .btn { margin-left: auto; }

@media (max-width: 991.98px) {
    /* Keep the sticky footer clear of the fixed bottom nav on mobile. */
    .pl-footer { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
@media (max-width: 575.98px) {
    .pl-tile-ic { width: 54px; height: 54px; }
    .pl-tile-ic .pnl-i { width: 26px; height: 26px; }
}

/* ==========================================================================
   MOBILE OPTIMISATION POLISH
   Smoother touch behaviour, no overflow, tighter phone-first spacing.
   ========================================================================== */

/* Kill horizontal scroll while keeping vertical scrolling intact.
   `overflow-x: clip` (with a hidden fallback) prevents sideways scroll without
   turning the root into a scroll container, which previously blocked vertical
   scrolling inside mobile webviews and broke the sticky app bar. */
html { overflow-x: hidden; overflow-x: clip; }
body.pnl-body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body.pnl-body {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
.pnl-body a, .pnl-body button { -webkit-tap-highlight-color: transparent; }
* { min-width: 0; }

/* App bar: never let the brand push the wallet/bell off-screen. */
.pnl-appbar { gap: .5rem; padding: 0 .75rem; }
.pnl-appbar .pnl-brand {
    min-width: 0; overflow: hidden;
}
.pnl-appbar .pnl-brand > span:last-child {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pnl-menu-btn { width: 42px; height: 42px; }
.pnl-chip { padding: .34rem .6rem; }

/* Comfortable, thumb-friendly hit areas. */
.km-abtn, .pnl-drawer-link, .km-play, .km-chart-btn { -webkit-user-select: none; user-select: none; }
.km-abtn:active { transform: scale(.98); }
.km-play:active .km-play-ic { transform: scale(.95); }

/* Market name never overlaps the chart button or overflows. */
.km-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Smoother native scrolling for the content area. */
.pnl-main { -webkit-overflow-scrolling: touch; }

/* Phone-width tuning: keep two actions per row, comfortable cards. */
@media (max-width: 420px) {
    .km-actions { gap: .55rem; }
    .km-abtn { font-size: .9rem; padding: .72rem .5rem; gap: .4rem; }
    .km-abtn-ic { width: 24px; height: 24px; flex-basis: 24px; }
    .km-market { gap: .45rem; }
    .km-card { padding: .95rem .7rem .55rem; }
    .km-name { font-size: .88rem; padding-right: 2.2rem; }
    .km-result { font-size: .88rem; margin: .18rem 0 .4rem; }
    .km-time-val { font-size: .8rem; }
    .km-play { flex-basis: 74px; }
    .km-tagline-lead { font-size: .9rem; }
    .km-tagline-main { font-size: .8rem; }
}

/* Very small phones (<=360px): shrink gracefully, still 2 buttons per row. */
@media (max-width: 360px) {
    .pnl-appbar .pnl-chip .pnl-chip-lbl { display: none; }
    .km-abtn { font-size: .82rem; }
    .km-play { flex-basis: 68px; }
    .km-play-ic { width: 32px; height: 32px; }
    .km-times { gap: .35rem; }
    .km-time { padding: .24rem .2rem; }
    .pnl-bottomnav a { font-size: .6rem; }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .pnl-drawer, .pnl-drawer-overlay, .pnl-fade, .pnl-fade-2,
    .pnl-notice .pnl-marquee span { animation: none !important; transition: none !important; }
}

/* =====================================================================
   SARA777 YELLOW UI SKIN (user-side only visual restyle)
   ===================================================================== */
:root {
    --pnl-bg: #f8f6f1;
    --pnl-surface: #ffffff;
    --pnl-surface-2: #fff8ea;
    --pnl-ink: #1f170f;
    --pnl-muted: #70757f;
    --pnl-border: rgba(50, 34, 12, 0.12);
    --pnl-primary: #ff9800;
    --pnl-primary-2: #f57c00;
    --pnl-accent: #ffad33;
    --pnl-gold: #ff9800;
    --pnl-danger: #e44434;
    --pnl-grad: linear-gradient(180deg, #ffb74d 0%, #ff9800 100%);
    --pnl-grad-2: linear-gradient(180deg, #ffb74d 0%, #ff9800 100%);
    --pnl-grad-gold: linear-gradient(180deg, #ffc266 0%, #ff9800 100%);
    --pnl-grad-green: linear-gradient(180deg, #ffb74d 0%, #ff9800 100%);
    --pnl-font: "Poppins", "Segoe UI", sans-serif;
    --pnl-font-display: "Baloo 2", "Poppins", sans-serif;
    --pnl-appbar-h: 64px;
}

body.pnl-body {
    background: #f8f6f1;
}

.pnl-appbar,
.pnl-main,
.pnl-bottomnav,
.pnl-drawer,
.pnl-drawer-overlay,
.pnl-guest-wrap {
    max-width: 420px;
}

.pnl-appbar {
    background: var(--pnl-grad);
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 152, 0, 0.45);
    padding: 0 0.75rem;
    gap: 0.45rem;
}

.pnl-appbar::after {
    display: none;
}

.pnl-appbar .pnl-brand {
    gap: 0.45rem;
    font-size: 1.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    min-width: 0;
    max-width: 56%;
}

.pnl-appbar .pnl-brand > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pnl-brand .pnl-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-family: var(--pnl-font-display);
    font-size: 1.12rem;
    font-weight: 800;
}

.pnl-iconbtn {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: transparent;
    border: 0;
    color: #fff;
}

.pnl-back-btn {
    background: rgba(255, 255, 255, 0.86);
    color: #30230f;
    border-radius: 999px;
    border: 1px solid rgba(124, 92, 31, 0.18);
}

.pnl-chip {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.pnl-chip .pnl-chip-lbl {
    display: none;
}

.pnl-appbar-title-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: calc(100% - 120px);
    pointer-events: none;
}

.pnl-appbar-title {
    display: block;
    font-family: var(--pnl-font-display);
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pnl-main {
    padding: calc(var(--pnl-appbar-h) + 0.7rem) 0.55rem calc(86px + env(safe-area-inset-bottom));
}

.pnl-main-inner {
    max-width: 420px;
}

.pnl-card {
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(33, 23, 5, 0.1);
}

.pnl-card-body {
    padding: 1rem;
}

.pnl-bottomnav {
    background: #fffdf8;
    border-top: 1px solid #eadfca;
    box-shadow: 0 -4px 14px rgba(30, 21, 6, 0.08);
    padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom));
}

.pnl-bottomnav a {
    color: #0f1012;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    gap: 0.2rem;
    border-radius: 12px;
    padding: 0.38rem 0.12rem;
}

.pnl-bottomnav a .pnl-i {
    width: 19px;
    height: 19px;
}

.pnl-bottomnav a.active {
    background: var(--pnl-primary);
    color: #111;
}

.pnl-bottomnav a.pnl-fab,
.pnl-bottomnav a.pnl-fab .pnl-fab-ic {
    margin-top: 0;
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.pnl-drawer-overlay {
    background: rgba(10, 16, 36, 0.42);
}

.pnl-drawer {
    width: 86%;
    max-width: 360px;
    background: #fff;
    border-right: 1px solid #f0ece4;
    box-shadow: 0 12px 30px rgba(19, 21, 33, 0.2);
}

.pnl-drawer-top {
    padding: 0.92rem 0.86rem 0.64rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.58rem;
}

.pnl-drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    text-decoration: none;
    color: #111;
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 54px);
}

.pnl-drawer-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--pnl-font-sans);
    font-size: 1.18rem;
    font-weight: 900;
    background: linear-gradient(180deg, #3354dd 0%, #2137b4 100%);
    border: 1px solid #5f7cf0;
    box-shadow: 0 5px 12px rgba(33, 55, 180, 0.35);
}

.pnl-drawer-brand-name {
    font-family: var(--pnl-font-sans);
    font-size: clamp(1.05rem, 5vw, 1.28rem);
    font-weight: 900;
    letter-spacing: 0.005em;
    color: #121212;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1;
}

.pnl-drawer-x {
    position: static;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f2f6ff;
    border: 1px solid #d9e3ff;
    color: #181818;
    box-shadow: 0 3px 9px rgba(26, 28, 38, 0.08);
}

.pnl-drawer-x .pnl-i {
    width: 19px;
    height: 19px;
}

.pnl-drawer-profile-card {
    margin: 0.16rem 0.86rem 0.9rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #3352db 0%, #1f36b2 100%);
    color: #fff;
    padding: 0.86rem 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    box-shadow: 0 10px 20px rgba(31, 54, 178, 0.32);
}

.pnl-drawer-profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.95);
    background: #1a2f98;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 2rem;
}

.pnl-drawer-profile-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pnl-drawer-profile-name {
    font-family: var(--pnl-font-display);
    font-size: 1.88rem;
    font-weight: 700;
    line-height: .95;
}

.pnl-drawer-profile-phone {
    font-size: 0.98rem;
    font-weight: 700;
    opacity: 0.95;
}

.pnl-drawer-nav {
    padding: 0 0.62rem 1rem;
    gap: 0;
}

.pnl-drawer-link {
    border: 0;
    border-bottom: 1px solid #f2ece1;
    border-radius: 0;
    box-shadow: none;
    padding: 0.84rem 0.34rem;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.78rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: #111;
    min-height: 56px;
}

.pnl-drawer-link-ic {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: #161616;
    flex: 0 0 26px;
}

.pnl-drawer-link-ic .pnl-i {
    width: 21px;
    height: 21px;
}

.pnl-drawer-link-logout {
    margin-top: 0.82rem;
    border: 1px solid #ffd8d2;
    border-bottom: 1px solid #ffd8d2;
    border-radius: 18px;
    background: #fff7f6;
    color: #ff2f20;
    font-weight: 800;
}

.pnl-drawer-link-logout .pnl-drawer-link-ic {
    color: #171717;
}

.pnl-drawer-toggle {
    justify-content: space-between;
}

.pnl-switch {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid #c4cad4;
    background: #eceff4;
    display: inline-flex;
    align-items: center;
    padding: 2px;
}

.pnl-switch-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #73809a;
    margin-left: auto;
}

.pnl-drawer-version {
    text-align: center;
    color: #7282a6;
    font-size: 0.86rem;
    font-weight: 600;
    padding-top: 1rem;
}

.ux-home-fixed {
    position: sticky;
    top: calc(var(--pnl-appbar-h) + 0.35rem);
    z-index: 24;
    background: var(--pnl-bg);
    padding-bottom: 0.45rem;
}

.ux-news-strip {
    background: #fff;
    border: 1px solid #ece5d7;
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.5rem;
    overflow: hidden;
}

.ux-news-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pnl-primary);
    color: #fff;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
}

.ux-news-icon .pnl-i {
    width: 21px;
    height: 21px;
}

.ux-news-marquee {
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
    color: #1f160f;
    font-weight: 700;
}

.ux-news-marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: ux-marquee 18s linear infinite;
}

@keyframes ux-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

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

.ux-home-action {
    text-decoration: none;
    color: #121212;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-align: center;
}

.ux-home-action-ic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(180deg, #302b27 0%, #1a1613 100%);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.23);
}

.ux-home-action-ic .pnl-i {
    width: 24px;
    height: 24px;
}

.ux-market-tabs {
    background: #17130d;
    border-radius: 22px;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.34rem;
}

.ux-market-tabs a {
    flex: 1;
    border-radius: 17px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.56rem 0.2rem;
    font-size: 0.75rem;
}

.ux-market-tabs a.active {
    background: var(--pnl-primary);
    color: #181106;
}

.ux-market-card {
    background: #fff;
    border: 1px solid #ece8de;
    border-radius: 20px;
    box-shadow: 0 2px 11px rgba(24, 18, 8, 0.12);
    padding: 1rem;
    margin-bottom: 0.95rem;
    position: relative;
}

.ux-market-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 54px;
    width: 5px;
    border-radius: 0 4px 4px 0;
    background: #df1515;
}

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

.ux-market-title {
    padding-left: 0.55rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #1d1410;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.ux-market-badge {
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.ux-market-badge.closed {
    color: #e2261c;
    background: #ffeeec;
}

.ux-market-badge.open {
    color: #0b8f58;
    background: #e9f9f0;
}

.ux-market-play {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    border: 1px solid #ddd4bf;
    background: #f6f0e2;
    color: #9d8a63;
    border-radius: 999px;
    text-decoration: none;
    padding: 0.32rem 0.58rem;
}

.ux-market-play > span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ded5c2;
    display: grid;
    place-items: center;
}

.ux-market-play > span .pnl-i {
    width: 13px;
    height: 13px;
}

.ux-market-play strong {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.ux-market-play.disabled {
    opacity: 0.75;
    pointer-events: none;
}

.ux-market-result {
    padding-left: 0.55rem;
    margin-top: 0.24rem;
    color: #2c2014;
    font-family: var(--pnl-font-display);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.03em;
}

.ux-market-time {
    margin-top: 0.72rem;
    padding-top: 0.72rem;
    border-top: 1px solid #efece5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.34rem;
    color: #6d7380;
    font-size: 0.76rem;
    font-weight: 600;
}

.ux-market-time .pnl-i {
    width: 14px;
    height: 14px;
}

.ux-history-card,
.ux-funds-section {
    border: 1px solid #ece5d7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(31, 20, 5, 0.1);
    overflow: hidden;
}

.ux-history-title,
.ux-funds-title {
    background: var(--pnl-primary);
    color: #151008;
    text-align: center;
    font-family: var(--pnl-font-display);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 0.03em;
    padding: 0.62rem 0.7rem;
}

.ux-history-list,
.ux-funds-list {
    display: flex;
    flex-direction: column;
}

.ux-history-item,
.ux-funds-row {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    text-decoration: none;
    color: #1b1b1b;
    border-bottom: 1px solid #f1ede5;
    padding: 0.9rem 0.9rem;
    font-weight: 700;
}

.ux-history-list .ux-history-item:last-child,
.ux-funds-list .ux-funds-row:last-child {
    border-bottom: 0;
}

.ux-history-item-ic,
.ux-funds-ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff5dc;
    color: #e6a00f;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
}

.ux-history-item-ic .pnl-i,
.ux-funds-ic .pnl-i {
    width: 18px;
    height: 18px;
}

.ux-history-item-txt,
.ux-funds-row > span:nth-child(2) {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ux-history-arrow,
.ux-funds-arrow {
    width: 22px;
    height: 22px;
    color: #d3d8df;
    flex: 0 0 22px;
}

.ux-history-arrow .pnl-i,
.ux-funds-arrow .pnl-i {
    width: 22px;
    height: 22px;
}

.ux-funds-row.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.ux-passbook-wrap {
    background: #fff;
    border: 1px solid #ece5d7;
    border-radius: 24px;
    min-height: calc(100vh - 164px);
    box-shadow: 0 2px 10px rgba(22, 17, 9, 0.09);
}

.ux-passbook-empty {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.7rem;
    padding: 2rem 1.3rem;
    text-align: center;
}

.ux-passbook-empty-art {
    width: 108px;
    height: 108px;
    border-radius: 28px;
    background: #fff6df;
    color: #e9a811;
    display: grid;
    place-items: center;
}

.ux-passbook-empty-art .pnl-i {
    width: 48px;
    height: 48px;
}

.ux-passbook-empty-title {
    font-family: var(--pnl-font-display);
    font-size: 1.9rem;
    line-height: 1;
    color: #15100a;
}

.ux-passbook-empty-sub {
    max-width: 270px;
    color: #444a57;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.55;
}

.ux-passbook-list {
    padding: 0.8rem;
}

.ux-passbook-row {
    text-decoration: none;
    color: #171717;
    border: 1px solid #f0ece4;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.72rem;
    margin-bottom: 0.5rem;
}

.ux-passbook-ic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff5df;
    color: #e6a10e;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
}

.ux-passbook-ic .pnl-i {
    width: 16px;
    height: 16px;
}

.ux-passbook-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.ux-passbook-main strong {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ux-passbook-main small {
    color: #6e7481;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ux-passbook-end {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.ux-passbook-end.pos { color: #0b8f58; }
.ux-passbook-end.neg { color: #d62a20; }
.ux-passbook-end.muted { color: #6f7682; }

.ux-support-wrap {
    border: 1px solid #ece5d7;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(21, 16, 8, 0.09);
    padding: 0.8rem;
}

.ux-support-head {
    text-align: center;
    padding: 0.35rem 0.45rem 0.6rem;
}

.ux-support-head-ic {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    margin: 0 auto 0.45rem;
    background: var(--pnl-primary);
    color: #fff;
    display: grid;
    place-items: center;
}

.ux-support-head-ic .pnl-i {
    width: 28px;
    height: 28px;
}

.ux-support-head h1 {
    margin: 0;
    font-family: var(--pnl-font-display);
    font-size: 1.85rem;
    line-height: 1;
    color: #141006;
}

.ux-support-greet {
    display: inline-block;
    border: 1px solid #f6e8c4;
    border-radius: 999px;
    background: #fff7e3;
    color: #df9f0f;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.14rem 0.7rem;
    margin: 0.55rem 0 0.3rem;
}

.ux-support-head p {
    margin: 0;
    color: #626978;
    font-size: 0.88rem;
    font-weight: 500;
}

.ux-support-topics {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.78rem;
}

.ux-support-topic {
    border: 1px solid #efebe2;
    border-radius: 15px;
    text-decoration: none;
    color: #161616;
    box-shadow: 0 2px 8px rgba(25, 19, 9, 0.08);
    background: #fff;
    padding: 0.66rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.62rem;
}

.ux-support-topic-ic {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #f4f8ef;
    color: #4e8d66;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
}

.ux-support-topic.topic-withdraw .ux-support-topic-ic {
    background: #fff0ef;
    color: #db3124;
}

.ux-support-topic.topic-other .ux-support-topic-ic {
    background: #fff7e7;
    color: #db9917;
}

.ux-support-topic-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.ux-support-topic-main strong {
    font-size: 0.82rem;
    line-height: 1.05;
}

.ux-support-topic-main small {
    color: #727985;
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ux-support-topic-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f6faef;
    color: #56915f;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
}

.ux-support-topic.topic-withdraw .ux-support-topic-arrow {
    background: #fff2f1;
    color: #de3226;
}

.ux-support-topic.topic-other .ux-support-topic-arrow {
    background: #fff8eb;
    color: #dc9a16;
}

.ux-support-note {
    margin: 0.85rem 0 0.25rem;
    color: #616874;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.ux-support-note .pnl-i {
    width: 14px;
    height: 14px;
}

.ux-support-recent {
    margin-top: 0.75rem;
    border-top: 1px solid #f0ece4;
    padding-top: 0.62rem;
}

.ux-support-recent-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1f170f;
    margin-bottom: 0.4rem;
}

.ux-support-recent-row {
    text-decoration: none;
    color: #1d1d1d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    border: 1px solid #f0ece4;
    border-radius: 12px;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.42rem;
    font-size: 0.73rem;
    font-weight: 600;
}

.ux-bank-card {
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(24, 18, 8, 0.1);
}

.ux-bank-card .pnl-section-title {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
}

.ux-bank-card .form-control,
.ux-bank-card .form-select {
    border-radius: 14px;
    background: #f5f3ec;
    border-color: #e7e1d2;
    min-height: 46px;
}

.btn-pnl {
    background: var(--pnl-grad);
    color: #17120a;
    box-shadow: none;
}

.btn-pnl:hover {
    color: #17120a;
    filter: brightness(1.03);
    box-shadow: none;
}

@media (max-width: 380px) {
    .pnl-main,
    .pnl-bottomnav,
    .pnl-appbar,
    .pnl-drawer,
    .pnl-drawer-overlay,
    .pnl-guest-wrap {
        max-width: 360px;
    }

    .ux-market-title { font-size: 0.74rem; }
    .ux-market-result { font-size: 1.65rem; }
    .ux-support-head h1 { font-size: 1.62rem; }
}

/* =====================================================================
   USER MOBILE UI REFRESH (Blue theme based on provided references)
   ===================================================================== */

:root {
    --ux-blue: #2137b4;
    --ux-blue-deep: #142780;
    --ux-page-bg: #f7f9ff;
    --ux-line: #e6ecff;
    --ux-text: #0f1d3a;
    --ux-muted: #7f8aa8;
    --pnl-appbar-h: 72px;
}

body.pnl-body {
    background: var(--ux-page-bg);
    color: var(--ux-text);
}

.pnl-appbar {
    height: 72px;
    padding: 0 0.95rem;
    gap: 0.6rem;
    background: linear-gradient(180deg, #132785 0%, #2137b4 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 18px rgba(12, 24, 87, 0.25);
}

.pnl-appbar::after {
    display: none;
}

.pnl-menu-btn {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.pnl-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: transparent;
    border: 0;
    padding: 0;
}

.pnl-brand-pill {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(5, 12, 44, 0.3);
    text-decoration: none;
    line-height: 1;
}

.pnl-appbar .pnl-brand.pnl-brand-pill {
    max-width: none;
    min-width: 0;
    overflow: visible;
    flex: 0 0 auto;
    gap: 0;
}

.pnl-appbar .pnl-brand.pnl-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    line-height: 1;
    max-width: clamp(122px, 48vw, 230px);
    text-decoration: none;
    color: #111;
}

.pnl-brand-line-top {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.pnl-brand-dp {
    color: #ff149f;
    font-style: italic;
}

.pnl-brand-boss {
    color: #111;
}

.pnl-brand-line-bottom {
    display: block;
    color: #111;
    font-size: 0.53rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.05;
    white-space: nowrap;
}

.pnl-appbar .pnl-brand.pnl-brand-pill.pnl-brand-logo-wrap {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.pnl-brand-logo {
    display: block;
    width: auto;
    height: 46px;
    max-width: clamp(128px, 46vw, 240px);
    object-fit: contain;
}

.pnl-appbar .pnl-brand.pnl-brand-pill > span {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.pnl-brand-pill-a,
.pnl-brand-pill-b {
    padding: 0.34rem 0.52rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
}

.pnl-brand-pill-a {
    background: linear-gradient(180deg, #ff8f00 0%, #ff6400 100%);
}

.pnl-brand-pill-b {
    background: linear-gradient(180deg, #2cbf47 0%, #198f35 100%);
}

.pnl-appbar-title-wrap {
    position: static;
    transform: none;
    max-width: none;
    pointer-events: auto;
}

.pnl-appbar-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.pnl-chip.pnl-balance-chip {
    background: transparent;
    border: 0;
    padding: 0;
    min-width: auto;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
}

.pnl-iconbtn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: transparent;
    border: 0;
    color: #fff;
}

.pnl-wallet-btn {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.pnl-iconbtn .pnl-dot {
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
    background: #ffda39;
    color: #2e2500;
    box-shadow: 0 0 0 2px #2137b4;
}

.pnl-main {
    padding: calc(var(--pnl-appbar-h) + 0.8rem) 0.78rem calc(90px + env(safe-area-inset-bottom));
}

.pnl-main-inner {
    max-width: 760px;
}

.pnl-bottomnav {
    background: #fff;
    border-top: 1px solid #e5ebff;
    box-shadow: 0 -8px 18px rgba(13, 25, 86, 0.06);
    padding: 0.4rem 0.3rem calc(0.34rem + env(safe-area-inset-bottom));
}

.pnl-bottomnav a {
    color: #76809b;
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    gap: 0.18rem;
    padding: 0.22rem 0.1rem;
}

.pnl-bottomnav a .pnl-i {
    width: 24px;
    height: 24px;
}

.pnl-bottomnav a.active {
    color: #1f36b4;
    background: transparent;
}

.ux-home-page {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ux-home-sticky-top {
    position: sticky;
    top: calc(var(--pnl-appbar-h) + 0.32rem);
    z-index: 28;
    background: var(--ux-page-bg);
    padding-bottom: 0.36rem;
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
}

.ux-notice-wrap {
    border: 1px solid #d8e3ff;
    border-radius: 24px;
    background: #fff;
    padding: 0.4rem 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.42rem;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(17, 36, 112, 0.08);
}

.ux-notice-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    background: #2137b4;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.36rem 0.64rem;
}

.ux-notice-pill-ic {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    flex: 0 0 18px;
}

.ux-notice-pill-ic .pnl-i {
    width: 11px;
    height: 11px;
}

.ux-notice-track {
    min-width: 0;
    flex: 1;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #edf2ff;
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 0 0.56rem;
}

.ux-notice-marquee {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    color: #2640a6;
    font-size: 0.66rem;
    font-weight: 700;
    white-space: nowrap;
}

.ux-notice-marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: uxNoticeMove 18s linear infinite;
}

@keyframes uxNoticeMove {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.ux-home-pill-board {
    position: relative;
    padding: 0.16rem 0 0.26rem;
}

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

.ux-home-pill-row.bottom {
    margin-top: 0.5rem;
}

.ux-home-pill {
    position: relative;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, #2844cc 0%, #1f36b2 100%);
    border: 1px solid #1b2f9e;
    border-radius: 999px;
    min-height: 58px;
    padding: 0.54rem 0.58rem;
    display: flex;
    align-items: center;
    gap: 0.44rem;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(24, 46, 150, 0.32);
}

.ux-home-pill.left {
    justify-content: flex-start;
}

.ux-home-pill.right {
    justify-content: space-between;
}

.ux-home-pill-ic {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    background: #fff;
    color: #2137b4;
    display: grid;
    place-items: center;
    flex: 0 0 31px;
}

.ux-home-pill-ic .pnl-i {
    width: 15px;
    height: 15px;
}

.ux-home-pill-txt {
    display: block;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1;
}

.ux-home-pill.right .ux-home-pill-txt {
    margin-right: .18rem;
    padding-right: 0;
}

.ux-home-pill.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.ux-home-pill.tl::after,
.ux-home-pill.tr::after,
.ux-home-pill.bl::after,
.ux-home-pill.br::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
}

.ux-home-pill.tl::after { right: -17px; bottom: -17px; }
.ux-home-pill.tr::after { left: -17px; bottom: -17px; }
.ux-home-pill.bl::after { right: -17px; top: -17px; }
.ux-home-pill.br::after { left: -17px; top: -17px; }

.ux-home-wheel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #173aa8;
    background: #fff;
    box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(11, 27, 93, 0.18);
    z-index: 6;
    pointer-events: none;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.ux-home-wheel-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .ux-home-pill {
        min-height: 56px;
        padding: 0.52rem 0.52rem;
        font-size: 0.72rem;
        gap: 0.4rem;
    }

    .ux-home-pill-ic {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .ux-home-wheel {
        width: 46px;
        height: 46px;
    }
}

.ux-home-support {
    border: 2px dashed #2041c3;
    border-radius: 20px;
    background: #fff;
    padding: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ux-home-support-ic {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #edf2ff;
    color: #2137b4;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
}

.ux-home-support-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ux-home-support-copy strong {
    font-size: 0.66rem;
    color: #17328d;
    font-weight: 800;
}

.ux-home-support-copy small {
    font-size: 0.58rem;
    color: #6f7d9f;
    line-height: 1.35;
}

.ux-home-support-btn {
    flex: 0 0 auto;
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #00cb69 0%, #01a953 100%);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.52rem 0.86rem;
    letter-spacing: 0.03em;
}

.ux-market-panel {
    border: 1px solid var(--ux-line);
    border-radius: 20px;
    background: #fff;
    padding: 0.85rem;
}

.ux-market-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px auto;
    align-items: center;
    gap: 0.55rem;
}

.ux-market-panel-head h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 900;
    color: #081b54;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}

.ux-market-panel-stat {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f2f5ff;
    color: #2a47bf;
    display: grid;
    place-items: center;
}

.ux-market-panel-face {
    color: #2140be;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    text-align: right;
}

.ux-market-panel-state {
    margin: 0.56rem 0 0.65rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.ux-market-panel-state.open { color: #06a354; }
.ux-market-panel-state.closed { color: #d43838; }

.ux-market-panel-foot {
    border-top: 1px solid #edf2ff;
    padding-top: 0.6rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.67rem;
    color: #6c7898;
}

.ux-market-panel-foot b {
    color: #1d37b0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ux-market-place {
    text-decoration: none;
    border-radius: 12px;
    background: #ddffe8;
    color: #089148;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.5rem 0.7rem;
}

.ux-market-place.disabled {
    background: #f1f3f8;
    color: #8a93ac;
}

.ux-market-empty {
    text-align: center;
    color: #6d7897;
    font-weight: 600;
}

.ux-market-empty-ic {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #edf2ff;
    color: #1e36ac;
    margin-bottom: 0.45rem;
}

.ux-history-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ux-history-tile {
    --tile-bg: #eef2ff;
    --tile-ic-bg: #dce6ff;
    --tile-ink: #1f36b1;
    text-decoration: none;
    color: #182646;
    background: var(--tile-bg);
    border-radius: 22px;
    min-height: 150px;
    padding: 0.85rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.56rem;
}

.ux-history-tile.full {
    grid-column: 1 / -1;
}

.ux-history-tile-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--tile-ic-bg);
    color: var(--tile-ink);
    display: grid;
    place-items: center;
}

.ux-history-tile-title {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.3;
}

.ux-history-tile-bar {
    width: 66px;
    height: 6px;
    border-radius: 999px;
    background: var(--tile-ink);
    opacity: 0.9;
}

.ux-history-tile.tone-indigo { --tile-bg: #eef2ff; --tile-ic-bg: #dde6ff; --tile-ink: #2f49c4; }
.ux-history-tile.tone-blue { --tile-bg: #edf5ff; --tile-ic-bg: #d6e9ff; --tile-ink: #2b73ff; }
.ux-history-tile.tone-purple { --tile-bg: #f3efff; --tile-ic-bg: #e5dbff; --tile-ink: #9140ff; }
.ux-history-tile.tone-green { --tile-bg: #eafbec; --tile-ic-bg: #ccf4d0; --tile-ink: #17a14c; }
.ux-history-tile.tone-cyan { --tile-bg: #e9faff; --tile-ic-bg: #d0f3ff; --tile-ink: #0ea3c7; }
.ux-history-tile.tone-pink { --tile-bg: #ffeef4; --tile-ic-bg: #ffd9e7; --tile-ink: #ff2e7a; }
.ux-history-tile.tone-amber { --tile-bg: #fff9e9; --tile-ic-bg: #fff0c2; --tile-ink: #c88600; }
.ux-history-tile.tone-peach { --tile-bg: #fff3ee; --tile-ic-bg: #ffe1d4; --tile-ink: #de5b15; }

.ux-screen-heading {
    margin: 0.2rem 0 0.95rem;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 800;
    color: #152754;
}

.ux-empty-panel {
    border: 1px solid var(--ux-line);
    border-radius: 22px;
    background: #fff;
    text-align: center;
    padding: 1.3rem 0.8rem;
}

.ux-empty-panel-ic {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    background: #fff6ec;
    color: #e86a00;
    display: grid;
    place-items: center;
}

.ux-empty-panel-ic .pnl-i {
    width: 36px;
    height: 36px;
}

.ux-empty-panel h3 {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 800;
    color: #142553;
}

.ux-empty-panel p {
    margin: 0.42rem 0 0;
    color: #7b86a2;
    font-size: 0.73rem;
}

.ux-bid-history-list,
.ux-wallet-transaction-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ux-bid-history-item,
.ux-wallet-transaction-row {
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--ux-line);
    border-radius: 16px;
    background: #fff;
    padding: 0.62rem;
    display: flex;
    align-items: center;
    gap: 0.56rem;
}

.ux-bid-history-item-ic,
.ux-wallet-transaction-ic {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #edf2ff;
    color: #2741b8;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
}

.ux-bid-history-item-main,
.ux-wallet-transaction-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.ux-bid-history-item-main strong,
.ux-wallet-transaction-main strong {
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ux-bid-history-item-main small,
.ux-wallet-transaction-main small {
    font-size: 0.58rem;
    color: #7a86a3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ux-bid-history-item-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    white-space: nowrap;
}

.ux-bid-history-item-end b {
    font-size: 0.72rem;
    color: #11245f;
}

.ux-wallet-screen {
    display: flex;
    flex-direction: column;
    gap: 0.78rem;
}

.ux-wallet-balance-card {
    border-radius: 22px;
    background: linear-gradient(180deg, #1a2e97 0%, #2239b5 100%);
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.ux-wallet-balance-ic {
    width: 66px;
    height: 66px;
    margin: 0 auto 0.56rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
}

.ux-wallet-balance-label {
    display: block;
    font-size: 0.78rem;
    opacity: 0.95;
}

.ux-wallet-balance-value {
    display: block;
    margin-top: 0.22rem;
    font-size: 1.52rem;
    font-weight: 800;
}

.ux-wallet-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.ux-wallet-action {
    text-decoration: none;
    border-radius: 14px;
    min-height: 56px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
}

.ux-wallet-action.withdraw { background: #f24646; }
.ux-wallet-action.add { background: #06c16f; }
.ux-wallet-action.disabled { opacity: 0.5; pointer-events: none; }

.ux-wallet-empty {
    text-align: center;
    color: #7e89a7;
    font-size: 0.86rem;
    padding: 0.9rem 0 0.3rem;
}

.ux-wallet-transaction-amt {
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
}

.ux-wallet-transaction-amt.pos { color: #0da855; }
.ux-wallet-transaction-amt.neg { color: #d13f3f; }

.ux-contact-screen {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ux-contact-intro {
    border: 1px solid var(--ux-line);
    border-radius: 18px;
    background: #fff;
    padding: 0.86rem;
    color: #4f5b7c;
    font-size: 0.72rem;
    line-height: 1.6;
}

.ux-contact-row {
    text-decoration: none;
    border: 1px solid var(--ux-line);
    border-radius: 16px;
    background: #fff;
    color: #18274d;
    display: flex;
    align-items: center;
    gap: 0.58rem;
    padding: 0.72rem 0.86rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.ux-contact-row-ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf3ff;
    color: #1f38b2;
    display: grid;
    place-items: center;
}

.ux-play-screen-head h2,
.ux-bid-form-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    color: #142553;
    text-transform: uppercase;
}

.ux-play-screen-head p,
.ux-bid-form-head p {
    margin: 0.14rem 0 0;
    color: #727f9f;
    font-size: 0.84rem;
    font-weight: 700;
}

.ux-bid-form-head strong {
    display: inline-block;
    margin-top: 0.6rem;
    color: #1d38b4;
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ux-inline-note {
    border: 1px solid #ffe6bf;
    border-radius: 14px;
    background: #fffaf0;
    color: #a16a00;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.55rem 0.7rem;
    margin-top: 0.6rem;
}

.ux-game-tile-grid {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.68rem;
}

.ux-game-tile {
    text-decoration: none;
    color: #18284b;
    border: 1px solid var(--ux-line);
    border-radius: 18px;
    background: #fff;
    min-height: 154px;
    padding: 0.85rem 0.66rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
}

.ux-game-tile-ic {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.ux-game-tile-ic .pnl-i {
    width: 28px;
    height: 28px;
}

.ux-game-tile-ic.tone-indigo { background: #6f42ff; color: #fff; }
.ux-game-tile-ic.tone-blue { background: #2d73ff; color: #fff; }
.ux-game-tile-ic.tone-teal { background: #05a8a8; color: #fff; }
.ux-game-tile-ic.tone-purple { background: #9561ff; color: #fff; }
.ux-game-tile-ic.tone-green { background: #11b64f; color: #fff; }
.ux-game-tile-ic.tone-cyan { background: #0a92dd; color: #fff; }

.ux-game-tile-name {
    text-align: center;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.ux-game-tile-bar {
    width: 70px;
    height: 6px;
    border-radius: 999px;
    background: #2f49c6;
    opacity: 0.9;
}

.ux-bid-form-card {
    margin-top: 0.72rem;
    border: 1px solid var(--ux-line);
    border-radius: 20px;
    background: #fff;
    padding: 0.82rem;
}

.ux-bid-label {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #667396;
}

.ux-bid-input {
    border-radius: 16px;
    border: 1px solid #e5ecff;
    background: #fff;
    min-height: 52px;
    color: #1d2d57;
    box-shadow: none;
    margin-bottom: 0.75rem;
}

.ux-bid-input:focus {
    border-color: #aabcf8;
    box-shadow: 0 0 0 0.2rem rgba(38, 72, 196, 0.12);
}

.ux-bid-points-wrap {
    position: relative;
}

.ux-bid-points-ic {
    position: absolute;
    left: 0.72rem;
    top: 0.84rem;
    color: #2a47bd;
    z-index: 2;
}

.ux-bid-points-wrap .ux-bid-input {
    padding-left: 2.35rem;
}

.ux-bid-limit-note {
    color: #7a86a5;
    font-size: 0.64rem;
    margin: -0.1rem 0 0.56rem;
}

.ux-bid-form-error {
    color: #d23f3f;
    font-size: 0.66rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ux-bid-submit {
    width: 100%;
    border: 0;
    border-radius: 16px;
    min-height: 60px;
    background: linear-gradient(180deg, #1a2f9a 0%, #2239b5 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
}

.ux-bid-submit:disabled {
    opacity: 0.5;
}

/* =====================================================================
   STARLINE USER UI (blue style)
   ===================================================================== */

.ux-starline-page {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.ux-starline-head h1 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 900;
    color: #0f235f;
}

.ux-starline-head p {
    margin: 0.12rem 0 0;
    color: #7a86a4;
    font-size: 0.82rem;
    font-weight: 700;
}

.ux-starline-rates-card {
    border: 1px solid #e4ebff;
    border-radius: 20px;
    background: #fff;
    padding: 0.78rem;
    box-shadow: 0 6px 16px rgba(20, 34, 92, 0.06);
}

.ux-starline-rates-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #102762;
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 0.58rem;
}

.ux-starline-rates-ic {
    width: 23px;
    height: 23px;
    border-radius: 8px;
    background: #edf2ff;
    color: #2241be;
    display: grid;
    place-items: center;
}

.ux-starline-rates-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.48rem 0;
    border-top: 1px solid #eef2ff;
}

.ux-starline-rates-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.ux-starline-rates-row span {
    color: #7b849e;
    font-size: 0.86rem;
    font-weight: 700;
}

.ux-starline-rates-row b {
    color: #131313;
    font-size: 0.98rem;
    font-weight: 900;
}

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

.ux-starline-quick-btn {
    text-decoration: none;
    min-height: 45px;
    border-radius: 14px;
    border: 1px solid #e7ecff;
    background: #fff;
    color: #1f37b4;
    font-size: 0.86rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    box-shadow: 0 4px 10px rgba(18, 34, 99, 0.04);
}

.ux-starline-game {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 0.55rem;
}

.ux-starline-game-main {
    border: 1px solid #e4ebff;
    border-radius: 18px;
    background: #fff;
    padding: 0.62rem;
    box-shadow: 0 6px 14px rgba(19, 33, 90, 0.05);
}

.ux-starline-state {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border-radius: 999px;
    color: #fff;
    padding: 0.2rem 0.54rem;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ux-starline-state .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
}

.ux-starline-state.running { background: #ffb11f; }
.ux-starline-state.closed { background: #ff6060; }

.ux-starline-game h3 {
    margin: 0.46rem 0 0;
    color: #0f245f;
    font-size: 1.06rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.ux-starline-result {
    margin-top: 0.15rem;
    color: #7f8aa4;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.ux-starline-time-grid {
    margin-top: 0.56rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.44rem;
}

.ux-starline-time-item {
    border: 1px solid #f1e7cf;
    border-radius: 12px;
    background: #fff9ed;
    text-align: center;
    padding: 0.35rem 0.28rem;
}

.ux-starline-time-item small {
    display: block;
    color: #9a93a0;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ux-starline-time-item b {
    display: block;
    margin-top: 0.08rem;
    color: #151515;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.08;
}

.ux-starline-action {
    border: 1px solid #e4ebff;
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    color: #10245f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.2rem;
    box-shadow: 0 6px 14px rgba(19, 33, 90, 0.05);
}

.ux-starline-action-ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffb11f;
    color: #fff;
    display: grid;
    place-items: center;
}

.ux-starline-action-txt {
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.05;
}

.ux-starline-action.disabled {
    color: #6f7d9f;
    background: #f6f8ff;
}

.ux-starline-action.disabled .ux-starline-action-ic {
    background: #c8d1e5;
}

.ux-starline-empty {
    border: 1px solid #e4ebff;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    padding: 1rem 0.7rem;
}

.ux-starline-empty-ic {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #edf2ff;
    color: #1f36b2;
    display: grid;
    place-items: center;
    margin: 0 auto 0.5rem;
}

.ux-starline-empty strong {
    display: block;
    color: #15295f;
    font-size: 0.9rem;
}

.ux-starline-empty p {
    margin: 0.35rem 0 0;
    color: #7483a5;
    font-size: 0.7rem;
}

.ux-starline-head.ux-starline-head-clean {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.15rem;
}

.ux-starline-head-link {
    text-decoration: none;
    color: #5f6c8f;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

.ux-starline-cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.72rem;
}

.ux-starline-card {
    border: 1px solid #e4ebff;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(19, 33, 90, 0.05);
    padding: 0.9rem 0.84rem 0.8rem;
    margin-top: 0.25rem;
}

.ux-starline-card-title {
    margin: 0;
    color: #15295f;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.ux-starline-card-state {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
}

.ux-starline-card-state.open { color: #27a64c; }
.ux-starline-card-state.closed { color: #2f2f2f; }

.ux-starline-card-mid {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    margin-top: 0.72rem;
}

.ux-starline-clock {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0e121f;
    color: #fff;
    display: grid;
    place-items: center;
}

.ux-starline-clock .pnl-i {
    width: 34px;
    height: 34px;
}

.ux-starline-card-meta strong {
    display: block;
    color: #f5a23d;
    font-size: 1.95rem;
    font-weight: 900;
    line-height: 1;
}

.ux-starline-card-meta span {
    display: block;
    margin-top: 0.24rem;
    color: #f5a23d;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
}

.ux-starline-card-cta {
    margin-top: 0.82rem;
    min-height: 48px;
    border-radius: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.01rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #ffb15f;
    color: #160b55;
}

.ux-starline-card-cta.disabled {
    background: #666c74;
    color: #fff;
}

@media (min-width: 640px) {
    .ux-starline-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.88rem;
    }
}

@media (min-width: 992px) {
    .pnl-main {
        padding: calc(var(--pnl-appbar-h) + 1rem) 1rem 1.4rem;
    }

    .pnl-main-inner {
        max-width: 860px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --pnl-appbar-h: 68px;
    }

    .pnl-appbar {
        height: 68px;
    }

    .pnl-chip.pnl-balance-chip,
    .pnl-appbar-title {
        font-size: 1.5rem;
    }

    .pnl-brand-pill-a,
    .pnl-brand-pill-b {
        padding: 0.3rem 0.46rem;
        font-size: 0.82rem;
    }

    .pnl-appbar .pnl-brand.pnl-brand-lockup {
        max-width: clamp(110px, 52vw, 195px);
    }

    .pnl-brand-line-top {
        font-size: 1.08rem;
        gap: 3px;
    }

    .pnl-brand-line-bottom {
        font-size: 0.47rem;
        letter-spacing: 0.07em;
    }

    .pnl-brand-logo {
        height: 40px;
        max-width: clamp(120px, 54vw, 220px);
    }

    .pnl-bottomnav a {
        font-size: 0.6rem;
    }

    .ux-starline-game {
        grid-template-columns: minmax(0, 1fr) 74px;
        gap: 0.45rem;
    }

    .ux-starline-time-item b {
        font-size: 0.86rem;
    }

    .ux-starline-action-ic {
        width: 30px;
        height: 30px;
    }

    .ux-starline-action-txt {
        font-size: 0.72rem;
    }
}
