:root {
    --background-main: #F8FAFC;
    --surface-card: #FFFFFF;
    --surface-muted: #F1F5F9;
    --primary-accent: #1E40AF;
    --secondary-accent: #3B82F6;
    --tertiary-accent: #60A5FA;
    --text-primary-on-light: #0F172A;
    --text-secondary-on-light: #475569;
    --text-primary-on-dark: #FFFFFF;
    --text-secondary-on-dark: #E2E8F0;
    --border-color: #E2E8F0;
    --status-success: #10B981;
    --rating-gradient: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --button-gradient: linear-gradient(102deg, #1E3A8A 0%, #2563EB 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-main);
    color: var(--text-primary-on-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: #475569 !important;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.premium-card-shadow {
    box-shadow: 0 10px 30px -5px rgba(30, 64, 175, 0.08), 0 4px 6px -2px rgba(30, 64, 175, 0.04);
}

.matte-button-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* ===== header ===== */
.header-block {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
}

.header-block .dropdown-menu.is-active {
    display: block;
}

.header-block .js-header-dropdown-menu.is-active {
    display: flex;
}

.header-block .js-header-mobile-menu.is-active {
    display: block;
}

.header-block .js-header-mobile-toggle.is-active .js-icon-list {
    display: none;
}

.header-block .js-header-mobile-toggle.is-active .js-icon-close {
    display: block;
}

.header-block .nav-link {
    transition: color 0.2s ease;
}

.header-block .dropdown-menu {
    animation: headerFadeIn 0.2s ease-out;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-block .mobile-menu-item {
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 0.75rem;
}

/* ===== hero ===== */
#hero-block .hero-bg-layer {
    background-image: url('../media/photos/uploads/maplebrookgroup-uk-casino-hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#hero-block .hero-cta-btn {
    background: linear-gradient(102deg, #1E3A8A 0%, #2563EB 100%);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.4);
}

#hero-block .hero-cta-btn:hover {
    background: linear-gradient(102deg, #2563EB 0%, #3B82F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

#hero-block .hero-overlay {
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
}

/* ===== casino-rating-grid ===== */
.casino-rating-grid .js-casino-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none;
    background: #FFFFFF;
}

.casino-rating-grid .js-casino-card:hover {
    transform: translateY(-4px);
}

.casino-rating-grid input::placeholder {
    color: #94A3B8;
    opacity: 1;
}

.casino-rating-grid .btn-bonus {
    background: linear-gradient(102deg, #1E3A8A 0%, #2563EB 100%);
}

.casino-rating-grid .rating-badge {
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
}

.casino-rating-grid .js-casino-grid {
    min-height: 400px;
}

/* ===== about-system ===== */
.about-evaluation .evaluation-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-evaluation .evaluation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(30, 64, 175, 0.1);
}

.about-evaluation .icon-box i {
    line-height: 1;
}

.about-evaluation .image-container {
    border: 8px solid white;
}

.about-evaluation .js-learn-more {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ===== safer-gambling-info ===== */
.safer-gambling-block {
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.safer-gambling-block .sg-info-card {
    transition: transform 0.2s ease-in-out;
}

.safer-gambling-block .sg-info-card:hover {
    transform: translateY(-4px);
}

.safer-gambling-block .sg-main-btn {
    background: linear-gradient(102deg, #1E3A8A 0%, #2563EB 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.safer-gambling-block .sg-main-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s;
}

.safer-gambling-block .sg-main-btn:hover::after {
    opacity: 1;
}

@media (max-width: 767px) {
    .safer-gambling-block h2 {
        hyphens: auto;
    }

    .safer-gambling-block .sg-info-card {
        padding: 24px;
    }
}

/* ===== footer ===== */
.maple-footer {
    font-family: 'Inter', sans-serif;
}

.maple-footer a {
    text-decoration: none;
}

.maple-footer .js-age-modal {
    backdrop-filter: blur(8px);
}

.maple-footer img {
    max-height: 100%;
}

@media (max-width: 767px) {
    .maple-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .maple-footer .grid {
        gap: 2rem;
    }
}

/* ===== PAGE: about-us ===== */
.about-intro { position: relative; overflow: hidden; }
.about-intro .container { position: relative; z-index: 2; }
.about-intro img { transition: transform 0.5s ease; }
.methodology .method-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.methodology .method-card:hover { transform: translateY(-5px); background-color: #ffffff; }
.about-intro .js-contact-btn:hover { transform: scale(1.02); }

/* ===== PAGE: addiction-help ===== */
.addiction-support { font-family: 'Inter', sans-serif; } .addiction-support__levy-card { background: #FFFFFF; position: relative; } .addiction-support__checklist .js-checklist-item { transition: all 0.2s ease; } .addiction-support__checklist .js-checklist-item[data-checked='true'] { border-color: #1E40AF; background-color: #EFF6FF; } .addiction-support__checklist .js-checklist-item[data-checked='true'] .js-check-icon { color: #1E40AF; } .addiction-support__cta a { box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.3); }

/* ===== PAGE: casino-rating ===== */
.casino-rating-section .casino-card { position: relative; overflow: hidden; }
.casino-rating-section .casino-card:hover { transform: translateY(-2px); }
.casino-rating-section input::placeholder { color: #94A3B8; opacity: 1; }
.casino-rating-section select option { background: #FFFFFF; color: #0F172A; }

/* ===== PAGE: contact ===== */
.mbg-contact .mbg-contact__card { border: 1px solid #E2E8F0; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }.mbg-contact .mbg-contact__cta a { background-image: linear-gradient(102deg, #1E3A8A 0%, #2563EB 100%); }.mbg-contact .mbg-contact__cta a:hover { box-shadow: 0 0 20px rgba(37, 99, 235, 0.4); }.mbg-contact h2 { color: #0F172A; }.mbg-contact h3 { color: #0F172A; }.mbg-contact p { color: #475569; }

/* ===== PAGE: safer-gambling ===== */
.safer-practices-section {
  font-family: 'Inter', sans-serif;
}
.safer-practices-container {
  position: relative;
}
.safer-practices-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.safer-practices-slot-limits {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
}
.safer-practices-card:hover {
  transform: translateY(-4px);
}
.js-quiz-btn.active {
  background-color: #1E40AF !strong;
  color: white !strong;
}
.quiz-item button.selected {
  background-color: #1E40AF;
  color: #FFFFFF;
  border-color: #1E40AF;
}

/* ===== PAGE: privacy ===== */
.privacy-content-block .privacy-content-block__toc-card { border: 1px solid #E2E8F0; }
.privacy-content-block .privacy-content-block__main-card { border: 1px solid #E2E8F0; }
.privacy-content-block .js-toc-link.active a { color: #1E40AF; font-weight: 600; }
.privacy-content-block .js-toc-link.active i { transform: translateX(3px); color: #1E40AF; }
.privacy-content-block a:focus-visible { outline: 2px solid #1E40AF; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 767px) {
  .privacy-content-block .privacy-content-block__toc-card { position: relative; top: 0; margin-bottom: 2rem; }
}

/* ===== PAGE: terms ===== */
.terms-content .js-toc-link.active { color: #1E40AF; font-weight: 600; border-left: 2px solid #1E40AF; padding-left: 8px; }
.terms-content aside .sticky { transition: top 0.3s ease; }
.terms-content article h2 { scroll-margin-top: 100px; }
.terms-content .list-disc li::marker { color: #3B82F6; }

/* ===== PAGE: disclaimer ===== */
.disclaimer-content .disclaimer-card { transition: box-shadow 0.3s ease; }.disclaimer-content h2 { color: #0F172A; margin-top: 0; }.disclaimer-content p { color: #475569; margin-bottom: 1.25rem; }.disclaimer-content b, .disclaimer-content strong { color: #1E40AF; font-weight: 600; }.disclaimer-content ul li span { color: #475569; }.disclaimer-content .bi { flex-shrink: 0; }

/* ===== PAGE: cookies ===== */
.cookies-content-section .js-accordion-toggle.active i {
    transform: rotate(180deg);
}
.cookies-content-section .prose p {
    margin-bottom: 1.5rem;
}
.cookies-content-section .js-accordion-item {
    transition: border-color 0.2s ease;
}
.cookies-content-section .js-accordion-item:hover {
    border-color: #3B82F6;
}

.main-avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #F1F5F9;
    background-color: #F8FAFC;
}

.main-comment-card {
    position: relative;
    overflow: hidden;
}

.main-comment-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-comment-card:hover::before {
    opacity: 1;
}

.rating-badge i {
    font-size: 12px;
}

.reply-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.reply-comment-card {
    position: relative;
}

.reply-connector {
    position: absolute;
    left: -24px;
    top: -20px;
    width: 24px;
    height: 44px;
    border-left: 2px solid #E2E8F0;
    border-bottom: 2px solid #E2E8F0;
    border-bottom-left-radius: 12px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .reply-connector {
        left: -16px;
        width: 16px;
    }
}


/* ===== PAGE TEMPLATE: rating ===== */
.header-block {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
}

.header-block .dropdown-menu.is-active {
    display: block;
}

.header-block .js-header-dropdown-menu.is-active {
    display: flex;
}

.header-block .js-header-mobile-menu.is-active {
    display: block;
}

.header-block .js-header-mobile-toggle.is-active .js-icon-list {
    display: none;
}

.header-block .js-header-mobile-toggle.is-active .js-icon-close {
    display: block;
}

.header-block .nav-link {
    transition: color 0.2s ease;
}

.header-block .dropdown-menu {
    animation: headerFadeIn 0.2s ease-out;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.maple-footer {
    font-family: 'Inter', sans-serif;
}

.maple-footer .js-age-modal {
    backdrop-filter: blur(8px);
}

.rating-template-container .no-scrollbar::-webkit-scrollbar {
    display: none;
}

.rating-template-container .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.rating-template-container .prose-container h2 {
    color: #0F172A;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.rating-template-container .prose-container p {
    margin-bottom: 1.25rem;
}

.rating-template-container .js-tab-btn.active {
    color: #1E40AF;
    border-color: #1E40AF;
}

.rating-template-container .js-star-rating-btn.active {
    color: #FACC15;
}