/*
Theme Name: Jackstone
Theme URI: https://example.com/jackstone
Author: dimitrismichalakis.com
Author URI: https://dimitrismichalakis.com
Description: Casino reviews & affiliate theme with custom post type, listings, FAQ, info table and full color customization. Uses Secure Custom Fields plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jackstone
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1a1a1a;
    background: #ffffff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
/* Safety padding when viewport is narrower than max-width */
@media (max-width: 1199px) {
    .container { padding: 0 24px; }
}

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid #ececec;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}
.site-logo {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.site-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 4px;
}
.site-nav .menu > li { position: relative; }
.site-nav .menu > li.menu-item-has-children::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
}
.site-nav .menu > li > a,
.site-nav .menu > li > .menu-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f172a;
    font-weight: 600;
    font-size: 15px;
    padding: 9px 16px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
    white-space: nowrap;
}
.site-nav .menu > li > a:hover,
.site-nav .menu > li > .menu-link:hover,
.site-nav .menu > li.is-active > a,
.site-nav .menu > li.is-active > .menu-link {
    background: #fff;
    color: #1d4ed8;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.menu-link__caret {
    width: 12px;
    height: 12px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center / contain;
    transition: transform .2s ease;
    margin-left: 2px;
    opacity: .7;
}
.menu-item-has-children:hover > .menu-link .menu-link__caret,
.menu-item-has-children.is-open > .menu-link .menu-link__caret,
.menu-item-has-children:focus-within > .menu-link .menu-link__caret {
    transform: rotate(180deg);
}

/* Submenu (desktop) */
.sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 240px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef0f4;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
}
.sub-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #eef0f4;
    border-top: 1px solid #eef0f4;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.sub-menu li { display: block; }
.sub-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #0f172a;
    font-weight: 500;
    font-size: 15px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background-color .12s ease, color .12s ease;
}
.sub-menu a:hover {
    background: #f1f5f9;
    color: #1d4ed8;
    text-decoration: none;
}
.sub-menu a .sub-menu__desc {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    margin-top: 2px;
}
.sub-menu a:hover .sub-menu__desc { color: #475569; }
.sub-menu__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef2ff;
    color: #1d4ed8;
}
.sub-menu__icon svg { width: 18px; height: 18px; }
.sub-menu__text { display: flex; flex-direction: column; }

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 8px;
}
@media (hover: hover) {
    .menu-toggle:hover { background: #f1f5f9; }
}
.menu-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #0f172a;
    margin: 5px auto;
    transition: transform .2s ease, opacity .2s ease;
    border-radius: 2px;
}
.site-nav--open .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav--open .menu-toggle__bar:nth-child(2) { opacity: 0; }
.site-nav--open .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Main content ---------- */
.site-main { padding: 48px 0 64px; }
.entry-title { font-size: 38px; line-height: 1.2; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }
.entry-lead { font-size: 18px; color: #475569; margin: 0 0 32px; max-width: 780px; }

:where(.entry-content) h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
:where(.entry-content) h2 {
    font-size: 28px;
    line-height: 1.3;
    margin: 40px 0 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
:where(.entry-content) h3 {
    font-size: 22px;
    line-height: 1.35;
    margin: 28px 0 12px;
    font-weight: 700;
    color: #0f172a;
}
:where(.entry-content) p { margin: 0 0 16px; }
:where(.entry-content) strong { color: #0f172a; }

/* Custom UL markers */
:where(.entry-content) ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
:where(.entry-content) ul li {
    position: relative;
    padding: 4px 0 4px 32px;
}
:where(.entry-content) ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    width: 16px;
    height: 16px;
    background-color: #22c55e;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
}

/* Custom OL markers */
:where(.entry-content) ol {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    counter-reset: review-ol;
}
:where(.entry-content) ol li {
    position: relative;
    padding: 6px 0 6px 44px;
    counter-increment: review-ol;
}
:where(.entry-content) ol li::before {
    content: counter(review-ol);
    position: absolute;
    left: 0;
    top: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---------- Tables in content ---------- */
.table-wrap,
.entry-content figure.wp-block-table {
    display: block;
    margin: 0 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.entry-content figure.wp-block-table figcaption {
    padding: 10px 16px;
    font-size: 14px;
    color: #475569;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin: 0;
    text-align: left;
}
.entry-content figure.wp-block-table table,
.entry-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    background: #fff;
    margin: 0;
}
.entry-content table th,
.entry-content table td {
    padding: 12px 16px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.entry-content table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.entry-content table tbody tr:last-child td { border-bottom: 0; }
.entry-content table tbody tr:nth-child(even) td { background: #fafbfc; }

/* Round corner cells so the header bg follows the figure's border-radius */
.entry-content table thead tr:first-child th:first-child { border-top-left-radius: 12px; }
.entry-content table thead tr:first-child th:last-child  { border-top-right-radius: 12px; }
.entry-content table:not(:has(thead)) tbody tr:first-child td:first-child { border-top-left-radius: 12px; }
.entry-content table:not(:has(thead)) tbody tr:first-child td:last-child  { border-top-right-radius: 12px; }
.entry-content table tbody tr:last-child td:first-child  { border-bottom-left-radius: 12px; }
.entry-content table tbody tr:last-child td:last-child   { border-bottom-right-radius: 12px; }

/* ---------- Casino listing (shortcode) ---------- */
.casino-list {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.casino-card {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 200px;
    grid-template-areas:
        "logo main bonus actions"
        "payments payments payments payments";
    gap: 20px 24px;
    align-items: center;
    padding: 20px;
    background: #f5f6f8;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
    will-change: transform;
}
.casino-card__logo { grid-area: logo; }
.casino-card__main { grid-area: main; }
.casino-card__bonus { grid-area: bonus; }
.casino-card__actions { grid-area: actions; }

.casino-card__payments {
    grid-area: payments;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px dashed #d8dee8;
}
.casino-card__payments-label {
    color: #64748b;
    font-weight: 600;
    font-size: 13px;
    margin-right: 4px;
}
.casino-card__payment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 24px;
    padding: 0 8px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}
.casino-card__payment--visa { background: #1a1f71; color: #f9b104; }
.casino-card__payment--mastercard { background: #ffffff; color: #eb001b; border: 1px solid #e2e8f0; }
.casino-card__payment--maestro { background: #ffffff; color: #0099df; border: 1px solid #e2e8f0; }
.casino-card__payment--bank { background: #1e40af; color: #ffffff; }
.casino-card__payment--skrill { background: #862165; color: #ffffff; }
.casino-card__payment--neteller { background: #00ac41; color: #ffffff; }
.casino-card__payment--paypal { background: #003087; color: #ffc439; }
.casino-card__payment--paysafe { background: #fbc926; color: #1a1a1a; }
.casino-card__payment--viva { background: #fa2128; color: #ffffff; }
.casino-card__payment--apple { background: #000000; color: #ffffff; }
.casino-card__payment--crypto { background: #f7931a; color: #ffffff; }
.casino-card__payment--more {
    background: transparent;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    font-weight: 600;
}
@media (hover: hover) {
    .casino-card:hover {
        background: #ffffff;
        border-color: #e2e8f0;
        box-shadow: 0 18px 38px -12px rgba(15, 23, 42, 0.18), 0 6px 14px rgba(15, 23, 42, 0.06);
        transform: translateY(-4px);
    }
}
.casino-card__logo {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.casino-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.casino-card__main {
    text-align: center;
}
.casino-card__title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #0f172a;
    letter-spacing: -0.015em;
}
.casino-card__title a { color: inherit; }
.casino-card__title a:hover { color: #1d4ed8; text-decoration: none; }

.casino-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fff8e1;
    padding: 5px 12px;
    border-radius: 999px;
}
.casino-rating__star {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-color: #d1d5db;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>") no-repeat center / contain;
}
.casino-rating__star--filled { background-color: #f5b50a; }

.casino-card__bonus {
    text-align: center;
    line-height: 1.35;
}
.casino-card__bonus-main {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px;
    line-height: 1.2;
}
.casino-card__bonus-sub {
    font-size: 15px;
    color: #475569;
    margin: 0;
    line-height: 1.35;
}

.casino-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 0 #16a34a;
    transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease;
}
@media (hover: hover) {
    .btn-play:hover {
        background: #16a34a;
        text-decoration: none;
        color: #fff;
        transform: translateY(1px);
        box-shadow: 0 1px 0 #15803d;
    }
}
.casino-card__review-link {
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #1d4ed8;
}

/* ---------- Review hero ---------- */
.review-hero {
    margin: 24px 0 32px;
    background: #eef2ff;
    border-radius: 18px;
    padding: 24px;
}
.review-hero__top {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 220px;
    gap: 24px;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
}
.review-hero__logo {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-hero__logo img { width: 100%; height: 100%; object-fit: cover; }

.review-hero__main { text-align: center; }
.review-hero__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #0f172a;
    letter-spacing: -0.015em;
}

.review-hero__bonus {
    text-align: center;
    line-height: 1.35;
}
.review-hero__bonus-main {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.2;
}
.review-hero__bonus-sub {
    font-size: 14px;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.review-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 800;
    font-size: 18px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 2px 0 #1e40af;
    transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease;
}
.btn-download svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
@media (hover: hover) {
    .btn-download:hover {
        background: #1e40af;
        color: #ffffff;
        text-decoration: none;
        transform: translateY(1px);
        box-shadow: 0 1px 0 #1e3a8a;
    }
}

/* Bottom row of hero: info+payments (left) + promo (right) */
/* Width 296 = 320 (sidebar) - 24 (hero right padding) → promo's left edge aligns with sidebar's left */
.review-hero__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 296px;
    gap: 16px;
    align-items: stretch;
}
.review-hero__bottom-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.review-hero__bottom-right { display: flex; }
.review-hero__bottom-right .promo {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Info table inside hero (two-col key/value) */
.review-hero__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
}
.info-table {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
}
.info-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 1fr;
    align-items: center;
    padding: 12px 18px;
    font-size: 15px;
    gap: 16px;
}
.info-row:nth-child(odd) { background: #ffffff; }
.info-row:nth-child(even) { background: #f1f5f9; }
.info-row__label { color: #475569; font-weight: 500; }
.info-row__value { color: #0f172a; font-weight: 600; }

/* Payments row in hero (all methods, wraps to multiple rows if needed) */
.review-hero__payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 6px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
}
.review-hero__payments .casino-card__payment {
    height: 30px;
    min-width: 50px;
    padding: 0 9px;
    font-size: 11px;
    border-radius: 6px;
    flex: 0 0 auto;
}

/* ---------- Review layout (content + sidebar) ---------- */
.review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}
.review-content { min-width: 0; }

.review-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.widget {
    background: #f5f6f8;
    border-radius: 14px;
    padding: 20px;
}
.widget__title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mini casino card in sidebar */
.mini-casino-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mini-casino {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    grid-template-areas:
        "logo title btn"
        "logo rating btn";
    gap: 4px 12px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color .15s ease, box-shadow .15s ease;
}
@media (hover: hover) {
    .mini-casino:hover {
        border-color: #e2e8f0;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }
}
.mini-casino__logo {
    grid-area: logo;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
}
.mini-casino__logo img { width: 100%; height: 100%; object-fit: cover; }
.mini-casino__title {
    grid-area: title;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    align-self: end;
}
.mini-casino__title a { color: inherit; }
.mini-casino__rating { grid-area: rating; align-self: start; }
.mini-casino__rating .casino-rating { padding: 2px 7px; }
.mini-casino__rating .casino-rating__star { width: 12px; height: 12px; }
.mini-casino__btn {
    grid-area: btn;
    background: #22c55e;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 0 #16a34a;
}
.mini-casino__btn:hover { background: #16a34a; color: #fff; text-decoration: none; }

/* ---------- Sidebar widget: Bonuses ---------- */
.bonus-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bonus-item {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color .15s ease, box-shadow .15s ease;
}
@media (hover: hover) {
    .bonus-item:hover {
        border-color: #e2e8f0;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }
}
.bonus-item__casino {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}
.bonus-item__amount {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.bonus-item__desc {
    display: block;
    font-size: 12px;
    color: #475569;
    margin: 4px 0 12px;
    line-height: 1.35;
}
.bonus-item__btn {
    display: block;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.bonus-item__btn:hover { background: #1e40af; color: #fff; text-decoration: none; }

/* ---------- Sidebar widget: Promo code ---------- */
.promo {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
    border-radius: 12px;
    padding: 18px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.promo::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.promo__casino {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    opacity: 0.85;
    margin: 0 0 4px;
    position: relative;
}
.promo__bonus {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    position: relative;
}
.promo__code-wrap {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.12);
    border: 1px dashed rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    padding: 4px;
    margin: 0 0 14px;
    position: relative;
}
.promo__code {
    flex: 1;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 9px 10px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: all;
}
.promo__copy {
    background: #fff;
    color: #1d4ed8;
    border: 0;
    border-radius: 7px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    transition: background-color .15s ease, color .15s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.promo__copy svg { width: 14px; height: 14px; }
.promo__copy.is-copied { background: #22c55e; color: #fff; }
.promo__desc {
    font-size: 13px;
    opacity: 0.92;
    margin: 0 0 14px;
    line-height: 1.4;
    position: relative;
}
.promo__btn {
    display: block;
    background: #22c55e;
    color: #fff;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 2px 0 #16a34a;
    position: relative;
}
.promo__btn:hover { background: #16a34a; color: #fff; text-decoration: none; }

/* ---------- FAQ ---------- */
.faq {
    margin: 40px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: #f5f6f8;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
    will-change: transform;
}
.faq-item[open] {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
@media (hover: hover) {
    .faq-item:hover {
        background: #ffffff;
        border-color: #e2e8f0;
        box-shadow: 0 18px 38px -12px rgba(15, 23, 42, 0.18), 0 6px 14px rgba(15, 23, 42, 0.06);
        transform: translateY(-4px);
    }
    .faq-item[open]:hover {
        box-shadow: 0 18px 38px -12px rgba(15, 23, 42, 0.18), 0 6px 14px rgba(15, 23, 42, 0.06);
        transform: translateY(-4px);
    }
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 56px 18px 22px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    background-color: #1d4ed8;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center / contain;
    transition: transform .2s ease;
}
.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}
.faq-item summary:hover { color: #1d4ed8; }
.faq-item__answer {
    padding: 0 22px 20px;
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
}
.faq-item__answer p { margin: 0 0 10px; }
.faq-item__answer p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid #ececec;
    padding: 28px 0;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* ---------- Responsive ---------- */
/* Tablet */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .entry-title { font-size: 34px; }
    .casino-card {
        grid-template-columns: 120px 1fr 180px;
        grid-template-areas:
            "logo main actions"
            "logo bonus actions"
            "payments payments payments";
        gap: 12px 20px;
    }
    .casino-card__logo { width: 120px; height: 120px; grid-area: logo; }
    .casino-card__main { grid-area: main; align-self: end; text-align: left; }
    .casino-card__bonus { grid-area: bonus; text-align: left; align-self: start; }
    .casino-card__actions { grid-area: actions; align-self: center; }
    .casino-card__bonus-main { font-size: 20px; }
    .casino-card__payments { padding-top: 14px; }

    /* Review layout stacks on tablet */
    .review-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .review-sidebar {
        position: static;
        flex-direction: column;
    }

    .review-hero__top {
        grid-template-columns: 120px 1fr 180px;
        grid-template-areas:
            "logo main actions"
            "logo bonus actions";
        gap: 14px 20px;
    }
    .review-hero__logo { width: 120px; height: 120px; }
    .review-hero__main { grid-area: main; align-self: end; text-align: left; }
    .review-hero__bonus { grid-area: bonus; text-align: left; align-self: start; }
    .review-hero__actions { grid-area: actions; align-self: center; }
    .review-hero__title { font-size: 24px; margin-bottom: 8px; }

    /* Stack promo below info+payments on tablet */
    .review-hero__bottom {
        grid-template-columns: 1fr;
    }
}

/* Mobile (large) */
@media (max-width: 768px) {
    .site-header__inner { padding: 16px 0; position: relative; }
    .site-logo { font-size: 18px; }
    .menu-toggle { display: block; }

    .site-nav .menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border-radius: 0 0 16px 16px;
        border-bottom: 1px solid #ececec;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    }
    .site-nav--open .menu { display: flex; }
    .site-nav .menu > li {
        border-bottom: 0;
        width: 100%;
        background: #f5f6f8;
        border-radius: 12px;
        overflow: hidden;
        transition: background-color .18s ease, box-shadow .18s ease;
    }
    .site-nav .menu > li.is-active {
        background: #eef2ff;
        box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.18);
    }
    .site-nav .menu > li.menu-item-has-children.is-open {
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), inset 0 0 0 1px #e2e8f0;
    }

    .site-nav .menu > li > a,
    .site-nav .menu > li > .menu-link {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 15px 18px;
        font-size: 16px;
        font-weight: 600;
        color: #0f172a;
        border-radius: 12px;
        background: transparent;
        box-shadow: none;
        text-align: left;
        line-height: 1.2;
    }
    .site-nav .menu > li.is-active > a { color: #1d4ed8; }
    .site-nav .menu > li > a:hover,
    .site-nav .menu > li > .menu-link:hover,
    .site-nav .menu > li > a:active,
    .site-nav .menu > li > .menu-link:active {
        background: transparent;
        box-shadow: none;
        color: #1d4ed8;
    }

    .site-nav .menu .menu-link__caret {
        width: 18px;
        height: 18px;
        opacity: 0.55;
        transition: transform .25s ease, opacity .15s ease;
        margin-left: 8px;
    }
    .menu-item-has-children.is-open > .menu-link .menu-link__caret {
        opacity: 1;
        color: #1d4ed8;
    }

    .site-nav .menu > li.menu-item-has-children::after { display: none; }

    .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: 0;
        background: transparent;
        border-radius: 0;
        padding: 0 10px 12px;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        margin: 0;
    }
    .sub-menu::before { display: none; }
    .menu-item-has-children:hover > .sub-menu,
    .menu-item-has-children:focus-within > .sub-menu {
        display: none;
        transform: none;
    }
    .menu-item-has-children.is-open > .sub-menu {
        display: flex;
        flex-direction: column;
        gap: 4px;
        transform: none;
    }
    .sub-menu a {
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 500;
        background: #f8fafc;
        border-radius: 10px;
        gap: 12px;
    }
    .sub-menu a:hover,
    .sub-menu a:active {
        background: #eef2ff;
        color: #1d4ed8;
    }
    .sub-menu__icon { width: 28px; height: 28px; }
    .sub-menu__icon svg { width: 16px; height: 16px; }
    .sub-menu__desc { font-size: 11px; }

    .site-main { padding: 32px 0 48px; }
    .entry-title { font-size: 28px; }
    .entry-lead { font-size: 16px; }
    :where(.entry-content) h1 { font-size: 28px; }
    :where(.entry-content) h2 { font-size: 22px; margin: 32px 0 12px; }
    :where(.entry-content) h3 { font-size: 19px; }

    .casino-card {
        grid-template-columns: 88px 1fr;
        grid-template-areas:
            "logo main"
            "bonus bonus"
            "payments payments"
            "actions actions";
        gap: 14px;
        padding: 16px;
        border-radius: 14px;
    }
    .casino-card__payments { padding-top: 12px; gap: 5px; flex-wrap: nowrap; }
    .casino-card__payments-label { font-size: 12px; }
    .casino-card__payments > :nth-child(n+6):not(.casino-card__payment--more) {
        display: none;
    }
    .casino-card__logo { width: 88px; height: 88px; border-radius: 10px; }
    .casino-card__main { align-self: center; }
    .casino-card__title { font-size: 18px; margin-bottom: 8px; }
    .casino-card__bonus {
        text-align: center;
        padding: 12px;
        background: #fff;
        border-radius: 10px;
    }
    .casino-card__bonus-main { font-size: 18px; }
    .casino-card__bonus-sub { font-size: 14px; }
    .casino-card__actions { flex-direction: column; gap: 10px; }
    .casino-card__actions .btn-play,
    .casino-card__actions .btn-download { width: 100%; font-size: 16px; padding: 14px 16px; }
    .casino-card__actions .btn-download svg { width: 18px; height: 18px; }
    .casino-card__actions .casino-card__review-link {
        display: block;
        text-align: center;
        padding: 4px 0;
    }

    .faq-item summary { font-size: 16px; padding: 16px 48px 16px 18px; }
    .faq-item summary::after { right: 16px; width: 20px; height: 20px; }
    .faq-item__answer { padding: 0 18px 18px; font-size: 15px; }

    /* Mobile: let tables grow to content width and scroll horizontally */
    .entry-content figure.wp-block-table table,
    .entry-content figure.wp-block-table table.has-fixed-layout,
    .entry-content table {
        width: auto;
        min-width: 100%;
        table-layout: auto;
    }
    .entry-content table th,
    .entry-content table td { padding: 10px 14px; font-size: 14px; }
    .entry-content table th { font-size: 12px; }

    /* Review hero mobile */
    .review-hero { padding: 14px; border-radius: 16px; margin: 16px 0 24px; }
    .review-hero__top {
        grid-template-columns: 88px 1fr;
        grid-template-areas:
            "logo main"
            "bonus bonus"
            "actions actions";
        gap: 14px;
        padding: 16px;
    }
    .review-hero__logo { width: 88px; height: 88px; }
    .review-hero__title { font-size: 20px; margin-bottom: 6px; text-align: left; }
    .review-hero__main { text-align: left; }
    .review-hero__bonus {
        text-align: center;
        padding: 12px;
        background: #f5f6f8;
        border-radius: 10px;
    }
    .review-hero__bonus-main { font-size: 20px; }

    .review-hero__info { grid-template-columns: 1fr; gap: 0; padding: 10px; }
    .info-row { padding: 10px 14px; font-size: 14px; }

    .review-hero__payments {
        padding: 12px;
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }
    .review-hero__payments .casino-card__payment { flex-shrink: 0; }
}

/* Mobile (small) */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .entry-title { font-size: 24px; }
    .entry-lead { font-size: 15px; }
    :where(.entry-content) h1 { font-size: 24px; }
    :where(.entry-content) h2 { font-size: 20px; }
    :where(.entry-content) h3 { font-size: 17px; }
    :where(.entry-content) ol li { padding-left: 38px; }
    :where(.entry-content) ol li::before { width: 24px; height: 24px; font-size: 12px; }
    :where(.entry-content) ul li { padding-left: 28px; }

    .casino-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "logo"
            "bonus"
            "payments"
            "actions";
        text-align: center;
    }
    .casino-card__payments { justify-content: center; }
    .casino-card__payments-label { display: none; }
    .casino-card__logo { width: 88px; height: 88px; margin: 0 auto; }
    .casino-card__title { font-size: 20px; }
    .casino-rating { margin: 0 auto; }
    .casino-card__main { display: flex; flex-direction: column; align-items: center; gap: 4px; }
}
