
:root {
    /* Colors */
    --color-bg-body: #0b0e14;
    --color-bg-card: #151a25;
    --color-bg-darker: #05070a;
    
    --color-primary: #ffc107;
    --color-primary-hover: #ffca2c;
    --color-primary-glow: rgba(255, 193, 7, 0.4);
    
    --color-secondary: #dc3545;
    --color-secondary-hover: #bb2d3b;
    --color-accent: #0dcaf0;
    
    --color-text-main: #e0e6ed;
    --color-text-muted: #9aa5b1;
    --color-text-dark: #121212;
    
    --border-color: #2d3748;
    
    /* Typography */
    --font-family-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 15px var(--color-primary-glow);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-main);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

li {
    margin-bottom: 0.5rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 2rem; color: var(--color-primary); }
p { margin-bottom: 1rem; color: var(--color-text-muted); }

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* --- Header Styles --- */
header {
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

header:not(.mob) {
    display: block;
}

header.mob {
    display: none; /* Hidden by default on desktop */
}

.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background: url('https://placehold.co/150x50/ffc107/121212?text=JOYCASINO') no-repeat center/contain;
    transition: transform var(--transition-base);
}

.men1 a:hover {
    transform: scale(1.05);
}

/* --- Navigation & Buttons --- */
.menn {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.men3, .men4 {
    padding: 0.6em 1.2em;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

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

.men3:hover {
    background: var(--color-primary);
    color: var(--color-text-dark);
    box-shadow: var(--shadow-glow);
}

.men4 {
    background: linear-gradient(135deg, var(--color-primary), #e0a800);
    color: var(--color-text-dark);
    border: 1px solid transparent;
}

.men4:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* --- Hero Section --- */
.joyl-slide {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(rgba(11, 14, 20, 0.7), rgba(11, 14, 20, 1)), 
                url('https://placehold.co/1200x400/1e293b/475569?text=Casino+Banner') no-repeat center center/cover;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jou-abs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* --- Content Area --- */
.main {
    padding-bottom: var(--spacing-lg);
}

.joy-left {
    background-color: var(--color-bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--spacing-md);
}

/* Styles for the flex container described in HTML inline style */
div[style*="display:flex"] {
    display: flex !important;
    gap: var(--spacing-md);
    align-items: flex-start;
}

/* Ensure joy-left inside flex takes available space */
div[style*="display:flex"] > .joy-left {
    flex: 1;
    margin-bottom: 0; /* Remove bottom margin when in flex */
}

.main-right {
    width: 300px;
    flex-shrink: 0;
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    min-height: 200px; /* Placeholder */
    /* Add placeholder content styles if empty */
}

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

.btn {
    display: inline-block;
    padding: 1em 2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
    background: linear-gradient(45deg, var(--color-primary), #ff9800);
    border-radius: 50px;
    box-shadow: 0 10px 20px -5px rgba(255, 152, 0, 0.5);
    transition: all var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(255, 152, 0, 0.6);
    color: var(--color-text-dark);
}

.btn:hover::after {
    left: 100%;
}

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

/* --- Form Elements (Generic) --- */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1em;
    background-color: var(--color-bg-darker);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    transition: border-color var(--transition-fast);
}

input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

/* --- Footer --- */
footer {
    background-color: var(--color-bg-darker);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    margin-top: auto;
    font-size: 0.9rem;
    text-align: center;
}

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

.menu-fo {
    color: var(--color-text-muted);
}

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

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

/* --- Scroll to Top Button --- */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    transition: all var(--transition-base);
    opacity: 0.8;
}

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

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

/* --- Mobile / Responsive Design --- */
@media (max-width: 768px) {
    /* Hide desktop header */
    header:not(.mob) {
        display: none;
    }

    /* Show mobile header */
    header.mob {
        display: block;
        padding: 10px 0;
    }
    
    header.mob .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    header.mob .menn {
        margin-top: 10px;
        width: 100%;
        justify-content: space-between;
    }
    
    .men3, .men4 {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.5em;
    }

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

    .main-right {
        width: 100%;
        margin-top: var(--spacing-sm);
        min-height: auto;
    }
    
    .joy-left {
        padding: var(--spacing-sm);
    }
    
    .btn-size-big {
        width: 100%;
        text-align: center;
    }
    
    h1 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

/* --- Print Styles --- */
@media print {
    body { background: #fff; color: #000; }
    header, footer, #scroller, .btn-box { display: none; }
}
