/* ── CSS Variables ──────────────────────────────────────────────────────────── */
:root {
  --orange:        #F97316;
  --orange-dark:   #EA580C;
  --orange-light:  #FED7AA;
  --orange-bg:     #FFF7ED;
  --pink:          #EC4899;
  --pink-dark:     #DB2777;
  --pink-light:    #FCE7F3;
  --green:         #10B981;
  --green-light:   #D1FAE5;
  --red:           #EF4444;
  --red-light:     #FEE2E2;
  --blue:          #3B82F6;
  --blue-light:    #DBEAFE;
  --text-dark:     #1F2937;
  --text-medium:   #6B7280;
  --text-light:    #9CA3AF;
  --bg:            #FFF7ED;
  --white:         #FFFFFF;
  --border:        #E5E7EB;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 12px rgba(0,0,0,.10);
  --shadow-lg:     0 10px 30px rgba(0,0,0,.12);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-full:   9999px;
  --transition:    .2s ease;
  --font:          'Nunito', sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }

/* ── Flash Messages ─────────────────────────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: min(90vw, 420px);
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  animation: slideIn .3s ease;
}

.flash--success { background: var(--green-light); color: #065F46; border-left: 4px solid var(--green); }
.flash--error   { background: var(--red-light);   color: #991B1B; border-left: 4px solid var(--red); }
.flash--info    { background: var(--blue-light);  color: #1E40AF; border-left: 4px solid var(--blue); }

.flash__close {
  background: none; border: none;
  font-size: 1rem; opacity: .6;
  transition: opacity var(--transition);
  padding: 0 .25rem;
}
.flash__close:hover { opacity: 1; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer__credit {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: .5rem;
}

.footer-admin-btn {
  margin-bottom: 1.5rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--orange-dark), #C2410C);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249,115,22,.4);
}

.btn--secondary {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: var(--white);
}
.btn--secondary:hover {
  background: linear-gradient(135deg, var(--pink-dark), #BE185D);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(236,72,153,.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text-medium);
  border-color: var(--border);
}
.btn--ghost:hover {
  background: var(--white);
  border-color: var(--orange);
  color: var(--orange);
}

.btn--danger {
  background: var(--red);
  color: var(--white);
}
.btn--danger:hover { background: #DC2626; }

.btn--sm  { padding: .5rem 1rem; font-size: .85rem; }
.btn--full { width: 100%; }
.mt-lg { margin-top: 1.5rem; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-input {
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.form-input--sm { padding: .5rem .75rem; font-size: .875rem; }

.form-textarea { resize: vertical; min-height: 100px; }

.char-count {
  font-size: .75rem;
  color: var(--text-light);
  text-align: right;
}

.input-password-wrap {
  position: relative;
  display: flex;
}

.input-password-wrap .form-input { padding-right: 3rem; }

.toggle-pw {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: .6;
  transition: opacity var(--transition);
}
.toggle-pw:hover { opacity: 1; }

/* ── HOME PAGE ───────────────────────────────────────────────────────────────── */
.page-home { background: var(--bg); }

.hero {
  background: linear-gradient(135deg, #FF8A3D 0%, #FF5D8F 100%);
  color: var(--white);
  padding: 3rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle at top, rgba(255,255,255,.18), transparent 35%),
              url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__inner { position: relative; max-width: 900px; margin: 0 auto; }

.hero__logo {
  width: 132px;
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,.15);
  padding: .5rem;
}

.hero__title {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 900;
  margin-bottom: .5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.hero__sub {
  font-size: clamp(.95rem, 3vw, 1.2rem);
  opacity: .9;
  font-weight: 500;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 900px;
  margin: -2rem auto 0;
  position: relative;
}

.howto-section {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem 1.5rem 2rem;
  background: rgba(255,255,255,.96);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.howto-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
}

.section-label {
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.howto-title {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 800;
  max-width: 620px;
  color: var(--text-dark);
}

.howto-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .howto-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.howto-card {
  background: var(--white);
  border: 1px solid rgba(226,232,240,.8);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
  min-height: 180px;
}

.howto-step {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  margin-bottom: .85rem;
}

.howto-card h3 {
  margin-bottom: .5rem;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.howto-card p {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-medium);
}

@media (min-width: 700px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
}

.bento-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border-top: 4px solid transparent;
}

.bento-card--decisao { border-top-color: var(--orange); }
.bento-card--oracao  { border-top-color: var(--pink); }

.bento-card__header { margin-bottom: 1.5rem; text-align: center; }

.bento-card__icon  { font-size: 2rem; display: block; margin-bottom: .5rem; }
.bento-card__title { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); }
.bento-card__subtitle { font-size: .875rem; color: var(--text-medium); margin-top: .25rem; }

/* Decision Buttons */
.decision-btns {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.decision-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: all var(--transition);
}

.decision-btn:hover {
  border-color: var(--orange);
  background: var(--orange-bg);
}

.decision-btn.active {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange-bg), var(--pink-light));
  color: var(--orange-dark);
  box-shadow: 0 2px 10px rgba(249,115,22,.2);
}

.decision-btn__icon { font-size: 1.25rem; flex-shrink: 0; }

/* ── LOGIN PAGE ──────────────────────────────────────────────────────────────── */
.page-login {
  background: linear-gradient(135deg, var(--orange-bg) 0%, var(--pink-light) 100%);
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 80vh;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.login-card__header { text-align: center; margin-bottom: 2rem; }
.login-card__icon   { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.login-card__title  { font-size: 1.5rem; font-weight: 900; }
.login-card__sub    { font-size: .875rem; color: var(--text-medium); margin-top: .25rem; }

.login-back {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--text-medium);
  transition: color var(--transition);
}
.login-back:hover { color: var(--orange); }

/* ── ADMIN PAGE ──────────────────────────────────────────────────────────────── */
.page-admin, .page-audit { background: #F3F4F6; }

.admin-main, .audit-main {
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #FEF3C7 0%, #FEE2E2 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-topbar__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.admin-topbar__left {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}

.admin-topbar__title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-dark);
}

.admin-topbar__count {
  font-size: .8rem;
  color: var(--text-medium);
  background: var(--orange-light);
  color: var(--orange-dark);
  padding: .2rem .6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.admin-topbar__actions { display: flex; gap: .5rem; }
.admin-topbar__left    { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* Status Nav */
.status-nav {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 700;
  background: var(--white);
  color: var(--text-medium);
  border: 2px solid var(--border);
  white-space: nowrap;
  transition: all var(--transition);
}

.status-pill:hover            { border-color: var(--orange); color: var(--orange); }
.status-pill--active          { background: var(--orange); color: var(--white); border-color: var(--orange); }
.status-pill--novo:hover      { border-color: var(--orange); color: var(--orange); }
.status-pill--em_andamento:hover { border-color: var(--pink); color: var(--pink); }
.status-pill--finalizado:hover   { border-color: var(--green); color: var(--green); }

.badge {
  background: rgba(0,0,0,.1);
  border-radius: var(--radius-full);
  padding: .1rem .4rem;
  font-size: .75rem;
}

/* Filters Panel */
.filters-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.filters-panel__toggle {
  font-weight: 700;
  color: var(--text-medium);
  cursor: pointer;
  font-size: .9rem;
  list-style: none;
}
.filters-panel__toggle::-webkit-details-marker { display: none; }

.filters-form { margin-top: 1rem; }

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: .75rem;
}

.filters-actions { display: flex; gap: .5rem; }

/* Prayer Grid */
.prayer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Prayer Card */
.prayer-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 5px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.prayer-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.prayer-card--novo        { border-left-color: var(--orange); }
.prayer-card--em_andamento { border-left-color: var(--pink); }
.prayer-card--finalizado   { border-left-color: var(--green); }

.prayer-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1rem .5rem;
}

.prayer-card__head-left { flex: 1; min-width: 0; }
.prayer-card__head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
  flex-shrink: 0;
}

.prayer-card__nome {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--orange-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prayer-card__tel-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .3rem;
}

.prayer-card__tel {
  font-size: .85rem;
  color: var(--text-medium);
  font-weight: 600;
}

.prayer-card__tel-btns { display: flex; gap: .35rem; }

.circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: bold;
  border: none;
  transition: all var(--transition);
  flex-shrink: 0;
}

.circle-btn--call {
  background: var(--blue-light);
  color: var(--blue);
}
.circle-btn--call:hover {
  background: var(--blue);
  color: var(--white);
}

.circle-btn--whatsapp {
  background: #DCFCE7;
  color: #15803D;
}
.circle-btn--whatsapp:hover {
  background: #16A34A;
  color: var(--white);
}

.prayer-card__cidade {
  font-size: .75rem;
  color: var(--text-light);
  text-align: right;
  font-weight: 600;
}

/* Status Badge */
.status-badge {
  font-size: .7rem;
  font-weight: 800;
  padding: .2rem .5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.status-badge--novo         { background: var(--orange-light); color: var(--orange-dark); }
.status-badge--em_andamento { background: var(--pink-light);   color: var(--pink-dark); }
.status-badge--finalizado   { background: var(--green-light);  color: #065F46; }

/* Card Body */
.prayer-card__body { padding: .5rem 1rem 1rem; flex: 1; }

.prayer-card__para-quem {
  font-size: .8rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: .05em;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.prayer-card__para-quem::before {
  content: '🙏';
  font-size: .9rem;
}

.prayer-card__motivo {
  font-size: .9rem;
  color: var(--text-dark);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.prayer-card__footer {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: #FAFAFA;
}

.prayer-card__data {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 600;
}

.prayer-card__controls {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.select-status {
  padding: .35rem .6rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--transition);
  flex: 1;
  min-width: 100px;
}
.select-status:focus { outline: none; border-color: var(--orange); }

/* Toggle */
.toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
}

.toggle__input { display: none; }

.toggle__slider {
  width: 38px;
  height: 22px;
  background: var(--border);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}

.toggle__slider::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.toggle__input:checked + .toggle__slider {
  background: var(--green);
}

.toggle__input:checked + .toggle__slider::after {
  transform: translateX(16px);
}

.toggle__label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-medium);
  white-space: nowrap;
}

/* Share & Delete buttons */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  background: #DCFCE7;
  color: #15803D;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 700;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-share:hover { background: #16A34A; color: var(--white); }

.btn-delete {
  background: none;
  border: none;
  font-size: 1rem;
  opacity: .5;
  transition: opacity var(--transition);
  padding: .2rem .4rem;
  border-radius: var(--radius-sm);
}
.btn-delete:hover { opacity: 1; background: var(--red-light); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.page-btn {
  padding: .5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: .875rem;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--orange); color: var(--orange); }

.page-info {
  font-size: .875rem;
  color: var(--text-medium);
  font-weight: 600;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-medium);
}
.empty-state__icon { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 1rem;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: min(100%, 560px);
  box-shadow: var(--shadow-lg);
}

.modal textarea.form-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  background: #F8FAFC;
  border-color: #D1D5DB;
  letter-spacing: .02em;
  line-height: 1.65;
}

.modal__title { font-size: 1.1rem; font-weight: 800; margin-bottom: .75rem; }
.modal__text  { color: var(--text-medium); margin-bottom: 1rem; line-height: 1.6; }
.share-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--text-dark);
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.share-notice {
  color: var(--text-medium);
  margin-bottom: .5rem;
  font-size: .95rem;
}
.share-verse {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.modal__actions { display: flex; gap: .75rem; justify-content: flex-end; }

/* ── AUDIT PAGE ──────────────────────────────────────────────────────────────── */
.periodo-selector {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.periodo-btn {
  padding: .5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 2px solid var(--border);
  font-weight: 700;
  font-size: .85rem;
  color: var(--text-medium);
  transition: all var(--transition);
}
.periodo-btn:hover       { border-color: var(--orange); color: var(--orange); }
.periodo-btn--active     { background: var(--orange); color: var(--white); border-color: var(--orange); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) { .summary-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .summary-grid { grid-template-columns: repeat(6, 1fr); } }

.summary-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.summary-card__val {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.summary-card__lbl {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-medium);
  text-align: center;
}

.summary-card--orange .summary-card__val { color: var(--orange); }
.summary-card--pink   .summary-card__val { color: var(--pink); }
.summary-card--green  .summary-card__val { color: var(--green); }
.summary-card--gray   .summary-card__val { color: var(--text-medium); }

.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) { .charts-grid { grid-template-columns: repeat(2, 1fr); } }

.chart-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.chart-card__title {
  font-size: .9rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Logs Table */
.logs-section {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.logs-section__title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.table-wrap { overflow-x: auto; }

.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}

.audit-table th {
  text-align: left;
  padding: .6rem .75rem;
  font-weight: 800;
  color: var(--text-medium);
  background: #F9FAFB;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.audit-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  vertical-align: top;
}

.audit-table tbody tr:hover { background: var(--orange-bg); }

.acao-badge {
  display: inline-block;
  padding: .15rem .5rem;
  background: var(--orange-light);
  color: var(--orange-dark);
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.nowrap { white-space: nowrap; }
.text-center { text-align: center; padding: 2rem; color: var(--text-medium); }

/* ── Error Pages ─────────────────────────────────────────────────────────────── */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 60vh;
}

.error-box {
  text-align: center;
  max-width: 400px;
}

.error-box__code {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.error-box__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: .5rem 0 1rem;
}
