/* ==========================================================================
   ONCARD — Painel administrativo (v2: visual moderno + correções mobile)
   ========================================================================== */
:root {
  --ink: #0F1B2D;
  --ink-soft: #223245;
  --accent: #C9A227;
  --accent-soft: #F2E7C4;
  --bg: #F7F5F1;
  --surface: #FFFFFF;
  --surface-alt: #F0EDE6;
  --text: #1B1F23;
  --muted: #6B7280;
  --line: #E4E0D6;
  --success: #1F8A57;
  --danger: #C0392B;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15,27,45,0.06);
  --shadow-md: 0 10px 24px -14px rgba(15,27,45,0.25);
  --shadow-lg: 0 20px 45px -20px rgba(15,27,45,0.3);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--ink); }
h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.text-muted { color: var(--muted); }
.small { font-size: 0.82rem; }

/* --- Autenticação --- */
.auth-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; background: radial-gradient(circle at 20% 20%, rgba(201,162,39,0.08), transparent 40%), var(--bg); }
.auth-logo { height: 40px; width: auto; margin-bottom: 28px; }
.auth-box { width: 100%; max-width: 380px; background: var(--surface); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.auth-box h1 { font-size: 1.3rem; }
.auth-subtitle { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 0.85rem; color: var(--muted); }

form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 14px; }
form input[type=text], form input[type=email], form input[type=password], form input[type=url], form textarea, form select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.92rem; background: var(--surface); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
form input[type=color] { width: 52px; height: 36px; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: none; padding: 0; margin: 0 0 24px; }
legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; padding: 0; color: var(--ink); }

.btn-primary, .btn-outline, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: var(--radius-sm); padding: 11px 18px; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none; text-decoration: none; transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-outline { background: var(--surface); border: 1.5px solid var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 0.8rem; }
.btn-primary:active, .btn-outline:active { transform: scale(0.97); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.86rem; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: rgba(192,57,43,0.08); color: var(--danger); }
.alert-success { background: rgba(31,138,87,0.1); color: var(--success); }

/* --- Layout do painel --- */
.dash-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.dash-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap;
}
.dash-logo { flex-shrink: 0; font-weight: 800; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
.dash-logo i { color: var(--accent); }
.dash-logo small { color: var(--accent); font-weight: 600; margin-left: 4px; }
.dash-logo-img { height: 24px; width: auto; max-width: 200px; display: block; }

.dash-nav-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.dash-nav {
  display: flex; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.68); text-decoration: none; padding: 8px 12px;
  border-radius: 8px; font-size: 0.86rem; font-weight: 600; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.dash-nav a i { font-size: 0.82rem; }
.dash-nav a.active, .dash-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-lock-icon { font-size: 0.68rem; opacity: 0.6; margin-left: 2px; }

/* Setas só aparecem quando o menu realmente não cabe (ver admin-nav-scroll.js) */
.dash-nav-arrow {
  display: none; flex-shrink: 0; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.14); color: #fff; font-size: 0.68rem; transition: opacity .15s ease;
}
.dash-nav-arrow:hover { background: rgba(255,255,255,0.25); }
.dash-nav-arrow.is-disabled { opacity: 0.25; pointer-events: none; }
.dash-nav-wrap.has-overflow .dash-nav-arrow { display: flex; }

.dash-header-right { display: flex; gap: 8px; flex-shrink: 0; margin-left: auto; }
.dash-header-right .btn-outline { border-color: rgba(255,255,255,0.28); color: #fff; background: transparent; }
.dash-header-right .btn-outline:hover { border-color: var(--accent); }
.dash-header-right .btn-ghost { color: rgba(255,255,255,0.7); }

/* Em telas estreitas, o menu vira uma faixa própria com rolagem horizontal,
   em vez de espremer/sumir junto com a logo e o botão de sair. */
@media (max-width: 900px) {
  .dash-header-inner { row-gap: 10px; }
  .dash-nav-wrap { flex: 1 1 100%; order: 3; padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.12); }
}

.dash-content { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.dash-content-narrow { max-width: 720px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 20px 0; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat-value { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.stat-label { font-size: 0.8rem; color: var(--muted); }

.card-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }

.link-copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.link-copy-row input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

.quick-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.quick-link-card {
  display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s;
}
.quick-link-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.quick-link-card i { font-size: 1.1rem; color: var(--accent); margin-top: 2px; flex-shrink: 0; width: 20px; text-align: center; }
.quick-link-card strong { display: block; margin-bottom: 2px; color: var(--ink); }
.quick-link-card > span { display: flex; flex-direction: column; gap: 2px; }
.quick-link-card > span > span { font-size: 0.82rem; color: var(--muted); }

/* --- Tabela (admin) --- */
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 560px; }
.data-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-success { background: rgba(31,138,87,0.12); color: var(--success); }
.badge-danger { background: rgba(192,57,43,0.1); color: var(--danger); }
.badge-warning { background: rgba(201,162,39,0.15); color: #8a6d1c; }
.admin-actions-cell { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* --- Plano/permissões (admin) --- */
.feature-toggle-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.feature-toggle-row {
  display: flex; align-items: center; gap: 14px; padding: 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s;
}
.feature-toggle-row:hover { border-color: var(--accent); }
.feature-toggle-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--accent);
}
.feature-toggle-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.feature-toggle-text strong { color: var(--ink); font-size: 0.92rem; }
.feature-toggle-text span { font-size: 0.8rem; color: var(--muted); }

/* --- Upload de imagens (aparência) --- */
.image-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.image-upload-block { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.field-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.avatar-preview { width: 110px; height: 110px; border-radius: 50%; background: var(--surface-alt) center/cover no-repeat; border: 1px solid var(--line); }
.cover-preview { width: 100%; height: 100px; border-radius: var(--radius-sm); background: var(--surface-alt) center/cover no-repeat; border: 1px solid var(--line); }
.file-btn { cursor: pointer; }
.file-btn i { margin-right: 2px; }

@media (max-width: 480px) {
  .image-upload-grid { grid-template-columns: 1fr; }
}

.modal-overlay { position: fixed; inset: 0; background: rgba(15,27,45,0.6); display: flex; align-items: center; justify-content: center; z-index: 900; opacity: 0; pointer-events: none; transition: opacity .2s; padding: 16px; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-sheet { background: #fff; border-radius: var(--radius); padding: 20px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.crop-container { max-width: 100%; max-height: 55vh; overflow: hidden; margin: 14px 0; background: #111; border-radius: var(--radius-sm); }
.crop-container img { display: block; max-width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.color-grid label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.8rem; }

.preset-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.preset-swatch { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.preset-swatch:hover { border-color: var(--accent); }
.preset-dots { display: flex; }
.preset-dots span { width: 12px; height: 12px; border-radius: 50%; margin-left: -4px; border: 1.5px solid #fff; }

/* --- Seletor de estilo de botão (com pré-visualização) --- */
.button-style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.button-style-option { margin: 0; cursor: pointer; }
.button-style-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.button-style-preview {
  display: flex; align-items: center; justify-content: center;
  padding: 12px; border-radius: 8px; font-weight: 600; font-size: 0.85rem;
  box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s ease;
}
.button-style-option input:checked + .button-style-preview { box-shadow: 0 0 0 2px var(--accent); }

/* --- Lista de seções (drag and drop) --- */
.section-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.section-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; flex-wrap: wrap; }
.drag-handle { cursor: grab; color: var(--muted); font-size: 0.95rem; flex-shrink: 0; }
.drag-handle:active { cursor: grabbing; }
.section-info { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.section-info small { color: var(--muted); font-size: 0.75rem; }
.switch { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 0.68rem; color: var(--muted); cursor: pointer; }
.switch input { width: 32px; height: 18px; }
.switch-text { white-space: nowrap; }
.nav-label-input { width: 130px; margin: 0; padding: 7px 10px; font-size: 0.8rem; }

/* --- Listas de CRUD (telefones, e-mails, PIX) --- */
.crud-status { min-height: 1.2em; }
.crud-status-error { color: var(--danger); }
.crud-items { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.crud-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px;
}
.crud-row input[type=text], .crud-row input[type=email], .crud-row input[type=url], .crud-row select {
  margin: 0; padding: 7px 9px; font-size: 0.84rem; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); flex: 1 1 120px; min-width: 0;
}
.crud-row select { flex: 0 1 130px; }
.crud-row .delete-btn {
  border: none; background: transparent; color: var(--danger); cursor: pointer;
  font-size: 0.9rem; padding: 4px 6px; flex-shrink: 0; border-radius: 6px; opacity: 0.75;
}
.crud-row .delete-btn:hover { opacity: 1; background: rgba(192,57,43,0.08); }
.crud-add-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); }
.crud-add-form input, .crud-add-form select {
  margin: 0; padding: 8px 10px; font-size: 0.84rem; border: 1px solid var(--line); border-radius: 6px; flex: 1; min-width: 120px;
}
.crud-add-form button { flex-shrink: 0; }

.switch-mini { display: inline-flex; align-items: center; flex-shrink: 0; }
.switch-mini input { width: 18px; height: 18px; }

/* --- Redes sociais --- */
.social-admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.social-admin-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); flex-wrap: wrap; }
.social-admin-row:hover { background: var(--bg); }
.social-admin-label { flex: 0 0 100px; font-size: 0.84rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.social-admin-label i { color: var(--accent); width: 16px; text-align: center; }
.social-url-input { flex: 1 1 180px; min-width: 0; padding: 8px 10px; font-size: 0.84rem; border: 1px solid var(--line); border-radius: 6px; }
.social-admin-row .delete-btn { border: none; background: transparent; color: var(--danger); cursor: pointer; padding: 4px 6px; flex-shrink: 0; border-radius: 6px; opacity: 0.75; }
.social-admin-row .delete-btn:hover { opacity: 1; background: rgba(192,57,43,0.08); }

/* --- Cabeçalho de página com ação à direita --- */
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 4px; flex-wrap: wrap; }

/* --- Gerenciador de itens (Produtos / Serviços) --- */
.item-manager-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.item-manager-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.item-manager-header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; flex-wrap: wrap; }
.item-field-name { flex: 1 1 140px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 0.9rem; font-weight: 600; }
.item-field-price { width: 90px; flex: 0 1 90px; min-width: 70px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 8px; font-size: 0.84rem; }
.hidden { display: none !important; }

.expand-btn {
  border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.95rem; padding: 6px 8px; flex-shrink: 0; border-radius: 6px;
}
.expand-btn:hover { color: var(--ink); background: var(--surface-alt); }
.expand-btn.is-open i { transform: rotate(180deg); }
.expand-btn i { transition: transform .15s ease; }
.item-manager-header .delete-btn {
  border: none; background: transparent; color: var(--danger); cursor: pointer; font-size: 0.95rem;
  padding: 6px 8px; flex-shrink: 0; border-radius: 6px; opacity: 0.75;
}
.item-manager-header .delete-btn:hover { opacity: 1; background: rgba(192,57,43,0.08); }
.item-manager-body { padding: 0 14px 16px; border-top: 1px solid var(--line); }
.item-manager-body label { display: block; font-size: 0.8rem; font-weight: 600; margin: 12px 0 0; }
.item-manager-body input, .item-manager-body textarea {
  width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 0.86rem;
}
.checkbox-row { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.checkbox-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; }
.checkbox-row input { width: auto; margin: 0; }

.image-manager-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.image-thumb { position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); cursor: grab; }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-remove-btn {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(15,27,45,0.75); color: #fff; border: none; font-size: 0.65rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.image-add-btn {
  aspect-ratio: 1/1; border: 1.5px dashed var(--line); border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; color: var(--muted); cursor: pointer;
}
.image-add-btn:hover { border-color: var(--accent); color: var(--ink); }
.service-thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-alt) center/cover no-repeat; border: 1px solid var(--line); flex-shrink: 0; }
.banner-thumb { width: 64px; height: 40px; border-radius: 6px; }

/* --- Galeria --- */
.gallery-manager-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.gallery-manager-item { display: flex; flex-direction: column; gap: 6px; }
.gallery-manager-thumb { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.gallery-manager-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-remove-btn {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(15,27,45,0.75); color: #fff; border: none; font-size: 0.7rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gallery-toggle { position: absolute; top: 5px; left: 5px; }
.gallery-toggle input { width: 16px; height: 16px; }
.gallery-caption-input { padding: 6px 8px; font-size: 0.76rem; border: 1px solid var(--line); border-radius: 6px; }
.gallery-add-tile {
  aspect-ratio: 1/1; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--muted); cursor: pointer; font-size: 0.76rem; text-align: center;
}
.gallery-add-tile i { font-size: 1.3rem; }
.gallery-add-tile:hover { border-color: var(--accent); color: var(--ink); }

/* --- Horário de funcionamento --- */
.hours-day-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours-day-block:last-of-type { border-bottom: none; }
.hours-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hours-day-head strong { color: var(--ink); font-size: 0.92rem; }
.hours-periods { display: flex; flex-direction: column; gap: 8px; }
.hours-period-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hours-period-row input[type=time] { width: auto; margin: 0; padding: 7px 9px; font-size: 0.85rem; }
.hours-period-row span { color: var(--muted); font-size: 0.82rem; }
.hours-period-row .remove-period-btn {
  border: none; background: transparent; color: var(--danger); opacity: 0.75; cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.hours-period-row .remove-period-btn:hover { opacity: 1; background: rgba(192,57,43,0.08); }
.no-periods-msg { margin: 0; }

/* Em telas pequenas, o cabeçalho do item quebra em duas linhas em vez de
   estourar a largura da tela (nome em cima, controles embaixo). */
@media (max-width: 560px) {
  .item-manager-header { row-gap: 10px; }
  .item-field-name { flex: 1 1 100%; order: 1; }
  .drag-handle { order: 0; }
  .service-thumb { order: 0; }
  .item-field-price { flex: 1 1 auto; order: 2; }
  .switch-mini, .expand-btn, .item-manager-header .delete-btn { order: 3; }

  .crud-row input[type=text], .crud-row input[type=email], .crud-row input[type=url], .crud-row select {
    flex: 1 1 100%;
  }
  .form-row { grid-template-columns: 1fr; }

  .slug-input-row { flex-wrap: wrap; }
  .slug-prefix { width: 100%; border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-right: 1px solid var(--line); border-bottom: none; }
  .slug-input-row input { width: 100%; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
}

/* --- Campo de link personalizado (Perfil) --- */
.slug-input-row { display: flex; align-items: stretch; margin-top: 6px; }
.slug-prefix {
  display: flex; align-items: center; padding: 0 10px; background: var(--surface-alt);
  border: 1px solid var(--line); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--muted); font-size: 0.85rem; white-space: nowrap;
}
.slug-input-row input { margin: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
