@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Enhanced Color System for Oriental Luxury */
    --bg-primary: #0A0508;
    --bg-secondary: #160A12;
    --surface: rgba(25, 12, 20, 0.65);
    --surface-hover: rgba(40, 20, 30, 0.85);
    --imperial-red: #E11D48;
    --luxury-gold: #FDE047;
    --deep-gold: #D97706;
    --jade-green: #10B981;
    --royal-purple: #7C3AED;
    --text-primary: #FAFAFA;
    --text-secondary: #E5E7EB;
    --muted: #9CA3AF;
    
    /* Modern Dashboard Layout */
    --max-width: 1400px;
    --sidebar-width: 280px;
    --spacing-desk: 100px;
    --spacing-tab: 70px;
    --spacing-mob: 50px;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Effects */
    --radius-lg: 24px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(253, 224, 71, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(253, 224, 71, 0.5);
}

/* Background Texture / Glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(225, 29, 72, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 85% 30%, rgba(253, 224, 71, 0.06) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Animations */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

a {
    color: var(--luxury-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.gold-text {
    background: linear-gradient(135deg, var(--luxury-gold), var(--deep-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(253, 224, 71, 0.3); /* Provides a glowing aura */
}

/* Advanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-gold), var(--luxury-gold));
    color: #000;
    box-shadow: 0 8px 25px rgba(253, 224, 71, 0.3), inset 0 2px 5px rgba(255,255,255,0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FFF, var(--luxury-gold));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(253, 224, 71, 0.5), inset 0 2px 5px rgba(255,255,255,0.8);
    color: #000;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: rgba(25, 12, 20, 0.5);
    color: var(--luxury-gold);
    border: 1px solid rgba(253, 224, 71, 0.4);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(253, 224, 71, 0.1);
    border-color: var(--luxury-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(253, 224, 71, 0.2);
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.15rem;
}

/* Premium Glass Panels */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(253, 224, 71, 0.1);
    border-top: 1px solid rgba(253, 224, 71, 0.25);
    border-left: 1px solid rgba(253, 224, 71, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Floating App-like Sidebar */
.sidebar-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    width: var(--sidebar-width);
    height: calc(100vh - 40px);
    background: rgba(18, 9, 14, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(253, 224, 71, 0.15);
    border-radius: var(--radius-lg);
    z-index: 1000;
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    overflow-y: auto;
}

.sidebar-brand {
    margin-bottom: 40px;
    text-align: left;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    max-width: 100%;
}

.sidebar-brand .logo-img {
    height: 45px;
}

.footer-brand .logo-img {
    height: 50px;
    margin-bottom: 20px;
}

.header-logo .logo-img {
    height: 35px;
}

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

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    background: transparent;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-links a:hover,
.sidebar-links a.active {
    background: linear-gradient(90deg, rgba(253, 224, 71, 0.15), transparent);
    border-left: 3px solid var(--luxury-gold);
    color: var(--luxury-gold);
    transform: translateX(5px);
}

.sidebar-links .icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 5px rgba(253, 224, 71, 0.2));
}

.sidebar-cta {
    margin-top: auto;
    margin-bottom: 25px;
}

.sidebar-compliance {
    padding: 15px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(0,0,0,0.3);
}

.sidebar-compliance p {
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-compliance p:last-child {
    margin-bottom: 0;
}

/* Main Layout Wrapper */
.main-wrapper {
    margin-left: calc(var(--sidebar-width) + 40px);
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Floating Site Header */
.site-header {
    background: rgba(18, 9, 14, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(253, 224, 71, 0.15);
    border-radius: var(--radius-lg);
    position: sticky;
    top: 20px;
    z-index: 999;
    padding: 18px 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-compliance {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    gap: 15px;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-left: auto;
}

.header-compliance .icon {
    font-size: 1.2rem;
    color: var(--imperial-red);
}

.desktop-hidden {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    color: var(--luxury-gold);
    border: 1px solid rgba(253, 224, 71, 0.3);
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(253, 224, 71, 0.1);
    border-color: var(--luxury-gold);
}

/* Embedded Framed Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    margin-top: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(253, 224, 71, 0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 5, 8, 0.9) 0%,
        rgba(28, 15, 22, 0.6) 50%,
        rgba(10, 5, 8, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 30px;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 45px;
    color: var(--text-secondary);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-compliance {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-compliance p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Page Header (Inner Pages) */
.page-header {
    margin-top: 20px;
    border-radius: var(--radius-lg);
    padding: 130px 0 90px;
    text-align: center;
    position: relative;
    background-image: url('images/china-slot-inner-header-bg.jpg');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(253, 224, 71, 0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 5, 8, 0.8) 0%, rgba(22, 10, 18, 0.95) 100%);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Sections */
.section {
    padding: var(--spacing-desk) 0;
}

/* Game Showcase */
.game-showcase {
    padding: 60px 50px;
    background: radial-gradient(circle at 50% -20%, rgba(253, 224, 71, 0.08) 0%, transparent 70%), var(--surface);
}

.game-header {
    margin-bottom: 40px;
}

.game-frame-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(253, 224, 71, 0.25);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 30px rgba(217, 119, 6, 0.2);
    background: #000;
}

.game-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px; /* Inner radius matching */
}

/* Dynamic Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.feature-card {
    grid-column: span 3; /* 4 columns layout */
    padding: 45px 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(30, 15, 22, 0.7) 0%, rgba(20, 10, 15, 0.9) 100%);
    border: 1px solid rgba(253, 224, 71, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--luxury-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(253, 224, 71, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(253, 224, 71, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(225, 29, 72, 0.4));
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Content Pages (About, Terms, etc.) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

.content-main {
    grid-column: span 8;
    grid-column-start: 3; /* Perfectly centered elegant reading width */
}

.content-panel {
    padding: 60px;
}

.content-panel h2 {
    margin-top: 40px;
    font-size: 2rem;
}

.content-panel h2:first-child {
    margin-top: 0;
}

.content-panel ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.content-panel li {
    margin-bottom: 12px;
}

/* Compliance Notice Blocks */
.compliance-notice {
    margin-top: 50px;
    padding: 35px;
    border: 1px dashed rgba(225, 29, 72, 0.5);
    border-radius: var(--radius-lg);
    background: rgba(225, 29, 72, 0.03);
    box-shadow: inset 0 0 30px rgba(225, 29, 72, 0.05);
}

.compliance-notice h3 {
    color: var(--imperial-red);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(225, 29, 72, 0.3);
}

.compliance-notice p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0;
}

/* Asymmetrical Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info-card, .contact-form-card {
    padding: 50px 40px;
}

.contact-info-card {
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--imperial-red);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 35px;
    position: relative;
    z-index: 2;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.detail-icon {
    font-size: 1.5rem;
    color: var(--luxury-gold);
    background: rgba(0, 0, 0, 0.5);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid rgba(253, 224, 71, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.detail-item h4 {
    margin-bottom: 6px;
    font-size: 1.15rem;
    letter-spacing: 1px;
}

.detail-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.contact-form-card {
    border-top: 3px solid var(--luxury-gold);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-form {
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: #FFF;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--luxury-gold);
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 15px rgba(253, 224, 71, 0.1);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

/* Floating Footer Layout */
.site-footer {
    background: rgba(18, 9, 14, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(253, 224, 71, 0.15);
    border-radius: var(--radius-lg);
    padding: 60px 40px 30px;
    margin-bottom: 0;
    margin-top: auto;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}

.footer-compliance {
    background: rgba(0,0,0,0.4);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 50px;
}

.footer-compliance h4 {
    color: var(--imperial-red);
    margin-bottom: 12px;
}

.footer-compliance p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    grid-column: span 5;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    grid-column: span 7;
    display: flex;
    justify-content: flex-end;
    gap: 100px;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    color: var(--muted);
    font-size: 1rem;
}

.footer-col ul a:hover {
    color: var(--luxury-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Responsive Master Overrides */
@media (max-width: 1200px) {
    .content-main { grid-column: span 10; grid-column-start: 2; }
    .footer-links { gap: 50px; }
}

@media (max-width: 1024px) {
    /* Mobile/Tablet Drawer Nav */
    .sidebar-nav {
        top: 0; left: 0;
        width: 320px;
        height: 100vh;
        border-radius: 0;
        transform: translateX(-100%);
        border: none;
        border-right: 1px solid rgba(253, 224, 71, 0.15);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 30px 20px;
    }
    
    .sidebar-nav.active {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
        padding: 0; /* Remove app padding */
    }
    
    .site-header {
        margin-top: 0;
        top: 0;
        border-radius: 0;
        border-left: none; border-right: none; border-top: none;
        padding: 15px 25px;
    }
    
    .header-compliance { display: none; }
    .desktop-hidden { display: block; }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero {
        margin-top: 0;
        border-radius: 0;
        border-left: none; border-right: none;
        height: calc(100vh - 76px);
    }
    
    .page-header {
        margin-top: 0;
        border-radius: 0;
        border-left: none; border-right: none;
    }
    
    .site-footer {
        margin-bottom: 0;
        border-radius: 0;
        border-left: none; border-right: none; border-bottom: none;
        padding: 50px 30px 20px;
    }
    
    .feature-card { grid-column: span 6; } /* 2 columns on tablet */
    .section { padding: var(--spacing-tab) 0; }
}

@media (max-width: 992px) {
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { display: flex; flex-direction: column; }
    .footer-links { justify-content: flex-start; gap: 40px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .content-main { grid-column: span 12; grid-column-start: 1; }
    .feature-card { grid-column: span 12; }
    
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    
    .game-showcase { padding: 30px 20px; }
    .content-panel { padding: 40px 25px; }
    
    .contact-info-card, .contact-form-card { padding: 40px 25px; }
    
    .section { padding: var(--spacing-mob) 0; }
}