/* ==========================================================================
   KAZEENO CASINO - CYBER SPIN WEB-APP ARCHITECTURE
   Based on User Master Template: Mobile First, Neon Cyberpunk Palette
   ========================================================================== */

:root {
    --bg-main: #0a0c14;
    --bg-card: #141824;
    --bg-card-hover: #1e2436;
    --accent-green: #00ff87;
    --accent-purple: #7928ca;
    --accent-gold: #ffb800;
    --accent-red: #ff3366;
    --accent-cyan: #00f0ff;
    --text-main: #ffffff;
    --text-muted: #848e9c;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --bottom-nav-height: 65px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    padding-bottom: calc(var(--bottom-nav-height) + 30px);
    overflow-x: hidden;
    line-height: 1.5;
}

.kzn-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Хедер */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 12, 20, 0.88);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-green), #60efff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border: none;
    outline: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-outline:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), #00b862);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.35);
}

.btn-primary:active {
    transform: scale(0.96);
}

/* Хлебные крошки */
.breadcrumbs-wrap {
    padding: 10px 18px;
    font-size: 12px;
    background: rgba(20, 24, 36, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.breadcrumbs-list {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs-list a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs-list a:hover {
    color: var(--accent-green);
}

.breadcrumbs-list li.current {
    color: var(--text-main);
    font-weight: 600;
}

/* Баннер (Hero) */
.hero {
    padding: 16px 18px;
}

.hero-banner {
    background: linear-gradient(135deg, #2b0b4a, #110d2c);
    border: 1px solid rgba(121, 40, 202, 0.45);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    background-size: cover;
    background-position: center;
}

.hero-banner-media {
    margin-top: 18px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: #000;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
    color: #fff;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
}

.direct-answer-box {
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--accent-green);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* Джекпот тикер */
.jackpot-box {
    margin: 0 18px 16px;
    background: linear-gradient(90deg, #181d2f, #221430);
    border: 1px solid rgba(255, 184, 0, 0.35);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.jackpot-label {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.jackpot-val {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(255, 184, 0, 0.4);
}

/* Категории со свайпом */
.categories {
    display: flex;
    gap: 8px;
    padding: 0 18px 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 9px 16px;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.cat-chip:hover,
.cat-chip.active {
    background: rgba(0, 255, 135, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Сетка игр */
.games-section {
    padding: 0 18px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.see-all {
    font-size: 12px;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-green);
}

.game-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1e2436;
    overflow: hidden;
}

.game-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumb-img {
    transform: scale(1.06);
}

.game-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.badge-hot {
    background: var(--accent-red);
    color: #fff;
}

.badge-new {
    background: var(--accent-green);
    color: #000;
}

.game-details {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.game-name {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.game-provider {
    font-size: 11px;
    color: var(--text-muted);
}

/* Контентные секции, таблицы и калькулятор */
.content-section {
    padding: 0 18px;
    margin-bottom: 24px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
    margin: 14px 0;
}

.kzn-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.kzn-data-table th,
.kzn-data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kzn-data-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-weight: 700;
}

/* Интерактивный калькулятор вейджера */
.calc-module {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.15), rgba(20, 24, 36, 0.95));
    border: 1px solid rgba(0, 255, 135, 0.3);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 24px;
}

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.calc-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.calc-field input,
.calc-field select {
    width: 100%;
    background: rgba(10, 12, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    outline: none;
}

.calc-field input:focus,
.calc-field select:focus {
    border-color: var(--accent-green);
}

.calc-output {
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
}

.calc-output-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-green);
}

/* FAQ Аккордеоны */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.faq-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-box summary {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-box summary::-webkit-details-marker {
    display: none;
}

.faq-box summary::after {
    content: "+";
    color: var(--accent-green);
    font-size: 18px;
    font-weight: 900;
}

.faq-box[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 16px 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Футер */
.footer {
    margin-top: 30px;
    padding: 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    background: rgba(10, 12, 20, 0.95);
}

.badges-18 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    color: var(--accent-red);
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 12px;
}

.footer-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 14px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
}

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

.footer-nav a:hover {
    color: var(--accent-green);
}

/* Нижний мобильный таб-бар */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(14, 17, 26, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    width: 20%;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item.active {
    color: var(--accent-green);
}

.nav-item.deposit-btn {
    position: relative;
    top: -12px;
}

.nav-circle {
    background: linear-gradient(135deg, var(--accent-green), #00b862);
    color: #000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 255, 135, 0.4);
    border: 3px solid var(--bg-main);
}

.nav-circle svg {
    stroke: #000;
}

@media (max-width: 600px) {
    .calc-inputs {
        grid-template-columns: 1fr;
    }
}

/* Мета-информация о проверке и дате выхода страницы */
.meta-publish-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-divider {
    opacity: 0.4;
}

.meta-publish-info time.dyn-date {
    color: var(--accent-green);
    font-weight: 700;
}
