/* ========================================================
   Agenda Cultura — Design System Institucional Limpo
   Inspirado nas referências: Bento Grid, High Contrast,
   Modern Grotesque & Pill Components
   ======================================================== */

:root {
  --bg: #0c0c0e;
  --bg-card: #141417;
  --bg-card-hover: #1b1b20;
  --bg-card-elevated: #202026;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text-main: #f4f4f6;
  --text-muted: #8e8e93;
  --text-sub: #a1a1aa;
  
  /* Acentos elegantes e institucionais */
  --accent-white: #ffffff;
  --accent-black: #0c0c0e;
  --accent-sage: #84a98c;
  --accent-olive: #52796f;
  
  /* Status refinados (não-saturados) */
  --status-pending-bg: rgba(245, 158, 11, 0.12);
  --status-pending-text: #fbbf24;
  --status-pending-border: rgba(245, 158, 11, 0.25);
  
  --status-approved-bg: rgba(74, 222, 128, 0.12);
  --status-approved-text: #4ade80;
  --status-approved-border: rgba(74, 222, 128, 0.25);
  
  --status-rejected-bg: rgba(248, 113, 113, 0.12);
  --status-rejected-text: #f87171;
  --status-rejected-border: rgba(248, 113, 113, 0.25);
  
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

/* ---------------- Topbar Institucional ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 36px;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #0c0c0e;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

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

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Segmented Pill Tabs Dock (Referência Imagem 1 e 2) */
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.tabs button {
  background: none;
  border: 0;
  color: var(--text-sub);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tabs button:hover {
  color: #ffffff;
}

.tabs button.active {
  background: #ffffff;
  color: #0c0c0e;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.badge {
  background: var(--status-pending-text);
  color: #0c0c0e;
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
  margin-left: 4px;
}

.user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #27272a;
  border: 1px solid var(--border-strong);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

/* ---------------- Layout & Main Container ---------------- */
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 28px 60px;
}

.view {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ---------------- Botões & Controles em Pílula ---------------- */
button {
  font-family: inherit;
}

.primary {
  background: #ffffff;
  color: #0c0c0e;
  border: 1px solid #ffffff;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  color: #ffffff;
}

.danger {
  background: var(--status-rejected-bg);
  color: var(--status-rejected-text);
  border: 1px solid var(--status-rejected-border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.danger:hover {
  background: rgba(248, 113, 113, 0.22);
}

.ok-btn {
  background: var(--status-approved-bg);
  color: var(--status-approved-text);
  border: 1px solid var(--status-approved-border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ok-btn:hover {
  background: rgba(74, 222, 128, 0.22);
}

.icon-pill, .ghost-pill {
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.icon-pill {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.icon-pill:hover, .ghost-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-strong);
}

/* ---------------- Bento Grid (Inspirado na Imagem 1) ---------------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

/* Card 1: Hero */
.bento-hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.bento-hero h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 18px 0 14px;
  color: #ffffff;
}

.bento-hero p {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Card 2: Contraste Branco Puro (estilo imagem 1 "Problem / Solution") */
.bento-contrast {
  background: #ffffff;
  color: #0c0c0e;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-contrast h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0c0c0e;
  margin: 14px 0 10px;
}

.bento-contrast p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #52525b;
}

.contrast-footer {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.micro-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f4f4f5;
  color: #27272a;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Card 3: Espaços */
.bento-spaces {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.space-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.space-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.sc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.space-chip b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.space-chip small {
  color: var(--text-muted);
  font-size: 12px;
}

/* Card 4: Fluxo */
.bento-steps {
  grid-column: 1 / -1;
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.step-num {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-item b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.step-item small {
  color: var(--text-muted);
  font-size: 12px;
}

/* Pill Tags */
.pill-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-sub);
}

.pill-tag-dark {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f4f4f5;
  color: #27272a;
}

/* ---------------- Calendário Geral (Inspirado na Imagem 2) ---------------- */
.calendar-bento {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.calendar-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.calendar-giant-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-transform: capitalize;
  line-height: 1.1;
}

.calendar-subtitle {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.select-pill, .date-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.select-pill:focus, .date-pill:focus {
  border-color: #ffffff;
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-sub);
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

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

.dow {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 0;
}

.day {
  min-height: 116px;
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.day:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.day.other {
  opacity: 0.3;
}

/* Indicador do dia (Dia ativo/hoje vira círculo branco com número preto, igual Imagem 2!) */
.day .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 600;
  color: #d4d4d8;
  margin-bottom: 6px;
}

.day.today .num {
  background: #ffffff;
  color: #0c0c0e;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.day.today {
  border-color: rgba(255, 255, 255, 0.3);
}

.pill {
  display: block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.pill:hover {
  filter: brightness(1.2);
}

.pill.pending {
  background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.25) 0 6px, transparent 6px 12px);
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

.more {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: auto;
}

/* ---------------- Painel "Meus Eventos" ---------------- */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-header-row h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section-sub {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 4px;
}

/* Resumo de Status Bento */
.status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 114px;
}

.summary-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.summary-card.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff, 0 8px 24px rgba(0, 0, 0, 0.4);
}

.summary-white {
  background: #ffffff;
  color: #0c0c0e;
  border-color: #ffffff;
}

.summary-white:hover {
  background: #f4f4f5;
}

.summary-white.active {
  box-shadow: 0 0 0 2px #0c0c0e, 0 8px 24px rgba(255, 255, 255, 0.15);
}

.summary-white .sc-label {
  color: #52525b;
}

.summary-white .sc-num {
  color: #0c0c0e;
}

.sc-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-top: 10px;
}

.sc-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.sc-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.sc-pill.warn {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border: 1px solid var(--status-pending-border);
}

.sc-pill.ok {
  background: var(--status-approved-bg);
  color: var(--status-approved-text);
  border: 1px solid var(--status-approved-border);
}

.sc-pill.bad {
  background: var(--status-rejected-bg);
  color: var(--status-rejected-text);
  border: 1px solid var(--status-rejected-border);
}

.warn-text { color: var(--status-pending-text); }
.ok-text { color: var(--status-approved-text); }
.bad-text { color: var(--status-rejected-text); }

/* Lista de Eventos */
.list {
  display: grid;
  gap: 14px;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  transition: all 0.2s ease;
  flex-wrap: wrap;
}

.item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.item .info {
  flex: 1;
  min-width: 260px;
}

.item h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 6px 0;
}

.item p {
  color: var(--text-sub);
  font-size: 13.5px;
  margin: 3px 0;
}

.item .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.status.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border: 1px solid var(--status-pending-border);
}

.status.approved {
  background: var(--status-approved-bg);
  color: var(--status-approved-text);
  border: 1px solid var(--status-approved-border);
}

.status.rejected {
  background: var(--status-rejected-bg);
  color: var(--status-rejected-text);
  border: 1px solid var(--status-rejected-border);
}

.status-msg {
  margin-top: 10px;
  font-size: 12.5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.status-msg.pending {
  background: rgba(245, 158, 11, 0.08);
  color: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-msg.approved {
  background: rgba(74, 222, 128, 0.08);
  color: #dcfce7;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-msg.rejected {
  background: rgba(248, 113, 113, 0.08);
  color: #fee2e2;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ---------------- Formulários ---------------- */
.request-bento {
  max-width: 820px;
  margin: 0 auto;
}

.panel-header {
  margin-bottom: 24px;
}

.panel-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 10px 0 6px;
}

.panel-header p {
  color: var(--text-sub);
  font-size: 14px;
}

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

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

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  background: #101013;
  border: 1px solid var(--border);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

select option {
  background: #18181c;
  color: #ffffff;
}

input[type=color] {
  padding: 3px;
  height: 44px;
  border-radius: var(--radius-sm);
}

input[type=date], input[type=datetime-local], input[type=time] {
  color-scheme: dark;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}

.form-error {
  color: var(--status-rejected-text);
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}

/* ---------------- Espaços (Venues Cards) ---------------- */
.bento-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 220px;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-sub);
  font-size: 13.5px;
  margin: 4px 0;
}

.card .actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ---------------- Linha do Tempo de Ocupação ---------------- */
.timeline {
  position: relative;
  margin-top: 16px;
  padding-left: 60px;
}

.hour {
  height: 44px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.hour span {
  position: absolute;
  left: 0;
  transform: translateY(-8px);
}

.slots {
  position: absolute;
  left: 64px;
  right: 0;
  top: 0;
  bottom: 0;
}

.slot {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12.5px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.free-note {
  color: var(--status-approved-text);
  font-weight: 600;
  margin-bottom: 12px;
}

.busy-note {
  color: var(--status-pending-text);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ---------------- Tabela de Gestão de Usuários ---------------- */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  color: var(--text-main);
}

/* ---------------- Modal ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: #141417;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
}

.detail-row {
  display: flex;
  gap: 14px;
  margin: 14px 0;
  color: var(--text-sub);
}

.detail-row b {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.share-box {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ---------------- Notificações & Feedback ---------------- */
.admin-notice-bar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-sub);
}

.notice-pill {
  background: #ffffff;
  color: #0c0c0e;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: #ffffff;
  color: #0c0c0e;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 24px;
}

/* ---------------- Topbar Actions & Notificações ---------------- */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #ffffff;
  cursor: pointer;
  transition: 0.2s;
}

.notif-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-strong);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #f87171;
  color: #0c0c0e;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

.notif-drawer {
  position: absolute;
  top: 70px;
  right: 28px;
  width: 380px;
  max-width: 92vw;
  background: #141417;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  z-index: 80;
  padding: 18px;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.notif-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.notif-unread-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  margin-left: 6px;
}

.notif-list {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}

.notif-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: 0.2s;
  cursor: pointer;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.notif-item.unread {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.notif-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.notif-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.notif-item-msg {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.45;
}

.notif-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 28px 10px;
  font-size: 13px;
}

/* ---------------- Nova Home (Hoje e Semana) ---------------- */
.home-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.home-date-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-top: 6px;
}

.home-bento-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.home-card-today {
  grid-column: 1 / 2;
}

.home-card-stats {
  grid-column: 2 / 3;
}

.home-card-week {
  grid-column: 1 / -1;
}

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

.venues-today-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.v-today-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-main);
}

.v-today-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.v-today-status-dot.free { background: #4ade80; }
.v-today-status-dot.busy { background: #fbbf24; }

.today-events-list, .week-events-list {
  display: grid;
  gap: 10px;
}

.home-event-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: 0.2s;
  flex-wrap: wrap;
}

.home-event-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
}

.home-event-pill b {
  color: #ffffff;
  font-size: 14px;
}

.empty-subtle {
  color: var(--text-muted);
  font-size: 13px;
  padding: 24px 0;
  text-align: center;
}

.pill-tag-white {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #ffffff;
  color: #0c0c0e;
}

/* ---------------- Sub-navegação do Admin ---------------- */
.admin-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.admin-subtabs button.active {
  background: #ffffff;
  color: #0c0c0e;
  border-color: #ffffff;
  font-weight: 700;
}

.field-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.request-terms-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-sub);
  font-size: 12.5px;
  margin-top: 14px;
}

/* ---------------- QR Code Modal ---------------- */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0;
}

.qr-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--radius-pill);
}

.qr-tabs button {
  background: none;
  border: 0;
  color: var(--text-sub);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.qr-tabs button.active {
  background: #ffffff;
  color: #0c0c0e;
  font-weight: 700;
}

.qr-box {
  width: 240px;
  height: 240px;
  background: #ffffff;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
  display: grid;
  place-items: center;
}

.qr-subtext {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 20px;
  line-height: 1.45;
}

/* ---------------- Utilitários de Rolagem e Responsividade ---------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
}

.table-responsive table {
  min-width: 520px;
}

.calendar-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

/* ---------------- Responsividade: Tablets e Telas Médias (max-width: 1024px) ---------------- */
@media (max-width: 1024px) {
  .topbar {
    padding: 14px 24px;
  }
  main {
    padding: 28px 20px 60px;
  }
  .bento-cards {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* ---------------- Responsividade: Tablets Pequenos e Celulares (max-width: 860px) ---------------- */
@media (max-width: 860px) {
  .topbar {
    padding: 12px 18px;
    gap: 12px;
  }

  .tabs {
    order: 3;
    width: 100%;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 4px;
    border-radius: var(--radius-pill);
    -ms-overflow-style: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs button {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 12.5px;
  }

  main {
    padding: 20px 16px 60px;
  }

  /* Bento Grids */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-hero {
    grid-column: auto;
    grid-row: auto;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .bento-hero h2 {
    font-size: 26px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions button {
    width: 100%;
    justify-content: center;
  }

  .step-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Home Responsiva */
  .home-hero-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 22px;
  }

  .home-date-title {
    font-size: 24px;
  }

  .home-cta-actions button {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .home-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-card-today,
  .home-card-stats,
  .home-card-week {
    grid-column: auto;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .home-event-pill {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .home-event-pill .ghost {
    width: 100%;
    justify-content: center;
  }

  /* Status Summary dos Meus Eventos */
  .section-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
  }

  .section-header-row button {
    width: 100%;
    justify-content: center;
  }

  .status-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .summary-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  /* Lista de Eventos */
  .item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .item .info {
    min-width: 0;
    width: 100%;
  }

  .item h3 {
    font-size: 17px;
  }

  .item .actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .item .actions button {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    padding: 10px 14px;
  }

  /* Formulários */
  .request-bento {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  input, select, textarea {
    font-size: 16px; /* Evita auto-zoom incômodo no iOS Safari */
    padding: 13px 14px;
    border-radius: 12px;
  }

  .modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
  }

  .modal-actions button {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }

  /* Calendário Administrativo */
  .calendar-bento {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .calendar-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .calendar-giant-title {
    font-size: 24px;
  }

  .calendar-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .nav-pills {
    justify-content: space-between;
    width: 100%;
  }

  .select-pill {
    width: 100%;
  }

  .calendar-controls .primary {
    width: 100%;
    justify-content: center;
  }

  .calendar-grid {
    min-width: 580px;
  }

  .day {
    min-height: 84px;
    padding: 6px;
  }

  .day .num {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .pill {
    font-size: 9px;
    padding: 2px 4px;
    margin-bottom: 2px;
  }

  /* Central de Notificações tipo Bottom Sheet no Celular */
  .notif-drawer {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 82vh;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.85);
    z-index: 100;
  }

  .notif-list {
    max-height: 60vh;
  }

  /* Modais Adaptativos */
  .overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 18px 18px;
    max-height: 90vh;
  }

  .modal h2 {
    font-size: 20px;
  }

  .detail-row {
    flex-direction: column;
    gap: 4px;
  }

  .share-box {
    flex-direction: column;
    gap: 8px;
  }

  .share-box button {
    width: 100%;
    justify-content: center;
  }

  .qr-box {
    width: 210px;
    height: 210px;
  }

  /* Sub-abas Admin */
  .admin-subtabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 4px 0;
  }

  .admin-subtabs::-webkit-scrollbar {
    display: none;
  }

  .admin-subtabs button {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* ---------------- Responsividade: Celulares Ultra-Compactos (max-width: 480px) ---------------- */
@media (max-width: 480px) {
  .topbar {
    padding: 10px 14px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-sub {
    font-size: 10.5px;
  }

  .user .avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .user .brand-text {
    display: none; /* Deixa apenas avatar e botão no cabeçalho em telas mínimas */
  }

  .user button {
    padding: 6px 12px;
    font-size: 12px;
  }

  main {
    padding: 14px 12px 60px;
  }

  .status-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sc-num {
    font-size: 24px;
  }

  .item .actions button {
    flex: 1 1 100%;
  }

  .home-date-title {
    font-size: 21px;
  }

  .venues-today-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .v-today-chip {
    width: 100%;
    justify-content: space-between;
  }

  .toast {
    width: calc(100% - 28px);
    font-size: 12.5px;
    padding: 10px 16px;
    bottom: 16px;
  }
}

