/* ── Layout helpers (kept for backward compat) ── */
.box-100 { width: 100%; }
.box-50  { width: 50%; }
.box-33  { width: 33.333%; }
.box-25  { width: 25%; }
.box-20  { width: 20%; }

/* ── Bootstrap row resets ── */
.aces-slots-grid,
.aces-casinos-grid {
    margin-left: 0;
    margin-right: 0;
}

/* ── Bonus desktop/mobile toggle ── */
.aces-bonuses-desktop { display: flex; }
.aces-bonuses-slider-clip { display: none; }

@media (max-width: 1023px) {
    .aces-bonuses-desktop        { display: none !important; }
    .aces-bonuses-slider-clip    { display: block; }
}

/* ── Bonus slider clip (hides horizontal overflow, allows top overflow for fire icon) ── */
.aces-bonuses-slider-clip {
    overflow-x: hidden;
    overflow-y: visible;
    padding-top: 14px;
    position: relative;
}

/* ── Bonus swiper track ── */
.aces-bonus-track {
    display: flex;
    gap: 14px;
    transition: transform 0.4s cubic-bezier(.25,.8,.25,1);
    will-change: transform;
    cursor: grab;
    overflow: visible;
}
.aces-bonus-track:active { cursor: grabbing; }
.aces-bonus-slide {
    flex: 0 0 88%;
    overflow: visible;
    padding-top: 2px;
}

/* ── Bonus dots ── */
.aces-bonus-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}
.aces-bdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(48, 2, 178, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}
.aces-bdot-active {
    background: #3002B2;
    width: 20px;
    border-radius: 4px;
}

/* ── Fire icon ── */
.aces-bonus-fire {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b00, #ff4500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 80, 0, 0.4);
    z-index: 2;
}
.aces-bonus-fire svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* ════════════════════════════
   SLOT CARD
════════════════════════════ */
.aces-slot-card-inner {
    background: #faf9ff;
    border: 0.5px solid rgba(118, 95, 245, 0.15);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}
.aces-slot-card-inner:hover {
    border-color: #765FF5;
    transform: translateY(-2px);
}
.aces-slot-thumb {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 160px;
    overflow: hidden;
}
.aces-slot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.aces-slot-thumb-placeholder {
    width: 46px;
    height: 46px;
    background: rgba(118, 95, 245, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aces-slot-thumb-placeholder svg {
    width: 22px;
    height: 22px;
    fill: #3002B2;
}
.aces-slot-body {
    padding: 12px 12px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.aces-slot-title {
    font-size: 23px;
    font-weight: 600;
    color: #1a0a3d;
    margin: 0 0 8px;
    line-height: 1.2;
    text-transform: none;
}
.aces-slot-credit-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #7a4f00;
    background: linear-gradient(135deg, #ffe259, #ffa751);
    padding: 3px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.aces-credit-sublabel {
    font-size: 9px;
    opacity: 0.8;
    margin-left: 3px;
}
.aces-slot-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}
.aces-slot-meta span {
    font-size: 11px;
    background: #ede9ff;
    color: #3002B2;
    padding: 3px 10px;
    border-radius: 6px;
    border: 0.5px solid rgba(48, 2, 178, 0.15);
}
.aces-slot-btn {
    display: block;
    width: 100%;
    background: #765FF5;
    color: #fff !important;
    border: none;
    border-radius: 0 0 12px 12px;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none !important;
    margin-top: auto;
    transition: background 0.2s;
}
.aces-slot-btn:hover {
    background: #3002B2;
    color: #fff !important;
    text-decoration: none !important;
}
/* legacy */
.aces-credit { font-size: 20px; font-weight: 600; color: #3002B2; line-height: 1.2; }
.aces-credit-label { font-size: 9px; color: #8878b8; margin-left: 3px; }

/* ════════════════════════════
   BONUS CARD
════════════════════════════ */
.aces-bonus-card-inner {
    background: #fff;
    border: 0.5px solid rgba(118, 95, 245, 0.18);
    border-radius: 14px;
    padding: 22px 20px;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
    overflow: visible;
}
.aces-bonus-card-inner:hover {
    border-color: #765FF5;
    transform: translateY(-2px);
}
.aces-bonus-icon {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #ede9ff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.aces-bonus-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.aces-bonus-icon svg {
    width: 44px;
    height: 44px;
    fill: #3002B2;
}
.aces-bonus-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.aces-bonus-amount {
    font-size: 32px;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, #c88a00, #ffd147, #c88a00);
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 1px;
}
.aces-free-credit-label {
    font-size: 13px;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, #b87d00, #f5c842, #b87d00);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}
.aces-bonus-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.aces-bonus-tags span {
    font-size: 11px;
    background: #ede9ff;
    color: #3002B2;
    padding: 3px 10px;
    border-radius: 6px;
    border: 0.5px solid rgba(48, 2, 178, 0.15);
}
.aces-bonus-title { font-size: 13px; color: #1a0a3d; font-weight: 500; margin: 0 0 6px; }
.aces-bonus-logo img { max-width: 44px; height: auto; border-radius: 8px; }
.aces-bonus-btn {
    display: block;
    width: 100%;
    background: #3002B2;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s;
}
.aces-bonus-btn:hover {
    background: #765FF5;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* ════════════════════════════
   CASINO CARD — centered, no price badge
════════════════════════════ */
.aces-casino-card-inner {
    background: #fff;
    border: 0.5px solid rgba(118, 95, 245, 0.18);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}
.aces-casino-card-inner:hover {
    border-color: #765FF5;
    transform: translateY(-2px);
}
.aces-casino-thumb {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    height: 160px;
    overflow: hidden;
}
.aces-casino-thumb a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.aces-casino-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.aces-casino-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.aces-casino-thumb-placeholder span {
    font-size: 14px;
    font-weight: 700;
    color: #3002B2;
}
.aces-casino-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.aces-casino-title {
    margin: 0 0 6px;
}
.aces-casino-title a {
    font-size: 23px;
    font-weight: 600;
    color: #1a0a3d;
    text-decoration: none;
    line-height: 1.2;
    display: block;
}
.aces-casino-title a:hover { color: #3002B2; }
.aces-stars {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: 1px;
}
.aces-star.full, .aces-star.half { color: #f59e0b; }
.aces-star.empty { color: #ccc; }
.aces-desc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    flex: 1;
    width: 100%;
}
.aces-desc-list li {
    font-size: 12px;
    color: #5a4a8a;
    text-align: left;
}
.aces-desc-list li::before {
    content: "✓ ";
    color: forestgreen;
    font-weight: 700;
}
.aces-casino-btn {
    display: block;
    width: 100%;
    background: #3002B2;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
}
.aces-casino-btn:hover {
    background: #765FF5;
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* ════════════════════════════
   SHARED
════════════════════════════ */
.aces-btn {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    color: #3002B2 !important;
    border: 0.5px solid rgba(48, 2, 178, 0.3);
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.aces-btn:hover {
    background: #ede9ff;
    color: #3002B2 !important;
    text-decoration: none !important;
}
.aces-btn-large { padding: 12px 32px; font-size: 16px; margin-top: 16px; display: inline-block; }

/* ════════════════════════════
   FILTER TABS
════════════════════════════ */
.aces-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.aces-tab {
    padding: 7px 18px;
    border: 0.5px solid rgba(118, 95, 245, 0.3) !important;
    border-radius: 20px;
    background: #fff !important;
    color: #765FF5 !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.aces-tab:hover {
    background: #ede9ff !important;
    color: #3002B2 !important;
}
.aces-tab-active {
    background: #3002B2 !important;
    color: #fff !important;
    border-color: #3002B2 !important;
    font-weight: 500 !important;
}
.aces-panel { display: none; }
.aces-panel-active { display: block; }

/* ════════════════════════════
   SINGLE CASINO PAGE
════════════════════════════ */
.aces-casino-single-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.aces-casino-single-logo img { max-width: 180px; height: auto; border-radius: 8px; }
.aces-casino-single-info { flex: 1; min-width: 200px; }
.aces-casino-single-title { margin: 0 0 8px; font-size: 24px; }
.aces-casino-single-content { margin-top: 24px; }

/* ════════════════════════════
   PROMO BANNER
════════════════════════════ */
/* ── Promo Banner Grid ── */
.promo-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* mobile & tablet: 2 per row */
    gap: 16px;
}
@media (min-width: 992px) {
    .promo-container {
        grid-template-columns: repeat(4, 1fr); /* desktop: 4 per row */
    }
}
.promo-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    text-align: center;
}
.promo-card img.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}
.promo-card-body {
    padding: 12px 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.promo-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a0a3d;
    margin: 0;
    line-height: 1.3;
    text-transform: capitalize;
}
.promo-btn {
    display: inline-block;
    padding: 9px 24px;
    background: linear-gradient(135deg, #765FF5, #3002B2);
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}
.promo-btn:hover {
    opacity: 0.88;
    color: #fff !important;
}


/* ── Fire icon overflow fix ── */
.aces-bonuses-wrap,
.aces-bonuses-wrap .row,
.aces-bonuses-wrap > *,
.aces-bonuses-desktop,
.aces-bonuses-desktop > [class*="col-"],
.aces-bonus-slide {
    overflow: visible !important;
}
/* Clip horizontal scroll on slider only at outer wrapper level */
.aces-bonuses-slider-clip {
    overflow-x: hidden;
    padding-top: 14px;
}


/* ══════════════════════════════════════════
   SINGLE CASINO PAGE
══════════════════════════════════════════ */
.aces-casino-single { max-width: 860px; margin: 0 auto; padding: 8px 0 32px; }

/* Hero card */
.aces-cs-hero {
    background: #fff;
    border-radius: 20px;
    border: 0.5px solid rgba(118, 95, 245, 0.18);
    padding: 32px;
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 20px;
}
.aces-cs-logo {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    background: #ede9ff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.aces-cs-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.aces-cs-info { flex: 1; }
.aces-cs-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.aces-cs-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a0a3d;
    margin: 0 0 8px;
    line-height: 1.2;
}
.aces-cs-stars {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.aces-cs-stars .aces-star.full,
.aces-cs-stars .aces-star.half { color: #f59e0b; }
.aces-cs-stars .aces-star.empty { color: #ddd; }

/* Badges */
.aces-cs-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.aces-cs-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}
.aces-cs-badge-gold {
    background: linear-gradient(135deg, #ffe259, #ffa751);
    color: #7a4f00;
}
.aces-cs-badge-green {
    background: #edfaf4;
    color: #0a6640;
    border: 0.5px solid #b6e8d0;
}
.aces-cs-badge-purple {
    background: #ede9ff;
    color: #3002B2;
    border: 0.5px solid rgba(48, 2, 178, 0.2);
}

/* Items checklist */
.aces-cs-items {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.aces-cs-items li {
    font-size: 14px;
    color: #5a4a8a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.aces-cs-items li::before {
    content: "✓";
    color: #3002B2;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

/* Register button */
.aces-cs-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #3002B2;
    color: #fff !important;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s;
}
.aces-cs-register-btn:hover {
    background: #765FF5;
    color: #fff !important;
    text-decoration: none !important;
}
.aces-cs-register-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Stats bar */
.aces-cs-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.aces-cs-stat {
    background: rgba(118, 95, 245, 0.1);
    border-radius: 12px;
    border: 0.5px solid rgba(118, 95, 245, 0.3);
    padding: 16px;
    text-align: center;
}
.aces-cs-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #3002B2;
    margin-bottom: 4px;
    line-height: 1.2;
}
.aces-cs-stat-gold { color: #f59e0b; }
.aces-cs-stat-green { color: #0a6640; }
.aces-cs-stat-label {
    font-size: 11px;
    color: #8878b8;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Content card */
.aces-cs-content-card {
    background: #fff;
    border-radius: 16px;
    border: 0.5px solid rgba(118, 95, 245, 0.15);
    padding: 28px;
}
.aces-cs-content-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a0a3d;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid rgba(118, 95, 245, 0.12);
}
.aces-cs-content-body {
    font-size: 14px;
    color: #5a4a8a;
    line-height: 1.8;
}
.aces-cs-content-body p { margin-bottom: 12px; }
.aces-cs-content-body p:last-child { margin-bottom: 0; }

/* Single casino responsive */
@media (max-width: 600px) {
    .aces-cs-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 18px;
    }
    .aces-cs-logo { width: 110px; height: 110px; }
    .aces-cs-title { font-size: 26px; }
    .aces-cs-badges { justify-content: center; }
    .aces-cs-items li { justify-content: center; }
    .aces-cs-action { width: 100%; }
    .aces-cs-register-btn { width: 100%; justify-content: center; }
    .aces-cs-stats { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════
   COMPACT CASINO TEMPLATE
════════════════════════════ */
.aces-casino-compact .aces-cc-card {
    background: #fff;
    border-radius: 16px;
    border: 0.5px solid rgba(118, 95, 245, 0.18);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}
.aces-cc-logo {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    background: #ede9ff;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aces-cc-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.aces-cc-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.aces-cc-top { flex: 1; min-width: 160px; }
.aces-cc-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a0a3d;
    margin: 0 0 4px;
    line-height: 1.2;
}
.aces-cc-stars {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.aces-cc-rating-num {
    font-size: 13px;
    color: #8878b8;
    font-weight: 500;
}
.aces-cc-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}
.aces-cc-items li {
    font-size: 13px;
    color: #5a4a8a;
    display: flex;
    align-items: center;
    gap: 5px;
}
.aces-cc-items li::before {
    content: "✓";
    color: #3002B2;
    font-weight: 700;
    font-size: 12px;
}
@media (max-width: 600px) {
    .aces-casino-compact .aces-cc-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .aces-cc-body { flex-direction: column; align-items: flex-start; }
    .aces-cs-register-btn { width: 100%; justify-content: center; }
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */

/* Tablet 720px — bonuses 2 per row (Bootstrap col-sm-6 handles this) */
@media (max-width: 767px) {
    /* Slot games & casino: 2 per row on mobile */
    .aces-slots-grid > [class*="col-"],
    .aces-casinos-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .aces-bonus-icon { width: 80px; height: 80px; }
    .aces-bonus-amount { font-size: 26px; }
    .aces-slot-title { font-size: 22px; }
    .aces-casino-title a { font-size: 22px; }
}

/* Very small mobile */
@media (max-width: 400px) {
    .aces-slot-title { font-size: 18px; }
    .aces-casino-title a { font-size: 18px; }
    .aces-bonus-icon { width: 64px; height: 64px; }
    .aces-bonus-amount { font-size: 22px; }
}

/* Legacy box-* fallback */
@media (max-width: 768px) {
    .box-25, .box-20 { width: 50%; }
    .box-33 { width: 50%; }
    .box-50 { width: 100%; }
}
@media (max-width: 480px) {
    .box-25, .box-20, .box-33, .box-50 { width: 100%; }
}
