.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-bg: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo .logo-text {
    font-size: 1.5rem;
    color: var(--dark-bg);
    font-weight: 700;
}

.highlight {
    background: linear-gradient(180deg, #4a6082 0%, #1e3a5f 45%, #0f2340 65%, #324c6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.footer .highlight {
    background: linear-gradient(180deg, #aabcd8 0%, #708cb0 45%, #4a6894 65%, #849cbe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links .cta-button {
    background: linear-gradient(135deg, #1a2744 0%, #0f172a 100%);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-links .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
    color: var(--white);
}

/* Premium "Market Tips" nav pill */
.nav-premium-link {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    color: #fff !important;
    padding: 5px 13px !important;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
    transition: all 0.25s ease;
}

.nav-premium-link:hover {
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.55) !important;
    transform: translateY(-1px);
}

.nav-premium-link i {
    font-size: 0.72rem;
    margin-right: 2px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-bg);
    cursor: pointer;
}

/* Offset scroll targets so the sticky navbar doesn't cover headings */
section[id] {
    scroll-margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 55%, #0f172a 100%);
    color: var(--white);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1250px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 0;
    line-height: 1.7;
    white-space: nowrap;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-bg);
}

.btn-full {
    width: 100%;
}

.article-navigation {
    text-align: center;
}

/* Categories Section */
.categories {
    padding: 2rem 0;
    background: var(--light-bg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-card.active-filter {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
}

.category-card.active-filter h3,
.category-card.active-filter p {
    color: var(--white);
}

.category-card.active-filter .category-icon {
    background: rgba(255, 255, 255, 0.2);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.category-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

.category-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Market Tips premium card - amber tint on white base */
.category-card-tips {
    border-color: #e0a84e;
    background: linear-gradient(135deg, #fdf6ec 0%, #f5e6cc 100%);
}

.category-card-tips:hover {
    border-color: #d97706;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.15);
}

.category-icon-tips {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%) !important;
}

.category-card-tips h3 {
    color: #78350f;
}

.category-card-tips p {
    color: #92400e;
}

/* Articles Section */
.articles-section {
    padding: 1.2rem 0;
    background: var(--white);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.section-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0;
    color: var(--dark-bg);
    font-weight: 700;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 2px;
    margin: 10px auto 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.article-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0.35;
    color: #fff;
    pointer-events: none;
}

.article-category {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Finance - Blue gradient */
.article-category.finance,
.article-image:has(.article-category:not(.technology):not(.cryptocurrencies):not(.macroeconomics)) .article-category {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* Technology - Purple gradient */
.article-category.technology {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

/* Cryptocurrencies - Green gradient */
.article-category.cryptocurrencies {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Macroeconomics - Orange/Red gradient */
.article-category.macroeconomics {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.article-content {
    padding: 1.8rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 0.4rem;
}

.article-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    font-weight: 700;
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.article-link:hover {
    gap: 0.8rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.newsletter-text p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-benefits {
    list-style: none;
}

.newsletter-benefits li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.newsletter-benefits i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.newsletter-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.newsletter-form h3 {
    color: var(--dark-bg);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-privacy {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.subscription-success {
    text-align: center;
    padding: 2rem;
}

.subscription-success i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.subscription-success h3 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.subscription-success p {
    color: var(--text-secondary);
}

/* About Section */
.about-section {
    padding: 2.5rem 0;
    background: var(--light-bg);
}

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

.about-headline {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-top: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-text-bold {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.about-text a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.about-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.about-cta {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
}

.about-cta a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.about-cta a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.about-learn-more {
    margin-top: 1rem;
    font-size: 0.95rem;
}
.about-learn-more a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.about-learn-more a i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}
.about-learn-more a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.about-learn-more a:hover i {
    transform: translateX(3px);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}
.footer-section h3 {
    font-size: 1.75rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.footer-section .footer-tagline {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

/* Premium "Market Tips" footer link */
.footer-premium-link {
    color: #d97706 !important;
    font-weight: 600;
}

.footer-premium-link i {
    font-size: 0.65rem;
    margin-right: 4px;
    vertical-align: middle;
}

.footer-premium-link:hover {
    color: #f59e0b !important;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    max-width: 180px;
}

.social-links a,
.social-links button {
    width: 50px;
    height: 50px;
    background: var(--dark-secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    cursor: pointer;
}

.social-links a:hover,
.social-links button:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* X/Twitter icon - ensure it displays the X properly */
.fa-x-twitter::before {
    content: "𝕏" !important; /* Unicode X character */
    font-family: inherit !important;
    font-weight: 700;
    font-size: 1.3rem;
}

/* Email Button */
.email-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    margin-bottom: 1rem;
    max-width: 100%;
}

.email-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-secondary);
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        gap: 0;
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--light-bg);
        color: var(--primary-color);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links .nav-premium-link {
        display: block;
        margin: 0.5rem 1.5rem;
        border-bottom: none !important;
        border-radius: 20px;
        width: calc(100% - 3rem);
        text-align: center;
        box-sizing: border-box;
    }

    .nav-links .cta-button {
        display: block;
        margin: 0.75rem 1.5rem;
        padding: 0.85rem 1.5rem;
        text-align: center;
        border-radius: 8px;
        width: calc(100% - 3rem);
    }

    .nav-wrapper {
        position: relative;
    }

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

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

    .hero-subtitle {
        font-size: 1.1rem;
        white-space: normal;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
    }

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

    .email-button {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 4rem 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

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

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .newsletter-form-wrapper {
        padding: 1.5rem;
    }

    .newsletter-text h2 {
        font-size: 1.8rem;
    }

    .newsletter-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .subscription-modal-overlay.active {
        padding: 20px 12px;
    }

    .hero {
        padding: 3rem 0;
    }

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

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

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



/* ============================================
   SUBSCRIPTION MODAL
   ============================================ */

.subscription-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.subscription-modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.subscription-modal-container {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease;
    margin-top: auto;
    margin-bottom: auto;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    font-size: 1.1rem;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.modal-content {
    padding: 48px 40px;
    text-align: center;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon i { font-size: 2rem; color: white; }

.modal-headline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 16px;
}

.modal-subtext {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.5;
}

.modal-form { margin-bottom: 0; }

.modal-form .form-group { margin-bottom: 16px; }

.modal-form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal-form input[type="email"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: inherit;
}

.modal-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.modal-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.modal-privacy {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 16px;
    line-height: 1.5;
}

.modal-privacy a { color: #2563eb; text-decoration: underline; }
.modal-privacy a:hover { color: #1e40af; }

.modal-trust-signal,
.form-trust-signal {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.5;
}
.modal-trust-signal i,
.form-trust-signal i {
    color: #22c55e;
    font-size: 0.85rem;
}
.modal-trust-signal a,
.form-trust-signal a {
    color: #60a5fa;
    text-decoration: underline;
    margin-left: 0.25rem;
}
.modal-trust-signal a:hover,
.form-trust-signal a:hover {
    color: #2563eb;
}

/* Divider between free form and premium section */
.modal-divider {
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    margin: 1.25rem 0 1rem;
}

/* Premium CTA button in modal */
.modal-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
    transition: all 0.3s ease;
    margin-top: 16px;
    margin-bottom: 0.5rem;
    width: 100%;
    justify-content: center;
}
.modal-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.4);
    color: #fff;
}

/* Reverify link in modal */
.modal-reverify-btn {
    display: block;
    width: 100%;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    margin-top: 0.4rem;
    padding: 0;
}
.modal-reverify-btn:hover { color: #2563eb; text-decoration: underline; }

.modal-success { text-align: center; }

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon i { font-size: 2.5rem; color: white; }

.modal-success h3 { font-size: 1.75rem; color: #0f172a; margin-bottom: 12px; }

.modal-success p { font-size: 1.05rem; color: #64748b; line-height: 1.6; }

.modal-error {
    text-align: center;
    padding: 20px;
    background: #fef2f2;
    border-radius: 8px;
    margin-top: 16px;
}

.error-icon {
    width: 50px;
    height: 50px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.error-icon i { font-size: 1.5rem; color: white; }

.modal-error p { color: #991b1b; font-size: 0.95rem; }

@media (max-width: 640px) {
    .subscription-modal-container { margin: 20px; max-width: 100%; }
    .modal-content { padding: 36px 24px; }
    .modal-headline { font-size: 1.4rem; }
    .modal-subtext { font-size: 0.95rem; }
}

/* ============================================
   MODAL TIER SYSTEM - Free vs Premium
   ============================================ */

/* Tier badge pill shown above headline */
.modal-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.modal-tier-badge.tier-free {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.modal-tier-badge.tier-premium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Benefits list inside modal */
.modal-benefits {
    list-style: none;
    padding: 0;
    margin: 8px 0 6px;
    text-align: left;
}
.modal-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.4;
}
.modal-benefits li i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.modal-benefits li.benefit-free i  { color: #16a34a; }
.modal-benefits li.benefit-premium { font-style: normal; color: #334155; }
.modal-benefits li.benefit-premium i { color: #d97706; }

/* "PREMIUM" pill tag inside last benefit row */
.modal-benefits .premium-tag {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    font-style: normal;
    letter-spacing: 0.3px;
}

/* Premium intro text - sits below the form / above premium benefit list */
.modal-premium-intro {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 6px;
    line-height: 1.5;
    text-align: left;
}

/* Applied by JS on gated pages to highlight the premium benefit row */
.benefit-premium-highlight {
    background: rgba(254, 243, 199, 0.65);
    margin: 0 -4px;
    padding: 8px 4px !important;
    border-radius: 6px;
    font-style: normal !important;
    font-weight: 700;
    color: #92400e !important;
}
.benefit-premium-highlight i { color: #d97706 !important; }

/* ============================================
   CONTENT GATE - STRUCTURAL PAYWALL
   ============================================ */

/* Blurred premium/free-gate content wrapper */
.content-gate-wrapper {
    -webkit-filter: blur(8px);
    filter: blur(8px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    max-height: 300px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 80%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 80%);
    position: relative;
}

/* Shared CTA card base - white card matching modal */
.gate-cta-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 2.5rem;
    text-align: center;
    margin: 2rem auto 1.5rem;
    max-width: 820px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Colour isolation - prevent article-level overrides bleeding into the gate */
.gate-cta-card,
.gate-cta-card p,
.gate-cta-card span,
.gate-cta-card li,
.gate-cta-card div,
.gate-cta-card label {
    color: #334155;
}
.gate-cta-card h3 { color: #0f172a; }
.gate-cta-card a   { color: #2563eb; }

.gate-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
}

.gate-cta-icon.free {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
}

.gate-cta-icon.premium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 3px solid #fcd34d;
    color: #92400e;
}

.gate-cta-card .gate-cta-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.gate-cta-card .gate-cta-subtitle {
    font-size: 0.93rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0 auto 0.75rem;
    max-width: 600px;
}

/* Free (article) gate - stacked email form (matching modal layout) */
.gate-cta-free .gate-inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto 0.5rem;
}

.gate-cta-free .gate-email-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #0f172a;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.gate-cta-free .gate-email-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.gate-cta-free .gate-email-input::placeholder {
    color: #94a3b8;
}

.gate-cta-free .gate-submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.gate-cta-free .gate-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.gate-cta-free .gate-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.gate-cta-free .gate-error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin: -0.3rem 0 0.5rem;
}

.gate-cta-free .gate-privacy-text {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 0.4rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.gate-cta-free .gate-privacy-link {
    color: #2563eb;
    text-decoration: underline;
    font-size: inherit;
}

.gate-cta-free .gate-privacy-link:hover { color: #1e40af; }

/* Divider between free and premium sections */
.gate-divider {
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0 0.75rem;
}

/* Premium CTA button inside the free gate */
.gate-cta-free .gate-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
    transition: all 0.3s ease;
    margin-top: 16px;
    margin-bottom: 0.5rem;
}
.gate-cta-free .gate-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.4);
}

/* Reverify link inside the free gate */
.gate-cta-free .gate-reverify-link {
    display: block;
    width: 100%;
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    margin-top: 0.35rem;
    padding: 0;
    text-align: center;
}
.gate-cta-free .gate-reverify-link:hover { color: #2563eb; text-decoration: underline; }

/* ── Gate tier badge (mirrors modal .modal-tier-badge) ── */
.gate-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gate-tier-badge.tier-free {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.gate-tier-badge.tier-premium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* ── Gate benefits list (mirrors modal .modal-benefits) ── */
.gate-benefits {
    list-style: none;
    padding: 0;
    margin: 4px 0 4px;
    text-align: left;
}

/* High specificity to override .article-content li { margin-bottom:1.25rem; line-height:1.85 } */
.gate-cta-card .gate-benefits li,
.article-content .gate-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
    margin: 0;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.35;
    border: none;
}

.gate-benefits li i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.gate-benefits li.benefit-free i  { color: #16a34a; }
.gate-benefits li.benefit-premium { font-style: normal; color: #334155; }
.gate-benefits li.benefit-premium i { color: #d97706; }

/* Center the premium gate benefits as a column */
.gate-cta-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.gate-cta-premium .gate-benefits {
    text-align: left;
}

.gate-benefits .premium-tag {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    font-style: normal;
    letter-spacing: 0.3px;
}

/* Premium intro text - sits between free and premium benefit lists */
.gate-premium-intro {
    font-size: 0.93rem;
    color: #64748b;
    margin: 8px 0 2px;
    line-height: 1.45;
    text-align: center;
}

/* Premium (tip) gate */
.gate-cta-premium .gate-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
    transition: all 0.3s ease;
    margin-top: 20px;
    margin-bottom: 0.75rem;
}

.gate-cta-premium .gate-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.4);
}

.gate-cta-premium .gate-reverify-link {
    display: block;
    width: 100%;
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    margin-top: 0.5rem;
    padding: 0;
    text-align: center;
}
.gate-cta-premium .gate-reverify-link:hover { color: #2563eb; text-decoration: underline; }

/* Tip listing page badges */
.tip-card { position: relative; overflow: hidden; }

/* Corner-ribbon badge - sits flush in the top-right corner of the card */
.tip-lock-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 5px 10px;
    border-radius: 0 12px 0 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
}

.tip-lock-badge.premium {
    background: linear-gradient(135deg, #d97706, #92400e);
    color: #fff;
    box-shadow: -2px 2px 8px rgba(217, 119, 6, 0.3);
}

.tip-lock-badge.sample {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    box-shadow: -2px 2px 8px rgba(22, 163, 74, 0.3);
}

/* Blurred individual metric values on premium cards (Scenario Entry Range, Target Zone only) */
.tip-metric-value.metric-locked {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

/* Generic premium-only value blur - used inside tip pages for Entry/Target/Stop values */
.premium-blur {
    -webkit-filter: blur(6px);
    filter: blur(6px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    cursor: default;
    transition: filter 0.4s ease;
}

.premium-blur-inline {
    -webkit-filter: blur(6px);
    filter: blur(6px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    display: inline;
}

/* ── TWO-TIER FREE/PREMIUM GATE COMPARISON ── */
.gate-tier-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    margin: 0.25rem 0 0.5rem;
    text-align: left;
}

.gate-tier {
    background: rgba(255,255,255,0.04);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
}

.gate-tier-header {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.gate-tier-free  { border-color: #1e40af; background: rgba(37,99,235,.06); }
.gate-tier-free  .gate-tier-header { color: #60a5fa; }
.gate-tier-free  .gate-tier-header i { color: #60a5fa; }

.gate-tier-premium { border-color: #92400e; background: rgba(217,119,6,.08); }
.gate-tier-premium .gate-tier-header { color: #fbbf24; }
.gate-tier-premium .gate-tier-header i { color: #fbbf24; }

.gate-tier-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}
.gate-tier-list li {
    font-size: 0.85rem;
    color: #cbd5e1;
    padding: 0.32rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.4;
}
.gate-tier-free .gate-tier-list li i    { color: #34d399; font-size: 0.78rem; flex-shrink: 0; }
.gate-tier-premium .gate-tier-list li i { color: #fbbf24; font-size: 0.78rem; flex-shrink: 0; }

/* Email form sits inside the free tier column */
.gate-tier-free .gate-inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}
.gate-tier-free .gate-email-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #1e40af;
    border-radius: 7px;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.gate-tier-free .gate-email-input:focus  { border-color: #3b82f6; }
.gate-tier-free .gate-email-input::placeholder { color: #475569; }

.gate-tier-free .gate-submit-btn {
    width: 100%;
    padding: 0.68rem 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: opacity 0.2s;
}
.gate-tier-free .gate-submit-btn:hover    { opacity: 0.9; }
.gate-tier-free .gate-submit-btn:disabled { opacity: 0.6; cursor: default; }
.gate-tier-free .gate-error-msg {
    display: none;
    color: #f87171;
    font-size: 0.8rem;
    margin-top: -0.1rem;
}
.gate-tier-free .gate-privacy-link {
    font-size: 0.73rem;
    color: #475569;
    text-decoration: none;
    text-align: center;
    margin-top: 0.4rem;
}
.gate-tier-free .gate-privacy-link:hover { color: #94a3b8; }

/* Premium tier CTA button inside the comparison card */
.gate-tier-premium .gate-upgrade-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.68rem 1rem;
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(217,119,6,.3);
    transition: opacity 0.2s;
    margin-top: auto;
}
.gate-tier-premium .gate-upgrade-btn:hover { opacity: 0.9; }
.gate-tier-premium .gate-reverify-link {
    display: block;
    color: #60a5fa;
    font-size: 0.77rem;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0;
}

/* OR divider between the two columns */
.gate-tier-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    position: relative;
}
.gate-tier-divider::before {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: #334155;
}
.gate-tier-divider span {
    background: #0f172a;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.1rem;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 640px) {
    .gate-cta-card {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto 1rem;
    }

    .gate-cta-card .gate-cta-title {
        font-size: 1.3rem;
    }

    .gate-cta-card .gate-cta-subtitle {
        font-size: 0.9rem;
    }

    .gate-benefits li {
        font-size: 0.82rem;
        padding: 5px 0;
    }

    .content-gate-wrapper {
        max-height: 200px;
    }

    .gate-tier-compare {
        grid-template-columns: 1fr;
    }

    .gate-tier-divider {
        flex-direction: row;
        padding: 0.75rem 0;
    }
    .gate-tier-divider::before {
        top: 50%;
        bottom: auto;
        left: 0;
        right: 0;
        width: 100%;
        height: 1px;
        transform: none;
    }
}

/* ============================================
   ARTICLES SECTION
   ============================================ */

/* ============================================
   GLOBAL ARTICLE TABLE FIXES
   ============================================ */

/* Horizontal scroll wrapper injected by shared-components.js */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

/* Vertical alignment - prevents badge/content misalignment in multi-line rows */
.tip-detail-container td,
.tip-detail-container th {
    vertical-align: middle;
}

/* Images always constrained to their container */
.tip-detail-container img {
    max-width: 100%;
    height: auto;
}
