
/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --bg-body: #0b0d14;
    --bg-card: #161925;
    --bg-nav: #1c2030;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #ff5f2e;
    --primary-dark: #e04010;
    --accent: #ffd700;
    --success: #10b981;
    --danger: #ef4444;
    --border-color: #2d3748;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #ff5f2e 0%, #ff0f7b 100%);
    --grad-gold: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --grad-dark: linear-gradient(180deg, rgba(22, 25, 37, 0) 0%, rgba(11, 13, 20, 0.9) 100%);

    /* Typography */
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --h1-size: clamp(1.5rem, 5vw, 2.5rem);
    --h2-size: clamp(1.25rem, 4vw, 2rem);

    /* Spacing & sizing */
    --container-width: 1200px;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(255, 95, 46, 0.3);
}

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

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

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

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

ul, ol {
    list-style: none;
}

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

/* =========================================
   2. GRID SYSTEM & UTILITIES (Bootstrap-like simulation)
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
}
.no-gutters > .col, .no-gutters > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

.col, [class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.d-inline-block { display: inline-block !important; }

/* Spacing Utilities */
.pt-5 { padding-top: 0.3125rem; }
.pt-10 { padding-top: 0.625rem; }
.pb-10 { padding-bottom: 0.625rem; }
.pt-20 { padding-top: 1.25rem; }
.pb-20 { padding-bottom: 1.25rem; }
.pb-30 { padding-bottom: 1.875rem; }
.offset-3 { margin-left: 25%; }

/* Responsive Grid & Utilities */
@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .text-md-left { text-align: left !important; }
    .text-md-right { text-align: right !important; }
    .pb-md-0 { padding-bottom: 0 !important; }
    .pt-md-0 { padding-top: 0 !important; }
    .d-md-block { display: block !important; }
}

@media (min-width: 992px) {
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
}

/* Visibility classes */
.d-none { display: none !important; }
.hide { display: none !important; } /* Script logic */

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.heder {
    background-color: rgba(11, 13, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.logo {
    display: inline-block;
    width: 150px;
    height: 50px;
    background: url('/path/to/logo.png') no-repeat center/contain; /* Fallback if img missing */
    background-color: var(--text-main); /* Placeholder visual */
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30"><text y="25" font-size="25" font-weight="bold">AZINO</text></svg>') no-repeat center/contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30"><text y="25" font-size="25" font-weight="bold">AZINO</text></svg>') no-repeat center/contain;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.5em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    border: none;
    outline: none;
    letter-spacing: 0.05em;
}

.btn-defolt {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-defolt:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-regist {
    background: var(--grad-primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-regist:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 95, 46, 0.5);
}

.open-menu {
    width: 40px;
    height: 40px;
    position: relative;
    background: transparent;
    border: 1px solid var(--border-color);
}
.open-menu::before, .open-menu::after {
    content: '';
    position: absolute;
    left: 25%;
    width: 50%;
    height: 2px;
    background: #fff;
    transition: transform 0.3s;
}
.open-menu::before { top: 35%; }
.open-menu::after { bottom: 35%; }

/* Navigation Bar */
.navigation {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
}

.navigation-bg {
    justify-content: center;
}

.navigation .item {
    text-align: center;
    padding: 0;
}

.navigation a {
    display: block;
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.navigation .item.activ a,
.navigation a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.navigation .item.activ a::after,
.navigation a:hover::after {
    transform: scaleX(1);
}

/* =========================================
   4. BANNERS & NOTIFICATIONS
   ========================================= */
.pre-header-dovnload {
    background: rgba(45, 55, 72, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
}

.pre-header-dovnload .text-box {
    font-size: 0.9rem;
    color: var(--text-main);
}

.button_pp {
    position: relative;
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg fill='%23fff' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Banner Slider Fallback styling */
.owl-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.owl-carousel .item {
    min-width: 100%; /* Or 300px for card slider */
    background: var(--bg-card);
    height: 300px; /* Placeholder height */
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--grad-dark), url('https://via.placeholder.com/1200x400/161925/ffffff?text=Casino+Banner');
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    position: relative;
}

.owl-carousel .item .btn {
    font-size: 1.25rem;
    padding: 1em 2.5em;
    background: var(--grad-primary);
    border: none;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* =========================================
   5. WINNERS TICKER & GAMES HEADER
   ========================================= */
.main_menu_winners {
    background: var(--bg-card);
    margin-top: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cifra {
    background: #000;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0.2rem 0.4rem;
    margin: 0 1px;
    border-radius: 2px;
    box-shadow: inset 0 0 5px rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 5px var(--accent);
}

.brecpoint {
    font-size: 1.5rem;
    color: var(--text-muted);
    padding: 0 2px;
}

.valuta {
    color: #fff;
    font-weight: bold;
    margin-left: 0.5rem;
    text-transform: uppercase;
}
.valuta.rubeli::after { content: 'RUB'; }

.games_header {
    padding: 2rem 0;
}

.games_header .item a {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 2rem;
    border: 1px solid transparent;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.games_header .item a:hover {
    border-color: var(--primary);
    background: rgba(255, 95, 46, 0.1);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 95, 46, 0.2);
}

/* =========================================
   6. GAMES GRID
   ========================================= */
.games_list .item {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Simulate Game Image Placeholder since none provided in HTML */
.games_list .item::before {
    content: '';
    display: block;
    width: 100%;
    height: 150px;
    background: linear-gradient(45deg, #2d3748, #1a202c);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    background-size: cover;
}

.games_list .item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--primary);
}

.games_list .title {
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.games_list .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    padding: 0.5em;
}

.plau-game {
    background: var(--success);
    color: #fff;
    border: none;
}
.plau-game:hover {
    background: #059669;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.plau-demo {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}
.plau-demo:hover {
    border-color: #fff;
    color: #fff;
}

/* Item-none handling for "Show All" logic */
.item-none {
    display: none;
}
.games_list .item-none.active { /* If JS toggles class */
    display: block; 
}
/* But the JS toggles remove class, so CSS handles base state */

.btn-game-color {
    background: var(--bg-nav);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 1rem 3rem;
    border-radius: 2rem;
}
.btn-game-color:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =========================================
   7. MAIN CONTENT & TYPOGRAPHY
   ========================================= */
.main_content {
    padding: 3rem 0;
    color: #cbd5e1;
}

h1 {
    font-size: var(--h1-size);
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

h2, .h2 {
    font-size: var(--h2-size);
    color: #fff;
    margin: 2rem 0 1rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

p {
    margin-bottom: 1.25rem;
}

blockquote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

table tr:last-child td { border-bottom: none; }
table tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.02); }
table td:first-child { 
    font-weight: bold; 
    color: var(--text-muted); 
    width: 30%;
}

/* Subscribe Form */
.content-form {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.form-box {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    width: 100%;
    min-width: 250px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 95, 46, 0.2);
}

.form-group-submit .btn {
    height: 100%;
    padding: 0.8rem 2rem;
}

/* FAQ Section */
#faq {
    margin-top: 3rem;
}

#faq h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

#faq .item {
    background: var(--bg-card);
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

#faq .question {
    display: block;
    padding: 1.25rem;
    font-size: 1.1rem;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
    position: relative;
    padding-right: 3rem;
    transition: background var(--transition-fast);
}

#faq .question:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary);
}

#faq .question::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 1.5rem;
}

#faq .question:not(.hide)::after {
    content: '-';
}

#faq .answer {
    padding: 1.25rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   8. FOOTER
   ========================================= */
.footer {
    background: #050608;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    margin-bottom: 2rem;
}

.footer .title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer span {
    color: var(--accent);
    font-weight: 600;
    margin-right: 0.5rem;
}

/* =========================================
   9. MOBILE ADAPTATION
   ========================================= */
@media (max-width: 768px) {
    .header .logo {
        width: 120px;
    }
    
    .header .right {
        margin-top: 1rem;
    }

    .pre-header-dovnload {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .navigation-bg {
        flex-direction: column;
    }

    .navigation .item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    /* Simulate open menu script interaction */
    .navigation.hide {
        display: none;
    }

    .games_list .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-box {
        flex-direction: column;
    }
    
    .form-control {
        width: 100%;
    }

    table, tbody, tr, td {
        display: block;
        width: 100%;
    }
    
    table td:first-child {
        width: 100%;
        background: rgba(255,255,255,0.05);
        border-bottom: none;
    }
    
    table td {
        padding: 0.75rem;
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    
    table td:not(:first-child)::before {
        content: attr(data-label); /* Requires JS or manually added data attr, styling fallback */
        position: absolute;
        left: 0.75rem;
        font-weight: bold;
    }

    .footer {
        text-align: center;
    }
}
