/* ============================================
   FIRE Calculator - Beautiful Modern CSS
   ============================================ */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #f97316;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 50%, #f093fb15 100%);
    z-index: -2;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-fire {
    font-size: 1.5rem;
    animation: flame 1s ease-in-out infinite alternate;
}

@keyframes flame {
    from { transform: scale(1) rotate(-2deg); }
    to { transform: scale(1.1) rotate(2deg); }
}

.logo-text {
    color: var(--gray-900);
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-warning .warning-icon {
    flex-shrink: 0;
    color: #b45309;
}

.hero-warning .warning-content strong {
    display: block;
    color: #92400e;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.hero-warning .warning-content p {
    font-size: 0.813rem;
    color: #78350f;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.813rem;
    color: var(--gray-500);
}

.stat-divider {
    width: 1px;
    background: var(--gray-300);
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    display: none;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: block;
    }
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: -50px;
    right: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 80px;
    right: 100px;
    animation-delay: 0.5s;
}

.card-3 {
    top: 200px;
    right: 20px;
    animation-delay: 1s;
}

.floating-card .card-icon {
    font-size: 1.5rem;
}

.floating-card .card-text {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.938rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

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

/* Sections */
.section {
    padding: 5rem 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    font-size: 0.813rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-badge.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: var(--success);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-description {
    color: var(--gray-600);
    font-size: 1.063rem;
}

/* How It Works */
.how-it-works {
    background: white;
}

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

.step-card {
    position: relative;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition);
}

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

.step-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--gray-600);
    font-size: 0.938rem;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature:hover {
    background: var(--gray-100);
}

.feature-icon {
    font-size: 1.75rem;
}

.feature-text strong {
    display: block;
    font-size: 0.938rem;
    color: var(--gray-900);
}

.feature-text span {
    font-size: 0.813rem;
    color: var(--gray-500);
}

/* SEO Content Section */
.seo-content-section {
    background: var(--gray-50);
    padding: 4rem 1.5rem;
}

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

@media (max-width: 968px) {
    .seo-content-grid {
        grid-template-columns: 1fr;
    }
}

.seo-content-main h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.seo-content-main h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 2rem 0 1rem;
}

.seo-content-main p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.seo-feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.seo-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.seo-content-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seo-aside-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.seo-aside-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.seo-aside-card p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Calculator Section */
.calculator-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Progress Indicator */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: var(--transition);
}

.progress-step.active .step-dot,
.progress-step.completed .step-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--primary);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: var(--gray-200);
    margin: 0 0.5rem;
    margin-bottom: 1.25rem;
}

/* Form Steps */
.form-step {
    display: none;
    padding: 2rem;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--primary);
    border-radius: var(--radius-md);
}

.step-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.step-header p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Subsections */
.form-subsection {
    margin-bottom: 2rem;
}

.form-subsection h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.subsection-icon {
    font-size: 1.25rem;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.input-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Input with prefix/suffix */
.input-with-prefix,
.input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix,
.input-suffix {
    position: absolute;
    color: var(--gray-500);
    font-weight: 600;
    pointer-events: none;
}

.input-prefix {
    left: 1rem;
}

.input-suffix {
    right: 1rem;
}

.input-with-prefix input {
    padding-left: 2rem;
}

.input-with-suffix input {
    padding-right: 2.5rem;
}

/* Select wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.select-wrapper svg {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

/* Radio Cards */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .radio-cards {
        grid-template-columns: 1fr;
    }
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.radio-card input:checked + .radio-card-content {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: var(--primary);
}

.radio-card:hover .radio-card-content {
    border-color: var(--primary-light);
}

.radio-icon {
    font-size: 1.5rem;
}

.radio-title {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.938rem;
}

.radio-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Advanced Settings */
.advanced-settings {
    margin-top: 2rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
}

.advanced-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    font-family: inherit;
}

.advanced-toggle:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.toggle-icon {
    transition: var(--transition);
}

.advanced-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.advanced-content {
    margin-top: 1.5rem;
}

.advanced-note {
    font-size: 0.813rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.assumptions-rationale {
    margin-bottom: 1rem;
}

.assumptions-rationale summary {
    cursor: pointer;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.assumptions-rationale summary:hover {
    text-decoration: underline;
}

.assumptions-rationale details[open] summary {
    margin-bottom: 0.5rem;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Results Section */
.results-section {
    background: linear-gradient(180deg, #f0fdf4 0%, white 100%);
}

.results-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.results-warning .warning-icon {
    font-size: 1.5rem;
}

.results-warning p {
    font-size: 0.875rem;
    color: #92400e;
    margin: 0;
}

/* Result Cards */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.result-card-icon {
    font-size: 2rem;
}

.result-card-content {
    display: flex;
    flex-direction: column;
}

.result-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.result-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}

.result-card.outcome {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #86efac;
}

.result-card.outcome.failed {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
}

/* Result Panels */
.result-panel {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.panel-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.table-wrapper {
    overflow-x: auto;
}

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.results-table th,
.results-table td {
    padding: 0.875rem 1rem;
    text-align: left;
}

.results-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.results-table td {
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
}

.results-table tbody tr:hover {
    background: var(--gray-50);
}

.results-table.compact td,
.results-table.compact th {
    padding: 0.625rem 1rem;
}

/* Pension Panel */
.pension-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.pension-item {
    text-align: center;
}

.pension-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.pension-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
}

.pension-disclaimer {
    font-size: 0.75rem;
    color: var(--gray-500);
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* Final Disclaimer */
.final-disclaimer {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.final-disclaimer h4 {
    color: #92400e;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.final-disclaimer p {
    font-size: 0.875rem;
    color: #78350f;
    margin-bottom: 0.75rem;
}

.final-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Section */
.faq-section {
    background: white;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding-bottom: 1.25rem;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    color: var(--gray-600);
    font-size: 0.938rem;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 4rem 1.5rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-tagline {
    color: var(--gray-400);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-300);
}

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

.footer-links li {
    font-size: 0.813rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-disclaimer h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-300);
}

.footer-disclaimer p {
    font-size: 0.813rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.footer-seo-text {
    font-size: 0.7rem;
    color: var(--gray-700);
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 6rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
}

/* Ad Containers */
.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

.ad-horizontal {
    padding: 1.5rem 1rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.ad-results {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.ad-in-article {
    margin: 1.5rem 0;
    padding: 0.5rem;
}

/* Calculator Layout with Ad Sidebar */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.calculator-main {
    min-width: 0;
}

.calculator-sidebar {
    position: relative;
}

.ad-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.ad-sidebar-label {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Ad Carousel */
.ad-carousel {
    position: relative;
    min-height: 300px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.ad-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 0.5rem;
}

.ad-carousel-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.ad-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.ad-carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.ad-carousel-indicators .indicator:hover {
    background: var(--gray-400);
}

.ad-carousel-indicators .indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.ad-sidebar-unit {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 0.5rem;
    min-height: 250px;
}

/* Responsive: Hide sidebar on smaller screens, show inline ads */
@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }
    
    .calculator-sidebar {
        display: none;
    }
}

/* Mobile Ad Between Steps */
.mobile-step-ad {
    display: none;
    margin: 1rem 0;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

@media (max-width: 1024px) {
    .mobile-step-ad {
        display: block;
    }
}

.ad-container ins {
    display: block;
    margin: 0 auto;
}

/* Hide ads on mobile if they break layout */
@media (max-width: 480px) {
    .ad-horizontal {
        padding: 1rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .how-it-works,
    .calculator-section,
    .faq-section,
    .footer,
    .result-actions,
    .ad-container,
    .ad-carousel,
    .ad-sidebar-sticky,
    .calculator-sidebar,
    .mobile-step-ad,
    .adsbygoogle {
        display: none !important;
    }
    
    .results-section {
        display: block !important;
        padding: 0 !important;
    }
    
    .results-section * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
    
    .result-panel {
        page-break-inside: avoid;
        border: 1px solid #ccc !important;
    }
}
