
/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Color Palette - Dark Premium Casino Theme */
    --c-bg-body: #0b0e14;
    --c-bg-card: #151a23;
    --c-bg-card-hover: #1c222e;
    
    --c-primary: #f5c518; /* Gold */
    --c-primary-hover: #ffd740;
    --c-secondary: #3b82f6; /* Bright Blue */
    --c-accent: #ef4444; /* Red/Alert */
    
    --c-text-main: #ffffff;
    --c-text-muted: #94a3b8;
    --c-border: #2d3748;

    /* Typography */
    --font-stack: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    --fs-base: 1rem;
    --fs-h1: clamp(1.75rem, 5vw, 3rem);
    --fs-h2: clamp(1.5rem, 4vw, 2.25rem);
    
    /* Spacing & Sizing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;
    --container-width: 1200px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 20px rgba(245, 197, 24, 0.15);
    --shadow-card: 0 10px 30px -10px rgba(0,0,0,0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    background-color: var(--c-bg-body);
    color: var(--c-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: var(--sp-sm);
    line-height: 1.2;
    color: var(--c-text-main);
    font-weight: 700;
}

h1 {
    font-size: var(--fs-h1);
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--sp-md);
}

h2 {
    font-size: var(--fs-h2);
    color: var(--c-primary);
    border-left: 4px solid var(--c-primary);
    padding-left: var(--sp-sm);
    margin-top: var(--sp-md);
}

p {
    margin-bottom: var(--sp-sm);
    color: var(--c-text-muted);
    font-size: 1.05rem;
}

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

a:hover {
    color: var(--c-primary-hover);
    text-shadow: 0 0 8px rgba(245, 197, 24, 0.4);
}

ul, ol {
    margin-bottom: var(--sp-sm);
    padding-left: 1.5rem;
    color: var(--c-text-muted);
}

li {
    margin-bottom: 0.5rem;
}

/* =========================================
   3. LAYOUT & CONTAINER
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--sp-sm);
}

.main {
    padding-top: var(--sp-md);
    padding-bottom: var(--sp-lg);
}

/* Flex helper for the layout structure */
div[style*="display:flex"] {
    display: flex !important;
    flex-wrap: wrap;
    gap: var(--sp-md);
}

.joy-left, .main-left {
    flex: 1;
    min-width: 300px;
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
header {
    background: rgba(21, 26, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    padding: var(--sp-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: url('path/to/logo.png') no-repeat center/contain; /* Fallback styles below */
    background-color: var(--c-bg-card);
    border-radius: var(--radius-sm);
}

/* Mobile/Secondary Header Styles */
header.mob {
    margin-top: -1px; /* Align if both exist */
}

.menn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--sp-sm);
    flex-wrap: wrap;
}

.menn a.href {
    display: inline-block;
    text-decoration: none;
}

/* Nav Buttons Styles */
.men3, .men4 {
    padding: 0.6em 1.2em;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.men3 {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text-main);
}

.men3:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    transform: translateY(-2px);
}

.men4 {
    background: linear-gradient(135deg, var(--c-primary) 0%, #e6a800 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
}

.men4:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.5);
    transform: translateY(-2px);
}

/* =========================================
   5. HERO / SLIDER AREAS
   ========================================= */
.joyl-slide {
    position: relative;
    margin-bottom: var(--sp-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(45deg, var(--c-bg-card), #1e2532);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main1 {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    /* Placeholder gradient if image missing */
    background: radial-gradient(circle at center, #2d3748 0%, #0f172a 100%);
}

/* =========================================
   6. COMPONENTS: CARDS & CONTENT
   ========================================= */
.joy-left, .main-left {
    background: var(--c-bg-card);
    padding: var(--sp-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--c-border);
    margin-bottom: var(--sp-md);
}

/* Buttons */
.btn-box {
    text-align: center;
    margin: var(--sp-md) 0;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(90deg, var(--c-primary) 0%, #facc15 100%);
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.4);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: translateX(-100%) skewX(-15deg);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 197, 24, 0.6);
}

.btn:hover::after {
    transform: translateX(100%) skewX(-15deg);
}

.btn:active {
    transform: translateY(1px);
}

/* =========================================
   7. TABLES
   ========================================= */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--sp-md) 0;
    font-size: 0.95rem;
    background: var(--c-bg-body);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--c-border);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

th {
    background-color: #1e293b;
    color: var(--c-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Scrollable tables on mobile */
div > table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

@media (min-width: 768px) {
    div > table {
        display: table;
        white-space: normal;
    }
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: #05070a;
    padding: var(--sp-md) 0;
    margin-top: var(--sp-lg);
    border-top: 1px solid var(--c-border);
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
}

.menu-fo {
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

.menu-fo a {
    color: var(--c-text-muted);
    margin: 0 0.5rem;
}

.menu-fo a:hover {
    color: var(--c-primary);
}

/* =========================================
   9. INTERACTIVE ELEMENTS (Back to Top)
   ========================================= */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--c-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
    opacity: 0.8;
}

#scroller:hover {
    opacity: 1;
    transform: translateY(-5px);
    background: var(--c-primary-hover);
}

.b-top-but {
    font-size: 0; /* Hide text, use icon logic usually */
    width: 12px;
    height: 12px;
    border-top: 3px solid #000;
    border-left: 3px solid #000;
    transform: rotate(45deg);
    margin-top: 4px;
}

/* =========================================
   10. MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Stack Header */
    .menn {
        flex-direction: column;
        width: 100%;
    }
    
    .menn a {
        width: 100%;
    }
    
    .men3, .men4 {
        width: 100%;
        display: block;
        padding: 0.8rem;
    }

    /* Stack Content */
    div[style*="display:flex"] {
        flex-direction: column !important;
    }

    /* Typography adjustments */
    h1 { margin-bottom: 1rem; }
    
    .joy-left, .main-left {
        padding: 1.5rem;
    }

    .btn {
        width: 100%;
        font-size: 1rem;
    }
}

/* =========================================
   11. FORM ELEMENTS (Generic Support)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-main);
    font-family: inherit;
    margin-bottom: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.2);
}

/* =========================================
   12. UTILITY & VISUAL POLISH
   ========================================= */
.image-filters-enabled img {
    filter: sepia(10%) contrast(1.05);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

img:hover {
    filter: none;
}

::selection {
    background: var(--c-primary);
    color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--c-bg-body);
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--c-primary);
}
