:root {
    --black: #050505;
    --black-soft: #0d0d0f;
    --panel: #121214;
    --panel-red: #21090b;
    --red: #d20a16;
    --red-dark: #6d0710;
    --gold: #f6c34a;
    --gold-bright: #ffe28a;
    --gold-dark: #9b650b;
    --silver: #d9d9dc;
    --muted: #96969d;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #070707;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gold-bright), var(--gold-dark));
    border-radius: 8px;
}

body {
    position: relative;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 50% -10%, rgba(210, 10, 22, 0.25), transparent 38%),
        linear-gradient(180deg, #09090a 0%, #050505 55%, #0b0203 100%);
    background-size: 32px 32px, 32px 32px, auto, auto;
    -webkit-tap-highlight-color: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 218, 112, 0.035) 50%, transparent 70%);
}

.brand-glow {
    position: fixed;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.16;
    pointer-events: none;
}

.brand-glow-left {
    top: 20%;
    left: -180px;
    background: var(--red);
}

.brand-glow-right {
    right: -190px;
    bottom: 8%;
    background: var(--gold);
}

.brand-header {
    min-height: 72px;
    padding: 12px 13px;
    border: 1px solid rgba(246, 195, 74, 0.23);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(30, 30, 33, 0.92), rgba(8, 8, 9, 0.96));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

.logo-link {
    min-width: 0;
    flex: 1;
}

.brand-logo {
    height: 49px;
    max-width: 225px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.65));
}

.glow-login-btn {
    margin-left: 10px;
    color: #190d00;
    border: 1px solid var(--gold-bright);
    background: linear-gradient(180deg, #fff0a8 0%, #f1b92f 45%, #b8790d 100%);
    box-shadow: 0 4px 14px rgba(246, 195, 74, 0.25), inset 0 1px 0 #fff8d6;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: glow-pulse 2.8s ease-in-out infinite;
}

.glow-login-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(246, 195, 74, 0.22), inset 0 1px 0 #fff8d6; }
    50% { box-shadow: 0 5px 23px rgba(246, 195, 74, 0.48), 0 0 0 3px rgba(210, 10, 22, 0.09), inset 0 1px 0 #fff8d6; }
}

.brand-intro {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(210, 10, 22, 0.32);
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 20%, rgba(210, 10, 22, 0.24), transparent 32%),
        linear-gradient(135deg, rgba(30, 9, 12, 0.94), rgba(10, 10, 11, 0.98));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 12px 34px rgba(0, 0, 0, 0.34);
}

.brand-intro::after {
    content: "★";
    position: absolute;
    right: 18px;
    top: 6px;
    color: rgba(246, 195, 74, 0.08);
    font-size: 84px;
    line-height: 1;
    transform: rotate(9deg);
}

.eyebrow {
    position: relative;
    z-index: 1;
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.brand-intro h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(1.15rem, 5vw, 1.5rem);
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1.2;
}

.brand-intro h1::after {
    content: "";
    display: block;
    width: 78px;
    height: 2px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--red), var(--gold), transparent);
}

.brand-intro p {
    position: relative;
    z-index: 1;
    max-width: 330px;
    margin: 10px 0 0;
    color: #aaaab0;
    font-size: 0.76rem;
    line-height: 1.55;
}

.search-panel input {
    color: #fff;
    border: 1px solid rgba(246, 195, 74, 0.22);
    outline: none;
    background: rgba(14, 14, 16, 0.9);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.28);
}

.search-panel input::placeholder {
    color: #66666d;
}

.search-panel input:focus {
    border-color: rgba(246, 195, 74, 0.7);
    box-shadow: 0 0 0 3px rgba(246, 195, 74, 0.08), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-icon {
    color: var(--gold);
    opacity: 0.75;
}

.market-card {
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.market-card--regular {
    border: 1px solid rgba(156, 35, 43, 0.47);
    background: linear-gradient(145deg, rgba(28, 10, 12, 0.95), rgba(10, 10, 11, 0.98));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.025);
}

.market-card--special {
    border: 1px solid rgba(246, 195, 74, 0.8);
    background:
        radial-gradient(circle at 90% 5%, rgba(210, 10, 22, 0.22), transparent 30%),
        linear-gradient(145deg, #240a0d, #0b0b0c 75%);
    box-shadow: 0 0 0 1px rgba(255, 226, 138, 0.06), 0 10px 32px rgba(0, 0, 0, 0.55), 0 0 22px rgba(246, 195, 74, 0.09);
}

.market-card:hover {
    transform: translateY(-2px);
    border-color: rgba(246, 195, 74, 0.62);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(210, 10, 22, 0.09);
}

.market-card:active {
    transform: scale(0.985);
}

.top-market-badge {
    color: #1d1001;
    border: 1px solid #fff2b8;
    background: linear-gradient(180deg, #fff0a2, #d99b18);
    box-shadow: 0 5px 18px rgba(246, 195, 74, 0.35);
}

.market-code {
    color: var(--silver);
    text-shadow: 0 0 10px rgba(217, 217, 220, 0.25);
}

.market-code--special {
    color: var(--gold-bright);
    text-shadow: 0 0 12px rgba(246, 195, 74, 0.45);
}

.market-name {
    color: #f4f4f5;
}

.market-desc {
    color: #77777f;
}

.market-desc--special {
    color: #c8a75a;
}

.market-icon {
    color: #d9343e;
}

.market-icon--special {
    color: var(--gold);
}

.time-panel {
    border-color: rgba(138, 24, 32, 0.48);
    background: rgba(0, 0, 0, 0.48);
}

.time-panel--special {
    border-color: rgba(246, 195, 74, 0.25);
    box-shadow: inset 0 0 12px rgba(246, 195, 74, 0.045);
}

.brand-value {
    color: var(--gold);
}

.badge-buka {
    color: #51e6a8;
    border: 1px solid rgba(16, 185, 129, 0.34);
    background: rgba(16, 185, 129, 0.13);
}

.badge-tutup {
    color: #ff7d84;
    border: 1px solid rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.13);
}

.btn-prediksi {
    color: #fff4d2;
    border: 1px solid #a60b16;
    background: linear-gradient(180deg, #ed1a27 0%, #a30711 52%, #6f050b 100%);
    box-shadow: inset 0 1px 0 rgba(255, 209, 98, 0.35), 0 6px 16px rgba(91, 0, 7, 0.36);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-prediksi:hover {
    filter: brightness(1.08);
    box-shadow: inset 0 1px 0 rgba(255, 224, 143, 0.45), 0 8px 21px rgba(155, 0, 10, 0.43);
}

.btn-prediksi:active {
    transform: scale(0.985);
    background: linear-gradient(180deg, #9d0710 0%, #d8101c 100%);
}

.brand-footer {
    color: rgba(246, 195, 74, 0.62);
}

.footer-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 9px;
    color: var(--gold);
    font-size: 0.55rem;
}

.footer-stars span {
    width: 55px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 195, 74, 0.65));
}

.footer-stars span:last-child {
    transform: rotate(180deg);
}

.prediction-modal {
    background: rgba(2, 2, 2, 0.94);
    backdrop-filter: blur(6px);
}

.modal-panel {
    border: 1px solid rgba(246, 195, 74, 0.55);
    background: linear-gradient(180deg, #1f090b 0%, #0a0a0b 36%, #050505 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 30px rgba(210, 10, 22, 0.12);
}

.modal-header {
    border-bottom: 1px solid rgba(246, 195, 74, 0.2);
    background: linear-gradient(180deg, rgba(39, 10, 13, 0.98), rgba(15, 15, 16, 0.98));
    backdrop-filter: blur(10px);
}

.modal-title {
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(246, 195, 74, 0.24);
}

.modal-close {
    color: var(--gold);
    border: 1px solid rgba(246, 195, 74, 0.23);
    background: #0a0a0b;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: #fff;
    border-color: rgba(246, 195, 74, 0.68);
    transform: rotate(8deg);
}

.prediction-section {
    border: 1px solid rgba(138, 24, 32, 0.42);
    background: rgba(0, 0, 0, 0.46);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}

.prediction-kicker {
    color: var(--gold);
}

.main-number-panel {
    color: transparent;
    background: linear-gradient(180deg, #fff1a8, #d99b18);
    -webkit-background-clip: text;
    background-clip: text;
    border: 1px solid rgba(246, 195, 74, 0.24);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.62);
}

.prediction-accent {
    color: var(--gold-bright);
    text-shadow: 0 0 7px rgba(246, 195, 74, 0.28);
}

.shio-panel {
    border: 1px solid rgba(246, 195, 74, 0.42);
    background: linear-gradient(180deg, rgba(47, 13, 16, 0.9), rgba(12, 12, 13, 0.96));
    box-shadow: 0 0 16px rgba(246, 195, 74, 0.06);
}

.modal-active {
    display: flex !important;
}

.modal-show {
    opacity: 1 !important;
}

.modal-show > div {
    transform: scale(1) !important;
}

.number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    padding: 0.35rem 0.58rem;
    margin: 0.15rem;
    color: var(--gold-bright);
    border: 1px solid rgba(246, 195, 74, 0.28);
    border-radius: 0.45rem;
    background: linear-gradient(180deg, #221012, #0c0c0d);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    font-weight: 800;
}

@media (max-width: 390px) {
    .brand-header {
        padding: 10px;
    }

    .brand-logo {
        height: 41px;
        max-width: 190px;
    }

    .glow-login-btn {
        padding-inline: 0.85rem;
        font-size: 0.72rem;
    }

    .brand-intro {
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
