/* ---------- Icon system (SVG via CSS mask, currentColor) ---------- */
.icon {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  flex-shrink: 0;
}
.icon-cart  { -webkit-mask-image: url(/images/icons/cart.svg);  mask-image: url(/images/icons/cart.svg); }
.icon-list  { -webkit-mask-image: url(/images/icons/list.svg);  mask-image: url(/images/icons/list.svg); }
.icon-user  { -webkit-mask-image: url(/images/icons/user.svg);  mask-image: url(/images/icons/user.svg); }
.icon-leaf  { -webkit-mask-image: url(/images/icons/leaf.svg);  mask-image: url(/images/icons/leaf.svg); }
.icon-moon  { -webkit-mask-image: url(/images/icons/moon.svg);  mask-image: url(/images/icons/moon.svg); }
.icon-chat  { -webkit-mask-image: url(/images/icons/chat.svg);  mask-image: url(/images/icons/chat.svg); }
.icon-trash { -webkit-mask-image: url(/images/icons/trash.svg); mask-image: url(/images/icons/trash.svg); }
.icon-plus  { -webkit-mask-image: url(/images/icons/plus.svg);  mask-image: url(/images/icons/plus.svg); }
.icon-minus { -webkit-mask-image: url(/images/icons/minus.svg); mask-image: url(/images/icons/minus.svg); }
.icon-close { -webkit-mask-image: url(/images/icons/close.svg); mask-image: url(/images/icons/close.svg); }
.icon-check { -webkit-mask-image: url(/images/icons/check.svg); mask-image: url(/images/icons/check.svg); }
.icon-clock { -webkit-mask-image: url(/images/icons/clock.svg); mask-image: url(/images/icons/clock.svg); }
.icon-truck { -webkit-mask-image: url(/images/icons/truck.svg); mask-image: url(/images/icons/truck.svg); }

/* ---------- Reset & Tokens ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand greens — sampled from new logo */
  --green: #5da043;
  --green-dark: #3e6435;
  --green-light: #bbdb62;
  --green-soft: #eef6e3;
  /* Secondary accent — muted berry/rose, complementary to leafy green (red↔green) */
  --accent: #b03a64;
  --accent-light: #d995ad;
  --accent-soft: #faecf1;
  /* Pending tone — cool slate, neutral pending state that sits between green & berry */
  --pending: #475569;
  --pending-soft: #eef1f4;
  /* Legacy aliases (kept for any inline references) */
  --orange: var(--accent);
  --orange-light: var(--accent-light);
  /* Surfaces — white-first, no beige */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f8f3;
  --cream: #f6f8f3; /* legacy alias → soft surface */
  --ink: #1f2a20;
  --ink-mute: #6b7570;
  --line: #ececec;
  --line-soft: #f1f1f1;
  --white: #ffffff;
  --danger: #d64545;
  --shadow-sm: 0 1px 2px rgba(31, 42, 32, 0.05);
  --shadow-md: 0 4px 12px rgba(31, 42, 32, 0.07);
  --shadow-lg: 0 10px 30px rgba(31, 42, 32, 0.12);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Segoe UI", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }

/* ---------- Layout ---------- */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.appbar-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.appbar-logo img { height: 30px; width: auto; }
.appbar-nav { display: flex; gap: 14px; align-items: center; }
.appbar-nav a { font-size: 22px; }
.appbar-login {
  font-size: 14px !important;
  color: var(--green-dark);
  font-weight: 600;
}

.screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: calc(120px + var(--safe-bottom));
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, #6dba4d 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 16px;
  box-shadow:
    0 6px 16px rgba(62, 100, 53, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform .05s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.04); }
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled {
  background: linear-gradient(135deg, #c8d2c9 0%, #b8c5b9 100%);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-primary.block { width: 100%; display: block; }

.btn-outline {
  background: #fff;
  color: var(--green-dark);
  border: 1.5px solid var(--green);
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-weight: 600;
}
.btn-outline.block { width: 100%; }
.btn-outline:disabled { color: #b8c5b9; border-color: #d8e0d8; }

.btn-text {
  background: none; border: none;
  color: var(--ink-mute);
  padding: 12px;
  font-size: 14px;
  width: 100%;
  margin-top: 4px;
}
.btn-text.danger { color: var(--danger); }

/* ---------- Auth pages (login/signup) ---------- */
.auth { padding-top: 24px; }
.auth.auth-standalone { padding-top: 64px; }
.auth-hero { text-align: center; margin-bottom: 28px; }
.auth-hero.compact { margin-bottom: 20px; }
.auth-logo { width: 140px; margin: 0 auto 16px; }
.auth-hero h1 { font-size: 22px; line-height: 1.4; color: var(--green-dark); }
.auth-sub { color: var(--ink-mute); font-size: 14px; margin-top: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.field input {
  width: 100%;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  background: #fff;
  font-size: 16px;
  transition: border-color .15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--green);
}
.field .row { display: flex; gap: 8px; }
.field .row input { flex: 1; }
.field .row button { white-space: nowrap; }
.hint { color: var(--ink-mute); font-size: 12px; }
.hint code { background: var(--surface-soft); padding: 2px 6px; border-radius: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 > * { min-width: 0; }
.check {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}
.check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}
.check .check-box {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.check .check-box .icon {
  font-size: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .15s ease, transform .15s ease;
}
.check input[type="checkbox"]:checked + .check-box {
  background: linear-gradient(135deg, #6dba4d 0%, var(--green) 50%, var(--green-dark) 100%);
  border-color: var(--green-dark);
  box-shadow: 0 2px 6px rgba(62, 100, 53, 0.25);
}
.check input[type="checkbox"]:checked + .check-box .icon {
  opacity: 1;
  transform: scale(1);
}
.check input[type="checkbox"]:focus-visible + .check-box {
  box-shadow: 0 0 0 3px rgba(93, 160, 67, 0.25);
}

.btn-kakao {
  background: #FEE500;
  color: #181600;
  border: none;
  padding: 14px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.kakao-mark { font-size: 18px; }
.auth-help { font-size: 12px; color: var(--ink-mute); text-align: center; }

/* ---------- Products page ---------- */
.hello-strip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.hello-greet { font-size: 14px; }
.hello-greet strong { color: var(--green-dark); }
.hello-addr { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.today { font-size: 12px; color: var(--ink-mute); }

.info-strip {
  background: linear-gradient(180deg, #ffffff 0%, var(--green-soft) 100%);
  color: var(--green-dark);
  border: 1px solid rgba(93, 160, 67, 0.18);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.info-strip .info-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.info-strip .info-row .icon {
  font-size: 22px; flex-shrink: 0;
  color: var(--green);
}
.info-strip .info-text { line-height: 1.4; color: var(--ink); }
.info-strip .info-text strong { font-weight: 700; color: var(--green-dark); }

.info-countdown {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed rgba(93, 160, 67, 0.25);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
}
.info-countdown .icon { font-size: 16px; color: var(--green); }
.info-countdown strong {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--green-dark);
}
.info-countdown.urgent strong { color: var(--accent); }
.info-countdown.closed strong { color: var(--danger); }

.banner-closed {
  background: var(--white);
  color: var(--accent);
  border: 1px dashed var(--accent-light);
  padding: 12px;
  border-radius: var(--r-md);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.banner-closed .icon { font-size: 18px; }

.empty {
  text-align: center;
  color: var(--ink-mute);
  padding: 40px 16px;
}
.empty .btn-primary { display: inline-block; margin-top: 16px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
  position: relative;
}
.card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-md);
}
.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-soft);
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 48px;
}
/* 썸네일 우하단 코너 FAB — + 버튼 / 담긴 수량 */
.card-img .card-add,
.card-img .card-count {
  position: absolute;
  right: 8px; bottom: 8px;
  pointer-events: none;
  z-index: 2;
  transition: transform .12s ease, box-shadow .15s ease;
}
.card-img .card-add {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ec 100%);
  color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.32),
    0 2px 4px rgba(0, 0, 0, 0.18),
    inset 0 -1px 0 rgba(62, 100, 53, 0.08);
}
.card-img .card-count {
  display: none;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ec 100%);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 15px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.32),
    0 2px 4px rgba(0, 0, 0, 0.18),
    inset 0 -1px 0 rgba(62, 100, 53, 0.08);
}
.card.added .card-img .card-add { display: none; }
.card.added .card-img .card-count { display: inline-flex; }
.card:active .card-img .card-add,
.card:active .card-img .card-count { transform: scale(0.9); }
.card-body { padding: 10px 12px 14px; }
.card-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.card-meta {
  font-size: 13px; color: var(--green-dark);
  font-weight: 600; margin-top: 2px;
}
.card-desc {
  font-size: 12px; color: var(--ink-mute);
  margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Bottom Cart Bar ---------- */
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  background: linear-gradient(135deg, #6dba4d 0%, var(--green) 45%, var(--green-dark) 100%);
  color: #fff;
  border: none;
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 14px 32px rgba(62, 100, 53, 0.32),
    0 4px 12px rgba(62, 100, 53, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-weight: 700;
  z-index: 40;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cart-bar:active:not(:disabled) {
  transform: translateX(-50%) scale(0.985);
}
.cart-bar:disabled {
  background: linear-gradient(135deg, #c8d2c9 0%, #b8c5b9 100%);
  box-shadow: var(--shadow-md);
  cursor: default;
}
.cart-bar-icon { font-size: 20px; }
.cart-bar-text { flex: 1; text-align: left; }
.cart-bar-amount { font-size: 16px; }

/* ---------- Bottom Sheet ---------- */
.sheet {
  position: fixed; inset: 0;
  z-index: 100;
}
.sheet.hidden { display: none; }
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  animation: fadeIn .2s ease;
}
.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  display: flex; flex-direction: column;
  animation: slideUp .25s cubic-bezier(.2,.8,.2,1);
  padding-bottom: var(--safe-bottom);
}
.sheet-handle {
  width: 40px; height: 4px;
  background: #dcdcdc;
  border-radius: 2px;
  margin: 10px auto 4px;
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { font-size: 17px; }
.sheet-close {
  background: none; border: none;
  font-size: 20px; color: var(--ink-mute);
  width: 32px; height: 32px;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}
.sheet-foot {
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #fff;
}
.sheet-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
  font-size: 14px;
}
.sheet-total strong#cartTotalAmount { font-size: 18px; color: var(--green-dark); }

.cart-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: none; }
.cart-row .thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: var(--surface-soft);
  overflow: hidden;
}
.cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-row .info .n { font-weight: 700; font-size: 14px; }
.cart-row .info .m { font-size: 12px; color: var(--ink-mute); }
.qty {
  display: flex; align-items: center; gap: 6px;
}
.qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  background: #fff;
  color: var(--green-dark);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.qty .v { min-width: 22px; text-align: center; font-weight: 700; }
.cart-row .remove {
  background: none; border: none; color: var(--ink-mute);
  font-size: 18px; padding: 4px;
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translate(-50%, 100%) } to { transform: translate(-50%, 0) } }

/* ---------- Orders / Order detail / Me ---------- */
.page-title { font-size: 20px; margin-bottom: 12px; color: var(--green-dark); }
.muted { color: var(--ink-mute); font-size: 13px; }

.order-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.order-item {
  background: #fff; border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.order-link { display: block; padding: 14px 16px; }
.order-row {
  display: flex; justify-content: space-between; align-items: center;
}
.order-row.sub { font-size: 13px; color: var(--ink-mute); margin-top: 6px; }
.order-no { font-weight: 700; font-size: 14px; }
.order-account {
  margin-top: 8px; padding: 8px 10px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid #cfe7ea;
  font-size: 12px; border-radius: 8px;
}

/* 배송 프로세스 스텝 인디케이터 */
.progress-steps {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.progress-steps .steps-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.progress-steps .step-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #fff;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.progress-steps .step-dot.done {
  background: linear-gradient(135deg, #6dba4d 0%, var(--green-dark) 100%);
}
.progress-steps .step-dot.current {
  background: linear-gradient(135deg, #6dba4d 0%, var(--green-dark) 100%);
  box-shadow: 0 0 0 4px rgba(93,160,67,0.18);
  animation: pulseGreen 1.6s ease-in-out infinite;
}
.progress-steps .step-dot .icon { font-size: 13px; }
.progress-steps .bar {
  flex: 1;
  height: 2px;
  background: #e8e8e8;
  border-radius: 1px;
}
.progress-steps .bar.done { background: var(--green); }
.progress-steps .steps-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 600;
}
.progress-steps .steps-labels .label {
  flex: 1;
  text-align: center;
}
.progress-steps .steps-labels .label:first-child { text-align: left; }
.progress-steps .steps-labels .label:last-child { text-align: right; }
.progress-steps .steps-labels .label.done { color: var(--green-dark); }

.progress-canceled {
  margin-top: 12px;
  padding: 10px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 4px rgba(93,160,67,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(93,160,67,0.10); }
}
.order-thumb { margin-top: 10px; }
.order-thumb img { width: 100%; border-radius: 10px; max-height: 180px; object-fit: cover; }
.order-item.highlight {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(93,160,67,0.2), var(--shadow-md);
}

.badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--line);
  color: var(--ink-mute);
}
.badge-placed { background: var(--pending-soft); color: var(--pending); }
.badge-paid { background: #dff1d8; color: var(--green-dark); }
.badge-delivered {
  background: linear-gradient(135deg, #6dba4d 0%, var(--green-dark) 100%);
  color: #fff;
}
.badge-canceled { background: #f2dede; color: var(--danger); }

.back {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.card-block {
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.card-block h2 { font-size: 14px; color: var(--ink-mute); margin-bottom: 10px; font-weight: 700; }
.card-block.highlight { border-color: var(--accent-light); background: var(--accent-soft); }

.row-between { display: flex; justify-content: space-between; align-items: center; }
.total-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 16px; }
.total-row strong { color: var(--green-dark); font-size: 18px; }

.item-list { list-style: none; }
.item-list li {
  display: grid; grid-template-columns: 48px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.item-list li:last-child { border-bottom: none; }
.item-list .item-thumb {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--surface-soft);
  overflow: hidden;
  display: block;
}
.item-list .item-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.item-list .item-thumb .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 22px;
}
.item-list .item-info {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.item-name { font-weight: 600; }
.item-meta { font-size: 12px; color: var(--ink-mute); }

.account-line { font-size: 16px; line-height: 1.6; }
.account-no { font-size: 18px; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; }

.delivery-photo img { width: 100%; border-radius: 12px; }

/* Form stack — consistent vertical spacing inside card-block forms */
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.apartment-label {
  font-size: 13px;
  color: var(--ink-mute);
  background: var(--surface-soft);
  padding: 10px 12px;
  border-radius: var(--r-sm);
}

/* Me */
.profile { display: flex; align-items: center; gap: 14px; padding: 16px 0 20px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); border: 1px solid var(--line); }
.avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--green-dark);
}
.profile .name { font-weight: 700; font-size: 16px; }

/* ---------- Error ---------- */
.error-page {
  text-align: center; padding: 60px 16px;
}
.error-page h1 { font-size: 64px; color: var(--green); }
.error-page a {
  display: inline-block; margin-top: 20px;
  color: var(--green-dark); font-weight: 600;
}
