:root {
    --het-orange: #e67e22;
    --het-orange-dark: #d35400;
    --het-orange-light: #fff7ed;
    --het-green: #059669;
    --het-green-bg: #ecfdf5;
    --het-gray-50: #f9fafb;
    --het-gray-100: #f3f4f6;
    --het-gray-200: #e5e7eb;
    --het-gray-300: #d1d5db;
    --het-gray-400: #9ca3af;
    --het-gray-500: #6b7280;
    --het-gray-600: #4b5563;
    --het-gray-700: #374151;
    --het-gray-800: #1f2937;
    --het-gray-900: #111827;
    --het-radius: 16px;
    --het-radius-sm: 10px;
    --het-radius-xs: 6px;
    --het-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --het-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --het-shadow-lg: 0 10px 40px rgba(0,0,0,0.10);
    --het-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#het-root {
    font-family: var(--het-font);
    color: var(--het-gray-800);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ── loader ──────────────────────────── */
.het-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}
.het-loader span {
    width: 36px; height: 36px;
    border: 3px solid var(--het-gray-200);
    border-top-color: var(--het-orange);
    border-radius: 50%;
    animation: het-spin 0.7s linear infinite;
}
@keyframes het-spin { to { transform: rotate(360deg); } }

/* ── welcome ─────────────────────────── */
.het-welcome {
    display: flex;
    gap: 40px;
    align-items: center;
    min-height: 400px;
}
.het-welcome-content { flex: 1; }
.het-welcome-content h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.het-welcome-content p {
    font-size: 16px;
    color: var(--het-gray-500);
    margin: 0 0 28px;
}
.het-welcome-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.het-welcome-image { flex: 0 0 260px; }
.het-welcome-placeholder {
    background: linear-gradient(135deg, var(--het-orange-light), #ffe4cc);
    border-radius: var(--het-radius);
    padding: 40px 20px;
    text-align: center;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.het-welcome-icon { font-size: 64px; margin-bottom: 12px; }
.het-welcome-tagline { font-size: 14px; font-weight: 600; color: var(--het-orange); }

/* ── buttons ─────────────────────────── */
.het-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 28px; border-radius: var(--het-radius-xs);
    font-size: 15px; font-weight: 600; line-height: 1.4;
    border: 1px solid var(--het-gray-200);
    background: #fff; color: var(--het-gray-700);
    cursor: pointer; text-decoration: none;
    transition: all 0.15s ease;
}
.het-btn:hover { background: var(--het-gray-50); border-color: var(--het-gray-300); }
.het-btn-primary {
    background: linear-gradient(135deg, var(--het-orange), var(--het-orange-dark));
    color: #fff; border-color: transparent;
    box-shadow: 0 2px 8px rgba(230,126,34,0.25);
}
.het-btn-primary:hover { box-shadow: 0 4px 14px rgba(230,126,34,0.35); transform: translateY(-1px); }
.het-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.het-btn-ghost { background: transparent; border-color: transparent; color: var(--het-orange); }
.het-btn-ghost:hover { background: var(--het-orange-light); }
.het-btn-text { background: transparent; border: none; color: var(--het-orange); padding: 4px 8px; }
.het-btn-sm { padding: 8px 16px; font-size: 13px; }
.het-btn-lg { padding: 14px 36px; font-size: 16px; width: 100%; }
.het-btn-icon {
    width: 32px; height: 32px; padding: 0;
    border-radius: 50%; border: none;
    background: var(--het-gray-100); color: var(--het-gray-500);
    font-size: 18px; line-height: 1;
}
.het-btn-icon:hover { background: #fee2e2; color: #dc2626; }

/* ── nav ─────────────────────────────── */
.het-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; margin-bottom: 24px;
    background: var(--het-gray-50); border-radius: var(--het-radius-sm);
    border: 1px solid var(--het-gray-200);
}
.het-nav-steps { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.het-nav-step { color: var(--het-gray-400); font-weight: 500; }
.het-nav-step.active { color: var(--het-orange); font-weight: 600; }
.het-nav-arrow { color: var(--het-gray-300); font-size: 12px; }
.het-nav-count {
    font-size: 13px; font-weight: 700; color: var(--het-gray-500);
    background: var(--het-gray-200); padding: 2px 10px; border-radius: 20px;
}

/* ── step ────────────────────────────── */
.het-step { padding: 0 4px; }
.het-step-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.het-step-counter { font-size: 18px; font-weight: 700; }
.het-step-hint { font-size: 13px; color: var(--het-gray-400); }

/* ── category cards ──────────────────── */
.het-category-cards {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
    margin: 8px 0 24px;
}
.het-category-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 32px 20px;
    background: #fff; border: 2px solid var(--het-gray-200);
    border-radius: var(--het-radius); cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit; font-size: inherit;
}
.het-category-card:hover {
    border-color: var(--het-orange);
    box-shadow: var(--het-shadow-md);
    transform: translateY(-2px);
}
.het-category-icon { font-size: 48px; }
.het-category-label { font-size: 16px; font-weight: 700; }
.het-cats-small { grid-template-columns: repeat(2, 1fr); }
.het-cat-sm { padding: 18px 14px; }
.het-cat-label { font-weight: 600; }

/* ── chip group ──────────────────────── */
.het-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.het-chip {
    padding: 8px 16px; border-radius: 100px;
    border: 1.5px solid var(--het-gray-200);
    background: #fff; font-size: 13px; cursor: pointer;
    transition: all 0.12s ease; font-family: inherit;
}
.het-chip:hover { border-color: var(--het-orange); background: var(--het-orange-light); }
.het-chip.active {
    border-color: var(--het-orange); background: var(--het-orange);
    color: #fff; font-weight: 600;
}
.het-chip small { opacity: 0.6; margin-left: 4px; font-weight: 400; }
.het-chip.active small { opacity: 0.9; }

/* ── quality cards ───────────────────── */
.het-quality-cards { display: flex; flex-direction: column; gap: 8px; }
.het-quality-card {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 16px; border-radius: var(--het-radius-sm);
    border: 1.5px solid var(--het-gray-200); background: #fff;
    cursor: pointer; text-align: left;
    transition: all 0.12s ease; font-family: inherit;
}
.het-quality-card:hover { border-color: var(--het-orange); }
.het-quality-card.active {
    border-color: var(--het-orange);
    background: var(--het-orange-light);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}
.het-quality-card strong { font-size: 14px; }
.het-quality-card small { font-size: 12px; color: var(--het-gray-500); }
.het-quality-card.active small { color: var(--het-gray-600); }

/* ── form ────────────────────────────── */
.het-form-card {
    background: #fff; border: 1px solid var(--het-gray-200);
    border-radius: var(--het-radius); padding: 24px;
    box-shadow: var(--het-shadow);
}
.het-form-row { margin-bottom: 18px; }
.het-form-row:last-child { margin-bottom: 0; }
.het-label {
    display: block; font-size: 14px; font-weight: 600;
    margin-bottom: 8px; color: var(--het-gray-700);
}
.het-input {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--het-gray-300); border-radius: var(--het-radius-xs);
    font-size: 14px; font-family: inherit;
    outline: none; transition: border-color 0.12s ease;
    box-sizing: border-box;
}
.het-input:focus { border-color: var(--het-orange); box-shadow: 0 0 0 3px rgba(230,126,34,0.1); }
textarea.het-input { resize: vertical; min-height: 60px; }

.het-toggle {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; cursor: pointer; font-weight: 400;
}
.het-toggle input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--het-orange);
}
.het-toggle a { color: var(--het-orange); text-decoration: underline; }

.het-bonus-badge {
    display: inline-block; padding: 1px 10px;
    border-radius: 20px; font-size: 11px; font-weight: 700;
    background: var(--het-green-bg); color: var(--het-green);
    margin-left: 6px;
}

.het-form-actions {
    display: flex; gap: 12px; margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--het-gray-200);
}

/* ── dropzone ────────────────────────── */
.het-dropzone {
    border: 2px dashed var(--het-gray-300);
    border-radius: var(--het-radius-sm);
    padding: 24px; text-align: center;
    cursor: pointer; transition: all 0.12s ease;
    position: relative;
}
.het-dropzone:hover, .het-dropzone.drag {
    border-color: var(--het-orange);
    background: var(--het-orange-light);
}
.het-file-input { display: none; }
.het-dropzone-placeholder svg { margin: 0 auto 8px; color: var(--het-gray-400); }
.het-dropzone-placeholder p { margin: 0; font-size: 14px; color: var(--het-gray-500); }
.het-photo-previews {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.het-photo-thumb {
    position: relative; width: 80px; height: 80px;
    border-radius: var(--het-radius-xs); overflow: hidden;
    border: 1px solid var(--het-gray-200);
}
.het-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.het-photo-remove {
    position: absolute; top: -4px; right: -4px;
    width: 22px; height: 22px; border-radius: 50%;
    border: none; background: rgba(0,0,0,0.6); color: #fff;
    font-size: 14px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.het-thumb-pending { opacity: 0.6; }
.het-photo-pending {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

/* ── items bar ───────────────────────── */
.het-items-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; margin-top: 20px;
    background: var(--het-orange-light);
    border: 1px solid var(--het-orange);
    border-radius: var(--het-radius-sm);
}
.het-items-bar-total { font-size: 14px; font-weight: 700; color: var(--het-orange-dark); }

/* ── review ──────────────────────────── */
.het-review-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.het-review-item {
    background: #fff; border: 1px solid var(--het-gray-200);
    border-radius: var(--het-radius-sm); padding: 14px 16px;
}
.het-review-item-head { display: flex; align-items: center; gap: 12px; }
.het-review-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--het-orange); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.het-review-info { flex: 1; }
.het-review-info strong { font-size: 15px; display: block; }
.het-review-meta { font-size: 12px; color: var(--het-gray-500); }
.het-review-hp { font-size: 16px; font-weight: 800; color: var(--het-orange); white-space: nowrap; }
.het-review-note { font-size: 13px; color: var(--het-gray-600); margin-top: 6px; padding-left: 40px; }
.het-review-photos { font-size: 12px; color: var(--het-gray-400); padding-left: 40px; margin-top: 2px; }
.het-review-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; margin-bottom: 20px;
    background: var(--het-gray-900); color: #fff;
    border-radius: var(--het-radius-sm);
    font-size: 16px; font-weight: 600;
}
.het-review-total strong { font-size: 28px; font-weight: 800; }
.het-empty { text-align: center; color: var(--het-gray-400); padding: 24px; }

/* ── rewards preview ─────────────────── */
.het-rewards-preview {
    background: var(--het-green-bg);
    border: 1px solid var(--het-green);
    border-radius: var(--het-radius-sm);
    padding: 16px 20px; margin-bottom: 24px;
}
.het-rewards-preview h4 {
    margin: 0 0 10px; font-size: 14px; font-weight: 700;
    color: var(--het-green);
}
.het-rewards-list { display: flex; flex-wrap: wrap; gap: 8px; }
.het-reward-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px;
    background: #fff; border: 1px solid var(--het-gray-200);
    font-size: 13px;
}
.het-reward-chip strong { font-weight: 600; }
.het-reward-chip span { color: var(--het-orange); font-weight: 700; }
.het-reward-none { font-size: 13px; color: var(--het-gray-500); }

/* ── done ────────────────────────────── */
.het-done {
    text-align: center; padding: 60px 20px;
}
.het-done-icon { font-size: 72px; margin-bottom: 16px; }
.het-done h2 { font-size: 26px; font-weight: 800; margin: 0 0 12px; }
.het-done p { font-size: 16px; color: var(--het-gray-500); margin: 0 0 8px; }
.het-done-stats {
    display: flex; justify-content: center; gap: 40px;
    margin: 28px 0;
}
.het-done-stat strong {
    display: block; font-size: 36px; font-weight: 800;
    color: var(--het-orange);
}
.het-done-stat span { font-size: 13px; color: var(--het-gray-500); }
.het-done-footnote { font-size: 12px; color: var(--het-gray-400); margin-top: 20px !important; }

/* ── responsive ──────────────────────── */
@media (max-width: 768px) {
    #het-root { padding: 12px 0; }
    .het-welcome { flex-direction: column; gap: 24px; }
    .het-welcome-image { flex: none; width: 100%; }
    .het-welcome-placeholder { aspect-ratio: auto; padding: 24px; flex-direction: row; gap: 16px; }
    .het-category-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .het-category-card { padding: 24px 16px; }
    .het-category-icon { font-size: 36px; }
    .het-form-card { padding: 18px; }
    .het-review-item-head { flex-wrap: wrap; }
    .het-review-hp { margin-left: auto; }
}
@media (max-width: 480px) {
    .het-category-cards { grid-template-columns: 1fr; }
    .het-welcome-content h1 { font-size: 22px; }
    .het-done-stats { gap: 24px; }
}
