/* WE Connect — design system */

:root {
  --primary: #6e2b42;
  --primary-dark: #4c1d2e;
  --primary-soft: #f3e6ea;
  --accent: #d9a5af;
  --blush: #f6ecec;
  --gold: #c4a35a;
  --gold-soft: #f3ead4;
  --background: #f6f1ea;
  --surface: #fffdfb;
  --surface-2: #fbf6f1;
  --text: #2c2420;
  --text-muted: #6a5e57;
  --border: #e6ddd4;
  --border-strong: #d4c7bb;
  --success: #2f6f4e;
  --success-soft: #e5f3ea;
  --warning: #9a6b1a;
  --warning-soft: #f8efd8;
  --danger: #a33b3b;
  --danger-soft: #f8e6e6;
  --info: #3d5a73;
  --info-soft: #e8eef3;
  --whatsapp: #128c7e;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(44, 36, 32, 0.05);
  --shadow-md: 0 8px 24px rgba(44, 36, 32, 0.07);
  --shadow-lg: 0 18px 40px rgba(44, 36, 32, 0.1);
  --header-h: 64px;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Manrope", "Segoe UI", sans-serif;
  --phone-w: 390px;
  --phone-h: 844px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #ddd4c8;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* —— Stage / phone frame —— */
.app-stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.phone-shell {
  width: 100%;
  min-height: 100dvh;
  background: var(--background);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-root {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  display: flex;
  flex-direction: column;
}

.screen.no-nav { padding-bottom: calc(24px + var(--safe-b)); }
.screen.edge { padding-bottom: 0; }

@media (min-width: 760px) {
  body.framed .app-stage {
    padding: 28px 16px 28px;
    align-items: center;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(196,163,90,0.18), transparent 45%),
      radial-gradient(ellipse at 90% 100%, rgba(110,43,66,0.12), transparent 40%),
      #d8cfc3;
  }
  body.framed .phone-shell {
    width: var(--phone-w);
    height: var(--phone-h);
    min-height: 0;
    border-radius: 40px;
    box-shadow: var(--shadow-lg), 0 0 0 10px #2c2420, 0 0 0 12px #c4a35a;
    overflow: hidden;
  }
  body.admin-page { background: var(--background); }
  body.admin-page .app-stage {
    display: block;
    background: var(--background);
    padding: 0;
  }
  body.admin-page .phone-shell {
    width: 100%;
    min-height: 100dvh;
    height: auto;
    border-radius: 0;
    box-shadow: none;
  }
}

/* —— Type —— */
h1, h2, h3, h4, p { margin: 0; }
.display { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.h3 { font-size: 17px; font-weight: 700; }
.lede { font-size: 16px; color: var(--text-muted); }
.tiny { font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; }
.muted { color: var(--text-muted); }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost { background: transparent; color: var(--primary); }
.btn-text {
  width: auto;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--primary);
  font-weight: 700;
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* —— Fields —— */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 700; }
.input, .textarea, .search-input input {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 52px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .textarea:focus, .search-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.hint { font-size: 13px; color: var(--text-muted); }
.privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px 10px;
}
.prefix-input {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
}
.prefix-input span {
  padding: 0 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}
.prefix-input input {
  border: 0;
  min-height: 50px;
  flex: 1;
  padding: 14px 14px;
  background: transparent;
}
.prefix-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 4px 12px 4px 14px;
}
.search-input input { border: 0; box-shadow: none; min-height: 46px; padding: 8px 0; }
.search-input input:focus { box-shadow: none; }
.search-input svg { flex-shrink: 0; color: var(--text-muted); }

/* —— Layout helpers —— */
.pad { padding: 16px 20px; }
.pad-x { padding-left: 20px; padding-right: 20px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.center { text-align: center; }

.sticky-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(transparent, var(--background) 24%);
  padding: 16px 20px calc(16px + var(--safe-b));
  margin-top: auto;
}
.screen.no-nav .sticky-actions { bottom: 0; }

/* —— Header —— */
.app-header, .back-header {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--gold);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.brand-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.2;
}
.brand-section, .header-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-meta {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.back-btn, .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text);
  flex-shrink: 0;
}
.back-btn:hover, .icon-btn:hover { background: var(--primary-soft); }

/* —— Bottom nav —— */
.bottom-nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 30;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 650;
  color: var(--text-muted);
  min-height: 52px;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item.active { color: var(--primary); }
.nav-item.create {
  position: relative;
}
.nav-item.create .nav-plus {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: -10px;
  box-shadow: var(--shadow-sm);
}

/* —— Cards / chips / badges —— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-hover { transition: box-shadow 0.15s ease, transform 0.15s ease; }

.choice-card {
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 72px;
  width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice-card .h3 { margin-bottom: 4px; }
.choice-card.selected, .choice-card[aria-checked="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.choice-grid { display: grid; gap: 10px; }
.choice-grid.two { grid-template-columns: 1fr 1fr; }

.chip, .skill-chip, .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.skill-chip.selected, .filter-chip.active, .chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.chip-row, .h-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar, .h-scroll::-webkit-scrollbar { display: none; }
.wrap-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warning-soft); color: var(--warning); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-gold { background: var(--gold-soft); color: #7a6428; }
.badge-neutral { background: var(--surface-2); color: var(--text-muted); }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.stat-card .num { font-size: 22px; font-weight: 750; letter-spacing: -0.03em; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* —— Progress —— */
.progress {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
  transition: width 0.35s ease;
}

/* —— Business / member / post cards —— */
.biz-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  width: 100%;
}
.biz-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--blush);
}
.avatar, .logo-sm {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--blush);
}
.avatar.sm, .logo-sm { width: 40px; height: 40px; border-radius: 12px; }
.avatar.lg { width: 72px; height: 72px; border-radius: 50%; }
.avatar.round { border-radius: 50%; }
.biz-card strong { font-size: 16px; line-height: 1.3; }
.biz-card .meta { font-size: 14px; color: var(--text-muted); line-height: 1.4; }
.biz-card .chip {
  min-height: 28px;
  padding: 3px 10px;
  font-size: 13px;
}
.biz-card .wrap-chips { gap: 6px; margin-top: 6px; }
.bookmark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.bookmark.saved { color: var(--primary); }

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-card .post-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--blush);
  max-height: 160px;
}
.post-card > .row.pad { padding: 8px 12px; }
.post-card .post-body { padding: 10px 12px 12px; }
.post-card .h3 { font-size: 16px; }
.post-card .post-desc {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h-card {
  min-width: 148px;
  max-width: 168px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.h-card img { width: 100%; height: 72px; object-fit: cover; }
.h-card .h-card-body { padding: 8px 10px 10px; }
.h-card strong { font-size: 14px; }

.cat-card {
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
}
.cat-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}

/* —— Sheets / modals / toasts —— */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 32, 0.4);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.2s ease;
}
.sheet {
  width: 100%;
  max-height: 86%;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 12px 20px calc(20px + var(--safe-b));
  animation: slideUp 0.28s ease;
  overflow-y: auto;
}
.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 99px;
  margin: 4px auto 14px;
}
.modal {
  width: calc(100% - 32px);
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin: auto;
  animation: pop 0.22s ease;
  box-shadow: var(--shadow-lg);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); } to { transform: translateY(0); } }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

.toast-host {
  position: absolute;
  left: 16px; right: 16px;
  top: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.25s ease;
}

@media (min-width: 760px) {
  body.framed .overlay { align-items: center; }
  body.framed .sheet {
    max-width: 390px;
    border-radius: var(--radius-lg);
    max-height: 80%;
  }
}

/* —— Splash / intro —— */
.splash {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(196,163,90,0.18), transparent 40%),
    var(--background);
  position: relative;
}
.splash::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(196, 163, 90, 0.22);
  border-radius: 28px;
  pointer-events: none;
}
.mark {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.loader-dots { display: flex; gap: 6px; margin-top: 28px; }
.loader-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: bounce 1s infinite;
}
.loader-dots i:nth-child(2) { animation-delay: 0.15s; }
.loader-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.intro-slide { padding: 20px 24px 0; min-height: 100%; display: flex; flex-direction: column; }
.intro-art {
  height: 280px;
  border-radius: var(--radius-lg);
  background: var(--blush);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}
.intro-art img { width: 100%; height: 100%; object-fit: cover; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.dots i.on { width: 18px; border-radius: 99px; background: var(--primary); }

/* —— OTP —— */
.otp-row { display: flex; gap: 8px; justify-content: space-between; }
.otp-box {
  width: 46px;
  height: 56px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 750;
  background: var(--surface);
}
.otp-box:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); outline: none; }

/* —— Cropper —— */
.cropper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crop-stage {
  position: relative;
  background: #1c1614;
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
  touch-action: none;
}
.crop-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  user-select: none;
  pointer-events: none;
  max-width: none;
}
.crop-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.crop-frame span {
  border: 2px solid #fff;
  box-shadow: 0 0 0 999px rgba(0,0,0,0.45);
  border-radius: 4px;
}
.range { width: 100%; accent-color: var(--primary); }

/* —— Timeline —— */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
}
.tl-item.done .tl-dot { background: var(--success); border-color: var(--success); }
.tl-item.current .tl-dot { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

/* —— Profile page —— */
.cover {
  height: 180px;
  background: var(--blush) center/cover no-repeat;
  position: relative;
}
.cover-logo {
  position: absolute;
  left: 20px;
  bottom: -36px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--background);
  object-fit: cover;
  background: var(--surface);
}
.action-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.action-row button, .action-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 64px;
  padding: 8px 4px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--blush);
}

/* —— Upload tiles —— */
.upload-tile {
  border: 1.5px dashed var(--border-strong);
  border-radius: 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 650;
  position: relative;
  overflow: hidden;
}
.upload-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.upload-tile.has-img { border-style: solid; color: #fff; }
.uploader-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* —— Empty —— */
.empty {
  text-align: center;
  padding: 40px 20px;
}
.empty-ico {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: var(--blush);
  display: grid;
  place-items: center;
  color: var(--primary);
}

/* —— WhatsApp mock —— */
.wa-bg {
  min-height: 100%;
  background: #ece5dd;
  display: flex;
  flex-direction: column;
}
.wa-bar {
  background: #075e54;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-chat { padding: 16px 12px 24px; display: flex; flex-direction: column; gap: 10px; }
.wa-bubble {
  max-width: 86%;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}
.wa-bubble.out { align-self: flex-end; background: #dcf8c6; }
.wa-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  max-width: 92%;
}
.wa-card .wa-hero { height: 8px; background: var(--primary); }
.wa-card .wa-body { padding: 12px; }
.wa-btn {
  display: block;
  text-align: center;
  color: #128c7e;
  font-weight: 750;
  padding: 12px;
  border-top: 1px solid #eee;
}

/* —— Admin —— */
.admin-top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-side { display: none; }

@media (min-width: 900px) {
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
  .admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100dvh; }
  .admin-side {
    display: block;
    background: var(--primary-dark);
    color: #f8f1ea;
    padding: 24px 16px;
  }
  .admin-side a, .admin-side button {
    display: block;
    width: 100%;
    text-align: left;
    color: inherit;
    padding: 12px 12px;
    border-radius: 10px;
    font-weight: 650;
  }
  .admin-side .active { background: rgba(255,255,255,0.1); }
}

/* —— Demo dock —— */
.demo-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2c2420;
  color: #f6f1ea;
  font-size: 12px;
  font-weight: 750;
  box-shadow: var(--shadow-md);
  opacity: 0.55;
}
.demo-fab:hover { opacity: 1; }
.demo-panel {
  position: fixed;
  right: 16px;
  bottom: 68px;
  width: 260px;
  background: #2c2420;
  color: #f6f1ea;
  border-radius: 16px;
  padding: 14px;
  z-index: 90;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}
.demo-panel h4 { margin-bottom: 8px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #c4a35a; }
.demo-panel button, .demo-panel select {
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.06);
  color: inherit;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}
.demo-panel button.active { background: var(--primary); }

.check {
  width: 72px; height: 72px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: grid; place-items: center;
  animation: pop 0.4s ease;
}

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #efe8e0 37%, var(--border) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 10px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.accordion + .accordion { margin-top: 8px; }
.acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-weight: 750;
  min-height: 52px;
}
.acc-body { padding: 0 16px 14px; display: none; }
.accordion.open .acc-body { display: block; }

.pattern-welcome {
  background:
    radial-gradient(circle at 10% 20%, rgba(196,163,90,0.16), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(110,43,66,0.08), transparent 32%),
    var(--background);
}

.radio-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 4px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.radio.on { border-color: var(--primary); }
.radio.on i { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }

.plan {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  text-align: left;
  width: 100%;
  background: var(--surface);
  position: relative;
}
.plan.selected { border-color: var(--primary); background: var(--primary-soft); }
.plan .price { font-size: 22px; font-weight: 750; }
.ribbon {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--gold);
  color: #2c2420;
  font-size: 11px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 999px;
}

.tabs {
  display: flex;
  gap: 6px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 14px;
}
.tab {
  flex: 1;
  min-height: 40px;
  border-radius: 10px;
  font-weight: 750;
  font-size: 14px;
}
.tab.on { background: var(--surface); box-shadow: var(--shadow-sm); }

.section-label {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 8px 0;
}

.notice {
  background: var(--gold-soft);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}

.geo-mini {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin: 0 auto 8px;
}

.puzzle-art {
  width: 88px; height: 88px; margin: 0 auto 12px;
  color: var(--primary);
}

.divider { height: 1px; background: var(--border); margin: 16px 0; }

.filter-count {
  min-width: 18px; height: 18px; border-radius: 99px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 750;
  display: inline-grid; place-items: center;
  margin-left: 4px;
}

.success-tick svg { width: 40px; height: 40px; }

kbd {
  font-family: inherit;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
}
