/* WebGate.Ai™ Apple-Style Clean Design */

/* Root Variables - Apple-Style Theme */
:root {
    --primary-color: #20B2AA; /* Teal - main brand color */
    --secondary-color: #9966CC; /* Purple - secondary actions */
    --action-color: #FF8C42; /* Light orange - action buttons */
    --success-color: #32D74B;
    --warning-color: #FF9F0A;
    --error-color: #FF453A;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --background-primary: #FFFFFF;
    --background-secondary: #F2F2F7;
    --background-tertiary: #F8F9FA;
    --border-color: #D1D1D6;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-large: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --footer-bg: #2C2C2E;
    --footer-teal-bar: var(--primary-color);
}

/* Floating Subscription Button */
.floating-subscription-btn {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 999;
    background: linear-gradient(135deg, #45C4BC, #ED8936);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(69, 196, 188, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
}

.floating-subscription-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(69, 196, 188, 0.4);
    color: white;
    text-decoration: none;
}

.floating-subscription-btn i {
    font-size: 16px;
}

.floating-subscription-btn.scrolled {
    top: 20px;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .floating-subscription-btn {
        top: 80px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
        min-width: 160px;
    }
    
    .floating-subscription-btn.scrolled {
        top: 15px;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header Styles - Updated to match reference */
.header {
    background: var(--background-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(69, 196, 188, 0.1);
    transform: translateY(-1px);
}

.nav-links a.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(69, 196, 188, 0.3);
}

/* Authentication Navigation Styles */
.user-welcome {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--action-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-radius: 6px;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-btn, .register-btn, .logout-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.login-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(69, 196, 188, 0.3);
}

.register-btn {
    color: white;
    background: linear-gradient(135deg, var(--action-color), #e07628);
}

.register-btn:hover {
    background: linear-gradient(135deg, #e07628, var(--action-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
}

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

.logout-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

/* User History Page Styles */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title i {
    margin-right: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.history-card {
    background: var(--background-primary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.history-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--background-secondary), var(--background-tertiary));
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.site-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.site-info h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.analysis-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.analysis-date i {
    margin-right: 0.5rem;
}

.overall-score {
    text-align: center;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 15px rgba(69, 196, 188, 0.3);
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
}

.card-body {
    padding: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-tertiary);
    border-radius: var(--border-radius);
}

.metric i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.platform-scores {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.platform-score {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.platform-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 90px;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: var(--background-secondary);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.score-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 30px;
    text-align: right;
}

.card-footer {
    padding: 1.5rem;
    background: var(--background-tertiary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* reCAPTCHA styling */
.recaptcha-container {
    background: var(--background-secondary);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.recaptcha-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(32, 178, 170, 0.1);
}

.g-recaptcha {
    display: inline-block;
}

/* Make sure reCAPTCHA is centered on mobile */
@media (max-width: 768px) {
    .recaptcha-container {
        padding: 0.75rem;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.75);
        transform-origin: center;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(69, 196, 188, 0.3);
    color: white;
}

.badge-new {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.pagination-info {
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .history-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--background-primary);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-radius: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

/* Floating Manage Subscription Button */
.manage-subscription {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.manage-subscription:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    margin: 2rem 0;
}

.stat-item {
    display: inline-block;
    background: rgba(255,255,255,0.95);
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 0.5rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #6f42c1 !important;
}

.stat-item p {
    color: #374151 !important;
    font-weight: 500;
    margin: 0;
}

.example-sites {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.example-site {
    background: rgba(255,255,255,0.95);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    color: #374151 !important;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Preview Section */
.preview-section {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.preview-scores {
    text-align: center;
}

.main-score {
    margin-bottom: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.score-circle.excellent {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.score-circle.good {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.score-circle.needs-improvement {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.component-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.component-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.component-label {
    font-weight: 500;
}

.component-value {
    font-weight: bold;
    color: #2c3e50;
}

.preview-details h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.platform-scores, .valuation-preview {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.platform-item, .valuation-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.platform-item:last-child, .valuation-item:last-child {
    border-bottom: none;
}

.platform-item .score, .valuation-item .value {
    font-weight: bold;
    color: #2c3e50;
}

/* Form Section - Updated with Reference Site White Backgrounds */
.form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--form-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.form-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.analysis-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-group input, .form-group select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--form-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(69, 196, 188, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.submit-btn {
    background: linear-gradient(45deg, var(--primary-color), #d17829);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
    background: linear-gradient(45deg, #f19d4b, var(--primary-color));
}

.submit-btn i {
    margin-right: 0.5rem;
}

/* Disclaimer Styling - Reference Site Style */
.disclaimer {
    background: var(--disclaimer-bg);
    border: 2px solid var(--disclaimer-border);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.disclaimer p {
    margin: 0;
    line-height: 1.4;
}

.disclaimer strong {
    color: #495057;
}

/* Results Page Styles */
.results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.results-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.site-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-url {
    font-size: 1.2rem;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.analysis-date {
    font-size: 1rem;
    opacity: 0.8;
}

/* Dashboard Styles */
.score-dashboard {
    padding: 60px 0;
    background: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.main-score-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.score-display {
    margin-bottom: 2rem;
}

.score-display h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
    color: #2c3e50;
}

.score-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.breakdown-item .label {
    font-weight: 500;
    color: #2c3e50;
}

.breakdown-item .value {
    font-weight: bold;
    color: #e74c3c;
}

.quick-stats {
    display: grid;
    gap: 1rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Platform Scores */
.platform-scores {
    padding: 60px 0;
    background: #f8f9fa;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.platform-info h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.platform-info p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.platform-score {
    margin-bottom: 1.5rem;
}

.score-circle-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    color: white;
}

.score-breakdown-small {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.platform-chart {
    height: 150px;
    position: relative;
}

/* Google SEO Metrics */
.google-seo {
    padding: 60px 0;
    background: white;
}

.google-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.metric-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.metric-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-header i {
    font-size: 2rem;
    color: #3498db;
}

.metric-header h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
}

.loading-time {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e74c3c;
}

/* Valuation Section */
.valuation-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.valuation-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.valuation-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.valuation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.valuation-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.valuation-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 1rem;
}

.valuation-details {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-item.owner-proceeds {
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
}

.detail-item .label {
    font-weight: 500;
    color: #2c3e50;
}

.detail-item .value {
    font-weight: bold;
    color: #27ae60;
}

.valuation-chart {
    height: 300px;
    position: relative;
}

/* Traffic Analysis */
.traffic-analysis {
    padding: 60px 0;
    background: white;
}

.traffic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.traffic-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.traffic-header {
    text-align: center;
    margin-bottom: 2rem;
}

.traffic-header h4 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.traffic-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

.traffic-breakdown {
    display: grid;
    gap: 1rem;
}

.traffic-chart {
    height: 300px;
    position: relative;
}

/* Local Listings */
.local-listings {
    padding: 60px 0;
    background: #f8f9fa;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.listing-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.listing-header h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.listing-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.listing-status.active {
    background: #d4edda;
    color: #155724;
}

.listing-status.needs-setup {
    background: #fff3cd;
    color: #856404;
}

.listing-status.incomplete {
    background: #f8d7da;
    color: #721c24;
}

.listing-score {
    text-align: center;
    margin-bottom: 1rem;
}

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

.impact-label {
    font-weight: 500;
    color: #2c3e50;
}

.impact-value {
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.impact-value.high {
    background: #f8d7da;
    color: #721c24;
}

.impact-value.medium {
    background: #fff3cd;
    color: #856404;
}

.impact-value.low {
    background: #d4edda;
    color: #155724;
}

/* Recommendations */
.recommendations {
    padding: 60px 0;
    background: white;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.recommendation-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #3498db;
}

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

.rec-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.rec-priority.high {
    background: #f8d7da;
    color: #721c24;
}

.rec-priority.medium {
    background: #fff3cd;
    color: #856404;
}

.rec-priority.low {
    background: #d4edda;
    color: #155724;
}

.rec-category {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.recommendation-card h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.recommendation-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

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

.rec-details .label {
    font-weight: 500;
    color: #2c3e50;
}

.rec-details .value {
    font-weight: bold;
    color: #3498db;
}

/* Competitor Section */
.competitor-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.competitor-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.competitor-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.competitor-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
}

.competitor-form .btn {
    background: linear-gradient(45deg, var(--primary-color), #d17829);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.competitor-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
    background: linear-gradient(45deg, #f19d4b, var(--primary-color));
}

/* Competitor Results */
.comparison-dashboard {
    padding: 60px 0;
    background: white;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
}

.comparison-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.comparison-card.your-site {
    border-left: 4px solid #27ae60;
}

.comparison-card.competitor-site {
    border-left: 4px solid #e74c3c;
}

.card-header {
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.card-header .site-url {
    font-size: 0.9rem;
    color: #7f8c8d;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.main-score {
    margin-bottom: 2rem;
}

.main-score p {
    color: #7f8c8d;
    margin-top: 0.5rem;
}

.platform-scores {
    display: grid;
    gap: 0.5rem;
}

.platform-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 5px;
}

.platform-item .score {
    font-weight: bold;
    color: #2c3e50;
}

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

.vs-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.score-difference {
    text-align: center;
}

.diff-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.diff-value.positive {
    color: #27ae60;
}

.diff-value.negative {
    color: #e74c3c;
}

.diff-value.neutral {
    color: #7f8c8d;
}

.diff-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Detailed Comparison */
.detailed-comparison {
    padding: 60px 0;
    background: #f8f9fa;
}

.comparison-chart {
    height: 400px;
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Competitive Analysis */
.competitive-analysis {
    padding: 60px 0;
    background: white;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #3498db;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.insight-header i {
    font-size: 1.5rem;
    color: #3498db;
}

.insight-header h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.insight-content p {
    margin-bottom: 1rem;
}

.insight-content p.positive {
    color: #27ae60;
    font-weight: 500;
}

.insight-content p.negative {
    color: #e74c3c;
    font-weight: 500;
}

.insight-content p.neutral {
    color: #7f8c8d;
    font-weight: 500;
}

.insight-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.insight-content li {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Action Items */
.action-items {
    padding: 60px 0;
    background: #f8f9fa;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.priority-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.action-card.high-priority .priority-badge {
    background: #f8d7da;
    color: #721c24;
}

.action-card.medium-priority .priority-badge {
    background: #fff3cd;
    color: #856404;
}

.action-card.low-priority .priority-badge {
    background: #d4edda;
    color: #155724;
}

.action-card h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.action-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.action-timeline {
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 500;
}

/* History Page */
.history-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.history-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.email-info {
    font-size: 1.1rem;
    opacity: 0.9;
}

.history-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.history-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.history-card .card-header {
    background: #f8f9fa;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-card .site-info h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.history-card .analysis-date {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.history-card .main-score {
    text-align: center;
}

.history-card .card-content {
    padding: 1.5rem;
}

.history-card .score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.history-card .breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
}

.history-card .valuation-info {
    display: grid;
    gap: 0.5rem;
}

.history-card .valuation-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #e8f5e8;
    border-radius: 5px;
    font-size: 0.9rem;
}

.history-card .card-actions {
    padding: 1.5rem;
    background: #f8f9fa;
}

.history-card .btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.history-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    color: white;
}

.no-history {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-history-icon {
    font-size: 4rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.no-history h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-history p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

/* Analysis Preloader */
.analysis-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.98), rgba(52, 73, 94, 0.98));
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.preloader-container {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
}

.preloader-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.preloader-header {
    margin-bottom: 2rem;
}

.preloader-header h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
}

.preloader-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #e8f4fd;
}

.progress-section {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.progress-circle {
    position: relative;
    display: inline-block;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
}

.progress-bar-container {
    width: 100%;
    max-width: 400px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    width: 0%;
    transition: width 0.8s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.phase-indicator {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.phase-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.phase-emoji {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

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

.phase-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.phase-details {
    text-align: center;
}

.phase-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #e8f4fd;
}

.analysis-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.step.active {
    background: rgba(52, 152, 219, 0.3);
    border-color: #3498db;
    transform: scale(1.05);
}

.step.completed {
    background: rgba(39, 174, 96, 0.3);
    border-color: #27ae60;
}

.step-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.25rem;
    color: #fff;
}

.step-status {
    font-size: 0.8rem;
    opacity: 0.8;
    color: #e8f4fd;
}

.step-status::before {
    content: '⏳ ';
}

.step.active .step-status::before {
    content: '🔄 ';
}

.step.completed .step-status::before {
    content: '✅ ';
}

.estimated-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #e8f4fd;
}

.estimated-time i {
    color: #3498db;
}

/* Competitor Analysis Preloader */
.competitor-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.98), rgba(74, 144, 226, 0.98));
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.competitor-preloader .preloader-header h2 {
    color: #fff;
}

.competitor-preloader .preloader-header p {
    color: #e8f4fd;
}

.competitor-preloader .progress-fill {
    background: linear-gradient(45deg, #8e44ad, #4a90e2);
}

.competitor-preloader .phase-indicator {
    background: rgba(255, 255, 255, 0.15);
}

.competitor-preloader .step.active {
    background: rgba(142, 68, 173, 0.3);
    border-color: #8e44ad;
}

/* Responsive Design for Preloader */
@media (max-width: 768px) {
    .preloader-content {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .preloader-header h2 {
        font-size: 1.5rem;
    }
    
    .preloader-header p {
        font-size: 1rem;
    }
    
    .analysis-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .step {
        padding: 0.75rem 0.5rem;
    }
    
    .step-icon {
        font-size: 1.2rem;
    }
    
    .step-text {
        font-size: 0.8rem;
    }
    
    .progress-bar-container {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .analysis-steps {
        grid-template-columns: 1fr;
    }
    
    .preloader-header h2 {
        font-size: 1.3rem;
    }
    
    .phase-text {
        font-size: 1rem;
    }
    
    .progress-percentage {
        font-size: 1.2rem;
    }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-section {
    text-align: center;
    max-width: 600px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.footer-section p {
    color: #9CA3AF;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links-inline {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links-inline a {
    color: #9CA3AF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-links-inline a:hover {
    color: var(--primary-color);
    background: rgba(69, 196, 188, 0.1);
}

.footer-bottom {
    border-top: 1px solid #4B5563;
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
    margin: 0;
}

.pricing-links {
    display: flex;
    gap: 1rem;
}

.price-link {
    background: linear-gradient(45deg, var(--primary-color), #d17829);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.price-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.4);
    color: white;
    background: linear-gradient(45deg, #f19d4b, var(--primary-color));
}

@media (max-width: 768px) {
    .footer-links-inline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links-inline a {
        text-align: center;
    }
}

.results-footer {
    background: #34495e;
}

/* History Section Styles */
.history-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.history-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: #7f8c8d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--secondary-color);
}

.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

.history-grid {
    display: grid;
    gap: 1.5rem;
}

.history-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--secondary-color);
}

.history-card.current {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, #fff 0%, #fff9f0 100%);
}

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

.site-url {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1rem;
}

.analysis-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.analysis-badge.current {
    background: var(--primary-color);
    color: white;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

.current-label {
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
}

.btn-history {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--secondary-color), #38a89d);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(69, 196, 188, 0.3);
}

.btn-history:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(69, 196, 188, 0.4);
    color: white;
    text-decoration: none;
}

.load-more-history {
    text-align: center;
    margin-top: 2rem;
}

.competitor-history-grid {
    display: grid;
    gap: 1.5rem;
}

.competitor-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
}

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

.competitor-url {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1rem;
}

.comparison-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.score-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.your-score, .competitor-score {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 120px;
}

.score-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.score-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

.vs-divider {
    font-weight: bold;
    color: #95a5a6;
    font-size: 1.2rem;
}

.btn-view-comparison {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-view-comparison:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state span {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .comparison-vs {
        order: 2;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
    }
    
    .google-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .valuation-breakdown {
        grid-template-columns: 1fr;
    }
    
    .traffic-grid {
        grid-template-columns: 1fr;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .pricing-links {
        flex-direction: column;
    }
    
    .manage-subscription {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 1rem 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .example-sites {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }
    
    .component-scores {
        grid-template-columns: 1fr;
    }
    
    .score-breakdown {
        grid-template-columns: 1fr;
    }
    
    .google-metrics {
        grid-template-columns: 1fr;
    }
    
    .history-card .score-breakdown {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .manage-subscription,
    .competitor-section,
    .nav-links {
        display: none;
    }
    
    .hero,
    .results-header {
        background: none;
        color: #333;
    }
    
    .score-circle,
    .score-circle-small {
        background: none;
        border: 2px solid #333;
        color: #333;
    }
    
    .platform-card,
    .metric-card,
    .valuation-card,
    .traffic-card,
    .listing-card,
    .recommendation-card,
    .insight-card,
    .action-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .platform-chart,
    .valuation-chart,
    .traffic-chart,
    .comparison-chart {
        display: none;
    }
}

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

/* Focus styles */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .score-circle,
    .score-circle-small {
        border: 2px solid currentColor;
    }
    
    .progress-fill {
        background: currentColor;
    }
    
    .platform-icon {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .preloader-spinner {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .header {
        background: #2c2c2c;
    }
    
    .form-container,
    .platform-card,
    .metric-card,
    .valuation-card,
    .traffic-card,
    .listing-card,
    .recommendation-card,
    .insight-card,
    .action-card,
    .history-card {
        background: #2c2c2c;
        color: #e0e0e0;
    }
    
    .form-group input,
    .form-group select {
        background: #3c3c3c;
        border-color: #4c4c4c;
        color: #e0e0e0;
    }
    
    .component-item,
    .breakdown-item,
    .detail-item,
    .platform-item,
    .valuation-item,
    .traffic-breakdown .breakdown-item {
        background: #3c3c3c;
    }
}

/* Pricing Page Styles */
.pricing-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0 60px;
    color: white;
    text-align: center;
}

.pricing-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.pricing-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.price {
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: #7f8c8d;
}

.savings {
    color: #27ae60;
    font-weight: bold;
    margin-top: 0.5rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--secondary-color);
    width: 20px;
}

.consultation-section {
    margin-top: 3rem;
}

.consultation-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 3rem;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

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

.consultation-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.consultation-info p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.consultation-info ul {
    list-style: none;
    padding: 0;
}

.consultation-info li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.consultation-price {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.management-section {
    margin-top: 2rem;
}

.management-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.faq-section {
    padding: 60px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    background: #f8f9fa;
    border-radius: 8px;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Form Layout Updates */
.checkbox-section {
    margin: 2rem 0;
}

.checkbox-group.right-align {
    text-align: right;
}

.checkbox-group.right-align .checkbox-label {
    justify-content: flex-end;
    flex-direction: row-reverse;
    gap: 1rem;
}

.button-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    color: white;
    text-decoration: none;
}

/* Additional Mobile Responsive Styles for History Section */
@media (max-width: 768px) {
    .history-stats {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    
    .tab-buttons {
        flex-direction: column !important;
        gap: 0.5rem;
        border-bottom: none !important;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        border-bottom: none !important;
        border-radius: 8px;
        background: #f8f9fa;
    }
    
    .tab-btn.active {
        background: var(--primary-color) !important;
        color: white !important;
        border-bottom-color: transparent !important;
    }
    
    .score-comparison {
        flex-direction: column !important;
        gap: 1rem;
    }
    
    .your-score, .competitor-score {
        min-width: auto;
        width: 100%;
    }
    
    .history-card, .competitor-card {
        padding: 1.5rem;
    }
    
    .competitor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .btn-history, .btn-view-comparison {
        width: 100%;
        justify-content: center;
    }
    
    .button-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .submit-btn, .upgrade-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pricing-title {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .consultation-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
/* Hexagonal Performance Analysis Styles */
.hexagon-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 4rem 0;
    margin: 2rem 0;
}

.hexagon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hexagon-legend {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ecf0f1;
    font-size: 1rem;
    font-weight: 500;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
}

/* Google PageSpeed Insights Styles */
.google-pagespeed {
    background: #f8f9fa;
    padding: 4rem 0;
    margin: 2rem 0;
}

.google-pagespeed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.pagespeed-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.pagespeed-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagespeed-section h3 i {
    color: #74b9ff;
}

.pagespeed-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #74b9ff;
}

.metric-label {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.metric-value {
    font-weight: bold;
    color: #27ae60;
    margin: 0 1rem;
    min-width: 60px;
    text-align: center;
}

.metric-bar {
    width: 100px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 50%, #00b894 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.metric-fill.speed-indicator {
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #27ae60 100%);
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    padding: 2rem;
    font-style: italic;
}

.legacy-data {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Mobile responsive updates for new sections */
@media (max-width: 768px) {
    .google-pagespeed-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hexagon-container {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Business Type Form Styling */
.business-type-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.business-type-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hybrid-percentages {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.range-labels span:nth-child(2) {
    font-weight: bold;
    color: #495057;
}

input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

/* Marketing Recommendations Section */
.marketing-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    margin: 2rem 0;
    color: white;
}

.marketing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.marketing-budget {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.marketing-channels {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.budget-display {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.budget-description {
    text-align: center;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.channel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.channel-name {
    font-weight: 500;
}

.channel-percentage {
    font-weight: bold;
    font-size: 1.1rem;
}

.ai-strategy {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
}

.strategy-content {
    line-height: 1.6;
    font-size: 1rem;
}

.strategy-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.strategy-input {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.strategy-input input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.strategy-input button {
    padding: 0.8rem 1.5rem;
    background: #ffffff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.strategy-input button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Improved preloader styling */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.preloader-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.preloader h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.progress-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px;
    margin: 2rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 20px;
    background: linear-gradient(90deg, #00d4aa, #00d4ff);
    border-radius: 20px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-percentage {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-status {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
}

.progress-detail {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
}

/* Mobile responsive updates */
@media (max-width: 768px) {
    .marketing-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .strategy-input {
        flex-direction: column;
    }
    
    .budget-display {
        font-size: 2rem;
    }
    
    .progress-percentage {
        font-size: 2rem;
    }
}

/* Survey-Style Preloader Styles */
.survey-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 20px;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.loading-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
    opacity: 0;
    animation: spin 1s linear infinite, fadeIn 1s ease 1.5s forwards;
}

.loading-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #45C4BC, #ED8936);
    border-radius: 3px;
    animation: progress 5s ease-in-out;
}

.loading-steps {
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 1s ease 2.5s forwards;
}

.loading-step {
    margin: 10px 0;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.loading-step.active {
    opacity: 1;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Enhanced Blueprint Styling */
.blueprint-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
}

.blueprint-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.blueprint-header h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.blueprint-meta {
    background: linear-gradient(135deg, #45C4BC 0%, #ED8936 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    display: inline-block;
    font-size: 0.9rem;
}

.blueprint-sections {
    display: grid;
    gap: 1.5rem;
}

.blueprint-section-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blueprint-section-card:hover {
    border-color: #45C4BC;
    box-shadow: 0 4px 15px rgba(69, 196, 188, 0.1);
}

.section-header {
    background: #f8f9fa;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.section-header h4 {
    margin: 0;
    color: #2c3e50;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: #45C4BC;
    font-size: 1.2rem;
}

.section-content {
    padding: 1.5rem;
    display: none;
    background: white;
}

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

.strategy-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.metric {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.metric-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #45C4BC;
}

.tactics-list {
    display: grid;
    gap: 1rem;
}

.tactic-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid #e9ecef;
}

.tactic-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.tactic-priority.high {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.tactic-priority.medium {
    background: linear-gradient(135deg, #ED8936 0%, #ea580c 100%);
    color: white;
}

.tactic-priority.low {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.tactic-details {
    flex: 1;
}

.tactic-details h5 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.tactic-details p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    line-height: 1.5;
}

.tactic-metrics {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.tactic-metrics span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.budget-breakdown {
    display: grid;
    gap: 1rem;
}

.budget-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
}

.budget-category {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.budget-amount {
    font-size: 1.125rem;
    font-weight: bold;
    color: #45C4BC;
    margin-bottom: 0.75rem;
}

.budget-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.budget-fill {
    height: 100%;
    background: linear-gradient(90deg, #45C4BC 0%, #ED8936 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

.blueprint-actions {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.download-blueprint-btn {
    background: linear-gradient(135deg, #45C4BC 0%, #ED8936 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.download-blueprint-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(69, 196, 188, 0.3);
    color: white;
    text-decoration: none;
}

