
/* =========================================
   1. Reset & Normalization
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

:root {
    /* Colors */
    --bg-body: #0b0e14;
    --bg-card: #151922;
    --bg-card-hover: #1c212e;
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    
    /* Brand Colors - Casino Style */
    --primary: #ffd700;
    --primary-hover: #ffaa00;
    --accent: #ff4757;
    --accent-hover: #ff6b81;
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --gradient-dark: linear-gradient(145deg, #1a1e29, #11141b);
    
    /* Spacing & Sizing */
    --container-width: 1200px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(255, 215, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s ease-in-out;
}

body {
    font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
    background-color: --bg-body;
    background: radial-gradient(circle at top center, #1a202c 0%, #0b0e14 60%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* =========================================
   2. Layout & Container
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* =========================================
   3. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    text-align: center;
    margin-bottom: 2rem !important;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-muted);
}

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

strong {
    color: #fff;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

li strong {
    color: var(--primary);
}

/* =========================================
   4. Header Styles
   ========================================= */
header {
    background: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

/* Merging logic for desktop/mobile headers provided in HTML */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.men1 a {
    display: block;
    width: 150px;
    height: 50px;
    background: url('path/to/logo.png') no-repeat center/contain; /* Placeholder if img missing */
    background-color: rgba(255, 255, 255, 0.05); /* Fallback */
    border-radius: var(--radius-sm);
}

header.mob {
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-sm);
}

.menn {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Header Buttons */
.men3, .men4 {
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    text-align: center;
    white-space: nowrap;
}

/* Login / Mirror */
.men3 {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.men3:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Registration */
.men4 {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.men4:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.6);
}

/* =========================================
   5. Hero Section (.joyl-slide)
   ========================================= */
.joyl-slide {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(11, 14, 20, 1)), 
                url('https://via.placeholder.com/1920x600/1a1e29/ffd700?text=Casino+X+Bonus') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--primary);
    overflow: hidden;
}

.main1 {
    /* Hero banner content area */
    text-align: center;
    color: white;
}

/* =========================================
   6. Main Content Area
   ========================================= */
.main {
    padding-bottom: 4rem;
}

.joy-left {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

/* Flex container override for main columns */
/* Targeting the inline style div */
.container > div[style*="display:flex"] {
    display: grid !important;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.main-left {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Sidebar */
.main-right {
    background: var(--gradient-dark);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    position: sticky;
    top: 90px;
    border: 1px solid var(--primary);
    text-align: center;
    color: #fff;
}

.main-right b {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* =========================================
   7. Buttons (General CTA)
   ========================================= */
.btn-box {
    margin: 2rem 0;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--gradient-gold);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    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%);
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    color: #000;
}

.btn:hover::after {
    transform: translateX(0);
}

.btn:active {
    transform: scale(0.98);
}

/* =========================================
   8. Tables
   ========================================= */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: #12151d;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

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

th {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* =========================================
   9. Footer
   ========================================= */
footer {
    background: #050608;
    padding: 3rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.menu-fo {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

/* =========================================
   10. Components (Scroll to top, etc)
   ========================================= */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--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.5);
    transition: var(--transition-fast);
}

#scroller:hover {
    transform: translateY(-5px);
    background: #fff;
}

.b-top-but {
    font-size: 0; /* Hide text, maybe add icon via pseudo element */
}

#scroller::before {
    content: '↑';
    font-size: 1.5rem;
    color: #000;
    font-weight: bold;
}

/* Form Styles (Generic as per requirement) */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: #fff;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

/* =========================================
   11. Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .container > div[style*="display:flex"] {
        grid-template-columns: 1fr; /* Stack main and sidebar */
    }

    .main-right {
        order: -1; /* Sidebar on top or keep bottom depending on strategy. Let's keep default (bottom) or move up */
        margin-bottom: 2rem;
        position: static;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .menn {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .men3, .men4 {
        flex: 1;
        min-width: 120px;
        font-size: 0.8rem;
    }

    .main-left {
        padding: 1.5rem;
    }

    .joy-left {
        padding: 1.5rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .btn {
        width: 100%;
    }
}
