/* ================================================================
   CENTRO MÉDICO SÃO DOMINGOS — ADMIN STYLES (auto-contained)
   Todas as variáveis são próprias deste arquivo — não depende
   das variáveis do style.css principal.
================================================================ */

/* ── Variáveis próprias do admin ── */
:root {
  --a-green-dark:   #1d4a32;
  --a-green-mid:    #2e6045;
  --a-green-light:  #bbd68a;
  --a-green-pale:   #eef6dc;
  --a-green-hover:  #245038;

  --a-white:   #ffffff;
  --a-off:     #f7f9f4;
  --a-gray50:  #f0f4f0;
  --a-gray100: #e4ebe4;
  --a-gray200: #ccdacc;
  --a-gray400: #7a8f7a;
  --a-gray600: #4a5c4a;
  --a-gray800: #1e2e1e;

  --a-red:     #dc2626;
  --a-red-bg:  #fee2e2;
  --a-blue:    #2563eb;
  --a-blue-bg: #dbeafe;

  --a-font:    'Lufga', 'Nunito', sans-serif;
  --a-radius:  12px;
  --a-radius-lg: 16px;
  --a-shadow-sm: 0 2px 8px rgba(29,74,50,.08);
  --a-shadow-md: 0 6px 24px rgba(29,74,50,.12);
  --a-shadow-lg: 0 16px 48px rgba(29,74,50,.18);
  --a-t: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset completo do admin (autocontido) ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--a-font);
  color: var(--a-gray800);
  background: var(--a-off);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--a-font); }
input, select, textarea { font-family: var(--a-font); color: var(--a-gray800); background: var(--a-white); }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--a-gray800); }

/* ================================================================
   LOGO IMAGES
================================================================ */
.logo-img-admin {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.logo-img-sidebar {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}

/* ================================================================
   LOGIN PAGE
================================================================ */
.login-page {
  min-height: 100vh;
  background: var(--a-off);
  display: flex;
  align-items: stretch;
  font-family: var(--a-font);
}
.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Painel esquerdo — verde */
.login-left {
  flex: 1;
  background: linear-gradient(145deg, var(--a-green-dark) 0%, var(--a-green-mid) 60%, #3a7d54 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.login-left-content {
  position: relative;
  z-index: 2;
  color: var(--a-white);
  max-width: 400px;
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.login-left-content h2 {
  font-family: var(--a-font);
  font-size: 2rem;
  font-weight: 800;
  color: var(--a-white);
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.login-left-content p {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 32px;
}
.login-features { display: flex; flex-direction: column; gap: 12px; }
.lf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.9);
  transition: var(--a-t);
}
.lf-item:hover { background: rgba(255,255,255,.16); }
.lf-item i { color: var(--a-green-light); font-size: 1rem; width: 20px; text-align: center; }

/* Círculos decorativos */
.deco-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.deco-circle.c1 { width: 320px; height: 320px; background: rgba(187,214,138,.07); top: -100px; right: -100px; }
.deco-circle.c2 { width: 200px; height: 200px; background: rgba(255,255,255,.04); bottom: 60px; right: 40px; }
.deco-circle.c3 { width: 100px; height: 100px; background: rgba(187,214,138,.1); bottom: -30px; left: 40px; }

/* Painel direito — branco */
.login-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  background: var(--a-white);
  box-shadow: -4px 0 40px rgba(29,74,50,.08);
}
.login-form-wrap { width: 100%; }
.login-header { margin-bottom: 36px; }
.login-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--a-green-dark);
  margin-bottom: 6px;
  letter-spacing: -.02em;
}
.login-header p { color: var(--a-gray400); font-size: .9rem; }

/* Form group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--a-gray600);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--a-gray200);
  border-radius: var(--a-radius);
  font-size: .92rem;
  font-family: var(--a-font);
  color: var(--a-gray800);
  background: var(--a-white);
  transition: var(--a-t);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--a-green-mid);
  box-shadow: 0 0 0 3px rgba(46,96,69,.1);
}
.form-group textarea { resize: vertical; }

.input-password { position: relative; }
.input-password input { padding-right: 46px; }
.toggle-pass {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--a-gray400);
  padding: 4px;
  transition: var(--a-t);
}
.toggle-pass:hover { color: var(--a-green-mid); }

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--a-green-mid), var(--a-green-dark));
  color: var(--a-white);
  border-radius: var(--a-radius);
  font-size: .97rem;
  font-weight: 700;
  font-family: var(--a-font);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--a-t);
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(29,74,50,.25);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,74,50,.38); }
.btn-login:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.login-error {
  background: var(--a-red-bg);
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .88rem;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.login-hint {
  margin-top: 20px;
  background: var(--a-green-pale);
  color: var(--a-green-mid);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .83rem;
  display: flex; align-items: center; gap: 8px;
}
.back-to-site {
  display: flex; align-items: center; gap: 8px;
  margin-top: 24px;
  color: var(--a-gray400);
  font-size: .88rem;
  transition: var(--a-t);
  justify-content: center;
}
.back-to-site:hover { color: var(--a-green-mid); }

/* ================================================================
   DASHBOARD LAYOUT
================================================================ */
.admin-page {
  display: flex;
  min-height: 100vh;
  background: var(--a-off);
  font-family: var(--a-font);
}

/* ── Sidebar ── */
.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--a-green-dark) 0%, var(--a-green-mid) 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  transition: var(--a-t);
  box-shadow: 4px 0 20px rgba(29,74,50,.15);
}
.sidebar-brand {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-nav { padding: 16px 0; flex: 1; overflow-y: auto; }
.sidebar-section-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  padding: 12px 20px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,.72);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--a-t);
  border-left: 3px solid transparent;
  margin: 2px 10px;
  border-radius: 0 var(--a-radius) var(--a-radius) 0;
  border-left: 3px solid transparent;
}
.sidebar-link i { width: 20px; text-align: center; font-size: 1rem; }
.sidebar-link:hover {
  background: rgba(255,255,255,.1);
  color: var(--a-white);
  border-left-color: var(--a-green-light);
}
.sidebar-link.active {
  background: rgba(255,255,255,.14);
  color: var(--a-white);
  border-left-color: var(--a-green-light);
  font-weight: 700;
}
.sidebar-badge {
  margin-left: auto;
  background: var(--a-green-light);
  color: var(--a-green-dark);
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
}
.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.admin-user { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.user-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--a-white);
  font-weight: 800;
  font-size: .9rem;
}
.user-info { display: flex; flex-direction: column; }
.user-info strong { color: var(--a-white); font-size: .88rem; }
.user-info span   { color: rgba(255,255,255,.5); font-size: .75rem; }
.btn-logout {
  width: 100%;
  padding: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: rgba(255,255,255,.72);
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--a-font);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--a-t);
}
.btn-logout:hover { background: rgba(239,68,68,.2); color: #fca5a5; border-color: rgba(239,68,68,.3); }

/* ── Main area ── */
.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
  background: var(--a-white);
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--a-shadow-sm);
  border-bottom: 1px solid var(--a-gray100);
  position: sticky; top: 0; z-index: 100;
}
.topbar-left h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--a-green-dark);
  letter-spacing: -.01em;
}
.topbar-left p  { font-size: .78rem; color: var(--a-gray400); }
.topbar-right   { display: flex; align-items: center; gap: 16px; }
.btn-view-site {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: var(--a-green-pale);
  color: var(--a-green-mid);
  border-radius: 9999px;
  font-size: .85rem;
  font-weight: 700;
  transition: var(--a-t);
  border: 1.5px solid rgba(46,96,69,.2);
}
.btn-view-site:hover { background: var(--a-green-mid); color: var(--a-white); border-color: var(--a-green-mid); }
.admin-content { padding: 32px; flex: 1; }

/* ── Tabs ── */
.admin-tabs { display: none; }
.admin-tabs.active { display: block; }

/* ── Stat cards ── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.dash-stat {
  background: var(--a-white);
  border-radius: var(--a-radius-lg);
  padding: 24px;
  border: 1px solid var(--a-gray100);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--a-shadow-sm);
  transition: var(--a-t);
}
.dash-stat:hover { transform: translateY(-2px); box-shadow: var(--a-shadow-md); }
.ds-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ds-icon.green  { background: var(--a-green-pale);  color: var(--a-green-mid); }
.ds-icon.blue   { background: #dbeafe; color: #2563eb; }
.ds-icon.orange { background: #fef3c7; color: #d97706; }
.ds-icon.purple { background: #ede9fe; color: #7c3aed; }
.ds-info { display: flex; flex-direction: column; }
.ds-num   { font-size: 1.8rem; font-weight: 800; color: var(--a-green-dark); line-height: 1; }
.ds-label { font-size: .82rem; color: var(--a-gray400); margin-top: 4px; }

/* ── Admin card (table wrapper) ── */
.admin-card {
  background: var(--a-white);
  border-radius: var(--a-radius-lg);
  border: 1px solid var(--a-gray100);
  box-shadow: var(--a-shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--a-gray100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--a-green-dark);
}
.btn-add {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--a-green-mid), var(--a-green-dark));
  color: var(--a-white);
  border-radius: 9999px;
  font-size: .85rem;
  font-weight: 700;
  font-family: var(--a-font);
  transition: var(--a-t);
  box-shadow: 0 3px 12px rgba(29,74,50,.22);
}
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(29,74,50,.35); }

/* ── Table ── */
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th {
  padding: 12px 16px;
  text-align: left;
  background: var(--a-gray50);
  color: var(--a-gray600);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--a-gray100);
}
.admin-table td {
  padding: 14px 16px;
  color: var(--a-gray600);
  border-bottom: 1px solid var(--a-gray50);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f7fbf7; }
.admin-table td strong { color: var(--a-gray800); }
.loading-cell {
  text-align: center;
  padding: 32px;
  color: var(--a-gray400);
  font-size: .9rem;
}

.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-status.active   { background: #d1fae5; color: #065f46; }
.badge-status.inactive { background: var(--a-gray50); color: var(--a-gray400); border: 1px solid var(--a-gray100); }

.table-actions { display: flex; gap: 6px; }
.btn-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: var(--a-t);
  font-family: var(--a-font);
}
.btn-icon.edit   { background: var(--a-blue-bg); color: var(--a-blue); }
.btn-icon.delete { background: var(--a-red-bg);  color: var(--a-red);  }
.btn-icon.toggle { background: var(--a-green-pale); color: var(--a-green-mid); }
.btn-icon:hover  { transform: scale(1.12); }

/* ── Search ── */
.admin-search { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-input { position: relative; flex: 1; min-width: 200px; }
.search-input i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--a-gray400);
  font-size: .9rem;
}
.search-input input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid var(--a-gray200);
  border-radius: var(--a-radius);
  font-size: .88rem;
  font-family: var(--a-font);
  color: var(--a-gray800);
  background: var(--a-white);
  transition: var(--a-t);
  outline: none;
}
.search-input input:focus {
  border-color: var(--a-green-mid);
  box-shadow: 0 0 0 3px rgba(46,96,69,.1);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: var(--a-t);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--a-white);
  border-radius: var(--a-radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  transform: scale(.96) translateY(18px);
  transition: var(--a-t);
  box-shadow: var(--a-shadow-lg);
  border: 1px solid var(--a-gray100);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--a-gray100);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--a-green-dark);
}
.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--a-gray50);
  color: var(--a-gray400);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  transition: var(--a-t);
  font-family: var(--a-font);
}
.modal-close:hover { background: var(--a-red-bg); color: var(--a-red); }
.modal-body   { padding: 28px; }
.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--a-gray100);
  display: flex; justify-content: flex-end; gap: 12px;
}
.btn-cancel {
  padding: 10px 22px;
  background: var(--a-gray50);
  color: var(--a-gray600);
  border-radius: 9999px;
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--a-font);
  border: 1.5px solid var(--a-gray200);
  transition: var(--a-t);
}
.btn-cancel:hover { background: var(--a-gray100); }
.btn-save {
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--a-green-mid), var(--a-green-dark));
  color: var(--a-white);
  border-radius: 9999px;
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--a-font);
  display: flex; align-items: center; gap: 8px;
  transition: var(--a-t);
  box-shadow: 0 3px 12px rgba(29,74,50,.22);
}
.btn-save:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,74,50,.35); }

/* ── Toast ── */
.toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--a-white);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--a-shadow-lg);
  border-left: 4px solid var(--a-green-mid);
  display: flex; align-items: center; gap: 12px;
  min-width: 280px;
  animation: toastIn .3s var(--a-t) both;
  font-size: .9rem;
  font-family: var(--a-font);
  color: var(--a-gray800);
}
.toast.error { border-left-color: var(--a-red); }
.toast.success i { color: var(--a-green-mid); }
.toast.error   i { color: var(--a-red); }
@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ── Confirm dialog ── */
.confirm-dialog {
  background: var(--a-white);
  border-radius: var(--a-radius-lg);
  padding: 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--a-shadow-lg);
  border: 1px solid var(--a-gray100);
}
.confirm-dialog .confirm-icon {
  width: 60px; height: 60px;
  background: var(--a-red-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--a-red);
  margin: 0 auto 20px;
}
.confirm-dialog h4 { font-size: 1.1rem; font-weight: 700; color: var(--a-gray800); margin-bottom: 10px; }
.confirm-dialog p  { font-size: .9rem; color: var(--a-gray400); margin-bottom: 24px; line-height: 1.6; }
.confirm-btns { display: flex; gap: 12px; justify-content: center; }
.btn-confirm-yes {
  padding: 10px 24px;
  background: var(--a-red);
  color: var(--a-white);
  border-radius: 9999px;
  font-weight: 700;
  font-size: .9rem;
  font-family: var(--a-font);
  transition: var(--a-t);
  box-shadow: 0 3px 10px rgba(220,38,38,.25);
}
.btn-confirm-yes:hover { background: #b91c1c; transform: translateY(-1px); }

/* ── Carrossel admin ── */
.slide-preview {
  border-radius: var(--a-radius);
  overflow: hidden;
  border: 2px solid var(--a-gray100);
  margin-bottom: 16px;
  transition: var(--a-t);
}
.slide-preview:hover { border-color: var(--a-green-mid); box-shadow: var(--a-shadow-sm); }
.slide-thumb {
  height: 120px;
  background: linear-gradient(135deg, var(--a-green-dark), var(--a-green-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--a-white);
  position: relative;
  overflow: hidden;
}
.slide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slide-info { padding: 14px; background: var(--a-white); }
.slide-info h4 { font-size: .9rem; font-weight: 700; color: var(--a-gray800); margin-bottom: 4px; }
.slide-info p  { font-size: .8rem; color: var(--a-gray400); }
.slide-info-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--a-gray100);
}

/* ── Photo upload ── */
.photo-upload-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--a-gray50);
  border: 2px dashed var(--a-gray200);
  border-radius: var(--a-radius);
  transition: var(--a-t);
}
.photo-upload-wrap:hover { border-color: var(--a-green-mid); background: var(--a-green-pale); }
.photo-preview {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--a-green-pale);
  border: 3px solid var(--a-white);
  box-shadow: var(--a-shadow-sm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--a-green-mid);
  font-size: 1.8rem;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.photo-upload-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.btn-upload {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--a-green-mid), var(--a-green-dark));
  color: var(--a-white) !important;
  border-radius: 9999px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--a-t);
  width: fit-content;
  font-family: var(--a-font);
}
.btn-upload:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29,74,50,.3); }
.upload-hint {
  font-size: .78rem;
  color: var(--a-gray400);
  display: flex; align-items: center; gap: 6px;
  margin: 0;
}
.upload-hint i { color: var(--a-green-mid); }
.btn-remove-photo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--a-red-bg);
  color: var(--a-red);
  border-radius: 9999px;
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--a-font);
  transition: var(--a-t);
  width: fit-content;
}
.btn-remove-photo:hover { background: #fecaca; }

/* ── Config form ── */
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.config-section {
  background: var(--a-white);
  border-radius: var(--a-radius-lg);
  padding: 28px;
  border: 1px solid var(--a-gray100);
  box-shadow: var(--a-shadow-sm);
  margin-bottom: 24px;
}
.config-section h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--a-green-dark);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--a-green-pale);
}
.config-section h3 i { color: var(--a-green-mid); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .config-grid { grid-template-columns: 1fr; }
  .login-container { flex-direction: column; }
  .login-left { padding: 40px; }
  .login-right { width: 100%; padding: 40px; }
  .admin-topbar { padding: 0 20px; }
  .admin-content { padding: 20px; }
}

@media (max-width: 600px) {
  .dash-stats { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { width: 100%; padding: 32px 24px; }
  .modal-body { padding: 20px; }
  .modal-header { padding: 16px 20px; }
  .modal-footer { padding: 14px 20px; }
}
