:root {
    --header-bg: #0f172a;
    --hero-bg: #0091d0;
    /* Motley Fool Blue-ish */
    --text-main: #1f2937;
    --text-light: #f9fafb;
    --accent-green: #16a34a;
    --accent-red: #dc2626;
    --bg-gray: #f3f4f6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Header */
header {
    background-color: var(--header-bg);
    color: white;
    padding: 15px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-search {
    display: none;
    flex-grow: 1;
    margin: 0 40px;
    position: relative;
    max-width: 600px;
}

.header-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 4px;
    border: 1px solid #4b5563;
    background-color: #374151;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.header-search input::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.header-search input:focus {
    border-color: #60a5fa;
    background-color: #1f2937;
}

.header-search .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    /* Hidden by default */
}

.suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    font-size: 0.9rem;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f3f4f6;
}

.suggestion-item .suggestion-title {
    font-weight: 600;
    display: block;
}

.suggestion-item .suggestion-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

nav a:hover {
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Inline Waitlist */
.inline-waitlist-container {
    background-color: #1e293b;
    /* Darker than header, matching dropdowns */
    color: white;
    padding: 20px 0;
    border-bottom: 1px solid #374151;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

.inline-waitlist-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.inline-waitlist-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #e2e8f0;
}

.inline-waitlist-content p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.form-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-row input,
.form-row select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #475569;
    background: #0f172a;
    color: white;
    font-size: 0.9rem;
    width: 200px;
}

.form-row button {
    padding: 8px 24px;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
        padding: 0;
    }

    to {
        max-height: 200px;
        opacity: 1;
        padding: 20px 0;
    }
}

.cta-button {
    background-color: #db2777;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Ticker */
.ticker-bar {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 4px;
    background: white;
}

.ticker-label {
    font-weight: 700;
    font-size: 0.8rem;
    color: #374151;
}

.ticker-value {
    font-weight: 700;
    font-size: 0.9rem;
}

.ticker-value.up {
    color: var(--accent-green);
}

.ticker-value.down {
    color: var(--accent-red);
}

/* Hero */
.hero {
    background-color: var(--hero-bg);
    color: white;
    padding: 60px 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-list {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

.hero-list li {
    margin-bottom: 15px;
}

/* Hero Card (Catch of the Day) */
.hero-card-container {
    flex: 1;
    max-width: 50%;
}

.hero-card-label {
    text-align: center;
    background: #e5e7eb;
    color: #374151;
    font-weight: 700;
    padding: 8px;
    border-radius: 8px 8px 0 0;
    font-size: 0.9rem;
}

.hero-card {
    background: white;
    color: var(--text-main);
    border-radius: 0 0 8px 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    /* Horizontal layout */
    gap: 20px;
    align-items: center;
}

.hero-card img {
    width: 180px;
    /* Fixed width for image */
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
}

.hero-card h2 {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
    color: #111827;
}

.hero-card .status {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.hero-card .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 4px;
}

.hero-card p {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-btn {
    display: block;
    background: var(--hero-bg);
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s;
}

.hero-card-content {
    flex: 1;
    text-align: left;
}

.hero-btn:hover {
    background: #0284c7;
}

/* Main Gallery */
main {
    max-width: 1400px;
    /* Increased from 1200px to allow wider cards */
    margin: 40px auto;
    padding: 0 20px;
}

.gallery-heading {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}

#gallery-container {
    display: block;
    width: 100%;
}

.category-section {
    display: block;
    width: 100%;
    margin-bottom: 60px;
    clear: both;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    /* Slightly smaller font */
    font-weight: 700;
    align-self: flex-start;
    text-transform: uppercase;
    white-space: nowrap;
    /* Prevent wrapping */
}



.preview-image-area {
    background-color: #f3f4f6;
    /* Light gray background for image */
    flex: 1;
    /* Takes up remaining space */
    height: 180px;
    /* Fixed height */
    min-height: 180px;
    /* Ensure enough space for image */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Remove padding to let image fill */
    overflow: hidden;
    /* Clip overflowing images */
}

.preview-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the area */
    object-position: top;
    /* Show top of screenshot */
    mix-blend-mode: normal;
    /* Remove multiply which looks bad on screenshots */
}

.preview-content-area {
    background-color: #1f2937;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #60a5fa;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.preview-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.preview-site {
    font-size: 0.75rem;
    color: #e5e7eb;
}

.preview-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.stars {
    color: #fcd34d;
    font-size: 0.8rem;
    letter-spacing: 0px;
}

.review-count {
    color: #9ca3af;
    font-size: 0.7rem;
}

/* Adjust Gallery Card to fit this new preview */
.product-card {
    padding: 0;
    /* Remove padding to let preview fill card */
    border: none;
    background: transparent;
    box-shadow: none;
    /* Preview card has its own shadow */
    position: relative;
    /* Ensure positioning context for overlay link */
    height: 100%;
    /* Fill grid cell */
    display: flex;
    flex-direction: column;
}

.rich-preview-card {
    flex: 1;
    /* Expand to fill card */
    display: flex;
    flex-direction: column;
    /* ... existing styles ... */
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-content {
    display: none;
    /* Hide old buttons/links, make entire card clickable via wrapping a tag if possible, or just rely on preview */
}

/* Make the whole card a link */
.product-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

/* Hero specific adjustments */
.link-preview-hero {
    width: 240px;
    min-height: 320px;
    height: auto;
    border: none;
    background: transparent;
    padding: 0;
}

/* New White Gallery Card Styles */
.gallery-product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to the main link */
}

/* Trigger hover on the parent container */
.product-card:hover .gallery-product-card {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image-area {
    height: 150px;
    /* Reduced from 180px for a shorter card */
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
}

.gallery-image-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.load-more-btn {
    display: block;
    margin: 40px auto;
    padding: 14px 40px;
    background-color: var(--hero-bg);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.load-more-btn:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.load-more-btn:active {
    transform: translateY(0);
}

.gallery-content {
    padding: 12px;
    /* Slightly reduced padding */
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Reduced gap */
    flex: 1;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    align-self: flex-start;
    text-transform: uppercase;
}

.gallery-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.gallery-verified {
    font-size: 1rem;
    font-weight: 800;
    color: #16a34a;
    text-transform: uppercase;
}

.gallery-desc {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.4;
    margin-bottom: auto;
    /* Pushes button to bottom */
}

.gallery-btn {
    display: block;
    background: #0091d0;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background 0.2s;
    position: relative;
    z-index: 2;
    /* Ensure clickable over card link */
    pointer-events: auto;
    /* Re-enable clicks for the button */
}

.gallery-btn:hover {
    background: #0284c7;
}

/* Ad Container Styles */
.ad-container {
    width: 100%;
    max-width: 728px;
    /* Standard leaderboard width */
    margin: 40px auto;
    text-align: center;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    min-height: 100px;
    /* Placeholder height */
}

.ad-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #db2777;
    color: white;
}

.btn-primary:hover {
    background-color: #be185d;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-content {
        flex-direction: column;
        padding: 0 15px;
    }

    .hero-text,
    .hero-card-container {
        max-width: 100%;
    }

    .mobile-hidden {
        display: none !important;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    /* Stack header on smaller tablets/large phones */
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .gallery-image-area {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        flex-direction: column;
        text-align: center;
    }

    .link-preview-hero {
        width: 100%;
        max-width: 240px;
        /* Keep max width but allow shrinking/centering */
        margin: 0 auto 20px auto;
    }

    .hero-card-content {
        text-align: center;
        width: 100%;
    }

    .ticker-bar {
        gap: 15px;
    }

    .ticker-item {
        width: 100%;
        /* Stack tickers on very small screens */
        justify-content: center;
    }
}

/* News & Popular Topics Section */
.news-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.featured-news {
    flex: 2;
}

.popular-topics {
    flex: 1;
    border-left: 1px solid #e5e7eb;
    padding-left: 40px;
}

.section-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.follow-btn {
    font-size: 0.75rem;
    background: white;
    border: 1px solid #d1d5db;
    padding: 4px 10px;
    border-radius: 20px;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-weight: 600;
}

/* Featured Card Style */
.featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    background: #1f2937;
    height: 400px;
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: block;
}

.featured-card:hover img {
    opacity: 1;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    padding: 30px;
    color: white;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.featured-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Popular Topics List */
.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-link {
    text-decoration: none;
    color: #1f2937;
    display: block;
}

.topic-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: color 0.2s;
}

.topic-link:hover .topic-title {
    color: #0091d0;
}

.topic-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .news-section {
        flex-direction: column;
        gap: 40px;
    }

    .popular-topics {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e5e7eb;
        padding-top: 40px;
        width: 100%;
    }


    .featured-news {
        width: 100%;
    }
}

/* New Report UI Styles */
.report-view-enabled header {
    display: none;
    /* Hide main header when report is active */
}

.report-header {
    background-color: #4c1d95;
    /* Deep Purple */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-logo {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-btn-share {
    background-color: #ec4899;
    /* Pink/Red */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.caution-banner {
    background-color: #f59e0b;
    /* Amber/Yellow */
    color: #000;
    text-align: center;
    padding: 10px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.verdict-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    background: white;
}

.verdict-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.report-title-large {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.report-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.report-text-col {
    flex: 1;
}

.report-media-col {
    flex: 0 0 300px;
    position: relative;
}

.media-placeholder {
    width: 100%;
    height: 180px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #333;
    margin-left: 4px;
}

.btn-show-report {
    display: block;
    width: 100%;
    background-color: #0ea5e9;
    /* Sky Blue */
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 20px;
    font-size: 1rem;
}

.btn-show-report:hover {
    background-color: #0284c7;
}

.extra-offers {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #4b5563;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.offer-line {
    margin-bottom: 10px;
    font-weight: 600;
}

.location-bar {
    background: #f3f4f6;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 20px;
}

@media (max-width: 640px) {
    .report-layout {
        flex-direction: column-reverse;
    }


    /* App Buttons */
    .app-buttons-container {
        text-align: left;
    }

    .clickable-app-btn {
        transition: transform 0.2s;
    }

    .clickable-app-btn:hover {
        transform: scale(1.05);
    }

    /* Modal Styles */
    .modal {
        display: none;
        /* Hidden by default */
        position: fixed;
        /* Stay in place */
        z-index: 2000;
        /* Sit on top */
        left: 0;
        top: 0;
        width: 100%;
        /* Full width */
        height: 100%;
        /* Full height */
        overflow: auto;
        /* Enable scroll if needed */
        background-color: rgb(0, 0, 0);
        /* Fallback color */
        background-color: rgba(0, 0, 0, 0.6);
        /* Black w/ opacity */
        backdrop-filter: blur(5px);
    }

    .modal-content {
        background-color: #fefefe;
        margin: 15% auto;
        /* 15% from the top and centered */
        padding: 0;
        border: 1px solid #888;
        width: 90%;
        max-width: 500px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-50px);
            opacity: 0;
        }

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

    .close-btn {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        margin-right: 20px;
        margin-top: 10px;
        cursor: pointer;
    }

    .close-btn:hover,
    .close-btn:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

    .modal-header {
        padding: 20px 30px;
        background: #f9fafb;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 12px 12px 0 0;
    }

    .modal-header h2 {
        margin: 0 0 10px 0;
        font-family: 'Inter', sans-serif;
        color: #1f2937;
    }

    .modal-header p {
        margin: 0;
        color: #6b7280;
        font-size: 0.95rem;
    }

    .modal-body {
        padding: 30px;
    }

    #waitlist-form input[type="email"] {
        width: 100%;
        padding: 12px;
        margin: 8px 0;
        display: inline-block;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 1rem;
    }

    /* Mobile responsive modal */
    @media (max-width: 600px) {
        .modal-content {
            margin: 30% auto;
            width: 95%;
        }
    }