/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Main Colors - matching BetOnRed original */
    --bg-dark: #0f0f0f;
    --bg-darker: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-hover: #212121;

    /* BetOnRed Green (Sign Up button) */
    --green: #00d26a;
    --green-hover: #00b85a;

    /* Accent Colors */
    --blue: #5865f2;
    --blue-hover: #4752c4;
    --red: #ff4655;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;

    /* Border */
    --border-color: #2a2a2a;
    --border-radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== HEADER ===== */
.header {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.nav-icon {
    font-size: 1.1rem;
}

.header-buttons {
    display: flex;
    gap: 0.75rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-signup {
    background: var(--green);
    color: #000;
}

.btn-signup:hover {
    background: var(--green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 210, 106, 0.3);
}

.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
}

.btn-view-all {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.btn-view-all:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 210, 106, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 210, 106, 0.5);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.bonus-carousel {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.bonus-image,
.games-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bonus-carousel a,
.games-showcase a,
.slots-showcase a,
.sports-showcase a {
    display: block;
    cursor: pointer;
}

.bonus-carousel a:hover .bonus-image,
.games-showcase a:hover .games-image,
.slots-showcase a:hover .games-image,
.sports-showcase a:hover .games-image {
    transform: scale(1.02);
    opacity: 0.9;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature-badge {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.feature-badge:hover {
    background: var(--bg-card-hover);
    border-color: var(--green);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 2rem;
}

.badge-text {
    font-weight: 600;
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
    padding: 4rem 0;
}

.section-dark {
    background: var(--bg-darker);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
    line-height: 1.7;
}

.section-description {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    line-height: 1.7;
}

.content-block {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-block p {
    margin-bottom: 1.5rem;
}

/* ===== GAME SECTIONS ===== */
.games-section {
    text-align: center;
}

/* Center all standalone buttons */
.section .btn {
    display: block;
    margin: 2rem auto;
    max-width: fit-content;
}

.games-showcase,
.slots-showcase,
.sports-showcase {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.feature-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* ===== PROVIDERS & LISTS ===== */
.providers-info,
.slot-types,
.table-games-content,
.live-casino-features,
.live-games,
.sports-features,
.live-betting {
    margin: 2rem 0;
}

.providers-info > .btn,
.slot-types > .btn,
.table-games-content > .btn,
.live-casino-features > .btn,
.live-games > .btn,
.sports-features > .btn,
.live-betting > .btn {
    display: block;
    margin: 2rem auto;
    max-width: fit-content;
}

.providers-info h3,
.slot-types h3,
.table-games-content h3,
.live-casino-features h3,
.live-games h3,
.sports-features h3,
.live-betting h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.providers-list,
.games-list,
.features-list {
    list-style: none;
    padding-left: 0;
}

.providers-list li,
.games-list li,
.features-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.providers-list li::before,
.games-list li::before,
.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* ===== BONUSES ===== */
.bonus-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.bonus-content .bonus-section {
    text-align: left;
}

.bonus-section {
    margin: 3rem 0;
}

.bonus-section h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.bonus-section h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
}

.bonus-package {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 1.5rem 0;
}

.bonus-steps {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.bonus-steps li {
    margin-bottom: 0.75rem;
}

.bonus-terms {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 4px;
    color: #ffc107;
}

.promotions-list {
    list-style: none;
    padding-left: 0;
}

.promotions-list li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.promotions-list li::before {
    content: "🎁";
    position: absolute;
    left: 0;
}

/* ===== VIP PROGRAM ===== */
.vip-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.vip-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.vip-table thead {
    background: var(--bg-darker);
}

.vip-table th,
.vip-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.vip-table th {
    color: var(--text-primary);
    font-weight: 600;
}

.vip-table td {
    color: var(--text-secondary);
}

.vip-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.vip-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.vip-badge.bronze {
    background: #cd7f32;
    color: #fff;
}

.vip-badge.silver {
    background: #c0c0c0;
    color: #000;
}

.vip-badge.gold {
    background: #ffd700;
    color: #000;
}

.vip-badge.platinum {
    background: #e5e4e2;
    color: #000;
}

.vip-badge.diamond {
    background: linear-gradient(135deg, #b9f2ff, #0099cc);
    color: #000;
}

.vip-benefits {
    margin: 3rem 0;
}

.vip-benefits h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    border-color: var(--green);
    transform: translateX(4px);
}

.benefit-icon {
    font-size: 2rem;
}

.vip-note {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2rem;
}

/* ===== REGISTRATION ===== */
.registration-content,
.login-content,
.mobile-content {
    max-width: 900px;
    margin: 0 auto;
}

.registration-content > .btn,
.login-content > .btn,
.mobile-content > .btn {
    display: block;
    margin: 2rem auto;
    max-width: fit-content;
}

.registration-content h3,
.login-content h3,
.mobile-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.step-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--green);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--green);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--green);
}

.steps-list {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.steps-list li {
    margin-bottom: 0.75rem;
}

.important-notice {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 4px;
    color: #ffc107;
}

/* ===== MOBILE & APP ===== */
.app-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* ===== PAYMENTS ===== */
.payment-content {
    max-width: 1000px;
    margin: 0 auto;
}

.payment-content h3,
.payment-content h4 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.payment-method {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: var(--green);
    transform: translateY(-4px);
}

.payment-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.payment-method h4 {
    color: var(--text-primary);
    margin: 0.75rem 0 0.5rem;
    font-size: 1.1rem;
}

.payment-method p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.payment-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.payment-table thead {
    background: var(--bg-darker);
}

.payment-table th,
.payment-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.payment-table th {
    color: var(--text-primary);
    font-weight: 600;
}

.payment-table td {
    color: var(--text-secondary);
}

.payment-table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* ===== SUPPORT ===== */
.support-content {
    max-width: 900px;
    margin: 0 auto;
}

.support-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 968px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

.contact-method {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.contact-method:hover {
    border-color: var(--green);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-method h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-method p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== RESPONSIBLE GAMING ===== */
.responsible-content,
.licensing-content {
    max-width: 900px;
    margin: 0 auto;
}

.responsible-content h3,
.licensing-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

/* ===== REVIEWS ===== */
.reviews-content {
    max-width: 1000px;
    margin: 0 auto;
}

.reviews-content h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.achievement-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
}

.achievement-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.testimonial {
    background: var(--bg-card);
    border-left: 3px solid var(--green);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.2s ease;
}

.testimonial:hover {
    background: var(--bg-card-hover);
}

.testimonial p {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial .author {
    color: var(--green);
    font-weight: 600;
    font-style: normal;
}

/* ===== FAQ ===== */
.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--green);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-left-width: 5px;
    background: var(--bg-card-hover);
}

.faq-item h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FINAL CTA ===== */
.cta-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    text-align: left;
}

.cta-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    color: var(--text-secondary);
}

.cta-finale {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green);
    margin: 2rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-license {
    color: #ffc107;
    font-size: 0.9rem;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-secondary);
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--green);
    color: #000;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 210, 106, 0.3);
}

.scroll-to-top:hover {
    background: var(--green-hover);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 210, 106, 0.5);
}

/* ===== ANIMATIONS ===== */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE MENU ===== */
@media (max-width: 968px) {
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
        gap: 0;
    }

    .nav-item {
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ===== MULTI-PAGE ADDITIONS (append-only) ===== */

/* Active nav link */
.nav-item[aria-current="page"] {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.breadcrumbs .container {
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--green);
}

.breadcrumbs .sep {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

/* Legal / utility pages: narrow prose, no big hero */
.legal-hero {
    padding: 3rem 0 1.5rem;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-page .content-block {
    max-width: none;
}

.legal-page h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green);
    display: inline-block;
}

.legal-page h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-page ul,
.legal-page ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.legal-page a {
    color: var(--green);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--green-hover);
}

.legal-section {
    margin-bottom: 2rem;
}

/* Content blocks inside generated sections */
.content-block h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem;
}

.content-block ul,
.content-block ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.content-block li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.content-block a {
    color: var(--green);
    text-decoration: underline;
}

.content-block a:hover {
    color: var(--green-hover);
}

.content-block blockquote {
    border-left: 3px solid var(--green);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-style: italic;
}

.content-block table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 1.5rem 0;
}

.content-block table thead {
    background: var(--bg-darker);
}

.content-block table th,
.content-block table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.content-block table th {
    color: var(--text-primary);
    font-weight: 600;
}

.content-block table td {
    color: var(--text-secondary);
}

/* CTA wrapper inserted by generator */
.cta-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

/* ===== FOOTER AUTHORITIES ===== */
.footer-authorities {
    margin: 2rem 0 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.footer-authorities-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-authorities-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.footer-authorities-grid li {
    margin: 0;
}

.footer-authorities-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.2s ease;
}

.footer-authorities-grid a:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-2px);
}

.footer-authorities-grid img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 4px;
}

@media (max-width: 600px) {
    .footer-authorities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scroll-to-top final placement (hidden until JS shows) */
.scroll-to-top {
    display: none;
    align-items: center;
    justify-content: center;
}

/* Inline content figures (generator-injected between H2 sections) */
.content-figure {
    margin: 0.5rem 0 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.content-figure a:hover img {
    transform: scale(1.02);
    opacity: 0.92;
}

/* Legal/utility page banner figure */
.legal-hero-figure {
    max-width: 820px;
    margin: 1.5rem auto 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.legal-hero-figure img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    object-position: center;
}
