body {
    font-family: 'Inter', sans-serif !important;
}

:root {

    --color-primary: #bc13fe;

    --color-primary-hover: #d25aff;

    --color-secondary: #ffffff;

    --color-bg-main: #050505;

    --color-bg-card: #121212;

    --color-bg-card-hover: #1a1a1a;

    --color-text-main: #ffffff;
    --color-text-muted: #a3a3a3;

    --color-border: #2a2a2a;
    --shadow-primary: 0 0 20px rgba(188, 19, 254, 0.3);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);

    --neon-cyan: #00f3ff;
    --neon-magenta: #ff00ff;
    --neon-yellow: #f3ef00;
    --neon-purple: #df80ff; 
    --cyber-glow-cyan: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.2);
    --cyber-glow-magenta: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 20px rgba(255, 0, 255, 0.2);
    --cyber-glow-purple: 0 0 10px rgba(188, 19, 254, 0.5), 0 0 20px rgba(188, 19, 254, 0.2);
}

.glass {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.text-primary {
    color: var(--color-primary);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;

    scrollbar-width: none;

}

.text-gray-500 {
    color: #a3a3a3 !important; 
}

.text-gray-600 {
    color: #949494 !important; 
}

.neon-text-purple {
    color: var(--neon-purple) !important;
    text-shadow: 0 0 8px rgba(var(--neon-purple-rgb, 223, 128, 255), 0.6);
}

.main-layout {
    display: flex;
    justify-content: center;
    gap: 1.5rem; 
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 6rem; 
    padding-bottom: 3rem; 
    width: 100%;
    max-width: 1700px; 
    margin: 0 auto;
}

.main-content {
    flex: 1;
    max-width: 1200px; 
    width: 100%;
    min-width: 0;
}

.main-content-space>*+* {
    margin-top: 4rem;

}

.page-title {
    font-size: 1.875rem;

    line-height: 1.25;
    font-weight: 900;

    color: var(--color-text-main);
    letter-spacing: -0.025em;

    text-shadow: 0 0 10px rgba(188, 19, 254, 0.5);

}

@media (min-width: 768px) {
    .page-title {
        font-size: 3rem;

    }
}

.page-description {
    color: var(--color-text-muted);
    font-size: 1.125rem;

    line-height: 1.625;

    max-width: 48rem;

}

@media (min-width: 768px) {
    .page-description {
        font-size: 1.25rem;

    }
}

.btn-category {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-radius: 0.5rem;

    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding: 0.75rem 1rem;

    background-color: var(--color-bg-card);
    font-size: 0.875rem;

    font-weight: 500;
    color: var(--color-text-main);
    min-width: 200px;
    transition: all 0.2s ease;
}

.btn-category:hover {
    background-color: var(--color-bg-card-hover);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
}

.btn-hero {
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;

    border-radius: 9999px;

    font-size: 1.125rem;

    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
}

.btn-hero:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.6);
}

.btn-cyber {
    position: relative;
    padding: 0.6rem 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .btn-cyber {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

.btn-cyber-purple {
    background: var(--neon-purple);
    box-shadow: var(--cyber-glow-purple);
}

.btn-cyber-purple:hover {
    background: #d25aff;
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.8);
    transform: scale(1.05);
}

.btn-cyber-cyan {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: var(--cyber-glow-cyan);
}

.btn-cyber-cyan:hover {
    background: #5ff9ff;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
    transform: scale(1.05);
}

.btn-cyber-outline {
    border: 1px solid var(--neon-purple);
    background: rgba(188, 19, 254, 0.1);
    backdrop-filter: blur(5px);
}

.btn-cyber-outline:hover {
    background: rgba(188, 19, 254, 0.2);
    border-color: #d25aff;
    box-shadow: var(--cyber-glow-purple);
}

.cyber-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;

}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(188, 19, 254, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.cyber-card:hover::before {
    transform: translateX(100%);
}

.modal-overlay .cyber-card {
    overflow: hidden;
}

.popular-categories-grid .cyber-card {
    overflow: hidden;
}

.casino-best-grid .cyber-card {
    overflow: hidden;
}

#top-slots-nav .cyber-card,
#all-games-nav .cyber-card {
    overflow: hidden;
}

.cyber-card-purple:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.6), inset 0 0 20px rgba(188, 19, 254, 0.2);
    background: rgba(18, 18, 18, 0.8);

}

.cyber-card-cyan:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6), inset 0 0 20px rgba(0, 243, 255, 0.2);
    background: rgba(18, 18, 18, 0.8);

}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 8px rgba(var(--neon-purple-rgb, 188, 19, 254), 0.6);
}

.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}

.nav-cyber-link {
    position: relative;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    padding: 0.5rem 0.25rem;
}

.nav-cyber-link:hover,
.nav-cyber-link.is-current {
    color: #fff;
    text-shadow: 0 0 10px rgba(188, 19, 254, 0.8), 0 0 20px rgba(188, 19, 254, 0.4);
}

.nav-cyber-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-purple);
    box-shadow: 0 0 8px var(--neon-purple);
    transition: width 0.3s ease;
}

.nav-cyber-link:hover::after,
.nav-cyber-link.is-current::after {
    width: 100%;
}

.nav-cyber-link.active-cyan:hover,
.nav-cyber-link.active-cyan.is-current {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8), 0 0 20px rgba(0, 243, 255, 0.4);
}

.nav-cyber-link.active-cyan::after {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.nav-cyber-link.active::after {
    background: var(--neon-purple);
    box-shadow: 0 0 8px var(--neon-purple);
}

.hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: 1rem;

    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.card-base {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0;

    transition: all 0.3s ease;
}

.card-base:hover {
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.15);
    background-color: var(--color-bg-card-hover);
    transform: translateY(-5px);
    z-index: 10;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;

    font-weight: 700;
    color: var(--color-text-main);
    border-left: 4px solid var(--color-primary);
    padding-left: 0.75rem;
}

.sidebar-banner {
    display: none;
    width: 180px; 
    flex-shrink: 0;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 6rem;
    height: fit-content;
    align-self: flex-start;
}

.sidebar-banner.has-ad-dismiss {
    position: sticky;
}

.sidebar-banner.is-ad-dismissed {
    display: none !important;
}

.ad-dismiss-btn {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.85);
    color: #d1d5db;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-dismiss-btn:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(17, 17, 17, 0.95);
}

@media (min-width: 1280px) {

    .sidebar-banner {
        display: flex;
    }
}

.btn-filter,
.btn-filter-absolute {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    background-color: var(--color-bg-card);
    padding: 0.5rem 1rem;

    border-radius: 0.5rem;

    font-size: 0.875rem;

    transition: all 0.15s ease-in-out;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-filter:hover,
.btn-filter-absolute:hover {
    background-color: var(--color-bg-card-hover);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-filter-absolute {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
}

@media (min-width: 768px) {
    .btn-filter-absolute {
        display: flex;
    }
}

.rich-editor-content p {
    margin: 0 0 0.9rem;
}

.rich-editor-content p:last-child {
    margin-bottom: 0;
}

.rich-editor-content ul,
.rich-editor-content ol {
    margin: 0.75rem 0 1rem;
    padding-left: 1.4rem;
}

.rich-editor-content ul {
    list-style: disc;
}

.rich-editor-content ol {
    list-style: decimal;
}

.rich-editor-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.rich-editor-content li::marker {
    color: var(--neon-purple);
    font-weight: 700;
}

.rich-editor-content ul ul,
.rich-editor-content ol ol,
.rich-editor-content ul ol,
.rich-editor-content ol ul {
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
}

.rich-editor-content h1,
.rich-editor-content h2,
.rich-editor-content h3,
.rich-editor-content h4 {
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.25;
    margin: 1rem 0 0.7rem;
}

.rich-editor-content blockquote {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--neon-purple);
    background: rgba(188, 19, 254, 0.08);
    color: #d9d9d9;
    font-style: italic;
    border-radius: 0.5rem;
}

.rich-editor-content a {
    color: var(--neon-cyan);
    text-decoration: underline;
    text-decoration-color: rgba(0, 243, 255, 0.6);
}

.rich-editor-content a:hover {
    color: #7ff8ff;
}

.search-modal-overlay {
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 70px !important;
    padding-bottom: 20px !important;
    overflow: hidden !important;
}

.search-modal-card {
    position: relative;
    width: min(96vw, 640px);
    max-height: 82vh;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b0d12;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    padding: 14px;
}

.search-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(188, 19, 254, 0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.search-modal-card:hover::before {
    transform: translateX(100%);
}

.search-modal-card > * {
    position: relative;
    z-index: 1;
}

.search-modal-head {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #0b0d12;
}

.search-input-wrap {
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #7aa9dc;
    pointer-events: none;
    transition: color 0.2s ease;
}

.search-input {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(0, 243, 255, 0.28);
    background: linear-gradient(180deg, rgba(10, 18, 34, 0.96) 0%, rgba(9, 16, 28, 0.96) 100%) !important;
    color: #e8f8ff !important;
    padding: 0 78px 0 42px;
    outline: none;
    box-shadow: none;
    font-size: 16px;
}

.search-input::placeholder {
    color: #7fb4df !important;
    opacity: 1;
}

.search-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 243, 255, 0.2), 0 0 16px rgba(255, 0, 255, 0.2);
}

.search-input-wrap:focus-within .search-input-icon {
    color: #eec8ff;
}

.search-cancel-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9cefff;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.search-cancel-btn:hover {
    color: #ffbbff;
}

.search-input-wrap:focus-within .search-cancel-btn {
    color: #ffd5ff;
}

.search-category-tabs {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
}

.search-results {
    margin-top: 10px;
    overflow-y: auto;
    max-height: calc(82vh - 150px);
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.search-results::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-tab-btn {
    border: 1px solid rgba(0, 243, 255, 0.28);
    background: rgba(0, 243, 255, 0.08);
    color: #b9f7ff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.search-tab-btn:hover {
    border-color: rgba(255, 0, 255, 0.55);
    background: rgba(255, 0, 255, 0.14);
    color: #ffd9ff;
}

.search-tab-btn.is-active {
    color: #ecfbff;
    border-color: rgba(0, 243, 255, 0.7);
    background: rgba(0, 243, 255, 0.22);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.25);
}

.search-group + .search-group {
    margin-top: 12px;
}

.search-group-title {
    padding-left: 2px;
    color: #8da2c5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 68px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: background-color .2s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.search-result-logo {
    width: 84px;
    height: 52px;
    min-width: 84px;
    flex: 0 0 84px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    border-radius: 10px;
}

.search-result-fallback {
    color: #8da2c5;
    font-size: 11px;
    font-weight: 700;
}

.search-result-meta {
    min-width: 0;
    flex: 1;
}

.search-result-title {
    color: #eef4ff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    color: #9db0d3;
    font-size: 13px;
    line-height: 1.2;
    margin-top: 2px;
}

.search-result-rating {
    color: #d9e4fa;
    font-size: 13px;
    margin-top: 2px;
    font-weight: 600;
}

.search-empty {
    text-align: center;
    color: #8da2c5;
    padding: 28px 0;
    font-size: 14px;
}

.lh-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(90vw, 360px);
    pointer-events: none;
}

.lh-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(11, 13, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 4px solid #00f3ff;
    color: #e8f8ff;
    padding: 11px 12px;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
}

.lh-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lh-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.lh-toast-success {
    border-left-color: #00f3ff;
}

.lh-toast-error {
    border-left-color: #ff00ff;
}

.lh-toast-info {
    border-left-color: #7aa9dc;
}

.lh-toast-text {
    flex: 1;
}

.lh-toast-close {
    border: 0;
    background: transparent;
    color: #cfd8e6;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.lh-toast-close:hover {
    color: #ffffff;
}

.logo-sweep {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.logo-sweep::after {
    content: '';
    position: absolute;
    inset: -14% -44%;
    background: linear-gradient(105deg,
            transparent 35%,
            rgba(255, 0, 255, 0.10) 43%,
            rgba(255, 0, 255, 0.56) 50%,
            rgba(0, 243, 255, 0.34) 52%,
            rgba(255, 0, 255, 0.10) 58%,
            transparent 66%);
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.16) 14%,
            rgba(0, 0, 0, 0.72) 34%,
            #000 50%,
            rgba(0, 0, 0, 0.72) 66%,
            rgba(0, 0, 0, 0.16) 86%,
            transparent 100%);
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.16) 14%,
            rgba(0, 0, 0, 0.72) 34%,
            #000 50%,
            rgba(0, 0, 0, 0.72) 66%,
            rgba(0, 0, 0, 0.16) 86%,
            transparent 100%);
    transform: translateX(-135%);
    opacity: 0.18;
    animation: logo-sweep-loop 3.1s ease-in-out infinite alternate;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(0.25px);
}

@keyframes logo-sweep-loop {
    0% {
        transform: translateX(-145%);
        opacity: 0.18;
    }

    12% {
        opacity: 1;
    }

    88% {
        opacity: 1;
    }

    100% {
        transform: translateX(145%);
        opacity: 0.18;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-sweep::after {
        animation: none;
    }
}
