/* VISTONANET — JHONBRAIN AI-FIRST OS DESIGN SYSTEM
   Theme: Bronze Queimado sobre Preto Profundo (#000000 / #0E1013 / #C08043 / #E3AE79 / #8B9199)
   Tagline: VISION. PRECISION. FUTURE.
   Qualidade & Alinhamento: Regras do /revisar (Centralização por default, nada solto, tudo ancorado)
*/

:root {
  --bg-primary: #000000;
  --bg-secondary: #0E1013;
  --bg-card: rgba(14, 16, 19, 0.95);
  --bg-card-hover: rgba(22, 25, 30, 0.98);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-bronze: rgba(192, 128, 67, 0.35);
  --border-glow: rgba(227, 174, 121, 0.5);
  
  --brand-bronze: #C08043;
  --brand-highlight: #E3AE79;
  --brand-dark-bronze: #8A5522;
  --brand-steel: #8B9199;
  
  --brand-gradient: linear-gradient(135deg, #8A5522 0%, #C08043 50%, #E3AE79 100%);
  --brand-gradient-hover: linear-gradient(135deg, #a3652f 0%, #d49253 50%, #f0c394 100%);
  
  --text-main: #E8EAED;
  --text-muted: #8B9199;
  --text-dim: #5c626a;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.95);
  --shadow-bronze: 0 4px 25px rgba(192, 128, 67, 0.25);
  --glass-backdrop: blur(25px);
}

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

.hidden {
  display: none !important;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(138, 85, 34, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(192, 128, 67, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Tipografia e Alinhamento /revisar */
h1, h2, h3, .font-cinzel, .brand-title {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.text-center {
  text-align: center !important;
}

.align-center {
  align-items: center !important;
  justify-content: center !important;
}

.tagline {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-steel);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
}

/* MICROFONE E ANIMAÇÃO DE GRAVAÇÃO DE VOZ */
.mic-recording-active {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #f87171 !important;
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(192, 128, 67, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-bronze);
}

/* Layout App */
#app {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Lock Screen Autenticação */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-bronze);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 40px;
  box-shadow: var(--shadow-main), var(--shadow-bronze);
  text-align: center;
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-gradient);
}

.auth-logo-img {
  max-width: 180px;
  height: auto;
  margin: 0 auto 16px auto;
  display: block;
}

/* Sidebar */
.sidebar {
  width: 270px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  z-index: 10;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  text-align: center;
}

.company-logo-img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--brand-steel);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(192, 128, 67, 0.08);
  color: var(--text-main);
  border-color: rgba(192, 128, 67, 0.2);
}

.nav-item.active {
  background: var(--brand-gradient);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--shadow-bronze);
  border-color: var(--brand-highlight);
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.brain-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(192, 128, 67, 0.1);
  border: 1px solid var(--border-bronze);
  color: var(--brand-highlight);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-highlight);
  box-shadow: 0 0 10px var(--brand-highlight);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Área Principal & Top Navbar */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.top-navbar {
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(14, 16, 19, 0.85);
  backdrop-filter: var(--glass-backdrop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 50;
}

.page-title-area h1 {
  font-size: 1.3rem;
  color: var(--text-main);
}

.top-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  height: 100%;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-bronze);
  border: 1px solid var(--brand-highlight);
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(192, 128, 67, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(192, 128, 67, 0.1);
  border-color: var(--border-bronze);
  color: var(--brand-highlight);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #1eb956;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

/* Containers de Visão */
.view-container {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  display: none;
}

.view-container.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards & Grades */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-main);
}

.card:hover {
  border-color: var(--border-bronze);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.1rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

/* PACKAGE CARDS (CATÁLOGO DE PRODUTOS & SERVIÇOS — CENTRALIZADO) */
.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bronze);
  border-radius: var(--radius-lg);
  padding: 36px 24px 28px 24px;
  box-shadow: var(--shadow-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-highlight);
  box-shadow: 0 12px 30px rgba(192, 128, 67, 0.25);
}

.package-card.featured {
  background: linear-gradient(180deg, rgba(192, 128, 67, 0.14) 0%, rgba(14, 16, 19, 0.96) 100%);
  border: 1px solid var(--brand-highlight);
  box-shadow: var(--shadow-bronze), 0 10px 35px rgba(192, 128, 67, 0.25);
}

/* FRASE 'MAIS VENDIDO' PERFEITAMENTE CENTRALIZADA NO TOPO DO CARD */
.package-card.featured::before {
  content: '⭐ MAIS VENDIDO';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 18px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 4px 15px rgba(192, 128, 67, 0.4);
  white-space: nowrap;
  text-align: center;
}

.package-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-highlight);
  margin-bottom: 6px;
  text-align: center;
}

.package-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  margin-top: 4px;
  text-align: center;
}

.package-parcel {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-highlight);
  margin-bottom: 14px;
  text-align: center;
}

.product-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  width: 100%;
}

.product-actions-group .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(192, 128, 67, 0.12);
  color: var(--brand-highlight);
  border: 1px solid var(--border-bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-info p {
  font-size: 0.82rem;
  color: var(--brand-steel);
  margin-top: 4px;
}

/* CARROSSEL & FORMAT PREVIEW STYLES */
.carousel-preview-box {
  background: #000000;
  border: 1px solid var(--border-bronze);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-bronze);
  transition: all 0.3s ease;
}

.carousel-preview-box.status-mode {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  padding: 36px 20px;
}

.carousel-preview-box.gmb-mode {
  aspect-ratio: 16 / 9;
  max-width: 480px;
  padding: 24px 20px;
}

.carousel-slide-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-highlight);
  letter-spacing: 0.15em;
}

.carousel-slide-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-highlight);
  line-height: 1.3;
  margin: 14px 0 10px 0;
}

.carousel-slide-body {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
}

.carousel-controls-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.carousel-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.carousel-indicator-dot.active {
  background: var(--brand-highlight);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--brand-highlight);
}

/* CARDS DE CONEXÃO DE APIS DE REDES SOCIAIS */
.api-connection-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.api-connection-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.api-connection-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(192, 128, 67, 0.1);
  border: 1px solid var(--border-bronze);
  color: var(--brand-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kanban CRM */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  min-height: 500px;
}

.kanban-column {
  background: rgba(14, 16, 19, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.column-title {
  font-size: 0.85rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-highlight);
}

.lead-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
}

.lead-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-bronze);
  box-shadow: var(--shadow-bronze);
}

.lead-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.lead-meta {
  font-size: 0.8rem;
  color: var(--brand-steel);
  margin: 6px 0 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(192, 128, 67, 0.15);
  color: var(--brand-highlight);
  border: 1px solid rgba(192, 128, 67, 0.3);
}

/* AGENDA & CALENDÁRIO VISUAL REVISADO */
.calendar-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.calendar-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.calendar-month-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-highlight);
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.day-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-steel);
  padding-bottom: 8px;
  text-transform: uppercase;
}

.day-cell {
  padding: 12px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.day-cell:hover:not(.disabled) {
  border-color: var(--brand-bronze);
  background: rgba(192, 128, 67, 0.15);
  color: var(--brand-highlight);
}

.day-cell.selected {
  background: var(--brand-gradient) !important;
  color: #ffffff !important;
  border-color: var(--brand-highlight) !important;
  box-shadow: var(--shadow-bronze);
}

.day-cell.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: transparent;
}

.day-cell.has-event::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-highlight);
  margin-top: 4px;
}

/* STEPPER MODAL */
.booking-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-steel);
}

.step-item.active {
  color: var(--brand-highlight);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.step-item.active .step-number {
  background: var(--brand-gradient);
  color: #fff;
  border-color: var(--brand-highlight);
}

/* MODAL DE AGENDAMENTO PÚBLICO */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.booking-card {
  background: #0E1013;
  border: 1px solid var(--border-bronze);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 660px;
  padding: 40px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.95), var(--shadow-bronze);
  position: relative;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.service-option {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.service-option:hover, .service-option.selected {
  border-color: var(--brand-bronze);
  background: rgba(192, 128, 67, 0.12);
  transform: translateY(-2px);
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.time-slot-btn {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.time-slot-btn:hover, .time-slot-btn.selected {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: var(--brand-highlight);
  box-shadow: var(--shadow-bronze);
}

/* Chat UI */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  height: calc(100vh - 150px);
}

.agent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.agent-item:hover, .agent-item.active {
  border-color: var(--brand-bronze);
  background: rgba(192, 128, 67, 0.1);
}

.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.chat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--brand-gradient);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.agent {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  background: rgba(14, 16, 19, 0.9);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--brand-bronze);
  box-shadow: 0 0 15px rgba(192, 128, 67, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

/* Recibo Preview */
.receipt-preview {
  background: #ffffff;
  color: #0f172a;
  padding: 32px;
  border-radius: var(--radius-md);
  font-family: 'Courier New', Courier, monospace;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed #94a3b8;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.receipt-total {
  border-top: 2px dashed #94a3b8;
  padding-top: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   CELULAR — a sidebar vira barra horizontal no topo e as grades colapsam
   para 1 coluna. Sem este bloco o painel era usável só no desktop.
   ========================================================================== */
@media (max-width: 860px) {
  #app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 10px 12px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  /* a marca já está na tela de senha; o bloquear volta ao fechar a aba,
     porque a senha é pedida de novo em toda abertura */
  .sidebar-header,
  .sidebar-footer {
    display: none;
  }

  .nav-group {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .nav-item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .top-navbar {
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .kanban-board {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   IMPRESSÃO DO RECIBO — o Cmd/Ctrl+P (ou o botão Imprimir/PDF) sai só com a
   folha do recibo, em fundo branco. O resto do painel não vai para o papel.
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }

  #receiptPreviewBox,
  #receiptPreviewBox * {
    visibility: visible;
  }

  #receiptPreviewBox {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 40px;
    background: #ffffff;
    box-shadow: none;
    border: none;
  }
}
