/* CSS Variables for Light Theme */
:root {
    --bg-main: #f4f5f7;
    --bg-white: #ffffff;
    --header-bg: #1a1a1a;
    --text-main: #333333;
    --text-light: #666666;
    --accent-green: #00c74d;
    --accent-green-hover: #00a841;
    --accent-yellow: #ffb800;
    --accent-yellow-hover: #e5a500;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Typography */
h1, h2, h3 {
    color: #111;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-login {
    background-color: var(--accent-yellow);
    color: #111;
}

.btn-login:hover {
    background-color: var(--accent-yellow-hover);
}

.btn-register {
    background-color: var(--accent-green);
    color: #fff;
}

.btn-register:hover {
    background-color: var(--accent-green-hover);
}

/* Header */
.site-header {
    background-color: var(--header-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-menu ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-menu a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: var(--accent-yellow);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

/* Slider */
.promo-slider {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
    background: var(--bg-white);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* Game Categories */
.game-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 25px 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-decoration: none;
    gap: 15px;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-yellow);
}

.category-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: var(--transition);
    mix-blend-mode: multiply;
}

.category-item:hover .category-icon {
    transform: scale(1.15);
}

.category-label {
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
    text-align: center;
    font-size: 15px;
}

.category-item:hover .category-label {
    color: var(--accent-yellow);
}

/* Slots Block */
.slots-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-yellow);
    padding-left: 10px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 2%;
}

.slot-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.slot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.slot-image-link {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.slot-image-link img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.slot-card:hover .slot-image-link img {
    transform: scale(1.05);
}

.slot-actions {
    display: flex;
    gap: 10px;
    text-align: center;
}

.btn-demo {
    flex: 1;
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-main);
}

.btn-demo:hover {
    background-color: var(--bg-main);
}

.btn-play {
    flex: 2;
    background-color: var(--accent-green);
    color: white;
}

.btn-play:hover {
    background-color: var(--accent-green-hover);
}

/* SEO Text Block */
.seo-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.content-wrapper p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.content-wrapper ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-light);
}

.content-wrapper ul li {
    margin-bottom: 8px;
}

/* Promo Code Block */
.promo-code-box {
    display: flex;
    align-items: center;
    background-color: #f0fdf4;
    border: 2px dashed var(--accent-green);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 25px 0;
    gap: 20px;
}

.promo-icon {
    width: 64px;
    height: 64px;
}

.promo-text h3 {
    color: var(--accent-green);
    margin-bottom: 5px;
}

.code-string {
    display: inline-block;
    background: var(--accent-yellow);
    color: #111;
    font-size: 20px;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 4px;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* SEO Table */
.seo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.seo-table th, .seo-table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

.seo-table th {
    background-color: var(--bg-main);
    font-weight: 600;
    color: var(--text-main);
}

.seo-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Footer */
.site-footer {
    background-color: #e9ecef;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d1d5db;
}

.payment-methods {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.pay-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    mix-blend-mode: multiply;
}

.pay-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

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

.footer-license {
    text-align: center;
    color: #777;
    font-size: 12px;
}

.footer-license p {
    margin-bottom: 10px;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    bottom: -100%;
    right: 20px;
    width: 350px;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
}

.cookie-modal.show {
    bottom: 20px;
}

.cookie-content p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.cookie-content button {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .game-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .seo-content {
        padding: 20px;
    }

    .promo-code-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .slots-grid {
        grid-template-columns: 1fr;
    }
    
    .slot-actions {
        flex-direction: column;
    }
    
    .cookie-modal {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Inner page styles */
/* -----------------------------------
   NEW STYLES FOR INTERNAL SLOT PAGE 
------------------------------------ */

.page-inner-container {
/*    padding-top: 30px;*/
    padding-bottom: 40px;
}

/* --- Slot Player Area --- */
.slot-player-area {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-top: 30px;
}

/* Pseudo-fullscreen state */
.slot-player-area.is-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    z-index: 9999;
    aspect-ratio: auto;
}

/* Slot Cover View */
.slot-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slot-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: blur(2px) brightness(0.7);
    transition: filter 0.3s ease;
}

.slot-cover:hover .slot-bg-image {
    filter: blur(0px) brightness(0.8);
}

.slot-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    border-left: 4px solid var(--accent-yellow);
    backdrop-filter: blur(4px);
}

.slot-center-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 20px;
}

.btn-demo-large, .btn-play-large {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.3s ease;
}

.btn-demo-large {
    background-color: var(--bg-white);
    color: var(--header-bg);
    border: none;
}

.btn-demo-large:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.btn-play-large {
    background-color: var(--accent-green);
    color: #fff;
    border: none;
}

.btn-play-large:hover {
    background-color: var(--accent-green-hover);
    transform: scale(1.05);
}

/* Iframe View */
.slot-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: #111;
}

#gameIframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Controls Overlay */
.slot-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.btn-control {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: var(--radius-md);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.btn-control:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.btn-close {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 1);
}

.btn-close:hover {
    background: rgba(220, 53, 69, 1);
    color: #fff;
    border-color: #fff;
}

.control-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

/* --- SEO Text Block / Typography --- */
.seo-text-block {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 40px;
}

.seo-text-block h1 {
    font-size: 32px;
    color: var(--header-bg);
    margin-bottom: 25px;
    border-left: 5px solid var(--accent-green);
    padding-left: 15px;
    line-height: 1.2;
}

.seo-text-block h2 {
    font-size: 26px;
    color: var(--header-bg);
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.seo-text-block h3 {
    font-size: 22px;
    color: var(--header-bg);
    margin: 25px 0 15px;
}

.seo-text-block h4 {
    font-size: 20px;
    color: var(--header-bg);
    margin: 20px 0 12px;
}

.seo-text-block h5 {
    font-size: 18px;
    color: var(--text-main);
    margin: 20px 0 10px;
}

.seo-text-block h6 {
    font-size: 16px;
    color: var(--text-main);
    margin: 15px 0 10px;
    font-style: italic;
}

.seo-text-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 18px;
}

.seo-text-block span {
    font-weight: 700;
    color: var(--accent-yellow-hover);
    background: rgba(255, 184, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.seo-text-block ul,
.seo-text-block ol {
    margin: 0 0 25px 25px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.seo-text-block ul li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.seo-text-block ol li {
    margin-bottom: 10px;
    list-style-type: decimal;
}

.seo-text-block ul li::marker {
    color: var(--accent-green);
}

.seo-text-block ol li::marker {
    color: var(--accent-yellow-hover);
    font-weight: bold;
}

.seo-text-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border-color);
}

.seo-text-block th,
.seo-text-block td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.seo-text-block th {
    background-color: var(--bg-main);
    font-weight: 700;
    color: var(--header-bg);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.seo-text-block tr:last-child td {
    border-bottom: none;
}

.seo-text-block tbody tr:hover {
    background-color: rgba(0, 199, 77, 0.05);
}

/* Responsive Inner Page */
@media (max-width: 768px) {
    .slot-center-actions {
        flex-direction: column;
        width: 80%;
        gap: 15px;
    }
    
    .btn-demo-large, .btn-play-large {
        width: 100%;
        text-align: center;
    }

    .slot-player-area {
        aspect-ratio: 4/3;
    }

    .seo-text-block {
        padding: 25px 15px;
    }

    .seo-text-block h1 {
        font-size: 26px;
    }

    .seo-text-block table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .slot-controls {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .btn-control {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .slot-badge {
        top: 10px;
        left: 10px;
        font-size: 14px;
        padding: 5px 10px;
    }
}

.slot-card span {
    display: block;
    margin-bottom: 8px;
    padding: 0 6px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;

    color: #2c2c2c;

    overflow: hidden;
    text-overflow: ellipsis;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}
.btn-demo-disabled {
    background: #bdbdbd !important;
    border-color: #bdbdbd !important;
    color: #ffffff !important;
    cursor: not-allowed;
    opacity: 0.85;
}
.btn-show-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 200px;
    min-height: 48px;
    padding: 14px 36px;

    background: linear-gradient(180deg, #ffd45a 0%, #f6b325 100%);
    color: #1b1b1b;

    border: 2px solid #f6b325;
    border-radius: 4px;

    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;

    box-shadow: 0 5px 14px rgba(246, 179, 37, 0.35);
    transition: 0.2s ease;
}

.btn-show-all:hover {
    background: linear-gradient(180deg, #ffe07a 0%, #ffbf2e 100%);
    border-color: #ffbf2e;
    color: #1b1b1b;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(246, 179, 37, 0.45);
}

.btn-show-all:active {
    transform: translateY(0);
}
.show-all-wrapper {
    display: flex;
    justify-content: center;
    margin: 28px 0 8px;
}
.pfbr-bonus-showcase {
    /*padding: 42px 0;*/
    /*background: #141414;*/
    color: #fff;
}

.pfbr-bonus-showcase__inner {
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 36px 40px;
    /*background: #1f1f1f;*/
    border-radius: 9px;
}

.pfbr-bonus-showcase__title {
    margin: 0 0 54px;
    padding-bottom: 14px;
    border-bottom: 1px solid #373737;
    color: #ffb000;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
}

.pfbr-bonus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.pfbr-bonus-card {
    position: relative;
    display: block;
    min-height: 216px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
/*    background: #111;*/
}

.pfbr-bonus-card--featured {
    border-radius: 15px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.pfbr-bonus-card img {
    width: 100%;
    height: 100%;
    min-height: 216px;
    display: block;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
/*    filter: brightness(.72);*/
}

.pfbr-bonus-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.22) 58%, rgba(0,0,0,.38) 100%),
            linear-gradient(0deg, rgba(0,0,0,.42), rgba(0,0,0,.04));
    z-index: 1;
}

.pfbr-bonus-card__badge {
    position: absolute;
    top: 15px;
    left: 13px;
    z-index: 3;
    padding: 8px 13px;
    border-radius: 999px;
    background: #ffbc27;
    color: #000;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

.pfbr-bonus-card__content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 36px;
    z-index: 2;
}

.pfbr-bonus-card__content h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 29px;
    line-height: .95;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(0,0,0,.85);
}

.pfbr-bonus-card__content p {
    margin: 0;
    max-width: 290px;
    color: #fff;
    font-size: 19px;
    line-height: 1.22;
    font-weight: 700;
    text-shadow: 1px 1px 0 rgba(0,0,0,.8);
}

.pfbr-bonus-card:hover img {
    transform: scale(1.05);
    filter: brightness(.86);
}

@media (max-width: 900px) {
    .pfbr-bonus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pfbr-bonus-showcase__title {
        margin-bottom: 32px;
        font-size: 28px;
    }
}

@media (max-width: 580px) {
    .pfbr-bonus-showcase__inner {
        width: min(100% - 24px, 1080px);
        padding: 26px 16px 28px;
    }

    .pfbr-bonus-grid {
        grid-template-columns: 1fr;
    }

    .pfbr-bonus-card,
    .pfbr-bonus-card img {
        min-height: 205px;
    }

    .pfbr-bonus-card__content h3 {
        font-size: 25px;
    }

    .pfbr-bonus-card__content p {
        font-size: 17px;
    }
}