/* ===== PIROTS 4 - COSMIC THEME ===== */
:root {
    --color-bg-dark: #0a0a1a;
    --color-bg-medium: #1a1a3a;
    --color-bg-light: #2a1a4a;

    --color-primary: #9d4edd;
    --color-primary-dark: #7b2cbf;
    --color-primary-light: #c77dff;

    --color-accent: #ffd700;
    --color-accent-dark: #daa520;
    --color-accent-light: #ffed4a;

    --color-cta: #ff6b35;
    --color-cta-dark: #e85a24;
    --color-cta-light: #ff8c5a;

    --color-white: #ffffff;
    --color-text: #e0e0ff;
    --color-text-muted: #a0a0c0;

    --color-success: #00d4aa;
    --color-info: #00b4d8;

    --gradient-bg: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #2a1a4a 100%);
    --gradient-primary: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    --gradient-cta: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Stars Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,215,0,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(157,78,221,0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,215,0,0.3), transparent);
    background-size: 200px 200px;
    pointer-events: none;
    z-index: -1;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.98) 0%, rgba(42, 26, 74, 0.98) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 4px 30px rgba(157, 78, 221, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

.logo-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-accent {
    color: var(--color-accent);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(157, 78, 221, 0.3);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.4);
}

.nav-link.active {
    background: rgba(157, 78, 221, 0.4);
    border-color: var(--color-primary);
}

/* Header Buttons */
.header-buttons {
    display: flex;
    gap: 12px;
}

.btn-login {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 25px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--color-primary);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

.btn-register {
    background: var(--gradient-cta);
    color: var(--color-white);
    border: none;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 25px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

/* Center CTA */
.center-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.btn-play {
    padding: 18px 46px;
    font-size: 16px;
    border-radius: 40px;
    background: linear-gradient(135deg, #ff7a3d, #ff4d1a);
    box-shadow:
        0 0 25px rgba(255,107,53,0.55),
        0 10px 30px rgba(0,0,0,0.35);
    letter-spacing: 1px;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow:
        0 0 35px rgba(255,107,53,0.75),
        0 12px 35px rgba(0,0,0,0.45);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--color-primary);
}

.mobile-nav {
    display: none;
    background: rgba(10, 10, 26, 0.98);
    padding: 20px;
    border-top: 1px solid var(--color-primary);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: block;
    color: var(--color-white);
    text-decoration: none;
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.3);
}

.mobile-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-primary);
}

.mobile-buttons a {
    flex: 1;
    text-align: center;
    padding: 15px;
    border-radius: 25px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .nav-menu,
    .header-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* ===== MAIN CONTENT ===== */
main {
    min-height: calc(100vh - 200px);
}

/* ===== SECTIONS ===== */
.section {
    width: 100%;
    padding: 40px 20px;
    margin: 0;
}

.section:nth-child(odd) {
    background: rgba(26, 26, 58, 0.5);
}

.section:nth-child(even) {
    background: rgba(42, 26, 74, 0.3);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Block styling */
.block {
    background: rgba(26, 26, 58, 0.6);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-white);
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.5);
    line-height: 1.3;
}

h1 span {
    color: var(--color-accent);
}

h2 {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: var(--color-white);
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
}

h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-accent);
}

p {
    margin-bottom: 18px;
    color: var(--color-text);
    line-height: 1.8;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
}

li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.7;
}

li::before {
    content: '🦜';
    position: absolute;
    left: 0;
    font-size: 14px;
}

/* ===== TABLES ===== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 15px;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: rgba(26, 26, 58, 0.8);
    border: 2px solid var(--color-primary);
    border-radius: 15px;
    overflow: hidden;
    animation: tableGlow 3s ease-in-out infinite;
}

@keyframes tableGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(157, 78, 221, 0.6), 0 0 60px rgba(255, 215, 0, 0.2);
    }
}

th {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 18px 16px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

td {
    padding: 16px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--color-text);
    font-size: 15px;
}

tr:hover td {
    background: rgba(157, 78, 221, 0.15);
}

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

/* ===== CTA BUTTONS ===== */
.btn-center {
    text-align: center;
    margin: 30px 0;
}

.btn-cta {
    display: inline-block;
    background: var(--gradient-cta);
    color: var(--color-white);
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 107, 53, 0.7);
}

.btn-cta-gold {
    background: var(--gradient-gold);
    color: var(--color-bg-dark);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.btn-cta-gold:hover {
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.7);
}

/* ===== IMAGES ===== */
.img-container {
    max-width: 900px;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    box-shadow: 0 10px 40px rgba(157, 78, 221, 0.4);
    text-align: center;
}

.img-container img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: auto;
    height: auto;
}

.img-box {
    max-width: 900px;
    margin: 30px auto;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    box-shadow: 0 10px 40px rgba(157, 78, 221, 0.4);
}

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

/* ===== FAQ SECTION ===== */
.faq-section {
    width: 100%;
    padding: 50px 20px;
    background: rgba(26, 26, 58, 0.6);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--color-white);
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
}

.faq-item {
    background: rgba(42, 26, 74, 0.6);
    border: 1px solid var(--color-primary);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-white);
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(157, 78, 221, 0.2);
}

.faq-icon {
    font-size: 28px;
    color: var(--color-accent);
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(10, 10, 26, 0.5);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer-inner {
    padding: 25px;
    border-top: 1px solid rgba(157, 78, 221, 0.3);
}

.faq-answer p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.8;
}

/* ===== TOC ===== */
.toc-wrapper {
    margin: 25px 0;
}

.toc-toggle {
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(157, 78, 221, 0.4);
}

.toc-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(157, 78, 221, 0.6);
}

.toc {
    background: rgba(26, 26, 58, 0.8);
    border: 2px solid var(--color-primary);
    border-radius: 15px;
    margin-top: 20px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.toc.is-collapsed {
    max-height: 0;
    padding: 0;
}

.toc:not(.is-collapsed) {
    max-height: 1000px;
    padding: 25px;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
}

.toc li {
    padding-left: 0;
    margin-bottom: 12px;
}

.toc li::before {
    display: none;
}

.toc a {
    color: var(--color-primary-light);
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toc a:hover {
    background: rgba(157, 78, 221, 0.3);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .toc ul {
        columns: 1;
    }
}

/* ===== BACK TO TOP ===== */
.toc-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(157, 78, 221, 0.5);
    z-index: 999;
}

.toc-back-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.toc-back-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(157, 78, 221, 0.7);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.98) 0%, rgba(26, 26, 58, 0.98) 100%);
    color: var(--color-white);
    padding: 50px 20px 30px;
    border-top: 2px solid var(--color-primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.3);
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-accent);
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 10px;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-badges {
    display: flex;
    gap: 15px;
}

.badge-18,
.badge-gambling {
    background: rgba(157, 78, 221, 0.3);
    border: 2px solid var(--color-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.badge-18 {
    color: var(--color-cta);
}

.badge-gambling {
    color: var(--color-success);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-disclaimer {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
}

.footer-legal {
    font-size: 12px !important;
    opacity: 0.7;
}

.logofooter {
    display: flex;
    align-content: center;
    align-items: center;
    gap: 15px;
    padding-bottom: 25px;
    justify-content: center;
}

.logoft {
    max-height: 50px;
    margin: 0 !important;
}

/* ===== INFO BOXES ===== */
.info-box {
    background: rgba(157, 78, 221, 0.15);
    border: 2px solid var(--color-primary);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
}

.info-box-gold {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--color-accent);
}

.warning-box {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid var(--color-cta);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
}

/* ===== STEP LIST ===== */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.step-list li {
    counter-increment: step-counter;
    padding-left: 55px;
    position: relative;
    margin-bottom: 20px;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

/* ===== FEATURE CARDS ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: rgba(42, 26, 74, 0.6);
    border: 2px solid var(--color-primary);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.4);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--color-white);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ===== GLOBAL IMAGE CENTERING ===== */
img,
a img,
p img,
div img,
figure img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    .section {
        padding: 30px 15px;
    }

    .block {
        padding: 20px 15px;
    }

    .btn-cta {
        padding: 15px 35px;
        font-size: 16px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-buttons {
        flex-direction: column;
    }

    .mobile-buttons a {
        width: 100%;
    }

    .img-container,
    .img-box {
        margin: 20px auto;
        border-radius: 16px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq-answer-inner {
        padding: 18px;
    }

    .toc-back-top {
        width: 48px;
        height: 48px;
        right: 15px;
        bottom: 15px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    h1 {
        font-size: 22px;
    }

    .table-wrapper {
        margin: 15px -15px;
        padding: 0 15px;
    }

    th,
    td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .img-container,
    .img-box {
        border-width: 2px;
        border-radius: 14px;
    }

    .btn-cta {
        width: 100%;
        max-width: 100%;
        padding: 14px 18px;
        font-size: 15px;
    }
}

/* Bootstrap overrides for dark theme */
.navbar {
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.98) 0%, rgba(42, 26, 74, 0.98) 100%) !important;
}

.navbar-light .navbar-brand,
.navbar-light .nav-link {
    color: var(--color-white) !important;
}

.bg-dark {
    background: var(--gradient-bg) !important;
}

.text-white {
    color: var(--color-white) !important;
}
