:root {
    --theme-bg: #0b0b0b;
    --theme-bg-secondary: #141414;
    --theme-bg-card: #1d1d1d;
    --theme-bg-elevated: #262626;
    --theme-primary: #ff8a00;
    --theme-primary-hover: #ffab1a;
    --theme-primary-dark: #d96a00;
    --theme-text: #ffffff;
    --theme-text-muted: #b5b5b5;
    --theme-success: #6eff00;
    --theme-border: rgba(255, 138, 0, 0.28);
    --theme-shadow: 0 6px 24px rgba(0, 0, 0, 0.38);
    --main-theme-color: var(--theme-primary);
}

html,
body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

a {
    color: var(--theme-primary);
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--theme-primary-hover);
}

.site-header,
.navbar,
.topbar-container,
.site-menu,
.main-menu-container,
.main-menu-outer-container > main {
    background-color: var(--theme-bg-secondary);
}

.site-header {
    border-bottom: 1px solid var(--theme-border);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

.site-menu > ul {
    background-color: var(--theme-bg);
    border-left: 1px solid var(--theme-border);
}

.site-menu li > a,
.site-menu summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-menu-trigger [data-icon="menu"] {
    background-color: var(--theme-primary);
}

.site-menu-trigger [data-icon="menu"]:before,
.site-menu-trigger [data-icon="menu"]:after {
    background-color: var(--theme-primary);
}

.top-menu > li > a,
.main-menu-outer-container > main > a,
.site-menu li > a {
    color: var(--theme-text);
}

.top-menu > li > a:hover,
.top-menu > li[data-active="true"] > a,
.main-menu-outer-container > main > a:hover,
.main-menu-outer-container > main > a[data-active="true"],
.site-menu li > a:hover,
.site-menu li > a:focus {
    color: var(--theme-primary-hover);
}

.main-menu-outer-container > i,
.site-menu-trigger {
    background-color: var(--theme-primary-dark);
    color: var(--theme-text);
}

.announcement-container,
.announcement-outer-container,
.server_container,
.slots-games-container,
.game-list ul,
.game-list .provider-section,
.popular-slots-outer-container {
    background-color: var(--theme-bg-secondary);
    color: var(--theme-text);
}

.announcement-container,
.server_container,
.slots-games-container,
.game-list ul {
    border-color: var(--theme-border);
}

.announcement-container {
    background-color: var(--theme-bg-elevated);
    border-bottom: 1px solid var(--theme-border);
}

.server {
    background-color: var(--theme-bg);
}

.dropdown_server {
    border: 1px solid var(--theme-border);
    background-color: var(--theme-bg-card);
    color: var(--theme-text);
}

.main-menu-outer-container > main > a {
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.main-menu-outer-container > main > a[data-active="true"],
.main-menu-outer-container > main > a:hover {
    border-bottom-color: var(--theme-primary);
    background-color: rgba(255, 138, 0, 0.08);
}

.main-menu-outer-container > i {
    color: var(--theme-primary);
}

.menu-preview-container,
.popular-game-title-container .container-content,
.home-game-list-container .container-content {
    border-color: var(--theme-border);
    background-color: var(--theme-bg-secondary);
}

.menu-preview-container .game_list_content > li,
.popular-game-title-container .game-item,
.home-game-list-container .game-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background-color: var(--theme-bg-card);
}

.popular-game-title-container .container-title span,
.home-game-list-container .container-title span {
    background-color: var(--theme-primary-dark);
    color: var(--theme-text);
}

.popular-game-title-container .container-title span:after,
.home-game-list-container .container-title span:after {
    background-color: var(--theme-primary-dark);
}

.game-list ul > li,
.game-list .provider-section,
.game-item,
.popular-game-title-container {
    color: var(--theme-text);
}

.game-list ul > li,
.game-list .provider-section,
.game-item {
    background-color: var(--theme-bg-card);
    border-color: rgba(255, 255, 255, 0.08);
}

.game-list ul > li:hover,
.game-item:hover {
    border-color: var(--theme-border);
    box-shadow: var(--theme-shadow);
}

.game-list ul > li .game-name,
.game-name,
.popular-game-title-container .title,
.slots-title {
    color: var(--theme-text);
}

.game-list ul > li .game-name {
    background: linear-gradient(135deg, var(--theme-primary-dark), var(--theme-primary));
}

.category-filter-link {
    color: var(--theme-text-muted);
}

.category-filter-link:hover,
.category-filter-link.active,
.category-filter-link[data-active="true"] {
    color: var(--theme-primary-hover);
    border-color: var(--theme-primary);
}

.login-links-container a,
.btn-primary,
.modal-footer .btn-primary,
.standard-button-group .btn-primary,
.play-now,
.game-dispatch .play-now {
    border-color: var(--theme-primary-dark);
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
    color: #151515;
}

.login-links-container a[href="/registerasi"] {
    border-color: var(--theme-primary-dark);
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
    color: #151515;
}

.login-links-container a[href="/login"] {
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, #373737, #1d1d1d);
    color: var(--theme-text);
}

.login-links-container a:hover,
.btn-primary:hover,
.btn-primary:focus,
.modal-footer .btn-primary:hover,
.standard-button-group .btn-primary:hover,
.play-now:hover,
.game-dispatch .play-now:hover {
    border-color: var(--theme-primary-hover);
    background: linear-gradient(135deg, var(--theme-primary-hover), var(--theme-primary));
    color: #111111;
}

button,
input,
select,
textarea,
.form-control {
    accent-color: var(--theme-primary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea,
.form-control {
    border-color: rgba(255, 255, 255, 0.16);
    background-color: var(--theme-bg-card);
    color: var(--theme-text);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 2px rgba(255, 138, 0, 0.18);
    outline: none;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: var(--theme-text-muted);
}

.modal-content,
.modal-body,
.modal-header,
.modal-footer,
.dropdown-menu,
.panel,
.card {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: var(--theme-bg-card);
    color: var(--theme-text);
}

.modal-header,
.modal-footer {
    border-color: var(--theme-border);
}

.modal-header .modal-title,
.modal-title {
    color: var(--theme-primary-hover);
}

table,
.table,
table.dataTable {
    color: var(--theme-text);
}

.table > thead > tr > th,
table.dataTable thead th {
    border-color: var(--theme-border);
    background-color: var(--theme-bg-elevated);
    color: var(--theme-primary-hover);
}

.table > tbody > tr > td,
table.dataTable tbody tr,
table.dataTable tbody td {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: var(--theme-bg-card);
    color: var(--theme-text);
}

.table > tbody > tr:hover > td,
table.dataTable tbody tr:hover > td {
    background-color: var(--theme-bg-elevated);
}

.site-footer {
    border-top: 1px solid var(--theme-border);
    background-color: var(--theme-bg-secondary);
    color: var(--theme-text-muted);
    line-height: 1.6;
    padding-top: 18px;
}

.site-footer h2 {
    margin: 18px 0 8px;
    color: var(--theme-primary-hover);
    font-size: 16px;
    letter-spacing: 0.04em;
}

.site-footer .contact-list > li a {
    min-height: 44px;
    padding: 4px 10px;
    border: 1px solid var(--theme-border);
    background-color: var(--theme-bg-card);
    color: var(--theme-text);
}

.site-footer .contact-list > li a i {
    flex: 0 0 36px;
    background: var(--theme-primary-dark);
    color: #17110a;
}

.site-footer .footer-category-grid > a {
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background-color: var(--theme-bg-card);
    color: var(--theme-text);
}

.site-footer .footer-category-grid > a i {
    width: 22px;
    color: var(--theme-primary);
    text-align: center;
}

.site-footer .footer-category-grid > a:hover,
.site-footer .footer-category-grid > a:focus-visible {
    border-color: var(--theme-primary);
    background-color: var(--theme-bg-elevated);
    color: var(--theme-primary-hover);
    outline: none;
}

.site-footer .bank-list [data-online='true']:before {
    background-color: var(--theme-primary);
}

.site-footer .social-media-list > li a {
    border: 1px solid var(--theme-border);
    border-radius: 50%;
    background-color: var(--theme-bg-card);
}

.site-footer .footer-links {
    background-color: var(--theme-bg-elevated);
    border-top: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
}

.site-footer .footer-links a {
    color: var(--theme-text);
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus {
    color: var(--theme-primary-hover);
}

.site-footer .site-description {
    background-color: var(--theme-bg);
    color: var(--theme-text-muted);
}

.site-footer .site-description h1,
.site-footer .site-description h2,
.site-footer .site-description h3 {
    color: var(--theme-primary-hover);
}

.fixed-footer {
    border-top: 1px solid var(--theme-border);
    background-color: var(--theme-bg-secondary);
    color: var(--theme-text-muted);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.fixed-footer a[data-active="true"] {
    color: var(--theme-primary);
}

.quick-contact-widget summary,
.quick-contact-widget > a {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--theme-primary-hover), var(--theme-primary));
    color: #17110a;
}

.quick-contact-widget > a:hover,
.quick-contact-widget > a:focus-visible,
.quick-contact-widget summary:hover,
.quick-contact-widget summary:focus-visible {
    background: #ffffff;
    color: #17110a;
    outline: 2px solid var(--theme-primary);
    outline-offset: 2px;
}

.badge,
.label-primary,
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border-color: var(--theme-primary-dark);
    background-color: var(--theme-primary-dark);
    color: var(--theme-text);
}

.alert-success {
    border-color: rgba(110, 255, 0, 0.35);
    background-color: rgba(110, 255, 0, 0.08);
    color: var(--theme-success);
}

.alert-warning {
    border-color: rgba(255, 171, 0, 0.35);
    background-color: rgba(255, 171, 0, 0.08);
    color: var(--theme-primary-hover);
}

.alert-danger {
    border-color: rgba(244, 67, 54, 0.35);
    background-color: rgba(244, 67, 54, 0.08);
    color: #ff7770;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}