/* ════════════════════════════════════════
   PedeFlix — style.css (Painel)
   ════════════════════════════════════════ */

:root {
  --brand: #F97316;
  --brand-dark: #c45a0c;
  --bg: #f4f4f0;
  --surface: #ffffff;
  --border: #e8e8e4;
  --text: #1a1a1a;
  --text-muted: #888880;
  --sidebar-bg: #1a1a1a;
  --sidebar-text: #f4f4f0;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.18s ease;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.hidden { display: none !important; }

/* ════════════════════════════════════════
   AUTH SCREEN
   ════════════════════════════════════════ */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.auth-bg { position: absolute; inset: 0; pointer-events: none; }

/* Grid quadriculado com fade radial */
.auth-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 10%, transparent 75%);
}

/* Brilho laranja suave centralizado */
.auth-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.auth-blob { display: none; }

.auth-card {
  background: #242424;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05) inset;
}

.auth-logo { margin-bottom: 6px; }
.logo-text {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo-text .logo-flix { color: var(--brand); }

.logo-text .logo-flix { color: var(--brand); }

/* Auth card needs overflow hidden for form animation */
.auth-card { overflow: hidden; }

.auth-tagline { color: #5a5a5a; font-size: 13.5px; margin-bottom: 28px; }

.auth-tabs {
  display: flex;
  gap: 4px;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.06);
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: var(--transition);
}
.auth-tab.active { background: var(--brand); color: #fff; }

/* Animação suave entre forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  position: absolute;
  width: calc(100% - 72px);
}
.auth-form.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  width: 100%;
}

/* ── FIELDS ── */
.field-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; overflow: hidden; }
.field-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.label-optional {
  font-size: 11px;
  font-weight: 400;
  color: #bbb;
  text-transform: none;
  letter-spacing: 0;
}

.auth-form input,
.auth-form textarea {
  background: #111;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: #f0f0f0;
  outline: none;
  transition: border-color var(--transition);
}
.auth-form input:focus, .auth-form textarea:focus { border-color: var(--brand); }

/* Dashboard fields */
.dash-section input,
.dash-section textarea,
.dash-section select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.dash-section input:focus,
.dash-section textarea:focus,
.dash-section select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(249,115,22,0.08); }

/* Modal fields */
.modal input[type="text"],
.modal input[type="number"],
.modal textarea,
.modal select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.08);
}

/* Fix para inputs de time/date no mobile */
input[type="time"],
input[type="date"],
input[type="datetime-local"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.span-2 { grid-column: span 2; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.full { width: 100%; justify-content: center; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  padding: 11px 20px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-outline.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover { background: #fff4ed; color: #c45a0c; border-color: #fed7aa; }
.btn-ghost.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }

.btn-row { display: flex; gap: 12px; margin-top: 28px; }

/* ── ERRORS / SUCCESS ── */
.form-error {
  background: #fff7ed;
  color: #c45a0c;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
}
.form-success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
}

/* ════════════════════════════════════════
   DASHBOARD LAYOUT
   ════════════════════════════════════════ */

.dashboard { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
.sidebar {
  width: 220px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 28px 14px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 10;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  margin-bottom: 40px;
}
.sidebar-logo .logo-text {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-align: center;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: #777;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-item:hover { background: #2a2a2a; color: #fff; }
.nav-item.active { background: var(--brand); color: #fff; }

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: #555;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 8px;
}
.sidebar-logout:hover { background: #2a2a2a; color: #ff6b6b; }

.sidebar-support {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: #777;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  width: 100%;
}
.sidebar-support:hover { background: #2a2a2a; color: #fff; }


/* ── HAMBURGER & MOBILE DRAWER ── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hamburger-btn:hover { background: #2a2a2a; }
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 198;
  opacity: 0;
  transition: opacity 0.25s;
}
.mobile-menu-overlay.visible {
  opacity: 1;
}

@media (max-width: 600px) {
  .sidebar-support {
    display: none;
  }
}

/* ── SUPPORT SECTION ── */
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.support-card-icon {
  width: 48px; height: 48px;
  background: rgba(37,211,102,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.support-card-icon svg { width: 24px; height: 24px; }
.support-card h3 {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  color: var(--text); margin: 0;
}
.support-card p {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.7; margin: 0;
}
.btn-whatsapp-support {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  border: none; border-radius: 10px;
  padding: 13px 22px;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: var(--transition);
  width: fit-content;
}
.btn-whatsapp-support:hover { background: #20ba58; transform: translateY(-1px); }
.btn-whatsapp-support svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: 220px;
  flex: 1;
  padding: 36px;
  max-width: calc(100vw - 220px);
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.dash-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.dash-sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.dash-user {
  background: var(--brand);
  color: #fff;
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dash-section { display: none; flex-direction: column; gap: 24px; }
.dash-section.active { display: flex; }

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}
.card-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-head .card-title { margin-bottom: 0; }

/* ── COLOR PICKER ── */
.color-pick-row { display: flex; align-items: center; gap: 12px; }
.color-pick-row input[type="color"] {
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
}
.color-preview {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-block;
  border: 2px solid var(--border);
}
#store-color-hex { font-size: 13px; color: var(--text-muted); font-family: monospace; }

/* ── LOGO UPLOAD ── */
.logo-upload-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.logo-upload-inner {
  border: 2px dashed var(--border);
  border-radius: 14px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
  background: var(--bg);
  /* NOT cursor:pointer — no click to open file */
}
.logo-upload-inner.drag-over { border-color: var(--brand); background: #fff4ed; }
.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}
.logo-placeholder p { font-size: 14px; }
.upload-link { color: var(--brand); font-weight: 600; }
.logo-placeholder small { font-size: 12px; opacity: 0.7; }
.logo-preview-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.logo-actions { display: flex; gap: 10px; align-items: center; }
.logo-status {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.logo-status.error {
  background: #fff7ed;
  color: #c45a0c;
  border-color: #fed7aa;
}
.logo-status.loading {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* ── LINK BOX ── */
.link-card { background: linear-gradient(135deg, #1a1a1a 0%, #2d1a1a 100%); border-color: #3a1a1a; }
.link-card .card-title { color: #fff; margin-bottom: 8px; }
.link-card .card-desc { color: #aaa; margin-bottom: 16px; }
.link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 16px;
}
#store-link-text {
  flex: 1;
  font-size: 14px;
  color: #ccc;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-copy {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-copy:hover { background: var(--brand-dark); }
.btn-copy:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── CATEGORIES LIST ── */
.categories-list, .items-list { display: flex; flex-direction: column; gap: 8px; }
.empty-state { color: var(--text-muted); font-size: 14px; text-align: center; padding: 28px; }

.category-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: 12px;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition);
}
.category-row:hover { border-color: #d0d0cc; }
.category-row .cat-name { flex: 1; font-weight: 600; font-size: 14px; }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  width: 32px;
  height: 32px;
}
.btn-icon:hover { background: #fff4ed; color: #c45a0c; }
.btn-icon.edit:hover { background: #eff6ff; color: #1d4ed8; }
.btn-icon.btn-star { color: #d1d5db; }
.btn-icon.btn-star:hover { background: #fefce8; color: #d97706; }
.btn-icon.btn-star.star-active { color: #d97706; }
.btn-icon.btn-star.star-active:hover { background: #fef3c7; }
.cat-badge-featured {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.cat-featured-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  width: 100%;
}
.cat-featured-toggle:hover { border-color: #d97706; color: #92400e; background: #fefce8; }
.cat-featured-toggle.is-featured { border-color: #f59e0b; background: #fef3c7; color: #92400e; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── ITEMS LIST ── */
.item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: 12px;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition);
}
.item-row:hover { border-color: #d0d0cc; }
.item-row .item-info { flex: 1; }
.item-row .item-info .item-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.item-row .item-info .item-cat { font-size: 12px; color: var(--text-muted); }
.item-row .item-price { font-weight: 700; color: var(--brand); font-size: 15px; white-space: nowrap; }
.item-row.item-unavail { opacity: 0.55; }
.badge-off {
  font-size: 11px;
  background: #fff4ed;
  color: #c45a0c;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 600;
  margin-left: 6px;
}

/* ── TOGGLE ── */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.toggle-label input { display: none; }
.toggle-slider {
  width: 44px; height: 24px;
  background: #ddd;
  border-radius: 100px;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle-label input:checked + .toggle-slider { background: var(--brand); }
.toggle-label input:checked + .toggle-slider::after { transform: translateX(20px); }
.toggle-text { font-size: 14px; color: var(--text-muted); }

/* ── EXTRAS ── */
.extras-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.extras-limit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
#extras-limit-input-wrap { display: none; align-items: center; gap: 6px; }

.extra-row {
  display: grid;
  grid-template-columns: 1fr 160px 36px;
  gap: 10px;
  align-items: end;
}
.extra-field { display: flex; flex-direction: column; gap: 5px; }
.extra-field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.extra-field input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.extra-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.08);
}
.extra-empty {
  color: var(--text-muted);
  font-size: 13px;
  padding: 16px 0 4px;
}

/* ════════════════════════════════════════
   MODAL
   ════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--surface);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}
.modal.modal-lg { max-width: 640px; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
  flex-shrink: 0;
}
.modal-head h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
}
.modal-close {
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: #fff4ed; color: #c45a0c; }

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Modal blocks */
.modal-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal-block-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.modal-block-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 380px;
}

/* ── PASSWORD FORM ── */
.pw-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── CONFIRM DIALOG ── */
.confirm-modal {
  max-width: 380px !important;
  text-align: center;
  padding: 0;
  gap: 0;
}
.confirm-icon-wrap {
  width: 56px;
  height: 56px;
  background: #fff4ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px auto 16px;
  color: #c45a0c;
}
.confirm-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  padding: 0 28px;
  margin-bottom: 8px;
}
.confirm-message {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 28px;
  line-height: 1.5;
}
.confirm-foot {
  display: flex;
  gap: 10px;
  padding: 24px 28px 28px;
  margin-top: 20px;
}
.confirm-foot .btn-outline,
.confirm-foot .btn-danger { flex: 1; justify-content: center; }

.btn-danger {
  background: #c45a0c;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-danger:hover { background: #a93226; }
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: toastIn 0.2s ease;
  white-space: nowrap;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Mobile: sidebar becomes top bar + hamburger drawer */
  .hamburger-btn { display: flex; }

  .mobile-menu-overlay { display: block; pointer-events: none; }
  .mobile-menu-overlay.visible { pointer-events: auto; }

  .sidebar {
    width: 100%;
    height: 56px;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 200;
    overflow: visible;
    transform: none !important;
  }

  /* Drawer: the nav slides in from the left, abaixo da barra superior */
  .sidebar-nav {
    position: fixed;
    top: 56px; left: 0; bottom: 0;
    width: 260px;
    background: var(--sidebar-bg);
    flex-direction: column;
    padding: 20px 14px 28px;
    gap: 2px;
    z-index: 199;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
  }
  .sidebar-nav.open { transform: translateX(0); }

  .sidebar-logout {
    position: fixed;
    bottom: 0; left: 0;
    width: 260px;
    background: var(--sidebar-bg);
    padding: 16px 28px;
    margin-top: 0;
    z-index: 199;
    border-top: 1px solid #2a2a2a;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  }
  .sidebar-logout.open { transform: translateX(0); }
  .sidebar-logout span { display: inline; }

  .nav-item span { display: inline; }
  .nav-item { font-size: 15px; padding: 13px 16px; }

  .sidebar-logo {
    margin-bottom: 0;
    order: 2;
  }
  .hamburger-btn { order: 1; }

  .main-content { margin-left: 0; padding: 80px 16px 16px; max-width: 100%; }
  .dashboard { flex-direction: column; }
  .modal-body { padding: 20px; }
  .modal-head { padding: 20px 20px 0; }
  .modal-foot { padding: 16px 20px; }
  .extra-row { grid-template-columns: 1fr 130px 36px; }
}

/* ════════════════════════════════════════
   PAYWALL SCREEN
   ════════════════════════════════════════ */

.paywall-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0f0f0f;
  position: relative;
  overflow: hidden;
}

.paywall-screen::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: var(--brand);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  top: -200px; right: -150px;
  pointer-events: none;
}

.paywall-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 460px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.paywall-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.paywall-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.paywall-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.paywall-sub {
  color: #999;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.paywall-sub strong { color: #ddd; }

.paywall-features {
  list-style: none;
  text-align: left;
  background: #111;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paywall-features li {
  color: #ccc;
  font-size: 14px;
}

.btn-paywall {
  display: block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  transition: background 0.18s, transform 0.1s;
  letter-spacing: -0.2px;
}

.btn-paywall:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.paywall-hint {
  color: #555;
  font-size: 12.5px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.paywall-logout {
  background: none;
  border: none;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.15s;
}

.paywall-logout:hover { color: #888; }

/* ════════════════════════════════════════
   SUBSCRIPTION INFO
   ════════════════════════════════════════ */

.subscription-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface2);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.sub-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sub-info-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sub-info-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sub-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ════════════════════════════════════════
   COMO USAR — ACCORDION
   ════════════════════════════════════════ */

.guide-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-group-title {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Cores por grupo */
.accordion-group--blue .accordion-group-title {
  background: #eff6ff;
  color: #2563eb;
  border-bottom-color: #bfdbfe;
}
.accordion-group--blue { border-color: #bfdbfe; }
.accordion-group--blue .accordion-item.open .accordion-trigger { color: #2563eb; }
.accordion-group--blue .accordion-item.open .accordion-chevron { color: #2563eb; }

.accordion-group--orange .accordion-group-title {
  background: #fff7ed;
  color: #ea580c;
  border-bottom-color: #fed7aa;
}
.accordion-group--orange { border-color: #fed7aa; }
.accordion-group--orange .accordion-item.open .accordion-trigger { color: #ea580c; }
.accordion-group--orange .accordion-item.open .accordion-chevron { color: #ea580c; }

.accordion-group--green .accordion-group-title {
  background: #f0fdf4;
  color: #16a34a;
  border-bottom-color: #bbf7d0;
}
.accordion-group--green { border-color: #bbf7d0; }
.accordion-group--green .accordion-item.open .accordion-trigger { color: #16a34a; }
.accordion-group--green .accordion-item.open .accordion-chevron { color: #16a34a; }

.accordion-group--purple .accordion-group-title {
  background: #faf5ff;
  color: #7c3aed;
  border-bottom-color: #ddd6fe;
}
.accordion-group--purple { border-color: #ddd6fe; }
.accordion-group--purple .accordion-item.open .accordion-trigger { color: #7c3aed; }
.accordion-group--purple .accordion-item.open .accordion-chevron { color: #7c3aed; }

.accordion-item {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.accordion-item:last-child { border-bottom: none; }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.15s;
}
.accordion-trigger:hover { background: rgba(0,0,0,0.03); }

.accordion-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-item.open .accordion-trigger { color: var(--brand); }

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.4,0,0.2,1);
}
.accordion-item.open .accordion-body { grid-template-rows: 1fr; }

.accordion-body-inner {
  overflow: hidden;
  padding: 4px 0 2px;
}

.accordion-body p {
  padding: 0 18px 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.accordion-body p strong { color: var(--text); font-weight: 600; }

/* ─── Extras selector (checkboxes no modal de item) ─── */
.extras-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.extra-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.extra-checkbox-row:hover {
  background: var(--surface-2, #f9f9f9);
  border-color: var(--brand);
}

.extra-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex-shrink: 0;
  cursor: pointer;
}

.extra-checkbox-name {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.extra-checkbox-price {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Linha destacada quando selecionada */
.extra-checkbox-row:has(input:checked) {
  background: color-mix(in srgb, var(--brand) 6%, transparent);
  border-color: var(--brand);
}

/* Máscara de preço no modal de adicional */
#extra-template-price-input {
  font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════
   BUSINESS HOURS — redesign
   ════════════════════════════════════════ */

#business-hours-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bh-day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity 0.2s, border-color 0.15s;
}

.bh-day-card.bh-closed {
  opacity: 0.5;
}

.bh-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 8px;
}

.bh-day-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bh-day-abbr {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f3f3f0;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 8px;
  color: var(--text-muted);
  min-width: 38px;
  text-align: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bh-day-card:not(.bh-closed) .bh-day-abbr {
  background: #FFF4EC;
  border-color: #FBCFA4;
  color: var(--brand-dark);
}

.bh-day-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.bh-day-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bh-day-status {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.bh-day-card:not(.bh-closed) .bh-day-status {
  color: var(--brand-dark);
  font-weight: 500;
}

.bh-toggle-wrap {
  gap: 0;
}

.bh-day-times {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 14px 14px;
  transition: opacity 0.2s;
}

.bh-day-card.bh-closed .bh-day-times {
  display: none;
}

.bh-time-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bh-time-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bh-time-input {
  width: 100%;
  background: #f7f7f4;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.bh-time-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
  background: #fff;
}

.bh-time-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bh-time-sep {
  color: var(--text-muted);
  font-size: 16px;
  padding-bottom: 10px;
  flex-shrink: 0;
}

/* ── Responsive: mobile ── */
@media (max-width: 480px) {
  .bh-day-header {
    padding: 11px 12px;
  }

  .bh-day-times {
    padding: 0 12px 12px;
    gap: 6px;
  }

  .bh-day-status {
    display: none;
  }

  .bh-day-name {
    font-size: 13px;
  }

  .bh-time-input {
    font-size: 14px;
    padding: 8px 10px;
  }
}
