/* ===== ROZIC MOVE — App shell (order flow) ===== */
/* Reuses the CSS variables defined in ../style.css (--green, --navy, --bg, etc.) — load style.css before this file. */

:root {
  /* Layered shadows (soft ambient + tighter contact shadow) — the same idea as
     .feature-card/.testimonial in the main site, made explicit as tokens so
     every app/ component reads from one shared elevation system. */
  --shadow-1: 0 1px 2px rgba(17,27,17,0.05), 0 2px 8px rgba(17,27,17,0.04);
  --shadow-2: 0 2px 6px rgba(17,27,17,0.05), 0 12px 28px rgba(17,27,17,0.08);
  --shadow-3: 0 4px 12px rgba(17,27,17,0.06), 0 28px 56px -16px rgba(17,27,17,0.18);
  --shadow-3-green: 0 4px 14px rgba(14,92,67,0.10), 0 28px 56px -16px rgba(14,92,67,0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.app-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 900px 500px at 100% -10%, rgba(14,92,67,0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 20%, rgba(29,53,87,0.05), transparent 55%),
    var(--bg);
  padding-bottom: 60px;
}

/* --- Under-construction notice (see under-construction-banner.js) --- */
.construction-banner {
  width: 100%;
  background: #F5A623;
  color: #3A2400;
  text-align: center;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 16px;
  line-height: 1.5;
}

/* --- Top bar --- */
.app-topbar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-topbar .back-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.app-topbar .back-btn:hover { background: var(--green-light); }

.app-topbar .app-topbar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  flex: 1;
}

.app-topbar .app-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* --- Shell container --- */
.app-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

.app-container.wide { max-width: 980px; }

/* --- Cards --- */
.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-1);
}

.app-card h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 6px;
}
.app-card .app-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* --- Forms --- */
.form-group { margin-bottom: 16px; }

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: inset 0 1px 2px rgba(17,27,17,0.03);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(14,92,67,0.12);
}

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

.form-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 5px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

/* Flat solid fill, not a 3-stop gradient — a bold block reads more like a
   confident fintech button than a soft glossy SaaS one. */
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(14,92,67,0.15), 0 8px 20px rgba(14,92,67,0.22);
}
.btn-primary:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(14,92,67,0.18), 0 16px 32px rgba(14,92,67,0.30); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-secondary { background: var(--white); color: var(--text); border: 1.5px solid var(--border); box-shadow: var(--shadow-1); }
.btn-secondary:hover:not(:disabled) { border-color: var(--green); color: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-2); }

.btn-text { background: none; color: var(--green-dark); padding: 8px 4px; }
.btn-text:hover { color: var(--green); }

.btn-danger { background: #FCE9E9; color: #C0392B; }
.btn-danger:hover:not(:disabled) { background: #F8D2D2; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* --- Alerts / banners --- */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.alert-error   { background: #FCE9E9; color: #C0392B; border: 1px solid #F3C6C6; }
.alert-success { background: var(--green-light); color: var(--green-dark); border: 1px solid rgba(14,92,67,0.25); }
.alert-info    { background: #EAF2FB; color: #2A5B8C; border: 1px solid #CFE3F5; }

/* --- Service tiles (hub) --- */
.service-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.service-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: right;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(140px 140px at 85% -10%, rgba(14,92,67,0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3-green);
  border-color: rgba(14,92,67,0.3);
}
.service-tile:hover::before { opacity: 1; }

.service-tile .tile-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(155deg, var(--white) 0%, var(--green-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(14,92,67,0.12);
  margin-bottom: 16px;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.service-tile:hover .tile-icon-wrap { transform: scale(1.08) rotate(-4deg); }
.service-tile .tile-icon { font-size: 1.7rem; margin-bottom: 10px; }
.service-tile .tile-name { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.2px; color: var(--text); margin-bottom: 4px; position: relative; }
.service-tile .tile-desc { font-size: 0.8rem; color: var(--text-muted); position: relative; }

/* Per-service color identity — each tile gets its own tint instead of four identical white cards. */
.service-tile.tile-navy { background: linear-gradient(155deg, var(--white) 0%, #E7EFF7 130%); }
.service-tile.tile-navy .tile-icon-wrap { background: linear-gradient(155deg, var(--white) 0%, #DCE7F3 100%); color: var(--navy); box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(29,53,87,0.14); }
.service-tile.tile-navy::before { background: radial-gradient(140px 140px at 85% -10%, rgba(29,53,87,0.12), transparent 70%); }
.service-tile.tile-navy:hover { box-shadow: 0 4px 14px rgba(29,53,87,0.10), 0 28px 56px -16px rgba(29,53,87,0.26); border-color: rgba(29,53,87,0.25); }

.service-tile.tile-orange { background: linear-gradient(155deg, var(--white) 0%, #FBEBDA 130%); }
.service-tile.tile-orange .tile-icon-wrap { background: linear-gradient(155deg, var(--white) 0%, #F8DFC3 100%); color: var(--orange); box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(245,106,0,0.16); }
.service-tile.tile-orange::before { background: radial-gradient(140px 140px at 85% -10%, rgba(245,106,0,0.14), transparent 70%); }
.service-tile.tile-orange:hover { box-shadow: 0 4px 14px rgba(245,106,0,0.10), 0 28px 56px -16px rgba(245,106,0,0.26); border-color: rgba(245,106,0,0.28); }

.service-tile.tile-purple { background: linear-gradient(155deg, var(--white) 0%, #EEE9F9 130%); }
.service-tile.tile-purple .tile-icon-wrap { background: linear-gradient(155deg, var(--white) 0%, #E1D8F3 100%); color: #6B4FA0; box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(107,79,160,0.16); }
.service-tile.tile-purple::before { background: radial-gradient(140px 140px at 85% -10%, rgba(107,79,160,0.14), transparent 70%); }
.service-tile.tile-purple:hover { box-shadow: 0 4px 14px rgba(107,79,160,0.10), 0 28px 56px -16px rgba(107,79,160,0.26); border-color: rgba(107,79,160,0.28); }

/* --- Hub sections: "services" (primary, colorful tiles) vs "account" (secondary, compact links) — kept visually distinct so they don't read as one flat category. --- */
.hub-section { margin-bottom: 36px; }
.hub-section-title { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.4px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 14px; }

.account-links { display: flex; flex-wrap: wrap; gap: 12px; }
.account-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.account-link:hover { border-color: rgba(14,92,67,0.3); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.account-link .account-link-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
}
.account-link .account-link-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }

/* --- Trust strip (hub) — mirrors .hero-trust on the marketing page --- */
.hub-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hub-trust .trust-item { display: flex; flex-direction: column; }
.hub-trust .trust-item strong { font-size: 1.2rem; font-weight: 900; color: var(--text); }
.hub-trust .trust-item span { font-size: 0.75rem; color: var(--text-muted); }
.hub-trust .trust-sep { width: 1px; height: 30px; background: var(--border); }
@media (max-width: 480px) { .hub-trust { gap: 14px; flex-wrap: wrap; } }

/* --- Stepper --- */
.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.stepper .step-dot {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(17,27,17,0.08);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stepper .step-dot.done { background: var(--green); }
.stepper .step-dot.active { background: linear-gradient(90deg, var(--green), var(--green-mid)); box-shadow: 0 0 0 3px rgba(14,92,67,0.15); }

/* --- Item picker (rooms / catalog) --- */
.room-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.room-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 17px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.room-tab:hover { border-color: rgba(14,92,67,0.35); }
.room-tab.active { background: linear-gradient(155deg, var(--green-mid), var(--green)); border-color: var(--green); color: var(--white); box-shadow: 0 4px 12px rgba(14,92,67,0.25); }

.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}
.item-row:last-child { border-bottom: none; }
.item-row .item-icon { font-size: 1.3rem; width: 30px; text-align: center; flex-shrink: 0; }
.item-row .item-info { flex: 1; min-width: 0; }
.item-row .item-label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.item-row .item-price { font-size: 0.76rem; color: var(--text-muted); }

.qty-control { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qty-control button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-mid);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.qty-control button:hover:not(:disabled) { border-color: var(--green); color: var(--white); background: var(--green); transform: scale(1.08); }
.qty-control button:active:not(:disabled) { transform: scale(0.95); }
.qty-control button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-control .qty-value { min-width: 18px; text-align: center; font-weight: 800; font-size: 0.9rem; }

/* --- Price summary --- */
.price-lines { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.price-line { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-mid); }
.price-line.discount { color: var(--green-dark); }
.price-total {
  display: flex; justify-content: space-between;
  padding-top: 14px;
  border-top: 1.5px solid var(--border);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
}
.price-total strong { color: var(--green-dark); }

/* --- Sticky bottom bar --- */
.app-bottom-bar {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.app-bottom-bar .bottom-price { font-size: 1.15rem; font-weight: 900; color: var(--text); }

/* --- Order status --- */
.status-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
}
.status-badge.pending_payment { background: #FFF3D6; color: #93690A; }
.status-badge.pending         { background: #E3EEFB; color: #2A5B8C; }
.status-badge.assigned,
.status-badge.en_route,
.status-badge.in_progress     { background: var(--green-light); color: var(--green-dark); }
.status-badge.completed       { background: #E9E9E9; color: #555; }
.status-badge.cancelled       { background: #FCE9E9; color: #C0392B; }
.status-badge.draft           { background: #EEE; color: #777; }

.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-row-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 15px 18px; text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.order-row-card:hover { border-color: rgba(14,92,67,0.35); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.order-row-card .order-row-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.order-row-card .order-row-meta  { font-size: 0.76rem; color: var(--text-muted); }
.order-row-card .order-row-price { font-size: 0.95rem; font-weight: 800; color: var(--green-dark); flex-shrink: 0; }

/* --- Spinner --- */
.spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.center-loading { display: flex; align-items: center; justify-content: center; padding: 60px 0; }

/* --- Empty state --- */
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 2.4rem; margin-bottom: 12px; }

@media (max-width: 480px) {
  .service-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .app-container { padding: 20px 16px 0; }
  .form-row { flex-direction: column; gap: 0; }
}

/* ===== Wide wizard shell (apartment.html / small-move.html) ===== */
.app-shell-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px 60px; }

.step-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #C8EDD8 0%, #E0F5E9 50%, #F0FAF5 100%);
  padding: 30px 0 28px;
  margin-bottom: 32px;
}
.step-hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(14,92,67,0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.step-hero-inner { position: relative; max-width: 1320px; margin: 0 auto; padding: 0 24px; animation: fadeUp 0.5s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .step-hero-inner, .question-card { animation: none; }
}

/* Each wizard step gets its own tint — a visual "journey" (items → packing →
   delivery → confirm) instead of one flat background repeated four times,
   echoing how the marketing page alternates section backgrounds (features
   white → how-section green → movers navy → stats solid green). */
.step-hero.step-2 { background: linear-gradient(160deg, #D8E4F5 0%, #E8EFF9 50%, #F3F6FB 100%); }
.step-hero.step-2::before { background: radial-gradient(circle, rgba(29,53,87,0.12) 0%, transparent 70%); }
.step-hero.step-3 { background: linear-gradient(160deg, #FBE7D2 0%, #FBF0E2 50%, #FBF6EE 100%); }
.step-hero.step-3::before { background: radial-gradient(circle, rgba(245,106,0,0.14) 0%, transparent 70%); }
.step-hero.step-4 {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
}
.step-hero.step-4::before { background: radial-gradient(circle, rgba(14,92,67,0.20) 0%, transparent 70%); }
.step-hero.step-4 h1, .step-hero.step-4 p { color: var(--white); }
.step-hero.step-4 p { color: rgba(255,255,255,0.7); }
.step-hero.step-4 .stepper .step-dot { background: rgba(255,255,255,0.18); }
.step-hero.step-4 .btn-text { color: rgba(255,255,255,0.85); }
.step-hero.step-4 .btn-text:hover { color: var(--white); }
.step-hero .stepper { max-width: 420px; margin-bottom: 18px; }
.step-hero h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 900; color: var(--text); letter-spacing: -0.6px; margin-bottom: 6px; }
.step-hero p { color: var(--text-mid); font-size: 0.93rem; }

.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.app-main { min-width: 0; }
.app-side { position: sticky; top: calc(var(--nav-h) + 20px); }

.side-summary-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-2); }
.side-summary-card h3 { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.2px; color: var(--text); margin-bottom: 14px; }

@media (max-width: 900px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-side { display: none; }
}

/* --- Item picker as a card grid (replaces the narrow .item-row list on wide screens) --- */
.item-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.item-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.item-card.has-qty { border-color: rgba(14,92,67,0.45); background: linear-gradient(155deg, #fff 0%, var(--green-light) 140%); box-shadow: var(--shadow-2), 0 0 0 1px rgba(14,92,67,0.15); }
.item-card .item-card-icon-wrap {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: background 0.25s var(--ease);
}
.item-card.has-qty .item-card-icon-wrap { background: rgba(14,92,67,0.14); }
/* Item name and its size/measurements are visually separate — a dense combined
   string like "מיטת יחיד (עד 90×200 ס"מ)" reads as clutter. Name is the primary,
   larger line; the measurement is a distinct muted line underneath it. */
.item-card .item-card-name { font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.3; letter-spacing: -0.2px; }
.item-card .item-card-size { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.item-card .item-card-price { font-size: 0.73rem; color: var(--green-dark); font-weight: 700; margin-top: 6px; }
.item-card .qty-control { margin-top: auto; justify-content: space-between; }

/* --- AI photo-scan upload card --- */
.ai-upload-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 26px;
  background: linear-gradient(145deg, var(--green-light) 0%, rgba(255,255,255,0.85) 100%);
  border: 1px solid rgba(14,92,67,0.22);
  border-radius: 20px;
  padding: 30px 32px;
  margin-bottom: 24px;
  text-align: right;
  box-shadow: var(--shadow-2);
}
.ai-upload-card::before {
  content: '';
  position: absolute;
  top: -100px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(14,92,67,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.ai-upload-card > * { position: relative; }
.ai-upload-card .ai-upload-icon-wrap {
  width: 60px; height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2);
}
.ai-upload-card .ai-upload-icon { font-size: 1.8rem; }
.ai-upload-card .ai-upload-body { flex: 1; min-width: 0; }
.ai-upload-card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.3px; color: var(--text); margin-bottom: 6px; }
.ai-upload-card p { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 18px; max-width: 620px; }
.ai-photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 14px; }
.ai-photo-thumbs .ai-thumb { position: relative; width: 64px; height: 64px; }
.ai-photo-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.ai-photo-thumbs .ai-thumb-remove {
  position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none; font-size: 0.7rem; cursor: pointer;
}
.ai-upload-progress { max-width: 360px; margin: 0 0 10px; height: 6px; background: var(--white); border-radius: 3px; overflow: hidden; }
.ai-upload-progress-fill { height: 100%; background: var(--green); transition: width 0.2s ease; }

/* --- AI clarification question cards --- */
.question-card {
  background: var(--white);
  border: 1px solid rgba(14,92,67,0.3);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-2);
  animation: questionIn 0.35s var(--ease) both;
}
@keyframes questionIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.question-card .question-text { font-size: 0.94rem; font-weight: 700; color: var(--text); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.question-card .question-text::before { content: '✨'; font-size: 0.85rem; }
.question-card .question-options { display: flex; flex-direction: column; gap: 8px; }
.question-card .question-option {
  width: 100%;
  text-align: right;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.question-card .question-option:hover { border-color: var(--green); background: var(--green-light); color: var(--green-dark); transform: translateX(-2px); }

/* --- AI chat-to-add-items box --- */
.ai-chat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-2);
}
.ai-chat-card h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.3px; color: var(--text); margin-bottom: 4px; }
.ai-chat-card > p { font-size: 0.86rem; color: var(--text-mid); margin-bottom: 16px; }
.ai-chat-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; max-height: 340px; overflow-y: auto; }
.ai-chat-thread:empty { display: none; }
.ai-chat-msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 0.86rem; line-height: 1.5; animation: questionIn 0.25s var(--ease) both; }
.ai-chat-msg.user { align-self: flex-end; background: var(--green); color: #fff; border-bottom-left-radius: 4px; }
.ai-chat-msg.ai { align-self: flex-start; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-bottom-right-radius: 4px; }
.ai-chat-msg.ai.typing { color: var(--text-muted); font-style: italic; }
.ai-chat-input-row { display: flex; gap: 10px; }
.ai-chat-input-row input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 15px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg);
}
.ai-chat-input-row input:focus { outline: none; border-color: var(--green); background: var(--white); }
.ai-chat-input-row button:disabled { opacity: 0.5; cursor: default; }
.ai-free-items { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ai-free-item-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #FFF8E8; border: 1px solid #F0DFA8;
  border-radius: 12px; padding: 10px 14px; font-size: 0.85rem;
}
.ai-free-item-row .ai-free-item-remove { border: none; background: none; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; }
