html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #b3a17d;
    --secondary-gold: #E2CFB5;
    --dark-bg: #080B0F;
    --darker-bg: #050810;
    --light-text: #FFFFFF;
    --gray-text: #A0A0A0;
    --field-bg: rgba(26, 31, 46, 0.7);
    --success-green: #2a571f;
    --danger-red: #FF3B3B;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--darker-bg);
    color: var(--light-text);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* Navigation */
nav,
.main-nav {
    background: rgba(5, 8, 16, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(201, 176, 55, 0.2);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo img,
.nav-brand img,
.nav-logo {
    width: 80px;
    height: 80px;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover,
.nav-brand img:hover,
.nav-logo:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

a {
    text-decoration: none;
}

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

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-gold);
    transition: all 0.3s ease-in-out;
}

.bot-page-icon {
    font-size: 3.5rem;
    margin: 1rem auto;
    color: var(--primary-gold);
    display: flex;
    justify-content: center;
    align-items: center;
}

.bot-page-icon img {
    width: 64px;
    height: 64px;
}

/* Unified Content Card Style */
.card-style,
.bot-hero,
.strategy-snapshot,
.best-practices {
    background: var(--dark-bg);
    border: 1px solid rgba(201, 176, 55, 0.2);
    border-radius: 15px;
    padding: 2rem; /* Consistent padding */
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Bot Page Hero */
.bot-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bot-symbol {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.bot-page-title {
    font-size: 1.8rem;
}

.bot-page-subtitle {
    font-size: 1rem;
    color: var(--gray-text);
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* Main Content */
.main-content {
    padding: 9rem 1rem 4rem;
    gap: 2rem; /* This now controls the spacing between cards */
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.strategy-snapshot h3, .best-practices h3 {
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin: 0 0 1rem 0;
    text-align: center;
    width: 100%;
    padding: 0 0.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.info-list .icon {
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-top: 4px;
}

.info-list strong {
    color: var(--light-text);
}

.practice-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.practice-card {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(201, 176, 55, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(201, 176, 55, 0.1);
}

.practice-card h4 {
    color: var(--secondary-gold);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.news-container {
    width: 100%;
    margin-top: 2rem;
}

.news-container h3 {
    font-size: 1.4rem;
    color: var(--primary-gold);
    margin: 0 0 1rem 0;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.news-card {
    background-color: var(--dark-bg);
    border: 1px solid rgba(201, 176, 55, 0.15);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
    max-width: 100%;
    margin: 0 auto;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-gold);
    line-height: 1.4;
}

.news-description {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--gray-text);
}

.news-publisher {
    font-weight: 600;
}

.news-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.news-link:hover {
    text-decoration: underline;
}

/* Floating Action Button */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.cta-button {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-gold);
    transform: translateY(-3px);
}

/* Practice CTA styles */
.practice-cta {
    margin-top: 1rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 176, 55, 0.2);
}

.cta-button-small {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.cta-button-small:hover {
    background-color: var(--secondary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Footer */
.social-media {
    margin-top: 1rem;
}
.social-media a {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}
.social-media a:hover {
    color: var(--secondary-gold);
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(201, 176, 55, 0.1);
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */

/* Medium screens (tablets) */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px; /* Position below the nav bar */
        left: 0;
        width: 100%;
        background: var(--darker-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-top: 1px solid rgba(201, 176, 55, 0.2);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

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

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

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(179, 161, 125, 0.2);
    }

    .hamburger-menu {
        display: flex;
    }

    .main-content {
        padding: 7rem 1rem 3rem;
        max-width: 100%;
    }

    .strategy-snapshot, 
    .practice-card, 
    .best-practices,
    .content-section,
    .card-style {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .strategy-snapshot h3, 
    .best-practices h3, 
    .news-container h3,
    .content-section h3 {
        font-size: 1.2rem;
    }

    .practice-cards {
        padding: 0;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-main-title {
        font-size: 2rem;
        text-align: center;
        line-height: 1.2;
    }

    .page-main-subtitle {
        font-size: 1rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    /* Fix overflow issues */
    .content-section ul {
        padding-left: 1rem;
    }

    .content-section li {
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }

    /* Button improvements */
    .cta-button, 
    .feature-link {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
        text-align: center;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* Grid adjustments */
    .stats-grid,
    .bea-grid, 
    .bls-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    /* Typography improvements */
    .hero-title,
    .bot-symbol {
        font-size: 2.2rem;
    }

    .hero-subtitle,
    .bot-page-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Small screens (mobile) */
@media screen and (max-width: 600px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo img,
    .nav-brand img,
    .nav-logo {
        width: 60px;
        height: 60px;
    }

    .bot-symbol {
        font-size: 2.5rem;
    }

    .bot-page-title,
    .page-main-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .bot-page-subtitle,
    .page-main-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .main-content {
        padding: 6rem 0.8rem 2rem;
    }

    .card-style,
    .content-section,
    .strategy-snapshot, 
    .practice-card, 
    .best-practices {
        padding: 0.8rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .floating-cta {
        padding: 0.8rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
        width: 100%;
        text-align: center;
    }

    .news-grid {
        gap: 0.8rem;
        grid-template-columns: 1fr;
    }
    
    .news-card {
        margin-bottom: 0.8rem;
    }

    /* Content improvements for mobile */
    .content-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .content-section p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }

    .content-section ul {
        padding-left: 0.8rem;
    }

    .content-section li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    /* Stats and grids */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .bea-grid, 
    .bls-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .bea-card {
        padding: 0.8rem;
    }

    /* Fix icon sizes */
    .bot-page-icon {
        font-size: 2.5rem;
        margin: 0.8rem auto;
    }

    .bot-page-icon img {
        width: 48px;
        height: 48px;
    }

    /* Footer improvements */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 0.85rem;
    }

    /* Navigation improvements */
    .nav-links {
        padding: 1.5rem 0;
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

/* New styles for content pages */
.content-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-main-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    font-weight: 600;
}

.page-main-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 60ch;
    margin-bottom: 1rem;
    font-weight: 300;
}

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

.content-section h3 {
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.content-section p, .content-section ul {
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 300;
}

.content-section ul {
    list-style-position: outside;
    padding-left: 2rem; /* Indent lists */
}

.content-section li {
    margin-bottom: 0.75rem;
}

/* Link styling for practice cards */
.practice-card a {
    text-decoration: none;
    color: inherit;
    display: block; /* Make the whole card clickable */
}

/* Macro data grids */
.bea-grid, .bls-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.bea-card {
    flex: 1 1 150px;
    background: var(--dark-bg);
    border: 1px solid rgba(201, 176, 55, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.bea-card h4 {
    color: var(--secondary-gold);
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.bea-card p {
    color: var(--light-gray);
    font-size: 1.1rem;
    margin: 0;
}

.bea-card small {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray-text);
    font-size: 0.75rem;
}

/* Subtitle under section headings */
.data-source {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin: -0.5rem 0 1rem 0;
    text-align: center;
}

/* Center alignment and brand color overrides for BLS macro section */
#bls-data {
    text-align: center;
}

#bls-data h3 {
    color: var(--primary-gold);
}

#bls-data .data-source {
    color: var(--light-gray);
}

/* Hero Section for Guide Pages */
.hero-section {
    background: var(--dark-bg);
    border: 1px solid rgba(201, 176, 55, 0.2);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin: 0;
}

/* Container for Guide Pages */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin: 2rem 0;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.breadcrumb a {
    color: var(--primary-gold);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: var(--dark-bg);
    border: 1px solid rgba(201, 176, 55, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 1rem auto;
    max-width: 550px;
    width: calc(100% - 2rem);
    box-sizing: border-box;
}

.cta-content h2 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--darker-bg);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button.primary .fab.fa-meta {
    font-size: 20px;
    color: inherit;
}

.cta-button.secondary .telegram-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(75%) sepia(25%) saturate(1167%) hue-rotate(35deg) brightness(95%) contrast(85%);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.secondary:hover {
    background: var(--primary-gold);
    color: var(--darker-bg);
}

/* Footer for Guide Pages */
.main-footer {
    background: linear-gradient(135deg, var(--darker-bg) 0%, rgba(5, 8, 16, 0.98) 100%);
    border-top: 2px solid var(--primary-gold);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 50%, transparent 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section h4 {
    color: var(--secondary-gold);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gold);
}

.footer-section p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1rem;
}

.footer-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-size: 0.8rem;
}

.footer-section ul li a {
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 176, 55, 0.2);
    color: var(--gray-text);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-bottom p {
    color: var(--gray-text);
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.footer-social a[href*="tiktok"] {
    background: rgba(37, 244, 238, 0.1);
    border: 2px solid rgba(37, 244, 238, 0.3);
}

.footer-social a[href*="tiktok"]::before {
    background: linear-gradient(135deg, #25f4ee, #fe2c55);
}

.footer-social a[href*="tiktok"]:hover::before {
    opacity: 1;
}

.footer-social a[href*="tiktok"] i {
    color: #25f4ee;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.footer-social a[href*="tiktok"]:hover i {
    color: white;
}

.footer-social a[href*="instagram"] {
    background: rgba(225, 48, 108, 0.1);
    border: 2px solid rgba(225, 48, 108, 0.3);
}

.footer-social a[href*="instagram"]::before {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.footer-social a[href*="instagram"]:hover::before {
    opacity: 1;
}

.footer-social a[href*="instagram"] i {
    color: #e1306c;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.footer-social a[href*="instagram"]:hover i {
    color: white;
}

.footer-social a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive for guide pages */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        position: static;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer-social {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    /* Interactive elements mobile optimization */
    .volume-analyzer,
    .analyzer-input-group,
    .flow-analysis,
    .scanner-tools,
    .signal-grid,
    .features-grid,
    .mini-calculator {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .analyzer-button,
    .demo-button,
    .feature-link {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .input-field,
    .mini-input {
        margin-bottom: 0.8rem;
    }

    .input-field label,
    .mini-input label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .input-field input,
    .input-field select,
    .mini-input input,
    .mini-input select {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    /* Chart and visual elements */
    .chart-container,
    .pullback-chart {
        width: 100%;
        overflow-x: auto;
        margin: 1rem 0;
    }

    .fibonacci-levels,
    .depth-reference {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    /* Flow cards and analysis results */
    .flow-card,
    .signal-card,
    .scanner-card,
    .feature-card {
        margin-bottom: 1rem;
        padding: 0.8rem;
    }

    .flow-indicators,
    .signal-details {
        font-size: 0.85rem;
    }

    .flow-indicators li,
    .signal-details li {
        margin-bottom: 0.3rem;
    }

    /* Analysis results */
    .analysis-result,
    .demo-result {
        font-size: 0.85rem;
        padding: 0.8rem;
        margin-top: 1rem;
    }

    .result-header h4 {
        font-size: 1rem;
    }

    /* Quality checklist */
    .quality-checklist {
        grid-template-columns: 1fr;
    }

    .checklist-item {
        padding: 0.6rem;
        margin-bottom: 0.5rem;
    }

    .checklist-item label {
        font-size: 0.85rem;
    }

    /* Timeline and roadmap */
    .timeline-item {
        margin: 0.3rem 0;
        padding: 0.4rem;
    }

    .timeline-date {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        margin-right: 0.5rem;
        min-width: 50px;
    }

    .timeline-content {
        font-size: 0.8rem;
    }
}

/* Ultra-small screens (320px and below) */
@media screen and (max-width: 375px) {
    .nav-container {
        padding: 0 0.5rem;
    }

    .main-content {
        padding: 5.5rem 0.5rem 1.5rem;
    }

    .card-style,
    .content-section {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .bot-symbol {
        font-size: 2rem;
    }

    .page-main-title,
    .bot-page-title {
        font-size: 1.4rem;
    }

    .content-section h3 {
        font-size: 1rem;
    }

    .content-section p,
    .content-section li {
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .stat-item {
        padding: 0.6rem;
    }

    .cta-button {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .input-field input,
    .input-field select,
    .mini-input input,
    .mini-input select {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .fibonacci-levels,
    .depth-reference {
        grid-template-columns: 1fr;
    }

    .analysis-result,
    .demo-result {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    /* Stripe button mobile optimization */
    stripe-buy-button {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Stripe Buy Button Mobile Optimization */
stripe-buy-button {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

@media screen and (max-width: 768px) {
    /* Pricing card mobile optimization */
    .pricing-card {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    stripe-buy-button {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        transform: scale(0.9) !important;
        transform-origin: center !important;
    }

    /* Target the internal Stripe button */
    stripe-buy-button::part(button) {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.85rem !important;
        padding: 0.6rem 0.8rem !important;
    }

    /* Additional targeting for Stripe's shadow DOM */
    stripe-buy-button iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

@media screen and (max-width: 600px) {
    .pricing-card {
        padding: 1rem 0.8rem !important;
    }

    .price-tag {
        font-size: 2.2rem !important;
    }

    stripe-buy-button {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
        transform: scale(0.85) !important;
        transform-origin: center !important;
    }

    /* Target the internal Stripe button for small screens */
    stripe-buy-button::part(button) {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.8rem !important;
        padding: 0.5rem 0.6rem !important;
        border-radius: 6px !important;
    }

    stripe-buy-button iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        transform: scale(0.85) !important;
    }
}

@media screen and (max-width: 375px) {
    stripe-buy-button {
        transform: scale(0.8) !important;
        transform-origin: center !important;
    }

    stripe-buy-button iframe {
        transform: scale(0.8) !important;
    }
}
