/* ========================================================
   VIENGMO.COM — SPIRITUAL & MOBILE-FIRST DESIGN SYSTEM
   Aesthetics: Deep Sacred Forest Jade, Sandalwood Cream, Imperial Gold
   ======================================================== */

:root {
  --forest: #123b2b;        /* Deep Sacred Forest Green */
  --forest-dark: #0b241a;   /* Midnight Temple Dark */
  --green: #236c49;         /* Living Nature Green */
  --green-light: #eaf3ed;   /* Morning Sage Dew */
  --gold: #c59b27;          /* Sacred Temple Gold */
  --gold-warm: #d97706;     /* Incense Amber */
  --gold-light: #fef7e6;    /* Soft Candlelight Glow */
  --cream: #fbf9f4;         /* Traditional Sandalwood / Rice Paper */
  --cream-card: #ffffff;    /* Card Surface */
  --ink: #1e2d24;           /* High Contrast Text */
  --ink-muted: #5e7065;     /* Subtext & Meta */
  --line: #dfe7e2;          /* Subtle Borders */
  --line-light: #edf2ee;    /* Inner Dividers */
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --success: #15803d;
  --success-bg: #dcfce7;
  --shadow-sm: 0 2px 8px rgba(18, 59, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 59, 43, 0.08);
  --shadow-lg: 0 16px 40px rgba(18, 59, 43, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-serif: "Playfair Display", "Cinzel", "Noto Serif", Georgia, serif;
  --font-sans: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Typography */
h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  color: var(--forest);
  line-height: 1.3;
}

h1 { font-size: clamp(26px, 4.5vw, 44px); font-weight: 700; }
h2 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

p { margin-bottom: 12px; color: var(--ink); }
p:last-child { margin-bottom: 0; }
small, .text-muted { color: var(--ink-muted); font-size: 13px; }

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--forest); }

/* Buttons & Inputs (Touch Target >= 44px) */
button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--forest); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-warm)); color: #fff; box-shadow: 0 4px 14px rgba(197, 155, 39, 0.3); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--forest); }
.btn-outline:hover { background: var(--green-light); border-color: var(--green); }
.btn-soft { background: var(--green-light); color: var(--forest); }
.btn-soft:hover { background: #d7e8dd; }
.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: #fca5a5; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(35, 108, 73, 0.15);
}

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

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--forest);
}

/* Layout Utilities */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease-out;
}
.view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.hidden { display: none !important; }

/* Top Navigation Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(18, 59, 43, 0.2);
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 14.5px;
  padding: 6px 0;
  position: relative;
}

.nav-links a.active, .nav-links a:hover {
  color: var(--forest);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  place-items: center;
  font-size: 20px;
  color: var(--forest);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: #fff;
  z-index: 45;
  padding: 16px 20px;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-light);
  font-size: 16px;
  font-weight: 500;
  color: var(--forest);
}

/* Mobile Bottom Navigation Bar (Thumb Friendly) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 40;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}

.bnav-item span.icon { font-size: 20px; line-height: 1; }
.bnav-item.active { color: var(--green); font-weight: 700; background: var(--green-light); }

/* Hero Section (Homepage) */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 46, 33, 0.88), rgba(27, 85, 60, 0.65)),
              url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=2000&q=85') center/cover;
  color: #fff;
  padding: 60px 0;
}

.hero-box {
  max-width: 660px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #e2f0e7;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 { color: #fff; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero-lead { font-size: 17px; line-height: 1.6; color: #eaf3ed; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Trust Strip */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}

.trust-item strong { display: block; font-size: 14.5px; color: var(--forest); }
.trust-item span { font-size: 12.5px; color: var(--ink-muted); }

/* Common Cards & Grid */
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.sacred-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* ========================================================
   VIRTUAL SANCTUARY (ÁN THỜ ẢO & DÂNG LỄ TƯƠNG TÁC)
   ======================================================== */
.sanctuary-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.sanctuary-altar {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #1e4534 0%, #0c1c15 80%);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid #b8860b40;
  text-align: center;
  overflow: hidden;
}

.altar-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 240px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.memorial-portrait {
  position: relative;
  width: 140px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 4px solid var(--gold);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #1e3a2b;
}

.memorial-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.altar-title {
  color: #fef3c7;
  font-size: 26px;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.altar-subtitle {
  color: #d1fae5;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Incense Burner & Animated Smoke */
.incense-burner-box {
  position: relative;
  width: 120px;
  height: 90px;
  margin: 0 auto 24px;
}

.incense-censer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 50px;
  background: linear-gradient(180deg, #c59b27, #855b14);
  border-radius: 0 0 45px 45px;
  border: 2px solid #ffd700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.incense-stick {
  position: absolute;
  bottom: 40px;
  left: 50%;
  width: 3px;
  height: 48px;
  background: #8b4513;
  transform-origin: bottom center;
}
.incense-stick.stick-1 { transform: translateX(-10px) rotate(-8deg); }
.incense-stick.stick-2 { transform: translateX(0px) rotate(0deg); }
.incense-stick.stick-3 { transform: translateX(10px) rotate(8deg); }

.incense-glow {
  position: absolute;
  top: 0;
  left: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4500;
  box-shadow: 0 0 10px #ff8c00;
  animation: emberGlow 1.5s infinite alternate;
}
@keyframes emberGlow { 0% { opacity: 0.6; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1.3); } }

/* Rising Smoke Simulation */
.smoke-particle {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(230, 230, 230, 0.4);
  border-radius: 50%;
  filter: blur(4px);
  animation: riseSmoke 3s infinite ease-out;
  pointer-events: none;
}
@keyframes riseSmoke {
  0% { transform: translate(-50%, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(calc(-50% + 15px), -40px) scale(2.5); opacity: 0.5; }
  100% { transform: translate(calc(-50% - 20px), -90px) scale(4); opacity: 0; }
}

/* Offerings Placed on Altar */
.altar-platter-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.platter-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
}

.platter-item .icon { font-size: 24px; }
.platter-item small { color: #fef3c7; display: block; font-size: 11px; }
.platter-item strong { color: #fff; font-size: 13.5px; }

/* Altar Action Buttons */
.altar-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========================================================
   MOBILE BOTTOM SHEET SYSTEM (DRAWER / POPUP)
   ======================================================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 24, 18, 0.7);
  backdrop-filter: blur(4px);
  z-index: 80;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sheet-backdrop.open { display: block; opacity: 1; }

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  z-index: 85;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 3px;
  margin: 0 auto 16px;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sheet-head h3 { font-size: 20px; color: var(--forest); }
.sheet-close-btn { font-size: 24px; color: var(--ink-muted); padding: 4px 8px; }

/* Toast Notifications */
.sacred-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  bottom: 84px;
  z-index: 100;
  background: var(--forest);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}

.sacred-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ========================================================
   ADMIN DASHBOARD ENTERPRISE SUITE STYLES
   ======================================================== */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 64px);
  background: #f4f7f5;
}

.admin-sidebar {
  width: 260px;
  background: #0d271b;
  color: #e2f0e7;
  flex: none;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 35;
}

.admin-sidebar-header {
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8da496;
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-sidebar-menu {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: #c5ded0;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-nav-item.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
  border-left-color: var(--gold);
}

.admin-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #e2f0e7;
}

.admin-badge.warn {
  background: var(--gold-warm);
  color: #fff;
}

.admin-sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #091c13;
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.admin-content-area {
  flex: 1;
  padding: 28px 32px 80px;
  min-width: 0;
  overflow-x: hidden;
}

/* Mobile Admin Tab Bar */
.admin-mobile-tabs {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  background: #0d271b;
  position: sticky;
  top: 64px;
  z-index: 30;
  -webkit-overflow-scrolling: touch;
}

.admin-mobile-tab-btn {
  flex: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #c5ded0;
  background: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.admin-mobile-tab-btn.active {
  background: #fff;
  color: var(--forest);
}

/* Admin Card & Toolbars */
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 360px;
  min-width: 220px;
}

.admin-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Admin Table */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th {
  background: #f8faf8;
  color: var(--forest);
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-light);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #fbfdfc;
}

.admin-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Status Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}
.pill-green { background: #dcfce7; color: #15803d; }
.pill-warn { background: #fef3c7; color: #b45309; }
.pill-red { background: #fee2e2; color: #b91c1c; }
.pill-gray { background: #f1f5f9; color: #475569; }

/* Admin Sub-Views */
.admin-subview {
  display: none;
  animation: fadeIn 0.2s ease-out;
}
.admin-subview.active { display: block; }

@media (max-width: 1024px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { display: none; }
  .admin-mobile-tabs { display: flex; }
  .admin-content-area { padding: 20px 16px 80px; }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .nav-links, .topbar-actions .btn-outline { display: none; }
  .menu-toggle-btn { display: grid; }
  .bottom-nav { display: grid; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  body { padding-bottom: 70px; }
}

@media (max-width: 600px) {
  .hero { min-height: 480px; padding: 40px 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .bottom-sheet { padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); }
}


/* ========================================================
   ADMIN MODAL OVERLAY & DIALOG (MOBILE-FIRST)
   ======================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 39, 27, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
}

.admin-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-box {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.admin-modal-overlay.open .admin-modal-box {
  transform: translateY(0) scale(1);
}

.admin-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fbfdfc;
  flex: none;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--forest);
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.admin-modal-close:hover {
  background: #edf3ef;
  color: var(--forest);
}

.admin-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}

.admin-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fbfdfc;
  flex: none;
}

@media (max-width: 680px) {
  .admin-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .admin-modal-box {
    max-height: 90vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transform: translateY(100%);
  }
  .admin-modal-overlay.open .admin-modal-box {
    transform: translateY(0);
  }
  .admin-modal-body {
    padding: 16px 18px;
  }
}
