@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&family=Sarabun:wght@400;600;700&display=swap");
/* Fallback MEMBER stylesheet.
   The site's original assets_user/defslot/css/*.css are not part of the upload, so this is a
   hand-written approximation (dark / gold, mobile-first) - NOT the real theme. */
:root { --bg:#0b0d14; --panel:#161a26; --panel2:#1d2231; --border:#2a3047; --text:#e9ecf5; --muted:#98a0b8; --accent:#f5b942; --accent2:#ff8a1f; --green:#b5fd41; --ok:#22c55e; --err:#ef4444;
        --border-primary:#2a3047; --box-shadow-inset: inset 0 0 12px rgba(0,0,0,.35); --linear-primary-top: linear-gradient(135deg,#f5b942,#ff8a1f); }
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--text); font-family: "Sarabun","Prompt","Mitr",system-ui,-apple-system,"Segoe UI",sans-serif; margin: 0; line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .5rem; line-height: 1.25; }
ul { margin: 0; padding: 0; list-style: none; }

/* every inline SVG icon is sized by the (missing) theme css - give them sane defaults */
svg { max-width: 100%; max-height: 100%; }
.cls-1 { fill: currentColor; } .cls-2 { fill: none; }
.link-icon svg, .asset-icon svg, .icon-box svg, .nav-icon svg, .bottom-nav-link svg { width: 32px; height: 32px; }
.link-icon svg .cls-1, .icon-box svg .cls-1 { fill: var(--accent); }
.question svg { width: 28px; height: 40px; }

.container, .content, .main-content { max-width: 960px; margin: 0 auto; padding: 12px; }
.card, .box, .content-item-box, .bank-acc-info { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 12px; }

/* ---------- forms (login / register / withdraw ...) ---------- */
input, select, textarea, .form-control { width: 100%; background: #0e111a; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 11px 44px 11px 12px; font-size: 16px; font-family: inherit; }
input[type=checkbox], input[type=radio] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); }
label { color: var(--muted); font-size: 14px; display: block; margin: 8px 0 4px; }
.input-group { position: relative; display: block; margin-bottom: 14px; }
.input-group svg { position: absolute; right: 14px; bottom: 12px; width: 20px; height: 20px; pointer-events: none; }
.input-group svg path, .input-group svg .cls-1 { fill: #8a93ad; }
.form-step { display: none; } .form-step-active { display: block; }
.btns-group { display: flex; gap: 10px; margin-top: 8px; }
.btns-group .btn, .btns-group input { flex: 1; }
button, .btn, input[type=submit], input[type=button] { display: inline-block; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #1a1204; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; font-size: 16px; text-align: center; cursor: pointer; font-family: inherit; }
.btn-regis, .btn-secondary { background: var(--panel2); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--err); color: #fff; } .btn-success { background: var(--ok); color: #fff; }
.container > .header { text-align: center; padding: 10px 0 6px; }
.container > .header img { max-width: 220px; max-height: 120px; object-fit: contain; }
.container > .header h1 { margin-top: 12px; font-size: 26px; text-align: left; }
#togglePassword { cursor: pointer; margin-right: 12px; }

/* ---------- member dashboard ---------- */
.d-flex, .flex { display: flex; } .flex-column { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.h-100 { height: 100%; } .text-center { text-align: center; }
.rounded-full { border-radius: 9999px; } .rounded-lg { border-radius: .5rem; }
.bg-card { background: var(--panel); } .font-bold { font-weight: 700; } .text-white { color: #fff; } .text-green-500 { color: var(--green); }
.mt-2 { margin-top: .5rem; } .ml-2 { margin-left: .5rem; } .mr-2 { margin-right: .5rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; } .w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.text-lg { font-size: 1.125rem; } .text-sm { font-size: .875rem; }

.progress-bar { height: 8px; background: #2b3046; border-radius: 99px; overflow: hidden; position: relative; display: block; }
.progress-bar-fill { display: block; height: 100%; min-width: 3px; background: linear-gradient(90deg,var(--accent),var(--accent2)); border-radius: 99px; }

.mobile-top img#mobile-logo { max-width: 250px; }
.mobile-asset { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; }
.mobile-profile { display: flex; align-items: center; flex: 1 1 100%; }
.mobile-profile-pic { background: #fff; display: flex; align-items: center; justify-content: center; }
.mobile-profile-pic img { width: 28px; height: auto; }
.mobile-profile h6, .reward-progress-info h6 { color: var(--muted) !important; margin: 0; font-size: 13px; font-weight: 500; }
.mobile-asset-amount { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; background: #0e111a; border: 1px solid var(--border); border-radius: 99px; padding: 6px 12px; font-weight: 700; flex: 1 1 0; }
.mobile-asset-amount img { width: 22px; height: 22px; object-fit: contain; }
.mobile-asset-amount.credit span { color: var(--accent); } .mobile-asset-amount.diamond span { color: #7dd3fc; }

.prfoile-menu { margin-top: 14px; }
.profile-nav { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 8px; }
.profile-link a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px 4px; height: 100%; }
.profile-link a:hover { border-color: var(--accent); }
.link-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }

.reward-container, .reward-box, .free-credit-container, .turn, .asset-box, .popup-detail { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-top: 12px; }
.reward-header, .turn-header { font-weight: 700; margin-bottom: 8px; }
.reward-progress-wrap { flex: 1; min-width: 0; }
.reward-btn { padding: 6px 14px; font-size: 14px; }
.graph, .turn-graph { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; text-align: center; font-size: 12px; }
.asset { display: flex; align-items: center; gap: 10px; } .asset-text { font-weight: 600; }
.question { display: inline-flex; width: 28px; height: 40px; }

/* ---------- tables / bits ---------- */
table { width: 100%; border-collapse: collapse; } th, td { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; }
.row { display: flex; flex-wrap: wrap; margin: 0 -6px; } [class^="col-"] { padding: 0 6px; flex: 1 0 0; }
.col-6 { flex: 0 0 50%; max-width: 50%; } .col-12 { flex: 0 0 100%; max-width: 100%; }
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90; } .overlay.active, .overlay.show, .overlay.open { display: block; }
nav, .navigation, .footer { background: var(--panel); border-top: 1px solid var(--border); padding: 8px 12px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #11141f; border-top: 1px solid var(--border); padding: 0; }
.bottom-nav-container { display: flex; justify-content: space-around; align-items: flex-end; max-width: 560px; margin: 0 auto; }
.bottom-nav-link { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; font-size: 11px; color: var(--muted); }
.bottom-nav-link.nav-active { color: var(--accent); }
.bottom-nav-link.nav-main-btn { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #1a1204; border-radius: 50%; width: 56px; height: 56px; justify-content: center; margin-top: -18px; }
.bottom-nav-link svg, .bottom-nav-link i { font-size: 20px; width: 22px; height: 22px; }
.carousel-cell { width: 100%; margin-right: 8px; }
@media (min-width: 768px) { .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; } .col-md-6 { flex: 0 0 50%; max-width: 50%; } }

/* mobile game menu (slot/casino/sport/... shortcuts) */
.mobile-menu-container { margin-top: 16px; }
.mobile-menu-box { display: grid; grid-template-columns: repeat(auto-fill,minmax(64px,1fr)); gap: 10px; }
.mobile-menu-link a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: auto !important; height: auto !important; padding: 10px 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 12px; text-align: center; }
.mobile-menu-link svg { width: 32px; height: 32px; } .mobile-menu-link svg .cls-1 { fill: var(--accent); }
.popup-detail { max-width: 420px; }

/* register page: 4-step progress indicator (icons were unsized and filled the whole desktop screen) */
.progressbar { position: relative; display: flex; justify-content: space-between; max-width: 460px; margin: 18px auto 46px; counter-reset: step; }
.progressbar::before, .progressbar .progress { content: ""; position: absolute; top: 20px; left: 0; height: 3px; border-radius: 3px; z-index: 0; }
.progressbar::before { width: 100%; background: #2b3046; }
.progressbar .progress { width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; }
.progress-step { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #1b2033; border: 3px solid #2b3046; transition: border-color .3s, background .3s; }
.progress-step svg { width: 18px; height: 18px; max-width: 18px; max-height: 18px; }
.progress-step svg path, .progress-step svg .cls-1, .progress-step svg .cls-2 { fill: #8a93ad; }
.progress-step::after { content: attr(data-title); position: absolute; top: 48px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.progress-step-active { border-color: var(--accent); background: #2a2410; }
.progress-step-active svg path, .progress-step-active svg .cls-1, .progress-step-active svg .cls-2 { fill: var(--accent); }
.progress-step-active::after { color: #fff; }
.progressbar + * { margin-top: 26px; }

/* register page: bank picker + agreement popups (hidden until opened by register.php's jQuery .show()) */
.bankselectpopup, .bankselectpopup2 { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(5,8,20,.72); overflow-y: auto; padding: 24px 16px !important; }
.inbankselectpopup, .inbankselectpopup2 { position: relative; max-width: 560px; margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px 16px 12px; transition: opacity .35s, transform .35s; }
.closeanimationselectbank { opacity: 0; transform: translateY(24px); }
.btnclosebankselect, .btnclosebankselect2 { position: absolute; top: 10px; right: 10px; width: 34px !important; height: 34px; padding: 0; border-radius: 10px; }
.inbankselectpopup table { width: 100%; margin-top: 30px; border-collapse: collapse; }
.inbankselectpopup td { width: 50%; text-align: center; padding: 10px 6px; font-size: 14px; border-bottom: 1px solid var(--border); }
.inbankselectpopup .selectbank { display: block; width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 12px; cursor: pointer; object-fit: contain; background: #2b3046; transition: transform .15s; }
.inbankselectpopup .selectbank:hover { transform: scale(1.08); }
.inbankselectpopup2 h2 { font-size: 20px; margin: 18px 0 8px; }
