@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Organic Luxury Casino Palette */
    --primary: #227b40;
    --primary-hover: #1b6434;
    --primary-light: #e8f5ec;
    --primary-dim: rgba(34, 123, 64, 0.12);
    --primary-glow: rgba(34, 123, 64, 0.25);
    
    --gold: #f59e0b;
    --gold-hover: #d97706;
    --gold-light: #fef3c7;
    --gold-dim: rgba(245, 158, 11, 0.15);
    
    --accent-red: #ef4444;
    
    /* Background Colors */
    --bg-page: #fbfdfb;
    --bg-surface: #ffffff;
    --bg-alt: #f4f7f4;
    --bg-soft: #f8faf8;
    --bg-dark: #121d15;
    --bg-dark-card: #1a2a1f;
    --bg-dark-elevated: #213527;
    
    /* Text Colors */
    --text-dark: #17231a;
    --text-body: #425246;
    --text-muted: #6b7a6f;
    --text-light: #ffffff;
    --text-light-muted: #b9c7bd;
    
    /* Borders & Outlines */
    --border: #e3eae4;
    --border-subtle: #edf2ed;
    --border-dark: rgba(255, 255, 255, 0.1);
    
    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(18, 29, 21, 0.05);
    --shadow-md: 0 8px 24px rgba(18, 29, 21, 0.07);
    --shadow-lg: 0 16px 40px rgba(18, 29, 21, 0.1);
    --shadow-glow: 0 8px 24px rgba(34, 123, 64, 0.22);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Mobile App Dimensions */
    --mobile-width: 480px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ── Desktop Outer Canvas (Mobile App Emulation) ── */
html {
    min-height: 100%;
    background-color: #0b140e;
    background-image: 
        radial-gradient(circle at 50% 15%, rgba(34, 123, 64, 0.28) 0%, transparent 60%),
        linear-gradient(180deg, #070e0a 0%, #0e1912 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ── Mobile Viewport Container ── */
body {
    min-height: 100vh;
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: var(--mobile-width);
    margin: 0 auto;
    padding-top: 64px;
    padding-bottom: 74px; /* Space for fixed bottom navigation */
    position: relative;
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-dark);
    line-height: 1.25;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* ── Typography & Section Headers ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-label::before,
.section-label::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 1.5px;
    background: var(--primary);
    opacity: 0.6;
}

.section-title {
    font-size: 1.65rem;
    line-height: 1.25;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 700;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.section-head {
    margin-bottom: 28px;
}

.section-head.center {
    text-align: center;
}

.center-desc {
    margin-left: auto;
    margin-right: auto;
}

/* Casino Ace of Spades & Suits Ornament Divider */
.casino-ornament {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 14px;
    color: var(--primary);
}

.casino-ornament::before,
.casino-ornament::after {
    content: '';
    display: block;
    width: 36px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(34, 123, 64, 0.4), transparent);
}

.casino-ornament .ornament-suit {
    font-size: 0.75rem;
    color: var(--gold);
    line-height: 1;
}

.casino-ornament svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    filter: drop-shadow(0 1px 2px rgba(34, 123, 64, 0.25));
}

/* ── Buttons (Touch-Optimized) ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(34, 123, 64, 0.25);
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover,
.btn-outline:active {
    background: var(--primary);
    color: #ffffff;
}

.btn-large {
    padding: 13px 26px;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
}

.btn-dark {
    background: var(--bg-dark);
    color: #ffffff;
}

.btn-neon {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* ── Star Ratings ── */
.stars-rating {
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

/* ── 1. Mobile Header (Fixed Top) ── */
.main-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    height: 64px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 14px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

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

.btn-signin {
    padding: 7px 14px;
    font-size: 0.8rem;
    border-color: #d1d5db;
    color: var(--text-dark);
    border-radius: var(--radius-pill);
}

.btn-signup {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: var(--radius-pill);
}

/* Mobile Hamburger Toggle (Always active on mobile layout) */
.mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 7px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* Slide-out Mobile Navigation Drawer */
.main-nav {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    width: 100%;
    max-width: var(--mobile-width);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
    padding: 16px 20px 24px;
    border-bottom: 2px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.main-nav.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.nav-list li {
    width: 100%;
}

.nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-list a::after {
    content: '→';
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-list a.current,
.nav-list a:hover {
    color: var(--primary);
}

/* ── 5-Tab Mobile Bottom Navigation Bar (Always Visible) ── */
.mobile-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    height: 66px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 6px 8px;
    z-index: 1000;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    justify-content: space-around;
    align-items: center;
}

.tab-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    text-decoration: none;
    gap: 3px;
    transition: var(--transition);
}

.tab-nav-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.tab-nav-item:hover,
.tab-nav-item.active {
    color: var(--primary);
}

/* Center Highlight Tab (Slot / Daftar) */
.tab-nav-highlight {
    background: var(--primary);
    color: #ffffff !important;
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    box-shadow: 0 4px 12px rgba(34, 123, 64, 0.35);
    margin-top: -12px;
    height: 52px;
}

.tab-nav-highlight .tab-nav-icon {
    font-size: 1.35rem;
}

.tab-nav-highlight span:last-child {
    font-size: 0.7rem;
    font-weight: 800;
}

/* Legacy button fallbacks inside bottom bar if present */
.mobile-bottom-bar .btn-login,
.mobile-bottom-bar .btn-register {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
}

.mobile-bottom-bar .btn-login {
    background: var(--bg-alt);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.mobile-bottom-bar .btn-register {
    background: var(--primary);
    color: #ffffff;
}

/* ── Mobile Footer ── */
.main-footer {
    background: var(--bg-dark);
    color: var(--text-light-muted);
    padding: 40px 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand img {
    height: 34px;
    width: auto;
    max-width: 150px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-light-muted);
}

.footer-links h3,
.footer-contact h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 6px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-light-muted);
}

.footer-contact p {
    font-size: 0.825rem;
    line-height: 1.6;
    color: var(--text-light-muted);
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.775rem;
    color: #8b998f;
    line-height: 1.6;
}

.footer-bottom a {
    color: #ffffff;
    font-weight: 600;
}
