* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0b1020;
    min-height: 100vh;
    padding: 24px;
    color: #e5e7eb;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.hero {
    background: linear-gradient(145deg, #0f1629 0%, #0d1424 100%);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.hero h1 {
    color: #f8fafc;
    font-size: 2.4em;
    margin-bottom: 10px;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.05em;
    line-height: 1.5;
}

.hero-note {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-radius: 10px;
    border: 1px solid rgba(59,130,246,0.25);
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(59,130,246,0.18);
}

.hero-copy {
    margin-top: 10px;
}
.hero-copy .hero-highlight {
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}
.hero-copy ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #374151;
}
.hero-copy li {
    margin-bottom: 6px;
}

.hero-left .eyebrow {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(103, 125, 255, 0.1);
    color: #9fb3ff;
    border: 1px solid rgba(103,125,255,0.25);
    border-radius: 999px;
    font-size: 0.85em;
    margin-bottom: 12px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 18px 0;
}

.btn-hero {
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-hero.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.btn-hero.ghost {
    border-color: #1f2a44;
    color: #cbd2e5;
    background: rgba(255,255,255,0.02);
}

.btn-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9em;
    border: 1px solid #1f2a44;
}
.badge.success { background: rgba(52, 211, 153, 0.12); color: #34d399; border-color: rgba(52,211,153,0.25); }
.badge.info { background: rgba(99,102,241,0.12); color: #a5b4fc; border-color: rgba(99,102,241,0.25); }
.badge.neutral { background: rgba(99,102,241,0.08); color: #4b5563; border-color: #e5e7eb; }

/* removed stat pills block */

.navbar {
    background: rgba(15, 22, 41, 0.9);
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid #1f2937;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    position: sticky;
    top: 10px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.brand {
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 2rem;
    line-height: 1.15;
    margin-right: 12px;
}

.nav-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
    align-items: center;
}

.btn-ghost {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #27324a;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    background: #141b30;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.btn-ghost:hover {
    border-color: #3b82f6;
    color: #e0e7ff;
}

.btn-ghost.muted {
    opacity: 0.9;
    color: #9ca3af;
    box-shadow: none;
}

.help-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 30px;
    border: 1px solid #e5e7eb;
}

.pricing-section {
    margin-top: 24px;
    background: #0f1629;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.pricing-section h2 {
    color: #e5e7eb;
    margin-bottom: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.pricing-card {
    background: #121b30;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(99,102,241,0.25);
}

.pricing-card .plan-title {
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 6px;
}

.pricing-card .plan-price {
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 10px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card li {
    margin-bottom: 8px;
    color: #cbd5e1;
}
.btn-ghost {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #27324a;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    background: #141b30;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.btn-ghost:hover {
    border-color: #3b82f6;
    color: #e0e7ff;
}

.btn-ghost.muted {
    opacity: 0.9;
    color: #9ca3af;
    box-shadow: none;
}

.progress-container {
    background: rgba(255,255,255,0.04);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #1f2a44;
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 15px;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #cbd2e5;
    font-weight: 600;
}

.sub-progress {
    margin-top: 12px;
}

.sub-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9em;
    color: #cbd2e5;
}

.sub-progress-bar {
    width: 100%;
    height: 8px;
    background: #1f2a44;
    border-radius: 10px;
    overflow: hidden;
}

.sub-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    width: 0%;
    transition: width 0.25s ease;
}

.info-box {
    background: #0f1629;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #1f2937;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.info-box h3 {
    color: #e5e7eb;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.info-box li {
    padding: 5px 0;
    color: #cbd5e1;
}

.info-box .example {
    color: #9ca3af;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

.mini-table {
    width: 100%;
    font-size: 0.85em;
    border-collapse: collapse;
}

.mini-table th, .mini-table td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #1f2937;
}

.mini-table th {
    background: #111827;
    color: #f8fafc;
    font-weight: 700;
}

.mini-table td {
    color: #e5e7eb;
    background: #0f1629;
}

.tooltip-wrapper {
    position: relative;
}

.tooltip {
    visibility: hidden;
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    white-space: nowrap;
    z-index: 1000;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
}

.tooltip-wrapper:hover .tooltip {
    visibility: visible;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.sidebar {
    background: linear-gradient(145deg, #0f1629 0%, #0d1424 100%);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid #1f2937;
    height: fit-content;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.steps-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.steps-row .step-card {
    flex: 1 1 320px;
}

.step-card {
    background: #0f1629;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    margin-bottom: 16px;
}

.step-card.nested {
    box-shadow: none;
    border-style: dashed;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.step-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85em;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.18);
}

.step-header h3 {
    margin: 0;
    color: #e5e7eb;
}

.step-desc {
    margin: 2px 0 0 0;
    color: #cbd5e1;
    font-size: 0.95em;
}

.sidebar h2 {
    color: #e5e7eb;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e5e7eb;
    font-weight: 700;
    font-size: 1em;
}

.form-group input[type="file"],
.form-group select,
.form-group input[type="range"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #1f2937;
    background: #0f1629;
    color: #e5e7eb;
    border-radius: 10px;
    font-size: 0.92em;
    transition: all 0.2s;
}

.form-group input[type="file"]:hover,
.form-group select:hover {
    border-color: #6366f1;
}

.form-group select {
    background: #0f1629;
    color: #e5e7eb;
    border: 1px solid #1f2937;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.upload-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 1.1em;
}

#fileInput {
    position: absolute;
    left: -9999px;
}

.file-fake {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f1629;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 20px rgba(0,0,0,0.25);
    transition: border 0.2s, box-shadow 0.2s;
    cursor: pointer;
    margin-top: 6px;
}

.file-fake:hover {
    border-color: #6366f1;
    box-shadow: 0 12px 28px rgba(99,102,241,0.18);
}

.file-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(99,102,241,0.2);
}

.file-name {
    color: #e5e7eb;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-group small {
    color: #9fa6bf;
    font-size: 0.85em;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 5px;
    transition: background 0.2s, border 0.2s;
    border: 1px solid transparent;
}

.checkbox-group label:hover {
    background: rgba(255,255,255,0.04);
    border-color: #1f2a44;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

.results {
    background: #0f1629;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

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

.metric-card {
    background: #121b30;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #1f2937;
    transition: transform 0.2s, border 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: #6366f1;
    box-shadow: 0 10px 25px rgba(99,102,241,0.15);
}

.metric-card h3 {
    color: #cbd5e1;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.metric-card p {
    color: #f8fafc;
    font-size: 1.7em;
    font-weight: 800;
}

.metric-card.hint {
    position: relative;
    cursor: help;
}

.metric-card.hint::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #e5e7eb;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #27324a;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    width: 240px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
    text-align: center;
    line-height: 1.4;
    font-size: 0.9em;
}

.metric-card.hint:hover::after,
.metric-card.hint:focus-visible::after {
    opacity: 1;
}

.tabs {
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: #141b30;
    border: 1px solid #1f2937;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #cbd5e1;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: #1b2238;
    border-color: #3b82f6;
}

.tab-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(99,102,241,0.18);
}

.tab-content {
    display: none;
    padding: 20px;
    background: #0f1629;
    border-radius: 12px;
    border: 1px solid #1f2937;
}

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

.tab-content h3 {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.flash-highlight {
    animation: flashPulse 0.7s ease-in-out 0s 2;
}

@keyframes flashPulse {
    0% { box-shadow: 0 0 0 rgba(99,102,241,0); }
    50% { box-shadow: 0 0 35px rgba(99,102,241,0.35); }
    100% { box-shadow: 0 0 0 rgba(99,102,241,0); }
}

#forecastChart {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #0f1629;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1f2937;
}

thead {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    position: sticky;
    top: 0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #1f2a44;
    color: #cbd2e5;
}

tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.btn-download {
    padding: 12px 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.performance-summary, .performance-notes {
    background: #0f1629;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 16px;
    color: #cbd5e1;
    margin-top: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.performance-notes ul {
    margin: 10px 0 0 18px;
    color: #cbd5e1;
}

.performance-notes h4 {
    margin: 0;
    color: #e5e7eb;
}

.error {
    background: #ff4444;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.success {
    background: #10b981;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

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

.help-section {
    background: #0f1629;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    margin-top: 30px;
    border: 1px solid #1f2937;
}

.help-content h2 {
    color: #e5e7eb;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.help-card {
    background: #121b30;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #3b82f6;
    border: 1px solid #1f2937;
}

.help-card h3 {
    color: #e5e7eb;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.help-card ul {
    margin-left: 20px;
    color: #cbd5e1;
}

.help-card li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.help-card ul ul {
    margin-top: 8px;
    margin-left: 20px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .metrics {
        grid-template-columns: 1fr 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .nav-link {
        flex: 1 1 45%;
    }
}
