:root {
    --bg: #100318;
    --bg-2: #21063b;
    --panel: rgba(35, 13, 58, 0.82);
    --panel-solid: #25103f;
    --panel-light: #321456;
    --line: rgba(255, 255, 255, 0.14);
    --text: #fff9f2;
    --muted: #d6c7e9;
    --gold: #ffc83d;
    --gold-2: #ff8a00;
    --pink: #ff2f63;
    --red: #ff435f;
    --blue: #18c8ff;
    --green: #20df75;
    --violet: #9358ff;
    --shadow: 0 18px 44px rgba(17, 3, 31, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    background:
        linear-gradient(135deg, rgba(255, 47, 99, 0.24), transparent 32%),
        linear-gradient(225deg, rgba(24, 200, 255, 0.22), transparent 30%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 60px),
        linear-gradient(60deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 52px);
    opacity: 0.55;
}

body.auth-mobile-screen {
    background: #989eaa;
}

body.auth-mobile-screen::before {
    display: none;
}

a {
    color: var(--gold);
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.auth-card {
    width: min(100%, 440px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(23, 6, 39, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.auth-visual {
    min-height: 154px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(16, 3, 24, 0.34)),
        url("../images/gaming-texture-light.jpg") center/cover no-repeat;
}

.auth-inner {
    padding: 22px;
}

.content-panel {
    width: min(100%, 440px);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.app-main .content-panel {
    width: 100%;
}

.content-panel h2,
.section-title {
    font-size: 1.04rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.brand-lockup,
.app-logo,
.wallet-strip,
.quick-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-lockup {
    justify-content: space-between;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.44);
    border-radius: 8px;
    color: #2d1200;
    font-weight: 1000;
    background: linear-gradient(135deg, #fff5a3 0%, var(--gold) 45%, var(--gold-2) 100%);
    box-shadow: 0 10px 24px rgba(255, 138, 0, 0.25);
}

.brand-mark.small {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
}

.brand-title {
    margin: 0;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 1000;
    line-height: 0.95;
}

.brand-title-img {
    display: block;
    width: min(100%, 310px);
    height: auto;
    margin-top: 4px;
    object-fit: contain;
}

.auth-subtitle {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 3px;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 900;
}

.stack-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.stack-form label span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    color: var(--text);
    background: rgba(9, 2, 17, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 13px 14px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(255, 200, 61, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.18);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: auto;
}

.btn-primary,
.btn-soft,
.choice,
.game-card {
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn-primary,
.btn-soft {
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 900;
}

.btn-primary {
    color: #2d1200;
    background: linear-gradient(135deg, #fff58d 0%, var(--gold) 42%, #ff7a21 100%);
    box-shadow: 0 10px 24px rgba(255, 138, 0, 0.28);
}

.btn-soft {
    color: var(--text);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-primary:hover,
.btn-soft:hover,
.game-card:hover,
.choice:hover {
    transform: translateY(-1px);
}

.form-message {
    min-height: 24px;
    margin: 0;
    color: var(--muted);
}

.form-message.error {
    color: #ffd0d7;
}

.form-message.success {
    color: #bfffd7;
}

.bet-success-toast {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 184px;
    max-width: min(86vw, 340px);
    min-height: 42px;
    padding: 10px 18px;
    color: #ffffff;
    border: 1px solid rgba(196, 255, 211, 0.5);
    border-radius: 22px;
    background: linear-gradient(135deg, #12b75e, #0f8f47);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    font-size: 0.92rem;
    font-weight: 900;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -12px) scale(0.96);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.bet-success-toast.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.bet-success-toast[hidden] {
    display: none;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    font-size: 0.94rem;
    font-weight: 800;
}

.auth-mobile {
    width: min(100%, 360px);
    min-height: 100dvh;
    margin: 0 auto;
    color: #ffffff;
    background: #222221;
    box-shadow: 0 0 34px rgba(0, 0, 0, 0.22);
}

.auth-mobile-topbar {
    display: grid;
    grid-template-columns: 36px 1fr 50px;
    align-items: center;
    min-height: 43px;
    padding: 5px 13px;
    background: #3a3a38;
}

.auth-mobile-topbar > a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    border-radius: 8px;
}

.auth-mobile-topbar > a:hover,
.auth-mobile-topbar > a:focus {
    color: #ffd429;
    background: rgba(255, 255, 255, 0.06);
}

.auth-mobile-logo {
    display: grid;
    place-items: center;
    color: #ffd429;
    text-align: center;
}

.auth-mobile-logo strong {
    display: block;
    color: #ffd429;
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 1000;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.auth-mobile-logo span {
    display: block;
    width: 100px;
    height: 2px;
    margin: 2px 0;
    background: linear-gradient(90deg, transparent, #ffd429 18%, #ffd429 82%, transparent);
}

.auth-mobile-topbar > b {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 6px;
    color: #d5a23d;
    font-size: 0.8rem;
    font-weight: 650;
}

.auth-mobile-hero {
    min-height: 96px;
    padding: 12px 20px;
    background: #30302e;
}

.auth-mobile-hero.register {
    min-height: 106px;
}

.auth-mobile-hero h1,
.auth-mobile-hero p {
    margin: 0;
}

.auth-mobile-hero h1 {
    font-size: 1rem;
    font-weight: 850;
}

.auth-mobile-hero p {
    margin-top: 11px;
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1.14;
    font-weight: 650;
}

.auth-mobile-card {
    padding: 0 20px 36px;
}

.auth-tabs {
    display: grid;
    gap: 0;
    margin-bottom: 27px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.auth-tabs.two {
    grid-template-columns: repeat(2, 1fr);
}

.auth-tabs.one {
    grid-template-columns: 1fr;
}

.auth-tabs button {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 62px;
    color: #bdb7c3;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 900;
}

.auth-tabs button.active {
    color: #ffc83d;
    border-bottom-color: #d8a33e;
}

.auth-tabs button:not(.active) .auth-tab-icon {
    background: #77716e;
}

.auth-tab-icon,
.auth-field-icon {
    display: grid;
    place-items: center;
    color: currentColor;
    background: #d8a33e;
}

.auth-tab-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

.auth-tab-icon.stacked {
    display: flex;
    gap: 2px;
    width: 42px;
    background: transparent;
}

.auth-tabs button:not(.active) .auth-tab-icon.stacked {
    background: transparent;
}

.auth-tab-icon.stacked .auth-tab-svg {
    width: 19px;
    height: 19px;
    color: currentColor;
}

.auth-mobile-form {
    display: grid;
    gap: 18px;
}

.auth-mobile-form label {
    display: grid;
    gap: 9px;
}

.auth-mobile-form [hidden] {
    display: none !important;
}

.auth-mobile-form label > span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
}

.auth-field-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    flex: 0 0 auto;
}

.auth-topbar-svg,
.app-topbar-svg,
.auth-lang-svg,
.auth-tab-svg,
.auth-field-svg,
.auth-select-svg,
.auth-eye-svg,
.bottom-nav-svg,
.bottom-nav-go-svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-topbar-svg,
.app-topbar-svg,
.auth-lang-svg {
    width: 22px;
    height: 22px;
}

.auth-tab-svg {
    width: 15px;
    height: 15px;
    color: #232322;
}

.auth-field-svg {
    width: 14px;
    height: 14px;
    color: #232322;
}

.auth-select-svg {
    width: 13px;
    height: 13px;
}

.auth-eye-svg {
    width: 18px;
    height: 18px;
}

.auth-eye-svg.eye-off,
.auth-password-row button.is-visible .auth-eye-svg.eye-on {
    display: none;
}

.auth-password-row button.is-visible .auth-eye-svg.eye-off {
    display: block;
}

.phone-input-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 8px;
}

.phone-input-row button,
.auth-password-row,
.auth-mobile-form input:not([type="checkbox"]) {
    min-height: 47px;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    background: #30302e;
}

.phone-input-row button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #d8d4dc;
    font-size: 0.92rem;
}

.phone-input-row button em {
    display: grid;
    place-items: center;
    color: #bcc5ce;
    font-style: normal;
}

.auth-mobile-form input:not([type="checkbox"]) {
    padding: 12px 14px;
    font-size: 0.88rem;
}

.auth-mobile-form input:not([type="checkbox"]):focus {
    outline: 1px solid #58607a;
    outline-offset: 0;
}

.auth-password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
}

.auth-password-row input {
    min-height: 47px !important;
    background: transparent !important;
}

.auth-password-row button {
    display: grid;
    place-items: center;
    height: 100%;
    color: #ddd9df;
    border: 0;
    background: transparent;
    font-size: 1.1rem;
}

.auth-form-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-check {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    color: #c9c2d0;
    font-size: 0.72rem;
}

.auth-check input {
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 4px;
    accent-color: #d8a33e;
}

.auth-check span {
    color: #c9c2d0 !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
}

.auth-check a,
.auth-form-links a {
    color: #ffc83d;
    font-size: 0.72rem;
    font-weight: 750;
}

.auth-check.privacy {
    flex-wrap: wrap;
    margin-top: 12px;
}

.auth-gold-btn,
.auth-outline-btn {
    display: grid;
    place-items: center;
    min-height: 44px;
    width: 88%;
    margin: 6px auto 0;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 1000;
    letter-spacing: 3px;
}

.auth-gold-btn {
    color: #9b5c11;
    border: 0;
    background: linear-gradient(135deg, #fff2aa, #d69f3e);
}

.auth-outline-btn {
    color: #ffc83d;
    border: 1px solid #d8a33e;
    background: transparent;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) minmax(44px, auto);
    gap: 8px;
    justify-items: center;
    align-items: center;
    min-height: 64px;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 10px 14px;
    background: rgba(47, 47, 46, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.app-logo {
    display: grid;
    place-items: center;
    justify-self: center;
    min-width: 0;
    color: #ffd429;
    text-align: center;
    font-weight: 1000;
}

.app-logo-img {
    display: block;
    width: min(190px, 62vw);
    height: 48px;
    object-fit: contain;
}

.app-logo strong {
    display: block;
    color: #ffd429;
    font-size: 1.28rem;
    line-height: 1;
    font-weight: 1000;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.26);
}

.app-logo-line {
    display: block;
    width: min(112px, 100%);
    height: 2px;
    margin: 4px 0;
    background: linear-gradient(90deg, transparent, #ffd429 18%, #ffd429 82%, transparent);
}

.app-topbar-back,
.app-topbar-spacer {
    width: 38px;
    height: 38px;
}

.app-topbar-back {
    display: grid;
    place-items: center;
    justify-self: start;
    color: #ffffff;
    border-radius: 8px;
    font-size: 1.9rem;
    line-height: 1;
}

.app-topbar-back:hover,
.app-topbar-back:focus {
    color: #ffd429;
    background: rgba(255, 255, 255, 0.06);
}

.app-topbar-action {
    justify-self: end;
    max-width: 122px;
    color: #ffffff;
    text-align: right;
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1.15;
}

.app-topbar-action:hover,
.app-topbar-action:focus {
    color: #ffd429;
}

.app-topbar-action-form {
    margin: 0;
}

.desktop-nav {
    grid-column: 3;
    display: flex;
    justify-content: end;
    gap: 6px;
}

.desktop-nav a {
    color: var(--muted);
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 800;
}

.desktop-nav a.active,
.btn-soft.active {
    color: #2d1200;
    background: linear-gradient(135deg, #fff58d, var(--gold));
}

.app-main {
    position: relative;
    z-index: 1;
    width: min(1160px, 100%);
    margin: 0 auto;
    padding: 18px 14px 96px;
}

.hero-band {
    display: grid;
    gap: 16px;
    padding: 20px;
    min-height: 212px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(90deg, rgba(19, 5, 32, 0.9) 0%, rgba(19, 5, 32, 0.72) 45%, rgba(19, 5, 32, 0.35) 100%),
        url("../images/gaming-texture-light.jpg") center/cover no-repeat;
    box-shadow: var(--shadow);
}

.hero-band h1 {
    max-width: 620px;
    font-size: clamp(1.8rem, 7vw, 3.4rem);
    line-height: 0.98;
    font-weight: 1000;
}

.hero-band p {
    color: rgba(255, 249, 242, 0.82);
}

.notice-ticker {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 14px 0 0;
    padding: 10px 12px;
    color: #2d1200;
    background: linear-gradient(135deg, #fff58d, var(--gold));
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 900;
    overflow: hidden;
}

.notice-ticker span:last-child {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-strip {
    justify-content: space-between;
    flex-wrap: wrap;
}

.wallet-card {
    padding: 16px;
    margin-top: -38px;
    border-radius: 8px;
    color: #210311;
    background: linear-gradient(135deg, #fff7bc 0%, #ffc83d 44%, #ff7a21 100%);
    box-shadow: 0 16px 36px rgba(255, 122, 33, 0.28);
}

.wallet-card .eyebrow {
    color: rgba(33, 3, 17, 0.7);
}

.wallet-amount {
    font-size: clamp(1.7rem, 6vw, 2.8rem);
    font-weight: 1000;
}

.quick-actions {
    flex-wrap: wrap;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.game-card {
    position: relative;
    display: block;
    color: var(--text);
    min-height: 124px;
    padding: 16px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
        var(--panel-solid);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(12, 2, 22, 0.22);
}

.game-card::after {
    content: "";
    position: absolute;
    inset: auto -36px -42px auto;
    width: 132px;
    height: 132px;
    background: linear-gradient(135deg, var(--pink), var(--blue), var(--green));
    opacity: 0.28;
    transform: rotate(24deg);
}

.game-card.hot {
    background:
        linear-gradient(135deg, rgba(255, 47, 99, 0.88), rgba(147, 88, 255, 0.78)),
        var(--panel-solid);
}

.game-card.blue {
    background:
        linear-gradient(135deg, rgba(24, 200, 255, 0.8), rgba(52, 101, 255, 0.82)),
        var(--panel-solid);
}

.game-card.green {
    background:
        linear-gradient(135deg, rgba(32, 223, 117, 0.78), rgba(0, 149, 116, 0.86)),
        var(--panel-solid);
}

button.game-card {
    width: 100%;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.game-card strong {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 1.08rem;
    font-weight: 1000;
}

.game-card span {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 220px;
    color: rgba(255, 249, 242, 0.8);
    font-size: 0.88rem;
    font-weight: 700;
}

.mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.mini-stat {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.mini-stat strong {
    display: block;
    color: var(--gold);
    font-weight: 1000;
}

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

.choice-grid {
    display: grid;
    gap: 10px;
}

.choice-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.choice-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.choice-grid.numbers {
    grid-template-columns: repeat(5, 1fr);
}

.choice {
    min-height: 50px;
    color: var(--text);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-weight: 1000;
}

.choice:disabled {
    opacity: 0.42;
}

.color-green {
    background: linear-gradient(135deg, #20df75, #008b64);
}

.color-red {
    background: linear-gradient(135deg, #ff7047, #ff214f);
}

.color-violet {
    background: linear-gradient(135deg, #c05cff, #6e42ff);
}

.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: end;
    background: rgba(10, 0, 19, 0.68);
}

.bottom-sheet.open {
    display: flex;
}

.sheet-panel {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 18px;
    background: #230d3a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.28);
}

.bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(100%, 430px);
    min-height: 74px;
    transform: translateX(-50%);
    overflow: visible;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, rgba(59, 59, 58, 0.98), rgba(38, 38, 37, 0.98)),
        #2f2f2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -14px 28px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

.bottom-nav a {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 58px;
    padding: 4px 2px;
    color: #bfc0c2;
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 850;
    text-align: center;
}

.bottom-nav-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: currentColor;
    line-height: 1;
}

.bottom-nav-svg {
    width: 22px;
    height: 22px;
}

.bottom-nav a.active:not(.bottom-nav-center) {
    color: #f0bd45;
    background: rgba(255, 200, 61, 0.08);
}

.bottom-nav-center {
    margin-top: -30px;
    color: #ffd86b;
    font-size: 0.7rem;
    font-weight: 1000;
}

.bottom-nav-go {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    color: #ffffff;
    border: 5px solid #ffd96a;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 47%, rgba(255, 255, 255, 0.18) 0 24%, transparent 25%),
        conic-gradient(from 12deg, #fff199, #ffb522, #ff762b, #ffcc42, #fff199);
    box-shadow: 0 8px 22px rgba(255, 144, 25, 0.42);
    line-height: 1;
}

.bottom-nav-go-svg {
    width: 27px;
    height: 27px;
    stroke-width: 2.2;
}

.bottom-nav-center.active .bottom-nav-go {
    box-shadow: 0 0 0 5px rgba(255, 216, 107, 0.13), 0 8px 22px rgba(255, 144, 25, 0.48);
}

@media (min-width: 820px) {
    .app-main {
        padding-bottom: 104px;
    }
}

@media (max-width: 819px) {
    .desktop-nav {
        display: none;
    }

    .mini-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 430px) {
    .auth-shell {
        padding: 10px;
    }

    .auth-inner,
    .content-panel,
    .hero-band,
    .wallet-card {
        padding: 16px;
    }

    .choice-grid.numbers {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

body.home-screen {
    background:
        linear-gradient(180deg, rgba(13, 5, 24, 0.76), rgba(10, 4, 18, 0.98)),
        url("../images/gaming-texture-light.jpg") center top/cover fixed,
        #12051d;
}

body.home-screen .app-topbar {
    background: rgba(29, 16, 40, 0.9);
}

.home-lobby {
    width: min(100%, 430px);
    padding: 14px 12px 118px;
}

.home-hero {
    position: relative;
    min-height: 218px;
    overflow: hidden;
    border-radius: 8px;
    background: #17091f;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.home-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 3, 16, 0.95) 0%, rgba(8, 3, 16, 0.7) 44%, rgba(8, 3, 16, 0.12) 100%),
        linear-gradient(180deg, transparent 50%, rgba(8, 3, 16, 0.72) 100%);
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 9px;
    min-height: 218px;
    width: min(72%, 285px);
    padding: 18px;
}

.home-hero-copy p {
    margin: 0;
    color: #ffd86b;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 1000;
}

.home-hero-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2.42rem;
    line-height: 0.92;
    font-weight: 1000;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.home-hero-logo {
    display: block;
    width: min(100%, 260px);
    height: auto;
    margin: -8px 0 -2px;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.38));
}

.home-hero-copy span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    font-weight: 750;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 4px;
}

.home-hero-actions a {
    min-height: 36px;
    padding: 9px 13px;
    font-size: 0.82rem;
}

.home-notice {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding: 9px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 216, 107, 0.28);
    border-radius: 8px;
    background: rgba(20, 10, 31, 0.82);
}

.home-notice > span {
    display: grid;
    place-items: center;
    height: 24px;
    color: #3b2200;
    border-radius: 6px;
    background: linear-gradient(135deg, #fff4a5, #ffc43d);
    font-size: 0.75rem;
    font-weight: 1000;
}

.home-notice div {
    min-width: 0;
    overflow: hidden;
}

.home-notice p {
    width: max-content;
    min-width: 100%;
    margin: 0;
    color: #f8efe2;
    font-size: 0.78rem;
    font-weight: 800;
    animation: homeTicker 14s linear infinite;
}

@keyframes homeTicker {
    from {
        transform: translateX(100%);
    }

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

.home-wallet {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    padding: 15px;
    border-radius: 8px;
    color: #2b1700;
    background:
        linear-gradient(135deg, rgba(255, 246, 176, 0.93), rgba(255, 194, 50, 0.9) 50%, rgba(245, 121, 22, 0.9)),
        url("../images/ui/timer-card.png") center/cover no-repeat,
        #ffc43d;
    box-shadow: 0 13px 26px rgba(255, 160, 31, 0.2);
}

.home-wallet span {
    display: block;
    font-size: 0.76rem;
    font-weight: 900;
    opacity: 0.75;
}

.home-wallet strong {
    display: block;
    font-size: 1.78rem;
    line-height: 1;
    font-weight: 1000;
}

.home-wallet button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #2b1700;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.36);
    font-size: 1.1rem;
    font-weight: 1000;
}

.home-wallet-svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.home-quick-item {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 82px;
    padding: 10px 6px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
        rgba(38, 25, 54, 0.84);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.22);
}

.quick-svg-badge {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #2b1700;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 16px rgba(0, 0, 0, 0.22);
}

.quick-svg-badge.gold {
    background: linear-gradient(135deg, #fff2a7, #e2a43d);
}

.quick-svg-badge.blue {
    color: #eaf9ff;
    background: linear-gradient(135deg, #289dc2, #11526d);
}

.quick-svg-badge.green {
    color: #eafff3;
    background: linear-gradient(135deg, #26c985, #116846);
}

.quick-svg-badge.violet {
    color: #ffffff;
    background: linear-gradient(135deg, #9b61ff, #4d267d);
}

.home-quick-svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-quick-item strong {
    color: #f6eedf;
    font-size: 0.76rem;
    font-weight: 900;
}

.home-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.home-balance-grid div {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(23, 16, 35, 0.8);
}

.home-balance-grid span {
    display: block;
    color: #cfc5d9;
    font-size: 0.68rem;
    font-weight: 850;
}

.home-balance-grid strong {
    display: block;
    overflow: hidden;
    color: #ffd86b;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 1000;
}

.home-section {
    margin-top: 18px;
}

.home-section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    margin-bottom: 10px;
}

.home-section-title span {
    display: block;
    color: #ffd86b;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 1000;
}

.home-section-title h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 1000;
}

.home-section-title a {
    color: #ffd86b;
    font-size: 0.82rem;
    font-weight: 900;
}

.home-game-feature {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 54px;
    gap: 12px;
    align-items: center;
    min-height: 128px;
    padding: 10px;
    overflow: hidden;
    color: #ffffff;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(27, 18, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.home-game-feature img {
    width: 112px;
    height: 108px;
    object-fit: cover;
    border-radius: 8px;
}

.home-game-feature div {
    min-width: 0;
}

.home-game-feature span {
    display: block;
    color: #ffd86b;
    font-size: 0.74rem;
    font-weight: 1000;
}

.home-game-feature strong {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.1;
    font-weight: 1000;
}

.home-game-feature small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    line-height: 1.25;
    font-weight: 750;
}

.home-game-feature b {
    display: grid;
    place-items: center;
    height: 34px;
    color: #2b1700;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff4a5, #ffc43d);
    font-size: 0.82rem;
}

.home-mini-games {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.home-mini-games a {
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 84px;
    color: #ffffff;
    border-radius: 8px;
    background: rgba(20, 14, 31, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-mini-games img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.home-mini-games span {
    font-size: 0.74rem;
    font-weight: 900;
}

.home-lottery-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.home-lottery-cards a {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 132px;
    overflow: hidden;
    padding: 11px;
    color: #ffffff;
    border-radius: 8px;
    background: #17101f;
}

.home-lottery-cards a::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.05);
}

.home-lottery-cards a.trx::before {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.68)),
        url("../images/home/game-wingo.jpg");
}

.home-lottery-cards a.moto::before {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.68)),
        url("../images/home/home-hero.jpg");
}

.home-lottery-cards span,
.home-lottery-cards strong {
    position: relative;
    z-index: 1;
}

.home-lottery-cards span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    color: #ffffff;
    border: 3px solid rgba(255, 244, 175, 0.9);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffffff, #ff4f58 42%, #aa091b 100%);
    font-size: 1.35rem;
    font-weight: 1000;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.home-lottery-cards .moto span {
    margin-left: auto;
    background: radial-gradient(circle at 32% 28%, #ffffff, #28d676 42%, #08713f 100%);
}

.home-lottery-cards strong {
    color: #ffd86b;
    font-size: 0.82rem;
    line-height: 1.1;
    font-weight: 1000;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.44);
}

.home-title-accent {
    position: relative;
    padding-left: 10px;
}

.home-title-accent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 4px;
    width: 4px;
    border-radius: 6px;
    background: var(--gold);
}

.home-winning-ticker {
    height: 276px;
    overflow: hidden;
}

.home-winning-track {
    display: grid;
    gap: 6px;
}

.home-winning-row {
    display: grid;
    grid-template-columns: 44px minmax(82px, 1fr) 72px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 62px;
    padding: 8px 10px;
    color: #ffffff;
    border-radius: 6px;
    background: #343433;
}

.home-winner-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 1000;
}

.home-winner-avatar.avatar-1 { background: linear-gradient(135deg, #6c9dff, #2b2c67); }
.home-winner-avatar.avatar-2 { background: linear-gradient(135deg, #ff6f9c, #64285c); }
.home-winner-avatar.avatar-3 { background: linear-gradient(135deg, #ffd6a8, #5d334f); }
.home-winner-avatar.avatar-4 { background: linear-gradient(135deg, #f8c9d7, #5d405f); }
.home-winner-avatar.avatar-5 { background: linear-gradient(135deg, #c985ff, #34265f); }

.home-winning-row > strong {
    min-width: 0;
    overflow: hidden;
    color: #d9d5da;
    font-size: 0.74rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-winning-row img {
    width: 72px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
}

.home-winning-row b,
.home-winning-row small {
    display: block;
    min-width: 0;
}

.home-winning-row b {
    overflow: hidden;
    color: #ffe69a;
    font-size: 0.8rem;
    font-weight: 1000;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-winning-row small {
    margin-top: 3px;
    color: #b9b4bc;
    font-size: 0.68rem;
    font-weight: 850;
}

.home-image-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-image-cards a {
    position: relative;
    min-height: 176px;
    overflow: hidden;
    color: #ffffff;
    border-radius: 8px;
    background: #140e21;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.home-image-cards img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-image-cards a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.home-image-cards div {
    position: absolute;
    z-index: 1;
    left: 12px;
    right: 12px;
    bottom: 12px;
}

.home-image-cards strong,
.home-image-cards span {
    display: block;
}

.home-image-cards strong {
    font-size: 1rem;
    font-weight: 1000;
}

.home-image-cards span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.76rem;
    font-weight: 800;
}

.home-service-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.home-service-band a {
    display: grid;
    gap: 4px;
    min-height: 76px;
    padding: 11px 9px;
    color: #ffffff;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(22, 15, 34, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-service-band span {
    color: #cfc5d9;
    font-size: 0.67rem;
    font-weight: 850;
}

.home-service-band strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffd86b;
    font-size: 0.92rem;
    font-weight: 1000;
}

@media (min-width: 820px) {
    .home-lobby {
        padding-bottom: 118px;
    }
}

@media (max-width: 390px) {
    .home-hero-copy {
        width: 78%;
    }

    .home-quick-grid,
    .home-balance-grid {
        gap: 7px;
    }

    .home-game-feature {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .home-game-feature img {
        width: 96px;
        height: 96px;
    }

    .home-game-feature b {
        grid-column: 1 / -1;
    }
}

body.wingo-screen {
    background:
        linear-gradient(135deg, rgba(255, 47, 99, 0.18), transparent 32%),
        linear-gradient(225deg, rgba(24, 200, 255, 0.16), transparent 30%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    color: #ffffff;
}

body.wingo-screen::before {
    display: none;
}

.wingo-phone {
    width: min(100%, 400px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 12px 24px;
    background:
        linear-gradient(180deg, rgba(48, 48, 47, 0.88), rgba(37, 37, 37, 0.94)),
        url("../images/ui/phone-texture.png") center top/cover repeat-y,
        #30302f;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 18px 60px rgba(0, 0, 0, 0.3);
}

.wingo-topbar {
    height: 68px;
    display: grid;
    grid-template-columns: 46px 1fr 92px;
    align-items: center;
    gap: 8px;
    margin: 0 -12px;
    padding: 0 12px;
    background:
        linear-gradient(180deg, rgba(68, 68, 66, 0.95), rgba(49, 49, 48, 0.96)),
        url("../images/ui/phone-texture.png") center top/cover no-repeat,
        #3a3a39;
}

.wingo-icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    background: transparent;
    line-height: 1;
}

.wingo-icon-btn.small {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.wingo-icon-svg,
.wingo-small-svg,
.wingo-refresh-svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wingo-icon-svg {
    width: 26px;
    height: 26px;
}

.wingo-small-svg {
    width: 18px;
    height: 18px;
}

.wingo-actions {
    display: flex;
    justify-content: end;
    gap: 8px;
}

.wingo-brand {
    display: grid;
    place-items: center;
    color: #ffd429;
    text-align: center;
}

.wingo-brand-logo {
    display: block;
    width: min(156px, 42vw);
    height: 42px;
    object-fit: contain;
}

.wingo-brand strong {
    display: block;
    font-size: 1.28rem;
    font-weight: 1000;
    line-height: 1;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.24);
}

.wingo-brand-line {
    width: 110px;
    height: 2px;
    margin: 4px 0;
    background: linear-gradient(90deg, transparent, #ffd429 20%, #ffd429 80%, transparent);
}

.wingo-balance-card {
    position: relative;
    overflow: hidden;
    margin: 24px 0 12px;
    padding: 18px 22px;
    min-height: 146px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(86, 86, 95, 0.86) 0%, rgba(70, 70, 68, 0.9) 52%, rgba(66, 66, 64, 0.92) 100%),
        url("../images/ui/wallet-card.png") center/cover no-repeat,
        #484847;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.balance-wave {
    position: absolute;
    inset: 0 auto 0 0;
    width: 62%;
    background: linear-gradient(135deg, rgba(101, 93, 145, 0.62), rgba(101, 93, 145, 0.08));
    clip-path: ellipse(76% 70% at 0% 52%);
}

.balance-refresh {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.balance-refresh.loading .wingo-refresh-svg {
    animation: wingoRefreshSpin 0.65s linear infinite;
}

.wingo-refresh-svg {
    width: 18px;
    height: 18px;
}

.balance-main-row,
.balance-caption,
.balance-buttons {
    position: relative;
    z-index: 1;
}

.balance-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.balance-main {
    display: block;
    min-width: 0;
    text-align: right;
    font-size: 1.28rem;
    font-weight: 1000;
}

@keyframes wingoRefreshSpin {
    to { transform: rotate(360deg); }
}

.balance-caption {
    display: block;
    margin-top: 8px;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 800;
}

.balance-caption::before {
    content: "";
    display: inline-block;
    width: 17px;
    height: 14px;
    margin-right: 7px;
    vertical-align: -2px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ffd86e, #c99626);
}

.balance-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    margin-top: 22px;
}

.balance-buttons a {
    display: grid;
    place-items: center;
    min-height: 38px;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 1000;
}

.balance-buttons a:first-child {
    background: #ec3438;
}

.balance-buttons a:last-child {
    background: #17bb66;
}

.wingo-notice {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 78px;
    align-items: center;
    gap: 8px;
    margin: 10px 2px 12px;
    color: #f7f2e8;
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1.35;
}

.notice-speaker {
    color: #f4c75a;
    font-size: 1.35rem;
    letter-spacing: -5px;
}

.wingo-notice a {
    display: grid;
    place-items: center;
    height: 24px;
    color: #593a00;
    border-radius: 5px;
    background: linear-gradient(180deg, #ffe58d, #d7a33e);
    font-weight: 900;
}

.wingo-period-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
    min-height: 96px;
    border-radius: 8px;
    background: #4a4a49;
}

.period-tab {
    display: grid;
    place-items: center;
    gap: 3px;
    color: #d7d7d7;
    background: transparent;
    border: 0;
    padding: 12px 4px 10px;
    font-size: 0.8rem;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, filter 180ms ease;
}

.period-tab.active {
    color: #9b5e00;
    background: linear-gradient(180deg, #ffefaf, #dfad47);
}

.period-tab:active {
    transform: scale(0.98);
}

.period-tab strong,
.period-tab small {
    display: block;
    line-height: 1.1;
}

.period-tab strong {
    font-weight: 850;
}

.period-tab small {
    font-size: 0.78rem;
}

.period-medal {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: url("../images/ui/medal-off.png") center/contain no-repeat;
    box-shadow: inset 0 -5px 9px rgba(0, 0, 0, 0.18);
    transition: transform 220ms ease, filter 220ms ease;
}

.period-tab.active .period-medal {
    background: url("../images/ui/medal-active.png") center/contain no-repeat;
    transform: translateY(-1px) scale(1.04);
}

.wingo-period-tabs.is-loading .period-tab.active .period-medal {
    animation: wingoMedalPulse 720ms ease-in-out infinite alternate;
}

.wingo-round-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 106px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 8px;
    color: #8d5300;
    background:
        linear-gradient(135deg, rgba(255, 240, 169, 0.9), rgba(231, 184, 86, 0.93)),
        url("../images/ui/timer-card.png") center/cover no-repeat,
        #e7b856;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 16px rgba(0, 0, 0, 0.14);
    transition: opacity 180ms ease, transform 180ms ease;
}

.wingo-round-card::before,
.wingo-round-card::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: #30302f;
}

.wingo-round-card::before {
    top: -7px;
}

.wingo-round-card::after {
    bottom: -7px;
}

.round-left,
.round-right {
    position: relative;
    z-index: 1;
    padding: 10px 12px;
}

.round-left {
    border-right: 1px dashed rgba(137, 87, 9, 0.35);
}

.how-play {
    min-width: 160px;
    height: 25px;
    color: #8b5200;
    border: 1px solid #8b5200;
    border-radius: 8px;
    background: transparent;
    font-size: 0.78rem;
}

.round-left small {
    display: block;
    margin: 8px 0 8px 6px;
    font-weight: 850;
}

.last-balls {
    display: flex;
    gap: 7px;
    min-height: 25px;
}

.round-right {
    display: grid;
    justify-items: end;
    align-content: center;
    gap: 8px;
    font-weight: 900;
}

.round-right span {
    font-size: 0.86rem;
}

.round-right > strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
}

.timer-boxes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.timer-boxes b {
    display: grid;
    place-items: center;
    width: 23px;
    height: 32px;
    color: #ffffff;
    background: #232833;
    border-radius: 2px;
    font-size: 1.15rem;
}

.timer-boxes em {
    color: #232833;
    font-style: normal;
    font-weight: 1000;
}

.wingo-board {
    position: relative;
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(40, 40, 40, 0.9), rgba(25, 25, 25, 0.96)),
        url("../images/ui/phone-texture.png") center/cover no-repeat,
        #222222;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.color-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pick-btn {
    height: 38px;
    color: #ffffff;
    border: 0;
    border-radius: 6px 6px 0 0;
    font-size: 1rem;
    font-weight: 800;
}

.pick-green {
    background: #16bc67;
}

.pick-violet {
    background: #9947dc;
}

.pick-red {
    background: #db3739;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px 13px;
    margin-top: 14px;
    padding: 8px 7px 10px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(26, 26, 26, 0.94), rgba(13, 13, 13, 0.96)),
        url("../images/ui/phone-texture.png") center/cover no-repeat,
        #191919;
}

.number-pick {
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.number-ball {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ffffff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 1.75rem;
    font-weight: 1000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 4px rgba(0, 0, 0, 0.18);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.24);
}

.number-ball::before {
    display: none;
}

.number-ball::after {
    display: none;
}

.number-ball {
    isolation: isolate;
}

.number-ball.small {
    width: 25px;
    height: 25px;
    font-size: 0.82rem;
    text-shadow: none;
}

.number-ball.small::after {
    border-width: 2px;
}

.number-ball.small::before {
    inset: 3px;
}

.ball-green {
    color: #2fbe76;
    background-image: url("../images/ui/ball-green.png");
}

.ball-red {
    color: #ef4650;
    background-image: url("../images/ui/ball-red.png");
}

.ball-violet {
    color: #9854ec;
    background-image: url("../images/ui/ball-violet.png");
}

.num-ball-0 {
    background-image: url("../images/ui/number/ball-0.png");
}

.num-ball-1 {
    background-image: url("../images/ui/number/ball-1.png");
}

.num-ball-2 {
    background-image: url("../images/ui/number/ball-2.png");
}

.num-ball-3 {
    background-image: url("../images/ui/number/ball-3.png");
}

.num-ball-4 {
    background-image: url("../images/ui/number/ball-4.png");
}

.num-ball-5 {
    background-image: url("../images/ui/number/ball-5.png");
}

.num-ball-6 {
    background-image: url("../images/ui/number/ball-6.png");
}

.num-ball-7 {
    background-image: url("../images/ui/number/ball-7.png");
}

.num-ball-8 {
    background-image: url("../images/ui/number/ball-8.png");
}

.num-ball-9 {
    background-image: url("../images/ui/number/ball-9.png");
}

.number-ball[class*="num-ball-"] {
    color: transparent;
    text-shadow: none;
    box-shadow: none;
}

.number-ball > *,
.number-ball {
    z-index: 1;
}

.multiplier-row {
    display: grid;
    grid-template-columns: 1.45fr repeat(6, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.multi-btn {
    height: 36px;
    color: #cfcfcf;
    border: 0;
    border-radius: 8px;
    background: #151515;
    font-weight: 800;
    font-size: 0.82rem;
}

.multi-btn.random {
    color: #ff4a4f;
    background: transparent;
    border: 1px solid #ff4a4f;
}

.multi-btn.active {
    color: #ffffff;
    background: #17bf6c;
}

.big-small-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin: 12px 12px 0;
    border-radius: 8px;
}

.big-small-row button {
    height: 40px;
    color: #ffffff;
    border: 0;
    font-size: 1rem;
    font-weight: 850;
}

.big-small-row button:first-child {
    background: #e99a34;
}

.big-small-row button:last-child {
    background: #5b93df;
}

.history-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.history-switch button {
    height: 40px;
    color: #bdbdbd;
    border: 0;
    border-radius: 8px;
    background: #242424;
    font-weight: 850;
}

.history-switch button.active {
    color: #9a5e00;
    background: linear-gradient(135deg, #fff0a3, #dfae49);
}

.history-switch button:hover,
.period-tab:hover,
.pick-btn:hover,
.multi-btn:hover,
.big-small-row button:hover {
    filter: brightness(1.08);
}

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

.result-panel {
    margin-top: 14px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(42, 42, 42, 0.95), rgba(29, 29, 29, 0.98)),
        url("../images/ui/phone-texture.png") center top/cover no-repeat,
        #292929;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: opacity 180ms ease, transform 180ms ease;
}

.wingo-switching .wingo-round-card,
.wingo-switching .history-panel.active,
.wingo-switching .last-balls {
    opacity: 0.72;
}

.wingo-switching .wingo-round-card {
    transform: translateY(2px);
}

.wingo-switching .history-panel.active {
    transform: translateY(3px);
}

.result-panel table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.result-panel thead {
    background: #413e55;
}

.result-panel th,
.result-panel td {
    height: 39px;
    padding: 7px 6px;
    color: #ffffff;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 850;
}

@keyframes wingoMedalPulse {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.25);
    }
}

.result-panel th {
    color: #fff9e5;
    font-weight: 750;
}

.result-panel td:first-child {
    font-family: Arial, sans-serif;
    font-weight: 850;
    letter-spacing: 0;
}

.result-panel th:first-child,
.result-panel td:first-child {
    width: 48%;
}

.result-panel th:nth-child(2),
.result-panel td:nth-child(2) {
    width: 16%;
}

.result-panel th:nth-child(3),
.result-panel td:nth-child(3) {
    width: 20%;
}

.result-panel th:nth-child(4),
.result-panel td:nth-child(4) {
    width: 16%;
}

.result-panel tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.015);
}

.result-number {
    display: inline-block;
    min-width: 24px;
    font-size: 1.62rem;
    line-height: 1;
    font-weight: 1000;
    text-align: center;
}

.result-green {
    color: #31c879;
}

.result-red {
    color: #ff4e55;
}

.result-violet {
    color: #b05cff;
}

.result-green-violet,
.result-red-violet {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.result-green-violet {
    background-image: linear-gradient(180deg, #31c879 0 58%, #dd55ed 59% 100%);
}

.result-red-violet {
    background-image: linear-gradient(180deg, #ff4e55 0 58%, #b05cff 59% 100%);
}

.history-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    min-height: 72px;
    margin-top: 18px;
    padding: 15px 70px;
    background: #2d2d2c;
}

.history-pager button {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    color: #7a7a7a;
    border: 0;
    border-radius: 5px;
    background: #555554;
    line-height: 1;
}

.history-pager button:not(:disabled) {
    color: #6a4300;
    background: #e7ad36;
}

.history-nav-svg,
.entry-back-svg,
.result-close-svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.history-nav-svg {
    width: 22px;
    height: 22px;
}

.history-nav-svg.next {
    transform: rotate(180deg);
}

.history-pager span {
    color: #cfd4d6;
    font-size: 0.82rem;
    font-weight: 850;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
}

.dot-green {
    background: #31c879;
}

.dot-red {
    background: #ff4e55;
}

.dot-violet {
    background: #d552ff;
}

.empty-result {
    color: #d7d7d7;
    height: 72px;
    font-weight: 500;
}

.chart-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.96), rgba(29, 29, 29, 0.98));
}

.chart-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #f4d67d;
    font-size: 0.76rem;
    font-weight: 700;
}

.chart-list {
    display: grid;
    gap: 8px;
}

.chart-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 22px 42px;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    color: #eeeeee;
    font-size: 0.76rem;
}

.chart-row strong {
    color: #ffffff;
    text-align: right;
    font-weight: 650;
}

.chart-track {
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.chart-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--gold));
}

.chart-live {
    color: #7ce8ab;
    font-size: 0.64rem;
    font-weight: 650;
}

.number-ball.tiny {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    text-shadow: none;
}

.my-result-panel th:first-child,
.my-result-panel td:first-child {
    width: 31%;
}

.my-result-panel th:nth-child(2),
.my-result-panel td:nth-child(2) {
    width: 27%;
}

.my-result-panel th:nth-child(3),
.my-result-panel td:nth-child(3) {
    width: 19%;
}

.my-result-panel th:nth-child(4),
.my-result-panel td:nth-child(4) {
    width: 23%;
}

.entry-status {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 650;
}

.entry-status.win,
.entry-status.won {
    color: #66e6a0;
}

.entry-status.lose,
.entry-status.lost {
    color: #ff7278;
}

.entry-status.pending {
    color: #f5d271;
}

.bet-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    color: #cfcfcf;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
}

.bet-total-row strong {
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 750;
}

.pick-btn:disabled,
.number-pick:disabled,
.big-small-row button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    filter: grayscale(0.35);
}

.wingo-screen .bottom-sheet {
    left: 50%;
    width: min(100%, 400px);
    transform: translateX(-50%);
}

.wingo-screen .sheet-panel {
    background: #2b2b2b;
}

.wingo-screen .bet-panel {
    --bet-accent: #5b9dea;
    --bet-accent-strong: #4f8edb;
    position: relative;
    overflow: hidden;
    padding: 0;
    color: #ffffff;
    border: 0;
    border-radius: 8px 8px 0 0;
    background: #252524;
}

.bet-sheet-head {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 106px;
    padding: 18px 50px 34px;
    background: linear-gradient(180deg, #78b8fb, #4f8edb);
    clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
}

.bet-panel.bet-theme-green {
    --bet-accent: #18c76f;
    --bet-accent-strong: #0cae5d;
}

.bet-panel.bet-theme-green .bet-sheet-head {
    background: linear-gradient(180deg, #3ee48f, #0cae5d);
}

.bet-panel.bet-theme-red {
    --bet-accent: #f14a4f;
    --bet-accent-strong: #db3037;
}

.bet-panel.bet-theme-red .bet-sheet-head {
    background: linear-gradient(180deg, #ff7675, #db3037);
}

.bet-panel.bet-theme-violet {
    --bet-accent: #9d49e7;
    --bet-accent-strong: #7f35c9;
}

.bet-panel.bet-theme-violet .bet-sheet-head {
    background: linear-gradient(135deg, #7f35c9 0%, #b948e8 48%, #f34d8d 100%);
}

.bet-panel.bet-theme-big {
    --bet-accent: #efa034;
    --bet-accent-strong: #df8a22;
}

.bet-panel.bet-theme-big .bet-sheet-head {
    background: linear-gradient(180deg, #ffbd57, #df8a22);
}

.bet-panel.bet-theme-small {
    --bet-accent: #5b9dea;
    --bet-accent-strong: #4f8edb;
}

.bet-panel.bet-theme-small .bet-sheet-head {
    background: linear-gradient(180deg, #78b8fb, #4f8edb);
}

.bet-sheet-head small {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 850;
}

.bet-sheet-head h2 {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 28px;
    margin: 0;
    color: #090909;
    border-radius: 5px;
    background: #ffffff;
    font-size: 0.84rem;
    font-weight: 500;
}

.bet-sheet-body {
    display: grid;
    gap: 12px;
    padding: 28px 14px 14px;
}

.bet-control-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.bet-control-row > span {
    font-size: 0.92rem;
    font-weight: 850;
}

.bet-panel .quick-actions {
    gap: 7px;
}

.bet-panel .btn-soft {
    min-width: 46px;
    min-height: 29px;
    padding: 6px 10px;
    color: #ffffff;
    border: 0;
    border-radius: 5px;
    background: #4a4a49;
    font-size: 0.76rem;
    font-weight: 850;
    box-shadow: none;
}

.bet-panel .btn-soft.active,
.quantity-stepper .btn-soft {
    background: var(--bet-accent-strong);
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 30px minmax(0, 84px) 30px;
    justify-content: end;
    gap: 12px;
}

.quantity-stepper input {
    height: 30px;
    padding: 4px 8px;
    color: #ffffff;
    border: 1px solid #464646;
    border-radius: 0;
    background: #252524;
    text-align: center;
}

.bet-panel #betAmount {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.bet-qty-actions {
    justify-content: end;
}

.agree-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    font-size: 0.78rem;
}

.agree-row input {
    width: 20px;
    height: 20px;
    accent-color: #e2ad43;
}

.agree-row b {
    color: #ff4040;
    font-weight: 900;
}

.bet-action-row {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    margin-top: 2px;
}

.bet-action-row .btn-soft,
.bet-action-row .btn-primary {
    display: grid;
    place-items: center;
    min-height: 38px;
    border-radius: 0;
    box-shadow: none;
}

.bet-action-row .btn-soft {
    background: #5c5c5b;
}

.bet-action-row .btn-primary {
    color: #ffffff;
    background: var(--bet-accent-strong);
    font-size: 0.8rem;
}

.bet-action-row .btn-primary span {
    font-weight: 950;
}

.bet-panel .form-message {
    min-height: 18px;
    font-size: 0.74rem;
}

.lock-countdown {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.68);
    backdrop-filter: blur(1px);
}

.lock-countdown[hidden] {
    display: none;
}

.lock-countdown span {
    display: grid;
    place-items: center;
    width: 112px;
    height: 172px;
    color: #efb944;
    border-radius: 8px;
    background: #4a4a49;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
    font-size: 6.7rem;
    font-weight: 500;
    line-height: 1;
}

.my-history-panel {
    margin-top: 14px;
}

.my-history-list {
    display: grid;
    gap: 10px;
}

.my-history-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 102px;
    padding: 34px 12px 12px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: #2c2c2b;
    text-align: left;
}

.history-selection {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 7px;
    color: #ffffff;
    border-radius: 8px;
    background: linear-gradient(135deg, #f7aa38, #e68120);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: capitalize;
}

.history-entry-main strong,
.history-entry-main small,
.history-entry-result b,
.history-entry-result small {
    display: block;
}

.history-entry-main strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 600;
    text-overflow: ellipsis;
}

.history-entry-main small {
    margin-top: 5px;
    color: #a9a9a9;
    font-size: 0.64rem;
}

.history-entry-result {
    min-width: 68px;
    text-align: right;
}

.history-entry-result small {
    margin-top: 6px;
    font-size: 0.67rem;
}

.history-entry-result small.win,
.entry-detail-summary .win,
.entry-detail-list dd.win {
    color: #47d68a;
}

.history-entry-result small.lose,
.entry-detail-summary .lose,
.entry-detail-list dd.lose {
    color: #ff4e55;
}

.history-entry-result small.pending,
.entry-detail-summary .pending,
.entry-detail-list dd.pending {
    color: #f4c75a;
}

.history-detail-link {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 5px 9px;
    color: #efbd43;
    border: 1px solid #c99218;
    border-radius: 14px;
    font-size: 0.62rem;
}

.game-result-modal,
.entry-detail-modal {
    position: fixed;
    inset: 0 auto 0 50%;
    z-index: 80;
    display: grid;
    width: min(100%, 400px);
    transform: translateX(-50%);
    background: rgba(8, 8, 8, 0.74);
}

.game-result-modal {
    place-items: center;
    padding: 42px 18px 18px;
}

.game-result-modal[hidden],
.entry-detail-modal[hidden] {
    display: none;
}

.game-result-card {
    position: relative;
    width: min(82vw, 326px);
    min-height: 0;
    aspect-ratio: 1186 / 1624;
    overflow: visible;
    padding: 0;
    color: #ffffff;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.result-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.game-result-card > * {
    position: relative;
    z-index: 1;
}

.game-result-card.win {
    color: #ffffff;
}

.game-result-card.lose {
    min-height: 0;
    color: #4c6383;
}

.result-modal-close {
    position: absolute;
    top: -15px;
    right: 7px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    background: rgba(22, 24, 28, 0.5);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
    line-height: 1;
}

.result-close-svg {
    width: 20px;
    height: 20px;
}

.game-result-card h2 {
    position: absolute;
    top: 29.5%;
    left: 10%;
    right: 10%;
    z-index: 2;
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.15rem, 5vw, 1.48rem);
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 8px rgba(190, 50, 25, 0.24);
}

.game-result-card.lose h2 {
    top: 30%;
    color: #48617f;
    text-shadow: none;
}

.result-outcome-wrap {
    position: absolute;
    top: 40.2%;
    left: 8.5%;
    right: 8.5%;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: auto;
    font-size: 0.68rem;
    font-weight: 800;
}

.game-result-card.lose .result-outcome-wrap {
    top: 40.6%;
    color: #6682a2;
}

.result-outcome {
    display: flex;
    gap: 6px;
}

.result-outcome span {
    min-width: 42px;
    padding: 7px 10px;
    color: #ffffff;
    border-radius: 13px;
    background: rgba(255, 67, 86, 0.78);
    font-size: 0.68rem;
    font-weight: 850;
    text-align: center;
    text-transform: uppercase;
}

.result-outcome span.result-chip-green {
    background: #38c77a;
}

.result-outcome span.result-chip-red {
    background: #ff4d5d;
}

.result-outcome span.result-chip-violet {
    background: linear-gradient(135deg, #9b59ff 0%, #d94ee9 100%);
}

.result-outcome span.result-chip-green-violet {
    background: linear-gradient(135deg, #38c77a 0 48%, #ce55e9 52% 100%);
}

.result-outcome span.result-chip-red-violet {
    background: linear-gradient(135deg, #ff4d5d 0 48%, #ce55e9 52% 100%);
}

.game-result-card.lose .result-outcome span {
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(72, 97, 127, 0.15);
}

.result-ticket {
    position: absolute;
    top: 61.8%;
    left: 14.5%;
    right: 14.5%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 12.8%;
    padding: 6px 8px 4px;
    color: #ec4058;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.result-ticket::before {
    display: none;
}

.game-result-card.lose .result-ticket {
    top: 61.8%;
    color: #547399;
}

.result-amount-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.result-payout {
    margin-top: 6px;
    font-size: 1.72rem;
    font-weight: 1000;
    line-height: 1;
}

.result-ticket small {
    display: block;
    width: 100%;
    margin-top: 5px;
    color: #787d8a;
    font-size: 0.62rem;
    font-weight: 750;
    text-align: center;
    line-height: 1.18;
    white-space: nowrap;
}

.result-ticket .result-mode-line {
    margin-top: 7px;
    color: #696d78;
    font-size: 0.68rem;
    font-weight: 850;
}

.result-auto-close {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 9.2%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}

.result-auto-close b {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.result-auto-close input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.result-auto-close em {
    min-width: 10px;
    color: #ffe16a;
    font-style: normal;
    text-align: center;
}

.result-auto-close i {
    font-style: normal;
}

.result-auto-close em.tick {
    animation: resultSecondTick 0.25s ease;
}

.result-auto-close span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.result-auto-close span::before {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.result-auto-close input:not(:checked) + span::before {
    width: 10px;
    height: 10px;
    border: 0;
    background:
        linear-gradient(45deg, transparent 43%, #ffffff 44% 56%, transparent 57%),
        linear-gradient(-45deg, transparent 43%, #ffffff 44% 56%, transparent 57%);
    transform: none;
}

.result-auto-close input:not(:checked) ~ b {
    opacity: 0.8;
}

.result-auto-close input:not(:checked) ~ b em {
    color: #ffffff;
}

@keyframes resultSecondTick {
    0% { transform: scale(1); }
    45% { transform: scale(1.28); }
    100% { transform: scale(1); }
}

.wallet-updated {
    animation: walletPulse 0.55s ease;
}

@keyframes walletPulse {
    0% { transform: scale(1); color: #ffffff; }
    45% { transform: scale(1.08); color: #ffe58d; }
    100% { transform: scale(1); color: #ffffff; }
}

.entry-detail-modal {
    overflow-y: auto;
    background: #20201f;
}

.entry-detail-card {
    min-height: 100%;
    padding: 0 12px 28px;
}

.entry-detail-card > header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 9px;
    min-height: 64px;
    margin: 0 -12px 14px;
    padding: 7px 12px;
    background: #333332;
}

.entry-detail-card > header button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.entry-back-svg {
    width: 22px;
    height: 22px;
}

.entry-detail-card > header span,
.entry-detail-card > header h2 {
    display: block;
    margin: 0;
}

.entry-detail-card > header span {
    color: #e7bd51;
    font-size: 0.62rem;
}

.entry-detail-card > header h2 {
    color: #ffffff;
    font-size: 1rem;
}

.entry-detail-summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 94px;
    padding: 13px;
    border-radius: 8px;
    background: #2c2c2b;
}

.entry-detail-summary > div:last-child {
    text-align: right;
}

.entry-detail-summary strong,
.entry-detail-summary small {
    display: block;
}

.entry-detail-summary strong {
    color: #ffffff;
    font-size: 0.76rem;
}

.entry-detail-summary small {
    margin-top: 5px;
    color: #aaa4ae;
    font-size: 0.63rem;
}

.entry-detail-card h3 {
    margin: 18px 0 9px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 650;
}

.entry-detail-list {
    display: grid;
    gap: 7px;
    margin: 0;
}

.entry-detail-list > div {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 8px;
    min-height: 34px;
    padding: 8px 9px;
    border-radius: 5px;
    background: #454544;
}

.entry-detail-list dt,
.entry-detail-list dd {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.entry-detail-list dt {
    color: #ffffff;
}

.entry-detail-list dd {
    color: #d5d0d8;
    text-align: right;
}

.entry-detail-list .result-number {
    margin-right: 3px;
    font-size: 1rem;
}

.detail-color-green { color: #43d68a; }
.detail-color-red { color: #ff545c; }
.detail-color-violet { color: #be70ff; }

@media (max-width: 420px) {
    .wingo-phone {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .wingo-topbar {
        margin-left: -10px;
        margin-right: -10px;
    }

    .number-grid {
        gap: 10px 8px;
    }

    .number-ball {
        width: 50px;
        height: 50px;
    }

    .multiplier-row {
        gap: 6px;
    }

    .multi-btn {
        font-size: 0.76rem;
    }
}

body.account-screen {
    background:
        linear-gradient(135deg, rgba(255, 47, 99, 0.18), transparent 32%),
        linear-gradient(225deg, rgba(24, 200, 255, 0.16), transparent 30%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
}

.account-page {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    min-height: calc(100vh - 68px);
    margin: 0 auto;
    padding: 0 12px 120px;
    background: rgba(24, 18, 28, 0.42);
}

.account-hero {
    min-height: 204px;
    margin: 0 -12px;
    padding: 28px 18px 80px;
    border-radius: 0 0 24px 24px;
    background:
        linear-gradient(135deg, rgba(255, 247, 188, 0.95), rgba(255, 200, 61, 0.9) 52%, rgba(255, 138, 0, 0.9)),
        url("../images/gaming-texture-light.jpg") center/cover no-repeat;
    box-shadow: 0 18px 34px rgba(255, 138, 0, 0.18);
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #2d1200;
}

.account-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: #ffffff;
    background:
        linear-gradient(#343433, #343433) padding-box,
        linear-gradient(145deg, #fff199, #ff3d69 35%, #7e43ff 70%, #21d98a) border-box;
    box-shadow: 0 10px 22px rgba(73, 25, 0, 0.18);
}

.account-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar-svg {
    display: block;
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-identity h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 600;
}

.account-identity p {
    margin: 7px 0 0;
    color: rgba(45, 18, 0, 0.78);
    font-size: 0.72rem;
    font-weight: 600;
}

.account-uid {
    padding: 4px 8px;
    color: #ffffff;
    border: 0;
    border-radius: 5px;
    background: rgba(213, 119, 0, 0.72);
    font-size: 0.72rem;
    font-weight: 650;
}

.account-uid.copied::after {
    content: " Copied";
    color: #fff5a3;
}

.account-wallet-card {
    position: relative;
    z-index: 2;
    margin-top: -54px;
    padding: 17px 15px 14px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(70, 70, 70, 0.98), rgba(41, 41, 41, 0.98));
    box-shadow: 0 16px 30px rgba(10, 2, 18, 0.3);
}

.account-wallet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-wallet-head span,
.account-wallet-head strong {
    display: block;
}

.account-wallet-head span {
    color: #c7c7c7;
    font-size: 0.78rem;
}

.account-wallet-head strong {
    margin-top: 5px;
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 650;
}

.account-wallet-head a {
    flex: 0 0 auto;
    padding: 9px 14px;
    color: #4b2c00;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffe99b, var(--gold));
    font-size: 0.82rem;
    font-weight: 650;
}

.account-wallet-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 14px;
}

.account-wallet-actions a {
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: 0.75rem;
}

.account-action-icon,
.account-tile-icon,
.menu-icon {
    display: grid;
    place-items: center;
    font-weight: 750;
}

.account-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.account-icon-svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-icon-svg.deposit {
    transform: rotate(90deg);
}

.account-icon-svg.withdraw,
.account-icon-svg.logout {
    transform: rotate(180deg);
}

.account-action-icon.red,
.account-tile-icon.red,
.menu-icon.red { background: rgba(255, 67, 95, 0.28); color: #ff6d76; }
.account-action-icon.orange,
.account-tile-icon.orange { background: rgba(255, 138, 0, 0.3); color: #ffa12e; }
.account-action-icon.blue,
.account-tile-icon.blue { background: rgba(24, 200, 255, 0.3); color: #66dfff; }
.account-action-icon.green,
.account-tile-icon.green,
.menu-icon.green { background: rgba(32, 223, 117, 0.28); color: #54e796; }

.account-history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.account-history-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 78px;
    padding: 12px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(49, 49, 49, 0.86);
}

.account-history-grid b,
.account-history-grid small {
    display: block;
}

.account-history-grid b {
    font-size: 0.8rem;
    font-weight: 650;
}

.account-history-grid small {
    margin-top: 2px;
    color: #bcbcbc;
    font-size: 0.7rem;
}

.account-tile-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 1.1rem;
}

.account-menu-list {
    margin-top: 20px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(49, 49, 49, 0.86);
}

.account-menu-list a,
.account-menu-list button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 0;
    color: #ffffff;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    text-align: left;
    font: inherit;
    font-size: 0.82rem;
}

.account-menu-list a:last-child,
.account-menu-list button:last-child {
    border-bottom: 0;
}

.account-menu-list i {
    color: #929292;
    font-size: 1.35rem;
    font-style: normal;
    text-align: right;
}

.account-menu-list em {
    color: #efefef;
    font-size: 0.78rem;
    font-style: normal;
}

.menu-icon {
    width: 25px;
    height: 25px;
    border-radius: 6px;
    color: #f3c34c;
    background: rgba(255, 200, 61, 0.22);
    font-size: 1rem;
}

.menu-icon.yellow,
.menu-icon.gold { color: #f3c34c; background: rgba(255, 200, 61, 0.22); }

.support-page {
    width: min(100%, 720px);
    min-height: calc(100vh - 68px);
    margin: 0 auto;
    padding: 22px 14px 120px;
}

.support-page-head,
.support-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.support-page-head {
    margin-bottom: 16px;
}

.support-page-head h1,
.support-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-weight: 750;
}

.support-page-head h1 {
    font-size: 1.35rem;
}

.support-section-head h2 {
    font-size: 1rem;
}

.support-page-head p,
.support-admin-user {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.support-page .btn-primary {
    flex: 0 0 auto;
    padding: 10px 13px;
}

.support-alert {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 650;
}

.support-alert.success {
    color: #c9ffdf;
    background: rgba(32, 223, 117, 0.14);
    border: 1px solid rgba(32, 223, 117, 0.3);
}

.support-alert.error {
    color: #ffd1d7;
    background: rgba(255, 67, 95, 0.14);
    border: 1px solid rgba(255, 67, 95, 0.3);
}

.support-conversation,
.support-ticket-list,
.support-new-ticket {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    background: rgba(35, 13, 58, 0.82);
}

.support-meta {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.7rem;
}

.support-count {
    color: var(--muted);
    font-size: 0.72rem;
}

.support-status {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 750;
    white-space: nowrap;
}

.support-status.open { color: #c9ffdf; background: rgba(32, 223, 117, 0.16); }
.support-status.pending { color: #ffe59a; background: rgba(255, 200, 61, 0.16); }
.support-status.resolved,
.support-status.closed { color: #cfe9ff; background: rgba(24, 200, 255, 0.14); }

.support-messages {
    display: grid;
    gap: 9px;
    margin-top: 15px;
}

.support-message {
    max-width: 88%;
    padding: 11px 12px;
    border-radius: 8px;
    background: rgba(9, 2, 17, 0.42);
}

.support-message.user {
    justify-self: end;
    background: rgba(24, 200, 255, 0.12);
}

.support-message.admin {
    justify-self: start;
    background: rgba(255, 200, 61, 0.12);
}

.support-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.support-message-head strong {
    color: #ffffff;
    font-size: 0.72rem;
}

.support-message-head time {
    color: var(--muted);
    font-size: 0.64rem;
}

.support-message p {
    margin: 7px 0 0;
    color: #f5f5f5;
    font-size: 0.76rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.support-form,
.support-reply-form {
    display: grid;
    gap: 11px;
    margin-top: 15px;
}

.support-form label,
.support-status-form label {
    display: grid;
    gap: 6px;
}

.support-form label > span,
.support-status-form label > span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 650;
}

.support-form input,
.support-form select,
.support-form textarea,
.support-reply-form textarea,
.support-status-form select {
    width: 100%;
    min-width: 0;
    padding: 10px 11px;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    outline: 0;
    background: rgba(9, 2, 17, 0.72);
    font: inherit;
    font-size: 0.76rem;
}

.support-form textarea,
.support-reply-form textarea {
    resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus,
.support-reply-form textarea:focus,
.support-status-form select:focus {
    border-color: rgba(255, 200, 61, 0.72);
}

.support-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.support-form-actions,
.support-close-form,
.support-status-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-close-form {
    justify-content: flex-end;
    margin-top: 9px;
}

.support-ticket-list {
    display: grid;
    gap: 8px;
}

.support-ticket-list > .support-section-head {
    margin-bottom: 4px;
}

.support-ticket-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 0;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-ticket-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: #54e796;
    border-radius: 8px;
    background: rgba(32, 223, 117, 0.2);
}

.support-ticket-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.support-ticket-copy strong,
.support-ticket-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-ticket-copy strong {
    font-size: 0.78rem;
}

.support-ticket-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.66rem;
}

.support-empty {
    margin: 0;
    padding: 18px 5px 5px;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
}

.support-admin-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
    gap: 16px;
}

.support-admin-list {
    display: grid;
    align-content: start;
    gap: 7px;
}

.support-admin-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 11px 10px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(9, 2, 17, 0.22);
}

.support-admin-ticket.active,
.support-admin-ticket:hover {
    border-color: rgba(255, 200, 61, 0.65);
    background: rgba(255, 200, 61, 0.1);
}

.support-admin-ticket > span:first-child {
    min-width: 0;
}

.support-admin-ticket strong,
.support-admin-ticket small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-admin-ticket strong {
    font-size: 0.76rem;
}

.support-admin-ticket small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.65rem;
}

.support-admin-detail {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(9, 2, 17, 0.2);
}

.support-admin-placeholder {
    display: grid;
    place-items: center;
    min-height: 330px;
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.support-admin-placeholder h2 {
    margin: 12px 0 4px;
    color: #ffffff;
    font-size: 1rem;
}

.support-admin-placeholder p {
    margin: 0;
    font-size: 0.74rem;
}

.support-status-form {
    justify-content: flex-end;
    margin-top: 12px;
}

.support-status-form label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-status-form label span {
    white-space: nowrap;
}

.support-status-form select {
    width: auto;
    min-width: 145px;
}

@media (max-width: 900px) {
    .admin-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .support-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .support-page .btn-primary {
        width: 100%;
        text-align: center;
    }

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

    .support-admin-detail {
        margin-top: 2px;
    }

    .support-status-form {
        align-items: stretch;
        flex-direction: column;
    }

    .support-status-form label {
        align-items: stretch;
        flex-direction: column;
    }

    .support-status-form select {
        width: 100%;
    }

    .support-status-form .btn-soft {
        width: 100%;
    }

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

@media (min-width: 820px) {
    .account-page {
        min-height: calc(100vh - 68px);
    }
}

body.admin-screen {
    background:
        linear-gradient(135deg, rgba(255, 47, 99, 0.16), transparent 32%),
        linear-gradient(225deg, rgba(24, 200, 255, 0.14), transparent 30%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
}

.admin-frame {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 22px 14px;
    background: rgba(24, 7, 40, 0.94);
    border-right: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 20px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.admin-brand-logo {
    display: block;
    flex: 0 0 auto;
    width: 92px;
    height: 46px;
    object-fit: contain;
}

.admin-brand strong,
.admin-brand small {
    display: block;
}

.admin-brand strong {
    font-size: 0.9rem;
    font-weight: 850;
}

.admin-brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.7rem;
}

.admin-nav {
    display: grid;
    gap: 5px;
    margin-top: 20px;
    overflow-y: auto;
}

.admin-nav a {
    display: flex;
    align-items: center;
    min-height: 39px;
    padding: 0 12px;
    color: var(--muted);
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 650;
}

.admin-nav a::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #2d1200;
    background: linear-gradient(135deg, #fff58d, var(--gold));
}

.admin-nav a.active::before {
    background: #2d1200;
}

.admin-sidebar-footer {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding: 14px 8px 0;
    border-top: 1px solid var(--line);
}

.admin-sidebar-footer span {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-sidebar-footer small {
    color: var(--muted);
    font-size: 0.7rem;
}

.admin-sidebar-footer a {
    margin-top: 4px;
    color: var(--gold);
    font-size: 0.76rem;
}

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

.admin-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
    padding: 14px clamp(18px, 3vw, 36px);
    background: rgba(28, 5, 48, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.admin-toolbar h1 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 750;
}

.admin-toolbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(32, 223, 117, 0.13);
}

.admin-main {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 24px clamp(14px, 3vw, 36px) 50px;
}

.admin-welcome,
.admin-panel,
.admin-quick-grid a,
.admin-metric-card,
.admin-finance-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(35, 13, 58, 0.8);
    box-shadow: 0 14px 30px rgba(12, 2, 22, 0.2);
}

.admin-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    background:
        linear-gradient(105deg, rgba(255, 47, 99, 0.36), rgba(147, 88, 255, 0.18) 45%, rgba(24, 200, 255, 0.16)),
        url("../images/gaming-texture-light.jpg") center/cover no-repeat;
}

.admin-welcome h2,
.admin-panel-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.18rem;
    font-weight: 700;
}

.admin-welcome p:last-child {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-metric-grid,
.admin-finance-grid,
.admin-report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.admin-metric-card,
.admin-finance-card {
    display: grid;
    gap: 7px;
    min-height: 124px;
    padding: 16px;
    color: #ffffff;
}

.admin-metric-card span,
.admin-finance-card span {
    color: var(--muted);
    font-size: 0.76rem;
}

.admin-metric-card strong,
.admin-finance-card strong {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-metric-card small {
    color: #d8d8d8;
    font-size: 0.72rem;
}

.admin-metric-card.blue,
.admin-finance-card.blue { border-top: 3px solid var(--blue); }
.admin-metric-card.green,
.admin-finance-card.green { border-top: 3px solid var(--green); }
.admin-metric-card.red,
.admin-finance-card.red { border-top: 3px solid var(--red); }
.admin-metric-card.gold,
.admin-finance-card.gold { border-top: 3px solid var(--gold); }
.admin-finance-card.violet { border-top: 3px solid var(--violet); }

.admin-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.admin-panel {
    min-width: 0;
    margin-top: 16px;
    padding: 18px;
}

.admin-section-grid > .admin-panel {
    margin-top: 0;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-panel-head .eyebrow {
    margin-bottom: 4px;
}

.admin-panel-head > a {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 650;
}

.admin-count {
    color: var(--muted);
    font-size: 0.76rem;
}

.admin-compact-list {
    display: grid;
}

.admin-compact-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-compact-list a:last-child {
    border-bottom: 0;
}

.admin-compact-list b,
.admin-compact-list small,
.admin-table strong,
.admin-table small {
    display: block;
}

.admin-compact-list b,
.admin-table strong {
    font-size: 0.78rem;
    font-weight: 650;
}

.admin-compact-list small,
.admin-table small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 500;
}

.admin-compact-list > a > strong {
    flex: 0 0 auto;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-empty {
    margin: 0;
    padding: 24px 8px;
    color: var(--muted);
    text-align: center;
    font-size: 0.78rem;
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.admin-quick-grid a {
    display: grid;
    gap: 7px;
    padding: 15px;
    color: #ffffff;
}

.admin-quick-grid b {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 700;
}

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

.admin-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 650;
}

.admin-alert.success {
    color: #c9ffdf;
    background: rgba(32, 223, 117, 0.14);
    border: 1px solid rgba(32, 223, 117, 0.3);
}

.admin-alert.error {
    color: #ffd1d7;
    background: rgba(255, 67, 95, 0.14);
    border: 1px solid rgba(255, 67, 95, 0.3);
}

.admin-filter,
.admin-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px auto;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-filter.compact {
    display: flex;
    align-items: center;
    justify-content: end;
    flex-wrap: wrap;
    margin: 0;
}

.admin-filter input,
.admin-filter select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-table input,
.admin-table select,
.admin-setting-row input,
.admin-setting-row select,
.admin-setting-row textarea {
    min-width: 0;
    padding: 9px 10px;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(9, 2, 17, 0.72);
    font-size: 0.75rem;
}

.admin-filter button {
    white-space: nowrap;
}

.admin-form {
    display: grid;
    gap: 12px;
}

.admin-form label,
.admin-setting-row > div {
    display: grid;
    gap: 6px;
}

.admin-form label > span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 650;
}

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

.admin-note {
    padding: 12px 14px;
    color: var(--muted);
    border-left: 3px solid var(--gold);
    background: rgba(255, 200, 61, 0.07);
    font-size: 0.75rem;
}

.admin-note p {
    margin: 0;
}

.admin-note p + p {
    margin-top: 8px;
}

.admin-control-list {
    display: grid;
    gap: 10px;
}

.admin-control-card {
    display: grid;
    grid-template-columns: minmax(145px, 1.2fr) repeat(4, minmax(88px, 1fr)) auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(9, 2, 17, 0.22);
}

.payout-list .admin-control-card {
    grid-template-columns: minmax(145px, 1.2fr) minmax(110px, 1fr) minmax(110px, 1fr) auto;
}

.admin-control-card > div {
    align-self: center;
}

.admin-control-card strong,
.admin-control-card small,
.admin-control-card label {
    display: block;
}

.admin-control-card strong {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-control-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.68rem;
}

.admin-control-card label span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.66rem;
}

.admin-control-card .btn-soft {
    min-height: 36px;
    padding: 8px 12px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    color: #f4f4f4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: middle;
    font-size: 0.74rem;
    font-weight: 550;
}

.admin-table th {
    color: #f5d774;
    background: rgba(65, 62, 85, 0.62);
    font-size: 0.7rem;
    font-weight: 700;
}

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

.inline-form {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.inline-form .btn-soft,
.inline-form select,
.table-inputs input {
    width: auto;
    padding: 7px 9px;
    font-size: 0.68rem;
}

.table-inputs {
    display: flex;
    gap: 5px;
}

.table-link {
    display: block;
    margin-top: 4px;
    color: var(--gold);
    font-size: 0.68rem;
}

.success-btn {
    color: #bfffd7;
    border-color: rgba(32, 223, 117, 0.35);
}

.danger-btn {
    color: #ffd1d7;
    border-color: rgba(255, 67, 95, 0.35);
}

.admin-status {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.64rem;
    font-weight: 700;
}

.admin-status.active,
.admin-status.approved,
.admin-status.paid,
.admin-status.win,
.admin-status.success { color: #bfffd7; background: rgba(32, 223, 117, 0.16); }
.admin-status.pending,
.admin-status.processing,
.admin-status.result_declared { color: #ffe59a; background: rgba(255, 200, 61, 0.15); }
.admin-status.rejected,
.admin-status.suspended,
.admin-status.locked,
.admin-status.lose,
.admin-status.failed { color: #ffd1d7; background: rgba(255, 67, 95, 0.15); }
.admin-status.maintenance,
.admin-status.inactive { color: #cfe9ff; background: rgba(24, 200, 255, 0.14); }

.admin-settings-list {
    display: grid;
}

.admin-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-payment-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.admin-payment-preview {
    display: grid;
    place-items: center;
    width: 132px;
    min-height: 132px;
    overflow: hidden;
    color: #ffe182;
    border: 1px dashed rgba(255, 210, 70, 0.45);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.82rem;
    font-weight: 900;
}

.admin-payment-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-payment-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-payment-fields label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.admin-payment-fields label:nth-child(4),
.admin-payment-fields label:nth-child(6) {
    grid-column: 1 / -1;
}

.admin-payment-card .btn-soft {
    grid-column: 2;
    justify-self: end;
}

.admin-gateway-card {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 18px;
    padding: 20px;
    border-color: rgba(255, 210, 70, 0.2);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 210, 70, 0.065), rgba(255, 255, 255, 0.025) 48%);
}

.admin-gateway-local-note {
    margin: 0 0 14px;
    padding: 10px 12px;
    color: #ffdf90;
    border: 1px solid rgba(255, 210, 70, 0.25);
    border-radius: 8px;
    background: rgba(255, 210, 70, 0.08);
    font-size: 0.78rem;
}

.admin-gateway-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.admin-gateway-mark {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    height: 38px;
    color: #24132e;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff0a0, #d9a13d);
    font-size: 1rem;
    font-weight: 900;
}

.admin-gateway-card-head strong,
.admin-gateway-card-head small {
    display: block;
}

.admin-gateway-card-head strong {
    color: #fff;
    font-size: 0.95rem;
}

.admin-gateway-card-head small {
    color: var(--muted);
    font-size: 0.7rem;
}

.admin-gateway-state {
    margin-left: auto;
    padding: 5px 9px;
    color: #c9bdce;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    font-size: 0.68rem;
    font-weight: 700;
}

.admin-gateway-state.enabled {
    color: #9ff2c3;
    background: rgba(39, 205, 121, 0.16);
}

.admin-gateway-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.admin-gateway-fields label {
    min-width: 0;
    gap: 7px;
    color: #d7cddd;
    font-size: 0.73rem;
}

.admin-gateway-fields label:nth-child(4),
.admin-gateway-fields label:nth-child(6) {
    grid-column: auto;
}

.admin-gateway-fields input:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 8px;
    outline: none;
    background: rgba(9, 2, 17, 0.62);
    font-size: 0.8rem;
}

.admin-gateway-fields input:not([type="checkbox"]):focus {
    border-color: #f5ca6a;
    box-shadow: 0 0 0 3px rgba(245, 202, 106, 0.14);
}

.admin-gateway-fields input::placeholder {
    color: #94899d;
}

.admin-gateway-fields .admin-gateway-toggle {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
}

.admin-gateway-fields .admin-gateway-site-url {
    grid-column: 1 / -1;
}

.admin-gateway-site-url small {
    color: #c8bdd0;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.4;
}

.admin-gateway-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #e5b651;
}

.admin-gateway-callback {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 12px;
    border: 1px dashed rgba(255, 210, 70, 0.28);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.13);
}

.admin-gateway-callback b,
.admin-gateway-callback small,
.admin-gateway-callback code {
    display: block;
    font-size: 0.72rem;
}

.admin-gateway-callback b {
    margin-bottom: 5px;
    color: #ffdc86;
}

.admin-gateway-callback small {
    color: #c8bdd0;
    line-height: 1.5;
}

.admin-gateway-callback code {
    overflow-wrap: anywhere;
    color: #f5dbac;
    user-select: all;
}

.admin-gateway-card .btn-soft {
    grid-column: 1;
    justify-self: start;
    min-width: 130px;
}

.admin-setting-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-setting-row:last-child {
    border-bottom: 0;
}

.admin-setting-row strong {
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 650;
}

.admin-setting-row small {
    color: var(--muted);
    font-size: 0.66rem;
}

.admin-setting-row textarea {
    min-height: 92px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    line-height: 1.35;
}

.admin-wallet-fill {
    min-height: 28px;
    margin-top: 7px;
    padding: 0 10px;
    font-size: 0.66rem;
}

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

.admin-result-number {
    display: block;
    font-size: 1.35rem;
    font-weight: 750;
}

@media (max-width: 980px) {
    .admin-frame {
        grid-template-columns: 190px minmax(0, 1fr);
    }

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

    .admin-payment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-frame {
        display: block;
    }

    .admin-sidebar {
        position: sticky;
        height: auto;
        padding: 12px;
    }

    .admin-brand {
        padding-bottom: 12px;
    }

    .admin-nav {
        display: flex;
        gap: 6px;
        margin-top: 12px;
        overflow-x: auto;
    }

    .admin-nav a {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.72rem;
    }

    .admin-nav a::before,
    .admin-sidebar-footer {
        display: none;
    }

    .admin-toolbar {
        min-height: 66px;
        padding: 12px 14px;
    }

    .admin-toolbar-user {
        display: none;
    }

    .admin-main {
        padding: 16px 12px 32px;
    }

    .admin-welcome {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .admin-welcome .btn-primary {
        width: 100%;
        text-align: center;
    }

    .admin-section-grid,
    .admin-report-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 14px;
    }

    .admin-filter,
    .admin-filter.compact {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .admin-filter button {
        width: 100%;
    }

    .admin-setting-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .admin-payment-card,
    .admin-payment-fields {
        grid-template-columns: 1fr;
    }

    .admin-payment-preview {
        width: 100%;
        aspect-ratio: 1;
    }

    .admin-payment-card .btn-soft {
        grid-column: 1;
        width: 100%;
    }

    .admin-control-card,
    .payout-list .admin-control-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-control-card > div,
    .admin-control-card .btn-soft {
        grid-column: 1 / -1;
    }

    .admin-setting-row .btn-soft {
        width: 100%;
    }
}

body.user-screen {
    background:
        linear-gradient(135deg, rgba(255, 47, 99, 0.16), transparent 32%),
        linear-gradient(225deg, rgba(24, 200, 255, 0.14), transparent 30%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
}

.app-main.user-page {
    width: min(100%, 430px);
    min-height: calc(100vh - 66px);
    padding: 14px 12px 120px;
    background: rgba(24, 18, 28, 0.72);
    box-shadow: 0 0 40px rgba(8, 2, 14, 0.25);
}

.mobile-page-heading {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    margin: -14px -12px 14px;
    padding: 8px 12px;
    background: rgba(42, 34, 47, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-page-heading > a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.7rem;
    line-height: 1;
}

.mobile-page-heading span,
.mobile-page-heading h1 {
    display: block;
    margin: 0;
}

.mobile-page-heading span {
    color: var(--gold);
    font-size: 0.66rem;
    font-weight: 650;
}

.mobile-page-heading h1 {
    margin-top: 2px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
}

.page-text-btn {
    padding: 7px 9px;
    color: var(--gold);
    border: 0;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 650;
}

.mobile-page-hero {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 148px;
    overflow: hidden;
    padding: 20px;
    color: #2d1200;
    border-radius: 8px;
    background:
        linear-gradient(125deg, rgba(255, 247, 188, 0.96), rgba(255, 200, 61, 0.92) 55%, rgba(255, 138, 0, 0.9)),
        url("../images/gaming-texture-light.jpg") center/cover no-repeat;
    box-shadow: 0 14px 30px rgba(255, 138, 0, 0.18);
}

.mobile-page-hero > span,
.mobile-page-hero > strong,
.mobile-page-hero > small {
    display: block;
}

.mobile-page-hero > span {
    color: rgba(45, 18, 0, 0.7);
    font-size: 0.72rem;
    font-weight: 650;
}

.mobile-page-hero > strong {
    margin-top: 5px;
    font-size: 1.75rem;
    font-weight: 750;
    line-height: 1.05;
}

.mobile-page-hero > small {
    margin-top: 7px;
    color: rgba(45, 18, 0, 0.72);
    font-size: 0.72rem;
}

.mobile-hero-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.mobile-hero-actions a,
.promotion-page-hero button {
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 0 15px;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    background: rgba(45, 18, 0, 0.76);
    font-size: 0.72rem;
    font-weight: 700;
}

.mobile-hero-actions a:last-child {
    color: #2d1200;
    border: 1px solid rgba(45, 18, 0, 0.32);
    background: transparent;
}

.deposit-page-hero,
.reward-page-hero {
    background:
        linear-gradient(125deg, rgba(188, 246, 255, 0.96), rgba(24, 200, 255, 0.86), rgba(147, 88, 255, 0.88)),
        url("../images/gaming-texture-light.jpg") center/cover no-repeat;
}

.withdraw-page-hero {
    background:
        linear-gradient(125deg, rgba(210, 255, 226, 0.96), rgba(32, 223, 117, 0.86), rgba(24, 200, 255, 0.84)),
        url("../images/gaming-texture-light.jpg") center/cover no-repeat;
}

.promotion-page-hero,
.vip-page-hero {
    background:
        linear-gradient(125deg, rgba(255, 244, 180, 0.97), rgba(255, 184, 50, 0.91), rgba(255, 67, 95, 0.82)),
        url("../images/gaming-texture-light.jpg") center/cover no-repeat;
}

.promotion-page-hero button {
    width: max-content;
    margin-top: 14px;
}

.mobile-section {
    margin-top: 18px;
}

.mobile-section.form-section {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.86);
}

.mobile-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.mobile-section-title span,
.mobile-section-title h2 {
    display: block;
    margin: 0;
}

.mobile-section-title span {
    color: var(--gold);
    font-size: 0.64rem;
    font-weight: 650;
}

.mobile-section-title h2 {
    margin-top: 2px;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
}

.mobile-section-title > a {
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 650;
}

.wallet-bucket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.wallet-bucket {
    display: grid;
    gap: 5px;
    min-height: 74px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.88);
}

.wallet-bucket:last-child {
    grid-column: 1 / -1;
}

.wallet-bucket span {
    color: var(--muted);
    font-size: 0.68rem;
}

.wallet-bucket strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.wallet-bucket.blue { border-left: 3px solid var(--blue); }
.wallet-bucket.green { border-left: 3px solid var(--green); }
.wallet-bucket.gold { border-left: 3px solid var(--gold); }
.wallet-bucket.violet { border-left: 3px solid var(--violet); }
.wallet-bucket.red { border-left: 3px solid var(--red); }

.mobile-list {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.82);
}

.mobile-list-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-list-row:last-child {
    border-bottom: 0;
}

.mobile-list-row strong,
.mobile-list-row small,
.mobile-list-row em {
    display: block;
    min-width: 0;
}

.mobile-list-row strong {
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 650;
}

.mobile-list-row small,
.mobile-list-row em {
    margin-top: 3px;
    color: #bdb7c3;
    font-size: 0.64rem;
    font-style: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mobile-list-row em {
    color: #8f8797;
}

.mobile-list-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--gold);
    border-radius: 8px;
    background: rgba(255, 200, 61, 0.14);
    font-size: 1rem;
    font-weight: 750;
}

.mobile-list-icon.success,
.mobile-list-icon.approved,
.mobile-list-icon.paid,
.mobile-list-icon.win { color: var(--green); background: rgba(32, 223, 117, 0.13); }
.mobile-list-icon.rejected,
.mobile-list-icon.failed,
.mobile-list-icon.lose { color: var(--red); background: rgba(255, 67, 95, 0.13); }
.mobile-list-icon.pending,
.mobile-list-icon.processing,
.mobile-list-icon.refunded { color: var(--gold); background: rgba(255, 200, 61, 0.13); }
.mobile-list-icon.game { color: var(--violet); background: rgba(147, 88, 255, 0.13); }
.mobile-list-icon.system { color: var(--blue); background: rgba(24, 200, 255, 0.13); }
.mobile-list-icon.reward { color: var(--gold); background: rgba(255, 200, 61, 0.14); }

.mobile-list-svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-list-value {
    min-width: 78px;
    text-align: right;
}

.mobile-list-value b {
    display: block;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
}

.user-status {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 6px;
    color: #e8e0ee;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.56rem;
    font-weight: 700;
}

.user-status.success,
.user-status.approved,
.user-status.paid,
.user-status.win,
.user-status.claimed,
.user-status.eligible { color: #9ff8c6; background: rgba(32, 223, 117, 0.13); }
.user-status.pending,
.user-status.processing,
.user-status.refunded,
.user-status.locked { color: #ffe69a; background: rgba(255, 200, 61, 0.13); }
.user-status.rejected,
.user-status.failed,
.user-status.lose,
.user-status.expired { color: #ffadb8; background: rgba(255, 67, 95, 0.13); }

.mobile-empty {
    margin: 0;
    padding: 28px 14px;
    color: var(--muted);
    text-align: center;
    font-size: 0.74rem;
}

.amount-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.amount-choice-grid button {
    min-height: 42px;
    color: #ffffff;
    border: 1px solid rgba(255, 200, 61, 0.26);
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.88);
    font-size: 0.78rem;
    font-weight: 650;
}

.amount-choice-grid button:hover,
.amount-choice-grid button:focus {
    color: #2d1200;
    background: linear-gradient(135deg, #fff58d, var(--gold));
}

.games-page,
.game-history-page {
    background: #232322;
}

.games-hero {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 8px;
    background: #17101f;
}

.games-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.games-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 5, 24, 0.84), rgba(13, 5, 24, 0.42));
}

.games-hero div {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: end;
    min-height: inherit;
    padding: 18px;
}

.games-hero span,
.games-hero h1,
.games-hero p {
    display: block;
    margin: 0;
}

.games-hero span {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 850;
}

.games-hero h1 {
    margin-top: 4px;
    color: #ffffff;
    font-size: 2.15rem;
    line-height: 1;
    font-weight: 1000;
}

.games-hero p {
    max-width: 260px;
    margin-top: 8px;
    color: #ddd7e4;
    font-size: 0.74rem;
    line-height: 1.35;
}

.games-hero a {
    display: grid;
    place-items: center;
    width: max-content;
    min-height: 36px;
    margin-top: 14px;
    padding: 0 18px;
    color: #2d1200;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff58d, var(--gold));
    font-size: 0.78rem;
    font-weight: 850;
}

.games-type-grid {
    display: grid;
    gap: 10px;
}

.games-type-grid a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 13px;
    color: #ffffff;
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.88);
}

.games-type-grid a > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #2d1200;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff58d, var(--gold));
}

.games-card-svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.games-type-grid strong,
.games-type-grid small {
    display: block;
}

.games-type-grid strong {
    font-size: 0.88rem;
    font-weight: 850;
}

.games-type-grid small {
    margin-top: 3px;
    color: #bdb7c3;
    font-size: 0.68rem;
}

.aviator-page {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    background: #171719;
}

.aviator-stage,
.aviator-control {
    display: grid;
    gap: 12px;
    border-radius: 8px;
    background: #242426;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.aviator-stage {
    padding: 12px;
}

.aviator-head,
.aviator-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.aviator-head span,
.aviator-wallet span,
.aviator-control label,
.aviator-control small {
    color: #9d9da6;
    font-size: 0.72rem;
    font-weight: 800;
}

.aviator-head strong {
    display: block;
    color: #ffffff;
    font-size: 1.22rem;
    line-height: 1.1;
    font-weight: 950;
}

.aviator-head b {
    min-width: 76px;
    padding: 7px 10px;
    color: #ffdd6b;
    border-radius: 999px;
    background: #1a1a1d;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 950;
}

.aviator-sky {
    position: relative;
    min-height: 274px;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 62, 83, 0.25), transparent 28%),
        linear-gradient(180deg, #111217 0%, #1d2029 54%, #111115 100%);
}

.aviator-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    transform: perspective(320px) rotateX(56deg) translateY(44px);
    transform-origin: bottom center;
}

.aviator-trail {
    position: absolute;
    left: 12%;
    bottom: 24%;
    width: 54%;
    height: 42%;
    border-bottom: 4px solid rgba(255, 68, 86, 0.82);
    border-left: 4px solid rgba(255, 68, 86, 0.5);
    border-radius: 0 0 0 90%;
    opacity: 0.78;
}

.aviator-plane {
    position: absolute;
    left: 18%;
    bottom: 28%;
    width: 96px;
    height: 42px;
    transform: translate(0, 0) rotate(-10deg);
    transition: transform 0.35s ease;
}

.aviator-plane span {
    position: absolute;
    inset: 10px 0 8px;
    border-radius: 999px 70% 70% 999px;
    background: linear-gradient(90deg, #ff3048, #ff7a3b);
    box-shadow: 0 9px 18px rgba(255, 48, 72, 0.35);
}

.aviator-plane span::before,
.aviator-plane span::after {
    content: "";
    position: absolute;
    background: #ff3048;
}

.aviator-plane span::before {
    left: 34px;
    top: -16px;
    width: 34px;
    height: 26px;
    border-radius: 70% 70% 0 0;
    transform: skewX(-18deg);
}

.aviator-plane span::after {
    left: 24px;
    bottom: -13px;
    width: 42px;
    height: 20px;
    border-radius: 0 0 70% 70%;
    transform: skewX(24deg);
}

.aviator-sky.is-flying .aviator-plane {
    animation: aviatorFloat 1.25s ease-in-out infinite alternate;
}

.aviator-sky.is-flying .aviator-grid {
    animation: aviatorGridMove 0.7s linear infinite;
}

.aviator-sky.is-crashed .aviator-plane {
    transform: translate(148px, 96px) rotate(32deg);
}

.aviator-multiplier {
    position: absolute;
    inset: 54px 0 auto;
    z-index: 3;
    color: #ffffff;
    text-align: center;
    font-size: clamp(3.4rem, 17vw, 5.2rem);
    line-height: 1;
    font-weight: 1000;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.52);
}

.aviator-message {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    min-height: 34px;
    padding: 9px 12px;
    color: #ffffff;
    border-radius: 8px;
    background: rgba(12, 12, 14, 0.72);
    font-size: 0.78rem;
    font-weight: 850;
    text-align: center;
}

.aviator-wallet {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 8px;
    background: #1b1b1e;
}

.aviator-wallet strong {
    color: #ffdd6b;
    font-size: 1rem;
    font-weight: 950;
}

.aviator-control {
    padding: 12px;
}

.aviator-amount {
    display: grid;
    gap: 8px;
}

.aviator-amount div {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 8px;
}

.aviator-amount button,
.aviator-chip-row button {
    min-height: 42px;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    background: #34343a;
    font-weight: 950;
}

.aviator-amount input {
    min-width: 0;
    height: 42px;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    background: #101013;
    text-align: center;
    font-weight: 950;
}

.aviator-chip-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.aviator-main-btn {
    min-height: 52px;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #31c65b, #148d37);
    box-shadow: 0 12px 22px rgba(35, 190, 78, 0.28);
    font-size: 1.05rem;
    font-weight: 1000;
}

.aviator-main-btn:disabled {
    color: rgba(255, 255, 255, 0.62);
    background: #3a3a40;
    box-shadow: none;
}

.aviator-history {
    display: grid;
    gap: 8px;
}

.aviator-history article {
    display: grid;
    grid-template-columns: 0.8fr 0.65fr 0.8fr 0.85fr;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 10px;
    color: #ffffff;
    border-radius: 8px;
    background: #242426;
    font-size: 0.72rem;
    font-weight: 800;
}

.aviator-history b {
    color: #ff5264;
}

.aviator-history b.win {
    color: #54e078;
}

.aviator-history strong {
    color: #ffdd6b;
}

.aviator-history em {
    color: #ffffff;
    font-style: normal;
    text-align: right;
}

@keyframes aviatorFloat {
    from { transform: translate(0, 0) rotate(-10deg); }
    to { transform: translate(52px, -42px) rotate(-4deg); }
}

@keyframes aviatorGridMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: -34px 34px, -34px 34px; }
}

body.aviator-screen {
    min-height: 100vh;
    background: #0f1112;
}

.aviator-screen .app-topbar,
.aviator-screen .bottom-nav {
    display: none;
}

.aviator-screen .aviator-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    width: min(100vw, 430px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0;
    background: #111213;
}

.aviator-topbar {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    background: #191a1b;
}

.aviator-topbar a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #e7ecef;
}

.aviator-top-svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.aviator-topbar strong {
    color: #ff174d;
    font-size: 1.18rem;
    line-height: 1;
    font-style: italic;
    font-weight: 1000;
}

.aviator-topbar div {
    color: #b8c0c5;
    font-size: 0.76rem;
    font-weight: 800;
}

.aviator-topbar b {
    color: #24e11b;
}

.aviator-top-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 5px;
}

.aviator-top-actions button {
    min-height: 22px;
    padding: 0 8px;
    color: #adb4ba;
    border: 0;
    border-radius: 999px;
    background: #2d3033;
    font-size: 0.64rem;
    font-weight: 850;
}

.aviator-top-actions button.active {
    color: #151515;
    background: #24e11b;
}

.aviator-live-shell {
    display: grid;
    gap: 5px;
    padding: 5px 4px 0;
    background: #111213;
}

.aviator-recent-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 31px;
    overflow: hidden;
    padding: 0 10px;
    color: #16a7ff;
    border-radius: 0;
    background: #111213;
    white-space: nowrap;
    font-size: 0.73rem;
    font-weight: 850;
}

.aviator-recent-strip span.hot {
    color: #c832ff;
}

.aviator-recent-strip span.mid {
    color: #24b8ff;
}

.aviator-recent-strip button {
    margin-left: auto;
    min-width: 28px;
    height: 20px;
    color: #d8dce0;
    border: 0;
    border-radius: 999px;
    background: #33363a;
    line-height: 1;
}

.aviator-screen .aviator-sky {
    min-height: 220px;
    border: 1px solid #2f3337;
    border-radius: 16px;
    background:
        radial-gradient(circle at 54% 50%, rgba(33, 117, 148, 0.56), transparent 36%),
        repeating-conic-gradient(from -7deg at 0% 100%, rgba(255, 255, 255, 0.08) 0deg 8deg, rgba(0, 0, 0, 0.05) 8deg 17deg),
        linear-gradient(180deg, #081014 0%, #060707 100%);
    box-shadow: inset 0 0 0 1px #060707;
}

.aviator-rays {
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(from -8deg at 0% 100%, rgba(255, 255, 255, 0.08) 0deg 8deg, transparent 8deg 18deg);
    opacity: 0.78;
}

.aviator-curve {
    position: absolute;
    left: 14px;
    right: 29%;
    bottom: 0;
    height: 55%;
    border-bottom: 5px solid #ff124a;
    border-right: 5px solid rgba(255, 18, 74, 0.8);
    border-radius: 0 0 0 100%;
    transform: skewY(-13deg);
    transform-origin: left bottom;
}

.aviator-fill {
    position: absolute;
    left: 50px;
    right: 29%;
    bottom: 0;
    height: 41%;
    background: linear-gradient(180deg, rgba(255, 18, 74, 0.5), rgba(132, 0, 25, 0.72));
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.aviator-screen .aviator-plane {
    left: 46%;
    bottom: 32%;
    width: 118px;
    height: 84px;
    transform: rotate(-8deg);
}

.aviator-screen .aviator-plane img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 8px 10px rgba(255, 23, 77, 0.32))
        saturate(1.28)
        contrast(1.08);
    mix-blend-mode: lighten;
    transform: scaleX(-1) rotate(-6deg);
}

.aviator-screen .aviator-sky.is-flying .aviator-plane {
    animation: aviatorSpribeFloat 1.05s ease-in-out infinite alternate;
}

.aviator-screen .aviator-sky.is-crashed .aviator-plane {
    transform: translate(34px, 62px) rotate(35deg);
}

.aviator-screen .aviator-multiplier {
    inset: 50px 0 auto;
    font-size: clamp(3.5rem, 18vw, 5rem);
    font-weight: 1000;
}

.aviator-screen .aviator-message {
    left: 18px;
    right: 18px;
    bottom: 8px;
    min-height: 26px;
    padding: 5px 9px;
    color: #c9ced2;
    background: transparent;
    font-size: 0.72rem;
}

.aviator-online {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 28px;
    padding: 3px 8px 3px 4px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(27, 29, 31, 0.92);
    font-size: 0.78rem;
    font-weight: 900;
}

.aviator-online i,
.aviator-bets-total i {
    width: 20px;
    height: 20px;
    margin-right: -8px;
    border: 2px solid #eaf1f3;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #96ff8f, #266b3f 64%, #121212 65%);
}

.aviator-online b {
    margin-left: 12px;
}

.aviator-bet-stack {
    display: grid;
    gap: 4px;
    padding: 0 4px;
}

.aviator-bet-card,
.aviator-bets-board {
    display: grid;
    gap: 9px;
    padding: 9px;
    border-radius: 16px;
    background: #1b1d1f;
}

.aviator-bet-card.muted {
    opacity: 0.98;
}

.aviator-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 0;
    width: min(188px, 72%);
    min-height: 26px;
    margin: 0 auto;
    padding: 2px;
    border-radius: 999px;
    background: #121314;
}

.aviator-bets-board .aviator-tabs {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.aviator-tabs button {
    height: 22px;
    color: #bfc6ca;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 800;
}

.aviator-tabs button.active {
    color: #ffffff;
    background: #303236;
}

.aviator-tabs em {
    position: absolute;
    right: 13px;
    width: 22px;
    height: 22px;
    border: 2px solid #383b3f;
    border-radius: 50%;
}

.aviator-bet-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(116px, 1fr);
    gap: 10px;
    align-items: center;
}

.aviator-stake-side {
    display: grid;
    gap: 6px;
}

.aviator-stake {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) 25px;
    align-items: center;
    gap: 6px;
}

.aviator-stake button {
    width: 25px;
    height: 25px;
    color: #cbd0d4;
    border: 0;
    border-radius: 50%;
    background: #3a3d42;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
}

.aviator-stake input {
    min-width: 0;
    height: 26px;
    color: #ffffff;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 1rem;
    font-weight: 1000;
}

.aviator-screen .aviator-chip-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.aviator-screen .aviator-chip-row button {
    min-height: 24px;
    color: #9da4aa;
    border-radius: 999px;
    background: #151719;
    font-size: 0.78rem;
}

.aviator-screen .aviator-main-btn {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 73px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    background: #18b908;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
    line-height: 1.08;
}

.aviator-main-btn span,
.aviator-main-btn b {
    display: block;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 750;
}

.aviator-main-btn b {
    font-size: 1.2rem;
}

.aviator-main-btn:disabled {
    background: #35383c;
}

.aviator-bets-board {
    margin: 0 4px 8px;
}

.aviator-bets-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
    color: #ffffff;
    border-radius: 10px;
    background: #121314;
}

.aviator-bets-total div {
    display: flex;
    align-items: center;
}

.aviator-bets-total span {
    display: block;
    margin-left: 12px;
    color: #e4e8eb;
    font-size: 0.72rem;
    font-weight: 850;
}

.aviator-bets-total strong {
    display: grid;
    justify-items: end;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 1000;
}

.aviator-bets-total small {
    color: #798187;
    font-size: 0.66rem;
    font-weight: 750;
}

.aviator-screen .aviator-history {
    max-height: 178px;
    overflow: auto;
}

.aviator-screen .aviator-history article {
    grid-template-columns: 0.78fr 0.55fr 0.82fr 0.8fr;
    min-height: 35px;
    border-radius: 999px;
    background: #121314;
}

.aviator-round-text {
    display: block;
    padding: 0 10px 10px;
    color: #6f767d;
    font-size: 0.66rem;
}

@keyframes aviatorSpribeFloat {
    from { transform: translate(-4px, 5px) rotate(-8deg); }
    to { transform: translate(22px, -18px) rotate(-3deg); }
}

@media (min-width: 900px) {
    .aviator-screen .aviator-page {
        grid-template-columns: 410px minmax(0, 1fr) minmax(420px, 1fr);
        grid-template-areas:
            "top top top"
            "bets live live"
            "bets controls controls"
            "bets round round";
        width: 100vw;
        max-width: none;
        min-height: 100vh;
        padding: 0 4px 4px;
    }

    .aviator-topbar { grid-area: top; }
    .aviator-live-shell { grid-area: live; }
    .aviator-bet-stack {
        grid-area: controls;
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }
    .aviator-bets-board {
        grid-area: bets;
        margin: 0;
    }
    .aviator-round-text { grid-area: round; }
    .aviator-screen .aviator-sky {
        min-height: 500px;
    }
    .aviator-screen .aviator-multiplier {
        inset: 200px 0 auto;
        font-size: 5.6rem;
    }
    .aviator-screen .aviator-plane {
        left: 58%;
        bottom: 39%;
        width: 176px;
        height: 126px;
    }
}

.game-history-summary {
    padding: 16px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 247, 188, 0.96), rgba(255, 200, 61, 0.9) 58%, rgba(255, 138, 0, 0.88)),
        url("../images/gaming-texture-light.jpg") center/cover no-repeat;
    color: #2d1200;
}

.game-history-summary span,
.game-history-summary h1,
.game-history-summary p {
    display: block;
    margin: 0;
}

.game-history-summary span {
    font-size: 0.7rem;
    font-weight: 850;
}

.game-history-summary h1 {
    margin-top: 4px;
    font-size: 1.45rem;
    font-weight: 1000;
}

.game-history-summary p {
    margin-top: 7px;
    color: rgba(45, 18, 0, 0.74);
    font-size: 0.73rem;
}

.game-history-tabs {
    margin-top: 12px;
}

.game-history-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.game-history-row:last-child {
    border-bottom: 0;
}

.game-history-row header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.game-history-row strong,
.game-history-row small,
.game-history-row dt,
.game-history-row dd {
    display: block;
}

.game-history-row strong {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
}

.game-history-row dl {
    display: grid;
    gap: 5px;
    margin: 9px 0 0;
}

.game-history-row dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.game-history-row dt,
.game-history-row dd,
.game-history-row small {
    margin: 0;
    color: #bdb7c3;
    font-size: 0.64rem;
    line-height: 1.35;
}

.game-history-row dd {
    color: #ffffff;
    text-align: right;
}

.game-history-row small {
    margin-top: 9px;
    color: #8f8797;
    overflow-wrap: anywhere;
}

.activity-page {
    padding-top: 0;
    background:
        radial-gradient(circle at 18% 0, rgba(255, 196, 55, 0.13), transparent 30%),
        radial-gradient(circle at 88% 16%, rgba(137, 72, 255, 0.13), transparent 32%),
        #12051d;
}

.activity-bonus-hero {
    display: grid;
    gap: 16px;
    margin: -14px -12px 0;
    padding: 22px 18px 20px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(18, 5, 29, 0.84), rgba(18, 5, 29, 0.34)),
        url("../images/home/promo-reward.jpg") center/cover no-repeat,
        #1c1025;
    border-bottom: 1px solid rgba(255, 216, 107, 0.18);
}

.activity-hero-copy {
    display: grid;
    gap: 5px;
    max-width: 320px;
}

.activity-hero-copy span,
.activity-hero-copy h1,
.activity-hero-copy p {
    display: block;
    margin: 0;
}

.activity-hero-copy span {
    color: #ffe376;
    font-size: 0.66rem;
    font-weight: 1000;
}

.activity-hero-copy h1 {
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 1000;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.activity-hero-copy p {
    max-width: 260px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
    line-height: 1.45;
}

.activity-brand {
    display: grid;
    justify-items: center;
    color: #ffd429;
    text-align: center;
}

.activity-brand strong {
    display: block;
    font-size: 1.18rem;
    line-height: 1;
    font-weight: 1000;
}

.activity-brand span {
    width: 112px;
    height: 2px;
    margin: 3px 0;
    background: linear-gradient(90deg, transparent, #ffd429 18%, #ffd429 82%, transparent);
}

.activity-bonus-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 340px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(18, 18, 17, 0.58);
    backdrop-filter: blur(8px);
}

.activity-bonus-stats div {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    padding: 0 12px;
}

.activity-bonus-stats div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.activity-bonus-stats span {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 750;
}

.activity-bonus-stats strong {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 1000;
}

.activity-bonus-hero > a {
    display: grid;
    place-items: center;
    min-width: 136px;
    min-height: 38px;
    padding: 0 18px;
    color: #ffd86b;
    border: 1px solid #d8a33e;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.activity-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 10px;
    margin: 14px 0;
    padding: 10px;
    border: 1px solid rgba(255, 216, 107, 0.1);
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.74);
}

.activity-shortcuts a {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    color: #ffffff;
    text-align: center;
    font-size: 0.67rem;
    font-weight: 750;
}

.activity-shortcuts span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    border-radius: 10px;
    background: linear-gradient(135deg, #86c8ff, #5278ff);
    box-shadow: 0 8px 16px rgba(82, 120, 255, 0.24);
}

.activity-shortcuts a:nth-child(2) span {
    background: linear-gradient(135deg, #86c8ff, #5278ff);
}

.activity-shortcuts a:nth-child(3) span {
    background: linear-gradient(135deg, #ffd16e, #ff8f2b);
}

.activity-shortcuts a:nth-child(4) span {
    background: linear-gradient(135deg, #62e7c0, #16b779);
}

.activity-shortcuts a:nth-child(5) span {
    background: linear-gradient(135deg, #ff8b8b, #ff4f62);
}

.activity-shortcuts a.active {
    color: #ffd86b;
}

.activity-shortcut-svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.activity-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.activity-feature-card {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 118px;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(255, 216, 107, 0.2);
    border-radius: 8px;
    background: #22142b;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.activity-feature-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.activity-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 8%, rgba(0, 0, 0, 0.26) 42%, rgba(0, 0, 0, 0.82));
}

.activity-feature-card span,
.activity-feature-card strong {
    position: relative;
    z-index: 1;
    display: block;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.activity-feature-card span {
    color: #ffe376;
    font-size: 0.58rem;
    font-weight: 1000;
}

.activity-feature-card strong {
    margin-top: 3px;
    font-size: 0.78rem;
    line-height: 1.16;
    font-weight: 1000;
}

.activity-gift-card {
    overflow: hidden;
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.86);
}

.activity-panel-card {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
        rgba(48, 42, 52, 0.88);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.activity-gift-visual {
    position: relative;
    min-height: 116px;
    overflow: hidden;
    border-radius: 8px;
}

.activity-gift-visual img {
    display: block;
    width: 100%;
    height: 116px;
    object-fit: cover;
}

.activity-gift-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.activity-gift-visual div {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
}

.activity-gift-visual span,
.activity-gift-visual strong {
    display: block;
}

.activity-gift-visual span {
    color: #ffe376;
    font-size: 0.62rem;
    font-weight: 1000;
}

.activity-gift-visual strong {
    color: #ffffff;
    font-size: 1.04rem;
    font-weight: 1000;
}

.activity-gift-panel {
    margin-top: 12px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
}

.activity-gift-panel p,
.activity-gift-panel small,
.activity-gift-panel label > span,
.activity-message {
    display: block;
}

.activity-gift-panel p {
    margin: 0 0 4px;
    color: #cfc5d9;
    font-size: 0.94rem;
}

.activity-gift-panel small {
    color: #cfc5d9;
    font-size: 0.78rem;
}

.activity-gift-panel form {
    display: grid;
    gap: 15px;
    margin-top: 24px;
}

.activity-gift-panel label {
    display: grid;
    gap: 11px;
}

.activity-gift-panel label > span {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.activity-gift-panel input {
    min-height: 40px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: #242423;
    text-align: center;
    text-transform: uppercase;
}

.activity-receive-btn {
    display: grid;
    place-items: center;
    min-height: 43px;
    color: #9b5c11;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff2aa, #d8a33e);
    font-size: 0.9rem;
    font-weight: 750;
}

.activity-message {
    margin: -4px 0 0;
    font-size: 0.72rem;
    font-style: normal;
    line-height: 1.35;
}

.activity-message.success {
    color: #9ff8c6;
}

.activity-message.error {
    color: #ffadb8;
}

.first-deposit-section {
    background:
        linear-gradient(135deg, rgba(255, 216, 107, 0.16), rgba(147, 88, 255, 0.1)),
        rgba(48, 42, 52, 0.92);
}

.first-deposit-card {
    display: grid;
    gap: 12px;
}

.first-deposit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.first-deposit-head span,
.first-deposit-head strong,
.first-deposit-card p {
    display: block;
}

.first-deposit-head span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.first-deposit-head strong {
    margin-top: 3px;
    color: var(--gold);
    font-size: 1.22rem;
    font-weight: 1000;
}

.first-deposit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.first-deposit-grid div {
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(255, 216, 107, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 216, 107, 0.1), rgba(255, 255, 255, 0.03)),
        rgba(18, 18, 17, 0.56);
}

.first-deposit-grid span {
    display: block;
    color: #d9d2df;
    font-size: 0.65rem;
    font-weight: 800;
}

.first-deposit-grid strong {
    display: block;
    margin-top: 4px;
    color: #ffe58e;
    font-size: 0.9rem;
    font-weight: 1000;
}

.first-deposit-card p {
    margin: 0;
    color: #d8cfdf;
    font-size: 0.7rem;
    line-height: 1.45;
}

.activity-page .reward-plan-list article {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 216, 107, 0.12);
    background:
        linear-gradient(135deg, rgba(255, 216, 107, 0.09), transparent 42%),
        rgba(24, 15, 32, 0.78);
}

.activity-page .reward-plan-list article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffe376, #ff8f2b);
}

.activity-page .reward-plan-top,
.activity-page .reward-plan-list p,
.activity-page .reward-requirements,
.activity-page .user-status {
    position: relative;
    z-index: 1;
}

.spin-page {
    padding-top: 0;
    background: #12051d;
}

.spin-board {
    position: relative;
    display: grid;
    gap: 18px;
    margin: -14px -12px 12px;
    padding: 26px 14px 20px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(13, 6, 18, 0.52), rgba(18, 5, 29, 0.82) 62%, #12051d 100%),
        url("../images/spin/spin-premium-bg.png") center top/cover no-repeat,
        #12051d;
}

.spin-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 224, 94, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24));
    pointer-events: none;
}

.spin-board > * {
    position: relative;
    z-index: 1;
}

.spin-info-card {
    display: grid;
    gap: 14px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(31, 31, 34, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(4px);
}

.spin-info-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 10px;
    color: #ffffff;
    border-radius: 8px;
    background: rgba(22, 22, 24, 0.88);
}

.spin-info-row span {
    font-size: 0.78rem;
    font-weight: 900;
}

.spin-info-row strong {
    display: flex;
    gap: 1px;
    align-items: baseline;
    color: #f23f4d;
    font-size: 0.82rem;
    font-weight: 950;
}

.spin-info-row:first-child strong {
    min-width: 96px;
    justify-content: center;
    min-height: 30px;
    padding: 7px 13px;
    color: #7d3000;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd97c, #d49a3d);
}

.spin-info-row button {
    color: #8f5a0a;
    border: 0;
    background: transparent;
    font-size: 1rem;
    line-height: 1;
}

.spin-wheel-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: min(92vw, 360px);
    aspect-ratio: 1;
    margin: 2px auto 0;
    filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.5));
}

.spin-pointer {
    position: absolute;
    top: -4px;
    z-index: 7;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 44px solid #ffe164;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.35));
}

.spin-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(0, 0, 0, 0.08) 23% 100%),
        repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.25) 0deg 1.8deg, transparent 1.8deg 45deg),
        conic-gradient(
            from -22.5deg,
            #c747ef 0deg 45deg,
            #aa42e7 45deg 90deg,
            #31aee8 90deg 135deg,
            #43ddd1 135deg 180deg,
            #29ef31 180deg 225deg,
            #eaff00 225deg 270deg,
            #fb6a11 270deg 315deg,
            #ef5fa8 315deg 360deg
        );
    box-shadow:
        inset 0 0 0 12px #ffc92a,
        inset 0 0 0 19px #ec9a13,
        inset 0 0 28px rgba(255, 255, 255, 0.26),
        0 0 0 4px rgba(255, 235, 125, 0.64),
        0 18px 28px rgba(0, 0, 0, 0.42);
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    will-change: transform;
}

.spin-wheel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 4%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 73% 10%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 91% 29%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 98% 50%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 91% 72%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 73% 91%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 50% 98%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 27% 91%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 9% 72%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 2% 50%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 9% 29%, #ffffff 0 2.25%, transparent 2.6%),
        radial-gradient(circle at 27% 10%, #ffffff 0 2.25%, transparent 2.6%);
    pointer-events: none;
}

.spin-wheel::after {
    content: "";
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #ffe97a, #e72934 58%, #aa131b);
    box-shadow: 0 0 0 9px #f5c342, inset 0 0 0 5px rgba(255, 255, 255, 0.2), 0 8px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.spin-wheel.is-spinning {
    animation: none;
}

.spin-wheel.spin-done {
    transform: rotate(0deg);
}

.spin-segment-labels {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.spin-segment-labels span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 72px;
    min-height: 24px;
    margin: -12px 0 0 -36px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 1000;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
    transform: rotate(calc(var(--i) * 45deg)) translateY(clamp(-116px, -29vw, -82px)) rotate(90deg);
}

.spin-segment-labels span:nth-child(1) {
    color: #ffffff;
    transform: rotate(0deg) translateY(clamp(-116px, -29vw, -82px)) rotate(0deg);
}

.spin-segment-labels span:nth-child(8) {
    font-size: 0.62rem;
    line-height: 1.05;
}

.spin-go-btn {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 6;
    width: 66px;
    height: 66px;
    color: #ffffff;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #ff5a5a, #ea1d28 70%, #a50f18);
    box-shadow: 0 0 0 7px #f4c84b, inset 0 0 0 5px rgba(255, 255, 255, 0.18);
    font-size: 1.12rem;
    font-weight: 1000;
    transform: translate(-50%, -50%);
}

.spin-go-btn:disabled {
    opacity: 0.95;
}

.spin-timer {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 8;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(32, 32, 32, 0.92);
    box-shadow: 0 0 0 3px rgba(255, 201, 42, 0.72);
    font-size: 0.82rem;
    font-weight: 1000;
}

.spin-result {
    min-height: 22px;
    margin: -6px 0 0;
    color: #ffffff;
    font-size: 0.77rem;
    font-weight: 900;
    text-align: center;
}

.spin-mini-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: -4px;
}

.spin-mini-nav a {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: #ffffff;
    text-align: center;
    font-size: 0.67rem;
    font-weight: 850;
}

.spin-mini-nav span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 36px;
    color: #242424;
    border-radius: 7px;
    background: #dba94b;
    font-size: 1.25rem;
}

.spin-tier-grid,
.spin-prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
    gap: 8px;
}

.spin-tier-grid div,
.spin-prize-grid span {
    min-width: 0;
    padding: 10px;
    color: #ffffff;
    border-radius: 8px;
    background: #302c34;
    text-align: center;
}

.spin-tier-grid span,
.spin-tier-grid strong {
    display: block;
}

.spin-tier-grid span {
    color: #f7d776;
    font-size: 0.73rem;
    font-weight: 900;
}

.spin-tier-grid strong,
.spin-prize-grid span {
    font-size: 0.82rem;
    font-weight: 900;
}

.spin-history-table {
    overflow: hidden;
    border-radius: 6px;
    background: #242424;
}

.spin-history-head,
.spin-history-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.7fr;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 0 10px;
}

.spin-history-head {
    color: #ffffff;
    background: #423e56;
    font-size: 0.76rem;
    font-weight: 900;
}

.spin-history-row {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 750;
}

.spin-history-row strong {
    color: #ff4353;
    text-align: right;
}

@keyframes wheelSpinSimple {
    0% { transform: rotate(0deg); }
    18% { transform: rotate(4320deg); }
    52% { transform: rotate(11160deg); }
    76% { transform: rotate(15480deg); }
    91% { transform: rotate(17280deg); }
    100% { transform: rotate(18000deg); }
}

.deposit-page {
    padding-top: 12px;
    background: #232322;
}

.deposit-topbar {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    min-height: 64px;
    margin: 0 -12px 12px;
    padding: 8px 12px;
    color: #ffffff;
    background: #3a3a39;
}

.deposit-topbar a:first-child {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 8px;
    font-size: 1.8rem;
    line-height: 1;
}

.deposit-topbar h1 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 650;
    text-align: center;
}

.deposit-topbar a:last-child {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
}

.deposit-form {
    display: grid;
    gap: 10px;
}

.deposit-gold-card {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 111px;
    overflow: hidden;
    padding: 15px 18px;
    color: #8a5713;
    border-radius: 8px;
    background:
        radial-gradient(circle at 74% -8%, rgba(255, 248, 198, 0.56) 0 25%, transparent 26%),
        radial-gradient(circle at 88% -2%, rgba(255, 248, 198, 0.38) 0 34%, transparent 35%),
        linear-gradient(135deg, #e7b454, #ffe08f);
}

.deposit-gold-card span {
    font-size: 0.74rem;
    font-weight: 800;
}

.deposit-gold-card strong {
    margin-top: 6px;
    color: #9a5c0d;
    font-size: 1.48rem;
    line-height: 1;
    font-weight: 950;
}

.deposit-gold-card small,
.deposit-gold-card em {
    display: block;
    margin-top: 9px;
    color: rgba(114, 69, 8, 0.82);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 750;
}

.deposit-gold-card em {
    position: absolute;
    right: 16px;
    bottom: 13px;
}

.deposit-channel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.deposit-channel-grid button {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 76px;
    padding: 9px 5px;
    color: #d5d0d6;
    border: 0;
    border-radius: 5px;
    background: #30302f;
}

.deposit-channel-grid button.active {
    color: #8a5713;
    background: linear-gradient(135deg, #fff2ab, #d9a13d);
}

.deposit-channel-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: currentColor;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.62rem;
    font-weight: 1000;
}

.deposit-channel-svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.deposit-channel-grid b {
    min-height: 24px;
    color: inherit;
    font-size: 0.66rem;
    line-height: 1.12;
    font-weight: 650;
    text-align: center;
}

.deposit-panel {
    display: grid;
    gap: 12px;
    padding: 15px 13px;
    border-radius: 8px;
    background: #30302f;
}

.deposit-panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 22px;
}

.deposit-panel-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 750;
}

.deposit-title-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #d7a43f;
    font-size: 1rem;
    font-weight: 900;
}

.deposit-title-svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.deposit-selected-channel {
    width: min(100%, 136px);
    min-height: 54px;
    padding: 10px 12px;
    color: #8a520c;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff2a7, #d99d3a);
}

.deposit-selected-channel span,
.deposit-selected-channel small {
    display: block;
}

.deposit-selected-channel span {
    font-size: 0.78rem;
    font-weight: 750;
}

.deposit-selected-channel small {
    margin-top: 3px;
    font-size: 0.68rem;
}

.deposit-pay-grid {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.deposit-qr-box,
.deposit-upi-box {
    min-height: 112px;
    border-radius: 8px;
    background: #222221;
}

.deposit-qr-box {
    display: grid;
    place-items: center;
    padding: 9px;
}

.deposit-qr-box img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #ffffff;
}

.deposit-qr-box > span {
    width: 72px;
    height: 72px;
    border: 7px solid #ffffff;
    border-radius: 8px;
    background:
        linear-gradient(90deg, #ffffff 14px, transparent 14px 22px, #ffffff 22px 36px, transparent 36px),
        linear-gradient(#ffffff 14px, transparent 14px 22px, #ffffff 22px 36px, transparent 36px),
        #111111;
}

.deposit-qr-box small {
    margin-top: -18px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
}

.deposit-upi-box {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 14px;
}

.deposit-upi-box span {
    color: #b8b1bd;
    font-size: 0.7rem;
}

.deposit-upi-box strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.25;
}

.deposit-upi-box button {
    width: max-content;
    min-height: 30px;
    padding: 0 14px;
    color: #271300;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff2a7, #d99d3a);
    font-size: 0.72rem;
    font-weight: 850;
}

.deposit-upi-box button:disabled {
    opacity: 0.45;
}

.deposit-pay-panel .deposit-pay-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

.deposit-pay-panel .deposit-qr-box {
    width: min(100%, 280px);
    min-height: 0;
    aspect-ratio: 1;
    justify-self: center;
    padding: 12px;
    border: 1px solid rgba(255, 213, 92, 0.34);
    background: linear-gradient(180deg, #ffffff, #f4f4f4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.deposit-pay-panel .deposit-qr-box img {
    border-radius: 4px;
}

.deposit-pay-panel .deposit-qr-box > span {
    width: 190px;
    height: 190px;
}

.deposit-pay-panel .deposit-upi-box {
    min-height: 78px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    align-content: center;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.deposit-pay-panel .deposit-upi-box span,
.deposit-pay-panel .deposit-upi-box strong {
    grid-column: 1;
}

.deposit-pay-panel .deposit-upi-box button {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.deposit-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 13px;
}

.deposit-amount-grid button {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 28px;
    padding: 4px 10px;
    color: #ffd46d;
    border: 1px solid #535064;
    border-radius: 4px;
    background: #30302f;
    font-size: 0.86rem;
    font-weight: 650;
}

.deposit-amount-grid button.active {
    color: #271300;
    border-color: transparent;
    background: linear-gradient(135deg, #fff2a7, #d99d3a);
}

.deposit-amount-grid span {
    color: #8f8996;
}

.deposit-money-input {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: #f4b431;
    border-radius: 20px;
    background: #20201f;
}

.deposit-money-input input {
    width: 100%;
    min-height: 36px;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.76rem;
}

.deposit-step-message {
    min-height: 16px;
    margin: -2px 0 0;
    color: #ff6565;
    font-size: 0.72rem;
}

.deposit-proceed-btn {
    min-height: 44px;
    color: #291300;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff2a7, #f1b33d);
    font-size: 0.88rem;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(218, 157, 58, 0.2);
}

.deposit-gateway-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 226, 139, 0.16), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 212, 109, 0.22);
}

.deposit-gateway-head span,
.deposit-gateway-head time {
    color: #d7cbb6;
    font-size: 0.72rem;
    font-weight: 650;
}

.deposit-gateway-head strong {
    display: block;
    margin-top: 3px;
    color: #ffd46d;
    font-size: 1.14rem;
    line-height: 1;
}

.deposit-gateway-head time {
    display: inline-grid;
    place-items: center;
    min-width: 70px;
    min-height: 34px;
    color: #111111;
    border-radius: 6px;
    background: #ffd46d;
    font-size: 0.98rem;
    font-weight: 900;
}

.deposit-gateway-head time.ending {
    color: #ffffff;
    background: #ef3d47;
}

.deposit-form [hidden] {
    display: none !important;
}

.deposit-field,
.deposit-upload {
    display: grid;
    gap: 7px;
}

.deposit-upload {
    position: relative;
}

.deposit-field span,
.deposit-upload span {
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 750;
}

.deposit-field input {
    min-height: 42px;
    padding: 10px 12px;
    color: #ffffff;
    border: 1px solid #535064;
    border-radius: 6px;
    outline: 0;
    background: #252524;
}

.deposit-upload {
    min-height: 78px;
    justify-items: center;
    align-content: center;
    padding: 12px;
    border: 1px dashed rgba(255, 212, 109, 0.52);
    border-radius: 8px;
    background: #252524;
    cursor: pointer;
}

.deposit-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.deposit-upload small {
    color: #b8b1bd;
    font-size: 0.68rem;
}

.deposit-submit-btn {
    min-height: 46px;
    color: #291300;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff2a7, #f1b33d);
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(218, 157, 58, 0.22);
}

.withdraw-page {
    padding-top: 0;
    background: #232322;
}

.withdraw-gold-card {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 136px;
    overflow: hidden;
    padding: 18px 20px;
    color: #8a5713;
    border-radius: 8px;
    background:
        radial-gradient(circle at 76% -2%, rgba(255, 247, 187, 0.62) 0 26%, transparent 27%),
        radial-gradient(circle at 90% 2%, rgba(255, 247, 187, 0.35) 0 36%, transparent 37%),
        linear-gradient(135deg, #d49b37, #ffe39a);
}

.withdraw-gold-card span,
.withdraw-gold-card strong,
.withdraw-gold-card small {
    display: block;
    position: relative;
    z-index: 1;
}

.withdraw-gold-card span {
    font-size: 0.82rem;
    font-weight: 800;
}

.withdraw-gold-card strong {
    margin-top: 14px;
    color: #9a5c0d;
    font-size: 1.42rem;
    line-height: 1;
    font-weight: 950;
}

.withdraw-gold-card button {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-left: 4px;
    padding: 0;
    color: inherit;
    border: 0;
    vertical-align: middle;
    background: transparent;
}

.withdraw-refresh-svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-gold-card small {
    margin-top: auto;
    align-self: end;
    text-align: right;
    font-size: 0.8rem;
    letter-spacing: 4px;
}

.withdraw-highlight {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 70px;
    margin-top: 14px;
    padding: 11px 13px;
    color: #8a520c;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff2aa, #d99d3a);
}

.withdraw-highlight > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffc83d;
    border-radius: 8px;
    background: #ffffff;
    font-weight: 1000;
}

.withdraw-highlight-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-highlight strong,
.withdraw-highlight small {
    display: block;
}

.withdraw-highlight strong {
    color: #7b4808;
    font-size: 0.96rem;
    font-weight: 850;
}

.withdraw-highlight small {
    margin-top: 4px;
    color: #7b4808;
    font-size: 0.72rem;
    line-height: 1.35;
}

.withdraw-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.withdraw-method-grid button {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 86px;
    color: #e9e3ed;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #30302f;
}

.withdraw-method-grid button.active {
    color: #271300;
    border-color: rgba(255, 216, 107, 0.38);
    background: linear-gradient(135deg, #fff2aa, #d99d3a);
}

.withdraw-method-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.78rem;
    font-weight: 1000;
}

.withdraw-method-svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-method-grid b {
    font-size: 0.76rem;
    font-weight: 750;
}

.withdraw-rule-link {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-top: 14px;
    padding: 9px 12px;
    color: #e9e3ed;
    border-radius: 6px;
    background: #30302f;
    font-size: 0.78rem;
    font-weight: 750;
}

.withdraw-rule-link > span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #2b1700;
    border-radius: 6px;
    background: #d7a43f;
}

.withdraw-rule-svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.withdraw-rule-link b {
    color: #f5d06b;
    font-size: 0.72rem;
}

.withdraw-panel,
.withdraw-history-section {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 15px 13px;
    border-radius: 8px;
    background: #30302f;
}

.withdraw-account-form,
.withdraw-request-form {
    display: grid;
    gap: 10px;
}

.withdraw-account-form label,
.withdraw-request-form label {
    display: grid;
    gap: 6px;
}

.withdraw-account-form label span,
.withdraw-request-form label > span {
    color: #d9d4dc;
    font-size: 0.72rem;
    font-weight: 750;
}

.withdraw-account-form input,
.withdraw-request-form select {
    min-height: 40px;
    padding: 9px 11px;
    color: #ffffff;
    border: 1px solid #565365;
    border-radius: 6px;
    background: #252524;
}

.withdraw-selected-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
}

.withdraw-selected-wallet span,
.withdraw-selected-wallet small,
.withdraw-selected-wallet strong {
    display: block;
}

.withdraw-selected-wallet span {
    color: #d9d4dc;
    font-size: 0.72rem;
}

.withdraw-selected-wallet strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
}

.withdraw-selected-wallet small {
    max-width: 190px;
    overflow: hidden;
    color: #f5d06b;
    font-size: 0.72rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.withdraw-money-input {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 50px;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 24px;
    background: #f2f2f2;
}

.withdraw-money-input span {
    color: #d09528 !important;
    font-size: 1.05rem !important;
}

.withdraw-money-input input {
    min-height: 44px;
    color: #7b4808;
    border: 0;
    outline: 0;
    background: transparent;
}

.withdraw-money-input button {
    color: #b07411;
    border: 0;
    background: transparent;
    font-size: 0.82rem;
}

.withdraw-red-note {
    color: #ff4757;
    font-size: 0.72rem;
    font-weight: 800;
}

.withdraw-received-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #cbc4d0;
    font-size: 0.78rem;
}

.withdraw-received-row b {
    color: #f6b23a;
}

.withdraw-submit-btn {
    min-height: 44px;
    margin-top: 10px;
    color: #ffffff;
    border: 0;
    border-radius: 22px;
    background: #838896;
    font-size: 0.86rem;
    font-weight: 850;
}

.withdraw-submit-btn:not(:disabled) {
    background: linear-gradient(135deg, #fff2aa, #d99d3a);
    color: #2b1700;
}

.withdraw-instruction-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    color: #d9d4dc;
    border: 1px solid #565365;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.55;
}

.withdraw-instruction-box p {
    position: relative;
    margin: 0;
    padding-left: 14px;
}

.withdraw-instruction-box p::before {
    content: "";
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: #d7a43f;
    transform: rotate(45deg);
}

.withdraw-history-list {
    display: grid;
    gap: 12px;
}

.withdraw-history-list article {
    padding: 12px;
    border-radius: 6px;
    background: #30302f;
}

.withdraw-history-list header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.withdraw-history-list header span {
    padding: 5px 8px;
    color: #ffffff;
    border-radius: 5px;
    background: #ef3348;
    font-size: 0.82rem;
    font-weight: 900;
}

.withdraw-history-list header b {
    color: #20df75;
    font-size: 0.76rem;
}

.withdraw-history-list header b.pending,
.withdraw-history-list header b.processing,
.withdraw-history-list header b.approved {
    color: #ffd86b;
}

.withdraw-history-list header b.rejected {
    color: #ff8f9d;
}

.withdraw-history-list dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.withdraw-history-list dl div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
}

.withdraw-history-list dt,
.withdraw-history-list dd {
    margin: 0;
    font-size: 0.74rem;
}

.withdraw-history-list dt {
    color: #b8b1bd;
    font-weight: 750;
}

.withdraw-history-list dd {
    overflow: hidden;
    color: #f5d06b;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.withdraw-history-list p {
    margin: 10px 0 0;
    color: #ffadb8;
    font-size: 0.72rem;
}

.admin-deposit-table td {
    vertical-align: middle;
}

.admin-proof-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    width: max-content;
    max-width: 190px;
    margin-top: 8px;
    padding: 6px 9px 6px 6px;
    color: #ffffff;
    border: 1px solid rgba(255, 200, 61, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.admin-proof-card img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-proof-card span {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 750;
}

.admin-user-detail {
    display: grid;
    gap: 16px;
}

.admin-user-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.admin-user-summary div {
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

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

.admin-user-summary span {
    color: #a9b8ca;
    font-size: 0.72rem;
    font-weight: 750;
}

.admin-user-summary strong {
    margin-top: 5px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
}

.admin-user-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr) minmax(240px, 1fr);
    gap: 12px;
}

.admin-user-edit-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.admin-user-edit-card > div,
.admin-user-edit-card .btn-primary,
.admin-user-edit-card .btn-soft {
    grid-column: 1 / -1;
}

.admin-user-edit-card textarea {
    width: 100%;
    min-height: 84px;
    padding: 10px 12px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    resize: vertical;
}

.admin-user-edit-card .wide {
    grid-column: 1 / -1;
}

.wallet-breakdown strong {
    color: #ffd86b;
}

.admin-row-selected {
    background: rgba(255, 216, 107, 0.08);
}

.admin-live-rounds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.admin-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 216, 107, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.admin-mode-toggle.on {
    border-color: rgba(32, 223, 117, 0.38);
    background: linear-gradient(135deg, rgba(32, 223, 117, 0.14), rgba(255, 255, 255, 0.04));
}

.admin-mode-toggle strong,
.admin-mode-toggle small {
    display: block;
}

.admin-mode-toggle strong {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
}

.admin-mode-toggle small {
    margin-top: 3px;
    color: #a9b8ca;
    font-size: 0.7rem;
}

.admin-live-rounds a {
    position: relative;
    display: grid;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
    color: #ffffff;
    border: 1px solid rgba(255, 216, 107, 0.24);
    border-radius: 8px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 216, 107, 0.18), transparent 28%),
        linear-gradient(145deg, rgba(71, 36, 87, 0.92), rgba(41, 24, 60, 0.95));
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.admin-live-rounds a::before {
    content: "LIVE";
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    color: #271300;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff2a7, #d99d3a);
    font-size: 0.58rem;
    font-weight: 1000;
}

.admin-live-rounds span,
.admin-live-rounds strong,
.admin-live-rounds small,
.admin-live-rounds b,
.admin-live-rounds em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-live-rounds span {
    color: #a9b8ca;
    font-size: 0.7rem;
    font-weight: 800;
}

.admin-live-rounds strong {
    font-size: 0.9rem;
    font-weight: 950;
}

.admin-live-rounds small,
.admin-live-rounds em {
    color: #a9b8ca;
    font-size: 0.7rem;
    font-style: normal;
}

.admin-live-rounds b {
    color: #ffd86b;
    font-size: 1.18rem;
}

.admin-live-picks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 2px;
}

.admin-live-picks i {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    min-height: 30px;
    overflow: hidden;
    padding: 7px 9px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.2);
    font-style: normal;
}

.admin-live-picks i::before,
.admin-bet-box div::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--bet-width, 4%);
    opacity: 0.28;
    background: currentColor;
}

.admin-live-picks i > *,
.admin-bet-box div > * {
    position: relative;
    z-index: 1;
}

.admin-live-picks i span,
.admin-live-picks i strong {
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
}

.admin-live-numbers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.admin-live-numbers i {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 40px;
    padding: 5px 4px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.22);
    font-style: normal;
}

.admin-live-numbers span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 1000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.admin-live-numbers strong {
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 850;
}

.pick-green { color: #20df75; }
.pick-red { color: #ff445f; }
.pick-violet { color: #b45cff; }
.pick-green-violet { color: #20df75; }
.pick-red-violet { color: #ff445f; }
.pick-big { color: #f4a339; }
.pick-small { color: #5c9df2; }

.admin-live-numbers .pick-green span { background: #20df75; }
.admin-live-numbers .pick-red span { background: #ff445f; }
.admin-live-numbers .pick-violet span { background: #b45cff; }
.admin-live-numbers .pick-green-violet span { background: linear-gradient(135deg, #20df75 0 48%, #b45cff 52% 100%); }
.admin-live-numbers .pick-red-violet span { background: linear-gradient(135deg, #ff445f 0 48%, #b45cff 52% 100%); }

.pick-green-violet span,
.pick-red-violet span {
    background: linear-gradient(135deg, currentColor 0 48%, #b45cff 52% 100%);
}

.admin-bet-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.admin-bet-summary div,
.admin-bet-box {
    min-width: 0;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 216, 107, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.admin-bet-summary span,
.admin-bet-summary strong {
    display: block;
}

.admin-bet-summary span {
    color: #a9b8ca;
    font-size: 0.72rem;
    font-weight: 750;
}

.admin-bet-summary strong {
    margin-top: 5px;
    color: #ffd86b;
    font-size: 0.95rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.admin-bet-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 0.9fr) minmax(260px, 1.4fr);
    gap: 12px;
    margin-top: 14px;
}

.admin-bet-box {
    display: grid;
    gap: 9px;
}

.admin-bet-box h3 {
    margin: 0 0 4px;
    color: #ffffff;
    font-size: 0.9rem;
}

.admin-bet-box div {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.admin-bet-box span,
.admin-bet-box strong,
.admin-bet-box small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bet-box span {
    display: grid;
    place-items: center;
    min-height: 24px;
    color: currentColor;
    font-size: 0.72rem;
    font-weight: 900;
}

.admin-bet-box strong {
    color: #ffffff;
    font-size: 0.82rem;
    text-align: right;
}

.admin-bet-box small {
    color: #a9b8ca;
    font-size: 0.68rem;
    text-align: right;
}

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

.number-box h3 {
    grid-column: 1 / -1;
}

.number-box div {
    grid-template-columns: 28px minmax(0, 1fr) 30px;
}

@media (max-width: 720px) {
    .admin-user-grid {
        grid-template-columns: 1fr;
    }

    .admin-bet-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 460px) {
    .admin-user-summary {
        grid-template-columns: 1fr;
    }
}

.admin-review-form {
    grid-template-columns: minmax(150px, 1fr) auto auto;
}

.admin-review-form input {
    min-height: 34px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.user-filter-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 12px;
}

.user-filter-tabs button {
    min-height: 36px;
    padding: 5px;
    color: var(--muted);
    border: 0;
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.88);
    font-size: 0.68rem;
    font-weight: 650;
}

.user-filter-tabs button.active {
    color: #2d1200;
    background: linear-gradient(135deg, #fff58d, var(--gold));
}

.promo-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-top: 12px;
}

.promo-stat-grid > div {
    padding: 13px;
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.promo-stat-grid span,
.promo-stat-grid strong {
    display: block;
}

.promo-stat-grid span {
    color: var(--muted);
    font-size: 0.66rem;
}

.promo-stat-grid strong {
    margin-top: 5px;
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 700;
}

.promotion-list,
.reward-plan-list,
.vip-level-list,
.referral-steps {
    display: grid;
    gap: 9px;
}

.promotion-list article,
.reward-plan-list article,
.vip-level-list article,
.referral-steps > div {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.86);
}

.promotion-list article > div > span {
    color: var(--gold);
    font-size: 0.62rem;
    font-weight: 700;
}

.promotion-list strong,
.promotion-list p,
.promotion-list small {
    display: block;
}

.promotion-list strong {
    margin-top: 3px;
    color: #ffffff;
    font-size: 0.82rem;
}

.promotion-list p {
    margin: 6px 0;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.promotion-list small {
    color: #99919e;
    font-size: 0.62rem;
}

.referral-steps > div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.73rem;
}

.referral-steps b {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    color: #2d1200;
    border-radius: 50%;
    background: var(--gold);
}

.notification-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    align-items: start;
    gap: 10px;
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.notification-row:last-child {
    border-bottom: 0;
}

.notification-row.unread {
    background: rgba(255, 200, 61, 0.05);
}

.notification-row strong,
.notification-row p,
.notification-row small {
    display: block;
}

.notification-row strong {
    color: #ffffff;
    font-size: 0.77rem;
    font-weight: 700;
}

.notification-row p {
    margin: 5px 0;
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.45;
}

.notification-row small {
    color: #918a96;
    font-size: 0.61rem;
}

.notification-row form button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--green);
    border: 0;
    border-radius: 8px;
    background: rgba(32, 223, 117, 0.12);
}

.reward-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.reward-plan-top span {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.reward-plan-top strong {
    color: var(--gold);
    font-size: 0.9rem;
}

.reward-plan-list p {
    margin: 7px 0;
    color: var(--muted);
    font-size: 0.69rem;
}

.reward-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.reward-requirements span {
    padding: 4px 6px;
    color: #d9cfea;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.58rem;
}

.checkin-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.checkin-strip > div {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
}

.checkin-strip b {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    color: var(--muted);
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.88);
    font-size: 0.68rem;
}

.checkin-strip .done b {
    color: #2d1200;
    background: var(--gold);
}

.checkin-strip span {
    color: #9f98a4;
    font-size: 0.52rem;
    white-space: nowrap;
}

.vip-page {
    background: #232322;
}

.vip-summary-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 200, 61, 0.2);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(48, 48, 47, 0.98), rgba(35, 35, 34, 0.98));
}

.vip-summary-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #2d1200;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff2a7, #d99d3a);
}

.vip-summary-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vip-summary-card span,
.vip-summary-card strong,
.vip-summary-card p {
    display: block;
}

.vip-summary-card span {
    color: var(--gold);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

.vip-summary-card strong {
    margin-top: 3px;
    color: #ffffff;
    font-size: 0.95rem;
}

.vip-summary-card p {
    margin: 4px 0 8px;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.35;
}

.vip-rule-list {
    display: grid;
    gap: 9px;
}

.vip-rule-list article {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    background: rgba(48, 42, 52, 0.86);
}

.vip-rule-list b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #2d1200;
    border-radius: 8px;
    background: var(--gold);
    font-size: 0.72rem;
}

.vip-rule-list p {
    margin: 0;
    color: #d9d4dc;
    font-size: 0.72rem;
    line-height: 1.42;
}

.vip-level-list article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    opacity: 0.74;
}

.vip-level-list article.unlocked {
    opacity: 1;
    border-color: rgba(255, 200, 61, 0.28);
}

.vip-level-list article.current {
    background: linear-gradient(135deg, rgba(255, 200, 61, 0.13), rgba(48, 42, 52, 0.92));
}

.vip-medal {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #2d1200;
    border: 3px solid #fff1a8;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe886, #ff9b20);
    font-size: 0.82rem;
    font-weight: 800;
}

.vip-level-list strong,
.vip-level-list small,
.vip-level-list em {
    display: block;
}

.vip-level-list strong {
    color: #ffffff;
    font-size: 0.78rem;
}

.vip-level-list small,
.vip-level-list em {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.61rem;
    font-style: normal;
}

.vip-level-list article > b {
    grid-column: 2;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    margin-top: 3px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 200, 61, 0.1);
    color: var(--gold);
    font-size: 0.72rem;
}

.vip-progress-pair {
    display: grid;
    gap: 7px;
    margin-top: 9px;
}

.vip-progress-pair label {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.vip-progress-pair label span,
.vip-progress-pair label em {
    margin: 0;
    color: #aaa2af;
    font-size: 0.58rem;
    font-style: normal;
}

.vip-progress-pair label em {
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-progress {
    height: 5px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.vip-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

@media (max-width: 819px) {
    body.user-screen .app-topbar,
    body.home-screen .app-topbar,
    body.account-screen .app-topbar {
        width: min(100%, 430px);
        margin: 0 auto;
    }
}

@media (max-width: 360px) {
    .mobile-list-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .mobile-list-value {
        grid-column: 2;
        min-width: 0;
        text-align: left;
    }

    .vip-progress-pair label {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .vip-progress-pair label em {
        grid-column: 2;
        text-align: left;
    }

    .amount-choice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Compact user panel pass for mobile hosting screens. */
body.user-screen,
body.home-screen,
body.account-screen,
body.wingo-screen {
    font-size: 14px;
}

body.user-screen :where(h1, h2, h3, strong, b, button, a),
body.home-screen :where(h1, h2, h3, strong, b, button, a),
body.account-screen :where(h1, h2, h3, strong, b, button, a),
body.wingo-screen :where(h1, h2, h3, strong, b, button, a) {
    font-weight: 650;
}

body.user-screen :where(.btn-primary, .btn-soft, .auth-gold-btn, .auth-outline-btn),
body.home-screen :where(.btn-primary, .btn-soft),
body.account-screen :where(.btn-primary, .btn-soft),
body.wingo-screen :where(.btn-primary, .btn-soft, .pick-btn, .multi-btn) {
    font-weight: 700;
}

.app-main {
    padding: 13px 12px 86px;
}

.mobile-page-hero {
    min-height: 124px;
    padding: 16px;
}

.mobile-page-hero > strong {
    font-size: 1.45rem;
    font-weight: 700;
}

.mobile-section {
    margin-top: 13px;
}

.mobile-section.form-section,
.deposit-panel,
.withdraw-panel,
.vip-summary-card {
    padding: 12px;
}

.mobile-section-title {
    margin-bottom: 8px;
}

.mobile-section-title h2 {
    font-size: 0.88rem;
    font-weight: 650;
}

.wallet-bucket {
    min-height: 64px;
    padding: 10px 11px;
}

.wallet-bucket strong,
.mobile-list-value b,
.withdraw-selected-wallet strong {
    font-weight: 650;
}

.bottom-nav {
    min-height: 66px;
    padding-top: 5px;
}

.bottom-nav a {
    min-height: 52px;
    font-size: 0.62rem;
    font-weight: 650;
}

.bottom-nav-icon {
    height: 25px;
}

.bottom-nav-svg {
    width: 20px;
    height: 20px;
}

.bottom-nav-go {
    width: 56px;
    height: 56px;
    border-width: 4px;
}

.bottom-nav-go-svg {
    width: 24px;
    height: 24px;
}

.wingo-phone {
    width: min(100%, 400px);
    padding: 0 10px 18px;
}

.wingo-topbar {
    height: 58px;
    grid-template-columns: 40px 1fr 82px;
    margin: 0 -10px;
    padding: 0 10px;
}

.wingo-icon-btn {
    width: 34px;
    height: 34px;
}

.wingo-icon-btn.small {
    width: 30px;
    height: 30px;
}

.wingo-icon-svg {
    width: 23px;
    height: 23px;
}

.wingo-small-svg {
    width: 16px;
    height: 16px;
}

.wingo-brand-logo {
    width: min(142px, 40vw);
    height: 34px;
}

.wingo-brand strong {
    font-size: 1.08rem;
    font-weight: 750;
}

.wingo-balance-card {
    min-height: 128px;
    margin: 18px 0 10px;
    padding: 15px 18px;
}

.balance-main {
    font-size: 1.18rem;
    font-weight: 1000;
}

.balance-caption {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 650;
}

.balance-refresh {
    flex: 0 0 28px;
}

.balance-buttons {
    gap: 44px;
    margin-top: 18px;
}

.balance-buttons a {
    min-height: 34px;
    font-size: 0.9rem;
    font-weight: 700;
}

.wingo-notice {
    grid-template-columns: 26px minmax(0, 1fr) 72px;
    margin: 8px 2px 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.wingo-notice a {
    height: 22px;
    font-weight: 650;
}

.wingo-period-tabs {
    min-height: 86px;
}

.period-tab {
    padding: 9px 4px 8px;
    font-size: 0.72rem;
}

.period-tab strong {
    font-weight: 700;
}

.period-tab small {
    font-size: 0.7rem;
}

.period-medal {
    width: 33px;
    height: 33px;
}

.wingo-round-card {
    min-height: 94px;
    margin-top: 12px;
}

.round-left,
.round-right {
    padding: 8px 10px;
}

.how-play {
    min-width: 150px;
    height: 24px;
    font-size: 0.72rem;
}

.round-left small {
    margin: 7px 0 7px 6px;
    font-weight: 650;
}

.number-ball.small {
    width: 22px;
    height: 22px;
}

.round-right {
    gap: 6px;
    font-weight: 650;
}

.round-right span,
.round-right > strong {
    font-size: 0.78rem;
}

.timer-boxes b {
    width: 22px;
    height: 30px;
    font-size: 1.08rem;
    font-weight: 750;
}

.wingo-board {
    margin-top: 8px;
    padding: 7px;
}

.color-row {
    gap: 13px;
}

.pick-btn {
    height: 34px;
    font-size: 0.9rem;
    font-weight: 700;
}

.number-grid {
    gap: 8px 9px;
    margin-top: 10px;
    padding: 7px 6px 9px;
}

.number-ball {
    width: 48px;
    height: 48px;
}

.multiplier-row {
    gap: 6px;
    margin-top: 10px;
}

.multi-btn {
    height: 32px;
    font-size: 0.74rem;
}

.big-small-row {
    margin-top: 10px;
}

.big-small-row button {
    height: 36px;
    font-size: 0.9rem;
    font-weight: 700;
}

.history-switch {
    gap: 8px;
    margin-top: 11px;
}

.history-switch button {
    height: 35px;
    font-weight: 650;
}

.result-panel,
.chart-panel,
.my-history-panel {
    margin-top: 11px;
}

.result-panel th,
.result-panel td {
    height: 34px;
    padding: 5px;
    font-size: 0.66rem;
    font-weight: 650;
}

.result-number {
    font-size: 1.35rem;
    font-weight: 750;
}

.history-pager {
    min-height: 58px;
    margin-top: 12px;
    padding: 10px 64px;
}

.history-pager button {
    width: 34px;
    height: 34px;
}

.withdraw-gold-card {
    min-height: 116px;
    padding: 14px 16px;
}

.withdraw-gold-card strong {
    font-size: 1.2rem;
    font-weight: 750;
}

.withdraw-highlight,
.withdraw-panel,
.deposit-panel,
.activity-gift-card,
.vip-rule-list article,
.vip-level-list article {
    margin-top: 11px;
}

.lock-countdown {
    gap: 34px;
    background: rgba(10, 10, 10, 0.72);
}

.lock-countdown span {
    width: 106px;
    height: 164px;
    color: #ffc83d;
    font-size: 6.7rem;
    font-weight: 900;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}

@media (max-width: 360px) {
    .number-ball {
        width: 44px;
        height: 44px;
    }

    .color-row {
        gap: 9px;
    }

    .balance-buttons {
        gap: 28px;
    }
}

/* User panel compact v2: apply the BDG-like density outside Wingo too. */
body.home-screen .app-topbar,
body.user-screen .app-topbar,
body.account-screen .app-topbar {
    min-height: 54px !important;
    padding: 6px 12px !important;
    grid-template-columns: 38px minmax(0, 1fr) minmax(38px, auto) !important;
}

body.home-screen .app-logo strong,
body.user-screen .app-logo strong,
body.account-screen .app-logo strong {
    font-size: 1.06rem !important;
    font-weight: 700 !important;
}

body.home-screen .app-logo-line,
body.user-screen .app-logo-line,
body.account-screen .app-logo-line {
    width: 96px !important;
    margin: 2px 0 !important;
}

body.home-screen .app-topbar-back,
body.home-screen .app-topbar-spacer,
body.user-screen .app-topbar-back,
body.user-screen .app-topbar-spacer,
body.account-screen .app-topbar-back,
body.account-screen .app-topbar-spacer {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.45rem !important;
}

body.home-screen .app-topbar-svg,
body.user-screen .app-topbar-svg,
body.account-screen .app-topbar-svg {
    width: 22px !important;
    height: 22px !important;
}

body.home-screen .app-topbar-action,
body.user-screen .app-topbar-action,
body.account-screen .app-topbar-action {
    max-width: 98px !important;
    font-size: 0.62rem !important;
    font-weight: 600 !important;
}

.home-lobby,
.app-main.user-page,
.account-page,
.deposit-page,
.withdraw-page {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 86px !important;
}

.home-lobby {
    padding-top: 10px !important;
}

.app-main.user-page {
    padding-top: 10px !important;
    min-height: calc(100vh - 54px) !important;
}

.home-hero {
    min-height: 154px !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26) !important;
}

.home-hero-copy {
    min-height: 154px !important;
    gap: 6px !important;
    width: min(76%, 276px) !important;
    padding: 13px !important;
}

.home-hero-copy p {
    font-size: 0.6rem !important;
    font-weight: 650 !important;
}

.home-hero-logo {
    width: min(100%, 208px) !important;
    margin: -5px 0 -3px !important;
}

.home-hero-copy span {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
}

.home-hero-actions {
    gap: 7px !important;
    margin-top: 1px !important;
}

.home-hero-actions a {
    min-height: 31px !important;
    padding: 7px 10px !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
}

.home-notice {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 7px !important;
    margin-top: 8px !important;
    padding: 7px 8px !important;
}

.home-notice > span {
    height: 21px !important;
    font-size: 0.62rem !important;
    font-weight: 650 !important;
}

.home-notice p {
    font-size: 0.7rem !important;
    font-weight: 500 !important;
}

.home-wallet {
    margin-top: 8px !important;
    padding: 11px 12px !important;
    gap: 9px !important;
}

.home-wallet span {
    font-size: 0.66rem !important;
    font-weight: 600 !important;
}

.home-wallet strong {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
}

.home-wallet button {
    width: 32px !important;
    height: 32px !important;
}

.home-quick-grid,
.home-balance-grid,
.home-mini-games,
.home-lottery-cards,
.home-image-cards,
.home-service-band {
    gap: 7px !important;
    margin-top: 8px !important;
}

.home-quick-item {
    min-height: 66px !important;
    gap: 5px !important;
    padding: 8px 4px !important;
}

.quick-svg-badge {
    width: 34px !important;
    height: 34px !important;
}

.home-quick-svg {
    width: 19px !important;
    height: 19px !important;
}

.home-quick-item strong {
    font-size: 0.68rem !important;
    font-weight: 650 !important;
}

.home-balance-grid div {
    padding: 8px 6px !important;
}

.home-balance-grid span {
    font-size: 0.6rem !important;
    font-weight: 500 !important;
}

.home-balance-grid strong {
    font-size: 0.72rem !important;
    font-weight: 650 !important;
}

.home-section {
    margin-top: 12px !important;
}

.home-section-title {
    margin-bottom: 7px !important;
}

.home-section-title span {
    font-size: 0.6rem !important;
    font-weight: 650 !important;
}

.home-section-title h2 {
    font-size: 0.92rem !important;
    font-weight: 650 !important;
}

.home-section-title a {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
}

.home-game-feature {
    grid-template-columns: 88px minmax(0, 1fr) 42px !important;
    gap: 8px !important;
    min-height: 98px !important;
    padding: 8px !important;
}

.home-game-feature img {
    width: 88px !important;
    height: 82px !important;
}

.home-game-feature span {
    font-size: 0.64rem !important;
    font-weight: 650 !important;
}

.home-game-feature strong {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}

.home-game-feature small {
    margin-top: 4px !important;
    font-size: 0.64rem !important;
    font-weight: 500 !important;
}

.home-game-feature b {
    height: 29px !important;
    font-size: 0.7rem !important;
    font-weight: 650 !important;
}

.home-mini-games a {
    min-height: 67px !important;
}

.home-mini-games img {
    width: 38px !important;
    height: 38px !important;
}

.home-mini-games span {
    font-size: 0.66rem !important;
    font-weight: 600 !important;
}

.home-lottery-cards a {
    min-height: 108px !important;
    padding: 9px !important;
}

.home-lottery-cards span {
    width: 43px !important;
    height: 43px !important;
    margin-bottom: 7px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.home-lottery-cards strong {
    font-size: 0.72rem !important;
    font-weight: 650 !important;
}

.home-winning-ticker {
    height: 224px !important;
}

.home-winning-row {
    grid-template-columns: 36px minmax(70px, 1fr) 58px minmax(0, 1fr) !important;
    gap: 7px !important;
    min-height: 52px !important;
    padding: 6px 8px !important;
}

.home-winner-avatar {
    width: 33px !important;
    height: 33px !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
}

.home-winning-row > strong,
.home-winning-row b,
.home-winning-row small {
    font-weight: 550 !important;
}

.home-winning-row img {
    width: 58px !important;
    height: 34px !important;
}

.home-winning-row b {
    font-size: 0.68rem !important;
}

.home-winning-row small {
    font-size: 0.58rem !important;
}

.home-image-cards a {
    min-height: 136px !important;
}

.home-image-cards div {
    left: 9px !important;
    right: 9px !important;
    bottom: 9px !important;
}

.home-image-cards strong {
    font-size: 0.84rem !important;
    font-weight: 650 !important;
}

.home-image-cards span {
    font-size: 0.66rem !important;
    font-weight: 500 !important;
}

.home-service-band a {
    min-height: 58px !important;
    padding: 8px 7px !important;
}

.home-service-band span,
.home-service-band strong {
    font-weight: 550 !important;
}

.home-service-band span {
    font-size: 0.58rem !important;
}

.home-service-band strong {
    font-size: 0.74rem !important;
}

body.home-screen {
    background: #969aa7 !important;
}

body.home-screen .app-topbar {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 43px !important;
    margin: 0 !important;
    padding: 3px 12px !important;
}

body.home-screen .app-logo strong {
    font-size: 0.9rem !important;
}

body.home-screen .app-logo-line {
    width: 78px !important;
    margin: 1px 0 !important;
}

body.home-screen .bottom-nav {
    width: min(100%, 372px) !important;
    margin: 0 auto !important;
}

body.home-screen .home-hero {
    margin-bottom: 8px !important;
}

.home-lobby {
    width: min(100%, 372px) !important;
    min-height: 100vh !important;
    padding: 10px 10px 88px !important;
    background: #232323 !important;
}

.home-member-bar {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    padding: 0 8px;
    color: #171717;
    border: 1px solid #fff0a8;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff2ad, #d9a536);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 2px 5px rgba(0, 0, 0, 0.26);
}

.home-member-icon {
    display: grid;
    place-items: center;
}

.home-member-svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.4;
}

.home-member-bar strong,
.home-member-balance {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 850;
}

.home-member-balance {
    font-weight: 750;
}

.home-member-bar button {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    padding: 0;
    color: #171717;
    border: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.45);
}

.home-member-chevron {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-category-section {
    margin-top: 8px !important;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
}

.home-category-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 98px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: #2e210b;
    border: 1px solid rgba(255, 244, 181, 0.76);
    border-radius: 10px;
    background:
        linear-gradient(145deg, rgba(255, 247, 193, 0.98), rgba(219, 166, 58, 0.98)),
        #e7b94f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 3px 7px rgba(0, 0, 0, 0.3);
    isolation: isolate;
}

.home-category-card::after {
    position: absolute;
    right: -18%;
    bottom: -40%;
    width: 85%;
    height: 90%;
    border-radius: 50%;
    background: rgba(255, 246, 185, 0.22);
    content: "";
    transform: rotate(-16deg);
    z-index: 0;
}

.home-category-card:hover,
.home-category-card:focus-visible {
    color: #241700;
    border-color: #fff5bd;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.home-category-art {
    position: absolute;
    inset: 0 0 20px;
    display: block;
    width: 100%;
    height: calc(100% - 20px);
    object-fit: contain;
    object-position: center bottom;
    filter: saturate(1.08) contrast(1.03) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
    z-index: 0;
}

.home-category-card strong {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 23px;
    padding: 4px 3px 5px;
    background: linear-gradient(180deg, rgba(255, 233, 137, 0.9), rgba(225, 178, 57, 0.98));
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 242, 170, 0.72);
    font-size: 0.7rem;
    font-weight: 1000;
}

.category-lottery { grid-column: span 2; }
.category-original { grid-column: span 2; }
.category-slots { grid-column: span 2; }
.category-wide { grid-column: span 2; min-height: 99px; }
.category-double { grid-column: span 3; min-height: 80px; }

.home-wingo-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px;
    grid-template-rows: auto auto auto;
    gap: 8px;
    min-height: 226px;
    overflow: hidden;
    padding: 12px;
    color: #ffffff;
    border: 1px solid rgba(255, 226, 117, 0.42);
    border-radius: 12px;
    background: #15071e;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42), 0 0 28px rgba(255, 196, 61, 0.12);
}

.home-wingo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    filter: saturate(1.25) contrast(1.1);
}

.home-wingo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 3, 13, 0.94), rgba(9, 3, 13, 0.46)),
        linear-gradient(180deg, rgba(255, 214, 93, 0.1), rgba(255, 31, 78, 0.18));
}

.home-wingo-glow {
    position: absolute;
    right: -54px;
    top: -54px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 84, 0.45), transparent 64%);
}

.home-wingo-logo {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    justify-self: center;
    width: min(82%, 286px);
    max-height: 116px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.48));
}

.home-wingo-info {
    position: relative;
    z-index: 1;
    min-width: 0;
    align-self: end;
}

.home-wingo-info span {
    display: block;
    color: #ffdd6f;
    text-transform: uppercase;
    font-size: 0.64rem;
    font-weight: 950;
}

.home-wingo-info strong {
    display: block;
    color: #ffffff;
    font-size: 1.34rem;
    line-height: 1;
    font-weight: 1000;
}

.home-wingo-info small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    line-height: 1.22;
    font-weight: 750;
}

.home-wingo-rounds {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    align-self: end;
}

.home-wingo-rounds b {
    display: grid;
    place-items: center;
    min-height: 28px;
    color: #2d1300;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff5a9, #ffbd32);
    font-size: 0.7rem;
    font-weight: 1000;
}

.home-wingo-card em {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 38px;
    color: #fff8d2;
    border: 1px solid rgba(255, 236, 158, 0.58);
    border-radius: 999px;
    background: linear-gradient(135deg, #e12249, #ff7a1a);
    box-shadow: 0 10px 18px rgba(255, 50, 72, 0.28);
    font-style: normal;
    font-size: 0.88rem;
    font-weight: 1000;
}

.home-winhouse-promo {
    margin-top: 14px;
}

.home-winhouse-card {
    min-height: 132px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    background:
        linear-gradient(115deg, rgba(4, 32, 54, 0.96), rgba(12, 83, 105, 0.7)),
        radial-gradient(circle at 85% 18%, rgba(69, 219, 255, 0.34), transparent 36%),
        #061521;
}

.home-winhouse-card::before {
    background:
        linear-gradient(90deg, rgba(2, 14, 23, 0.78), rgba(2, 14, 23, 0.16)),
        linear-gradient(180deg, rgba(44, 198, 235, 0.1), rgba(20, 224, 153, 0.18));
}

.home-winhouse-card em {
    background: linear-gradient(135deg, #0796d4, #19c98d);
    box-shadow: 0 10px 18px rgba(8, 190, 181, 0.24);
}

.winhouse-page {
    width: 100%;
    max-width: none;
    padding: 0 0 86px;
}

.winhouse-book {
    width: 100%;
    min-height: calc(100vh - 128px);
    overflow: hidden;
    background: #101419;
}

.winhouse-book > div {
    width: 100%;
}

@media (max-width: 900px) {
    .winhouse-page {
        padding-bottom: 76px;
    }

    .winhouse-book {
        min-height: calc(100dvh - 132px);
    }
}

/* Popular game lobby: image labels remain HTML so names and RTP can be changed
   without replacing the game artwork. */
.home-popular-games {
    margin-top: 14px !important;
}

.popular-games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.popular-game-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 225, 129, 0.24);
    border-radius: 8px;
    background: #21112d;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

a.popular-game-card {
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

a.popular-game-card:hover,
a.popular-game-card:focus-visible {
    color: #fff;
    border-color: #ffd45e;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.4), 0 0 14px rgba(255, 199, 61, 0.2);
    transform: translateY(-2px);
}

.popular-game-art {
    display: block;
    aspect-ratio: 1 / 1;
    background-image: url("../images/home/popular-games-sprite.png");
    background-position: calc(var(--game-x) * 50%) calc(var(--game-y) * 33.333%);
    background-size: 300% 400%;
    background-repeat: no-repeat;
}

.popular-game-art.has-betnex-image {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #171026;
}

.popular-game-art.has-betnex-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-game-card strong {
    display: block;
    min-height: 31px;
    padding: 5px 5px 3px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.66rem;
    font-weight: 950;
}

.popular-game-card small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 19px;
    padding: 2px 5px;
    color: #3b2600;
    background: linear-gradient(90deg, #fff0a4, #d59c27 74%, #fff2ae);
    font-size: 0.56rem;
    font-weight: 900;
}

.popular-game-card small b {
    color: #fff;
    font-size: 0.53rem;
}

.popular-game-card.is-demo em {
    position: absolute;
    top: 7px;
    right: -24px;
    padding: 3px 24px;
    color: #fff7d4;
    background: rgba(28, 99, 125, 0.93);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.32);
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 900;
    transform: rotate(38deg);
}

.popular-game-card.is-betnex em {
    position: absolute;
    top: 7px;
    right: 7px;
    padding: 3px 5px;
    color: #fff7d4;
    background: rgba(28, 99, 125, 0.93);
    border-radius: 3px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.32);
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 900;
}

/* Safe, client-side practice screen used for lobby games without a provider. */
.demo-game-page {
    display: grid;
    min-height: calc(100vh - 140px);
    place-items: center;
    padding: 24px 16px 104px;
}

.demo-game-card {
    width: min(100%, 390px);
    padding: 22px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(255, 218, 111, 0.42);
    border-radius: 22px;
    background: linear-gradient(155deg, #30134c, #12081e 72%);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42);
}

.demo-game-label {
    display: inline-block;
    padding: 6px 11px;
    color: #fff2ad;
    border: 1px solid rgba(255, 222, 116, 0.35);
    border-radius: 999px;
    background: rgba(255, 195, 44, 0.1);
    font-size: 0.7rem;
    font-weight: 800;
}

.demo-game-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 126px;
    margin: 16px 0;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 35%, #a644db, #19102c 68%);
}

.demo-game-visual span {
    display: grid;
    width: 58px;
    height: 70px;
    place-items: center;
    color: #371060;
    border-radius: 10px;
    background: linear-gradient(135deg, #fffbe6, #ffc640);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.32);
    font-size: 2rem;
    font-weight: 1000;
    transform: rotate(-7deg);
}

.demo-game-visual span:nth-child(2) { transform: translateY(-8px); }
.demo-game-visual span:nth-child(3) { transform: rotate(7deg); }
.demo-game-card h1 { margin: 0; color: #ffe168; font-size: 1.45rem; font-weight: 1000; }
.demo-game-card p { margin: 9px 4px 18px; color: #d8cce4; font-size: 0.8rem; line-height: 1.45; }
.demo-credit-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 11px; background: rgba(255, 255, 255, 0.08); font-size: 0.78rem; }
.demo-credit-row strong { color: #ffd65e; font-size: 1.1rem; }
.demo-bet-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.demo-bet-options button { padding: 9px 3px; color: #f4eaff; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: #28143e; font-size: .76rem; font-weight: 900; }
.demo-bet-options button.active { color: #301400; border-color: #ffd560; background: linear-gradient(135deg, #ffe47d, #f8a82f); }
.demo-play-button { width: 100%; padding: 13px; color: #441400; border: 0; border-radius: 12px; background: linear-gradient(135deg, #ffe16e, #ff9d27); box-shadow: 0 8px 17px rgba(251, 145, 28, .25); font-weight: 1000; }
.demo-game-result { display: block; min-height: 24px; margin: 13px 0 0; color: #bdefff; font-size: .78rem; font-weight: 800; }

.home-mini-games {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.home-mini-games a {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        #251032 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22) !important;
}

.home-banner-slider {
    position: relative !important;
    min-height: 0 !important;
    aspect-ratio: 2.18 / 1 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 220, 112, 0.32) !important;
    border-radius: 8px !important;
    background: #130719 !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38), 0 0 18px rgba(255, 196, 61, 0.14) !important;
}

.home-banner-slider::after {
    display: none !important;
}

.home-banner-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.32s ease, transform 0.52s ease;
}

.home-banner-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.home-banner-slide img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

.home-banner-dots {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 7px;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}

.home-banner-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
    pointer-events: auto;
}

.home-banner-dots button.active {
    width: 18px;
    border-radius: 999px;
    background: #ffc43d;
}

.home-lottery-cards {
    gap: 8px !important;
    margin-top: 10px !important;
}

.home-lottery-cards a {
    min-height: 118px !important;
    padding: 9px !important;
    border: 1px solid rgba(255, 219, 99, 0.28) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.32) !important;
}

.home-lottery-cards a::before {
    opacity: 0.9 !important;
    filter: saturate(1.25) contrast(1.08) !important;
}

.home-lottery-cards a::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72)),
        radial-gradient(circle at 84% 18%, rgba(255, 214, 83, 0.24), transparent 26%);
}

.home-lottery-cards span {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 7px !important;
    font-size: 0.95rem !important;
    border-width: 2px !important;
}

.home-lottery-cards strong {
    max-width: 96%;
    color: #ffe27a !important;
    font-size: 0.76rem !important;
    line-height: 1.1 !important;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.76) !important;
}

.home-title-accent {
    margin-top: 15px !important;
    padding-left: 9px !important;
}

.home-title-accent::before {
    top: 4px !important;
    bottom: 3px !important;
    width: 4px !important;
    background: linear-gradient(180deg, #ffe978, #ff6b1a) !important;
}

.home-winning-ticker {
    height: 216px !important;
    padding: 0 !important;
}

.home-winning-track {
    gap: 7px !important;
}

.home-winning-row {
    grid-template-columns: 38px minmax(78px, 1fr) 58px minmax(0, 1fr) !important;
    min-height: 48px !important;
    padding: 7px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 7px !important;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        #302f30 !important;
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2) !important;
}

.home-winner-avatar {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 7px 12px rgba(0, 0, 0, 0.24) !important;
}

.home-winning-row > strong {
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 850 !important;
}

.home-winning-row img {
    width: 58px !important;
    height: 34px !important;
    border: 1px solid rgba(255, 220, 112, 0.22) !important;
    border-radius: 6px !important;
    filter: saturate(1.25) !important;
}

.home-winning-row b {
    color: #ffe27a !important;
    font-size: 0.66rem !important;
    font-weight: 950 !important;
}

.home-winning-row small {
    color: #d2cbd8 !important;
    font-size: 0.56rem !important;
    font-weight: 650 !important;
}

.home-image-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
}

.home-image-cards a {
    min-height: 124px !important;
    border: 1px solid rgba(255, 220, 112, 0.22) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
}

.home-image-cards a:nth-child(3) {
    grid-column: span 1;
}

.home-image-cards img {
    filter: saturate(1.18) contrast(1.06) !important;
}

.home-image-cards a::after {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78)),
        radial-gradient(circle at 85% 12%, rgba(255, 210, 83, 0.2), transparent 28%) !important;
}

.home-image-cards div {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
}

.home-image-cards strong {
    color: #ffffff !important;
    font-size: 0.82rem !important;
    line-height: 1.05 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75) !important;
}

.home-image-cards span {
    margin-top: 2px;
    color: #ffe27a !important;
    font-size: 0.58rem !important;
    line-height: 1.1 !important;
    font-weight: 750 !important;
}

.home-service-band {
    gap: 7px !important;
    margin-top: 10px !important;
}

.home-service-band a {
    min-height: 54px !important;
    padding: 8px 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(42, 28, 55, 0.9) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22) !important;
}

.home-service-band span {
    color: #cbc1d3 !important;
    font-size: 0.56rem !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;
}

.home-service-band strong {
    color: #ffe27a !important;
    font-size: 0.7rem !important;
    font-weight: 900 !important;
}

.mobile-page-hero,
.deposit-gold-card,
.withdraw-gold-card,
.account-hero {
    min-height: 112px !important;
    padding: 14px !important;
}

.account-hero {
    min-height: 154px !important;
    margin: 0 -10px !important;
    padding-bottom: 58px !important;
    border-radius: 0 0 16px 16px !important;
}

.account-avatar {
    width: 54px !important;
    height: 54px !important;
}

.account-identity {
    gap: 10px !important;
}

.account-wallet-card {
    margin-top: -40px !important;
    padding: 13px 12px !important;
}

.account-wallet-actions {
    padding-top: 10px !important;
}

.account-history-grid,
.account-menu-list {
    margin-top: 12px !important;
}

.account-history-grid a {
    min-height: 62px !important;
    padding: 9px !important;
}

.account-menu-list a,
.account-menu-list button {
    min-height: 48px !important;
    font-size: 0.76rem !important;
}

.deposit-topbar {
    min-height: 52px !important;
    margin-bottom: 8px !important;
    padding: 6px 10px !important;
}

.deposit-gold-card strong,
.withdraw-gold-card strong,
.mobile-page-hero > strong {
    font-size: 1.22rem !important;
    font-weight: 700 !important;
}

.deposit-channel-grid button {
    min-height: 64px !important;
    gap: 5px !important;
}

.deposit-channel-icon,
.withdraw-method-icon {
    width: 30px !important;
    height: 30px !important;
}

.deposit-panel,
.withdraw-panel,
.withdraw-history-section,
.mobile-section.form-section,
.vip-summary-card {
    gap: 9px !important;
    margin-top: 10px !important;
    padding: 11px !important;
}

.deposit-panel-title h2,
.withdraw-highlight strong,
.vip-summary-card strong {
    font-size: 0.84rem !important;
    font-weight: 650 !important;
}

.deposit-pay-panel .deposit-qr-box {
    width: min(100%, 260px) !important;
    padding: 12px !important;
}

.deposit-pay-panel .deposit-upi-box {
    min-height: 76px !important;
}

.withdraw-highlight,
.withdraw-method-grid button {
    min-height: 58px !important;
}

.withdraw-highlight {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    padding: 9px 10px !important;
}

.withdraw-highlight > span {
    width: 34px !important;
    height: 34px !important;
}

.withdraw-method-grid {
    gap: 7px !important;
    margin-top: 9px !important;
}

.withdraw-method-grid button {
    min-height: 70px !important;
    gap: 5px !important;
}

.withdraw-rule-link,
.withdraw-submit-btn,
.deposit-proceed-btn,
.deposit-submit-btn {
    min-height: 38px !important;
    font-weight: 650 !important;
}

.mobile-list-row {
    min-height: 58px !important;
    padding: 9px 10px !important;
}

.promo-stat-grid > div,
.wallet-bucket,
.vip-rule-list article,
.vip-level-list article {
    padding: 10px !important;
}

.promo-stat-grid strong,
.wallet-bucket strong,
.vip-level-list strong,
.mobile-list-row strong {
    font-weight: 650 !important;
}

/* Wingo my history: compact one-row record layout. */
.wingo-screen .my-history-list {
    gap: 0 !important;
    overflow: hidden;
    border-radius: 6px;
    background: #30302f;
}

.wingo-screen .my-history-card {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) 86px !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 82px !important;
    padding: 10px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 0 !important;
    background: #30302f !important;
}

.wingo-screen .my-history-card:last-child {
    border-bottom: 0 !important;
}

.wingo-screen .history-selection {
    min-width: 0 !important;
    width: 54px !important;
    height: 54px !important;
    padding: 0 5px !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    background: linear-gradient(180deg, #f5ad3e, #e7912d) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: capitalize !important;
}

.wingo-screen .history-selection.badge-small {
    background: linear-gradient(180deg, #5c99e6, #4a7fc8) !important;
}

.wingo-screen .history-selection.badge-big {
    background: linear-gradient(180deg, #f5ad3e, #e7912d) !important;
}

.wingo-screen .history-selection.badge-green {
    background: linear-gradient(180deg, #22c875, #139754) !important;
}

.wingo-screen .history-selection.badge-red {
    background: linear-gradient(180deg, #ef4b52, #ce3038) !important;
}

.wingo-screen .history-selection.badge-violet {
    background: linear-gradient(180deg, #ac55e9, #8438c7) !important;
}

.wingo-screen .history-entry-main {
    min-width: 0 !important;
}

.wingo-screen .history-entry-main strong {
    display: block !important;
    overflow: hidden !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.wingo-screen .history-entry-main small {
    display: block !important;
    margin-top: 6px !important;
    color: #9d9d9d !important;
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.wingo-screen .history-entry-result {
    display: grid !important;
    justify-items: end !important;
    align-content: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    text-align: right !important;
}

.wingo-screen .history-detail-link {
    position: static !important;
    display: inline-grid !important;
    place-items: center !important;
    min-width: 58px !important;
    height: 25px !important;
    padding: 0 8px !important;
    color: #ffd56d !important;
    border: 1px solid #c99218 !important;
    border-radius: 999px !important;
    background: transparent !important;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.wingo-screen .history-entry-result .entry-status {
    display: inline-grid !important;
    place-items: center !important;
    min-width: 72px !important;
    height: 28px !important;
    padding: 0 9px !important;
    border-radius: 5px !important;
    background: rgba(26, 153, 87, 0.1) !important;
    border: 1px solid rgba(49, 207, 127, 0.55) !important;
    color: #25c878 !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
}

.wingo-screen .history-entry-result .entry-status.lose {
    background: rgba(239, 68, 79, 0.1) !important;
    border-color: rgba(255, 78, 85, 0.58) !important;
    color: #ff565e !important;
}

.wingo-screen .history-entry-result .entry-status.pending {
    background: rgba(244, 199, 90, 0.1) !important;
    border-color: rgba(244, 199, 90, 0.55) !important;
    color: #f4c75a !important;
}

.wingo-screen .history-entry-result small {
    margin: 0 !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.wingo-screen .history-entry-result small.win {
    color: #25d47d !important;
}

.wingo-screen .history-entry-result small.lose {
    color: #ff565e !important;
}

@media (max-width: 360px) {
    .wingo-screen .my-history-card {
        grid-template-columns: 52px minmax(0, 1fr) 78px !important;
        gap: 8px !important;
        padding: 9px 8px !important;
    }

    .wingo-screen .history-selection {
        width: 50px !important;
        height: 50px !important;
        font-size: 0.7rem !important;
    }

    .wingo-screen .history-entry-main strong {
        font-size: 0.76rem !important;
    }

    .wingo-screen .history-entry-result .entry-status {
        min-width: 66px !important;
        font-size: 0.66rem !important;
    }
}

/* Deposit channel artwork */
.deposit-screen .deposit-channel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.deposit-screen .deposit-channel-grid.has-manual {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.deposit-screen .deposit-channel-grid button {
    min-width: 0;
    min-height: 92px !important;
    padding: 9px 5px;
    gap: 4px !important;
}

.deposit-screen .deposit-channel-icon {
    width: 48px !important;
    height: 48px !important;
    overflow: visible;
    background: transparent;
}

.deposit-screen .deposit-channel-icon img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
}

.deposit-screen .deposit-channel-grid b {
    min-height: 0;
    font-size: 0.7rem;
    line-height: 1.1;
    white-space: nowrap;
}

.deposit-screen .deposit-amount-grid button[hidden] {
    display: none;
}

/* Keep WinGo color names readable on their colored buttons. */
.wingo-screen .color-row .pick-btn {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.wingo-screen .color-row .pick-btn:disabled {
    opacity: 1;
    filter: none;
    box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.19);
}

.deposit-history-page {
    padding-top: 16px;
}

.deposit-history-page h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
}

.deposit-history-tabs {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.deposit-history-tabs a {
    flex: 0 0 auto;
    padding: 9px 13px;
    color: #d6ccd8;
    border-radius: 7px;
    background: #333132;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.deposit-history-tabs a.active {
    color: #653b0a;
    background: linear-gradient(110deg, #ffedab, #d5a044);
}

.deposit-history-filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 12px;
}

.deposit-history-filters select,
.deposit-history-filters input,
.deposit-history-filters button {
    min-width: 0;
    min-height: 38px;
    padding: 0 9px;
    color: #e9e1e9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: #323032;
    font-size: 0.7rem;
}

.deposit-history-filters button {
    color: #56360b;
    border: 0;
    background: #f1cb72;
    font-weight: 800;
}

.deposit-history-cards {
    display: grid;
    gap: 12px;
    padding-bottom: 18px;
}

.deposit-history-card {
    padding: 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: #303031;
}

.deposit-history-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.deposit-history-card-head strong {
    padding: 5px 10px;
    border-radius: 5px;
    background: #11a45c;
    font-size: 0.72rem;
}

.deposit-history-card-head .user-status {
    margin: 0;
    font-size: 0.68rem;
}

.deposit-history-card dl {
    display: grid;
    gap: 11px;
    margin: 12px 0 14px;
}

.deposit-history-card dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.deposit-history-card dt,
.deposit-history-card dd {
    margin: 0;
    font-size: 0.72rem;
}

.deposit-history-card dt { color: #c6bdc6; }
.deposit-history-card dd { color: #f5e9d5; text-align: right; }
.deposit-history-card dl > div:first-child dd { color: #ffd16f; font-weight: 800; }
.deposit-history-order { overflow-wrap: anywhere; }

.deposit-history-reason {
    margin: 0 0 12px;
    color: #ffadb8;
    font-size: 0.7rem;
}

.deposit-history-result {
    padding: 9px;
    border-radius: 999px;
    color: #44300f;
    background: #e6b75d;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.deposit-history-result.approved { color: #fff; background: #11a45c; }
.deposit-history-result.rejected { color: #fff; background: #c54250; }

@media (max-width: 380px) {
    .deposit-history-filters { grid-template-columns: 1fr 1fr; }
    .deposit-history-filters button { grid-column: 1 / -1; }
}

/* Keep the shared site header compact on every page. */
body .app-topbar {
    width: 100% !important;
    max-width: none !important;
    min-height: 43px !important;
    margin: 0 !important;
    padding: 3px 12px !important;
    grid-template-columns: 38px minmax(0, 1fr) minmax(38px, auto) !important;
}

body .app-logo strong {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}

body .app-logo-line {
    width: 78px !important;
    margin: 1px 0 !important;
}

body .app-topbar-back,
body .app-topbar-spacer {
    width: 32px !important;
    height: 32px !important;
}

body .app-topbar-svg {
    width: 20px !important;
    height: 20px !important;
}

body .app-topbar-action {
    max-width: 98px !important;
    font-size: 0.62rem !important;
}
