/* -----------------------------------------------------------------
   VARIABLES - DARK AURORA BASE
----------------------------------------------------------------- */

:root {
    color-scheme: dark;
    --site-bg: #070b17;
    --site-surface: #0d1426;
    --site-surface-2: #131d33;
    --site-text: #f4f7ff;
    --site-text-soft: #aebbd2;
    --site-text-muted: #71809b;
    --site-border: rgba(148, 163, 184, .16);
    --site-header: rgba(7, 11, 23, .86);
    --site-header-text: #f8fbff;
    --site-primary: #7c3aed;
    --site-primary-text: #ffffff;
    --site-shadow: 0 20px 55px rgba(0, 0, 0, .32);
}

/* -----------------------------------------------------------------
   RESET - dipertahankan agar footer lama tetap konsisten
----------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--site-bg);
    color: var(--site-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}


/* -----------------------------------------------------------------
   ACCESSIBILITY
----------------------------------------------------------------- */

.skip-link {
    position: fixed;
    left: 14px;
    top: 10px;
    z-index: 20000;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #07111f;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
}

.skip-link:focus {
    transform: translateY(0);
}

/* -----------------------------------------------------------------
   CONTAINER
----------------------------------------------------------------- */

.site-container {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------------------------------------------
   HEADER
----------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    border-bottom: 1px solid var(--site-border);
    background: var(--site-header);
    color: var(--site-header-text);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 20px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--site-header-text);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--site-primary);
    color: var(--site-primary-text);
    font-size: 16px;
    font-weight: 900;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-title {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.2px;
}

.logo-subtitle {
    margin-top: 3px;
    color: var(--site-text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

/* -----------------------------------------------------------------
   NAVIGATION
----------------------------------------------------------------- */

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--site-text-soft);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
    background: var(--site-surface-2);
    color: var(--site-text);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 99px;
    background: var(--site-text);
    transform: translateX(-50%);
}

/* -----------------------------------------------------------------
   ACTIONS - HANYA MOBILE MENU
----------------------------------------------------------------- */

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: var(--site-surface);
    color: var(--site-text);
    cursor: pointer;
}

.menu-toggle:hover {
    background: var(--site-surface-2);
}

.menu-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition:
        transform .2s ease,
        opacity .2s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* -----------------------------------------------------------------
   MOBILE MENU
----------------------------------------------------------------- */

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10000;
    border-top: 1px solid var(--site-border);
    background: var(--site-header);
    box-shadow: var(--site-shadow);
    pointer-events: none;
}

.mobile-menu.open {
    pointer-events: auto;
    display: block;
}

.mobile-menu-inner {
    padding: 10px 0 15px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 10px;
    color: var(--site-text-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--site-surface-2);
    color: var(--site-text);
}

/* -----------------------------------------------------------------
   MAIN
----------------------------------------------------------------- */

.site-main {
    min-height: calc(100vh - 68px);
}

/* -----------------------------------------------------------------
   FOOTER CSS - DIPERTAHANKAN UNTUK FOOTER LAMA
----------------------------------------------------------------- */

.site-footer {
    margin-top: 50px;
    border-top: 1px solid var(--site-border);
    background: var(--site-surface);
    color: var(--site-text);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding: 45px 0 35px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--site-text);
    text-decoration: none;
}

.footer-description {
    margin: 14px 0 0;
    color: var(--site-text-soft);
    font-size: 12px;
    line-height: 1.7;
}

.footer-title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    color: var(--site-text-soft);
    text-decoration: none;
    font-size: 12px;
}

.footer-link:hover {
    color: var(--site-text);
}

.footer-bottom {
    border-top: 1px solid var(--site-border);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 58px;
}

.copyright,
.footer-note {
    color: var(--site-text-muted);
    font-size: 11px;
}

.footer-note {
    text-align: right;
}

/* -----------------------------------------------------------------
   MOBILE
----------------------------------------------------------------- */

@media (max-width: 850px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .site-container {
        width: calc(100% - 24px);
    }

    .header-inner {
        min-height: 62px;
    }

    .logo-subtitle {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 35px 0 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 15px 0;
    }

    .footer-note {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* ===== PREMIUM THEME OVERRIDES ===== */
/* ================================================================
   TOTO DESIGN — DARK AURORA THEME
   Global visual override. Logic and page markup remain unchanged.
================================================================ */

:root {
    color-scheme: dark;
    --aurora-bg: #070b17;
    --aurora-bg-2: #0a1020;
    --aurora-panel: rgba(14, 22, 40, .84);
    --aurora-panel-strong: #0f192d;
    --aurora-panel-soft: rgba(20, 31, 54, .72);
    --aurora-border: rgba(148, 163, 184, .15);
    --aurora-border-hover: rgba(126, 231, 255, .34);
    --aurora-text: #f6f8ff;
    --aurora-soft: #aebbd2;
    --aurora-muted: #70809c;
    --aurora-cyan: #22d3ee;
    --aurora-blue: #3b82f6;
    --aurora-violet: #8b5cf6;
    --aurora-pink: #ec4899;
    --aurora-green: #22c55e;
    --aurora-amber: #f59e0b;
    --aurora-red: #fb7185;
    --aurora-shadow: 0 20px 60px rgba(0, 0, 0, .34);
    --aurora-glow: 0 0 0 1px rgba(255,255,255,.02), 0 18px 48px rgba(0,0,0,.28);
}

html,
body {
    background: var(--aurora-bg) !important;
    color: var(--aurora-text) !important;
}

body {
    position: relative;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 8% 4%, rgba(34, 211, 238, .12), transparent 30rem),
        radial-gradient(circle at 92% 12%, rgba(139, 92, 246, .15), transparent 34rem),
        radial-gradient(circle at 50% 82%, rgba(59, 130, 246, .07), transparent 40rem),
        linear-gradient(180deg, #070b17 0%, #080d1b 48%, #060a14 100%) !important;
    background-attachment: fixed !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .32;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 86%);
}

::selection {
    background: rgba(34, 211, 238, .28);
    color: #fff;
}

/* ---------- Global header ---------- */
.site-header {
    border-bottom-color: rgba(148, 163, 184, .12) !important;
    background: rgba(7, 11, 23, .82) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18) !important;
    backdrop-filter: blur(22px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
}

.logo-mark {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--aurora-cyan), var(--aurora-blue) 48%, var(--aurora-violet)) !important;
    color: #fff !important;
    box-shadow: 0 8px 26px rgba(59, 130, 246, .28), inset 0 1px 0 rgba(255,255,255,.25) !important;
}

.logo-mark::after {
    content: "";
    position: absolute;
    width: 26px;
    height: 60px;
    left: -38px;
    top: -10px;
    transform: rotate(22deg);
    background: rgba(255,255,255,.28);
    transition: left .5s ease;
}

.site-logo:hover .logo-mark::after,
.footer-logo:hover .logo-mark::after {
    left: 54px;
}

.logo-title,
.site-logo,
.footer-logo {
    color: var(--aurora-text) !important;
}

.logo-subtitle {
    color: #7889a6 !important;
}

.nav-link,
.mobile-nav-link {
    color: #96a5bf !important;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, .10), rgba(139, 92, 246, .12)) !important;
    color: #fff !important;
}

.nav-link.active::after {
    width: 20px !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--aurora-cyan), var(--aurora-violet)) !important;
    box-shadow: 0 0 14px rgba(34, 211, 238, .52) !important;
}

.menu-toggle {
    border-color: var(--aurora-border) !important;
    background: rgba(20, 31, 54, .76) !important;
    color: #fff !important;
}

.menu-toggle:hover {
    border-color: rgba(34, 211, 238, .34) !important;
    background: rgba(30, 44, 72, .9) !important;
}

.mobile-menu {
    border-top-color: var(--aurora-border) !important;
    background: rgba(7, 11, 23, .97) !important;
    box-shadow: 0 22px 44px rgba(0,0,0,.38) !important;
    backdrop-filter: blur(22px) !important;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, .09), rgba(139, 92, 246, .12)) !important;
    color: #fff !important;
}

/* ---------- Common typography ---------- */
.hero-label,
.section-label,
.filter-title,
.periode-title,
.result-label {
    color: var(--aurora-cyan) !important;
    letter-spacing: .1em;
}

.hero-content h1,
.riwayat-hero h1,
.statistik-hero h1,
.calculator-hero h1,
.section-heading h2,
.section-title h2,
.info-card h2,
.result-header h2 {
    color: var(--aurora-text) !important;
}

.hero-content h1 span {
    color: transparent !important;
    background: linear-gradient(90deg, #67e8f9 0%, #60a5fa 45%, #c084fc 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.hero-content p,
.riwayat-hero p,
.statistik-hero p,
.calculator-hero p,
.section-title p,
.tool-content p,
.info-card p,
.input-help,
.data-info,
.result-date,
.result-time,
.market-description,
.total-content small,
.update-text,
.empty,
.empty-data,
.disclaimer {
    color: var(--aurora-soft) !important;
}

/* ---------- Buttons / filters ---------- */
.hero-btn,
.filter-buttons a,
.mode-option span,
.btn-secondary,
.copy-all,
.page-button {
    border-color: var(--aurora-border) !important;
    background: rgba(18, 28, 49, .82) !important;
    color: #c7d2e7 !important;
    box-shadow: none !important;
}

.hero-btn:hover,
.filter-buttons a:hover,
.mode-option span:hover,
.btn-secondary:hover,
.copy-all:hover,
.page-button:hover {
    border-color: rgba(34, 211, 238, .32) !important;
    background: rgba(28, 42, 70, .95) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.hero-btn.primary,
.btn-primary,
.filter-buttons a.active,
.mode-option input:checked + span,
.page-button.active {
    border-color: transparent !important;
    background: linear-gradient(135deg, #0891b2, #2563eb 50%, #7c3aed) !important;
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(59, 130, 246, .24) !important;
}

.section-link,
.total-link,
.update-link {
    color: #67e8f9 !important;
}

.section-link:hover,
.total-link:hover,
.update-link:hover {
    color: #c4b5fd !important;
}

/* ---------- Reusable dark glass surfaces ---------- */
.result-card,
.total-card,
.tool-card,
.market-info,
.update-box,
.filter-card,
.table-card,
.summary-card,
.stat-card,
.position-box,
.ranking-card,
.calculator-card,
.info-card,
.result-info,
.result-section {
    border-color: var(--aurora-border) !important;
    background: linear-gradient(145deg, rgba(16, 25, 45, .94), rgba(10, 17, 32, .92)) !important;
    color: var(--aurora-text) !important;
    box-shadow: var(--aurora-glow) !important;
}

.result-card:hover,
.tool-card:hover,
.summary-card:hover,
.ranking-card:hover,
.market-info:hover {
    border-color: var(--aurora-border-hover) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.34), 0 0 30px rgba(34,211,238,.05) !important;
}

/* ---------- Homepage ---------- */
.home-page,
.riwayat-page,
.statistik-page,
.kalkulator-page {
    color: var(--aurora-text) !important;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 16px;
    right: max(3vw, 20px);
    width: 300px;
    height: 300px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,.17), rgba(34,211,238,.05) 46%, transparent 72%);
    filter: blur(5px);
}

.hero-badge {
    border: 1px solid rgba(34, 211, 238, .18) !important;
    background: rgba(34, 211, 238, .07) !important;
    color: #a5f3fc !important;
}

.hero-dot,
.update-status span {
    background: var(--aurora-green) !important;
    box-shadow: 0 0 0 5px rgba(34,197,94,.10), 0 0 18px rgba(34,197,94,.45) !important;
}

.result-card {
    position: relative;
    overflow: hidden;
}

.result-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -54px;
    bottom: -66px;
    border-radius: 50%;
    opacity: .13;
    pointer-events: none;
    background: currentColor;
    filter: blur(2px);
}

.result-card.hk {
    color: #60a5fa !important;
}

.result-card.sgp {
    color: #34d399 !important;
}

.result-card.sdy {
    color: #fb7185 !important;
}

.result-card.hk::before {
    background: linear-gradient(90deg, #2563eb, #22d3ee) !important;
    box-shadow: 0 0 18px rgba(34,211,238,.36) !important;
}

.result-card.sgp::before {
    background: linear-gradient(90deg, #16a34a, #34d399) !important;
    box-shadow: 0 0 18px rgba(52,211,153,.30) !important;
}

.result-card.sdy::before {
    background: linear-gradient(90deg, #f43f5e, #f59e0b) !important;
    box-shadow: 0 0 18px rgba(251,113,133,.30) !important;
}

.market-name,
.result-number,
.total-content strong,
.tool-content h3,
.market-info strong,
.update-text strong,
.summary-card strong,
.digit-number,
.position-box h3,
.ranking-card strong,
.result-info strong,
.info-grid strong,
.number-item {
    color: var(--aurora-text) !important;
}

.result-number {
    text-shadow: 0 0 24px rgba(96,165,250,.18) !important;
}

.market-icon,
.tool-icon,
.total-icon,
.market-info-icon {
    background: linear-gradient(145deg, rgba(34, 211, 238, .11), rgba(139, 92, 246, .13)) !important;
    border: 1px solid rgba(148,163,184,.11);
}

.total-card {
    background:
        radial-gradient(circle at 12% 50%, rgba(34,211,238,.10), transparent 25%),
        linear-gradient(135deg, rgba(17, 27, 49, .96), rgba(12, 18, 35, .95)) !important;
}

.tool-arrow {
    color: #63738e !important;
}

.tool-card:hover .tool-arrow {
    color: var(--aurora-cyan) !important;
}

/* ---------- Tables ---------- */
.table-scroll {
    scrollbar-color: #334155 #101827;
}

table {
    color: var(--aurora-text) !important;
}

thead th {
    border-color: rgba(148,163,184,.12) !important;
    background: #121c31 !important;
    color: #90a0bb !important;
}

tbody td {
    border-color: rgba(148,163,184,.10) !important;
    background: transparent !important;
    color: #dce4f3 !important;
}

tbody tr:hover td {
    background: rgba(34, 211, 238, .045) !important;
}

.number-index,
.date-cell span,
.empty-data small {
    color: #6f809c !important;
}

.date-cell strong {
    color: #dce6f7 !important;
}

/* ---------- Statistics ---------- */
.summary-card span,
.digit-count,
.rank-count,
.ranking-card span,
.ranking-card small,
.position-row span,
.result-title span,
.result-info span,
.info-grid span {
    color: #8494af !important;
}

.summary-card strong,
.ranking-card strong {
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.digit-item,
.position-row,
.ranking-row {
    border-color: rgba(148,163,184,.10) !important;
    background: rgba(255,255,255,.025) !important;
    color: #dce5f5 !important;
}

.digit-item:hover,
.ranking-row:hover {
    background: rgba(34,211,238,.05) !important;
}

.digit-number,
.rank-number {
    border-color: rgba(34,211,238,.16) !important;
    background: linear-gradient(135deg, rgba(34,211,238,.10), rgba(139,92,246,.10)) !important;
}

.rank {
    color: var(--aurora-cyan) !important;
}

/* ---------- Calculator ---------- */
.form-group > label,
.result-title h3 {
    color: #dfe7f5 !important;
}

#posisi {
    border-color: var(--aurora-border) !important;
    background: #0a1222 !important;
    color: #f4f7ff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02) !important;
}

#posisi::placeholder {
    color: #586983 !important;
}

#posisi:focus {
    border-color: rgba(34, 211, 238, .58) !important;
    box-shadow: 0 0 0 4px rgba(34,211,238,.09), 0 0 24px rgba(59,130,246,.08) !important;
    outline: none !important;
}

.result-header,
.result-info > div,
.info-grid div {
    border-color: rgba(148,163,184,.10) !important;
}

.number-grid {
    gap: 10px !important;
}

.number-item {
    border-color: rgba(34,211,238,.13) !important;
    background: linear-gradient(145deg, rgba(25, 39, 65, .86), rgba(13, 22, 39, .92)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.number-item:hover {
    border-color: rgba(34,211,238,.38) !important;
    background: linear-gradient(145deg, rgba(27, 53, 79, .94), rgba(25, 31, 65, .94)) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.22), 0 0 22px rgba(34,211,238,.06) !important;
}

.alert-error {
    border-color: rgba(251,113,133,.24) !important;
    background: rgba(127,29,29,.20) !important;
    color: #fda4af !important;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    overflow: hidden;
    border-top-color: rgba(148,163,184,.12) !important;
    background: rgba(5, 9, 18, .88) !important;
    color: var(--aurora-soft) !important;
    box-shadow: 0 -18px 60px rgba(0,0,0,.14) !important;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34,211,238,.55), rgba(139,92,246,.55), transparent);
}

.footer-title {
    color: #dfe6f5 !important;
}

.footer-description,
.footer-link {
    color: #8797b1 !important;
}

.footer-link:hover {
    color: #67e8f9 !important;
}

.footer-bottom {
    border-top-color: rgba(148,163,184,.10) !important;
}

.copyright,
.footer-note {
    color: #63728b !important;
}

/* ---------- Scrollbar ---------- */
* {
    scrollbar-width: thin;
    scrollbar-color: #33445f #09101f;
}

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

*::-webkit-scrollbar-track {
    background: #09101f;
}

*::-webkit-scrollbar-thumb {
    border: 2px solid #09101f;
    border-radius: 999px;
    background: linear-gradient(180deg, #33445f, #405171);
}

/* ---------- Responsive polish ---------- */
@media (max-width: 850px) {
    body {
        background-image:
            radial-gradient(circle at 20% 0%, rgba(34, 211, 238, .09), transparent 22rem),
            radial-gradient(circle at 100% 10%, rgba(139, 92, 246, .10), transparent 25rem),
            linear-gradient(180deg, #070b17, #080d1b 55%, #060a14) !important;
    }

    .mobile-menu-inner {
        padding-top: 12px !important;
    }

    .result-card,
    .total-card,
    .tool-card,
    .filter-card,
    .table-card,
    .summary-card,
    .stat-card,
    .position-box,
    .ranking-card,
    .calculator-card,
    .info-card {
        box-shadow: 0 14px 36px rgba(0,0,0,.26) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ========================================================================
   PREMIUM EDITION — refined dark dashboard layer
   Added after Dark Aurora so this becomes the final visual authority.
========================================================================= */

:root {
    --premium-bg: #050813;
    --premium-bg-soft: #090e1c;
    --premium-surface: rgba(12, 19, 35, .82);
    --premium-surface-2: rgba(16, 25, 45, .88);
    --premium-line: rgba(161, 174, 204, .12);
    --premium-line-strong: rgba(126, 231, 255, .24);
    --premium-white: #f8faff;
    --premium-text: #dce5f5;
    --premium-muted: #8290aa;
    --premium-cyan: #55e6ff;
    --premium-blue: #5b8cff;
    --premium-violet: #a477ff;
    --premium-green: #4ade80;
    --premium-radius: 22px;
    --premium-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

html { background: var(--premium-bg) !important; }

body {
    background:
        radial-gradient(900px 540px at 8% -8%, rgba(42, 189, 255, .11), transparent 62%),
        radial-gradient(800px 520px at 98% 4%, rgba(137, 92, 246, .12), transparent 62%),
        radial-gradient(760px 520px at 50% 105%, rgba(59, 130, 246, .06), transparent 66%),
        linear-gradient(180deg, #050813 0%, #070b16 48%, #050812 100%) !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    opacity: .22 !important;
    background-size: 56px 56px !important;
    background-image:
        linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px) !important;
}

.site-container {
    width: min(1220px, calc(100% - 40px)) !important;
}

/* Header becomes a slim premium control bar */
.site-header {
    background: rgba(5, 8, 19, .72) !important;
    border-bottom: 1px solid rgba(166, 180, 214, .10) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,.20) !important;
    backdrop-filter: blur(28px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(145%) !important;
}

.header-inner { min-height: 76px !important; }

.site-logo { gap: 12px !important; }

.logo-mark {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.02)),
        linear-gradient(135deg, #18c7ea, #4f7cff 52%, #925bff) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    box-shadow:
        0 10px 28px rgba(61, 111, 255, .26),
        inset 0 1px 0 rgba(255,255,255,.28) !important;
    font-size: 15px !important;
    letter-spacing: -.5px;
}

.logo-title {
    font-size: 15px !important;
    font-weight: 850 !important;
    letter-spacing: -.35px !important;
}

.logo-subtitle {
    margin-top: 5px !important;
    color: #71809a !important;
    font-size: 8px !important;
    letter-spacing: 1.35px !important;
}

.site-nav {
    gap: 5px !important;
    padding: 5px !important;
    border: 1px solid rgba(148,163,184,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.nav-link {
    min-height: 38px !important;
    padding: 0 15px !important;
    border-radius: 10px !important;
    color: #8f9db6 !important;
    font-size: 11px !important;
    font-weight: 760 !important;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease !important;
}

.nav-link:hover {
    background: rgba(255,255,255,.045) !important;
    color: #e8efff !important;
}

.nav-link.active {
    background: linear-gradient(180deg, rgba(37, 50, 78, .90), rgba(23, 33, 57, .92)) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.20) !important;
}

.nav-link.active::after { display: none !important; }

.menu-toggle {
    width: 42px !important;
    height: 42px !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.04) !important;
}

.mobile-menu {
    background: rgba(6, 10, 21, .97) !important;
    border-top-color: rgba(148,163,184,.10) !important;
}

.mobile-nav-link {
    min-height: 50px !important;
    border-radius: 12px !important;
    font-weight: 720 !important;
}

/* Homepage hero */
.home-page .hero-section {
    min-height: 420px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(148,163,184,.09) !important;
    background:
        radial-gradient(540px 300px at 68% 48%, rgba(75, 118, 255, .10), transparent 66%),
        radial-gradient(400px 260px at 80% 26%, rgba(150, 88, 255, .08), transparent 64%),
        transparent !important;
}

.home-page .hero-section::before {
    content: "";
    position: absolute;
    top: 50%;
    right: max(5vw, 30px);
    width: min(38vw, 460px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 0 24%, rgba(94,234,255,.05) 24.5% 25%, transparent 25.5% 38%, rgba(164,119,255,.05) 38.5% 39%, transparent 39.5%),
        radial-gradient(circle, rgba(63, 115, 255, .09), transparent 62%);
    filter: blur(.1px);
    opacity: .9;
    pointer-events: none;
}

.home-page .hero-section::after {
    top: 8% !important;
    right: 13% !important;
    width: 240px !important;
    height: 240px !important;
    opacity: .65;
    filter: blur(18px) !important;
}

.home-page .hero-inner {
    min-height: 420px !important;
    padding-top: 72px !important;
    padding-bottom: 76px !important;
}

.home-page .hero-content { max-width: 760px !important; }

.hero-badge,
.hero-label {
    font-weight: 850 !important;
    letter-spacing: 1.25px !important;
}

.home-page .hero-badge {
    padding: 8px 12px !important;
    border: 1px solid rgba(85,230,255,.16) !important;
    background: linear-gradient(90deg, rgba(85,230,255,.07), rgba(164,119,255,.05)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.home-page .hero-content h1 {
    margin: 22px 0 17px !important;
    max-width: 760px;
    font-size: clamp(44px, 6.3vw, 72px) !important;
    line-height: .98 !important;
    letter-spacing: -3.1px !important;
    font-weight: 850 !important;
}

.home-page .hero-content h1 span {
    background: linear-gradient(90deg, #7aefff 0%, #7da5ff 48%, #be91ff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.home-page .hero-content p {
    max-width: 600px !important;
    color: #929fba !important;
    font-size: 15px !important;
    line-height: 1.82 !important;
}

.home-page .hero-actions { margin-top: 30px !important; gap: 11px !important; }

.hero-btn,
.btn-primary,
.btn-secondary,
.copy-all {
    min-height: 44px;
    border-radius: 12px !important;
    font-weight: 780 !important;
    letter-spacing: .05px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease !important;
}

.hero-btn.primary,
.btn-primary {
    background: linear-gradient(135deg, #16b9d7 0%, #4f75f6 53%, #8757e8 100%) !important;
    box-shadow: 0 12px 30px rgba(65, 104, 235, .25), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.hero-btn.primary:hover,
.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 36px rgba(65,104,235,.32), inset 0 1px 0 rgba(255,255,255,.25) !important;
}

.hero-btn.secondary,
.btn-secondary,
.copy-all {
    border: 1px solid rgba(148,163,184,.14) !important;
    background: rgba(255,255,255,.035) !important;
    color: #dce5f5 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

/* Section rhythm */
.home-page .latest-section,
.home-page .tools-section,
.home-page .market-section { padding: 62px 0 !important; }

.home-page .tools-section {
    background: rgba(255,255,255,.012) !important;
    border-top: 1px solid rgba(148,163,184,.07);
    border-bottom: 1px solid rgba(148,163,184,.07);
}

.section-heading { margin-bottom: 28px !important; }

.section-label {
    margin-bottom: 8px !important;
    color: #62ddf5 !important;
    font-size: 9px !important;
    letter-spacing: 1.45px !important;
}

.section-heading h2 {
    font-size: clamp(24px, 3vw, 31px) !important;
    letter-spacing: -.85px !important;
    font-weight: 820 !important;
}

.section-link {
    padding: 8px 0;
    color: #8ea0bd !important;
    font-weight: 720 !important;
}

.section-link:hover { color: #79eaff !important; }

/* Premium result cards */
.home-page .result-grid { gap: 18px !important; }

.home-page .result-card {
    min-height: 280px;
    padding: 24px 24px 22px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(156,170,199,.12) !important;
    background:
        linear-gradient(145deg, rgba(17, 27, 48, .92), rgba(8, 14, 28, .94)) !important;
    box-shadow: 0 26px 60px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035) !important;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

.home-page .result-card::before {
    top: 0 !important;
    left: 24px !important;
    right: 24px !important;
    width: auto !important;
    height: 1px !important;
    border-radius: 99px;
}

.home-page .result-card::after {
    width: 180px !important;
    height: 180px !important;
    right: -76px !important;
    bottom: -92px !important;
    opacity: .07 !important;
    filter: blur(8px) !important;
}

.home-page .result-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(126,231,255,.22) !important;
    box-shadow: 0 34px 78px rgba(0,0,0,.36), 0 0 0 1px rgba(126,231,255,.02), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.home-page .result-card.hk::before { background: linear-gradient(90deg, transparent, #4fa3ff, #64e9ff, transparent) !important; }
.home-page .result-card.sgp::before { background: linear-gradient(90deg, transparent, #31d99a, #77f6bd, transparent) !important; }
.home-page .result-card.sdy::before { background: linear-gradient(90deg, transparent, #ff6f91, #ffc15c, transparent) !important; }

.home-page .result-top { gap: 13px !important; }

.home-page .market-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.045) !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    font-size: 21px !important;
}

.home-page .market-name {
    font-size: 12px !important;
    letter-spacing: .75px !important;
    font-weight: 850 !important;
}

.home-page .market-description {
    margin-top: 4px !important;
    color: #71819e !important;
    font-size: 9px !important;
}

.home-page .result-number {
    margin: 32px 0 22px !important;
    color: #f9fbff !important;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace !important;
    font-size: clamp(43px, 5vw, 56px) !important;
    line-height: .95 !important;
    font-weight: 800 !important;
    letter-spacing: 7px !important;
    text-shadow: 0 10px 34px rgba(0,0,0,.28) !important;
}

.home-page .result-date,
.home-page .result-time {
    color: #8291aa !important;
    font-size: 10px !important;
    line-height: 1.55 !important;
}

/* Supporting cards */
.total-card,
.tool-card,
.market-info,
.update-box {
    border-radius: 20px !important;
    border: 1px solid rgba(156,170,199,.11) !important;
    background: linear-gradient(145deg, rgba(15,24,43,.88), rgba(9,15,29,.90)) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.028) !important;
}

.total-card { overflow: hidden; position: relative; }
.total-card::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84,219,255,.10), transparent 65%);
    pointer-events: none;
}

.total-content strong {
    font-size: clamp(28px, 4vw, 38px) !important;
    letter-spacing: -1.25px;
}

.tool-card,
.market-info { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important; }
.tool-card:hover,
.market-info:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(126,231,255,.20) !important;
    box-shadow: 0 28px 62px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.tool-icon,
.total-icon,
.market-info-icon {
    border-radius: 15px !important;
    background: linear-gradient(145deg, rgba(85,230,255,.09), rgba(164,119,255,.09)) !important;
    border: 1px solid rgba(148,163,184,.10) !important;
}

/* Inner page hero cards */
.riwayat-hero,
.statistik-hero,
.calculator-hero {
    position: relative;
    overflow: hidden;
    margin: 34px 0 24px !important;
    padding: 36px 38px !important;
    border: 1px solid rgba(156,170,199,.11) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(420px 200px at 90% 5%, rgba(104,89,255,.11), transparent 70%),
        radial-gradient(380px 180px at 2% 100%, rgba(66,213,255,.07), transparent 72%),
        linear-gradient(145deg, rgba(16,25,45,.92), rgba(8,14,27,.94)) !important;
    box-shadow: 0 24px 64px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.032) !important;
}

.riwayat-hero::after,
.statistik-hero::after,
.calculator-hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: 26px;
    top: -96px;
    border: 1px solid rgba(126,231,255,.07);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(164,119,255,.025), 0 0 0 76px rgba(85,230,255,.018);
    pointer-events: none;
}

.riwayat-hero h1,
.statistik-hero h1,
.calculator-hero h1 {
    margin: 9px 0 10px !important;
    font-size: clamp(30px, 4vw, 39px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1.3px !important;
    font-weight: 830 !important;
}

.riwayat-hero p,
.statistik-hero p,
.calculator-hero p { color: #8e9bb3 !important; font-size: 13px !important; }

/* Premium filters */
.filter-card,
.calculator-card,
.stat-card,
.info-card,
.kalkulator-page .result-card {
    border: 1px solid rgba(156,170,199,.11) !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(14,22,40,.90), rgba(8,14,27,.92)) !important;
    box-shadow: 0 20px 54px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.filter-card { padding: 22px !important; }
.filter-label,
.filter-title,
.periode-title { color: #dce5f5 !important; font-weight: 780 !important; }

.filter-buttons { gap: 9px !important; }
.filter-buttons a,
.mode-option span,
.page-button {
    border: 1px solid rgba(148,163,184,.10) !important;
    border-radius: 11px !important;
    background: rgba(255,255,255,.03) !important;
    color: #9caac1 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.018) !important;
}

.filter-buttons a:hover,
.mode-option span:hover,
.page-button:hover {
    border-color: rgba(126,231,255,.18) !important;
    background: rgba(255,255,255,.055) !important;
    color: #eef4ff !important;
}

.filter-buttons a.active,
.mode-option input:checked + span,
.page-button.active {
    border-color: rgba(126,231,255,.15) !important;
    background: linear-gradient(135deg, rgba(25,164,195,.88), rgba(66,100,219,.92) 55%, rgba(118,70,206,.90)) !important;
    color: #fff !important;
    box-shadow: 0 9px 24px rgba(54,86,200,.18), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

/* History table */
.table-card {
    border: 1px solid rgba(156,170,199,.11) !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(13,21,38,.92), rgba(8,14,27,.94)) !important;
    box-shadow: 0 22px 58px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.025) !important;
}

thead th {
    padding: 16px 14px !important;
    border-bottom: 1px solid rgba(156,170,199,.10) !important;
    background: rgba(255,255,255,.025) !important;
    color: #7888a4 !important;
    font-size: 10px !important;
    letter-spacing: .65px;
    text-transform: uppercase;
}

tbody td {
    padding: 17px 14px !important;
    border-bottom: 1px solid rgba(156,170,199,.075) !important;
    color: #ccd6e8 !important;
}

tbody tr { transition: background .16s ease; }
tbody tr:hover td { background: rgba(77, 139, 255, .035) !important; }

.riwayat-page .result-number {
    color: #f0f5ff !important;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace !important;
    font-size: 18px !important;
    font-weight: 760 !important;
    letter-spacing: 3px !important;
}

.date-cell strong { color: #dfe7f6 !important; font-weight: 720 !important; }
.data-info strong { color: #e9f0ff !important; }

/* Statistics */
.summary-grid { gap: 13px !important; }
.summary-card {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 20px !important;
    border: 1px solid rgba(156,170,199,.10) !important;
    border-radius: 17px !important;
    background: linear-gradient(145deg, rgba(16,25,45,.88), rgba(9,15,29,.92)) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.summary-card::after {
    content: "";
    position: absolute;
    width: 85px;
    height: 85px;
    right: -35px;
    bottom: -45px;
    border-radius: 50%;
    background: rgba(92,205,255,.07);
    pointer-events: none;
}

.summary-card span { color: #7f8da5 !important; font-size: 10px !important; letter-spacing: .35px; }
.summary-card strong {
    font-size: 27px !important;
    font-weight: 820 !important;
    letter-spacing: -.7px !important;
    background: linear-gradient(90deg, #83edff, #91a8ff 52%, #c29aff) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

.stat-card { padding: 25px !important; }
.section-title h2 { font-size: 18px !important; letter-spacing: -.35px; }
.section-title p { color: #7f8ca5 !important; }

.digit-grid { gap: 9px !important; }
.digit-item {
    padding: 16px 6px !important;
    border: 1px solid rgba(156,170,199,.08) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.025) !important;
}
.digit-item:hover { border-color: rgba(126,231,255,.16) !important; background: rgba(126,231,255,.04) !important; }
.digit-number { color: #eef4ff !important; font-family: ui-monospace, monospace; }

.position-box,
.ranking-card {
    border: 1px solid rgba(156,170,199,.08) !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.022) !important;
}
.position-row,
.ranking-row {
    border: 1px solid rgba(156,170,199,.065) !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.02) !important;
}

/* Calculator */
.calculator-card { padding: 27px !important; }

#angka,
#posisi {
    width: 100%;
    padding: 14px 15px !important;
    border: 1px solid rgba(156,170,199,.13) !important;
    border-radius: 12px !important;
    background: rgba(3,8,18,.62) !important;
    color: #f2f6ff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.018) !important;
    outline: none !important;
}

#angka::placeholder,
#posisi::placeholder { color: #53617a !important; }

#angka:focus,
#posisi:focus {
    border-color: rgba(85,230,255,.42) !important;
    box-shadow: 0 0 0 4px rgba(85,230,255,.065), inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.kalkulator-page .result-card { overflow: hidden !important; }
.result-header { padding: 23px 24px !important; background: rgba(255,255,255,.014); }
.result-info { background: rgba(255,255,255,.01); }
.result-info > div { padding: 16px !important; }
.result-section { padding: 24px !important; }

.number-item {
    min-height: 38px;
    border: 1px solid rgba(156,170,199,.09) !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.025) !important;
    color: #dfe8f7 !important;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    transition: transform .15s ease, border-color .15s ease, background .15s ease !important;
}
.number-item:hover {
    transform: translateY(-1px);
    border-color: rgba(85,230,255,.22) !important;
    background: rgba(85,230,255,.055) !important;
}

.info-grid div {
    border: 1px solid rgba(156,170,199,.075) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.022) !important;
}

/* Footer */
.site-footer {
    margin-top: 72px !important;
    border-top: 1px solid rgba(156,170,199,.09) !important;
    background:
        radial-gradient(500px 220px at 10% 10%, rgba(63,125,255,.045), transparent 70%),
        rgba(4,7,15,.82) !important;
}
.footer-main { padding-top: 52px !important; padding-bottom: 42px !important; }
.footer-title { color: #d6dfef !important; letter-spacing: .8px !important; }
.footer-link { transition: color .16s ease, transform .16s ease; }
.footer-link:hover { color: #7beaff !important; transform: translateX(2px); }
.footer-bottom { border-top-color: rgba(156,170,199,.075) !important; }

/* Selection + focus accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(85,230,255,.75) !important;
    outline-offset: 3px !important;
}

/* Responsive */
@media (max-width: 900px) {
    .site-container { width: min(100% - 28px, 1220px) !important; }
    .home-page .hero-section { min-height: 380px; }
    .home-page .hero-inner { min-height: 380px !important; padding-top: 58px !important; padding-bottom: 62px !important; }
    .home-page .hero-section::before { width: 390px; right: -100px; opacity: .60; }
    .summary-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 700px) {
    .header-inner { min-height: 66px !important; }
    .logo-mark { width: 38px !important; height: 38px !important; border-radius: 12px !important; }
    .home-page .hero-section { min-height: 355px; }
    .home-page .hero-inner { min-height: 355px !important; padding-top: 48px !important; padding-bottom: 52px !important; }
    .home-page .hero-content h1 { font-size: clamp(39px, 12vw, 54px) !important; letter-spacing: -2.2px !important; }
    .home-page .hero-content p { font-size: 13px !important; }
    .home-page .latest-section,
    .home-page .tools-section,
    .home-page .market-section { padding: 48px 0 !important; }
    .riwayat-hero,
    .statistik-hero,
    .calculator-hero { margin-top: 20px !important; padding: 27px 24px !important; border-radius: 20px !important; }
    .filter-card,
    .calculator-card,
    .stat-card,
    .info-card { border-radius: 17px !important; }
    .summary-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .summary-card { min-height: 102px; }
}

@media (max-width: 430px) {
    .site-container { width: calc(100% - 22px) !important; }
    .home-page .hero-content h1 { font-size: 39px !important; }
    .home-page .result-card { min-height: 260px; padding: 21px !important; }
    .home-page .result-number { font-size: 42px !important; letter-spacing: 5px !important; }
    .hero-btn { width: 100%; }
    .summary-grid { grid-template-columns: 1fr 1fr !important; gap: 9px !important; }
    .summary-card { padding: 16px !important; }
}

/* Small premium status cue on homepage result cards */
.home-page .result-top::after {
    content: "LATEST";
    margin-left: auto;
    align-self: flex-start;
    padding: 5px 7px;
    border: 1px solid rgba(148,163,184,.10);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    color: #667590;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 1px;
}

.home-page .result-card.hk .result-top::after { color: #75c9ff; border-color: rgba(91,164,255,.13); }
.home-page .result-card.sgp .result-top::after { color: #65daa7; border-color: rgba(74,222,128,.12); }
.home-page .result-card.sdy .result-top::after { color: #ff9bad; border-color: rgba(251,113,133,.13); }

.history-date-link{color:inherit;text-decoration:none}.history-date-link:hover{color:#67e8f9;text-decoration:underline}

/* -----------------------------------------------------------------
   V10 — TRUST FOOTER + MOBILE RESULT NAV
----------------------------------------------------------------- */
@media (min-width: 851px){.footer-main{grid-template-columns:1.45fr .82fr .82fr .82fr!important;gap:34px!important}}
.mobile-bottom-nav{display:none}
@media (max-width:700px){body{padding-bottom:74px}.site-footer{margin-bottom:0!important}.mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:10px;right:10px;bottom:10px;z-index:10020;min-height:58px;padding:5px;border:1px solid rgba(148,163,184,.14);border-radius:18px;background:rgba(5,9,19,.92);box-shadow:0 18px 55px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.035);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.mobile-bottom-link{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;border-radius:13px;color:#75849e;text-decoration:none;font-size:8px;font-weight:800;letter-spacing:.15px;transition:background .16s ease,color .16s ease,transform .16s ease}.mobile-bottom-link.active{background:linear-gradient(145deg,rgba(72,201,255,.11),rgba(124,92,255,.08));color:#e9f8ff}.mobile-bottom-link.active::after{content:"";position:absolute;top:3px;width:13px;height:2px;border-radius:99px;background:#72e7ff;box-shadow:0 0 12px rgba(88,223,255,.48)}.mobile-bottom-link:active{transform:scale(.96)}.mobile-bottom-icon{display:flex;align-items:center;justify-content:center;height:23px;color:inherit;font-size:17px;font-weight:900;line-height:1}.mobile-bottom-icon.market{font-size:8px;letter-spacing:-.2px;padding:0 5px;border:1px solid rgba(148,163,184,.10);border-radius:7px;background:rgba(255,255,255,.025)}.mobile-bottom-link.active .mobile-bottom-icon.market{border-color:rgba(98,225,255,.20);background:rgba(98,225,255,.06)}.footer-main{padding-bottom:34px!important}}
@media(max-width:360px){.mobile-bottom-nav{left:6px;right:6px;bottom:6px}.mobile-bottom-link{font-size:7px}}
