:root{
    --blue:#0757d8;
    --blue-2:#0b72ee;
    --blue-dark:#073a9c;
    --navy:#082c72;
    --sky:#eaf4ff;
    --green:#19b85a;
    --orange:#ffab00;
    --purple:#7b35d6;
    --red:#ef3340;
    --ink:#10245a;
    --muted:#6c7c9d;
    --line:#d9e7f7;
    --bg:#f4f8fd;
    --white:#fff;
    --shadow:0 8px 28px rgba(22,63,122,.10);
}

*{box-sizing:border-box}

html,body{
    min-height:100%;
    margin:0
}

body{
    background:var(--bg);
    color:var(--ink);
    font-family:Inter,Segoe UI,Arial,sans-serif;
    font-size:14px;
    overflow-x:hidden
}

button,input,select{
    font:inherit
}

button{
    cursor:pointer
}

/* =========================================================
   LOTTERY MARK
   ========================================================= */

.lottery-mark{
    position:relative;
    width:54px;
    height:48px;
    flex:0 0 auto
}

.lottery-mark.large{
    width:86px;
    height:76px
}

.ball{
    position:absolute;
    width:31px;
    height:31px;
    display:grid;
    place-items:center;
    border-radius:50%;
    color:#fff;
    font-weight:900;
    font-size:16px;
    border:3px solid #fff;
    box-shadow:0 4px 10px rgba(0,0,0,.18);
    text-shadow:0 1px 2px rgba(0,0,0,.35)
}

.ball-7{
    left:0;
    top:11px;
    background:linear-gradient(145deg,#f44336,#c91524)
}

.ball-8{
    left:17px;
    top:0;
    background:linear-gradient(145deg,#27c96b,#008c45)
}

.ball-3{
    right:0;
    top:12px;
    background:linear-gradient(145deg,#ffe45b,#ef9d00);
    color:#0b2b68
}

.lottery-mark.large .ball{
    width:49px;
    height:49px;
    font-size:24px
}

.lottery-mark.large .ball-7{
    left:0;
    top:18px
}

.lottery-mark.large .ball-8{
    left:28px;
    top:0
}

.lottery-mark.large .ball-3{
    right:0;
    top:18px
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-page{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:26px;
    background:
        radial-gradient(circle at 18% 20%,rgba(42,161,255,.35),transparent 28%),
        radial-gradient(circle at 82% 80%,rgba(0,67,183,.45),transparent 34%),
        linear-gradient(135deg,#062b78 0%,#075bd7 52%,#008cf0 100%)
}

.login-shell{
    width:min(1060px,100%);
    min-height:640px;
    display:grid;
    grid-template-columns:1.02fr .98fr;
    background:#fff;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 28px 80px rgba(0,25,85,.35);
    animation:cardIn .55s ease both
}

@keyframes cardIn{
    from{
        opacity:0;
        transform:translateY(18px) scale(.985)
    }
    to{
        opacity:1;
        transform:none
    }
}

.login-art{
    position:relative;
    overflow:hidden;
    padding:42px 44px;
    color:#fff;
    background:
        radial-gradient(circle at 70% 25%,rgba(255,255,255,.16),transparent 22%),
        linear-gradient(155deg,#0757d8,#0b8df1)
}

.login-brand-lockup{
    display:flex;
    align-items:center;
    gap:14px;
    position:relative;
    z-index:3
}

.login-brand-text{
    display:flex;
    flex-direction:column;
    line-height:.96
}

.login-brand-text strong{
    font-size:13px;
    letter-spacing:.08em
}

.login-brand-text b{
    font-size:30px;
    letter-spacing:.02em;
    color:#ffe500
}

.login-brand-text span{
    font-size:11px;
    letter-spacing:.18em
}

.login-art-copy{
    position:relative;
    z-index:3;
    margin-top:155px;
    max-width:430px
}

.login-art-copy h1{
    font-size:48px;
    line-height:1.04;
    font-weight:900;
    margin:0 0 16px;
    text-shadow:0 3px 10px rgba(0,0,0,.15)
}

.login-art-copy h1 span{
    color:#ffe500
}

.login-art-copy p{
    font-size:17px;
    opacity:.9
}

.sunburst{
    position:absolute;
    width:260px;
    height:260px;
    left:40px;
    top:170px;
    border-radius:50%;
    background:repeating-conic-gradient(
        from 0deg,
        rgba(255,229,0,.95) 0 8deg,
        transparent 8deg 18deg
    );
    opacity:.9;
    filter:drop-shadow(0 10px 12px rgba(0,0,0,.08))
}

.login-landscape{
    position:absolute;
    left:-5%;
    right:-5%;
    bottom:-5px;
    height:190px
}

.mountain{
    position:absolute;
    bottom:0;
    display:block;
    clip-path:polygon(50% 0,100% 100%,0 100%);
    background:#0b65bc
}

.m1{
    left:-5%;
    width:62%;
    height:160px
}

.m2{
    left:30%;
    width:58%;
    height:190px;
    background:#0a4ea8
}

.m3{
    right:-10%;
    width:52%;
    height:140px;
    background:#2aa1d2
}

.building{
    position:absolute;
    bottom:0;
    left:47%;
    width:92px;
    height:84px;
    background:#f7d39a;
    border:5px solid #d89955;
    border-bottom:0;
    border-radius:8px 8px 0 0
}

.building:before{
    content:"";
    position:absolute;
    left:30px;
    top:-38px;
    width:26px;
    height:42px;
    background:#e5a75e;
    border:4px solid #d89955;
    border-bottom:0;
    border-radius:16px 16px 0 0
}

.building:after{
    content:"";
    position:absolute;
    left:38px;
    bottom:0;
    width:18px;
    height:35px;
    background:#8b5638
}

.login-card{
    padding:55px 62px 34px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:#fff
}

.mobile-login-logo{
    display:none
}

.login-heading{
    text-align:center;
    margin-bottom:28px
}

.login-heading h2{
    font-size:32px;
    font-weight:900;
    color:#123b8b;
    margin:0 0 5px
}

.login-heading p{
    margin:0;
    color:var(--muted);
    font-size:15px
}

.field-label{
    display:block;
    font-size:13px;
    font-weight:800;
    color:#173a7a;
    margin:0 0 7px
}

.input-icon-wrap{
    position:relative;
    margin-bottom:17px
}

.field-icon{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#5c79a7;
    font-size:13px;
    z-index:2
}

.modern-input{
    min-height:49px;
    border:1px solid #c8dcf4!important;
    border-radius:11px!important;
    padding-left:42px!important;
    color:#123b8b!important;
    box-shadow:none!important;
    background:#fbfdff!important
}

.modern-input:focus{
    border-color:#0b72ee!important;
    box-shadow:0 0 0 4px rgba(11,114,238,.10)!important
}

.password-toggle{
    position:absolute;
    right:8px;
    top:7px;
    width:36px;
    height:36px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:#5c79a7
}

.login-options{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:2px 0 20px;
    color:#36517d;
    font-size:12px
}

.login-options label{
    display:flex;
    gap:5px;
    align-items:center
}

.login-options input{
    accent-color:var(--blue)
}

.login-help{
    color:var(--blue);
    font-weight:700
}

.login-submit{
    width:100%;
    min-height:51px;
    border:0;
    border-radius:10px;
    color:#fff;
    background:linear-gradient(135deg,#0870ef,#0755cf);
    box-shadow:0 7px 18px rgba(7,87,216,.25);
    font-size:16px;
    font-weight:800;
    transition:transform .15s,box-shadow .15s
}

.login-submit:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(7,87,216,.30)
}

.login-submit span{
    font-size:22px;
    vertical-align:-2px;
    margin-right:7px
}

.login-error{
    min-height:24px;
    color:#d62939;
    text-align:center;
    margin-top:12px;
    font-weight:600
}

.login-footer{
    text-align:center;
    margin-top:auto;
    padding-top:20px;
    color:#7890b2;
    font-size:11px
}

.login-footer strong{
    display:block;
    color:#173a7a;
    font-size:12px;
    margin-bottom:4px
}

/* =========================================================
   APP SHELL
   ========================================================= */

#system{
    min-height:100vh;
    background:var(--bg)
}

.sidebar{
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:255px;
    background:linear-gradient(180deg,#062e78 0%,#063f9d 58%,#0757d8 100%);
    color:#fff;
    padding:18px 14px;
    display:flex;
    flex-direction:column;
    z-index:1050;
    transform:translateX(0);
    transition:transform .25s ease;
    overflow-y:auto;
    overflow-x:hidden;
    box-shadow:8px 0 26px rgba(0,38,108,.14)
}

.sidebar-logo{
    display:flex;
    align-items:center;
    gap:10px;
    padding:4px 9px 18px;
    border-bottom:1px solid rgba(255,255,255,.15)
}

.sidebar-logo>div:last-child,
.user-info,
.top-user>div:last-child,
.topbar-title-wrap,
.topbar-brand-text{
    display:flex;
    flex-direction:column
}

.sidebar-logo>div:last-child{
    line-height:1
}

.sidebar-logo strong{
    font-size:9px;
    letter-spacing:.1em
}

.sidebar-logo b{
    font-size:19px;
    color:#ffe600;
    letter-spacing:.03em
}

.sidebar-logo small{
    font-size:8px;
    letter-spacing:.12em
}

.sidebar-section-title{
    font-size:9px;
    letter-spacing:.13em;
    color:#a9c8f7;
    font-weight:800;
    margin:18px 10px 7px
}

.nav-btn{
    border:0;
    background:transparent;
    color:#dbe9ff;
    text-align:left;
    padding:10px 12px;
    border-radius:11px;
    margin:2px 0;
    font-size:13px;
    width:100%;
    display:flex;
    align-items:center;
    gap:11px;
    transition:.18s
}

.nav-btn span{
    width:21px;
    text-align:center;
    font-size:17px;
    opacity:.9
}

.nav-btn:hover,
.nav-btn.active{
    background:#fff;
    color:#0757d8;
    box-shadow:0 5px 14px rgba(0,0,0,.10)
}

.sidebar-close{
    display:none
}

.sidebar-bottom{
    margin-top:auto;
    padding:13px 5px 3px;
    border-top:1px solid rgba(255,255,255,.16)
}

.sidebar-user,
.top-user{
    display:flex;
    align-items:center;
    gap:9px
}

.user-avatar{
    width:35px;
    height:35px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#fff;
    color:#0757d8;
    font-weight:900;
    border:2px solid rgba(255,255,255,.6)
}

.user-info{
    min-width:0
}

.user-info strong{
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.user-info small{
    font-size:10px;
    color:#a9c8f7
}

.logout-btn{
    margin-top:11px;
    width:100%;
    border:1px solid rgba(255,255,255,.3);
    background:rgba(255,255,255,.08);
    color:#fff;
    border-radius:9px;
    padding:8px;
    font-size:12px
}

.logout-btn:hover{
    background:rgba(255,255,255,.16)
}

.main{
    margin-left:255px;
    padding:0 28px 38px;
    transition:margin-left .25s ease
}

.topbar{
    height:78px;
    display:flex;
    align-items:center;
    gap:16px;
    border-bottom:1px solid var(--line);
    margin-bottom:23px;
    background:rgba(244,248,253,.94);
    position:sticky;
    top:0;
    z-index:20
}

.topbar-brand{
    display:none
}

.topbar-title-wrap{
    display:flex;
    flex-direction:column
}

.topbar h4{
    margin:0;
    color:#102f70;
    font-weight:900;
    font-size:22px
}

.topbar-subtitle{
    font-size:11px;
    color:#8093b2;
    margin-top:2px
}

.topbar-actions{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:16px
}

.top-icon-btn{
    width:38px;
    height:38px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fff;
    color:#174487
}

.top-user{
    padding-left:14px;
    border-left:1px solid var(--line)
}

.top-user>div:last-child{
    flex-direction:column
}

.top-user strong{
    font-size:12px;
    color:#173a7a
}

.top-user small{
    font-size:10px;
    color:#8293ac
}

.mobile-menu-btn,
.mobile-bottom-nav,
.sidebar-overlay{
    display:none
}

.mobile-more-btn{
    border:0;
    background:transparent;
    color:#7185a5;
    display:flex;
    flex:1;
    min-width:0;
    margin:0 2px;
    padding:5px 2px;
    border-radius:10px;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:1px;
    font-size:19px
}

.mobile-more-btn span{
    height:22px;
    font-size:20px
}

.mobile-more-btn small{
    font-size:9px;
    font-weight:800;
    line-height:1
}

/* =========================================================
   GENERIC CONTENT
   ========================================================= */

.page{
    animation:pageIn .25s ease both
}

@keyframes pageIn{
    from{
        opacity:.3;
        transform:translateY(5px)
    }
    to{
        opacity:1;
        transform:none
    }
}

.cardx,
.card{
    background:#fff;
    border:1px solid #e0ebf8;
    border-radius:15px;
    box-shadow:var(--shadow);
    padding:18px
}

.cardx h5,
.card h5{
    font-weight:900;
    color:#123b8b
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:16px
}

.section-head h5{
    margin:0
}

.text-muted{
    color:#7890b2!important
}

.btn-primary{
    background:var(--blue);
    border-color:var(--blue)
}

.btn-primary:hover{
    background:var(--blue-dark);
    border-color:var(--blue-dark)
}

.btn-outline-primary{
    color:var(--blue);
    border-color:#bcd5f4
}

.btn-outline-primary:hover{
    background:#eaf4ff;
    color:var(--blue);
    border-color:#9ec4ef
}

.table{
    --bs-table-bg:transparent;
    color:#213e73;
    margin-bottom:0
}

.table thead th{
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:#7287a7;
    white-space:nowrap;
    border-bottom:1px solid #dbe7f5
}

.table td{
    font-size:12px;
    vertical-align:middle;
    border-color:#edf2f8
}

.table-responsive{
    border-radius:11px
}

.badge-soft{
    padding:5px 8px;
    border-radius:99px;
    background:#eef5ff;
    color:#2759a2;
    font-size:11px
}

.form-control,
.form-select{
    border-color:#cfe0f3;
    border-radius:9px;
    color:#173a7a
}

.form-control:focus,
.form-select:focus{
    border-color:#5da1ed;
    box-shadow:0 0 0 3px rgba(11,114,238,.09)
}

.stat-label{
    color:#61799e;
    font-size:11px;
    font-weight:700
}

.stat-value{
    font-size:25px;
    font-weight:900;
    margin-top:3px;
    color:#123b8b
}

.dashboard-stat{
    border:0!important;
    color:#fff;
    overflow:hidden;
    position:relative
}

.dashboard-stat .stat-label,
.dashboard-stat .stat-value,
.dashboard-stat small{
    color:#fff!important
}

.dashboard-stat:after{
    content:"";
    position:absolute;
    width:90px;
    height:90px;
    border-radius:50%;
    right:-25px;
    top:-28px;
    background:rgba(255,255,255,.13)
}

.stat-blue{
    background:linear-gradient(135deg,#0877ef,#0754cf)!important
}

.stat-green{
    background:linear-gradient(135deg,#19bf5a,#0b9a48)!important
}

.stat-orange{
    background:linear-gradient(135deg,#ffb000,#f08b00)!important
}

.stat-purple{
    background:linear-gradient(135deg,#873ee0,#6722c6)!important
}

.quick-card{
    height:100%;
    display:flex;
    align-items:center;
    gap:13px;
    border-radius:13px;
    border:1px solid #e1edf9;
    background:#fff;
    padding:15px;
    cursor:pointer;
    transition:.18s
}

.quick-card:hover{
    transform:translateY(-3px);
    box-shadow:var(--shadow)
}

.quick-icon{
    width:44px;
    height:44px;
    border-radius:11px;
    display:grid;
    place-items:center;
    font-size:20px
}

.quick-green{
    background:#dff8e9;
    color:#0ca14b
}

.quick-blue{
    background:#e1efff;
    color:#0a6fe9
}

.quick-purple{
    background:#eee2ff;
    color:#7734d0
}

.quick-orange{
    background:#fff0d2;
    color:#e78900
}

.quick-card strong{
    display:block;
    color:#163b7d;
    font-size:12px
}

.quick-card small{
    color:#7d90ac;
    font-size:10px
}

.dashboard-banner{
    position:relative;
    overflow:hidden;
    border-radius:14px;
    padding:18px 22px;
    background:linear-gradient(120deg,#084ec3,#0b82ed);
    color:#fff;
    min-height:98px
}

.dashboard-banner:after{
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    border-radius:50%;
    right:-40px;
    top:-80px;
    background:rgba(255,255,255,.12)
}

.dashboard-banner h5{
    color:#fff;
    margin:0 0 3px;
    font-size:20px
}

.dashboard-banner p{
    margin:0;
    color:#dcecff;
    font-size:12px
}

.recent-list{
    display:grid;
    gap:7px
}

.recent-row{
    display:flex;
    align-items:center;
    gap:11px;
    padding:9px 11px;
    border:1px solid #e5eef8;
    border-radius:10px
}

.recent-game{
    width:34px;
    height:34px;
    border-radius:50%;
    display:grid;
    place-items:center;
    font-size:10px;
    font-weight:900;
    color:#fff;
    background:var(--blue)
}

.recent-row strong{
    font-size:12px;
    color:#173a7a
}

.recent-row small{
    display:block;
    color:#8192ab;
    font-size:10px
}

/* =========================================================
   BET ENTRY
   ========================================================= */

.bet-entry-card{
    max-width:1050px;
    margin:0 auto
}

.bet-entry-card .section-head{
    justify-content:flex-start;
    text-align:left
}

.bet-entry-card .section-head h5{
    font-size:22px
}

.bet-entry-form{
    margin:0!important
}

.bet-entry-field{
    margin-bottom:2px
}

.bet-entry-field .form-label{
    font-size:11px;
    font-weight:800;
    color:#4e6790;
    margin-bottom:5px
}

.bet-entry-field .form-control,
.bet-entry-field .form-select{
    min-height:43px
}

/* =========================================================
   BET NUMBERS - CENTERED WEB + MOBILE
   ========================================================= */

.bet-entry-numbers{
    width:100%;
    text-align:center;
}

.bet-number-label{
    display:block;
    width:100%;
    text-align:center;
    font-size:13px;
    font-weight:900;
    color:#163b7d;
    margin:13px 0 10px
}

.bet-number-boxes{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:12px;
    flex-wrap:nowrap;
    margin:0 auto
}

.bet-number-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start
}

.bet-number-index{
    text-align:center;
    font-size:10px;
    font-weight:800;
    color:#8291a8;
    margin-bottom:5px;
    text-transform:uppercase
}

.bet-number-input{
    width:108px;
    height:88px;
    border:2px solid #c8dbf1;
    border-radius:13px;
    background:#fbfdff;
    text-align:center;
    font-size:42px;
    font-weight:900;
    line-height:1;
    color:#123b8b;
    box-shadow:0 4px 12px rgba(35,80,135,.08);
    outline:none;
    transition:.15s
}

.bet-number-input:focus{
    border-color:#1d73e8;
    box-shadow:
        0 0 0 4px rgba(29,115,232,.11),
        0 7px 18px rgba(35,80,135,.10);
    transform:translateY(-2px)
}

.bet-number-input::placeholder{
    color:#cbd8e8
}

.bet-number-help{
    width:100%;
    text-align:center;
    font-size:11px;
    color:#7a8da9;
    margin:8px 0 12px
}

.bet-entry-tools{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-top:8px;
    text-align:center
}

.bet-entry-tools>span{
    font-size:10px;
    color:#8a9ab1;
    text-align:center
}

.bet-entry-submit{
    margin-top:3px
}

#placeBetBtn{
    width:100%;
    min-height:47px;
    border-radius:10px;
    font-weight:900;
    background:#0db451;
    border-color:#0db451;
    box-shadow:0 6px 15px rgba(13,180,81,.18)
}

#placeBetBtn:hover{
    background:#079a44;
    border-color:#079a44
}

.bet-success-message .alert{
    border-radius:10px;
    font-size:12px;
    margin-top:10px
}

.bet-entry-card .bet-amount-field{
    text-align:center
}

.bet-entry-card .bet-amount-field .form-control{
    max-width:220px;
    margin:0 auto;
    text-align:center
}

/* =========================================================
   GAME SELECTOR
   ========================================================= */

.game-selector-wrap{
    margin-bottom:10px
}

.game-selector-label{
    font-size:11px;
    font-weight:800;
    color:#4e6790;
    margin-bottom:6px
}

.game-mode-pills{
    display:flex;
    gap:7px;
    flex-wrap:wrap;
    margin-bottom:7px
}

.game-pill{
    min-width:76px;
    padding:8px 10px;
    border:1px solid #cfe0f3;
    border-radius:9px;
    background:#fff;
    color:#285184;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    line-height:1;
    transition:.15s;
    box-shadow:0 2px 6px rgba(35,80,135,.05)
}

.game-pill b{
    font-size:12px
}

.game-pill small{
    font-size:9px;
    margin-top:4px;
    color:#7b8da8;
    max-width:95px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}

.game-pill:hover{
    border-color:#8fb9eb;
    transform:translateY(-1px)
}

.game-pill.active{
    color:#fff;
    border-color:#0757d8;
    background:linear-gradient(135deg,#0875ee,#0756d0);
    box-shadow:0 5px 12px rgba(7,87,216,.18)
}

.game-pill.active small{
    color:#dcecff
}

.visual-game-select{
    display:none!important
}

.quick-pick-btn{
    border:1px solid #cfe0f3!important;
    color:#0757d8!important;
    background:#eef6ff!important;
    border-radius:8px!important;
    font-size:11px;
    font-weight:800
}

.quick-pick-btn:hover{
    background:#e1efff!important
}

/* =========================================================
   ALL BETS
   ========================================================= */

.bet-filter{
    border-radius:9px;
    font-size:11px;
    font-weight:800;
    padding:7px 11px
}

.all-bets-toolbar{
    background:#f8fbff;
    border:1px solid #dfeaf7;
    border-radius:12px;
    padding:12px
}

.all-bets-stat{
    padding:13px;
    border-radius:12px;
    background:#fff;
    border:1px solid #e1edf8
}

.all-bets-stat .stat-value{
    font-size:20px
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:991px){

    .sidebar{
        width:270px;
        transform:translateX(-100%);
        box-shadow:10px 0 30px rgba(0,0,0,.22)
    }

    .sidebar.open{
        transform:translateX(0)
    }

    .sidebar-close{
        display:block;
        position:absolute;
        right:10px;
        top:10px;
        width:34px;
        height:34px;
        border:0;
        border-radius:9px;
        background:rgba(255,255,255,.08);
        color:#fff;
        font-size:25px;
        line-height:30px;
        z-index:2
    }

    .sidebar-overlay.show{
        display:block;
        position:fixed;
        inset:0;
        background:rgba(2,22,58,.42);
        z-index:1040
    }

    .main{
        margin-left:0;
        padding:0 14px 88px
    }

    .topbar{
        height:68px;
        margin:0 -14px 16px;
        padding:0 14px;
        background:#fff;
        border-bottom:1px solid #dce9f7
    }

    .mobile-menu-btn{
        display:grid;
        place-items:center;
        width:38px;
        height:38px;
        border:0;
        border-radius:10px;
        background:#eaf3ff;
        color:#0757d8;
        font-size:21px
    }

    .topbar-brand{
        display:flex;
        align-items:center;
        gap:7px
    }

    .topbar-brand-text{
        line-height:.92
    }

    .topbar-brand-text strong{
        font-size:7px;
        color:#123b8b
    }

    .topbar-brand-text b{
        font-size:14px;
        color:#0757d8
    }

    .lottery-mark.small{
        width:40px;
        height:36px
    }

    .lottery-mark.small .ball{
        width:24px;
        height:24px;
        font-size:12px;
        border-width:2px
    }

    .lottery-mark.small .ball-7,
    .lottery-mark.small .ball-3{
        top:8px
    }

    .lottery-mark.small .ball-7{
        left:0
    }

    .lottery-mark.small .ball-8{
        left:12px;
        top:0
    }

    .topbar-title-wrap{
        margin-left:2px;
        min-width:0
    }

    .topbar h4{
        font-size:17px;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis
    }

    .topbar-subtitle{
        display:none
    }

    .topbar-actions{
        margin-left:auto
    }

    .top-icon-btn{
        display:none
    }

    .top-user{
        padding-left:0;
        border-left:0
    }

    .top-user>div:last-child{
        display:none
    }

    .top-user .user-avatar{
        width:34px;
        height:34px
    }

    .mobile-bottom-nav{
        position:fixed;
        display:flex;
        left:0;
        right:0;
        bottom:0;
        height:68px;
        background:#fff;
        border-top:1px solid #dce8f6;
        box-shadow:0 -8px 25px rgba(22,63,122,.09);
        z-index:1030;
        padding:6px 5px env(safe-area-inset-bottom)
    }

    .mobile-bottom-nav .nav-btn{
        display:flex!important;
        flex:1;
        min-width:0;
        margin:0 2px;
        padding:5px 2px;
        border-radius:10px;
        color:#7185a5;
        flex-direction:column;
        justify-content:center;
        gap:1px;
        font-size:19px
    }

    .mobile-bottom-nav .nav-btn span{
        width:auto;
        height:22px;
        font-size:20px
    }

    .mobile-bottom-nav .nav-btn small{
        font-size:9px;
        font-weight:800;
        line-height:1
    }

    .mobile-bottom-nav .nav-btn.active{
        background:#eaf3ff;
        color:#0757d8;
        box-shadow:none
    }

    .mobile-bottom-nav .nav-btn[style*="display: none"]{
        display:none!important
    }

    .cardx{
        padding:14px;
        border-radius:13px
    }

    .section-head{
        margin-bottom:12px
    }

    .dashboard-banner{
        min-height:92px;
        padding:16px
    }

    .dashboard-banner h5{
        font-size:17px
    }

    .stat-value{
        font-size:21px
    }

    .quick-card{
        padding:12px
    }

    .quick-icon{
        width:38px;
        height:38px;
        font-size:17px
    }

    .bet-entry-card{
        padding:14px!important
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:600px){

    .game-mode-pills{
        gap:5px;
        flex-wrap:nowrap;
        overflow-x:auto;
        padding-bottom:3px
    }

    .game-pill{
        min-width:68px;
        padding:7px
    }

    .game-pill b{
        font-size:11px
    }

    .game-pill small{
        font-size:8px
    }

    /* CENTER QUICK PICK + HELP TEXT ON MOBILE */
    .bet-entry-tools{
        width:100%;
        justify-content:center;
        align-items:center;
        text-align:center
    }

    .bet-entry-tools>span{
        width:100%;
        max-width:100%;
        text-align:center
    }

    .login-page{
        padding:0;
        background:#eef5fc
    }

    .login-shell{
        min-height:100vh;
        width:100%;
        display:block;
        border-radius:0;
        box-shadow:none
    }

    .login-art{
        height:210px;
        padding:25px 24px;
        border-radius:0 0 28px 28px
    }

    .login-art-copy{
        display:none
    }

    .sunburst{
        width:150px;
        height:150px;
        left:42%;
        top:50px
    }

    .login-landscape{
        height:75px
    }

    .m1{
        height:60px
    }

    .m2{
        height:75px
    }

    .m3{
        height:52px
    }

    .building{
        height:38px;
        width:42px;
        border-width:3px
    }

    .building:before{
        left:12px;
        top:-18px;
        width:13px;
        height:20px;
        border-width:2px
    }

    .building:after{
        left:16px;
        width:9px;
        height:18px
    }

    .login-brand-lockup{
        gap:9px
    }

    .login-brand-text b{
        font-size:22px
    }

    .login-brand-text strong{
        font-size:9px
    }

    .login-brand-text span{
        font-size:7px
    }

    .login-card{
        margin-top:-1px;
        padding:30px 23px 22px;
        min-height:calc(100vh - 210px);
        border-radius:28px 28px 0 0
    }

    .mobile-login-logo{
        display:flex;
        justify-content:center;
        margin-top:-48px;
        margin-bottom:8px
    }

    .mobile-login-logo .lottery-mark{
        background:#fff;
        border-radius:50%;
        width:74px;
        height:74px;
        box-shadow:0 7px 20px rgba(22,63,122,.16);
        transform:scale(.9)
    }

    .login-heading{
        margin-bottom:21px
    }

    .login-heading h2{
        font-size:27px
    }

    .login-heading p{
        font-size:13px
    }

    .login-footer{
        padding-top:14px
    }

    .topbar-brand{
        display:none
    }

    .topbar-title-wrap{
        margin-left:0
    }

    .topbar h4{
        font-size:16px
    }

    .top-user .user-avatar{
        width:32px;
        height:32px
    }

    .main{
        padding-left:10px;
        padding-right:10px
    }

    .topbar{
        margin-left:-10px;
        margin-right:-10px;
        padding:0 10px
    }

    .row.g-3{
        --bs-gutter-x:.65rem;
        --bs-gutter-y:.65rem
    }

    .dashboard-stat{
        padding:14px!important
    }

    .dashboard-stat .stat-value{
        font-size:20px
    }

    .dashboard-banner{
        margin-top:4px
    }

    .quick-card{
        min-height:68px
    }

    .quick-card small{
        font-size:9px
    }

    .bet-entry-card .section-head h5{
        font-size:19px
    }

    .bet-entry-field{
        width:100%!important
    }

    .bet-entry-numbers{
        width:100%;
        margin-top:2px;
        text-align:center
    }

    .bet-number-label{
        width:100%;
        text-align:center
    }

    .bet-number-boxes{
        width:100%;
        display:flex;
        justify-content:center;
        align-items:flex-start;
        gap:8px;
        flex-wrap:nowrap;
        margin:0 auto
    }

    .bet-number-item{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:flex-start
    }

    .bet-number-index{
        text-align:center
    }

    .bet-number-input{
        width:82px;
        height:74px;
        font-size:34px;
        border-radius:12px
    }

    .bet-number-help{
        width:100%;
        text-align:center;
        font-size:10px
    }

    .table{
        min-width:760px
    }

    #page-bets .table{
        min-width:1050px
    }

    .bet-entry-card .bet-amount-field .form-control{
        max-width:180px
    }
}

/* =========================================================
   DESKTOP MENU COLLAPSE
   ========================================================= */

@media(min-width:992px){

    body.menu-collapsed .sidebar{
        transform:translateX(-255px)
    }

    body.menu-collapsed .main{
        margin-left:0
    }
}

/* =========================================================
   CREATE USER MODAL
   ========================================================= */

#createUserModal .modal-dialog{
    max-width:460px;
    margin:0 auto;
}

#createUserModal .modal-content{
    border:0;
    border-radius:16px;
    box-shadow:0 25px 70px rgba(0,0,0,.30)
}

#createUserModal input,
#createUserModal select,
#createUserModal button{
    pointer-events:auto
}

.modal-backdrop.show{
    opacity:.65!important;
    background:#061a3d!important
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        animation-duration:.01ms!important;
        transition-duration:.01ms!important
    }
}


/* =========================================================
   GUI-DESIGN VISUAL OVERHAUL
   STL functional markup/API preserved.
   Inspired by the supplied Panalotto GUI: light gray canvas,
   navy/gold surfaces, compact cards, chips, rounded controls,
   and mobile bottom navigation.
   ========================================================= */

:root{
    --gui-bg:#e7e7e7;
    --gui-surface:#fff;
    --gui-surface-2:#f1f2f4;
    --gui-line:rgba(17,22,36,.10);
    --gui-line-strong:rgba(17,22,36,.20);
    --gui-gold:#e8b44a;
    --gui-gold-deep:#c98f1f;
    --gui-gold-soft:rgba(232,180,74,.18);
    --gui-gold-ink:#7d5406;
    --gui-success:#0d8a5b;
    --gui-danger:#c3352d;
    --gui-text:#111624;
    --gui-muted:#5b6376;
    --gui-navy-from:#0e1b36;
    --gui-navy-to:#032f71;
    --gui-radius:16px;
    --gui-radius-sm:12px;
    --gui-shadow:0 1px 2px rgba(17,22,36,.06),0 8px 22px rgba(17,22,36,.08);
}

/* Global canvas */
html,body{
    background:var(--gui-bg);
    color:var(--gui-text);
}
body{
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    font-variant-numeric:tabular-nums;
}
#system{
    background:var(--gui-bg);
}

/* Login: keep STL branding/function, adopt the template's restrained premium palette */
.login-page{
    background:
      radial-gradient(120% 55% at 50% -12%,rgba(232,180,74,.16),transparent 60%),
      linear-gradient(135deg,#e7e7e7 0%,#dfe2e7 100%);
}
.login-shell{
    border-radius:22px;
    box-shadow:0 20px 60px rgba(3,20,50,.22);
}
.login-art{
    background:linear-gradient(125deg,var(--gui-navy-from),var(--gui-navy-to));
}
.login-art-copy h1 span{color:var(--gui-gold)}
.login-card{background:var(--gui-surface)}
.login-heading h2{color:var(--gui-text)}
.login-heading p{color:var(--gui-muted)}
.field-label{color:var(--gui-text)}
.modern-input{
    background:var(--gui-surface-2)!important;
    border-color:var(--gui-line)!important;
    color:var(--gui-text)!important;
    border-radius:var(--gui-radius-sm)!important;
}
.modern-input:focus{
    border-color:var(--gui-gold-deep)!important;
    box-shadow:0 0 0 4px var(--gui-gold-soft)!important;
}
.login-submit{
    background:linear-gradient(180deg,#f0c163 0%,var(--gui-gold) 42%,var(--gui-gold-deep) 100%);
    color:#1a1204;
    box-shadow:0 8px 22px rgba(201,143,31,.23);
}
.login-help{color:var(--gui-gold-ink)}
.login-footer strong{color:var(--gui-text)}
.login-footer{color:var(--gui-muted)}

/* Sidebar */
.sidebar{
    width:250px;
    background:linear-gradient(180deg,var(--gui-navy-from) 0%,var(--gui-navy-to) 100%);
    box-shadow:8px 0 26px rgba(3,20,50,.15);
    padding:16px 12px;
}
.sidebar-logo{
    border-bottom-color:rgba(255,255,255,.12);
    padding-bottom:16px;
}
.sidebar-logo b{color:var(--gui-gold)}
.sidebar-section-title{
    color:#b9c5d8;
    letter-spacing:.10em;
}
.nav-btn{
    color:#dbe3ef;
    border-radius:12px;
    min-height:42px;
}
.nav-btn:hover,.nav-btn.active{
    background:linear-gradient(180deg,#f0c163 0%,var(--gui-gold) 100%);
    color:#1a1204;
    box-shadow:0 7px 18px rgba(0,0,0,.14);
}
.logout-btn{
    border-radius:12px;
}

/* Main / top bar */
.main{
    margin-left:250px;
    padding:0 24px 30px;
    background:var(--gui-bg);
}
.topbar{
    height:78px;
    margin:0 -24px 22px;
    padding:0 24px;
    background:rgba(231,231,231,.92);
    border-bottom:1px solid var(--gui-line);
    backdrop-filter:blur(10px);
}
.topbar-title-wrap h4{
    color:var(--gui-text);
    font-weight:700;
    letter-spacing:-.02em;
}
.topbar-subtitle{color:var(--gui-muted)}
.top-icon-btn{
    background:var(--gui-surface);
    border:1px solid var(--gui-line);
    color:var(--gui-muted);
    border-radius:10px;
}
.top-user{
    border-left-color:var(--gui-line);
}
.user-avatar{
    background:var(--gui-surface);
    color:var(--gui-gold-ink);
    border-color:var(--gui-gold);
}

/* Cards */
.cardx,.card{
    background:var(--gui-surface);
    border:1px solid var(--gui-line);
    border-radius:var(--gui-radius);
    box-shadow:var(--gui-shadow);
}
.cardx{padding:16px}
.section-head{
    border:0;
}
.section-head h5,
.cardx h4,.cardx h5{
    color:var(--gui-text);
    font-weight:680;
    letter-spacing:-.02em;
}
.text-muted{color:var(--gui-muted)!important}

/* Buttons */
.btn{
    border-radius:var(--gui-radius-sm);
    font-weight:620;
    transition:transform .12s ease,box-shadow .12s ease,background-color .12s ease;
}
.btn:active{transform:scale(.985)}
.btn-primary{
    background:linear-gradient(180deg,#f0c163 0%,var(--gui-gold) 42%,var(--gui-gold-deep) 100%);
    border-color:var(--gui-gold-deep);
    color:#1a1204;
    box-shadow:0 7px 18px rgba(201,143,31,.20);
}
.btn-primary:hover{
    background:linear-gradient(180deg,#f3c76e 0%,#e3ad42 42%,#bd861a 100%);
    border-color:#bd861a;
    color:#1a1204;
}
.btn-outline-primary{
    border-color:var(--gui-line-strong);
    color:var(--gui-text);
    background:var(--gui-surface-2);
}
.btn-outline-primary:hover{
    border-color:var(--gui-gold-line);
    color:var(--gui-gold-ink);
    background:var(--gui-gold-soft);
}
.btn-success{
    background:linear-gradient(180deg,#159f6c,#0d8a5b);
    border-color:#0d8a5b;
}
.btn-danger{
    background:linear-gradient(180deg,#d04a40,#b52e28);
    border-color:#b52e28;
}

/* Inputs/selects */
.form-control,.form-select{
    min-height:44px;
    background:var(--gui-surface-2);
    color:var(--gui-text);
    border:1px solid var(--gui-line)!important;
    border-radius:var(--gui-radius-sm);
}
.form-control:focus,.form-select:focus{
    background:var(--gui-surface);
    border-color:var(--gui-gold-deep)!important;
    box-shadow:0 0 0 4px var(--gui-gold-soft);
}
.form-label{
    color:var(--gui-text);
    font-weight:650;
}

/* Dashboard */
.dashboard-banner{
    background:linear-gradient(125deg,var(--gui-navy-from) 0%,var(--gui-navy-to) 100%);
    border:0;
    border-radius:var(--gui-radius);
    box-shadow:0 10px 26px rgba(3,47,113,.20);
}
.dashboard-banner h5{font-weight:680}
.dashboard-stat{
    border-radius:var(--gui-radius)!important;
    box-shadow:var(--gui-shadow);
}
.stat-blue{
    background:linear-gradient(135deg,#17529c,#032f71)!important;
}
.stat-green{
    background:linear-gradient(135deg,#159f6c,#0d8a5b)!important;
}
.stat-orange{
    background:linear-gradient(135deg,#f0c163,#c98f1f)!important;
}
.stat-purple{
    background:linear-gradient(135deg,#374a7e,#151d35)!important;
}
.stat-value{color:var(--gui-text)}
.dashboard-stat .stat-value{color:#fff}
.quick-card{
    background:var(--gui-surface-2);
    border-color:var(--gui-line);
    border-radius:var(--gui-radius-sm);
    box-shadow:none;
}
.quick-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--gui-shadow);
}
.quick-green{background:var(--gui-success-soft);color:var(--gui-success)}
.quick-blue{background:#e7edf7;color:#17529c}
.quick-purple{background:#ece9f3;color:#374a7e}
.quick-orange{background:var(--gui-gold-soft);color:var(--gui-gold-ink)}
.recent-row{
    background:var(--gui-surface-2);
    border-color:var(--gui-line);
    border-radius:var(--gui-radius-sm);
}
.recent-game{
    background:linear-gradient(180deg,#24325a,#151d35);
}

/* Bet entry */
.bet-entry-card{
    max-width:980px;
    border-radius:20px;
}
.bet-entry-card .section-head{
    padding-bottom:12px;
    border-bottom:1px solid var(--gui-line);
}
.bet-entry-card .section-head h5{
    font-size:22px;
}
.game-mode-pills{
    gap:8px;
}
.game-pill{
    min-height:48px;
    padding:7px 12px;
    border-radius:14px;
    background:var(--gui-surface-2);
    border:1px solid var(--gui-line);
    color:var(--gui-muted);
}
.game-pill.active{
    background:var(--gui-gold-soft);
    border-color:var(--gui-gold-line);
    color:var(--gui-gold-ink);
    box-shadow:0 5px 14px rgba(201,143,31,.13);
}
.game-pill.active small{color:var(--gui-gold-ink)}
.bet-number-label{
    color:var(--gui-text);
    font-size:12px;
    letter-spacing:.07em;
    text-transform:uppercase;
}
.bet-number-boxes{
    gap:14px;
}
.bet-number-index{
    color:var(--gui-muted);
    letter-spacing:.05em;
}
.bet-number-input{
    width:108px;
    height:88px;
    border:1px solid var(--gui-line-strong);
    border-radius:16px;
    background:var(--gui-surface);
    color:var(--gui-text);
    box-shadow:0 5px 16px rgba(17,22,36,.08);
    font-weight:650;
}
.bet-number-input:focus{
    border-color:var(--gui-gold-deep);
    box-shadow:0 0 0 4px var(--gui-gold-soft),0 8px 20px rgba(17,22,36,.10);
}
.bet-number-help{
    color:var(--gui-muted);
}
.quick-pick-btn{
    color:var(--gui-gold-ink)!important;
    background:var(--gui-gold-soft)!important;
    border-color:var(--gui-gold-line)!important;
    border-radius:10px!important;
}
#placeBetBtn{
    background:linear-gradient(180deg,#f0c163 0%,var(--gui-gold) 42%,var(--gui-gold-deep) 100%);
    border-color:var(--gui-gold-deep);
    color:#1a1204;
    box-shadow:0 8px 22px rgba(201,143,31,.20);
}
.bet-success-message .alert{
    border-radius:var(--gui-radius-sm);
}

/* Tables */
.table{
    --bs-table-bg:transparent;
    --bs-table-color:var(--gui-text);
    margin-bottom:0;
}
.table thead th{
    background:var(--gui-surface-2);
    color:var(--gui-muted);
    border-bottom:1px solid var(--gui-line-strong);
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.05em;
    white-space:nowrap;
}
.table td,.table th{
    border-color:var(--gui-line);
    vertical-align:middle;
}
.table tbody tr:hover{
    background:var(--gui-gold-soft);
}
.table .badge{
    border-radius:999px;
    padding:.42em .7em;
}

/* Filter chips */
.bet-filter{
    border-radius:999px;
}
.bet-filter.btn-primary{
    background:var(--gui-gold);
    border-color:var(--gui-gold-deep);
    color:#1a1204;
}
.all-bets-toolbar{
    background:var(--gui-surface-2);
    border-color:var(--gui-line);
    border-radius:var(--gui-radius);
}
.all-bets-stat{
    background:var(--gui-surface);
    border-color:var(--gui-line);
    border-radius:var(--gui-radius-sm);
}

/* Modal */
.modal-content{
    border:1px solid var(--gui-line);
    border-radius:18px;
    box-shadow:0 25px 70px rgba(3,20,50,.28);
}
.modal-header{
    background:var(--gui-surface-2);
    border-bottom-color:var(--gui-line);
}
.modal-title{font-weight:680;color:var(--gui-text)}
.modal-backdrop.show{background:#0e1b36!important;opacity:.62!important}

/* Toast */
#toast .toast-item,.toast-item{
    border-radius:12px!important;
    box-shadow:0 10px 28px rgba(3,20,50,.20)!important;
}

/* Mobile: strongly follow supplied GUI layout */
@media(max-width:991px){
    .main{
        background:var(--gui-bg);
        padding-left:12px;
        padding-right:12px;
    }
    .topbar{
        margin-left:-12px;
        margin-right:-12px;
        padding:0 12px;
        background:rgba(231,231,231,.94);
    }
    .mobile-menu-btn{
        background:var(--gui-surface);
        border:1px solid var(--gui-line);
        color:var(--gui-text);
        border-radius:11px;
    }
    .mobile-bottom-nav{
        background:rgba(255,255,255,.96);
        border-top:1px solid var(--gui-line);
        box-shadow:0 -8px 24px rgba(17,22,36,.10);
        backdrop-filter:blur(12px);
    }
    .mobile-bottom-nav .nav-btn{
        color:var(--gui-muted);
    }
    .mobile-bottom-nav .nav-btn.active{
        color:var(--gui-gold-ink);
        background:var(--gui-gold-soft);
    }
    .cardx,.card{
        border-radius:var(--gui-radius);
    }
    .dashboard-banner{
        border-radius:var(--gui-radius);
    }
    .game-mode-pills{
        overflow-x:auto;
        flex-wrap:nowrap;
        padding-bottom:2px;
        scrollbar-width:none;
    }
    .game-mode-pills::-webkit-scrollbar{display:none}
    .game-pill{
        flex:0 0 auto;
    }
    .bet-entry-card{
        max-width:100%;
        padding:15px!important;
    }
    .bet-entry-card .section-head{
        text-align:left;
    }
    .bet-number-boxes{
        gap:9px;
    }
    .bet-number-input{
        width:min(82px,24vw);
        height:min(82px,24vw);
        font-size:34px;
    }
}

/* Small mobile: compact, app-like */
@media(max-width:600px){
    .login-page{
        background:var(--gui-bg);
    }
    .login-art{
        background:linear-gradient(125deg,var(--gui-navy-from),var(--gui-navy-to));
    }
    .login-brand-text b{color:var(--gui-gold)}
    .login-card{
        background:var(--gui-surface);
    }
    .login-submit{
        min-height:52px;
    }
    .topbar{
        height:64px;
        margin-bottom:14px;
    }
    .topbar h4{font-weight:680}
    .dashboard-banner{
        padding:15px;
    }
    .dashboard-banner h5{font-size:18px}
    .dashboard-banner p{font-size:11px}
    .dashboard-stat{
        padding:14px!important;
    }
    .quick-card{
        min-height:62px;
    }
    .bet-entry-card .section-head h5{
        font-size:19px;
    }
    .bet-entry-field .form-label{
        font-size:10px;
        text-transform:uppercase;
        letter-spacing:.05em;
    }
    .bet-entry-field .form-control,
    .bet-entry-field .form-select{
        min-height:42px;
    }
    .bet-number-label{
        margin-top:9px;
    }
    .bet-number-input{
        width:76px;
        height:76px;
        font-size:32px;
    }
    .bet-number-help{
        font-size:9.5px;
        line-height:1.35;
    }
    .bet-entry-tools{
        gap:7px;
    }
    #placeBetBtn{
        min-height:50px;
    }
}

/* Respect existing desktop collapse behavior */
@media(min-width:992px){
    body.menu-collapsed .main{
        margin-left:0;
    }
}

