/* Custom premium CSS design system for Sanitaperstranieri.it */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #07080c;
    --bg-secondary: #0f111a;
    --bg-tertiary: #161925;
    --accent: #ffb800;
    --accent-hover: #e0a200;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --border: #1f2335;
    --border-hover: #2d324b;
    --glass: rgba(15, 17, 26, 0.85);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: var(--accent);
    background: rgba(255, 184, 0, 0.05);
    text-decoration: none;
}

/* Navigation Dropdowns */
.dropdown-menu-list {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    list-style: none;
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 230px;
    box-shadow: var(--card-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 200;
}

.dropdown:hover .dropdown-menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(2px);
}

.dropdown-menu-list li {
    width: 100%;
}

.dropdown-menu-list a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    border-radius: 0;
}

.dropdown-menu-list a:hover {
    color: var(--accent);
    background-color: var(--bg-tertiary);
    text-decoration: none;
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.75rem;
    margin-left: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 7rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 17, 26, 0.85) 0%, rgba(7, 8, 12, 0.98) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-text {
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(to right, #ffffff, #e2e8f0, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent);
    color: #000000;
    font-weight: 700;
    padding: 0.95rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 184, 0, 0.35);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 184, 0, 0.45);
    text-decoration: none;
    color: #000000;
}

/* Page Layout */
.main-wrapper {
    max-width: var(--max-width);
    margin: 3.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

/* Affiliate Table Styling - Exact Replica of Provided Screenshot */
.casino-table-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2.5rem 0 3.5rem;
}

.casino-card {
    position: relative;
    background-color: #232733;
    border: 2px solid #eab308;
    border-radius: 12px;
    padding: 1.5rem 1.25rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.casino-card:hover {
    border-color: #facc15;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(234, 179, 8, 0.18);
}

/* Top Choice Highlight for Rank #1 (Dolly Casino) */
.casino-card.top-choice-card {
    border: 2.5px solid #facc15;
    background: linear-gradient(145deg, #2a2f3f 0%, #1e222e 100%);
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.32), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.casino-card.top-choice-card:hover {
    border-color: #fde047;
    box-shadow: 0 0 40px rgba(250, 204, 21, 0.45), 0 14px 36px rgba(0, 0, 0, 0.7);
}

.top-choice-tag {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #fef08a !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.top-choice-card .card-rank-badge {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    background: radial-gradient(circle at 35% 35%, #fff066 0%, #facc15 60%, #b45309 100%);
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.7);
}

.top-choice-card .card-logo-box {
    border: 1.5px solid rgba(250, 204, 21, 0.45);
    background-color: #050608;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.2);
    padding: 8px 6px;
}

.card-logo-img.dolly-logo-img {
    max-height: 60px !important;
    max-width: 130px !important;
    width: auto;
    object-fit: contain;
    transform: scale(1.22);
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
    transition: transform 0.25s ease;
}

.top-choice-card:hover .dolly-logo-img {
    transform: scale(1.3);
}

/* Top Badges Bar */
.card-tags-bar {
    position: absolute;
    top: -14px;
    left: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 10;
}

.card-tag {
    background-color: #232733;
    border: 1.5px solid #eab308;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

/* Rank Circle Badge on Left Border */
.card-rank-badge {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fde047 0%, #eab308 60%, #ca8a04 100%);
    border: 2px solid #fef08a;
    color: #1e293b;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Main Inner Grid Layout */
.casino-card-inner {
    display: grid;
    grid-template-columns: 140px 1.5fr 1.1fr 180px 135px;
    align-items: center;
    gap: 1.25rem;
}

/* Logo Box Column */
.card-logo-box {
    background-color: #0d0e12;
    border-radius: 8px;
    padding: 10px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #1e222d;
    min-height: 105px;
}

.logo-top-pill {
    background: linear-gradient(135deg, #f97316, #eab308);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 14px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.card-logo-img {
    max-height: 46px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

.card-rating-row {
    margin-top: 6px;
    color: #facc15;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Center Bonus Column */
.card-bonus-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 0.5rem;
}

.card-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.card-bonus-headline {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}

.gold-highlight {
    color: #facc15;
    font-weight: 800;
    font-size: 1.35rem;
}

/* Stats / Features Column */
.card-stats-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.stat-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 11px;
    height: 11px;
    fill: #ffffff;
}

/* Payments Grid Column */
.card-payments-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payments-title {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 500;
    text-align: center;
}

.pay-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.pay-tile {
    background-color: #ffffff;
    border-radius: 4px;
    padding: 3px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    width: 52px;
}

.pay-tile img {
    max-height: 18px;
    max-width: 44px;
    object-fit: contain;
}

/* CTA Column */
.card-cta-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-gioca-adesso {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4e38 0%, #ff3b2f 100%);
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    text-transform: lowercase;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(255, 60, 47, 0.45);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gioca-adesso:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 60, 47, 0.65);
    color: #ffffff !important;
}

/* Responsive adjustments for Casino Cards & Tables */
@media (max-width: 1100px) {
    .casino-card-inner {
        grid-template-columns: 130px 1.3fr 1fr 150px;
    }
    .card-cta-col {
        grid-column: span 4;
        margin-top: 0.5rem;
    }
    .btn-gioca-adesso {
        width: 100%;
    }
}

@media (max-width: 850px) {
    .casino-card {
        padding: 1.25rem 1rem 1rem;
    }
    .casino-card-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
    }
    .card-logo-box, 
    .card-bonus-col, 
    .card-stats-col, 
    .card-payments-col, 
    .card-cta-col {
        grid-column: span 1;
    }
    .card-logo-box {
        margin: 0 auto;
        width: 100%;
        max-width: 180px;
    }
    .card-rank-badge {
        top: 12px;
        left: 12px;
        transform: none;
    }
    .card-tags-bar {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
        justify-content: center;
        width: 100%;
    }
    .card-tag {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    .card-stats-col {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
    }
    .stat-item {
        justify-content: center;
    }
    .pay-tiles-grid {
        justify-content: center;
    }
    .btn-gioca-adesso {
        width: 100%;
    }
}

@media (max-width: 550px) {
    .casino-card {
        padding: 1.25rem 0.75rem 1rem;
    }
    .card-rank-badge {
        top: 10px;
        left: 10px;
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }
    .card-bonus-headline {
        font-size: 1.1rem;
    }
    .gold-highlight {
        font-size: 1.15rem;
    }
    .similar-buttons-grid {
        flex-direction: column;
    }
    .similar-btn {
        width: 100%;
        text-align: center;
    }
}

.btn-details {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-details:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--text-muted);
    color: #ffffff;
}

/* Collapsible Row Extra Info */
.casino-extra-info {
    max-height: 0;
    overflow: hidden;
    background-color: var(--bg-primary);
    border-top: 0 solid var(--border);
    transition: max-height 0.4s ease-out, border-width 0.1s ease;
}

.casino-extra-info.open {
    max-height: 600px;
    border-top: 1px solid var(--border);
}

.extra-content-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    font-size: 0.9rem;
}

.extra-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.payments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.payments-list li img {
    height: 22px;
    width: auto;
    border-radius: 3px;
    background: #ffffff;
    padding: 1px;
}

.bonus-types-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
}

.bonus-types-list span {
    background: var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.casino-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.casino-features-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.casino-features-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.bonus-date {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Similar Offers Block */
.similar-offers {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin: 2.5rem 0;
    box-shadow: var(--card-shadow);
}

.similar-offers h4 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.similar-offers h4::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: var(--accent);
    border-radius: 2px;
}

.similar-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.similar-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.similar-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.1);
}

/* Content Article Layout */
article.content-block {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.8;
}

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

article.content-block h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    color: #ffffff;
}

article.content-block h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

article.content-block ul,
article.content-block ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

article.content-block li {
    margin-bottom: 0.5rem;
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

article.content-block table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background-color: var(--bg-secondary);
}

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

article.content-block th {
    background-color: var(--bg-tertiary);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

article.content-block tr:last-child td {
    border-bottom: none;
}

article.content-block tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.015);
}

/* Image styling in text */
.text-image-wrap {
    margin: 3rem 0;
    text-align: center;
}

.text-image-wrap img {
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    max-width: 500px;
    width: 100%;
}

.text-image-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

/* Footer styling */
footer {
    background-color: #040507;
    border-top: 1px solid var(--border);
    padding: 4.5rem 0 2.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Footer Payments */
.footer-payments {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.footer-payments h5 {
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

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

.footer-payments-grid img {
    height: 25px;
    width: auto;
    background: #ffffff;
    padding: 2px;
    border-radius: 4px;
    opacity: 0.65;
    transition: var(--transition);
}

.footer-payments-grid img:hover {
    opacity: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.footer-brand p {
    margin-top: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-links-col h5 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
}

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

.footer-trust-resources {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.trust-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trust-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
}

.trust-logo-link svg {
    fill: var(--accent);
    width: 20px;
    height: 20px;
}

.trust-logo-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.trust-card p {
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Modal Popup styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 5, 7, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: scale(0.85);
    transition: var(--transition);
    text-align: center;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.25;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.modal-cta-btn {
    display: block;
    background-color: var(--accent);
    color: #000000;
    font-weight: 700;
    text-align: center;
    padding: 0.9rem;
    border-radius: 8px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
}

.modal-cta-btn:hover {
    background-color: var(--accent-hover);
    color: #000000;
    text-decoration: none;
    transform: translateY(-1px);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .main-wrapper {
        margin: 2rem auto;
        padding: 0 0.85rem;
        gap: 2rem;
    }

    /* Hamburger & Menu Drawer */
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - 60px);
        background-color: var(--bg-secondary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 2rem 1.5rem;
        align-items: flex-start;
        transition: var(--transition);
        box-shadow: var(--card-shadow);
        gap: 1.25rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Nested dropdown menus on mobile menu drawer */
    .dropdown-menu-list {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1.25rem;
        display: block;
        margin-top: 0.35rem;
        width: 100%;
    }

    .dropdown-menu-list a {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
        color: var(--text-secondary);
        border-left: 1px solid var(--border);
    }

    /* Hero section */
    .hero {
        padding: 3.5rem 0;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 1.85rem;
        line-height: 1.25;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1rem;
        box-sizing: border-box;
    }

    /* Content Typography & Markdown Tables */
    article.content-block h1 {
        font-size: 1.75rem;
        word-break: break-word;
    }

    article.content-block h2 {
        font-size: 1.35rem;
        margin-top: 1.75rem;
        word-break: break-word;
    }

    article.content-block h3 {
        font-size: 1.15rem;
        word-break: break-word;
    }

    article.content-block p, 
    article.content-block li {
        font-size: 0.95rem;
        line-height: 1.65;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        margin: 1.5rem 0;
        border-radius: 8px;
    }

    article.content-block table {
        min-width: 500px;
    }

    .text-image-wrap img {
        max-width: 100%;
    }

    /* Footer & Trust Resources */
    .footer-container {
        padding: 0 1rem;
    }

    .footer-payments-grid {
        justify-content: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-trust-resources {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .trust-logo-link {
        justify-content: center;
    }

    .extra-content-grid {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1.5rem;
    }

    /* Modal Popup Mobile adjustment */
    .modal-content {
        padding: 2rem 1.25rem;
        width: 92%;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-desc {
        font-size: 0.88rem;
    }
}
