@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --het-orange: #15ac55; /* The primary green brand color */
    --het-orange-dark: #0e8f45;
    --het-orange-light: #eefdf4;
    --het-green: #ff6f61; /* The secondary coral brand color */
    --het-green-bg: #fff5f4;
    --het-ai-accent: #6366f1; /* Premium Indigo for AI scanner features */
    --het-ai-accent-light: #f5f6ff;
    --het-gray-50: #f9fafb;
    --het-gray-100: #f3f4f6;
    --het-gray-200: #e2e8f0;
    --het-gray-300: #cbd5e1;
    --het-gray-400: #94a3b8;
    --het-gray-500: #64748b;
    --het-gray-600: #475569;
    --het-gray-700: #334155;
    --het-gray-800: #1e293b;
    --het-gray-900: #0f172a;
    
    --het-radius-lg: 20px;
    --het-radius: 16px;
    --het-radius-sm: 12px;
    --het-radius-xs: 8px;
    
    --het-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    --het-shadow-md: 0 4px 20px rgba(15, 23, 42, 0.05), 0 1px 4px rgba(15, 23, 42, 0.03);
    --het-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
    
    --het-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --het-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

#het-root * {
    box-sizing: border-box;
}

/* ── loader ──────────────────────────── */
.het-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 340px;
}
.het-loader span {
    width: 42px; height: 42px;
    border: 3.5px solid var(--het-gray-200);
    border-top-color: var(--het-orange);
    border-radius: 50%;
    animation: het-spin 0.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes het-spin { to { transform: rotate(360deg); } }




/* ── welcome ─────────────────────────── */
.het-welcome {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: 420px;
}
.het-welcome-content { min-width: 0; }
.het-welcome-content h1 {
    font-family: var(--het-font-display);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 16px;
    letter-spacing: -0.8px;
    color: var(--het-gray-900);
}
.het-welcome-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--het-gray-500);
    margin: 20px 0 5px;
}
.het-welcome-content .small {
    font-size: 12px;
    line-height: 1.3;
    color: var(--het-gray-500);
    margin: 0 0 24px;
}

.het-welcome-placeholder {
    background: linear-gradient(135deg, var(--het-orange-light), #d1fae5);
    border-radius: var(--het-radius-lg);
    padding: 48px 24px;
    text-align: center;
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--het-shadow-lg);
}
.het-welcome-icon { font-size: 72px; margin-bottom: 16px; animation: het-float 3s ease-in-out infinite; }
@keyframes het-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.het-welcome-tagline { font-family: var(--het-font-display); font-size: 16px; font-weight: 700; color: var(--het-orange-dark); }
.het-welcome-img {
    position: absolute; inset: 0;
    width: 100%; height: 100% !important; object-fit: cover;
}

.het-welcome-actions{ display: flex; flex-direction: column;}


/* ── buttons ─────────────────────────── */



#het-root button,
#het-root input[type="button"],
#het-root input[type="submit"] {
    color: var(--het-gray-700);
    font-family: var(--het-font);
}
#het-root button.het-btn-primary,
#het-root input.het-btn-primary {
    color: #fff;
}
.het-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--het-radius-sm);
    font-size: 14px; font-weight: 600; line-height: 1.4;
    border: 1px solid var(--het-gray-200);
    background: #fff;
    cursor: pointer; text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--het-shadow);
}
.het-btn:hover { background: var(--het-gray-50); border-color: var(--het-gray-300); transform: translateY(-1px); }
.het-btn-primary {
    background: linear-gradient(135deg, var(--het-orange), var(--het-orange-dark));
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(21, 172, 85, 0.2);
}
.het-btn-primary:hover {
    background: linear-gradient(135deg, #1cc764, var(--het-orange)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(21, 172, 85, 0.3);
    transform: translateY(-2px);
}
.het-btn-primary:disabled { background: var(--het-gray-300); opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.het-btn-ghost { background: transparent; border-color: transparent; color: var(--het-orange-dark); box-shadow: none; }
.het-btn-ghost:hover { background: var(--het-orange-light); border-color: transparent; color: var(--het-orange-dark); transform: none; }
.het-btn-secondary { background: transparent; border-color: var(--het-orange); color: var(--het-orange-dark); }
.het-btn-secondary:hover { background: var(--het-orange-light); border-color: var(--het-orange); color: var(--het-orange-dark); }
.het-btn-text { background: transparent; border: none; color: var(--het-orange-dark); padding: 4px 8px; box-shadow: none; }
.het-btn-text:hover { transform: none; background: transparent; text-decoration: underline; }
.het-btn-sm { padding: 8px 18px; font-size: 13px; border-radius: var(--het-radius-xs); }
.het-btn-lg { padding: 14px 36px; font-size: 15px; width: 100%; }
.het-btn-icon {
    width: 34px; height: 34px; padding: 0;
    border-radius: 50%; border: none;
    background: var(--het-gray-100); color: var(--het-gray-500);
    font-size: 16px; line-height: 1; box-shadow: none;
}
.het-btn-icon:hover { background: #fee2e2; color: #dc2626; transform: rotate(90deg); }

.het-step-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--het-gray-200);
    border-radius: var(--het-radius);
    padding: 16px 20px;
    box-shadow: var(--het-shadow);
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.het-step-header-left {
    grid-column: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: 600;
}
.het-step-header-right {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.het-step-header .het-btn-text {
    background: var(--het-gray-100);
    border: 1px solid var(--het-gray-200);
    color: var(--het-gray-600);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--het-radius-xs);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.het-step-header .het-btn-text:hover {
    background: var(--het-gray-200);
    color: var(--het-gray-800);
    transform: translateX(2px);
    text-decoration: none;
}
.het-step-header > .het-step-counter {
    grid-column: 2;
    font-size: 16px;
    font-weight: 700;
    color: var(--het-gray-800);
    text-align: center;
}
.het-step-header .het-nav-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--het-orange);
    background: var(--het-orange-light);
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(21, 172, 85, 0.15);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(21, 172, 85, 0.05);
}
.het-step-header .het-nav-count-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}
.het-step-header .het-nav-count-clickable:hover {
    background: var(--het-orange);
    color: #ffffff;
    border-color: var(--het-orange-dark);
    transform: scale(1.05);
}
.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: 20px;
    margin: 8px 0 24px;
}
.het-category-card {
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 36px 20px;
    background: #fff; border: 1px solid var(--het-gray-200);
    border-radius: var(--het-radius); cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: var(--het-shadow);
}
.het-category-card:hover {
    border-color: var(--het-orange);
    box-shadow: var(--het-shadow-md);
    transform: translateY(-4px);
}
.het-category-icon {
    font-size: 32px;
    letter-spacing: 3px;
    display: flex;
    justify-content: center;
    white-space: nowrap;
    margin-left: 6px;
    transition: transform 0.3s;
}
.het-category-card:hover .het-category-icon { transform: scale(1.1); }
.het-category-label { font-family: var(--het-font-display); font-size: 16px; font-weight: 700; color: var(--het-gray-800); }

.het-cats-small { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.het-cat-sm {
    padding: 18px 20px;
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px;
    border-radius: var(--het-radius-sm);
}
.het-cat-sm .het-cat-icon { font-size: 32px; display: inline; margin-top: 0px; }
.het-cat-label { font-weight: 600; font-size: 15px; color: var(--het-gray-700); }
.het-cat-sm:hover .het-cat-label { color: var(--het-orange-dark); }

/* ── form step indicator ─────────────── */
.het-form-steps {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px; padding: 10px 5px;
    justify-content: center;
    /*background: var(--het-gray-50); border-radius: var(--het-radius-sm);
    border: 1px solid var(--het-gray-200);*/
}
.het-form-step {
    font-size: 11px; font-weight: 700; color: var(--het-gray-400);
    text-transform: uppercase; letter-spacing: 0.8px;
}
.het-form-step.active { color: var(--het-orange-dark); }
.het-form-step-arrow { font-size: 10px; color: var(--het-gray-300); }

/* ── chip group ──────────────────────── */
.het-chip-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.het-chip {
    padding: 10px 18px; border-radius: 100px;
    border: 1px solid var(--het-gray-200);
    background: #fff; font-size: 13px; cursor: pointer;
    transition: all 0.2s ease; font-family: inherit;
    position: relative; box-shadow: var(--het-shadow);
}
.het-chip:hover { border-color: var(--het-orange); background: var(--het-orange-light); transform: translateY(-1px); }
.het-chip.active {
    border-color: var(--het-orange);
    background: var(--het-orange-light);
    color: var(--het-orange-dark) !important;
    font-weight: 600;
    box-shadow: var(--het-shadow-md);
}

/* ── category tabs ───────────────────── */
.het-category-tabs .het-btn {
    border-color: var(--het-gray-200);
    background: #fff;
    color: var(--het-gray-700);
    box-shadow: var(--het-shadow);
    transition: all 0.2s ease;
}
.het-category-tabs .het-btn:hover {
    border-color: var(--het-orange);
    background: var(--het-orange-light);
    color: var(--het-orange-dark);
    transform: translateY(-1px);
    box-shadow: var(--het-shadow-md);
}
.het-category-tabs .het-btn.active {
    border-color: var(--het-orange) !important;
    background: var(--het-orange-light) !important;
    color: var(--het-orange-dark) !important;
    font-weight: 600;
    box-shadow: var(--het-shadow-md) !important;
}
.het-chip:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.het-chip-label { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.het-chip-hp {
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 9px;
    font-weight: 700;
    background: var(--het-orange-light);
    color: var(--het-orange-dark);
    padding: 1px 8px;
    border-radius: 20px;
    line-height: 1.5;
    white-space: nowrap;
    border: 1px solid rgba(21, 172, 85, 0.2);
    box-shadow: var(--het-shadow);
}
.active .het-chip-hp { background: #fff; color: var(--het-orange-dark); border-color: transparent; }

/* ── quality cards ───────────────────── */
.het-quality-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; min-width: 0; }
.het-quality-card {
    display: block; padding: 16px 20px; border-radius: var(--het-radius-sm);
    border: 1px solid var(--het-gray-200); background: #fff; cursor: pointer;
    text-align: left; transition: all 0.2s ease; font-family: inherit; width: 100%;
    min-width: 0; max-width: 100%; box-sizing: border-box; overflow-wrap: break-word;
    white-space: normal; position: relative; overflow: hidden;
    box-shadow: var(--het-shadow);
}
.het-quality-card:hover {
    border-color: var(--het-orange);
    transform: translateY(-2px);
    box-shadow: var(--het-shadow-md);
}
.het-quality-card strong { display: block; font-family: var(--het-font-display); font-size: 15px; color: var(--het-gray-800); }
.het-quality-desc { display: block; margin: 6px 0 0; font-size: 12px; color: var(--het-gray-500); overflow-wrap: break-word; word-break: break-word; line-height: 1.5; max-width: 100%; white-space: normal; }
.het-quality-icon { display: block; font-size: 20px; line-height: 1; margin-bottom: 6px; }
.het-quality-card.active { border-color: var(--het-orange); background: var(--het-orange-light); box-shadow: var(--het-shadow-md); }
.het-quality-card.active strong { color: var(--het-orange-dark); }
.het-quality-card.active .het-quality-desc { color: var(--het-gray-600); }

/* ── AI assessment ───────────────────────── */
.het-quality-card.het-ai-loading {
    background: var(--het-gray-50);
    border-color: var(--het-gray-300);
    cursor: wait;
    opacity: 0.8;
    pointer-events: none;
    box-shadow: none;
}
.het-quality-card.het-ai-loading.active { border-color: var(--het-orange); }
.het-quality-card.het-ai-error {
    border-color: var(--het-green);
    background: var(--het-green-bg);
}
.het-quality-card.active[data-quality="ai"] {
    border-color: var(--het-ai-accent);
    background: var(--het-ai-accent-light);
}
.het-quality-card.active[data-quality="ai"] strong {
    color: var(--het-ai-accent);
}
.het-spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2.5px solid var(--het-gray-300);
    border-top-color: var(--het-ai-accent);
    border-radius: 50%;
    animation: het-spin 0.7s linear infinite;
    margin: 8px auto 0;
}
.het-ai-result {
    margin: 18px 0;
    border: 1px solid var(--het-ai-accent);
    border-radius: var(--het-radius-sm);
    overflow: hidden;
    box-shadow: var(--het-shadow-md);
}
.het-ai-result-error {
    border-color: var(--het-green);
}
.het-ai-result-header {
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--het-ai-accent-light);
    color: var(--het-ai-accent);
}
.het-ai-result-error .het-ai-result-header {
    background: var(--het-green-bg);
    color: var(--het-green);
}
.het-ai-result-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
    background: #fff;
}
.het-ai-result-body strong {
    display: block;
    color: var(--het-ai-accent);
    font-family: var(--het-font-display);
    font-size: 18px;
    margin-bottom: 6px;
}

.het-ai-disclaimer strong {
    color: #110a8a;
    font-size: 13px;
}


.het-ai-result-error .het-ai-result-body strong {
    color: var(--het-green);
}
.het-ai-result-body p {
    margin: 0;
    color: var(--het-gray-600);
    font-size: 13px;
    line-height: 1.5;
}
.het-ai-result-body .het-btn {
    margin-top: 12px;
}

/* ── collapsible tips ────────────────── */
.het-tips-details {
    margin-bottom: 20px;
    border: 1px solid var(--het-gray-200);
    border-radius: var(--het-radius-sm);
    background: var(--het-gray-50);
    overflow: hidden;
}
.het-tips-summary {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--het-gray-700);
    transition: background 0.2s;
}

.het-tips-summary span{
    margin-right:7px;
}


.het-tips-summary:hover { background: var(--het-gray-100); }
.het-tips-summary::-webkit-details-marker { display: none; }
.het-tips-summary::after {
    content: '›';
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin: -5px 0 0;
    transition: transform 0.2s ease;
    color: var(--het-orange-dark);
}
.het-tips-details[open] .het-tips-summary::after {
    transform: rotate(90deg);
    margin: 1px 0 0;
}
.het-tips-body {
    padding: 0px 16px 14px 15px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--het-gray-600);
    margin-top: -10px;
}
.het-tips-body ul { margin: 20px 0 5px 10px; padding: 0; list-style: circle; }
.het-tips-body li { margin-bottom: 6px; }
.het-tips-body li:last-child { margin-bottom: 0; }

/* ── form ────────────────────────────── */
.het-form-card {
    background: #fff; border: 1px solid var(--het-gray-200);
    border-radius: var(--het-radius); padding: 32px 28px;
    box-shadow: var(--het-shadow-md);
}
.het-form-row { margin-bottom: 30px; }
.het-form-row:last-child { margin-bottom: 0; }
.het-label {
    display: block; font-size: 13px; font-weight: 700;
    margin-bottom: 8px; color: var(--het-gray-600);
    text-transform: uppercase; letter-spacing: 0.5px;
}
#het-root input[type="text"],
#het-root input[type="email"],
#het-root input[type="tel"],
#het-root input[type="search"],
#het-root select,
#het-root textarea,
.het-input {
    border-radius: var(--het-radius-sm) !important;
}
.het-input {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--het-gray-200);
    font-size: 14px; font-family: inherit;
    outline: none; transition: all 0.2s ease;
    box-sizing: border-box; background: var(--het-gray-50);
}
.het-input:focus {
    border-color: var(--het-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(21, 172, 85, 0.12);
}
textarea.het-input { resize: vertical; min-height: 80px; }

.het-pw-wrap { position: relative; }
.het-pw-input { padding-right: 44px !important; }
.het-pw-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 18px;
    padding: 4px; line-height: 1; opacity: 0.5; transition: opacity 0.15s;
}
.het-pw-toggle:hover { opacity: 0.9; }

/* ── auth form ──────────────────────────── */
#het-auth-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.het-auth-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--het-gray-200); margin-bottom: 12px; }
.het-auth-tab {
    flex: 1; padding: 12px; border: none; background: none; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--het-gray-400);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: all .2s;
}
.het-auth-tab.active { color: var(--het-orange-dark); border-bottom-color: var(--het-orange); font-weight: 700; }
.het-auth-panel { display: flex; flex-direction: column; gap: 14px; }
.het-auth-error { color: var(--het-green); font-size: 13px; margin: 0; font-weight: 600; }
.het-auth-forgot { font-size: 13px; color: var(--het-orange-dark); text-decoration: none; font-weight: 600; align-self: flex-start; }
.het-auth-forgot:hover { text-decoration: underline; }
.het-auth-divider { display: flex; align-items: center; gap: 12px; color: var(--het-gray-400); font-size: 12px; font-weight: 600; text-transform: uppercase; margin: 8px 0; }
.het-auth-divider::before, .het-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--het-gray-200); }

.het-social-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    margin-top: 0px;
    margin-bottom: 20px;
}
.het-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--het-gray-300);
    background-color: var(--het-white);
    color: var(--het-gray-700);
    padding: 0;
    flex-shrink: 0;
}
.het-btn-social:hover {
    background-color: var(--het-gray-50);
    border-color: var(--het-gray-400);
}
.het-btn-google {
    color: var(--het-gray-800);
}
.het-btn-apple svg{
    fill:#000;
}
.het-btn-apple:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}
.het-btn-otp {
    background-color: var(--het-white);
    border-color: var(--het-gray-300);
    color: var(--het-gray-700);
}
.het-btn-otp:hover {
    background-color: var(--het-gray-50);
    border-color: var(--het-gray-400);
}
.het-social-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.het-social-icon svg {
    width: 100%;
    height: 100%;
}
.het-otp-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background-color: var(--het-gray-50);
    border: 1px solid var(--het-gray-200);
    border-radius: var(--het-radius-sm);
    margin-top: -10px;
}
.het-otp-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.het-otp-row .het-input {
    flex: 1;
    margin-bottom: 0 !important;
}

.het-toggle {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; cursor: pointer; font-weight: 500; color: var(--het-gray-600);
}
.het-toggle input[type="checkbox"] {
    width: 20px !important; height: 20px !important; accent-color: var(--het-orange);
    border-radius: var(--het-radius-xs); border: 1px solid var(--het-gray-300);
    cursor: pointer;
}
.het-toggle a { color: var(--het-orange-dark); text-decoration: none; font-weight: 600; }
.het-toggle a:hover { text-decoration: underline; }

.het-bonus-badge {
    display: inline-block; padding: 2px 8px;
    border-radius: 20px; font-size: 10px; font-weight: 700;
    background: var(--het-ai-accent-light); color: var(--het-ai-accent);
    margin-left: 8px; border: 1px solid rgba(99, 102, 241, 0.15);
}

.het-form-actions {
    display: flex; gap: 12px; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--het-gray-200);
}
.het-form-actions > .het-btn-ghost:first-child {
    margin-right: auto;
}

/* ── dropzone ────────────────────────── */
.het-dropzone {
    border: 2px dashed var(--het-gray-300);
    border-radius: var(--het-radius);
    padding: 36px 20px; text-align: center;
    cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; background: var(--het-gray-50);
}
.het-dropzone:hover, .het-dropzone.drag {
    border-color: var(--het-orange);
    background: var(--het-orange-light);
    box-shadow: var(--het-shadow-md);
}
.het-file-input, .het-file-input-capture {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
.het-dropzone-placeholder svg { margin: 0 auto 12px; color: var(--het-gray-400); transition: color 0.2s; }
.het-dropzone:hover .het-dropzone-placeholder svg { color: var(--het-orange); }
.het-dropzone-placeholder p { margin: 0; font-size: 14px; font-weight: 600; color: var(--het-gray-600); }
.het-photo-previews {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px;
}
.het-photo-thumb {
    position: relative; width: 84px; height: 84px;
    border-radius: var(--het-radius-sm); overflow: hidden;
    border: 1px solid var(--het-gray-200); box-shadow: var(--het-shadow);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.het-photo-thumb:hover { transform: scale(1.05); box-shadow: var(--het-shadow-md); }
.het-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.het-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 12px;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: #fff !important;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.het-photo-remove:hover { background: var(--het-green); }
.het-thumb-pending { opacity: 0.6; }
.het-photo-pending {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.het-thumb-error {
    border-color: var(--het-green);
    background: var(--het-green-bg);
}
.het-photo-error-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--het-green);
}

/* ── review ──────────────────────────── */
.het-review-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.het-review-item {
    background: #fff; border: 1px solid var(--het-gray-200);
    border-radius: var(--het-radius); padding: 18px 20px;
    cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--het-shadow);
}
.het-review-item:hover { box-shadow: var(--het-shadow-md); transform: translateY(-2px); border-color: var(--het-gray-300); }
.het-review-item-head { display: flex; align-items: flex-start; gap: 14px; }
.het-review-num {
    width: 30px; height: 30px; 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;
    box-shadow: 0 2px 6px rgba(21, 172, 85, 0.2);
}
.het-review-info { flex: 1; min-width: 0; }
.het-review-info strong { font-family: var(--het-font-display); font-size: 15px; display: block; color: var(--het-gray-800); }
.het-review-meta { font-size: 11px; color: var(--het-gray-500); font-weight: 500; margin-top: 2px; }
.het-review-hp { font-family: var(--het-font-display); font-size: 18px; font-weight: 800; color: var(--het-orange-dark); white-space: nowrap; }
.het-badge-ai {
    font-size: 9px; font-weight: 800; text-transform: uppercase;
    background: var(--het-ai-accent); color: #fff;
    padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px;
    vertical-align: middle; margin-left: 6px;
}
.het-review-note { font-size: 12px; color: var(--het-gray-600); margin-top: 8px; padding-left: 0; line-height: 1.5; }
.het-review-story {
    font-size: 12px; color: var(--het-gray-600); line-height: 1.5;
    margin-top: 12px; padding: 10px 20px 0;
    margin-left: -20px; margin-right: -20px;
    border-top: 1px solid var(--het-gray-100);
    word-break: break-word;
}
.het-quality-icon-sm { font-size: 14px; line-height: 1; vertical-align: middle; }
.het-review-photos { font-size: 11px; color: var(--het-gray-400); padding-left: 0; margin-top: 4px; font-weight: 500; }
.het-review-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 24px;
    background: var(--het-ai-accent-light);
    color: var(--het-ai-accent);
    border-radius: var(--het-radius);
    font-size: 16px;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--het-shadow);
}
.het-review-total strong { font-family: var(--het-font-display); font-size: 32px; font-weight: 800; color: var(--het-ai-accent); }
.het-empty { text-align: center; color: var(--het-gray-400); padding: 32px; font-weight: 500; }

/* ── rewards preview ─────────────────── */
.het-rewards-preview {
    background: var(--het-orange-light);
    border: 1px solid rgba(21, 172, 85, 0.25);
    border-radius: var(--het-radius);
    margin-bottom: 32px; overflow: hidden;
    box-shadow: var(--het-shadow);
}
.het-rewards-summary {
    cursor: pointer; padding: 18px 24px; list-style: none; display: flex; align-items: center; justify-content: space-between;
    transition: background 0.2s;
}
.het-rewards-summary:hover { background: rgba(21, 172, 85, 0.05); }
.het-rewards-summary::-webkit-details-marker { display: none; }
.het-rewards-summary::after { content: '›'; font-size: 20px; font-weight: 700; color: var(--het-orange); transition: transform .2s; }
.het-rewards-preview[open] .het-rewards-summary::after { transform: rotate(90deg); }
.het-rewards-summary h4 { margin: 0; font-family: var(--het-font-display); font-size: 15px; font-weight: 700; color: var(--het-orange-dark); }
.het-rewards-preview .het-rewards-list { padding: 0 24px 20px; }
.het-rewards-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.het-reward-card {
    display: flex; gap: 12px; padding: 12px; border-radius: var(--het-radius-sm);
    background: #fff; border: 1px solid var(--het-gray-200);
    box-shadow: var(--het-shadow);
}
.het-reward-card-img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.het-reward-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.het-reward-card-body strong { font-size: 13px; font-weight: 700; color: var(--het-gray-800); }
.het-reward-card-desc { font-size: 11px; color: var(--het-gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.het-reward-card-hp { font-family: var(--het-font-display); font-size: 13px; font-weight: 700; color: var(--het-orange-dark); }
.het-reward-locked { opacity: 0.65; background: var(--het-gray-50); }
.het-reward-card-unlock { font-size: 10px; font-weight: 600; color: var(--het-gray-400); text-transform: uppercase; letter-spacing: 0.2px; }
.het-reward-none { font-size: 13px; color: var(--het-gray-500); padding: 8px 0; }

/* ── submit form ─────────────────────── */
.het-submit-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* ── done ────────────────────────────── */
.het-done {
    text-align: center; padding: 64px 24px;
}
.het-done-icon { font-size: 80px; margin-bottom: 20px; animation: het-bounce 2s infinite; }
@keyframes het-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.het-done h2 { font-family: var(--het-font-display); font-size: 28px; font-weight: 800; margin: 0 0 16px; color: var(--het-gray-900); }
.het-done p { font-size: 15px; color: var(--het-gray-500); margin: 0 0 12px; }
.het-done-stats {
    display: flex; justify-content: center; gap: 48px;
    margin: 36px 0;
}
.het-done-stat strong {
    display: block; font-family: var(--het-font-display); font-size: 44px; font-weight: 800;
    color: var(--het-orange); line-height: 1.1; margin-bottom: 4px;
}
.het-done-stat span { font-size: 12px; font-weight: 600; color: var(--het-gray-400); text-transform: uppercase; letter-spacing: 0.5px; }
.het-done-footnote { font-size: 12px; color: var(--het-gray-400); margin-top: 24px !important; }

/* ── responsive ──────────────────────── */
@media (max-width: 768px) {
    #het-root { padding: 16px 12px; }
    .het-welcome { grid-template-columns: 1fr; gap: 32px; }
    .het-welcome-content { text-align: center; }
    .het-welcome-actions { display: flex; flex-direction: column; align-items: center; max-width: 400px; margin: 0 auto; }
    .het-welcome-image { width: 100%; max-width: 320px; margin: 0 auto; }
    .het-welcome-placeholder { aspect-ratio: 1/1; padding: 32px; }
    .het-category-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .het-category-card { padding: 28px 25px; }
    .het-category-icon { font-size: 36px; }
    .het-form-card { padding: 24px 20px; }
    .het-review-item-head { flex-wrap: wrap; gap: 10px; }
    .het-review-hp { margin-left: auto; }
    .het-quality-cards { gap: 8px; }
    .het-quality-card { padding: 12px 14px; }
    .het-quality-desc { font-size: 11px; }
    .het-review-items { grid-template-columns: 1fr; gap: 12px; }
    .het-rewards-list { grid-template-columns: 1fr; gap: 10px; }
    .het-step-header > .het-step-counter { display: none; }
    .het-step:has(.het-category-cards) .het-step-header > .het-step-counter { display: block; }
}
@media (max-width: 480px) {
    .het-category-cards { grid-template-columns: 1fr; }
    .het-welcome-content h1 { font-size: 24px; }
    .het-done-stats { gap: 32px; }
    .het-cats-small { grid-template-columns: 1fr; }
    .het-tips-body {margin-top: 0px;}
}

/* ── logged-in user info ─────────────────── */
.het-user-info { text-align: center; margin-bottom: 32px; }
.het-user-greeting { display: block; font-family: var(--het-font-display); font-size: 22px; font-weight: 700; margin-bottom: 16px; color: var(--het-gray-900); }
.het-user-stats { display: flex; align-items: flex-start; justify-content: center; gap: 24px; margin-bottom: 12px; }
.het-tier-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.het-tier-wrap small { font-size: 10px; font-weight: 700; color: var(--het-gray-400); letter-spacing: .8px; text-transform: uppercase; }
.het-user-tier { font-size: 13px; font-weight: 700; display: inline-block; background: var(--het-gray-100); padding: 4px 12px; border-radius: 20px; color: var(--het-gray-700); }
.het-user-balance small { display: block; font-size: 10px; font-weight: 700; color: var(--het-gray-400); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.het-user-balance { font-family: var(--het-font-display); font-size: 20px; font-weight: 800; color: var(--het-orange); display: flex; flex-direction: column; align-items: center; }
.het-user-cta { font-size: 13px; color: var(--het-gray-500); margin: 0; font-weight: 500; }
.het-review-balance { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--het-orange-light); border: 1px solid rgba(21, 172, 85, 0.25); border-radius: var(--het-radius); margin-bottom: 30px; box-shadow: var(--het-shadow); }
.het-review-balance span { font-size: 14px; color: var(--het-gray-600); font-weight: 600; }
.het-review-balance strong { font-family: var(--het-font-display); font-size: 20px; color: var(--het-orange-dark); }

/* ── done bonuses ───────────────────── */
.het-done-bonuses { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.het-done-bonus { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--het-orange-light); border: 1px solid rgba(21, 172, 85, 0.25); border-radius: var(--het-radius-sm); font-size: 13px; color: var(--het-gray-700); font-weight: 500; box-shadow: var(--het-shadow); }
.het-done-bonus-icon { font-size: 18px; line-height: 1; }

/* ── AI disabled state & story tags ──── */
.het-quality-card.het-ai-disabled {
    opacity: 0.65;
    cursor: pointer;
    background: var(--het-gray-50);
    border-color: var(--het-gray-200);
}
.het-quality-card.het-ai-disabled:disabled {
    cursor: not-allowed;
    pointer-events: none;
}
.het-quality-card.het-ai-guest {
    cursor: pointer;
   border: 1px dashed var(--het-ai-accent);

}
.het-quality-card.het-ai-guest:hover {
    border-color: #4f46e5;
    background: #ede9fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}
.het-story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.het-story-tag {
    background: var(--het-orange-light);
    border: 1px solid var(--het-orange);
    border-radius: var(--het-radius-xs);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--het-gray-600);
    cursor: pointer;
    transition: all 0.15s ease;
}
.het-story-tag:hover {
    background: var(--het-orange-light);
    border-color: var(--het-orange);
    color: var(--het-orange-dark);
}
.het-story-tag:disabled,
.het-story-tag.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--het-gray-50);
    border-color: var(--het-gray-200);
    color: var(--het-gray-400);
    pointer-events: none;
}
.het-draft-banner {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px dashed var(--het-orange);
    background: var(--het-orange-light);
    border-radius: var(--het-radius-sm);
    display: flex;
    gap: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Disable other quality cards when AI is loading */
.het-quality-cards:has(.het-ai-loading) .het-quality-card:not(.het-ai-loading) {
    opacity: 0.5;
    pointer-events: none;
}

/* ── AI Scanner Animation ────────────────── */
.het-ai-scanner {
    margin-top: 18px;
    border: 1px solid var(--het-ai-accent);
    border-radius: var(--het-radius-sm);
    background: #fff;
    overflow: hidden;
    box-shadow: var(--het-shadow-md);
    animation: het-fade-in 0.3s ease-out;
}

.het-ai-scanner-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--het-ai-accent-light);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.het-ai-scanner-icon {
    font-size: 24px;
    animation: het-pulse 1.5s infinite ease-in-out;
}

.het-ai-scanner-text {
    display: flex;
    flex-direction: column;
}

.het-ai-scanner-text strong {
    color: var(--het-ai-accent);
    font-size: 14px;
    font-weight: 700;
}

.het-ai-scanner-text span {
    color: var(--het-gray-500);
    font-size: 12px;
}

.het-ai-scanner-grid {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--het-gray-50);
    overflow: hidden;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.het-ai-scanner-thumb {
    width: 100px;
    height: 100px;
    border-radius: var(--het-radius-xs);
    overflow: hidden;
    border: 2px solid var(--het-gray-200);
    background: #fff;
    position: relative;
    box-shadow: var(--het-shadow);
}

.het-ai-scanner-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The vertical scan line */
.het-scanner-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0) 0%, rgba(99, 102, 241, 0.8) 50%, rgba(99, 102, 241, 0) 100%);
    box-shadow: 0 0 12px 3px rgba(99, 102, 241, 0.6);
    pointer-events: none;
    z-index: 10;
    animation: het-scanner-loop 2.0s infinite ease-in-out;
}

@keyframes het-scanner-loop {
    0% {
        top: 0%;
    }
    50% {
        top: calc(100% - 6px);
    }
    100% {
        top: 0%;
    }
}

/* ── Premium Custom Modal ──────────────── */
.het-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.het-modal-overlay.active {
    opacity: 1;
}
.het-modal-box {
    background: #ffffff;
    border-radius: var(--het-radius);
    width: 90%;
    max-width: 440px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.het-modal-overlay.active .het-modal-box {
    transform: translateY(0);
}
.het-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--het-gray-400);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}
.het-modal-close:hover {
    color: var(--het-gray-800);
    transform: scale(1.1);
}
.het-modal-title {
    font-family: var(--het-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--het-gray-900);
    margin: 0 0 10px 0;
}
.het-modal-body {
    font-size: 14px;
    color: var(--het-gray-600);
    line-height: 1.5;
    margin-bottom: 24px;
}
.het-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.het-modal-actions .het-btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
}

@keyframes het-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.92); }
}

@keyframes het-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── streamlined welcome & login panel ── */
.het-welcome-header h1 {
    font-family: var(--het-font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    letter-spacing: 0px;
    color: var(--het-gray-900);
}
.het-welcome-header p {
    font-size: 15px;
    color: var(--het-gray-500);
    line-height: 1.6;
}
#het-expand-login-panel {
    animation: het-fade-in-slide 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes het-fade-in-slide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}