/* ============================================
   ContentProHub Blog Styles - Consolidated
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

/* ============================================
   LAYOUT & STRUCTURE
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 968px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    
    .toc-sidebar {
        position: static !important;
        margin-bottom: 40px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 40px;
    margin: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CATEGORY & META STYLES
   ============================================ */
.category-tag {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.toc-sidebar {
    position: sticky;
    top: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.toc-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: #666;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-left: 3px solid transparent;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
    color: #0066cc;
    border-left-color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
article {
    position: relative;
    z-index: 20;
    background: white;
    padding-top: 40px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */
img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100%;
    height: auto;
}

.lazy-load,
img.lazy-load,
img[loading="lazy"] {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-image-container { 
    margin: 30px 0; 
    text-align: center; 
}

.hero-image { 
    max-width: 100%; 
    height: auto; 
    border-radius: 12px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); 
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

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

.text-muted {
    color: #6c757d;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.no-top-margin {
    margin-top: 0;
}

/* ============================================
   SPECIAL CONTENT BOXES
   ============================================ */
.highlight-box {
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.success-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

/* ============================================
   CTA BUTTONS
   ============================================ */
.cta-button {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 20px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102,126,234,0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* ============================================
   SEO COMPONENTS DYNAMIC ELEMENTS
   ============================================ */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e9ecef;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: #0066cc;
    width: 0%;
    transition: width 0.2s ease;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9rem;
}

.breadcrumbs {
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

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

.breadcrumbs span {
    margin: 0 8px;
    color: #6c757d;
}

/* TOC added by JavaScript (not sidebar) */
.toc {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: #333;
    text-decoration: none;
}

.toc a:hover {
    color: #0066cc;
}

.social-proof-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 300px;
    z-index: 1000;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .article-content {
        padding: 0 15px;
    }
}

/* Clear any transform issues */
* {
    transform-style: flat !important;
}

/* ============================================
   CALCULATOR PAGE SPECIFIC STYLES
   ============================================ */
/* Header fixes for calculator pages */
article > header {
    text-align: center;
    padding: 20px 0;
}

article > header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0;
}

/* Fix hero section with logo */
.hero-section .container {
    text-align: center;
}

.hero-section .logo {
    display: inline-block;
    margin: 0 auto;
}
.calculator-container {
    max-width: 1200px;
    margin: 60px auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    padding: 3rem;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Ensure calculator form displays properly */
#calculatorForm {
    width: 100%;
}

.progress-bar {
    height: 12px;
    background: #f0f4f8;
    border-radius: 100px;
    margin-bottom: 3rem;
    overflow: visible;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 100px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Tools Grid Layout */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-category {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    margin-bottom: 0;
}

.tool-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(102,126,234,0.15);
    border-color: #667eea;
}

.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    border: none;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
    flex: 1;
}

.tools-cost {
    color: #6c757d;
    font-size: 0.9rem;
}

.tool-items {
    padding: 1rem;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    margin-bottom: 0.875rem;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
}

.tool-item:hover {
    background: white;
    border-color: #667eea;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.1);
}

.tool-item.selected {
    background: linear-gradient(135deg, #eef2ff 0%, #e8edff 100%);
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102,126,234,0.15);
}

/* Custom Checkbox Design */
.tool-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 1rem;
}

.tool-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin: 0;
}

.checkbox-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tool-checkbox input[type="checkbox"]:checked ~ .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tool-checkbox input[type="checkbox"]:checked ~ .checkbox-custom::after {
    display: block;
}

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

.tool-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.tool-price {
    font-weight: 700;
    color: #667eea;
    font-size: 1.125rem;
    margin-left: 8px;
}

.results-container {
    display: none;
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    text-align: center;
}

.shock-emoji {
    font-size: 72px;
    margin-bottom: 20px;
}

.savings-headline {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.savings-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #28a745;
    margin-bottom: 20px;
}

.yearly-savings {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.comparison-table {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.cta-section {
    margin-top: 40px;
}

.cta-button.primary {
    background: #ff007f;
    font-size: 1.25rem;
    padding: 20px 40px;
}

/* Calculator Form Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-calculate {
    background: #28a745;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-calculate:hover {
    transform: translateY(-2px);
}

/* Logo Styles */
.logo {
    max-height: 50px;
    width: auto;
}

/* Main Content Container */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Fix body and html to ensure full width */
html, body {
    width: 100%;
    min-height: 100vh;
}

/* Testimonials Section */
.testimonials-section {
    background: #f8f9fa;
    padding: 60px 20px;
    margin-top: 60px;
}

.testimonials-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.testimonial-role {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Comparison Bars */
.comparison-bars {
    margin: 40px 0;
}

.bar-wrapper {
    margin-bottom: 20px;
}

.bar-name {
    font-weight: 500;
    margin-bottom: 8px;
}

.bar-label {
    display: inline-block;
    padding: 4px 12px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-left: 10px;
}

.bar-label.text-color-4caf50 {
    background: #e8f5e9;
    color: #4caf50;
}

/* Share Section */
.share-section {
    text-align: center;
    padding: 40px 0;
    margin: 40px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.share-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.2s;
}

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

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-linkedin {
    background: #0077b5;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item details {
    padding: 0;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 50px;
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.faq-item summary:hover {
    background: #e9ecef;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 20px;
    padding-top: 0;
    color: #666;
    line-height: 1.8;
}

/* Icon styles */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Spinner for loading */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Calculate Button - Modern Design */
.calculate-section {
    text-align: center;
    margin-top: 3rem;
}

.calculate-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem 4rem;
    font-size: 1.375rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calculate-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.calculate-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102,126,234,0.4);
}

.calculate-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Sticky Savings Ticker */
.savings-ticker {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 
        0 20px 25px rgba(0,0,0,0.1),
        0 0 0 1px rgba(102,126,234,0.1);
    min-width: 280px;
    transform: translateY(200%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    border: 1px solid rgba(102,126,234,0.1);
}

.savings-ticker.active {
    transform: translateY(0);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.savings-ticker-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.savings-ticker-amount {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.savings-ticker-amount::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    opacity: 0.3;
}

/* Additional style classes from inline conversion */
.style-14 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.style-15 {
    font-size: 20px;
    margin-top: 30px;
    color: #666;
}

/* Missing text color classes */
.text-color-4caf50 {
    color: #4caf50;
}

.text-color-ff007f {
    color: #ff007f;
}

/* Fix overlapping content */
article > main {
    position: relative;
    z-index: 10;
}

/* Ensure proper spacing */
.tool-category + .tool-category {
    margin-top: 40px;
}

/* Fix any absolute positioned elements */
.hero-section,
.calculator-container,
.testimonials-section,
.share-section,
.faq-section {
    position: relative;
}

/* Enhanced Color Scheme */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --secondary-color: #4facfe;
    --success-color: #10b981;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --bg-light: #f7fafc;
    --bg-lighter: #edf2f7;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
}

/* Enhanced Calculator Graphic */
.hero-image-container {
    position: relative;
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
}

.calculator-graphic {
    background: linear-gradient(145deg, #f0f4f8, #e2e8f0);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        inset 2px 2px 5px rgba(0,0,0,0.1),
        inset -2px -2px 5px rgba(255,255,255,0.7),
        0 10px 30px rgba(102,126,234,0.2);
    position: relative;
    overflow: hidden;
}

.calculator-screen {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #10b981;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: right;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

/* Improved Progress Bar */
.progress-bar {
    height: 14px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 100px;
    margin-bottom: 3rem;
    overflow: visible;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 100px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(102,126,234,0.4);
}

.progress-fill::after {
    content: attr(data-percent);
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-fill[data-percent]:not([data-percent="0%"])::after {
    opacity: 1;
}

/* Tool Price Animation */
.tool-price {
    position: relative;
}

.tool-item.selected .tool-price::after {
    content: '✓';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    font-weight: 700;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { 
        transform: translateY(-50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% { 
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

/* Calculating Animation Enhancement */
.calculating {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.calculating.show {
    display: block;
}

.calculating .spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
}

.calculating .loading-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

/* Results Enhancement */
.results-container.show {
    display: block;
    animation: slideUp 0.6s ease;
}

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

.results-title {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

/* Bar Chart Enhancement */
.bar {
    background: var(--primary-gradient);
    border-radius: 8px;
    position: relative;
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 40px;
}

.bar.current {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.bar.ai {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Reset any problematic margins */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
}

/* Ensure forms display properly */
form {
    display: block;
}

input[type="checkbox"] {
    vertical-align: middle;
}