/* ===== CUSTOMER PORTAL — Warm, Nurturing, Mobile-First ===== */

:root {
    --warm-primary: #3b82f6;
    --warm-primary-dark: #2563eb;
    --warm-primary-light: #eff6fe;
    --warm-accent: #8b5cf6;
    --warm-accent-light: #f5f3ff;
    --warm-success: #10b981;
    --warm-success-light: #ecfdf5;
    --warm-warning: #f59e0b;
    --warm-warning-light: #fffbeb;
    --warm-bg: #f8fafc;
    --warm-card: #ffffff;
    --warm-text: #1e293b;
    --warm-text-muted: #64748b;
    --warm-border: #e2e8f0;
    --warm-radius: 16px;
    --warm-radius-sm: 10px;
    --warm-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --warm-shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --warm-shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --warm-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #6366f1 100%);
    --warm-gradient-soft: linear-gradient(135deg, #eff6fe 0%, #f5f3ff 100%);
}

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

body.customer-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--warm-bg);
    color: var(--warm-text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== LANDING PAGE ===== */
.landing-hero {
    background: var(--warm-gradient);
    color: white;
    padding: 80px 24px 100px;
    text-align: center;
    border-radius: 0 0 32px 32px;
}

.landing-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.landing-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

.landing-cta {
    display: inline-block;
    background: white;
    color: var(--warm-primary);
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--warm-shadow-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.landing-hero .sub-text {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 16px;
}

.landing-features {
    max-width: 900px;
    margin: -60px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--warm-card);
    border-radius: var(--warm-radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--warm-shadow-md);
    transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-card .icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--warm-text);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--warm-text-muted);
    line-height: 1.5;
}

.landing-trust {
    text-align: center;
    padding: 60px 24px;
    background: var(--warm-bg);
}

.landing-trust h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--warm-text);
    margin-bottom: 12px;
}

.landing-trust p {
    font-size: 16px;
    color: var(--warm-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.landing-bottom {
    text-align: center;
    padding: 60px 24px 80px;
    background: var(--warm-gradient-soft);
    border-radius: 32px 32px 0 0;
}

.landing-bottom h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.landing-bottom p {
    font-size: 16px;
    color: var(--warm-text-muted);
    margin-bottom: 32px;
}

/* ===== AUTH PAGES (Signup/Login) ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--warm-gradient);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--warm-shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--warm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--warm-text-muted);
    font-size: 15px;
}

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

.auth-form label {
    display: block;
    font-weight: 600;
    color: var(--warm-text);
    margin-bottom: 6px;
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--warm-border);
    border-radius: var(--warm-radius-sm);
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: white;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--warm-primary);
    box-shadow: 0 0 0 4px var(--warm-primary-light);
}

.auth-form .btn-warm {
    width: 100%;
    padding: 16px;
    background: var(--warm-gradient);
    color: white;
    border: none;
    border-radius: var(--warm-radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.auth-form .btn-warm:hover {
    transform: translateY(-1px);
    box-shadow: var(--warm-shadow-md);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--warm-text-muted);
}

.auth-footer a {
    color: var(--warm-primary);
    font-weight: 600;
    text-decoration: none;
}

/* ===== WIZARD ===== */
.wizard-page {
    min-height: 100vh;
    background: var(--warm-bg);
    padding: 0;
}

.wizard-header {
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid var(--warm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.wizard-header .logo {
    font-size: 20px;
    font-weight: 800;
    background: var(--warm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wizard-steps {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wizard-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--warm-border);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.wizard-step-dot.active {
    background: var(--warm-primary);
}

.wizard-step-dot.completed {
    background: var(--warm-success);
}

.wizard-step-line {
    width: 24px;
    height: 3px;
    background: var(--warm-border);
    border-radius: 2px;
}

.wizard-step-line.completed {
    background: var(--warm-success);
}

.wizard-body {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
}

.wizard-step-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--warm-text);
    margin-bottom: 8px;
}

.wizard-step-subtitle {
    font-size: 15px;
    color: var(--warm-text-muted);
    margin-bottom: 32px;
}

.wizard-card {
    background: white;
    border-radius: var(--warm-radius);
    padding: 32px;
    box-shadow: var(--warm-shadow);
    margin-bottom: 24px;
}

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

.wizard-card label {
    display: block;
    font-weight: 600;
    color: var(--warm-text);
    margin-bottom: 6px;
    font-size: 14px;
}

.wizard-card input,
.wizard-card select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--warm-border);
    border-radius: var(--warm-radius-sm);
    font-size: 15px;
    transition: border-color 0.15s;
    background: white;
}

.wizard-card input:focus,
.wizard-card select:focus {
    outline: none;
    border-color: var(--warm-primary);
    box-shadow: 0 0 0 4px var(--warm-primary-light);
}

.wizard-nav {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.btn-warm-primary {
    background: var(--warm-gradient);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: var(--warm-radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s;
}

.btn-warm-primary:hover { transform: translateY(-1px); }

.btn-warm-ghost {
    background: white;
    color: var(--warm-text-muted);
    padding: 14px 24px;
    border: 2px solid var(--warm-border);
    border-radius: var(--warm-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-warm-ghost:hover { background: var(--warm-bg); }

/* Wizard option cards (for credit situation selection) */
.wizard-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.wizard-option {
    border: 2px solid var(--warm-border);
    border-radius: var(--warm-radius-sm);
    padding: 20px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.wizard-option:hover {
    border-color: var(--warm-primary);
    background: var(--warm-primary-light);
}

.wizard-option.selected {
    border-color: var(--warm-primary);
    background: var(--warm-primary-light);
}

.wizard-option .opt-icon { font-size: 28px; margin-bottom: 8px; }
.wizard-option .opt-label { font-weight: 600; font-size: 14px; }
.wizard-option .opt-desc { font-size: 12px; color: var(--warm-text-muted); margin-top: 4px; }

/* ===== CUSTOMER DASHBOARD ===== */
.cust-dashboard {
    min-height: 100vh;
    background: var(--warm-bg);
}

.cust-topbar {
    background: white;
    padding: 14px 24px;
    border-bottom: 1px solid var(--warm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cust-topbar .logo {
    font-size: 20px;
    font-weight: 800;
    background: var(--warm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cust-topbar .nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cust-topbar .nav-links a {
    color: var(--warm-text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.15s;
}

.cust-topbar .nav-links a:hover { color: var(--warm-primary); }

.cust-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* Welcome banner */
.cust-welcome {
    background: var(--warm-gradient);
    color: white;
    border-radius: var(--warm-radius);
    padding: 32px;
    margin-bottom: 24px;
}

.cust-welcome h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cust-welcome p { font-size: 15px; opacity: 0.9; }

/* Progress card */
.cust-card {
    background: white;
    border-radius: var(--warm-radius);
    padding: 24px;
    box-shadow: var(--warm-shadow);
    margin-bottom: 20px;
}

.cust-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--warm-text);
    margin-bottom: 16px;
}

/* Progress bar */
.progress-bar-container {
    background: var(--warm-border);
    border-radius: 50px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--warm-primary), var(--warm-success));
    height: 100%;
    border-radius: 50px;
    transition: width 0.5s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--warm-text-muted);
    margin-top: 4px;
}

/* Timeline */
.cust-timeline { list-style: none; padding: 0; }

.cust-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--warm-border);
}

.cust-timeline-item:last-child { border-bottom: none; }

.cust-timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.cust-timeline-icon.completed { background: var(--warm-success-light); color: var(--warm-success); }
.cust-timeline-icon.pending { background: var(--warm-warning-light); color: var(--warm-warning); }
.cust-timeline-icon.future { background: var(--warm-border); color: var(--warm-text-muted); }

.cust-timeline-content { flex: 1; }
.cust-timeline-content .tl-title { font-weight: 600; font-size: 15px; color: var(--warm-text); }
.cust-timeline-content .tl-date { font-size: 13px; color: var(--warm-text-muted); }
.cust-timeline-content .tl-desc { font-size: 13px; color: var(--warm-text-muted); margin-top: 4px; }

/* Stats row */
.cust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cust-stat {
    background: white;
    border-radius: var(--warm-radius-sm);
    padding: 20px;
    text-align: center;
    box-shadow: var(--warm-shadow);
}

.cust-stat .stat-num {
    font-size: 32px;
    font-weight: 800;
    background: var(--warm-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cust-stat .stat-label {
    font-size: 13px;
    color: var(--warm-text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Messages */
.cust-message {
    background: var(--warm-primary-light);
    border-radius: var(--warm-radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    border-left: 4px solid var(--warm-primary);
}

.cust-message .msg-title { font-weight: 700; font-size: 14px; color: var(--warm-text); }
.cust-message .msg-body { font-size: 14px; color: var(--warm-text-muted); margin-top: 4px; }
.cust-message .msg-date { font-size: 12px; color: var(--warm-text-muted); margin-top: 8px; opacity: 0.7; }

/* Items table */
.cust-items-table {
    width: 100%;
    border-collapse: collapse;
}

.cust-items-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--warm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 2px solid var(--warm-border);
}

.cust-items-table td {
    padding: 12px;
    border-bottom: 1px solid var(--warm-border);
    font-size: 14px;
    color: var(--warm-text);
}

.cust-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cust-badge.removed { background: var(--warm-success-light); color: var(--warm-success); }
.cust-badge.disputed { background: var(--warm-warning-light); color: var(--warm-warning); }
.cust-badge.active { background: #fef2f2; color: #ef4444; }

/* Upload area */
.upload-zone {
    border: 2px dashed var(--warm-border);
    border-radius: var(--warm-radius);
    padding: 48px 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--warm-primary);
    background: var(--warm-primary-light);
}

.upload-zone .upload-icon { font-size: 48px; margin-bottom: 16px; }
.upload-zone h3 { font-size: 18px; font-weight: 700; color: var(--warm-text); margin-bottom: 8px; }
.upload-zone p { font-size: 14px; color: var(--warm-text-muted); }

/* Next action card */
.next-action {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #86efac;
    border-radius: var(--warm-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.next-action .na-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--warm-success);
    margin-bottom: 8px;
}

.next-action .na-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--warm-text);
    margin-bottom: 8px;
}

.next-action .na-desc {
    font-size: 14px;
    color: var(--warm-text-muted);
    margin-bottom: 16px;
}

.next-action .btn-warm-primary {
    display: inline-flex;
    text-decoration: none;
}

/* Empty states */
.cust-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--warm-text-muted);
}

.cust-empty .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.cust-empty h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--warm-text); }
.cust-empty p { font-size: 14px; }

/* Alerts */
.cust-alert {
    padding: 14px 18px;
    border-radius: var(--warm-radius-sm);
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 14px;
}

.cust-alert-success { background: var(--warm-success-light); color: #065f46; border: 1px solid #86efac; }
.cust-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.cust-alert-info { background: var(--warm-primary-light); color: #1e40af; border: 1px solid #93c5fd; }

/* Logout link */
.cust-topbar .logout-link {
    color: #ef4444;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .landing-hero h1 { font-size: 30px; }
    .landing-hero p { font-size: 16px; }
    .feature-grid { grid-template-columns: 1fr; }
    .wizard-options { grid-template-columns: 1fr; }
    .cust-topbar .nav-links a:not(.logout-link) { display: none; }
    .wizard-steps .wizard-step-dot { width: 28px; height: 28px; font-size: 12px; }
    .wizard-step-line { width: 16px; }
    .auth-card { padding: 28px; }
    .cust-container { padding: 20px 16px; }
    .cust-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .landing-hero { padding: 60px 20px 80px; }
    .landing-hero h1 { font-size: 26px; }
    .wizard-card { padding: 20px; }
    .cust-card { padding: 18px; }
}