* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #f1f5f9;
    min-height: 100vh;
}
.wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}
.wrap.narrow { max-width: 340px; padding-top: 80px; }

h1 {
    font-size: 22px;
    margin: 0 0 20px;
}

.card {
    background: #1e293b;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-top: 14px;
}
.label:first-child { margin-top: 0; }

.value { font-size: 17px; margin-top: 2px; }

.amount {
    font-size: 34px;
    font-weight: 700;
    margin-top: 4px;
}
.amount-small { font-size: 16px; font-weight: 600; color: #a5f3fc; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    background: #334155;
}
.badge-quoted { background: #475569; }
.badge-in_progress { background: #854d0e; }
.badge-completed { background: #14532d; }

.paid-banner {
    margin-top: 18px;
    padding: 12px;
    background: #14532d;
    color: #bbf7d0;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.pay-section { margin-top: 18px; }

.pay-btn {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
}
.pay-btn.venmo { background: #3D95CE; }
.pay-btn.apple { background: #000; }
.pay-btn.zelle { background: #6D1ED4; margin-bottom: 0; }

.zelle-box { margin-top: 10px; }
.zelle-instructions {
    font-size: 14px;
    color: #cbd5e1;
    background: #0f172a;
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 8px;
}

.footer-note {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-top: 24px;
}

/* Admin */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logout-link { color: #94a3b8; font-size: 14px; text-decoration: none; }

.summary-card { text-align: center; }

form label {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 12px;
    margin-bottom: 4px;
}
form input, form select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 15px;
}
.add-job-form button, .card > form > button { margin-top: 16px; }

details summary {
    cursor: pointer;
    font-weight: 600;
    padding: 4px 0;
}

.job-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.job-desc { color: #cbd5e1; margin-top: 4px; font-size: 14px; }
.attachment-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.attachment-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #334155; }
.attachment-link { font-size: 13px; color: #a5f3fc; background: #0f172a; padding: 6px 10px; border-radius: 6px; text-decoration: none; }

.job-controls {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}
.job-controls select {
    flex: 1;
    padding: 8px;
    font-size: 13px;
}
.paid-toggle {
    padding: 8px 14px;
    border-radius: 8px;
    background: #334155;
    color: #f1f5f9;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.paid-toggle.is-paid { background: #14532d; color: #bbf7d0; }

.client-link { margin-top: 12px; font-size: 12px; color: #94a3b8; }
.client-link input {
    width: 100%;
    margin-top: 4px;
    padding: 6px 8px;
    font-size: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #94a3b8;
}

.error { color: #fca5a5; }
.empty-state { color: #64748b; text-align: center; margin-top: 30px; }

.header-actions { display: flex; gap: 14px; align-items: center; }
.request-alert .label { color: #fca5a5; }
.button-block { width: 100%; border: 0; cursor: pointer; }
.danger-button { background: #7f1d1d; }
.expense-details { margin-top: 10px; background: #0f172a; padding: 12px; }
.expense-details summary { font-size: 14px; color: #94a3b8; }
.expense-row { display: flex; justify-content: space-between; font-size: 14px; margin-top: 8px; border-bottom: 1px solid #1e293b; padding-bottom: 4px; }
.expense-form { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.expense-form input, .expense-form select { padding: 6px; }
.expense-name { flex: 1; min-width: 120px; }
.expense-cost { width: 100px; }
.expense-markup { width: 140px; }
.expense-form .pay-btn { width: auto; padding: 6px 12px; font-size: 14px; }
.archive-note { color: #64748b; font-size: 13px; margin: 10px 0 0; }
.archive-jobs { margin-top: 14px; }

/* Client portal */
.client-surcharge-note { font-size: 14px; color: #cbd5e1; }
.client-materials-label { margin-top: 16px; }
.client-materials-list { margin: 8px 0; padding-left: 20px; color: #cbd5e1; font-size: 15px; }
.client-materials-subtotal { font-size: 14px; color: #94a3b8; }
.client-grand-total { margin-top: 12px; color: #fff; font-size: 18px; }
.zelle-button-static { pointer-events: none; }
.calendar-download { margin-top: 24px; padding-top: 20px; border-top: 1px solid #334155; text-align: center; }
.calendar-download-link { display: inline-block; padding: 12px 24px; border-radius: 6px; background: #0284c7; color: #fff; font-weight: bold; text-decoration: none; }
.client-referral-box { margin-top: 20px; }
.referral-heading { color: #bbf7d0; }
.referral-copy { margin: 8px 0 12px; color: #cbd5e1; }
.referral-link { width: 100%; padding: 8px; border: 1px solid #334155; border-radius: 6px; background: #0f172a; color: #94a3b8; font-size: 12px; }

/* Price form */
.compact-top { padding-top: 40px; }
.reward-copy { margin: 8px 0 0; color: #cbd5e1; }
.price-form-control { width: 100%; padding: 8px; border: 1px solid #334155; border-radius: 6px; background: #1e293b; color: #fff; }
.price-task-select { margin-bottom: 10px; }
.price-hours { margin-bottom: 14px; }
.date-time-fields { display: flex; gap: 10px; margin: 14px 0; }
.date-time-field { flex: 1; }
.reward-toggle { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.reward-toggle input { width: auto; }
.price-surcharge-label { margin-top: 16px; }
.price-total-label { margin-top: 10px; }
.price-save-button { margin-top: 18px; }

/* Quote request form */
.request-page { padding-top: 40px; }
.request-title { text-align: center; }
.request-success { padding: 40px 20px; text-align: center; }
.request-success-copy { margin-top: 10px; color: #cbd5e1; }
.request-intro { margin-bottom: 20px; color: #cbd5e1; text-align: center; }
.request-form input[type="text"], .request-form textarea, .request-form input[type="date"], .request-form input[type="time"] { padding: 8px; border: 1px solid #334155; border-radius: 6px; background: #1e293b; color: #fff; }
.request-form input[type="text"], .request-form textarea { margin-bottom: 14px; }
.service-selector-label { display: block; margin-bottom: 8px; }
.service-selector, .request-policy { margin-bottom: 14px; padding: 12px; border: 1px solid #334155; border-radius: 6px; background: #0f172a; }
.service-selector { max-height: 250px; overflow-y: auto; }
.service-group-heading { margin: 0 0 6px; color: #94a3b8; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.service-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #cbd5e1; font-size: 14px; cursor: pointer; }
.service-option-spaced { margin-bottom: 12px; }
.service-option-last { margin-bottom: 0; }
.service-option input { width: 16px; height: 16px; }
.request-file-input { margin-bottom: 14px; padding: 8px; border: 1px solid #334155; border-radius: 6px; background: #1e293b; color: #94a3b8; }
.request-date-time-fields { margin-top: 0; margin-bottom: 14px; }
.request-policy-copy { margin: 0; color: #94a3b8; font-size: 13px; }
.request-policy-copy-spaced { margin-bottom: 8px; }
.request-submit-button, .request-appointment-button { margin-top: 10px; }
.request-appointment-button { width: 100%; padding: 12px; border: 0; border-radius: 6px; background: #0284c7; color: #fff; font-weight: bold; cursor: pointer; }
