.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--glow-purple);
    text-decoration: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 30px var(--glow-purple);
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-arrow {
    transition: transform var(--transition-base);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}


.casino-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px 20px 20px 20px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Top casino styles (with badge "Best choice" or rating >= 9.2) */
.casino-card.top-casino {
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.casino-card.top-casino::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-cyan));
    opacity: 0.3;
    z-index: -1;
    filter: blur(10px);
    animation: topCardGlow 3s ease-in-out infinite;
}

@keyframes topCardGlow {

    0%,
    100% {
        opacity: 0.2;
        filter: blur(10px);
    }

    50% {
        opacity: 0.4;
        filter: blur(15px);
    }
}

.casino-card.top-casino:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 50px var(--glow-purple), 0 0 80px rgba(139, 92, 246, 0.4);
}

.casino-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.casino-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 40px var(--glow-purple), 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.casino-card:hover::before {
    opacity: 1;
}

/* Different gradient styles based on rating */
.casino-card.rating-high::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
}

.casino-card.rating-medium::before {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
}

.casino-card.rating-good::before {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
}

.casino-card.hidden {
    display: none;
}

/* Header Top - Logo left, Badges + Rating right */
.casino-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.casino-logo-container {
    position: relative;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.casino-logo {
    width: 200px;
    height: 140px;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(139, 92, 246, 0.25));
    transition: filter 0.2s ease;
}

.casino-logo-container::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    border-radius: 8px;
}

.casino-logo-container:hover::after {
    opacity: 1;
}

.casino-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.casino-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.casino-badge {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
    white-space: nowrap;
    animation: badgePulse 1.5s ease-in-out infinite;
    transform: scale(0.9);
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
        opacity: 1;
    }

    50% {
        box-shadow: 0 0 25px rgba(236, 72, 153, 0.8);
        opacity: 0.9;
    }
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 0 10px var(--glow-purple);
    height: 40px;
    min-width: 50px;
    justify-content: center;
}

.casino-rating svg {
    width: 14px;
    height: 14px;
}

.casino-name {
    font-family: var(--font-family);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-align: left;
    line-height: 1.3;
}

/* Bonus Block - окремий елемент .card-bonus */
.card-bonus {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    padding: 14px 16px;
    height: 52px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), inset 0 0 20px rgba(139, 92, 246, 0.1);
    overflow: hidden;
}

.card-bonus::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    opacity: 0.1;
    z-index: -1;
}

.card-bonus .bonus-icon {
    width: 24px;
    height: 24px;
    color: #FFD700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    flex-shrink: 0;
}

.card-bonus .bonus-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
}

/* Pros Grid - максимум 4, у форматі 2×2 */
.casino-pros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.pro-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.pro-icon {
    width: 16px;
    height: 16px;
    color: #10B981;
    flex-shrink: 0;
}

/* Cons - один рядок */
.con-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #FF6B6B;
    margin-bottom: 8px;
}

.con-icon {
    width: 18px;
    height: 18px;
    color: #FF6B6B;
    flex-shrink: 0;
}

.casino-cta {
    width: 100%;
    height: 56px;
    padding: 0;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--glow-purple);
    margin-top: auto;
}

.casino-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.casino-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: rotate(45deg);
    transition: transform 0.6s;
    opacity: 0;
}

.casino-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px var(--glow-purple), 0 0 60px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-cyan));
    background-size: 200% 200%;
    animation: buttonWave 2s ease infinite;
}

.casino-cta:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(100%, 100%);
    animation: buttonShine 1.5s ease-in-out infinite;
}

@keyframes buttonWave {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes buttonShine {
    0% {
        transform: rotate(45deg) translate(-100%, -100%);
    }

    100% {
        transform: rotate(45deg) translate(100%, 100%);
    }
}

.casino-cta:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px var(--glow-purple);
}

.casino-cta:active::before {
    width: 300px;
    height: 300px;
}

/* Read More Section */
/* Gamified Read More Section */
.casino-read-more-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.4s ease,
        margin-bottom 0.3s ease;
    opacity: 0;
    margin-bottom: 0;
    position: relative;
}

.casino-read-more-section.expanded {
    max-height: 1000px;
    opacity: 1;
    margin-bottom: var(--spacing-md);
}

.casino-read-more-content {
    position: relative;
    padding: 1px;
    /* To show gradient border */
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
    border-radius: 12px;
    margin-top: var(--spacing-md);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
}

.casino-additional-info {
    position: relative;
    background: #0f1219;
    /* Very dark bg like a terminal */
    border-radius: 11px;
    /* Inner radius matching border */
    padding: var(--spacing-md);
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.7;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    /* Tech feel */
    border-left: 3px solid var(--accent-purple);
    overflow: hidden;
}

/* Background grid effect */
.casino-additional-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Scanline effect */
.casino-additional-info::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(139, 92, 246, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 100% 200%;
    animation: scanline 3s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes scanline {
    0% {
        background-position: 0% -100%;
    }

    100% {
        background-position: 0% 200%;
    }
}

/* Button Refined */
.casino-read-more-btn {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: var(--accent-purple);
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: visible;
    /* For corner effects */
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-md);
}

/* Tech corners */
.casino-read-more-btn::before,
.casino-read-more-btn::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
    border-style: solid;
    border-color: var(--accent-purple);
    pointer-events: none;
    opacity: 0.6;
}

/* Top Left Corner */
.casino-read-more-btn::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
    border-radius: 6px 0 0 0;
}

/* Bottom Right Corner */
.casino-read-more-btn::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 6px 0;
}

.casino-read-more-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-purple);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.25), inset 0 0 10px rgba(139, 92, 246, 0.1);
    letter-spacing: 2px;
    /* Interaction feel */
    color: #fff;
    text-shadow: 0 0 8px var(--accent-purple);
}

.casino-read-more-btn:hover::before,
.casino-read-more-btn:hover::after {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    opacity: 1;
    border-radius: 8px;
}

.casino-read-more-btn.active {
    background: linear-gradient(90deg,
            rgba(139, 92, 246, 0.25),
            rgba(59, 130, 246, 0.25));
    border-color: var(--accent-blue);
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--glow-blue);
    text-shadow: 0 0 8px var(--accent-blue);
}

.casino-read-more-btn.active::before,
.casino-read-more-btn.active::after {
    border-color: var(--accent-blue);
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: 8px;
}

.casino-read-more-icon {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy */
}

.casino-read-more-btn.active .casino-read-more-icon {
    transform: rotate(180deg) scale(1.2);
    color: var(--accent-blue);
}

.read-more-text,
.read-less-text {
    position: relative;
    z-index: 1;
}

/* Ripple effect on click */
.casino-cta .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}



/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 1000;
    box-shadow: 0 4px 20px var(--glow-purple);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px var(--glow-purple);
}

.back-to-top:active {
    transform: translateY(-3px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
