/* =========================================================
   TUTULMANIA V6.1.2 - HOME GAME SHOWCASE
   Dashboard-only visual layer. Mobile-first.
========================================================= */

/* =========================================================
   GLOBAL SPACING SYSTEM
   Jarak antar-section dan antar-kartu dibuat terpusat
   agar konsisten di seluruh dashboard.
========================================================= */
:root{
    --tm-section-gap:16px;
    --tm-card-gap:10px;
}


.tm-dashboard-header{
    /* Shared brand bar: fixed to the viewport so it never scrolls away. */
    position:fixed;
    top:0;
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:100%;
    max-width:480px;
    z-index:1100;
    height:74px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:0 22px;
    background:#111;
    border-bottom:1px solid rgba(255,210,26,.28);
    box-shadow:0 5px 16px rgba(0,0,0,.4);
}

.tm-header-left{display:flex;align-items:center;gap:14px;min-width:0}
.tm-menu-button{
    width:38px;height:38px;flex:0 0 38px;padding:5px;
    display:flex;flex-direction:column;justify-content:center;gap:5px;
    background:transparent;color:#fff;border:0;border-radius:8px;
}
.tm-menu-button span{display:block;width:27px;height:3px;border-radius:3px;background:#fff}
.tm-dashboard-logo{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0;color:#fff}
.tm-logo-mark{
    display:none;
    width:42px;height:42px;align-items:center;justify-content:center;border-radius:12px;
    background:linear-gradient(145deg,#ffd21a,#ffad00);color:#080808;font-weight:900;
}
.tm-logo-copy{display:flex;flex-direction:column;min-width:0}
.tm-logo-copy strong{font-size:20px;line-height:1.05;color:#fff;letter-spacing:.2px}
.tm-logo-copy small{margin-top:4px;color:#a7a7a7;font-size:11px}
.tm-header-actions{
    display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;
    margin-left:auto;
    margin-right:0;
    width:85px;
}
.tm-header-deposit{
    width:85px !important;min-width:85px !important;max-width:85px !important;height:30px;min-height:30px;max-height:30px;flex:0 0 85px !important;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;gap:2px;
    border-radius:8px;background:linear-gradient(180deg,#ffd21a,#ffad00);color:#080808 !important;
    font-size:14px;font-weight:800;text-decoration:none;box-shadow:0 7px 18px rgba(255,193,7,.16);
    box-sizing:border-box;
}
.tm-header-deposit svg{
    width:14px;height:14px;flex:0 0 4px;
}
.tm-header-deposit svg *{
    stroke:currentColor !important;
    stroke-width:3.2 !important;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* SIDE MENU */
.tm-menu-overlay{
    position:fixed;inset:0;background:rgba(0,0,0,.68);z-index:1998;opacity:0;visibility:hidden;transition:.22s ease;
}
.tm-side-menu{
    position:fixed;top:0;left:0;width:min(78vw,365px);height:100dvh;z-index:1999;
    display:flex;flex-direction:column;background:linear-gradient(180deg,#181818,#0d0d0d);
    border-right:1px solid rgba(255,210,26,.18);transform:translateX(-102%);transition:transform .25s ease;
    box-shadow:16px 0 40px rgba(0,0,0,.55);overflow:hidden;
}
body.tm-menu-open .tm-menu-overlay{opacity:1;visibility:visible}
body.tm-menu-open .tm-side-menu{transform:translateX(0)}
.tm-side-head{display:flex;align-items:center;gap:5px;padding:12px 12px 11px;background:#111;border-bottom:1px solid rgba(255,210,26,.24)}
.tm-live-chat{flex:1;height:48px;display:flex;align-items:center;justify-content:center;border:2px solid #ffd21a;border-radius:10px;background:#fff;color:#111;font-size:16px;font-weight:800}
.tm-menu-close{width:48px;height:48px;background:#fff;color:#111;border:2px solid #ffd21a;border-radius:0 10px 10px 0;font-size:39px;line-height:1;font-weight:300}
.tm-side-nav{overflow-y:auto;overscroll-behavior:contain;padding-bottom:18px}
.tm-side-item{
    position:relative;min-height:62px;padding:0 15px 0 21px;display:flex;align-items:center;gap:15px;
    color:#f3f3f3 !important;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.1);
    background:linear-gradient(90deg,#171717,#101010);font-size:16px;font-weight:600;
}
.tm-side-item:hover{background:linear-gradient(90deg,#222,#151515)}
.tm-side-item.active{background:linear-gradient(90deg,#2a2410,#171717);color:#ffd21a !important}
.tm-side-icon{width:28px;height:28px;display:inline-flex;flex:0 0 28px;color:#ffd21a}
.tm-side-icon svg{width:100%;height:100%}
.tm-side-item i{margin-left:auto;width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.08)}
.tm-side-item b{margin-left:auto;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:5px;background:#f02626;color:#fff;font-size:12px}
.tm-side-item b+i{margin-left:2px}
.tm-side-logout{color:#ff7777 !important}

/* DASHBOARD BODY */
.dashboard-page .page-content{padding-top:74px!important}
.tm-reference-dashboard{padding:0 0 16px;background:#050505;min-height:calc(100vh - 74px)}

/* Keep the account card directly below the fixed brand header. This prevents
   the username/balance block from being hidden behind the fixed header and
   gives every authenticated sidebar page the same vertical structure. */
.tm-balance-panel{
    position:sticky;
    top:74px;
    z-index:1050;
    display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 22px 25px;
    background:linear-gradient(145deg,#171717,#0e0e0e);border-bottom:3px solid #ffd21a;
    box-shadow:0 7px 18px rgba(0,0,0,.35)
}
.tm-balance-copy{min-width:0}
.tm-balance-refresh{
    width:85px;height:30px;flex:0 0 85px;padding:0 8px;
    display:inline-flex;align-items:center;justify-content:center;gap:2px;
    border:0;border-radius:8px;background:linear-gradient(180deg,#ffd21a,#ffad00);
    color:#080808;font-size:14px;font-weight:800;line-height:1;cursor:pointer;
    box-shadow:0 7px 18px rgba(255,193,7,.16);box-sizing:border-box;
}
.tm-balance-refresh svg{
    width:14px;height:14px;flex:0 0 4px;
}
.tm-balance-refresh svg *{
    stroke:currentColor !important;
    stroke-width:3.2 !important;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.tm-balance-copy h1{margin:0 0 12px;color:#fff;font-size:25px;line-height:1.15;font-weight:800}
.tm-balance-copy p{margin:0;color:#bfbfbf;font-size:18px;letter-spacing:.2px}
.tm-balance-copy p strong{color:#fff;font-weight:800}

.tm-game-navigation{padding:16px 12px var(--tm-section-gap);background:#070707}
.tm-category-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:7px}
.tm-category-row-second{grid-template-columns:repeat(4,minmax(0,1fr))}
.tm-game-category{
    min-height:56px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    border:1px solid rgba(255,210,26,.55);border-radius:11px;background:linear-gradient(145deg,#252525,#141414);
    color:#aaa;font:700 10px/1.1 inherit;text-transform:uppercase;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)
}
.tm-game-category span{width:22px;height:22px;display:inline-flex;color:#ffd21a}
.tm-game-category span svg{width:100%;height:100%}
.tm-game-category.active{background:linear-gradient(180deg,#ffd21a,#ffad00);color:#080808;border-color:#ffd21a;box-shadow:0 5px 15px rgba(255,193,7,.18)}
.tm-game-category.active span{color:#080808}
.tm-game-search{height:49px;margin-top:16px;display:flex;align-items:center;gap:10px;padding:0 16px;border:1px solid #ffd21a;border-radius:28px;background:#181818}
.tm-game-search svg{width:22px;height:22px;color:#8b8b8b;flex:0 0 22px}
.tm-game-search input{width:100%;min-width:0;padding:0;border:0!important;outline:0;background:transparent!important;color:#fff!important;font:500 16px/1 inherit}
.tm-game-search input::placeholder{color:#8d8d8d}

/* HOME GAME SHOWCASE */
.tm-home-showcase{display:block;padding:0 12px 0;background:#070707}
.tm-home-section{margin:0 0 var(--tm-section-gap);padding:12px 10px 0;border:1px solid rgba(255,210,26,.24);border-radius:14px;background:linear-gradient(145deg,#151515,#0b0b0b);box-shadow:0 8px 18px rgba(0,0,0,.28)}
.tm-home-section:last-child{margin-bottom:0;}
.tm-home-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 12px}
.tm-home-section-head h2{margin:0;padding:7px 16px 7px 12px;color:#080808;background:linear-gradient(180deg,#ffd21a,#ffad00);border-radius:7px 20px 20px 7px;font-size:15px;line-height:1.1;font-weight:900;letter-spacing:.2px}
.tm-home-section-head span{color:#ffd21a;font-size:9px;font-weight:800;letter-spacing:1px;white-space:nowrap}
.tm-home-game-row{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 2px;scroll-snap-type:x proximity;scrollbar-width:none}
.tm-home-game-row::-webkit-scrollbar{display:none}
.tm-home-game-card{flex:0 0 calc((100% - 20px)/3);min-width:calc((100% - 20px)/3);scroll-snap-align:start}
.tm-home-game-cover{position:relative;aspect-ratio:1/1;height:auto;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;padding:10px 7px;border:1px solid rgba(255,210,26,.5);border-radius:10px;box-shadow:none;background:#171717}
.tm-home-game-image{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;border-radius:9px}
.tm-home-game-cover:before{content:"";position:absolute;width:110px;height:110px;top:-34px;right:-28px;border-radius:50%;background:rgba(255,255,255,.15);filter:blur(3px)}
.tm-home-game-cover:after{display:none}
.tm-home-game-badge{position:absolute;top:7px;left:7px;z-index:2;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#ffd21a;color:#080808;font-size:9px;font-weight:900}
.tm-home-game-symbol{position:absolute;z-index:1;top:25px;left:0;right:0;text-align:center;color:rgba(255,255,255,.9);font-size:50px;line-height:1;text-shadow:0 4px 15px rgba(0,0,0,.5)}
.tm-home-game-cover strong{position:relative;z-index:2;width:100%;color:#fff;text-align:center;font-size:13px;line-height:1.15;font-weight:900;text-transform:uppercase;text-shadow:0 2px 5px rgba(0,0,0,.8)}
.tm-home-game-title{min-height:34px;margin-top:6px;padding:0 2px;color:#fff;text-align:center;font-size:11px;line-height:1.2;font-weight:800;white-space:normal;overflow:visible;word-break:normal}
.tm-home-gold .tm-home-game-cover{background:linear-gradient(145deg,#8b4f08,#f2b719 48%,#3b1b05)}
.tm-home-green .tm-home-game-cover{background:linear-gradient(145deg,#064b2f,#0b9a62 48%,#072719)}
.tm-home-pink .tm-home-game-cover{background:linear-gradient(145deg,#7d0758,#ff3ba8 48%,#3b0631)}
.tm-home-purple .tm-home-game-cover{background:linear-gradient(145deg,#34105d,#8d4fd0 48%,#190a31)}
.tm-home-blue .tm-home-game-cover{background:linear-gradient(145deg,#073c70,#1687c9 48%,#071f43)}
.tm-home-red .tm-home-game-cover{background:linear-gradient(145deg,#650b15,#e3292e 48%,#33060a)}
.tm-home-emerald .tm-home-game-cover{background:linear-gradient(145deg,#075c47,#1bb57d 48%,#052d25)}
.tm-home-cyan .tm-home-game-cover{background:linear-gradient(145deg,#075c6e,#22b7d5 48%,#062d3a)}

.tm-games{display:grid;grid-template-columns:1fr 1fr;gap:var(--tm-card-gap);padding:0 12px var(--tm-section-gap);background:#070707}
.tm-game-card{overflow:hidden;border:1px solid rgba(255,210,26,.42);border-radius:12px;background:#101010;box-shadow:0 8px 18px rgba(0,0,0,.4)}
.tm-game-image{height:108px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:10px;background:#191919}
.tm-game-image:before{content:"";position:absolute;inset:-20%;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.14),transparent 25%),radial-gradient(circle at 80% 80%,rgba(255,210,26,.2),transparent 30%);transform:rotate(-8deg)}
.tm-accent-blue{background:linear-gradient(135deg,#072f64,#0c5270)}
.tm-accent-red{background:linear-gradient(135deg,#4c0716,#7d102d)}
.tm-accent-gold{background:linear-gradient(135deg,#5a3504,#16120a)}
.tm-accent-green{background:linear-gradient(135deg,#063e28,#122718)}
.tm-accent-purple{background:linear-gradient(135deg,#32104c,#160d25)}
.tm-game-logo{position:absolute;left:9px;top:8px;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#ffd21a;color:#090909;font-size:11px;font-weight:900;z-index:1}
.tm-game-image strong{position:relative;z-index:1;color:#fff;font-size:16px;text-align:center;text-shadow:0 2px 8px rgba(0,0,0,.65)}
.tm-game-result{padding:10px 10px 11px;text-align:center;background:linear-gradient(180deg,#171717,#0d0d0d)}
.tm-game-number{display:block;color:#ffbf29;font-size:28px;line-height:1.05;font-weight:500;letter-spacing:1px}
.tm-game-timer{display:block;margin-top:6px;color:#7cff98;font-size:12px}
.tm-game-lines{display:block;height:2px;margin:7px 12px 9px;background:linear-gradient(90deg,transparent,#ffd21a,transparent);opacity:.65}
.tm-game-result button{width:100%;min-height:32px;border:0;border-radius:6px;background:linear-gradient(180deg,#ff2929,#d90000);color:#fff;font-size:9px;font-weight:800}

/* =========================================================
   TOGEL RESULT SHOWCASE
   Compact 3-column layout. Card footprint matches the square
   provider cards used by CASINO / SLOT.
   ========================================================= */
.tm-togel-layout{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    padding:0 12px var(--tm-section-gap);
    background:
        radial-gradient(circle at 15% 10%,rgba(255,210,26,.07),transparent 22%),
        radial-gradient(circle at 85% 80%,rgba(255,170,0,.05),transparent 24%),
        #070707;
}
.tm-togel-card{
    overflow:hidden;
    min-width:0;
    border:1px solid rgba(255,210,26,.72);
    border-radius:10px;
    background:#101010;
    box-shadow:0 6px 14px rgba(0,0,0,.24);
    aspect-ratio:1/1;
    display:flex;
    flex-direction:column;
}
.tm-togel-card .tm-game-image{
    height:auto;
    flex:0 0 36%;
    min-height:0;
    padding:5px 4px 5px 31px;
    justify-content:center;
    background:linear-gradient(135deg,#ffd21a,#ffad00 55%,#7b4d00);
    border-bottom:1px solid rgba(0,0,0,.65);
}
.tm-togel-card .tm-game-image strong{
    color:#090909;
    font-size:10px;
    line-height:1.05;
    text-shadow:none;
    text-transform:uppercase;
    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}
.tm-togel-card .tm-game-logo{
    left:5px;
    top:50%;
    transform:translateY(-50%);
    width:24px;
    height:24px;
    border:1px solid rgba(255,255,255,.55);
    background:linear-gradient(145deg,#fff,#ffd21a);
    color:#111;
    font-size:7px;
    z-index:2;
}
.tm-togel-card .tm-game-result{
    min-height:0;
    flex:1 1 auto;
    padding:8px 4px 5px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:
        linear-gradient(rgba(7,7,7,.84),rgba(7,7,7,.92)),
        radial-gradient(circle at 50% 10%,rgba(255,210,26,.12),transparent 40%);
}
.tm-togel-card .tm-game-number{
    font-size:23px;
    line-height:1;
    font-weight:500;
    letter-spacing:1px;
}
.tm-togel-card .tm-game-timer{
    margin-top:5px;
    color:#7cff98;
    font-size:9px;
    line-height:1;
    white-space:nowrap;
}
.tm-togel-card .tm-game-timer.is-closed{
    color:#ff3b5c;
    font-weight:800;
    font-size:9px;
}
.tm-togel-card .tm-game-lines{
    width:72%;
    margin:6px 0 0;
    height:1px;
    opacity:.4;
}
.tm-togel-card .tm-game-result button{display:none}
.tm-togel-card .tm-accent-blue,
.tm-togel-card .tm-accent-red,
.tm-togel-card .tm-accent-gold,
.tm-togel-card .tm-accent-green,
.tm-togel-card .tm-accent-purple,
.tm-togel-card .tm-accent-cyan,
.tm-togel-card .tm-accent-orange{
    background:linear-gradient(135deg,#ffd21a,#ffad00 55%,#7b4d00);
}
@media(max-width:380px){
    .tm-togel-layout{gap:8px;padding-left:12px;padding-right:12px}
    .tm-togel-card{border-radius:9px}
    .tm-togel-card .tm-game-image{padding-left:28px}
    .tm-togel-card .tm-game-image strong{font-size:9px}
    .tm-togel-card .tm-game-logo{width:22px;height:22px;left:4px;font-size:6.5px}
    .tm-togel-card .tm-game-number{font-size:21px}
    .tm-togel-card .tm-game-timer{font-size:8px}
}
.tm-payment-section{margin:0 12px 0;padding:10px;border:1px solid rgba(255,210,26,.18);border-radius:14px;background:linear-gradient(145deg,#151515,#0c0c0c)}
.tm-payment-heading{display:none}
.tm-payment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.tm-payment-item{height:42px;padding:2px;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.tm-payment-item img{width:100%;height:100%;object-fit:contain;border-radius:5px}
.tm-dashboard-copyright{text-align:center;padding:16px 0 0;color:#777;font-size:12px;letter-spacing:.2px}

@media(max-width:380px){
    .tm-dashboard-header{padding:0 12px}
    .tm-header-left{gap:9px}
    .tm-logo-copy strong{font-size:18px}
    .tm-logo-copy small{font-size:10px}
    .tm-header-actions{gap:6px}
    .tm-header-deposit{width:85px;height:30px;padding:0 8px;font-size:14px}
    .tm-header-deposit svg{width:14px;height:14px;flex-basis:14px}
    .tm-balance-panel{padding:19px 12px 22px}
    .tm-balance-refresh{width:85px;height:30px;flex-basis:85px;font-size:14px}
    .tm-balance-refresh svg{width:14px;height:14px;flex-basis:14px}
.tm-payment-section{margin-left:10px;margin-right:10px;padding:8px}
    .tm-balance-copy h1{font-size:23px}
    .tm-balance-copy p{font-size:16px}
    .tm-payment-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
    .tm-payment-item{height:38px;padding:2px}
    .tm-game-category{font-size:9px}
    .tm-game-category span{width:20px;height:20px}
}

@media(min-width:700px){
    .tm-games{grid-template-columns:repeat(3,minmax(0,1fr))}
    .tm-payment-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(min-width:700px){
    .tm-home-section-head h2{font-size:17px}
}


/* CASINO / SLOT PROVIDER SHOWCASE */
.tm-provider-showcase{padding:0 12px 0;background:#070707}
.tm-provider-section{margin:0 0 var(--tm-section-gap);padding:12px 10px 0;border:1px solid rgba(255,210,26,.24);border-radius:14px;background:linear-gradient(145deg,#151515,#0b0b0b);box-shadow:0 8px 18px rgba(0,0,0,.28)}
.tm-provider-section[data-provider-category="casino"],
.tm-provider-section[data-provider-category="slot"]{
    margin-bottom:0;
}
.tm-provider-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 12px}
.tm-provider-head h2{margin:0;padding:7px 18px;color:#080808;background:linear-gradient(180deg,#ffd21a,#ffad00);border-radius:7px 20px 20px 7px;font-size:15px;line-height:1.1;font-weight:900}
.tm-provider-head span{color:#ffd21a;font-size:9px;font-weight:800;letter-spacing:1px}
.tm-provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tm-provider-card{min-width:0;text-align:center}
.tm-provider-image-link{display:block;aspect-ratio:1/1;overflow:hidden;border:1px solid rgba(255,210,26,.45);border-radius:10px;background:#151515;box-shadow:none}
.tm-provider-image-link img{display:block;width:100%;height:100%;object-fit:cover}
.tm-provider-image-placeholder{display:flex;align-items:center;justify-content:center;padding:10px;background:linear-gradient(145deg,#1c1c1c,#0b0b0b);color:#ffd21a;font-size:clamp(18px,7vw,34px);font-weight:900;letter-spacing:.5px;text-decoration:none;text-shadow:0 2px 8px rgba(0,0,0,.55)}
.tm-provider-image-placeholder span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-provider-title{margin-top:6px;min-height:30px;color:#fff;font-size:11px;line-height:1.2;font-weight:800;word-break:normal}
@media(max-width:380px){.tm-provider-grid{gap:8px}.tm-provider-title{font-size:10px}}
@media(min-width:700px){.tm-provider-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}


/* =========================================================
   SPORTS / STREAM N' SPIN / POKER / ARCADE / E-LOTTERY
   Consistent square-card system.
   ========================================================= */
.tm-custom-showcase{padding-bottom:0;margin-bottom:0 !important}
.tm-provider-section.tm-custom-showcase{margin-bottom:0 !important}
.tm-custom-grid{display:grid;gap:12px}
.tm-custom-card{min-width:0;text-align:center}
.tm-custom-image-link{
    position:relative;display:block;overflow:hidden;
    border:1px solid rgba(255,210,26,.62);border-radius:10px;background:#101010;
    box-shadow:none;transition:transform .18s ease,border-color .18s ease
}
.tm-custom-image-link:hover{transform:translateY(-1px);border-color:#ffd21a}
.tm-custom-image-link img{display:block;width:100%;height:100%;object-fit:cover}
.tm-showcase-badge{
    position:absolute;right:7px;top:7px;z-index:2;width:24px;height:24px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f4f4f4,#cfcfcf);
    color:#111;font-size:12px;font-weight:900;border:1px solid rgba(0,0,0,.18);box-shadow:0 2px 7px rgba(0,0,0,.3)
}
.tm-sports-grid,.tm-arcade-grid,.tm-lottery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tm-sports-grid .tm-custom-image-link,
.tm-arcade-grid .tm-custom-image-link,
.tm-lottery-grid .tm-custom-image-link{aspect-ratio:1/1}
.tm-stream-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tm-stream-grid .tm-custom-image-link{aspect-ratio:1/1}
.tm-poker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tm-poker-grid .tm-custom-image-link{aspect-ratio:1/1}
.tm-custom-showcase .tm-provider-title{
    display:block;margin-top:6px;min-height:30px;color:#fff;font-size:11px;line-height:1.2;font-weight:800;word-break:normal
}
@media(max-width:380px){
    .tm-custom-grid{gap:8px}
    .tm-showcase-badge{width:22px;height:22px;font-size:11px;right:5px;top:5px}
    .tm-custom-showcase .tm-provider-title{font-size:10px}
}
@media(min-width:700px){
    .tm-sports-grid,.tm-arcade-grid,.tm-lottery-grid,.tm-poker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* =========================================================
   GLOBAL LANGUAGE SWITCHER
========================================================= */
.tm-language-switcher{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    padding:12px 14px;
    background:#111;
    border-bottom:1px solid rgba(255,210,26,.22);
}
.tm-language-btn{
    min-width:0;
    height:48px;
    padding:5px 6px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid rgba(255,210,26,.35);
    border-radius:10px;
    background:#181818;
    color:#d8d8d8;
    font:700 11px/1 inherit;
    cursor:pointer;
    transition:.18s ease;
}
.tm-language-btn img{
    width:26px;
    height:26px;
    flex:0 0 26px;
    display:block;
    border-radius:50%;
    object-fit:cover;
    border:1px solid rgba(255,255,255,.35);
    box-shadow:0 1px 4px rgba(0,0,0,.45);
}
.tm-language-btn.active{
    color:#080808;
    background:linear-gradient(180deg,#ffd21a,#ffad00);
    border-color:#ffd21a;
    box-shadow:0 4px 12px rgba(255,193,7,.14);
}
.tm-language-btn:active{transform:scale(.98)}
@media(max-width:380px){
    .tm-language-switcher{gap:5px;padding:10px 10px}
    .tm-language-btn{height:44px;font-size:9px;gap:4px;padding:4px}
    .tm-language-btn img{width:23px;height:23px;flex-basis:23px}
}

/* =========================================================
   TUTULMANIA GOLD FRAME CONSISTENCY
========================================================= */
.tm-provider-image-link,
.tm-custom-image-link,
.tm-home-game-cover,
.tm-game-card,
.tm-togel-card,
.tm-provider-section,
.tm-home-section,
.tm-payment-section,
.card,
.bank-card,
.game-card,
.auth-card{
    border-color:rgba(255,210,26,.62) !important;
}
.tm-provider-image-link:hover,
.tm-custom-image-link:hover,
.tm-home-game-cover:hover,
.tm-game-card:hover{
    border-color:#ffd21a !important;
}

.auth-page .login-card,
.auth-page .promo-banner,
.auth-page .register-bank-section,
.auth-page .field-box,
.auth-page .captcha-image,
.auth-page .captcha-input,
.deposit-card,
.wallet-card,
.bank-item{
    border-color:rgba(255,210,26,.55) !important;
}

/* FINAL GOLD FRAME + LANGUAGE FLAG POLISH */
.tm-home-section,
.tm-provider-section,
.tm-payment-section,
.tm-game-card,
.tm-togel-card,
.tm-home-game-cover,
.tm-provider-image-link,
.tm-custom-image-link,
.tm-game-category,
.tm-game-search {
    border-color:#ffd21a !important;
}

.tm-language-btn img {
    width:28px;
    height:28px;
    flex:0 0 28px;
    object-fit:cover;
    object-position:center;
    border:1px solid rgba(255,210,26,.65);
    border-radius:50%;
    box-sizing:border-box;
}

@media(max-width:380px){
    .tm-language-btn img{
        width:25px;
        height:25px;
        flex-basis:25px;
    }
}

/* Keep every visible image/card frame on the dashboard in TUTULMANIA gold. */
.tm-provider-image-link:hover,
.tm-custom-image-link:hover,
.tm-home-game-cover:hover,
.tm-game-card:hover,
.tm-togel-card:hover{
    border-color:#ffd21a !important;
}

/* Togel badge/frame should not introduce a white border. */
.tm-togel-card .tm-game-logo{
    border-color:#ffd21a !important;
}
/* =========================================================
   GLOBAL AUTHENTICATED PAGE SHELL
   All sidebar pages share the same viewport/footer geometry.
   The copyright is rendered once by layouts/footer.php so its
   position is independent of the individual page feature.
========================================================= */
.dashboard-page .page-content{
    min-height:100dvh !important;
    min-height:100vh !important;
    display:flex !important;
    flex-direction:column !important;
    box-sizing:border-box !important;
}

.dashboard-page .tm-reference-dashboard,
.dashboard-page .tm-withdraw-page,
.dashboard-page .tm-deposit-page,
.dashboard-page .tm-history-page,
.dashboard-page .tm-transaction-page,
.dashboard-page .tm-invoice-page,
.dashboard-page .tm-memo-page,
.dashboard-page .tm-password-page,
.dashboard-page .tm-hadiah-page,
.dashboard-page .tm-berita-page{
    flex:1 1 auto !important;
    min-height:0 !important;
}

.tm-global-copyright{
    width:100%;
    flex:0 0 auto;
    box-sizing:border-box;
    margin:0;
    padding:18px 16px 20px;
    text-align:center;
    color:#777;
    font-size:13px;
    line-height:1.2;
    letter-spacing:.2px;
    pointer-events:none;
}


/* CENTRAL BRAND LOGO: replace assets/brand/logo.png to change the brand image. */
.tm-dashboard-logo{
    min-width:0;
}
.tm-brand-logo{
    display:block;
    width:min(240px, 52vw);
    height:42px;
    max-width:100%;
    object-fit:contain;
    object-position:left center;
}
@media (max-width:600px){
    .tm-brand-logo{
        width:min(205px, 55vw);
        height:40px;
    }
}
