﻿/* --- Global Styles & Variables --- */
:root {
    /* Core Colors - Green Theme */
    --primary-green: #29dba0;
    --primary-green-dark: #059669;
    --primary-green-light: #34D399;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-on-dark: #ffffff;
    --text-on-light: #1F2937;
    
    /* Accent Colors */
    --accent-blue: #00D4FF;
    --accent-blue-dark: #0099CC;
    --accent-blue-light: #33DDFF;
    
    /* Modal Colors */
    --bg-dark-card: #1F2937;
    
    /* Utility Classes */
    --spinner-color: #00D4FF;
    --spinner-bg: #374151;
    --background-light: #0bbbda09;
    --background-hero: #ECFDF5;
    --background-card: #ffffff;
    --border-color: #E5E7EB;

    /* Typography */
    --font-family: 'Inter', sans-serif;

    /* UI Elements */
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    --box-shadow-hover: 0 8px 24px rgba(16, 185, 129, 0.15);
    
    /* Common Gradients */
    --light-green-gradient: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
    --main-gradient: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #0EA5E9 100%);
    --light-bg-gradient: linear-gradient(135deg, #F0F8FF 0%, #F0F8FF 50%, #F0FFF4 100%);
    
    /* Common Backgrounds */
    --semi-white: rgba(255, 255, 255, 0.9);
    /* Standardized card/content width across tools */
    --card-max-width: 800px;
    /* Standardized border radius for cards */
    --card-radius: 16px;
}

/* --- Base Body Styles --- */
body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--text-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    font-size: 16px; /* Base font size for rem calculations */
    overflow-x: hidden; /* Prevent horizontal scroll due to wide children */
}

/* Include padding/border in element width to avoid overflow on small screens */
*, *::before, *::after { box-sizing: border-box; }

/* Mobile touch improvements */
@media (max-width: 768px) {
    /* Ensure all interactive elements have proper touch targets */
    .feature-cta, .btn, button, a[onclick] {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        will-change: transform;
        transform: translateZ(0);
    }
    
    /* Prevent zoom on double-tap */
    input, select, textarea, button {
        font-size: 16px;
    }
    
    /* Improve touch responsiveness */
    .feature-card {
        touch-action: manipulation;
    }
    
    /* Optimize animations for mobile */
    * {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Reduce motion for better performance */
    .btn, .feature-cta, button {
        transition: transform 0.1s ease, opacity 0.1s ease;
    }
}

/* --- Container --- */
.container {
    width: 90% !important; /* Responsive width - override Tailwind */
    max-width: 1200px !important; /* Max width for larger screens */
    margin: 0 auto !important; /* Center container */
    padding: 0 15px !important; /* Horizontal padding for smaller screens */
}

/* --- Links --- */
a {
    text-decoration: none;
    color: var(--primary-green);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-green-dark);
}

/* --- Headings --- */
h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 0.75em;
    font-weight: 700; /* Default bold for headings */
}

/* Override Tailwind CSS defaults with !important */
h1 {
    font-size: 2.8rem !important; /* Large hero heading */
    line-height: 1.2 !important;
    font-weight: 900 !important; /* Extra bold for hero title */
}

h2 {
    font-size: 2.5rem !important; /* Section headings */
    text-align: center !important;
    font-weight: 900 !important; /* Extra bold for section titles */
}
h3 {
    font-size: 1.5rem; /* Sub-section/card headings */
}

/* --- Paragraphs --- */
p {
    margin-bottom: 1em;
}
.section-subtitle { /* Subtitle common to many sections */
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 2.5em;
}

/* --- Buttons --- */
.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
}

/* Common button hover effects */
.btn:hover {
    transform: translateY(-2px);
}

/* Core button variants */
.btn--primary {
    background: var(--background-card);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

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

.btn--gradient {
    background: var(--main-gradient);
    color: white;
    border: none;
}

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

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

.btn-light-gray,
.btn-primary-light {
    background: var(--background-card);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary-light {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

/* --- Gradient Text Styles --- */
.gradient-text,
.text-gradient-all-in-one,
.text-gradient-scales-with-you,
.text-gradient-entrepreneurs,
.text-gradient-all-in-one-tools {
    background: var(--main-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    padding: 2px 4px;
    border-radius: 4px;
}

.text-gradient-idea-to-launch {
    background: linear-gradient(135deg, #10B981 0%, #0ea4e9 100%);
    color: white;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- Utility Classes --- */
.hidden {
    display: none !important;
}

/* --- Spinner (Merged from both files) --- */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--spinner-bg);
    border-radius: 50%;
    border-top-color: var(--spinner-color);
    display: inline-block;
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color) !important;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: var(--background-card);
    color: var(--text-dark) !important;
    font-weight: 500;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background-color: var(--background-card);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    background-color: var(--background-card);
    color: var(--text-dark);
    font-weight: 500;
}

/* Error overlay */
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.error-overlay .error-content {
    background: #1f2937;
    color: #d1d5db;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #374151;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* --- Footer --- */
footer {
    background-color: var(--background-card);
    color: var(--text-on-light); /* Dark text for footer */
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}
footer p {
    margin: 0;
}

/* --- Tools Page Specific Styles --- */
.tools-main {
    min-height: 100vh;
    padding: 2rem 0;
    color: var(--text-dark);
    background: var(--light-bg-gradient);
}

/* Menu Header */
.menu-header {
    text-align: center;
    margin-bottom: 3rem;
}

.menu-header h1 {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.header-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Tool Navigation */
.tool-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    min-width: 120px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.nav-item.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.nav-item .nav-icon {
    font-size: 2rem;
}

.nav-item span {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.tool-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tool-section.active {
    display: block;
}

/* Data Insights Visualization Styles */
.data-insights-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.data-insights-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

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

.trends-section h4 {
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.trends-section p {
    margin: 0.5rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
    min-height: 400px;
    position: relative;
}

.chart-container-small {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

#trendsChart {
    max-height: 250px !important;
    width: 100% !important;
    height: 250px !important;
    display: block !important;
    background: transparent !important;
}

.keywords-section {
    margin-top: 1.5rem;
}

.keywords-section h4 {
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.keywords-explanation {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #4285f4;
}

.keywords-explanation p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.keywords-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.keyword-row {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.keyword-row:hover {
    background-color: #f8f9fa;
}

.keyword-row:last-child {
    border-bottom: none;
}

.keyword-rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6c757d;
    width: 40px;
    text-align: center;
    margin-right: 1rem;
}

.keyword-details {
    flex: 1;
}

.keyword-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.keyword-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.keyword-volume {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4285f4;
}

.keyword-rising .keyword-volume {
    color: #28a745;
}

.keyword-top .keyword-volume {
    color: #ff6b35;
}

.keyword-type-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 500;
    background: #f1f3f4;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.keyword-rising .keyword-type-label {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.keyword-top .keyword-type-label {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

/* Responsive adjustments for data insights */
@media (max-width: 768px) {
    .data-insights-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    #trendsChart {
        max-height: 200px !important;
        height: 200px !important;
    }
    
    .chart-container-small {
        padding: 0.75rem;
    }
    
    .keyword-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .keyword-rank {
        width: 30px;
        margin-right: 0.5rem;
    }
    
    .keyword-row {
        padding: 0.75rem;
    }
}

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

/* Error Message Styles */
.error-message {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    animation: fadeIn 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem;
    margin-left: auto;
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
    text-align: left;
}

.back-btn:hover {
    background: var(--background-card);
}

/* Tool Forms */
.tool-form {
    background: white;
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
    max-width: var(--card-max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Tool Results */
.tool-results {
    background: white;
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
    max-width: var(--card-max-width);
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #f0f0f0;
}

.tool-results.hidden {
    display: none;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.loading-spinner.hidden {
    display: none;
}

.loading-spinner p {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.results-content {
    animation: fadeIn 0.5s ease-in-out;
}

.results-content.hidden {
    display: none;
}

.results-content h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.results-content div {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
}

.result-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.result-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tool-description {
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Error Modal Styles --- */
.bg-dark-card {
    background-color: var(--bg-dark-card);
}

.text-bright-blue {
    color: var(--accent-blue);
}

.bg-bright-blue {
    background-color: var(--accent-blue);
}

/* --- Standardized Error Message Styles --- */
.error-message-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.error-message-content {
    background: #1f2937;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid #374151;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.error-message-icon {
    color: #ef4444;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.error-message-text {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.error-message-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.error-message-button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.error-message-button-primary {
    background: #00D4FF;
    color: white;
}

.error-message-button-primary:hover {
    background: #0099cc;
}

.error-message-button-secondary {
    background: #6b7280;
    color: white;
}

.error-message-button-secondary:hover {
    background: #4b5563;
}

.error-message-button-close {
    background: #374151;
    color: #d1d5db;
}

.error-message-button-close:hover {
    background: #4b5563;
}

/* --- Success Message Styles --- */
.success-message-icon {
    color: #10b981;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.success-message-text {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* --- Warning Message Styles --- */
.warning-message-icon {
    color: #f59e0b;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.warning-message-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.warning-message-text {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* --- Info Message Styles --- */
.info-message-icon {
    color: #00D4FF;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-message-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-message-text {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-dark-card);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.modal-header h2 {
    color: var(--text-on-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.modal-footer .btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.modal-footer .btn-primary {
    background: var(--primary-green);
    color: white;
}

.modal-footer .btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-1px);
}

.modal-footer .btn-secondary {
    background: #6b7280;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.modal-footer .btn-danger {
    background: #ef4444;
    color: white;
}

.modal-footer .btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-on-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 44px; /* Mobile touch target */
    height: 44px; /* Mobile touch target */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-content .form-group label {
    display: block;
    color: var(--text-on-dark) !important;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal-content .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.modal-content .form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.modal-content .form-group input::placeholder,
.modal-content .form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 400;
}

/* Invalid field styling */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Ensure all form inputs have consistent styling */
.tool-form input[type="text"],
.tool-form input[type="url"],
.tool-form textarea {
    border: 2px solid var(--border-color) !important;
    background-color: var(--background-card) !important;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
}

/* Field warning styling */
.field-warning {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Required indicator */
.required-indicator {
    color: #ef4444;
    font-weight: 700;
}

.modal-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 1rem;
}

.modal-btn:hover {
    background: var(--accent-blue-dark);
}

.modal-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    display: block;
    transition: color 0.2s ease;
}

.modal-link:hover {
    color: var(--accent-blue-light);
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Feedback Button */
.feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: #2D4A5A;
    color: white;
    padding: 20px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    font-family: Inter, sans-serif;
    width: auto;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile feedback button */
@media (max-width: 768px) {
    .feedback-button {
        min-width: 30px;
        height: 20px;
        border-radius: 30px;
    }
}

/* Notification styles for contact and feedback */
.notification-error {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    z-index: 9999;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #16a34a;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    z-index: 9999;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent-blue);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 8px 4px; /* Mobile touch target */
    margin: 0;
    transition: color 0.2s ease;
    min-height: 44px; /* Mobile touch target */
    display: inline-flex;
    align-items: center;
}

.link-btn:hover {
    color: var(--accent-blue-light);
}

.hidden {
    display: none !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) { /* Tablet and larger mobile devices */
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2.5rem !important; }
    .features-grid, .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust grid for smaller screens */
    }

    /* Hide CTA button in main nav on tool pages */
    .tools-main .auth-buttons .btn-primary {
        display: none;
    }

    /* Hamburger Menu Activation */
    .menu-toggle-label {
        display: inline-block; /* Show hamburger icon */
    }
    .main-nav { /* Navigation links container */
        display: none; /* Hide normal nav by default on mobile */
        position: absolute; /* Position it for dropdown */
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--background-card); /* White background for dropdown */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Shadow for dropdown */
        padding: 15px 0;
        border-top: 1px solid var(--border-color);
    }
    .main-nav ul {
        flex-direction: column; /* Stack nav items vertically */
        align-items: center; /* Center items in dropdown */
    }
    .main-nav ul li {
        margin-left: 0;
        margin-bottom: 15px; /* Space between stacked items */
        width: 90%; /* Make items take most of width */
        text-align: center;
    }
     .main-nav ul li:last-child {
        margin-bottom: 0;
    }
    .main-nav ul li a {
        display: block; /* Make links take full width of li for easier clicking */
        padding: 10px;
        min-height: 44px; /* Mobile touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* Show nav when checkbox (hamburger) is checked */
    .menu-toggle-checkbox:checked ~ .main-nav {
        display: block;
    }
    /* Hamburger icon animation to "X" when checked */
    .menu-toggle-checkbox:checked ~ .menu-toggle-label .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label .hamburger-line:nth-child(2) {
        opacity: 0; /* Middle line fades out */
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) { /* Smaller Mobile devices */
    /* Hide trust indicators on mobile to save vertical space */
    .hero .trust-indicators { display: none !important; }

    .tool-form,
    .tool-results {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .form-group input,
    .form-group textarea,
    .form-group select,
    .btn {
        max-width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-group label {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
        font-weight: 500;
    }
    
    .modal-content {
        padding: 1rem;
    }
    .modal-content .form-group input {
        padding: 0.75rem;
        font-size: 1rem;
    }
    /* Hamburger menu should already be active from 992px breakpoint */
    .auth-buttons {
        /* Example: Push auth buttons to the right if hamburger is on left, or stack them */
        margin-left: auto;
        gap: 0.5rem; /* Add gap between buttons */
    }
     .auth-buttons .login-btn {
        display: none; /* Optionally hide login text on very small screens, keep main button */
    }
     .auth-buttons .btn-primary {
        margin: auto !important;
        margin-left: 20px !important;
        font-size: 0.85rem !important; /* Smaller font for button */
        white-space: nowrap !important; /* Prevent text wrapping */
        min-width: auto !important; /* Allow button to shrink if needed */
    }

    h1 { font-size: 2.1rem !important; }
    h2 { font-size: 2.1rem !important; }
    .section-subtitle { font-size: 1rem; }

    .hero-buttons, .cta-buttons { /* Stack buttons in hero and CTA */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .hero-buttons .btn, .cta-buttons .btn {
        width: 80%; /* Make buttons wider on mobile */
        max-width: 300px; /* Max width for stacked buttons */
        margin-bottom: 0; /* Remove margin since we use gap */
    }

    /* Tools page responsive */
    .tools-main {
        padding: 1rem 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .strategic-features {
        gap: 1.5rem;
    }
    
    .strategic-feature {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .strategic-feature-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }
    
    .strategic-feature-content h3 {
        font-size: 1.3rem;
    }

    .strategic-feature-content p {
        font-size: 1.1rem;
    }
    
    .strategic-subheading {
        font-size: 1.1rem;
    }
    
    .tool-form,
    .tool-results {
        padding: 1.5rem;
    }
    
    .tab-content-header {
        padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
}

@media (max-width: 576px) { /* Very small mobile devices */
    /* Keep trust indicators hidden on very small screens */
    .hero .trust-indicators { display: none !important; }
    
    /* Additional mobile navigation fixes for very small screens */
    .nav-container {
        padding: 0 10px; /* Reduce container padding */
    }
    
    .auth-buttons .btn-primary {
        padding: 8px 8px !important; /* Even smaller padding for very small screens */
        font-size: 0.7rem; /* Smaller font */
        margin-left: 10px; /* Add margin to prevent overlap with logo */
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    .logo {
        font-size: 1.6rem !important; /* Smaller logo to prevent overflow */
        padding-left: 0 !important;
    }

    .tool-form,
    .tool-results {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.8rem !important; }
    .container { width: 95%; } /* More width for very small screens */

    .pricing-plans {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
    }

    .pricing-toggle .toggle-option {
        padding: 4px 6px;
        white-space: nowrap;
        font-size: 0.9rem;
    }
    
    .pricing-toggle .switch {
        margin: 0 6px;
    }

    .pricing-toggle { /* Stack pricing toggle options */
        flex-direction: column;
    }
    .pricing-toggle .switch {
        margin: 10px 0; /* Adjust margin for stacked switch */
    }
    .save-badge {
        margin-left: 8px; /* Keep inline with toggle */
    }

    /* Tools page responsive */
    .tool-card {
        padding: 1rem;
    }
    
    .tool-form,
    .tool-results {
        padding: 1rem;
    }
    
    .tab-content-header {
        padding: 1.5rem 1rem 1.5rem 1rem;
    }
    
    /* Construction notice mobile styles */
    .construction-notice {
        margin: 1rem 0 1.5rem 0;
        padding: 1rem;
    }
    
    .construction-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .construction-icon {
        font-size: 1.5rem;
    }
    
    .construction-text h3 {
        font-size: 1.1rem;
    }
    
    .construction-text p {
        font-size: 0.9rem;
    }
}

/* --- Header & Navigation --- */
header {
    background-color: var(--background-card);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-top: 0;
}

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

.logo {
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none !important;
}

.logo-gradient,
.logo-gradient:hover{
    color: #1b7098c3;
    font-weight: 900;
}
/* 34D399 / #06b5d4ae / 06b5d45b / 1b83958f / 1b83959d / 1b8395b2*/

.main nav {
    margin-top: 0 !important;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none !important;
    padding: 8px 0;
}

.main-nav ul li a:hover {
    color: var(--primary-green);
    text-decoration: none !important;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.auth-buttons .login-btn {
    margin-right: 16px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none !important;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
    min-height: 44px; /* Mobile touch target */
}

.auth-buttons .login-btn:hover {
    background: #f8fafc;
    border-color: var(--border-color);
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
    cursor: pointer;
}

.auth-buttons .btn-primary {
    background: var(--primary-green);
    color: white;
    padding: 10px 24px;
    border: 1px solid var(--primary-green);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 10px;
}

.auth-buttons .btn-primary:hover {
    background: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Hamburger Menu Styles (CSS-only toggle) */
.menu-toggle-checkbox {
    display: none; /* Hide the actual checkbox */
}
.menu-toggle-label { /* The hamburger icon */
    display: none; /* Hidden by default, shown on mobile via media query */
    cursor: pointer;
    padding: 10px; /* Clickable area */
    z-index: 1001; /* Above nav content when it slides out */
}
.hamburger-line { /* Individual lines of the hamburger */
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #10B981 0%, #1b7198 80%, #8B5CF6 100%);
    color: white; /* White text on gradient background */
    text-align: center;
    padding: 70px 0 70px; /* Vertical padding */
    overflow: hidden; /* For any potential decorative elements */
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 25px;
    color: white;
    font-size: 2.8rem !important; /* Ensure hero h1 maintains size */
    font-weight: 900 !important;
}
.hero .subtitle {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 35px;
    max-width: 650px; /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin: 0; /* Remove individual margins */
}

/* Enhanced Hero Buttons */
.btn-hero-primary {
    padding: 16px 32px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    background: var(--background-card) !important;
    color: var(--text-dark) !important;
    white-space: nowrap !important;
}

.btn-hero-secondary {
    padding: 16px 32px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    background: var(--background-card) !important;
    color: var(--text-dark) !important;
    white-space: nowrap !important;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.trust-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--background-card);
    border: 1px solid var(--background-card);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.testimonial-preview {
    background: var(--background-card);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--background-card);
    max-width: 400px;
    text-align: left;
}

.testimonial-preview .stars {
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: 8px;
}

.testimonial-preview p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-style: italic;
    line-height: 1.5;
}

.testimonial-preview .author {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ========================================
   HOMEPAGE FEATURES SECTION
   ======================================== */

/* Homepage Features Section Container */
.features-section {
    padding: 80px 0;
    background: linear-gradient(var(--background-card));
    position: relative;
    overflow: hidden;
    scroll-padding-top: 60px; /* Account for sticky header height */
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23E2E8F0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.features-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.features-header h2 {
    margin-bottom: 1rem !important;
    font-size: 2.8rem;
    font-weight: 900;
}

.features-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--main-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card-primary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-card-secondary {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.feature-card-tertiary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #E2E8F0;
}

.feature-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.feature-card-primary .feature-icon {
    color: var(--primary-green);
}

.feature-card-secondary .feature-icon {
    color: #06B6D4;
}

.feature-card-tertiary .feature-icon {
    color: #8B5CF6;
}

.feature-badge {
    background: var(--primary-green);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.feature-content h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.feature-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.7rem;
    margin-top: 1rem;
}

.feature-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tool-tag {
    background: linear-gradient(var(--background-card));
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-cta {
    display: inline-flex;
    align-items: center;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 12px 16px;
    text-align: center;
    justify-content: center;
    width: 100%;
    min-height: 44px; /* Minimum touch target size for mobile */
}

.feature-cta:hover {
    color: #059669;
    transform: translateX(4px);
}


/* ========================================
   TOOLS PAGE FEATURES OVERVIEW
   ======================================== */

/* Tools Page Features Overview Layout */
.features-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 60px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.feature-block {
    background: white;
    padding: 1.9rem 1.5rem 1.9rem 1.5rem;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    text-align: center;
}

.feature-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--main-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-block:hover::before {
    transform: scaleX(1);
}

.feature-block-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(var(--background-card));
    border: 1px solid #E2E8F0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-block-content h3 {
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.feature-block-content p {
    font-size: 0.95rem;
}

.feature-subheading {
    color: var(--primary-green-dark);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-cta-btn {
    margin-top: 10px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    background: var(--main-gradient);
    border: none;
    color: white;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 44px; /* Mobile touch target */
}

.feature-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.3s ease;
}

.feature-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Responsive adjustments for pricing plans */
@media (max-width: 992px) {
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin: 3rem auto 0;
    }
}

@media (max-width: 768px) {
    .pricing-controls-row {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }
    
    .pricing-currency-toggle {
        justify-content: center;
    }
    
    .pricing-toggle .toggle-option {
        padding: 6px 8px;
        white-space: nowrap;
    }
    
    .pricing-toggle .switch {
        margin: 0 8px;
    }
    
    .pricing-plans {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 1.5rem;
        max-width: 100%;
        margin: 2rem auto 0;
        padding: 0 1rem;
    }
    
    .plan-card {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 100%;
        text-align: center;
    }
    
    .plan-card h3 {
        font-size: 1.2rem;
    }
    
    .plan-description {
        font-size: 1rem;
        min-height: auto;
    }
    
    .price {
        font-size: 2.2rem;
    }
    
    .plan-features li {
        font-size: 1.1rem;
    }
}

/* Responsive adjustments for feature blocks */
@media (max-width: 768px) {
    /* New Features Section Mobile Styles */
    .features-section {
        padding: 60px 0;
        scroll-padding-top: 80px; /* Account for sticky header height on mobile */
    }
    
    .features-header h2 {
        font-size: 2.2rem !important;
    }
    
    .features-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .feature-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .feature-card-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 0.9rem;
        margin-top: 0.9rem;
        text-align: center;
    }
    
    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon {
        width: 30px;
        height: 30px;
    }
    
    .feature-content h3 {
        font-size: 1.3rem;
    }
    
    .feature-tools {
        gap: 0.4rem;
        justify-content: center;
    }
    
    .tool-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
    
    /* Mobile-specific feature button improvements */
    .feature-cta {
        min-height: 48px; /* Larger touch target on mobile */
        font-size: 1.1rem;
    }    
    
    /* Legacy Features Blocks Mobile Styles */
    .features-blocks {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
        margin-left: auto;
        margin-right: auto;
        max-width: var(--card-max-width);
    }
    
    .feature-block {
        padding: 30px 30px;
        margin-left: auto;
        margin-right: auto;
        max-width: var(--card-max-width);
    }
    
    .feature-block-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .feature-block-content h3 {
        font-size: 1.5rem;
    }

    .feature-block-content p {
        font-size: 1rem;
    }
    
    .feature-subheading {
        font-size: 1rem;
    }
}

/* Shared Icon Styles */
.feature-icon-large {
    width: 68px;
    height: 68px;
    transition: transform 0.3s ease;
}

/* Feature Tabs Styles */
.feature-tabs {
    margin-top: 40px;
}

.tab-button {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
    min-width: auto;
    flex-direction: row;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--main-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.tab-button:hover::before {
    transform: scaleX(1);
}

.tab-button.active {
    color: var(--text-light);
    border-bottom-color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    font-weight: 600;
}

.tab-button.active::before {
    transform: scaleX(1);
}

.tab-icon {
    font-size: 1.2rem;
    margin: 0;
    display: inline;
}

.tab-title {
    font-size: 1rem;
    font-weight: 500;
    color: inherit;
    margin: 0;
    display: inline;
}

.tab-description {
    display: none;
}

.tab-button.active .tab-title {
    color: inherit;
}

.tab-button.active .tab-description {
    color: inherit;
}

/* Tab content subheader */
.tab-content-header {
    display: none;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem 1.5rem 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.tab-content-header.active {
    display: block;
}

.tab-content-header h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

/* Page Header Styles */
.page-header {
    text-align: left;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature Section Styles */
.feature-section {
    padding: 40px 0;
}

.tool-tabs {
    margin-bottom: 40px;
}

/* Sidebar layout for tools pages */
.tools-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 100%;
}

.tools-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    padding: 1rem;
    height: fit-content;
    z-index: 20;
}

.sidebar-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    padding: 5px 5px 0 5px;
}
.sidebar-item {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-dark);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 400;
}
.sidebar-item:hover { background: #f8fafc; }

.sidebar-item.active {
    background: none;
    position: relative;
    font-weight: 500;
}

.sidebar-item.active .sidebar-text {
    background: var(--main-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.sidebar-item.active:hover {
    background: #f8fafc !important;
    color: var(--text-dark) !important;
}

.tools-content { min-width: 0; }

/* Sidebar buttons reuse .tab-button base but look like pills */
.tools-sidebar .tab-button {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.9);
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 600;
}
.tools-sidebar .tab-button.active {
    background: var(--light-green-gradient);
    color: var(--text-dark);
    border-color: #dbe7e1;
    box-shadow: 0 1px 0 0 #0EA5E9 inset;
}

.sidebar-divider {
    height: 1px;
    background: #eef2f7;
    margin: 10px 0;
    border: 0;
}

/* Tools menu toggle button (mobile only) */
.open-tools-menu {
    display: none;
    border: 1px solid var(--border-color);
    background: var(--background-card);
    color: var(--text-dark);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 400;
    min-height: 44px; /* Mobile touch target */
    min-width: 44px; /* Mobile touch target */
}

.tools-sidebar .close-tools-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above sidebar content */
    color: var(--text-dark);
    font-weight: bold;
    width: 44px; /* Mobile touch target */
    height: 44px; /* Mobile touch target */
    display: flex;
}

/* Responsive: collapse sidebar above mobile */
@media (max-width: 992px) {
    .tools-layout {
        grid-template-columns: 1fr;
    }
    .tools-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        padding: 16px 16px 24px; /* Minimal top padding */
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        background: var(--background-card); /* Solid white background */
        z-index: 1000; /* Ensure it's above everything */
    }

    .tools-content { margin-top: 12px; }
    .sidebar-section { min-width: 100%; margin: 0 0 16px 0; }
    body.tools-menu-open .tools-sidebar { transform: translateX(0); }
    .open-tools-menu { display: inline-block; }
    .tools-sidebar .close-tools-menu { display: inline-block; }
    
    /* Normal sidebar items on mobile */
    .tools-sidebar .sidebar-item {
        padding: 8px 12px;
        margin-bottom: 2px;
        line-height: 1.4;
        font-size: 0.85rem;
    }
    
    .tools-sidebar .sidebar-title {
        margin: 0 0 6px 0;
        font-size: 0.95rem;
    }
}

/* Backdrop for mobile sidebar */
.tools-backdrop {
    display: none;
}
@media (max-width: 992px) {
    .tools-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5); /* Darker backdrop */
        z-index: 999; /* Below sidebar but above content */
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    body.tools-menu-open .tools-backdrop {
        display: block;
        opacity: 1;
    }
}

.feature-icon-large {
    width: 68px;
    height: 68px;
    transition: transform 0.3s ease;
}

/* --- Pricing Section --- */
.pricing-section {
    padding: 80px 0 80px 0;
    background: var(--light-bg-gradient);
    color: var(--text-dark);
    position: relative;
    scroll-padding-top: 60px; /* Account for sticky header height */
}

.pricing-controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.pricing-currency-toggle {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.currency-select {
    background: var(--background-card);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.currency-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.pricing-toggle { /* Container for Monthly/Yearly switch */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-light);
    padding-top: 0;
}
.pricing-toggle .toggle-option {
    padding: 8px 15px;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-weight: 500;
}
.pricing-toggle .toggle-option.active { /* Style for the active toggle option */
    color: var(--text-dark);
    font-weight: 700;
}
.switch { /* The toggle switch itself */
    position: relative;
    display: inline-block;
    width: 50px; /* Smaller switch */
    height: 28px;
    margin: 0 15px;
}
.switch input { /* Hide the default checkbox */
    opacity: 0;
    width: 0;
    height: 0;
}
.slider { /* The track of the switch */
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc; /* Default off color */
    transition: .4s;
}
.slider:before { /* The knob of the switch */
    position: absolute;
    content: "";
    height: 20px; /* Smaller toggle circle */
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider { /* When switch is on */
    background-color: var(--primary-green);
}
input:checked + .slider:before { /* Move knob when switch is on */
    transform: translateX(22px);
}
.slider.round { /* Rounded track */
    border-radius: 28px;
}
.slider.round:before { /* Rounded knob */
    border-radius: 50%;
}
.save-badge { /* "Save 17%" badge */
    background: var(--light-green-gradient);
    color: var(--primary-green);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 10px;
    white-space: nowrap;
    display: inline-block;
}
.pricing-plans { /* Grid for pricing cards */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
}
.plan-card { /* Individual pricing card */
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: left;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--main-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-card.recommended { /* Special style for recommended plan */
    border: 2px solid var(--primary-green);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transform: scale(1.02);
}

.plan-card.recommended::before {
    transform: scaleX(1);
    background: var(--primary-green);
}

.recommended-badge { /* "MOST VALUE" badge on top of card */
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    z-index: 10;
}

.plan-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
}

.plan-icon svg {
    width: 40px;
    height: 40px;
}

.plan-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    position: relative;
}

.plan-card h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), #06B6D4);
    border-radius: 2px;
}

.plan-description {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 60px;
}

.price {
    font-size: 2.7rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1;
}

.price sup {
    font-size: 1.3rem;
    font-weight: 600;
    top: -0.6em;
}

.price .price-period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.1;
}

.plan-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: transparent;
    color: var(--text-dark);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.plan-features li img {
    display: none; /* Hide the old checkmark images */
}

.plan-card .plan-button {
    width: 100%;
    margin-top: auto;
    text-align: center;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Mobile touch target */
}

.plan-card .btn-primary {
    background: var(--main-gradient);
    color: white;
    border: none;
}

.plan-card .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.plan-card .btn-outline {
    background: #f8fafc;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
}

.plan-card .btn-outline:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--background-card);
}
.testimonial-hook { /* "Validate. Generate. Launch." text */
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--background-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.stars { /* Star ratings */
    color: #ffc107; /* Yellow for stars */
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.testimonial-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}
.author-info { /* Container for avatar and author name/title */
    display: flex;
    align-items: center;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover; /* Ensure avatar image covers the area */
}
.author-name {
    margin: 0 0 3px 0;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}
.author-title {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Call to Action (CTA) Section --- */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #10B981 0%, #8B5CF6 50%, #06b5d4ae 100%);
    color: var(--text-on-dark); /* White text on dark gradient */
    text-align: center;
    position: relative;
    overflow: hidden;
    scroll-padding-top: 80px; /* Account for sticky header height */
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}
.cta-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}
.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.3rem;
    margin-bottom: 15px;
}
.cta-section .subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9; /* Slightly transparent text for better blend */
}
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    margin: 0; /* Remove individual margins */
}

.cta-buttons .btn-hero-primary {
    padding: 16px 32px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    background: var(--background-card) !important;
    color: var(--text-dark) !important;
    white-space: nowrap !important;
}

.cta-buttons .btn-hero-secondary {
    padding: 16px 32px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    background: var(--background-card) !important;
    color: var(--text-dark) !important;
    white-space: nowrap !important;
}

/* Inline checkbox styles for better positioning */
.checkbox-inline {
    margin-bottom: 1rem;
}

.checkbox-inline .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-inline .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.checkbox-inline .checkbox-text {
    font-weight: 600;
    color: var(--text-dark);
}

/* Content formatting styles for results */
.text-h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.text-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.25rem;
}

.text-h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1rem 0 0.5rem 0;
}

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

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

.text-ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.text-li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.text-bullet {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* ============================================================================
   UTILITY CLASSES (consolidated from JavaScript)
   ============================================================================ */

/* Border Utility Classes */
.border-bright-blue {
    border-color: var(--accent-blue);
}

/* Image Styling */
.ai-generated-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

.text-bullet strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================================================
   AUTHENTICATION & PRICING MODAL STYLES
   ============================================================================ */

/* Essential Modal Classes */
.fixed.inset-0 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.flex.items-center.justify-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex.items-start.justify-center {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.flex.justify-between.items-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex.justify-center.space-x-3 {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.flex.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Grid Layout */
.grid.grid-cols-1.md\:grid-cols-3.gap-6 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid.grid-cols-1.md\:grid-cols-3.gap-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky.top-0 {
    position: sticky;
    top: 0;
}

.z-50 {
    z-index: 50;
}

.z-\[9999\] {
    z-index: 9999;
}

.z-10 {
    z-index: 10;
}

/* Sizing */
.w-full {
    width: 100%;
}

.w-4.h-4 {
    width: 1rem;
    height: 1rem;
}

.w-32 {
    width: 8rem;
}

.max-w-sm {
    max-width: 24rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-h-\[90vh\] {
    max-height: 90vh;
}

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pb-2 { padding-bottom: 0.5rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

/* Typography */
.text-center { text-align: center; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Colors */
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-red-400 { color: #f87171; }
.text-yellow-400 { color: #facc15; }
.text-green-400 { color: #4ade80; }

.bg-gray-600 { background-color: #4b5563; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-green-500 { background-color: #10b981; }
.bg-bright-blue { background-color: var(--accent-blue); }
.bg-bright-blue\/90 { background-color: rgba(0, 212, 255, 0.9); }
.bg-bright-blue\/70 { background-color: rgba(0, 212, 255, 0.7); }
.bg-black.bg-opacity-60 { background-color: rgba(0, 0, 0, 0.6); }

/* Borders */
.border.border-gray-700 { border: 1px solid #374151; }
.border.border-gray-600 { border: 1px solid #4b5563; }
.border-2.border-bright-blue { border: 2px solid var(--accent-blue); }
.border-b { border-bottom-width: 1px; }

/* Border Radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }

/* Transforms */
.transform.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.transform.-translate-y-1\/2 {
    transform: translateY(-50%);
}

/* Positioning */
.top-0 { top: 0; }
.-top-3 { top: -0.75rem; }
.left-1\/2 { left: 50%; }
.-left-20 { left: -5rem; }
.top-1\/2 { top: 50%; }

/* Overflow */
.overflow-y-auto { overflow-y: auto; }

/* Display */
.hidden { display: none; }

/* Whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover States */
.hover\:bg-gray-500:hover { background-color: #6b7280; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:underline:hover { text-decoration: underline; }

/* Responsive */
@media (min-width: 640px) {
    .sm\:p-8 { padding: 2rem; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:inline { display: inline; }
    .sm\:justify-center { justify-content: center; }
    .sm\:left-full { left: 100%; }
    .sm\:ml-3 { margin-left: 0.75rem; }
    .sm\:block { display: block; }
}

/* Plan Selection Modal Specific Styles */
/* Pricing Modal - Using Homepage Styles */
.pricing-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.pricing-modal-content {
    background: var(--light-bg-gradient);
    border-radius: 16px;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 1rem 0;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pricing-modal-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.pricing-modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pricing-modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Account Info Styles */
.account-info-item {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.account-info-label {
    color: #ffffff;
    font-weight: 500;
}

.account-info-value {
    color: #ffffff;
    font-weight: 400;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: var(--bg-dark-card);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid #374151;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Error and Success Message Styles */
.error-message {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    animation: fadeIn 0.3s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Account Info Styles */
.account-info-item {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.account-info-label {
    color: #9ca3af;
    font-weight: 500;
}

.account-info-value {
    color: #ffffff;
    font-weight: 400;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: var(--bg-dark-card);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid #374151;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}