/* ============================================================================
   PalcoPro Agência Musical — Dark Stage Mode Stylesheet
   Otimizado para Safari (iPhone/iOS), Android e Desktop sem dependências externas
   ============================================================================ */

:root {
  /* Superfícies Dark Stage */
  --bg-stage: #0b0c10;
  --bg-surface: #13161e;
  --bg-elevated: #1a1e29;
  --bg-input: #0f1218;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Tipografia */
  --text-primary: #f4f5f7;
  --text-secondary: #b0b7c4;
  --text-muted: #7c8494;

  /* Dourado / Âmbar (Palco & Contratantes) */
  --gold: #eab349;
  --gold-bright: #f7c96b;
  --gold-soft: rgba(234, 179, 73, 0.14);
  --gold-border: rgba(234, 179, 73, 0.38);

  /* Verde Esmeralda (Estados Ativos & Disponibilidade) */
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.16);
  --emerald-border: rgba(16, 185, 129, 0.48);

  /* Alertas */
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --amber-hot: #f97316;

  /* Raios, sombras e tipografia */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.42);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Reset & Base Mobile-Safe */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 12% 0%, rgba(234, 179, 73, 0.08), transparent 36%),
    radial-gradient(circle at 88% 12%, rgba(16, 185, 129, 0.07), transparent 34%),
    var(--bg-stage);
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ============================================================================
   TOPBAR & NAVEGAÇÃO DUPLA
   ============================================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 12, 16, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: env(safe-area-inset-top);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #14110a;
  background: linear-gradient(135deg, var(--gold-bright), #c9861d);
  box-shadow: 0 6px 18px rgba(234, 179, 73, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  width: 100%;
}

.mode-tab {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mode-tab .tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.mode-tab[data-view="vitrine"].is-active {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

.mode-tab[data-view="vitrine"].is-active .tab-dot {
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold);
}

.mode-tab[data-view="musico"].is-active {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
}

.mode-tab[data-view="musico"].is-active .tab-dot {
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald);
}

/* ============================================================================
   BOTÕES E BADGES
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.14s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-lg {
  min-height: 50px;
  padding: 13px 22px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  color: #14110a;
  background: linear-gradient(135deg, var(--gold-bright), #d18e24);
  box-shadow: 0 8px 24px rgba(234, 179, 73, 0.25);
}

.btn-gold:hover {
  filter: brightness(1.06);
}

.btn-emerald {
  color: #052217;
  background: linear-gradient(135deg, var(--emerald-bright), var(--emerald));
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.26);
}

.btn-emerald:hover {
  filter: brightness(1.06);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
  min-height: 42px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-mini {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--emerald-border);
  background: var(--emerald-soft);
  color: var(--emerald-bright);
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-mini:hover {
  background: rgba(16, 185, 129, 0.24);
}

.btn-text-danger {
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--danger);
  border-radius: 8px;
  min-height: 34px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-text-danger:hover {
  background: var(--danger-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.eyebrow-emerald {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
}

.pulse-dot-emerald {
  background: var(--emerald-bright);
}

/* ============================================================================
   SEÇÃO 1: VITRINE DA AGÊNCIA (CONTRATANTES)
   ============================================================================ */
.hero {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  gap: 24px;
}

.hero-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 1.03rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-item strong {
  color: var(--gold-bright);
  font-size: 0.98rem;
}

.metric-item span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.hero-stage-card {
  background: linear-gradient(160deg, rgba(26, 30, 41, 0.95), rgba(16, 19, 27, 0.98));
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stage-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stage-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--gold-soft);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border);
}

.badge-emerald {
  background: var(--emerald-soft);
  color: var(--emerald-bright);
  border-color: var(--emerald-border);
}

.stage-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald-bright);
}

.hero-stage-card h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.28;
}

.hero-stage-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.stage-footnote {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  text-align: center;
}

/* Vitrine de Formatos */
.showcase-section {
  padding: 36px 0 56px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--gold);
  margin-bottom: 4px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  max-width: 54ch;
  font-size: 0.95rem;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  border-color: var(--gold-border);
  color: var(--text-primary);
}

.filter-chip.is-active {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

.formats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.format-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.format-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.format-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.format-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 600;
}

.format-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.format-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.format-specs {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.format-specs li::before {
  content: "✓ ";
  color: var(--emerald-bright);
  font-weight: 700;
}

.format-card .btn {
  margin-top: auto;
}

.cta-banner {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(234, 179, 73, 0.12), rgba(26, 30, 41, 0.95));
  border: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta-banner h3 {
  margin: 4px 0 6px;
  font-size: 1.25rem;
}

.cta-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ============================================================================
   SEÇÃO 2: PORTAL DE DISPONIBILIDADE DO MÚSICO
   ============================================================================ */
.portal-container {
  padding-top: 24px;
  padding-bottom: 56px;
}

.portal-header {
  margin-bottom: 22px;
}

.portal-header-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.portal-header h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: -0.02em;
}

.portal-header p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 62ch;
}

.portal-layout {
  display: grid;
  gap: 20px;
}

.portal-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.step-badge {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.92rem;
}

.card-head h2 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.card-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Formulário */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.field-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.required-mark {
  color: var(--gold-bright);
}

/* font-size 16px evita zoom automático no iPhone Safari */
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field-group select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field-group textarea {
  min-height: 92px;
  resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--text-muted);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.field-group input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.field-error {
  font-size: 0.82rem;
  color: var(--danger);
  min-height: 1em;
}

/* ============================================================================
   CALENDÁRIO INTERATIVO DE 60 DIAS
   ============================================================================ */
.shift-default-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.shift-bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.shift-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.shift-pill {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.shift-pill.is-active {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  color: var(--emerald-bright);
}

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.month-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.month-tab {
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: capitalize;
}

.month-tab.is-active {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

.month-tab-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--emerald);
  color: #052217;
  font-size: 0.72rem;
  font-weight: 700;
}

.calendar-wrapper {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-spacer {
  min-height: 48px;
}

.cal-day {
  position: relative;
  min-height: 52px;
  padding: 5px 3px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.12s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.cal-day:hover:not(:disabled) {
  border-color: var(--gold-border);
}

.cal-day:active:not(:disabled) {
  transform: scale(0.95);
}

.cal-day-num {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.1;
}

.cal-day-shift {
  font-size: 0.68rem;
  line-height: 1;
  color: var(--text-muted);
}

.cal-day.is-today {
  border-color: var(--gold-border);
}

.cal-day.is-today::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-bright);
}

.cal-day.is-selected {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: #ecfdf5;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}

.cal-day.is-selected .cal-day-shift {
  color: var(--emerald-bright);
  font-weight: 600;
}

.cal-day.is-disabled {
  background: transparent;
  border-color: transparent;
  color: rgba(124, 132, 148, 0.32);
  cursor: not-allowed;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.legend-today {
  border: 1px solid var(--gold-bright);
}

.legend-selected {
  background: var(--emerald);
}

/* Resumo de Datas Selecionadas */
.selected-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.selected-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.selected-summary-head h3 {
  margin: 0;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.count-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-bright);
  font-size: 0.8rem;
  font-weight: 700;
}

.selected-empty {
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.selected-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.selected-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--emerald-border);
}

.selected-item-date {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.selected-item-date strong {
  font-size: 0.94rem;
  color: var(--text-primary);
}

.selected-item-date span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.selected-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-shift-btn {
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
}

.mini-shift-btn.is-active {
  background: var(--emerald-soft);
  border-color: var(--emerald);
  color: var(--emerald-bright);
}

.remove-date-btn {
  min-width: 34px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ============================================================================
   TERMÔMETRO DE DISPOSIÇÃO PARA CAPTAR
   ============================================================================ */
.thermo-meter {
  margin-bottom: 16px;
}

.thermo-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  margin-bottom: 6px;
}

.thermo-fill {
  height: 100%;
  width: 66%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--emerald-bright));
  transition: width 0.25s ease, background 0.25s ease;
}

.thermo-fill[data-level="cacador"] {
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--emerald), var(--emerald-bright));
}

.thermo-fill[data-level="padrao"] {
  width: 66%;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
}

.thermo-fill[data-level="selecionados"] {
  width: 34%;
  background: linear-gradient(90deg, #94a3b8, var(--gold));
}

.thermo-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.thermo-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.thermo-card {
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.12s ease;
}

.thermo-card:active {
  transform: scale(0.99);
}

.thermo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.thermo-icon {
  font-size: 1.3rem;
}

.thermo-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-hot {
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.badge-open {
  background: var(--emerald-soft);
  color: var(--emerald-bright);
  border: 1px solid var(--emerald-border);
}

.badge-select {
  background: var(--gold-soft);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border);
}

.thermo-card strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.thermo-card .thermo-desc {
  display: block;
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.thermo-card.is-selected {
  background: rgba(16, 185, 129, 0.11);
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.thermo-card[data-level="cacador"].is-selected {
  background: rgba(249, 115, 22, 0.11);
  border-color: #fb923c;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.35);
}

.thermo-card[data-level="selecionados"].is-selected {
  background: var(--gold-soft);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(234, 179, 73, 0.35);
}

/* ============================================================================
   SIDEBAR DE DISPARO E PRÉVIA DA MENSAGEM
   ============================================================================ */
.dispatch-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dispatch-header h2 {
  margin: 8px 0 4px;
  font-size: 1.2rem;
}

.dispatch-header p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.preview-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  overflow: hidden;
}

.preview-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.preview-status {
  color: var(--gold-bright);
}

.preview-status.is-ready {
  color: var(--emerald-bright);
}

.message-preview {
  margin: 0;
  padding: 12px;
  max-height: 290px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.48;
  color: #dbe3ef;
  white-space: pre-wrap;
  word-break: break-word;
}

.dispatch-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dispatch-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================================
   MODAL DE ORÇAMENTO & TOAST
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 6, 9, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-dialog {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-header h2 {
  margin: 2px 0 0;
  font-size: 1.3rem;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1rem;
}

.modal-body {
  display: grid;
  gap: 14px;
}

.modal-actions {
  margin-top: 6px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(92vw, 440px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #17202b;
  border: 1px solid var(--emerald-border);
  color: #ecfdf5;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.toast.is-error {
  background: #2b1619;
  border-color: rgba(248, 113, 113, 0.55);
  color: #fee2e2;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 22px 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-inner p {
  margin: 0;
}

.footer-link {
  color: var(--emerald-bright);
  font-weight: 600;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ============================================================================
   MEDIA QUERIES (TABLET & DESKTOP)
   ============================================================================ */
@media (min-width: 640px) {
  .topbar-inner {
    flex-wrap: nowrap;
  }

  .mode-switcher {
    width: auto;
    min-width: 390px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .formats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-full {
    grid-column: 1 / -1;
  }

  .portal-header-top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .shift-default-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .thermo-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.45fr 1fr;
    align-items: center;
    gap: 36px;
  }

  .formats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .portal-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    align-items: start;
  }

  .portal-sidebar {
    position: sticky;
    top: 86px;
  }
}

