:root {
    --bg-color: #0b0f19;
    --panel-bg: #131c2e;
    --text-primary: #f8fafc;
    --text-secondary: #d8b372;
    --text-city: #d5e0f0;
    --accent: #38bdf8;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --gold: #d4af37; 
    --blue: #3498db; 
    --danger: #ff4d4d;
    --nav-h: 65px; 
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    width: 100%;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0 0 calc(var(--nav-h) + 24px) 0;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    align-items: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    width: 100%;
    text-align: center;
    margin-top: 16px;
    padding: 0 12px;
}

footer {
    width: 100%;
    text-align: center;
    padding: 16px 12px;
    color: #e8bb6b;
    font-size: 0.75rem;
    margin-top: auto;
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: var(--nav-h);
    background: #111111;
    display: flex;
    border-top: 1px solid #262626;
    z-index: 999999 !important;
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #737373;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.mobile-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    text-align: center;
}

.mobile-nav .nav-item b {
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: normal;
}

.mobile-nav .nav-item:hover,
.mobile-nav .nav-item:active {
    background: rgba(226, 184, 87, 0.14);
    color: #e2b857;
    transform: translateY(-2px);
}

/* Beri ruang tambahan di bahagian paling bawah halaman supaya footer tidak terlindung oleh menu */
body {
    padding-bottom: 74px;
}

@media (min-width: 960px) {
    .main-container {
        flex-direction: row-reverse;
        align-items: flex-start;
        justify-content: center;
        max-width: 1200px;
        margin-top: 24px;
    }
}
