/* ==========================================================================
   DGThai Casino - Old Layout Theme (Black / Gold / Olive Brown)
   ธีมคาสิโนพรีเมียม สไตล์ดาร์ก ลักชัวรี่
   - สีพื้นหลัง: ม่วงเข้มราตรี / ม่วงดำ (Dark Night Violet / Black Plum)
   - สีหลัก (Primary Accent): เหลืองทอง (Gold #ffd700)
   - สีรอง (Secondary Accent): สีทองคาสิโนพรีเมียม (Luxury Gold #ffc700)
   - ตัวอักษร: ขาวสว่าง คอนทราสต์สูง อ่านง่าย สบายตา
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --sc-bg: #46301c;
    --sc-surface: #2e271f;
    --sc-surface-2: #3d3529;
    --sc-surface-3: #493f31;
    --sc-border: rgba(255, 215, 0, 0.22);
    --sc-border-subtle: rgba(255, 255, 255, 0.08);
    --sc-text: #ffffff;
    --sc-muted: #c9bfa8;
    --sc-green: #ffd700;          /* Gold Accent (old layout) */
    --sc-green-hover: #ffe033;    /* Bright Gold Hover */
    --sc-gold: #ffc700;           /* Luxury Casino Gold */
    --sc-gold-hover: #ffd633;     /* Bright Gold Hover */
    --sc-blue: #da8500;           /* Amber */
    --sc-red: #ff3366;            /* Neon Red / Danger */

    /* Layout Metrics */
    --sc-topbar-h: 60px;
    --sc-sidebar-w: 240px;
    --sc-bottomnav-h: 58px;
    --sc-radius: 14px;
}

/* ==========================================================================
   Bootstrap variable overrides
   ========================================================================== */
[data-bs-theme="dark"],
[data-bs-theme="light"],
:root {
    --bs-body-bg: var(--sc-bg);
    --bs-body-color: var(--sc-text);
    --bs-secondary-color: var(--sc-muted);
    --bs-border-color: var(--sc-border-subtle);
    --bs-emphasis-color: #ffffff;
    --bs-link-color: var(--sc-muted);
    --bs-link-hover-color: var(--sc-green);
    --bs-body-font-family: 'Noto Sans Thai', sans-serif;
    --bs-border-radius: var(--sc-radius);

    --bs-card-bg: var(--sc-surface);
    --bs-card-border-color: var(--sc-border);
    --bs-card-color: var(--sc-text);

    --bs-table-bg: transparent;
    --bs-table-color: var(--sc-text);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-striped-color: var(--sc-text);
    --bs-table-hover-bg: rgba(255, 215, 0, 0.12);
    --bs-table-hover-color: #ffffff;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    overflow-x: hidden;
    background-color: var(--sc-bg);
    background-image:
            radial-gradient(ellipse 90% 60% at 50% -20%, rgba(218, 133, 0, 0.28), transparent),
            radial-gradient(ellipse 70% 50% at 90% 30%, rgba(255, 215, 0, 0.14), transparent),
            radial-gradient(ellipse 60% 40% at 10% 70%, rgba(218, 133, 0, 0.12), transparent);
    background-attachment: fixed;
    color: var(--sc-text);
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

/* scrollbars ------------------------------------------------------------- */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--sc-surface-3) transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background: var(--sc-surface-3);
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--sc-green);
}

*::-webkit-scrollbar-track {
    background: transparent;
}

/* shared surfaces & typography ------------------------------------------- */
.sc-muted {
    color: var(--sc-muted) !important;
}

.sc-green {
    color: var(--sc-green) !important;
}

.sc-gold {
    color: var(--sc-gold) !important;
}

.sc-card {
    background: linear-gradient(145deg, #2a2418 0%, #221d13 100%);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

/* Bootstrap Cards (Promotions / Views) */
.card {
    background: linear-gradient(145deg, #2b2519 0%, #201b12 100%);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    color: var(--sc-text);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.25) 0%, rgba(218, 133, 0, 0.2) 100%);
    border-bottom: 1px solid var(--sc-border);
    color: var(--sc-gold);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.25rem;
}

.card-body {
    color: #ece3d0;
    font-size: 0.92rem;
    line-height: 1.65;
    padding: 1.25rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    --bs-btn-font-weight: 700;
    --bs-btn-border-radius: var(--sc-radius);
    transition: all 0.2s ease;
}

/* Primary Button: Gold Gradient (e.g. Login / Main CTA) */
.btn-primary,
.btn-sc-green {
    --bs-btn-bg: #ffd700;
    --bs-btn-border-color: #ffe033;
    --bs-btn-color: #000000;
    --bs-btn-hover-bg: #ffe033;
    --bs-btn-hover-border-color: #fcfd6a;
    --bs-btn-hover-color: #000000;
    --bs-btn-active-bg: #c98a00;
    --bs-btn-active-border-color: #c98a00;
    --bs-btn-active-color: #000000;
    background: linear-gradient(135deg, #ffd700 0%, #c98a00 100%) !important;
    border: 1px solid #ffe033 !important;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover,
.btn-sc-green:hover {
    background: linear-gradient(135deg, #ffe033 0%, #e6b800 100%) !important;
    border-color: #fcfd6a !important;
    color: #000000 !important;
    box-shadow: 0 6px 22px rgba(255, 215, 0, 0.6);
    transform: translateY(-1px);
}

/* Secondary Button: Luxury Casino Gold Gradient (e.g. Register) */
.btn-secondary {
    --bs-btn-bg: #ffc700;
    --bs-btn-border-color: #ffd733;
    --bs-btn-color: #1c1710;
    --bs-btn-hover-bg: #ffd633;
    --bs-btn-hover-border-color: #ffe066;
    --bs-btn-hover-color: #000000;
    --bs-btn-active-bg: #e0a500;
    --bs-btn-active-border-color: #e0a500;
    --bs-btn-active-color: #000000;
    background: linear-gradient(135deg, #ffc700 0%, #e0a500 100%) !important;
    border: 1px solid #ffd733 !important;
    color: #1c1710 !important;
    box-shadow: 0 4px 15px rgba(255, 199, 0, 0.35);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ffd633 0%, #f0b500 100%) !important;
    border-color: #ffe066 !important;
    color: #000000 !important;
    box-shadow: 0 6px 22px rgba(255, 199, 0, 0.55);
    transform: translateY(-1px);
}

.btn-sc-surface {
    --bs-btn-bg: var(--sc-surface-2);
    --bs-btn-border-color: var(--sc-surface-3);
    --bs-btn-color: var(--sc-text);
    --bs-btn-hover-bg: var(--sc-surface-3);
    --bs-btn-hover-border-color: var(--sc-green);
    --bs-btn-hover-color: #ffffff;
    background: var(--sc-surface-2);
    border: 1px solid var(--sc-surface-3);
    color: var(--sc-text);
}

.btn-sc-surface:hover {
    background: var(--sc-surface-3);
    border-color: var(--sc-green);
    color: #ffffff;
}

.btn-sc-ghost {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-color: var(--sc-muted);
    --bs-btn-hover-bg: var(--sc-surface-2);
    --bs-btn-hover-border-color: var(--sc-surface-2);
    --bs-btn-hover-color: #ffffff;
}

/* ==========================================================================
   Form controls & Search
   ========================================================================== */
.form-control,
.form-select {
    background: var(--sc-surface-2);
    border: 1.5px solid var(--sc-surface-3);
    color: var(--sc-text);
    font-weight: 500;
    border-radius: var(--sc-radius);
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--sc-surface-2);
    color: var(--sc-text);
    border-color: var(--sc-green);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
}

.form-control::placeholder {
    color: var(--sc-muted);
    opacity: 0.7;
    font-weight: 400;
}

.input-group-text {
    background: var(--sc-surface-2);
    border: 1.5px solid var(--sc-surface-3);
    color: var(--sc-muted);
}

.form-range::-webkit-slider-thumb {
    background: var(--sc-green);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.form-range::-moz-range-thumb {
    background: var(--sc-green);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.form-range::-webkit-slider-runnable-track {
    background: var(--sc-surface-3);
    height: 6px;
    border-radius: 3px;
}

.form-range::-moz-range-track {
    background: var(--sc-surface-3);
    height: 6px;
    border-radius: 3px;
}

/* ==========================================================================
   Topbar (Header)
   ========================================================================== */
.sc-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--sc-topbar-h);
    background: linear-gradient(0deg, rgba(30, 30, 30, 0.94), rgba(0, 0, 0, 0.94));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 2px solid #fcfd6a;
    box-shadow: 0 0 10px black;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0 .75rem;
}

.sc-logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.02em;
    color: var(--sc-text);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: calc(var(--sc-topbar-h) - 1.25rem);
}

.sc-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.sc-logo span {
    color: var(--sc-green);
}

.sc-balance {
    background: var(--sc-surface-2);
    border: 1px solid var(--sc-surface-3);
    border-radius: var(--sc-radius);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    font-weight: 700;
}

.sc-balance__value {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .75rem;
    white-space: nowrap;
    color: var(--sc-gold);
}

.sc-avatar {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbfa5e, #da8500);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .75rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* ==========================================================================
   Sidebar — pure-CSS off-canvas
   ========================================================================== */
.sc-sidebar-check {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
}

.sc-sidebar {
    position: fixed;
    top: var(--sc-topbar-h);
    bottom: 0;
    left: 0;
    width: var(--sc-sidebar-w);
    background: #14110a;
    border-right: 1px solid rgba(255, 215, 0, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
    padding: .85rem .75rem;
    z-index: 1035;
    transform: translateX(-100%);
    transition: transform .25s ease;
}

.sc-sidebar-check:checked~.sc-sidebar {
    transform: translateX(0);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.7);
}

.sc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 6, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1030;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    margin: 0;
}

.sc-sidebar-check:checked~.sc-backdrop {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 992px) {
    body.sidebar-docked .sc-sidebar {
        transform: none;
        box-shadow: none;
    }

    body.sidebar-docked .sc-main {
        margin-left: var(--sc-sidebar-w);
    }

    body.sidebar-docked .sc-backdrop {
        display: none;
    }

    body.sidebar-docked .sc-sidebar-check:checked~.sc-sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-docked .sc-sidebar-check:checked~.sc-main {
        margin-left: 0;
    }
}

.sc-sidebar__switch {
    display: flex;
    background: var(--sc-surface-2);
    border: 1px solid var(--sc-surface-3);
    border-radius: var(--sc-radius);
    padding: 4px;
    margin-bottom: .85rem;
}

.sc-sidebar__switch a {
    flex: 1;
    text-align: center;
    padding: .5rem .25rem;
    border-radius: 8px;
    font-weight: 700;
    color: var(--sc-muted);
    font-size: .8rem;
    transition: all 0.2s ease;
}

.sc-sidebar__switch a.active {
    background: linear-gradient(135deg, #ffd700 0%, #da8500 100%);
    color: #000000;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.35);
}

.sc-nav-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--sc-gold);
    padding: .85rem .6rem .4rem;
    font-weight: 800;
}

.sc-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .75rem;
    border-radius: 8px;
    color: var(--sc-muted);
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.sc-nav-link:hover {
    background: rgba(255, 215, 0, 0.12);
    color: #ffffff;
    transform: translateX(3px);
}

.sc-nav-link.active {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.25) 0%, rgba(218, 133, 0, 0.25) 100%);
    color: #ffd700;
    font-weight: 700;
    border-left: 3px solid #ffd700;
}

.sc-nav-link i {
    font-size: 1.1rem;
    width: 1.3rem;
    text-align: center;
    flex: none;
    color: var(--sc-muted);
    transition: color 0.2s ease;
}

.sc-nav-link:hover i,
.sc-nav-link.active i {
    color: var(--sc-green);
}

.sc-nav-link .badge {
    margin-left: auto;
}

/* ==========================================================================
   Main layout & Headings
   ========================================================================== */
.sc-main {
    margin-left: 0;
    padding-top: var(--sc-topbar-h);
    min-height: 100vh;
    transition: margin-left .2s ease;
}

@media (max-width: 991.98px) {
    .sc-main {
        padding-bottom: var(--sc-bottomnav-h);
    }
}

.sc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
}

.sc-section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0;
}

.sc-section-title i {
    color: var(--sc-green);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.65));
}

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.sc-hero .sc-hero__slide {
    border-radius: var(--sc-radius);
    padding: 2.25rem 2rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2b1150 0%, #15082a 100%);
    border: 1px solid var(--sc-border);
}

.sc-hero__slide::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, transparent 70%);
}

.sc-hero__slide h2 {
    font-weight: 800;
    font-size: 1.7rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sc-hero .carousel-indicators {
    margin-bottom: .5rem;
}

.sc-hero .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: var(--sc-surface-3);
    opacity: .5;
}

.sc-hero .carousel-indicators .active {
    opacity: 1;
    background: var(--sc-green);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

/* ==========================================================================
   Game cards & Grids
   ========================================================================== */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .85rem;
}

@media (min-width: 576px) {
    .sc-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

.sc-game {
    display: block;
    border-radius: var(--sc-radius);
    overflow: hidden;
    background: var(--sc-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sc-game:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 12px 28px -6px rgba(255, 215, 0, 0.35);
}

.sc-game__thumb {
    background: linear-gradient(160deg, #3a3220 0%, #211c0f 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    color: var(--sc-text);
    max-width: 200px;
    min-height: 200px;
    max-height: 200px;
    position: relative;
}

.sc-game__img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-top-left-radius: var(--sc-radius);
    border-top-right-radius: var(--sc-radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0;
    margin: 0;
}

.sc-game__tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: linear-gradient(135deg, #ffd700, #da8500);
    color: #000000;
    padding: .25rem .5rem;
    border-radius: 6px;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.sc-game__name {
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
    padding: .5rem .75rem .75rem .75rem;
    background: linear-gradient(to top, rgba(14, 7, 24, 0.95), transparent);
}

.sc-game__provider {
    font-size: .65rem;
    opacity: .85;
    font-weight: 600;
    color: var(--sc-gold);
}

.sc-game__players {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    color: var(--sc-muted);
    padding: .4rem .2rem 0;
    font-weight: 600;
}

.sc-dot-live {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.25);
}

/* horizontal scroll rail */
.sc-rail {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
}

.sc-rail>* {
    flex: 0 0 150px;
    scroll-snap-align: start;
}

/* ==========================================================================
   Banner Slider (Hero Carousel)
   ========================================================================== */
.sc-banner-slider {
    position: relative;
    border-radius: var(--sc-radius);
    overflow: hidden;
    border: 1px solid var(--sc-border);
    background: var(--sc-surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.sc-banner-slider .splide__track {
    border-radius: var(--sc-radius);
    overflow: hidden;
}

.sc-banner-item {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #0c0a06;
}

.sc-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sc-banner-item:hover .sc-banner-img {
    transform: scale(1.018);
}

.sc-banner-slider .splide__pagination {
    bottom: 12px;
    gap: 8px;
    padding: 0;
}

.sc-banner-slider .splide__pagination__page {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    opacity: 0.8;
    margin: 0;
    transition: all 0.3s ease;
}

.sc-banner-slider .splide__pagination__page:hover {
    background: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.sc-banner-slider .splide__pagination__page.is-active {
    width: 28px;
    background: linear-gradient(90deg, #ffd700 0%, #da8500 100%);
    border-color: #ffd700;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.sc-banner-slider .splide__arrow {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(20, 17, 10, 0.75) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    opacity: 0;
}

.sc-banner-slider:hover .splide__arrow {
    opacity: 0.85;
}

.sc-banner-slider .splide__arrow:hover {
    opacity: 1 !important;
    background: var(--sc-green) !important;
    border-color: #fcfd6a !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.sc-banner-slider .splide__arrow--prev {
    left: 1rem;
}

.sc-banner-slider .splide__arrow--next {
    right: 1rem;
}

@media (max-width: 768px) {
    .sc-banner-slider .splide__arrow {
        display: none;
    }
    .sc-banner-slider .splide__pagination {
        bottom: 8px;
    }
    .sc-banner-slider .splide__pagination__page {
        width: 7px;
        height: 7px;
    }
    .sc-banner-slider .splide__pagination__page.is-active {
        width: 20px;
    }
}

/* Splide custom arrows & slider track */
.splide__arrow {
    background: var(--sc-surface-2) !important;
    border: 1px solid var(--sc-border) !important;
    color: #ffffff !important;
    opacity: 0.8;
}

.splide__arrow:hover {
    background: var(--sc-green) !important;
    opacity: 1;
}

.splide__arrow svg {
    fill: #ffffff !important;
}

/* ==========================================================================
   Pill tabs
   ========================================================================== */
.sc-pills {
    display: inline-flex;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border-subtle);
    border-radius: var(--sc-radius);
    padding: 4px;
    gap: 4px;
    flex-wrap: wrap;
}

.sc-pills .nav-link {
    color: var(--sc-muted);
    font-weight: 700;
    font-size: .82rem;
    border-radius: 8px;
    padding: .45rem .85rem;
    transition: all 0.2s ease;
}

.sc-pills .nav-link:hover {
    color: #ffffff;
    background: var(--sc-surface-2);
}

.sc-pills .nav-link.active {
    background: linear-gradient(135deg, #ffd700 0%, #b87300 100%);
    color: #000000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* ==========================================================================
   Tables (VIP Rank & Standard Tables)
   ========================================================================== */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--sc-text);
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    margin: 0;
}

.table thead th {
    background: linear-gradient(90deg, #ffd700 0%, #da8500 100%) !important;
    color: #000000 !important;
    font-weight: 700;
    font-size: .88rem;
    border: none;
    padding: .85rem .75rem;
    letter-spacing: .02em;
    vertical-align: middle;
}

.table tbody td {
    border-color: rgba(255, 255, 255, 0.06);
    padding: .85rem .75rem;
    font-weight: 600;
    vertical-align: middle;
    color: #ece3d0;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: var(--sc-surface-2) !important;
    color: var(--sc-text) !important;
}

.table-striped>tbody>tr:nth-of-type(even)>* {
    background-color: var(--sc-surface) !important;
    color: var(--sc-text) !important;
}

.table-hover>tbody>tr:hover>* {
    background-color: rgba(255, 215, 0, 0.15) !important;
    color: #ffffff !important;
}

.sc-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--sc-muted);
    margin: 0;
}

.sc-table thead th {
    color: var(--sc-gold);
    font-size: .78rem;
    font-weight: 700;
    border: 0;
    padding: .65rem .75rem;
}

.sc-table tbody td {
    border: 0;
    padding: .6rem .75rem;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
    color: #ece3d0;
}

.sc-table tbody tr:nth-child(odd) {
    background: var(--sc-surface-2);
}

/* ==========================================================================
   Sports & Betting
   ========================================================================== */
.sc-match {
    background: var(--sc-surface);
    border: 1px solid var(--sc-border-subtle);
    border-radius: var(--sc-radius);
    padding: .9rem 1.1rem;
    margin-bottom: .65rem;
    transition: border-color 0.2s ease;
}

.sc-match:hover {
    border-color: var(--sc-border);
}

.sc-odd-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
}

.sc-odd {
    display: block;
    background: var(--sc-surface-2);
    border: 1px solid var(--sc-surface-3);
    border-radius: 8px;
    padding: .55rem .45rem;
    text-align: center;
    color: var(--sc-text);
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    transition: all .2s ease;
}

.sc-odd small {
    display: block;
    color: var(--sc-muted);
    font-size: .68rem;
    font-weight: 600;
}

.sc-odd:hover {
    background: var(--sc-surface-3);
    border-color: var(--sc-green);
    color: #ffffff;
}

.sc-odd-input:checked+.sc-odd {
    background: linear-gradient(135deg, #ffd700 0%, #c98a00 100%);
    border-color: #ffe033;
    color: #000000;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.sc-odd-input:checked+.sc-odd small {
    color: rgba(255, 255, 255, 0.9);
}

.sc-odd-input:focus-visible+.sc-odd {
    outline: 2px solid var(--sc-green);
    outline-offset: 2px;
}

.sc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(255, 51, 102, 0.18);
    color: var(--sc-red);
    font-size: .65rem;
    font-weight: 800;
    padding: .2rem .45rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.sc-betslip {
    position: sticky;
    top: calc(var(--sc-topbar-h) + 1rem);
}

.sc-betslip__item {
    background: var(--sc-surface-2);
    border: 1px solid var(--sc-surface-3);
    border-radius: 8px;
    padding: .65rem .75rem;
    margin-bottom: .5rem;
    font-size: .82rem;
}

/* ==========================================================================
   Dice Game Shell
   ========================================================================== */
.sc-game-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767.98px) {
    .sc-game-shell {
        grid-template-columns: 1fr;
    }

    .sc-game-shell .sc-bet-panel {
        order: 2;
    }

    .sc-game-shell .sc-game-area {
        order: 1;
    }
}

.sc-bet-panel {
    background: var(--sc-surface-2);
    border-right: 1px solid var(--sc-border-subtle);
    padding: 1.25rem;
}

.sc-game-area {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sc-slider-wrap {
    padding: 2rem 1rem 1rem;
    background: var(--sc-surface-2);
    border: 1px solid var(--sc-surface-3);
    border-radius: var(--sc-radius);
}

.sc-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--sc-red) 0 50%, var(--sc-green) 50% 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.sc-marker {
    position: absolute;
    top: -24px;
    transform: translateX(-50%);
    font-weight: 800;
    font-size: .85rem;
    background: #ffffff;
    color: #1c1710;
    padding: .15rem .5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: left .15s ease;
}

.sc-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #ffffff;
}

.sc-result-big {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.sc-history {
    display: flex;
    gap: .4rem;
    overflow: hidden;
    justify-content: flex-end;
    min-height: 30px;
}

.sc-chip {
    font-size: .75rem;
    font-weight: 800;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: var(--sc-surface-3);
    color: var(--sc-muted);
    animation: sc-fade-in .25s ease;
}

.sc-chip.win {
    background: linear-gradient(135deg, #ffd700, #c98a00);
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

@keyframes sc-fade-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* ==========================================================================
   Footer & Mobile Bottom Nav
   ========================================================================== */
.sc-footer {
    background: #0c0a06;
    border-top: 1px solid rgba(255, 215, 0, 0.18);
    margin-top: 3.5rem;
    padding: 2.5rem 0 1.75rem;
}

.sc-footer h6 {
    color: var(--sc-gold);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .8rem;
    letter-spacing: .02em;
}

.sc-footer a {
    color: var(--sc-muted);
    font-size: .85rem;
    display: block;
    padding: .25rem 0;
    transition: color .2s ease, transform .2s ease;
}

.sc-footer a:hover {
    color: var(--sc-green);
    transform: translateX(2px);
}

.sc-bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--sc-bottomnav-h);
    background: rgba(14, 7, 26, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 215, 0, 0.22);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .sc-bottomnav {
        display: flex;
    }
}

.sc-bottomnav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    color: var(--sc-muted);
    font-size: .68rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.sc-bottomnav a i {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.sc-bottomnav a:hover,
.sc-bottomnav a.active {
    color: var(--sc-green);
}

.sc-bottomnav a:hover i,
.sc-bottomnav a.active i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7));
}

/* misc */
.sc-disclaimer {
    background: var(--sc-surface-2);
    border-left: 3px solid var(--sc-gold);
    border-radius: 6px;
    padding: .6rem .85rem;
    font-size: .78rem;
    color: var(--sc-muted);
}

.text-truncate-1 {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   FAQ Accordion Cards
   ========================================================================== */
.sc-faq-accordion .accordion-item {
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius) !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-faq-accordion .accordion-item:hover {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
}

.sc-faq-accordion .accordion-button {
    background-color: var(--sc-surface-2);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    box-shadow: none !important;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sc-faq-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.22) 0%, rgba(218, 133, 0, 0.22) 100%);
    color: var(--sc-gold);
    border-bottom: 1px solid var(--sc-border);
}

.sc-faq-accordion .accordion-button::after {
    filter: invert(1) brightness(0.9);
    transition: transform 0.25s ease;
    margin-left: auto;
}

.sc-faq-accordion .accordion-body {
    background: var(--sc-surface);
    color: #c8badb;
    font-size: 0.92rem;
    line-height: 1.7;
    padding: 1.2rem 1.25rem;
}

.sc-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 215, 0, 0.18);
    border-radius: 6px;
    color: var(--sc-green);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sc-faq-accordion .accordion-button:not(.collapsed) .sc-faq-icon {
    background: var(--sc-green);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* ==========================================================================
   Banner Slider (Hero Carousel)
   ========================================================================== */
.sc-banner-slider {
    position: relative;
    border-radius: var(--sc-radius);
    overflow: hidden;
    border: 1px solid var(--sc-border);
    background: var(--sc-surface);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.sc-banner-slider .splide__track {
    border-radius: var(--sc-radius);
    overflow: hidden;
}

.sc-banner-item {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #0c0a06;
}

.sc-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sc-banner-item:hover .sc-banner-img {
    transform: scale(1.018);
}

.sc-banner-slider .splide__pagination {
    bottom: 12px;
    gap: 8px;
    padding: 0;
}

.sc-banner-slider .splide__pagination__page {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    opacity: 0.8;
    margin: 0;
    transition: all 0.3s ease;
}

.sc-banner-slider .splide__pagination__page:hover {
    background: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.sc-banner-slider .splide__pagination__page.is-active {
    width: 28px;
    background: linear-gradient(90deg, #ffd700 0%, #da8500 100%);
    border-color: #ffd700;
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.sc-banner-slider .splide__arrow {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(20, 17, 10, 0.75) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    opacity: 0;
}

.sc-banner-slider:hover .splide__arrow {
    opacity: 0.85;
}

.sc-banner-slider .splide__arrow:hover {
    opacity: 1 !important;
    background: var(--sc-green) !important;
    border-color: #fcfd6a !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.sc-banner-slider .splide__arrow--prev {
    left: 1rem;
}

.sc-banner-slider .splide__arrow--next {
    right: 1rem;
}

@media (max-width: 768px) {
    .sc-banner-slider .splide__arrow {
        display: none;
    }
    .sc-banner-slider .splide__pagination {
        bottom: 8px;
    }
    .sc-banner-slider .splide__pagination__page {
        width: 7px;
        height: 7px;
    }
    .sc-banner-slider .splide__pagination__page.is-active {
        width: 20px;
    }
}

/* ==========================================================================
   Footer Contact QR & SEO Links
   ========================================================================== */
.-contact-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.-contact-qr {
    width: 150px;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 769px) {
    .-contact-qr {
        width: 120px;
    }
}

.-footer-capsule {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.-footer-capsule a {
    display: inline-block;
    font-size: .75rem;
    font-weight: 500;
    color: var(--sc-muted);
    background: #050403;
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 20px;
    padding: .3rem .85rem;
    transition: color .2s ease, border-color .2s ease;
}

.-footer-capsule a:hover {
    color: var(--sc-green);
    border-color: var(--sc-green);
}

.-footer-copyright {
    font-size: .85rem;
    color: #7a7a7a;
    text-align: center;
}