
/* =========================================
   1. CSS Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --c-primary: #ffc107; /* Gold/Yellow for CTA */
    --c-primary-hover: #ffca2c;
    --c-secondary: #0d6efd; /* Blue for trust/info */
    --c-accent: #e74c3c; /* Red for alerts */
    
    --c-bg-body: #0f1115; /* Deep dark background */
    --c-bg-card: #1c1f26; /* Slightly lighter for cards */
    --c-bg-darker: #08090b; /* Header/Footer */
    
    --c-text-main: #ffffff;
    --c-text-muted: #a0a5b1;
    --c-text-dark: #1a1a1a;
    
    --c-border: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --fw-regular: 400;
    --fw-bold: 700;
    
    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 2rem;
    --sp-xl: 4rem;
    
    /* UI Elements */
    --radius-sm: 0.25rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px rgba(255, 193, 7, 0.3);
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

ul, ol {
    list-style: none;
    padding-left: var(--sp-md);
}

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

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

/* Override inline styles for H1 via !important to ensure design integrity */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #b4b4b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--sp-lg) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    border-left: 4px solid var(--c-primary);
    padding-left: var(--sp-sm);
    margin-top: var(--sp-lg);
    background: linear-gradient(90deg, rgba(255,193,7,0.1) 0%, transparent 100%);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

ul li, ol li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

ul li::before {
    content: "•";
    color: var(--c-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

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

.main {
    padding: var(--sp-md) 0;
    position: relative;
    z-index: 1;
}

/* Flex row fix for responsive - targeting inline style div */
div[style*="display:flex;flex-direction:row"],
div[style*="display:flex; flex-direction:row"] {
    gap: var(--sp-lg);
}

.joy-left, .main-left, .main-right {
    background: var(--c-bg-card);
    padding: var(--sp-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    margin-bottom: var(--sp-md);
    box-shadow: var(--shadow-card);
}

/* =========================================
   4. Header & Navigation
   ========================================= */
header {
    background-color: var(--c-bg-darker);
    padding: var(--sp-sm) 0;
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: url('https://placehold.co/150x40/ffc107/000000?text=CASINO+X') no-repeat center/contain; /* Fallback placeholder */
    transition: transform var(--trans-fast);
}

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

/* Mobile Header Logic */
header.mob {
    display: none;
}

.menn {
    display: flex;
    gap: var(--sp-xs);
    flex-wrap: wrap;
    justify-content: flex-end;
}

.men3, .men4 {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    text-align: center;
    transition: var(--trans-smooth);
}

/* Login Button style */
.men3 {
    background: transparent;
    border: 1px solid var(--c-primary);
    color: var(--c-primary);
}

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

/* Register Button style */
.men4 {
    background: linear-gradient(135deg, var(--c-primary) 0%, #ff9800 100%);
    color: var(--c-text-dark);
    box-shadow: var(--shadow-glow);
}

.men4:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.5);
}

/* =========================================
   5. Hero Section (Joyl-slide)
   ========================================= */
.joyl-slide {
    position: relative;
    min-height: 300px;
    background: linear-gradient(45deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.joyl-slide::after {
    content: "Welcome Bonus 200%";
    color: white;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 10;
    pointer-events: none;
}

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

.joyl-slide a.href {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
}

/* =========================================
   6. Components: Tables, Buttons, Forms
   ========================================= */

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--sp-md) 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

th {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--c-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

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

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(90deg, #e65c00 0%, #f9d423 100%);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(230, 92, 0, 0.4);
    transition: var(--trans-smooth);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn::before {
    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) scale(1.02);
    box-shadow: 0 8px 25px rgba(230, 92, 0, 0.6);
    color: #fff;
}

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

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

/* =========================================
   7. Footer
   ========================================= */
footer {
    background-color: var(--c-bg-darker);
    padding: var(--sp-lg) 0;
    margin-top: var(--sp-xl);
    border-top: 1px solid var(--c-border);
    text-align: center;
}

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

.footer-top a {
    color: var(--c-text-muted);
    transition: color var(--trans-fast);
}

.footer-top a:hover {
    color: var(--c-primary);
}

/* =========================================
   8. Scroll to Top Button
   ========================================= */
#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(--trans-smooth);
    opacity: 0.8;
}

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

.b-top-but {
    font-size: 0;
}

#scroller::after {
    content: '▲';
    font-size: 1.2rem;
    color: var(--c-text-dark);
}

/* =========================================
   9. Responsive Design
   ========================================= */
@media (max-width: 992px) {
    /* Collapse inline flex rows for tablet/mobile */
    div[style*="display:flex;flex-direction:row"],
    div[style*="display:flex; flex-direction:row"] {
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
    :root {
        --sp-md: 1rem;
        --sp-lg: 1.5rem;
    }
    
    header {
        display: none; /* Hide Desktop Header */
    }
    
    header.mob {
        display: block; /* Show Mobile Header */
        background: var(--c-bg-darker);
        padding: 0.8rem 0;
    }
    
    header.mob .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menn {
        flex: 1;
        justify-content: flex-end;
    }
    
    .men3, .men4 {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .joyl-slide {
        min-height: 200px;
        margin-top: var(--sp-sm);
    }
    
    .joyl-slide::after {
        font-size: 1.5rem;
    }

    /* Make tables scrollable on mobile */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .btn {
        width: 100%;
        display: block;
    }
    
    #scroller {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* =========================================
   10. Form Styles (Generic)
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--c-text-main);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    transition: var(--trans-fast);
    font-family: var(--font-main);
}

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

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

.joy-left, .main-left, .main-right {
    animation: fadeIn 0.6s ease-out forwards;
}
