/* Knight Shift — Web Form Styles */
/* Color palette: blueprint blue + emerald green on dark navy */

:root {
    --dark-blue: #0a2540;
    --darker-blue: #061a2e;
    --medium-blue: #1a6fb5;
    --accent-green: #2ecc71;
    --accent-green-hover: #27ae60;
    --accent-amber: #2ecc71;
    --amber-hover: #27ae60;
    --light-gray: #f0f4f8;
    --border-gray: #c0cad8;
    --white: #ffffff;
    --text-dark: #1a2a3a;
    --text-muted: #4a5568;
    --error-red: #dc2626;
    --success-green: #2ecc71;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--light-gray);
    line-height: 1.6;
}

/* ── Hero Header ── */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
    color: var(--white);
    padding: 36px 20px 60px;
    text-align: center;
}

.hero.hero-compact {
    padding: 24px 20px 50px;
}

/* ── Hero Logo + Text Overlay ── */
.hero-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.hero-logo {
    height: 180px;
    width: auto;
    opacity: 0.20;
    mix-blend-mode: screen;
    filter: saturate(1.4);
    pointer-events: none;
    user-select: none;
}

.hero-text-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.tagline {
    font-size: 1.15rem;
    color: var(--accent-green);
    font-style: italic;
    margin-bottom: 0;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    margin: 8px auto 0;
}

.trust-line {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 10px;
    letter-spacing: 0.02em;
}

/* ── How It Works ── */
.how-it-works {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: 28px 20px;
}

.steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    max-width: 780px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    max-width: 220px;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.step h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 4px;
}

.step p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--accent-green);
    font-weight: 700;
    padding-top: 20px;
    flex-shrink: 0;
}

/* ── Form Container ── */
.form-container {
    max-width: 720px;
    margin: -40px auto 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* ── Flash Messages ── */
.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.flash-error {
    background: #fef2f2;
    color: var(--error-red);
    border: 1px solid #fca5a5;
}

.flash-success {
    background: #f0fdf4;
    color: var(--success-green);
    border: 1px solid #86efac;
}

.flash-info {
    background: #eff6ff;
    color: var(--medium-blue);
    border: 1px solid #93c5fd;
}

/* ── Form Sections ── */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
    padding-bottom: 0;
}

.form-section h2 {
    color: var(--dark-blue);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ── Form Grid ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--medium-blue);
    box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.field-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── File Upload Area ── */
.file-upload-area {
    border: 2px dashed var(--border-gray);
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--medium-blue);
    background: #f8fafc;
}

.file-upload-area.drag-over {
    border-color: var(--accent-green);
    background: #f0fdf4;
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-area .upload-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.file-upload-area p {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.file-upload-area .file-hint {
    font-size: 0.8rem;
    color: #999;
}

/* ── File List ── */
#file-list {
    margin-top: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--light-gray);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.file-item .file-name {
    font-weight: 500;
    color: var(--dark-blue);
}

.file-item .file-size {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-left: auto;
}

.file-item .file-remove {
    margin-left: 10px;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.file-item .file-remove:hover {
    color: #dc2626;
}

/* ── Checkbox / Radio Rows ── */
.checkbox-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
}

.check-label input[type="checkbox"],
.check-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-green);
    cursor: pointer;
}

/* ── Submit Button ── */
.submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--accent-green);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    background: var(--accent-green-hover);
}

.submit-btn:active {
    transform: scale(0.99);
}

.submit-btn:disabled {
    background: var(--border-gray);
    cursor: not-allowed;
    transform: none;
}

.submit-btn .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* ── Footer ── */
footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Thank You Page ── */
.thank-you-card {
    max-width: 600px;
    margin: -40px auto 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.thank-you-card .check-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.thank-you-card h2 {
    color: var(--dark-blue);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.thank-you-card p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 10px;
}

.thank-you-card .email-highlight {
    color: var(--dark-blue);
    font-weight: 600;
}

.thank-you-card .estimate-time {
    display: inline-block;
    background: #f0f7ff;
    border: 1px solid var(--medium-blue);
    color: var(--dark-blue);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 16px 0;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--medium-blue);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link-top {
    display: block;
    text-align: left;
    margin: 0 0 16px;
}

/* ── Progress Tracker (Thank You page) ── */
.progress-tracker {
    margin: 24px 0;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    border: 1px solid var(--border-gray);
}

.progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--medium-blue), var(--accent-green));
    border-radius: 4px;
    transition: width 1.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.35;
    transition: opacity 0.5s;
}

.prog-step.active {
    opacity: 1;
}

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

.prog-step.active .prog-dot {
    background: var(--accent-green);
}

.prog-step span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.progress-status {
    text-align: center;
    font-size: 0.9rem;
    color: var(--medium-blue);
    font-weight: 500;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────── */
/*  Dark Theme + Tab Nav (Streamlit-inspired refresh)                      */
/* ─────────────────────────────────────────────────────────────────────── */

body.dark-theme {
    background: linear-gradient(180deg, var(--darker-blue) 0%, #051322 100%);
    color: #e2e8f0;
    min-height: 100vh;
}

/* ── Brand Bar (replaces auth-bar on dark pages) ── */
.brand-bar {
    background: linear-gradient(180deg, #0a1628 0%, #061121 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 0 24px;
}
.brand-bar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0 10px;
    max-width: 1400px;
    margin: 0 auto;
}
.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(46, 204, 113, 0.45);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px;
    object-fit: contain;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-text strong {
    font-size: 1.05rem;
    color: #ffffff;
    letter-spacing: -0.2px;
}
.brand-tagline {
    font-size: 0.72rem;
    color: var(--accent-green);
    font-style: italic;
    letter-spacing: 0.02em;
}
.brand-spacer { flex: 1; }
.brand-auth {
    color: #cbd5e1;
    font-size: 0.85rem;
}

/* ── Account Menu (top-right dropdown) ── */
.account-menu { position: relative; }
.account-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: rgba(15, 28, 50, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.account-trigger:hover {
    background: rgba(30, 50, 84, 0.7);
    border-color: rgba(148, 163, 184, 0.32);
}
.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71 0%, #1e8449 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}
.account-trigger-label {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-caret {
    color: rgba(203, 213, 225, 0.65);
    font-size: 0.75rem;
}
.account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: #0d1c33;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.12s, transform 0.12s;
    z-index: 50;
}
.account-menu.open .account-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.account-dropdown-header {
    padding: 10px 16px 12px;
}
.account-dropdown-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-dropdown-email {
    color: rgba(203, 213, 225, 0.7);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-dropdown-org {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.account-role-badge {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(46, 204, 113, 0.15);
    color: #6ee7b7;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.account-dropdown-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.14);
    margin: 4px 0;
}
.account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.1s, color 0.1s;
}
.account-dropdown-item:hover {
    background: rgba(46, 88, 148, 0.22);
    color: #ffffff;
}
.account-item-icon {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    opacity: 0.85;
}
.account-dropdown-signout { color: #fca5a5; }
.account-dropdown-signout:hover { color: #fecaca; }

/* ── Top-bar project search ── */
.nav-search {
    position: relative;
    flex: 0 1 380px;
    margin-left: 28px;
}
.nav-search svg {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: rgba(148, 163, 184, 0.8); pointer-events: none;
}
.nav-search input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border-radius: 999px;
    background: rgba(15, 30, 52, 0.85);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #e2e8f0;
    font-size: 0.9rem;
}
.nav-search input::placeholder { color: rgba(148, 163, 184, 0.75); }
.nav-search input:focus { outline: none; border-color: #60a5fa; }
@media (max-width: 760px) {
    .nav-search { display: none; }
}

/* ── Tab Strip ── */
.tab-strip {
    display: flex;
    gap: 4px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    overflow-x: auto;
}
.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: rgba(203, 213, 225, 0.7);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.tab:hover { color: #fff; }
.tab-active {
    color: #ffffff;
    border-bottom-color: var(--accent-green);
}
.tab-icon { font-size: 1rem; opacity: 0.9; }

/* ── Hero Banner (Streamlit-style gradient panel) ── */
.hero-banner {
    background: linear-gradient(135deg, #0d3a6f 0%, #0a2540 60%, #051a2e 100%);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    margin: 24px auto 28px;
    max-width: 1340px;
    padding: 28px 40px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.hero-banner .banner-logo {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(46, 204, 113, 0.5);
    padding: 8px;
    object-fit: contain;
    flex-shrink: 0;
}
.hero-banner h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}
.hero-banner h1 .brand-name-light { color: #60a5fa; }
.hero-banner h1 .brand-name-white { color: #ffffff; }
.hero-banner .banner-tagline {
    color: var(--accent-green);
    font-style: italic;
    font-size: 1rem;
    margin: 0;
}

/* ── Two-Column Page Layout (form + side panel) ── */
.page-shell {
    max-width: 1340px;
    margin: 0 auto 60px;
    padding: 0 24px;
}
.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.panel {
    background: rgba(15, 30, 52, 0.85);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 12px;
    padding: 28px 28px 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
}
.panel h2 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}
.panel h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.panel-subtle {
    color: rgba(203, 213, 225, 0.75);
    font-size: 0.92rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ── Dark Form Fields ── */
.dark-theme .form-group label {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.01em;
}
.dark-theme .form-group input,
.dark-theme .form-group textarea,
.dark-theme .form-group select,
.dark-theme input[type="text"],
.dark-theme input[type="email"],
.dark-theme input[type="number"],
.dark-theme textarea {
    background: rgba(8, 18, 32, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #f1f5f9;
}
.dark-theme .form-group input:focus,
.dark-theme .form-group textarea:focus,
.dark-theme input:focus,
.dark-theme textarea:focus {
    border-color: rgba(46, 204, 113, 0.55);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.12);
}
.dark-theme .form-section { border-bottom-color: rgba(96, 165, 250, 0.12); }
.dark-theme .form-section h2 { color: #ffffff; }
.dark-theme .field-hint, .dark-theme .file-hint { color: rgba(148, 163, 184, 0.85); }
.dark-theme .file-upload-area {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(8, 18, 32, 0.4);
}
.dark-theme .file-upload-area:hover {
    background: rgba(8, 18, 32, 0.6);
    border-color: rgba(46, 204, 113, 0.55);
}
.dark-theme .file-upload-area p { color: #cbd5e1; }
.dark-theme .file-item {
    background: rgba(8, 18, 32, 0.6);
    color: #e2e8f0;
}
.dark-theme .file-item .file-name { color: #ffffff; }
.dark-theme .check-label { color: #e2e8f0; }

/* ── Inline Pricing Table (right column on /) ── */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.pricing-table thead th {
    text-align: left;
    padding: 8px 10px;
    background: rgba(8, 18, 32, 0.7);
    color: #93c5fd;
    border-bottom: 1px solid rgba(96, 165, 250, 0.25);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.pricing-table thead th.num-col { text-align: right; }
.pricing-table tbody td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.08);
    color: #e2e8f0;
}
.pricing-table tbody tr:hover td { background: rgba(96, 165, 250, 0.05); }
.pricing-table tbody td.unit-cell { color: #94a3b8; font-size: 0.82rem; }
.pricing-table tbody td.num-cell { text-align: right; }
.pricing-table input[type="number"] {
    width: 78px;
    padding: 4px 6px;
    background: rgba(8, 18, 32, 0.85);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #f1f5f9;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: right;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}
.pricing-table input[type="number"]:focus {
    outline: none;
    border-color: rgba(46, 204, 113, 0.55);
}
.pricing-edited { color: var(--accent-green) !important; font-weight: 600; }

.dark-submit-btn {
    background: linear-gradient(135deg, var(--accent-green) 0%, #1a9e54 100%);
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.25);
}
.dark-submit-btn:hover {
    background: linear-gradient(135deg, var(--accent-green-hover) 0%, #168a47 100%);
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: rgba(203, 213, 225, 0.7);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.6; }

/* ── Job Cards (Active / Completed list) ── */
.job-card {
    background: rgba(15, 30, 52, 0.85);
    border: 1px solid rgba(96, 165, 250, 0.18);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 14px;
    transition: border-color 0.15s;
}
.job-card:hover { border-color: rgba(96, 165, 250, 0.35); }
.job-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.job-card-id {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #94a3b8;
}
.job-card-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #cbd5e1;
}
.job-card-meta strong { color: #ffffff; }
.job-card-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-link, .btn-secondary {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: rgba(8, 18, 32, 0.6);
    color: #93c5fd;
    transition: background 0.15s;
}
.btn-link:hover, .btn-secondary:hover {
    background: rgba(96, 165, 250, 0.12);
    color: #ffffff;
}
.btn-primary {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: var(--accent-green);
    color: white;
}
.btn-primary:hover { background: var(--accent-green-hover); }

/* ── Breakdown Table (Completed jobs) ── */
.breakdown-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(96, 165, 250, 0.18);
    display: none;
}
.breakdown-wrap.expanded { display: block; }
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.breakdown-table th {
    text-align: left;
    padding: 8px 10px;
    background: rgba(8, 18, 32, 0.65);
    color: #93c5fd;
    border-bottom: 1px solid rgba(96, 165, 250, 0.22);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.breakdown-table th.num { text-align: right; }
.breakdown-table td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.08);
    color: #e2e8f0;
}
.breakdown-table td.num { text-align: right; font-family: 'SF Mono', Monaco, Consolas, monospace; }
.breakdown-table input[type="number"] {
    width: 80px;
    padding: 3px 6px;
    background: rgba(8, 18, 32, 0.85);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #f1f5f9;
    border-radius: 4px;
    text-align: right;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.82rem;
}
.breakdown-totals {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 2px solid rgba(96, 165, 250, 0.25);
    font-size: 1rem;
}
.breakdown-totals .label { color: #cbd5e1; }
.breakdown-totals .original { color: #94a3b8; text-decoration: line-through; margin-right: 10px; font-size: 0.9rem; }
.breakdown-totals .adjusted { color: var(--accent-green); font-weight: 700; font-size: 1.25rem; }
.breakdown-table tr.row-edited td { background: rgba(46, 204, 113, 0.06); }

/* ── Status Pills (jobs list + detail) ── */
.status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-queued     { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-completed  { background: #dcfce7; color: #166534; }
.status-failed     { background: #fee2e2; color: #991b1b; }

/* ── Jobs Table ── */
.jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.jobs-table th {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 2px solid var(--border-gray);
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.jobs-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-dark);
}
.jobs-table tr:last-child td { border-bottom: none; }
.jobs-table a { color: var(--medium-blue); text-decoration: none; font-weight: 500; }
.jobs-table a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero {
        padding: 28px 16px 44px;
    }

    .hero-logo { height: 140px; }

    .hero h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .subtitle { font-size: 0.92rem; }

    .steps-row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .form-container,
    .thank-you-card {
        margin: -30px 12px 24px;
        padding: 24px 20px;
    }

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

    .submit-btn {
        font-size: 1rem;
        padding: 14px;
    }

    .progress-steps {
        gap: 4px;
    }

    .prog-step span {
        font-size: 0.62rem;
    }
}
