@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --pink: #f13e93;
  --pink-dark: #cc1d6c;
  --pink-light: #fff0f6;
  --pink-glow: rgba(241, 62, 147, 0.28);
  --deep: #a81c5a;
  --soft: #ffeaf3;
  --cream: #fff4ca;
  --ink: #231920;
  --muted: #6f5f68;
  --paper: #f8f6f9;
  --surface: #ffffff;
  --line: rgba(70, 42, 58, 0.08);
  --line-strong: rgba(70, 42, 58, 0.15);
  --shadow-sm: 0 2px 8px rgba(50, 20, 35, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(50, 20, 35, 0.08), 0 2px 6px -1px rgba(50, 20, 35, 0.04);
  --shadow-lg: 0 20px 40px -8px rgba(70, 25, 50, 0.12), 0 4px 12px -2px rgba(50, 20, 35, 0.05);
  --font: "Prompt", "Leelawadee UI", "Noto Sans Thai", -apple-system, sans-serif;
  --font-display: "Prompt", "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.muted { color: var(--muted); line-height: 1.7; }
.kicker {
  margin: 0;
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Base Buttons */
.button {
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: 0;
}
.button:hover {
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(0);
}
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  box-shadow: 0 8px 20px -3px var(--pink-glow);
}
.button.primary:hover {
  box-shadow: 0 12px 26px -3px rgba(241, 62, 147, 0.42);
}
.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover {
  background: #faf7f9;
  border-color: var(--pink);
  color: var(--pink-dark);
}
.button.danger {
  color: #d11e58;
  background: #fff0f4;
  border: 1px solid rgba(209, 30, 88, 0.15);
}
.button.danger:hover {
  background: #ffe3ec;
}
.button.wide { width: 100%; }

/* Alerts */
.alert {
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}
.alert.error {
  color: #a9234e;
  background: #fff0f5;
  border: 1px solid rgba(169, 35, 78, 0.2);
}
.alert.success {
  color: #176b4b;
  background: #e6f9f0;
  border: 1px solid rgba(23, 107, 75, 0.2);
}

/* Auth / Login Page */
.auth-page {
  min-height: 100vh;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 10%, #ffeaf4 0%, transparent 45%),
              radial-gradient(circle at 90% 90%, #fff4d9 0%, transparent 50%),
              #f8f4f6;
}
.auth-shell {
  width: min(1080px, 100%);
  min-height: 600px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 36px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.auth-art {
  position: relative;
  min-height: 560px;
  padding: 54px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(circle at 75% 25%, #fff6c7, transparent 38%),
              linear-gradient(145deg, #ffd1e4, #fff0f6 60%, #fff2bf);
}
.auth-art::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -60px;
  top: 40px;
  border: 1px solid rgba(188, 33, 103, 0.15);
  border-radius: 50%;
}
.auth-art img {
  position: absolute;
  z-index: 2;
  right: -2%;
  bottom: -6%;
  width: 68%;
  height: 90%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 24px rgba(120, 35, 75, 0.15));
}
.auth-art>div { position: relative; z-index: 3; max-width: 340px; }
.auth-art small { color: var(--deep); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }
.auth-art h1 { margin: 10px 0; font-size: 46px; line-height: 1.12; letter-spacing: -0.04em; color: var(--ink); }
.auth-art p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-bubble {
  position: absolute;
  z-index: 4;
  right: 36px;
  top: 40px;
  padding: 10px 18px;
  border-radius: 18px 18px 4px 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(104, 43, 71, 0.12);
  font-weight: 700;
  font-size: 13px;
  color: var(--pink-dark);
  transform: rotate(3deg);
}
.auth-card {
  align-self: center;
  padding: 50px clamp(32px, 5vw, 68px);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: var(--pink); }
.auth-card h2 {
  margin: 8px 0 8px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.auth-card .muted { font-size: 14px; }

/* Pretty Forms */
.pretty-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.pretty-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.pretty-form label>small {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
}
.pretty-form input,
.pretty-form textarea,
.pretty-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
}
.pretty-form input:focus,
.pretty-form textarea:focus,
.pretty-form select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-glow);
}

/* ========================================================
   Admin Dashboard Shell & Cute Royal Pink Phang Theme
   ======================================================== */
.admin-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff5fa 0%, #fcf4f8 45%, #f9f3f7 100%);
}
.admin-shell {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}

/* Sidebar — Rich Magenta-Plum Gradient with Golden Thai Temple & Lotus Footer */
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(180deg, #aa0f5e 0%, #860c4c 52%, #5e0836 100%);
  box-shadow: 6px 0 32px rgba(105, 10, 60, 0.16);
  z-index: 20;
  overflow: hidden;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 8px;
  position: relative;
  z-index: 2;
}
.brand-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #ffe799, #f59e0b 60%, #fde68a);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff6fa, #ffe0ef);
  padding: 2px;
}
.admin-brand strong {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.admin-brand small {
  display: block;
  margin-top: 3px;
  color: #ffd3ea;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.brand-swoosh {
  height: 4px;
  margin: 4px 10px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ffd56b 35%, #fff0b3 65%, transparent);
  opacity: 0.65;
  position: relative;
  z-index: 2;
}

/* Profile Card inside Sidebar */
.admin-user {
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(34, 4, 21, 0.34);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  z-index: 2;
}
.user-avatar-circle {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffe3f1;
  display: grid;
  place-items: center;
}
.user-avatar-circle svg {
  width: 20px;
  height: 20px;
}
.user-info-text {
  min-width: 0;
  flex: 1;
}
.admin-user strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-user small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 224, 240, 0.78);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Navigation */
.admin-nav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}
.admin-nav a {
  padding: 11px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  color: rgba(255, 238, 247, 0.88);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}
.admin-nav a .nav-ico {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #ffc2e2;
  transition: transform 0.2s ease, color 0.2s ease;
}
.admin-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.admin-nav a:hover .nav-ico {
  transform: scale(1.1);
  color: #fff;
}
.admin-nav a.active {
  color: #fff;
  background: linear-gradient(180deg, #ff63b1 0%, #ef2384 58%, #d71673 100%);
  box-shadow: 0 6px 18px rgba(241, 35, 132, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.55);
  font-weight: 700;
}
.admin-nav a.active .nav-ico {
  color: #fff;
}
.nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe082;
  color: #7c1046;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding-top: 14px;
  padding-bottom: 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 2;
}
.sidebar-bottom a,
.sidebar-bottom button {
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  border: 0;
  color: rgba(255, 232, 244, 0.88);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: all 0.2s;
}
.sidebar-bottom .nav-ico {
  width: 17px;
  height: 17px;
  color: #ffc2e2;
}
.sidebar-bottom a:hover,
.sidebar-bottom button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.sidebar-bottom form { margin: 0; }

/* Sidebar Decorative Temple & Lotus Artwork */
.sidebar-decor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  line-height: 0;
}
.sidebar-decor svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Main Content Area */
.admin-main {
  min-width: 0;
  padding: 0 0 64px;
}

/* Scenic Watercolor Temple Header Banner */
.admin-top-banner {
  position: relative;
  padding: 22px clamp(20px, 3vw, 38px) 20px;
  background-color: #fdf5f9;
  background-image:
    linear-gradient(90deg, rgba(253, 245, 249, 0.96) 0%, rgba(253, 245, 249, 0.72) 34%, rgba(253, 245, 249, 0.12) 60%, rgba(253, 245, 249, 0.45) 100%),
    linear-gradient(180deg, rgba(253, 245, 249, 0.05) 0%, rgba(253, 245, 249, 0.85) 100%),
    url('/admin/assets/header-temple-bg.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  border-bottom: 1px solid rgba(241, 62, 147, 0.08);
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.top-crumb {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-crumb span {
  opacity: 0.6;
}
.top-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-title-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe2f0, #fff);
  border: 1px solid rgba(241, 62, 147, 0.2);
  color: var(--pink);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(241, 62, 147, 0.12);
}
.top-title-icon svg {
  width: 22px;
  height: 22px;
}
.admin-top h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
}
.top-subtitle {
  margin: 3px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.admin-content-body {
  padding: 20px clamp(20px, 3vw, 38px) 0;
}

.top-status-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Status Pill Badge in Top Bar */
.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.status-pill-badge.online {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.status-pill-badge.online:hover {
  background: #bbf7d0;
}
.status-pill-badge.maintenance {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid rgba(234, 88, 12, 0.28);
}
.status-pill-badge.maintenance:hover {
  background: #fed7aa;
}

.pulse-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.pulse-indicator.green {
  background: #16a34a;
  animation: pulseGreen 2s infinite;
}
.pulse-indicator.orange {
  background: #ea580c;
  animation: pulseOrange 2s infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@keyframes pulseOrange {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.top-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(70, 42, 58, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}
.top-quick-btn svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.top-quick-btn:hover {
  color: var(--pink-dark);
  border-color: var(--pink);
  background: #fff;
}
.top-quick-btn:hover svg {
  color: var(--pink);
}

.top-bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(70, 42, 58, 0.12);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}
.top-bell-btn svg {
  width: 18px;
  height: 18px;
}
.top-bell-btn:hover {
  color: var(--pink);
  border-color: var(--pink);
  transform: translateY(-1px);
}
.bell-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}

.admin-avatar-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff4ba3, #d71673);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(241, 62, 147, 0.32);
  transition: all 0.2s;
}
.admin-avatar-pill svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}
.admin-avatar-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(241, 62, 147, 0.42);
}

/* Toast Notifications */
.toast-stack {
  position: fixed;
  z-index: 120;
  right: 24px;
  top: 24px;
  display: grid;
  gap: 10px;
}
.toast {
  min-width: 300px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast::before {
  content: "✦";
  color: var(--pink);
  font-size: 16px;
}
.toast.error {
  color: #a9234e;
  background: #fff0f5;
  border-color: rgba(169, 35, 78, 0.2);
}
.toast.error::before {
  content: "⚠";
  color: #a9234e;
}
.toast.hide {
  opacity: 0;
  transform: translateY(-12px);
}

/* ========================================================
   Overview V2: 4 Vibrant Pastel Stat Cards
   ======================================================== */
.stats-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px -6px rgba(90, 30, 62, 0.08), 0 2px 6px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -8px rgba(130, 35, 85, 0.14);
}
.stat-icon-circle {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  z-index: 2;
}
.stat-icon-circle svg {
  width: 26px;
  height: 26px;
}
.stat-meta {
  position: relative;
  z-index: 2;
}
.stat-meta strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-meta span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.stat-art {
  position: absolute;
  right: 8px;
  bottom: -4px;
  width: 82px;
  height: 64px;
  pointer-events: none;
  z-index: 1;
}

/* Color Themes for 4 Stat Cards */
.stat-pink {
  background: linear-gradient(180deg, #ffffff 48%, #ffe4f1 100%);
  border-color: rgba(241, 62, 147, 0.16);
}
.stat-pink .stat-icon-circle {
  background: linear-gradient(135deg, #ff54a7, #dc1776);
  box-shadow: 0 8px 18px rgba(241, 62, 147, 0.34);
}

.stat-green {
  background: linear-gradient(180deg, #ffffff 48%, #dffce8 100%);
  border-color: rgba(34, 197, 94, 0.2);
}
.stat-green .stat-icon-circle {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.3);
}

.stat-gold {
  background: linear-gradient(180deg, #ffffff 48%, #fff0cc 100%);
  border-color: rgba(245, 158, 11, 0.22);
}
.stat-gold .stat-icon-circle {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.3);
}

.stat-purple {
  background: linear-gradient(180deg, #ffffff 48%, #f1e4ff 100%);
  border-color: rgba(168, 85, 247, 0.2);
}
.stat-purple .stat-icon-circle {
  background: linear-gradient(135deg, #c084fc, #9333ea);
  box-shadow: 0 8px 18px rgba(147, 51, 234, 0.3);
}

/* ========================================================
   Overview V2: Hero QUICK START Welcome Banner
   ======================================================== */
.welcome-v2 {
  position: relative;
  margin-top: 20px;
  padding: 34px 36px 38px;
  min-height: 248px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 249, 200, 0.92) 0%, transparent 44%),
    radial-gradient(circle at 14% 18%, rgba(255, 200, 229, 0.65) 0%, transparent 52%),
    linear-gradient(110deg, #ffd6ea 0%, #fff2f8 46%, #fffbe8 80%, #ffe6f2 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px -10px rgba(170, 30, 95, 0.14);
}
.welcome-copy {
  position: relative;
  z-index: 3;
}
.qs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4ca4, #d91674);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 16px rgba(241, 62, 147, 0.34);
}
.welcome-copy h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #2b1523;
  line-height: 1.15;
}
.welcome-copy p {
  margin: 0;
  color: #67505e;
  font-size: 14px;
  font-weight: 500;
}

.qs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.qs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, #ff56a8 0%, #e01778 100%);
  box-shadow: 0 8px 20px rgba(235, 32, 128, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: all 0.22s ease;
}
.qs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(235, 32, 128, 0.48);
}
.qs-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(241, 62, 147, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: #3a2331;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(95, 25, 62, 0.06);
  transition: all 0.2s ease;
}
.qs-btn-white svg {
  width: 16px;
  height: 16px;
  color: var(--pink);
}
.qs-btn-white:hover {
  background: #fff;
  border-color: var(--pink);
  color: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(241, 62, 147, 0.16);
}

.welcome-mascot-zone {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 190px;
}
.welcome-mascot-img {
  width: 215px;
  height: 215px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(135, 28, 82, 0.2));
  margin-bottom: -24px;
  animation: mascotBob 4.5s ease-in-out infinite;
}
@keyframes mascotBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.welcome-brand-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: 6px;
}
.crest-lotus {
  width: 68px;
  height: 36px;
  margin-bottom: 2px;
}
.welcome-brand-crest strong {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(135deg, #e01678, #f43f91, #b81062);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.welcome-brand-crest small {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b91f66;
}
.welcome-wave-decor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 58px;
  pointer-events: none;
  z-index: 2;
}

/* ========================================================
   Overview V2: Bottom 3-Column Dashboard Widgets
   ======================================================== */
.dashboard-widgets {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 0.92fr;
  gap: 18px;
}
.widget-card {
  background: #fff;
  border: 1px solid rgba(241, 62, 147, 0.11);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 10px 28px -8px rgba(85, 28, 58, 0.08);
  display: flex;
  flex-direction: column;
}
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.widget-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-head h3 small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.w-ico {
  font-size: 16px;
}
.chart-today-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4ca4, #dd1776);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(241, 62, 147, 0.28);
  white-space: nowrap;
}
.widget-more-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--pink);
  white-space: nowrap;
}
.widget-more-link:hover {
  color: var(--pink-dark);
  text-decoration: underline;
}

/* Usage Chart SVG */
.chart-canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}
.usage-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.svg-axis-label {
  fill: #846f7b;
  font-size: 9.5px;
  font-weight: 600;
  font-family: var(--font);
}

/* Recent Content List */
.recent-list {
  display: grid;
  gap: 10px;
  flex: 1;
}
.recent-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(70, 42, 58, 0.06);
  background: #fffbfd;
  transition: all 0.2s ease;
}
.recent-item:hover {
  border-color: rgba(241, 62, 147, 0.28);
  background: #fff4f9;
  transform: translateX(2px);
}
.recent-thumb {
  width: 58px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
}
.recent-info {
  min-width: 0;
}
.recent-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-info small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.recent-badge {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.recent-badge.badge-prod {
  background: #dcfce7;
  color: #15803d;
}
.recent-badge.badge-news {
  background: #e0f2fe;
  color: #0369a1;
}
.recent-badge.badge-album {
  background: #fef3c7;
  color: #b45309;
}
.recent-empty {
  padding: 28px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

/* Quick Actions 2x2 Tile Grid */
.quick-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  flex: 1;
}
.quick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 16px;
  border: 1px solid rgba(241, 62, 147, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #fff6fb 100%);
  text-align: center;
  transition: all 0.22s ease;
}
.quick-tile:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(241, 62, 147, 0.14);
}
.qt-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffe8f3;
  color: var(--pink);
  display: grid;
  place-items: center;
}
.qt-ico svg {
  width: 20px;
  height: 20px;
}
.quick-tile strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}


/* Panel Heading */
.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.panel-heading h2 {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* List Cards (Products, Events, Albums) */
.admin-list {
  display: grid;
  gap: 12px;
}
.list-card {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(241, 62, 147, 0.2);
}
.list-card img, .list-placeholder {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--soft);
}
.list-placeholder {
  display: grid;
  place-items: center;
  color: var(--deep);
  font-size: 24px;
}
.list-card .details { min-width: 0; }
.list-card strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.list-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-card .price {
  color: var(--deep);
  font-weight: 800;
  font-size: 17px;
}
.card-actions {
  display: flex;
  gap: 8px;
}
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}
.icon-button:hover {
  transform: scale(1.08);
}
.icon-button.edit { color: var(--deep); background: var(--soft); }
.icon-button.delete { color: #c62c5c; background: #fff0f4; }
.icon-button.view { color: #1e7050; background: #e5f7ee; }

.empty-state {
  padding: 64px 24px;
  text-align: center;
  border: 2px dashed rgba(241, 62, 147, 0.2);
  border-radius: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 600;
}

/* Modals */
.admin-modal {
  width: min(780px, calc(100% - 24px));
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 35px 110px rgba(35, 15, 25, 0.4);
  overflow: hidden;
}
.blog-modal {
  width: min(940px, calc(100% - 24px));
}
.admin-modal::backdrop {
  background: rgba(25, 14, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-form {
  max-height: 90vh;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 22px 30px 16px;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.modal-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--deep);
}
.modal-close {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  background: #f7edf2;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: grid;
  place-items: center;
  color: var(--deep);
}
.modal-close:hover {
  background: #ffe3ee;
  color: var(--pink-dark);
  transform: scale(1.08);
}

.modal-form > .form-grid {
  padding: 22px 30px 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }

/* File Drop Zones */
.file-drop {
  position: relative;
  min-height: 96px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #f59dc4;
  border-radius: 20px;
  background: #fff9fc;
  color: var(--deep) !important;
  cursor: pointer;
  transition: all 0.25s ease;
}
.file-drop:hover {
  border-color: var(--pink);
  background: #fff0f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(241, 62, 147, 0.12);
}
.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-drop span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 750;
}
.file-drop span::before {
  content: "📁";
  font-size: 24px;
  margin-bottom: 2px;
}
.file-drop small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

/* Cover Image Preview (Existing) */
.cover-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 20px;
  background: #fff8fb;
  border: 1px solid rgba(241, 62, 147, 0.2);
}
.cover-preview span {
  font-size: 13px;
  font-weight: 800;
  color: var(--deep);
  display: flex;
  align-items: center;
  gap: 6px;
}
.cover-preview span::before {
  content: "🖼️";
}
.cover-preview .current-image {
  width: 100%;
  max-width: 480px;
  max-height: 240px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(188, 33, 103, 0.08);
}

/* File Previews (New uploads) */
.file-preview {
  display: none;
  margin-top: 6px;
  width: 100%;
}
.file-preview.has-files {
  display: block;
}
.file-preview figure {
  margin: 0;
  position: relative;
  background: #fff;
  border: 1px solid rgba(241, 62, 147, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(188, 33, 103, 0.08);
}
/* Single File Preview (Cover) */
#cover-file-preview figure {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
#cover-file-preview figure img {
  width: 100%;
  max-height: 240px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #f7edf2;
}
#cover-file-preview figure figcaption {
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--deep);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}
#cover-file-preview figure figcaption::before {
  content: "✨ ไฟล์ที่เลือก:";
  color: var(--pink);
  font-size: 11.5px;
  font-weight: 800;
}

/* Multi File Preview (Article Gallery) */
.file-preview.multi.has-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #fff8fb;
  border: 1px dashed rgba(241, 62, 147, 0.25);
}
.file-preview.multi figure {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.file-preview.multi figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(241, 62, 147, 0.16);
}
.file-preview.multi figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.file-preview.multi figure figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Existing Attached Images Grid */
.attached-section {
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff8fb;
  border: 1px solid rgba(241, 62, 147, 0.2);
}
.attached-section strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--deep);
}
.attached-section strong::before {
  content: "📸";
}
.attached-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.attached-grid article {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}
.attached-grid article:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(188, 33, 103, 0.15);
}
.attached-grid article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.remove-attached {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #ef4444;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  line-height: 1;
}
.remove-attached:hover {
  background: #dc2626;
  transform: scale(1.15);
}

/* Sticky Action Footer */
.publish-actions {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 30px 20px;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.04);
}
.publish-actions .button {
  margin: 0;
  min-width: 220px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(241, 62, 147, 0.35);
}
.modal-form > .button.wide {
  margin: 0 30px 24px;
  width: calc(100% - 60px);
}

.current-image {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff8fb;
  border: 1px solid var(--line);
}
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.photo-strip article { position: relative; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.photo-strip form { position: absolute; right: 6px; top: 6px; }
.photo-strip button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(160, 20, 70, 0.88);
  cursor: pointer;
}

/* Event & Blog Modal */
.modal-intro { max-width: 620px; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.article-editor textarea { min-height: 280px; resize: vertical; line-height: 1.8; }
.event-title-line { display: flex; align-items: center; gap: 10px; }
.status-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.status-badge.published { color: #157347; background: #e8f8f0; }
.status-badge.draft { color: #7a5e6d; background: #f2e9ee; }
.status-badge.active { color: #157347; background: #e8f8f0; }
.status-badge.inactive { color: #886576; background: #f0e6eb; }
.status-badge.active { color: #157347; background: #e8f8f0; }
.status-badge.inactive { color: #886576; background: #f0e6eb; }

/* Missions & Review Cards */
.mission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mission-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.mission-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(241, 62, 147, 0.2);
}
.mission-cover { position: relative; height: 180px; overflow: hidden; background: var(--soft); }
.mission-cover>img { width: 100%; height: 100%; object-fit: cover; }
.mission-cover .status-badge { position: absolute; right: 14px; top: 14px; }
.mission-body { padding: 22px; display: grid; grid-template-columns: 1fr 115px; gap: 18px; }
.mission-body h3 { margin: 8px 0; font-size: 20px; font-weight: 800; }
.mission-body p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.reward-label { color: var(--deep); font-size: 11px; font-weight: 800; }
.qr-box { text-align: center; }
.qr-box img { width: 115px; height: 115px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 14px; }
.qr-box a { display: inline-block; margin-top: 6px; color: var(--deep); font-size: 10px; font-weight: 700; }
.mission-actions { padding: 0 22px 22px; display: flex; gap: 8px; }
.mission-actions form { margin-left: auto; }

/* Review Queue */
.review-heading { margin: 48px 0 18px; }
.review-heading h2 { margin: 4px 0 0; font-size: 26px; font-weight: 800; }
.review-list { display: grid; gap: 14px; }
.review-card {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 115px 1fr 320px;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.review-card>a>img, .review-placeholder {
  width: 115px;
  height: 115px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--soft);
}
.review-placeholder { display: grid; place-items: center; color: var(--pink); font-size: 28px; }
.review-content span { color: var(--deep); font-size: 11px; font-weight: 700; }
.review-content h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 700; }
.review-content p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 6px; }
.review-content small { color: var(--muted); font-size: 10px; }
.review-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.review-form label { display: grid; gap: 4px; font-size: 10px; font-weight: 700; }
.review-form input { width: 100%; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 13px; }
.review-form .wide { grid-column: 1 / -1; }
.review-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* Member Tab */
.pending-summary {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--deep);
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}
.member-admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.member-admin-card {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.member-admin-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--soft);
  font-size: 24px;
}
.member-admin-card strong { display: block; font-size: 16px; font-weight: 700; }
.member-admin-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.member-admin-card p { margin: 8px 0 0; color: var(--deep); font-size: 12px; font-weight: 700; }
.member-admin-card details { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.member-admin-card summary { color: var(--deep); font-size: 12px; font-weight: 700; cursor: pointer; }
.mini-adjust { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: 8px; }
.mini-adjust input { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 12px; }

/* ========================================================
   NEW: Site Settings & Maintenance Mode Theme Styles
   ======================================================== */
.settings-section {
  display: grid;
  gap: 24px;
}

/* Status Banner Card */
.status-banner-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px 32px;
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.status-banner-card.is-online {
  background: linear-gradient(135deg, #eafbf2 0%, #f7fffb 100%);
  border: 1px solid rgba(25, 135, 84, 0.25);
}
.status-banner-card.is-maintenance {
  background: linear-gradient(135deg, #fff2eb 0%, #fff7f2 100%);
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.status-banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.status-banner-content h3 {
  margin: 6px 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.status-banner-content p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.status-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-banner-card.is-online .status-live-tag { color: #157347; }
.status-banner-card.is-maintenance .status-live-tag { color: #c44d18; }

/* Settings Form Card */
.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.form-section-title {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.form-section-title h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.form-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Modern Toggle Card (iOS Style) */
.toggle-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #fff9fc;
  border: 1.5px solid rgba(241, 62, 147, 0.18);
  border-radius: 20px;
  margin-bottom: 24px;
  transition: all 0.2s;
}
.toggle-card:hover {
  background: #fff3f8;
  border-color: rgba(241, 62, 147, 0.35);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 58px;
  height: 32px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #d8cdd4;
  transition: .3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 999px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  box-shadow: 0 4px 14px var(--pink-glow);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-label strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.toggle-label small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ========================================================
   Responsive Media Queries
   ======================================================== */
@media (max-width: 1050px) {
  .admin-shell { grid-template-columns: 230px 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: 1fr; }
  .review-card { grid-template-columns: 95px 1fr; }
  .review-form { grid-column: 1 / -1; }
  .member-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-shell { display: block; }
  .admin-sidebar {
    position: static;
    height: auto;
    padding: 20px 16px;
  }
  .admin-user { display: none; }
  .admin-nav {
    grid-template-columns: repeat(7, 130px);
    overflow-x: auto;
    margin-top: 16px;
    padding-bottom: 8px;
  }
  .admin-nav a {
    justify-content: center;
    white-space: nowrap;
    font-size: 12.5px;
  }
  .sidebar-bottom {
    margin-top: 12px;
    grid-template-columns: 1fr 1fr;
  }
  .admin-main { padding: 24px 16px 60px; }
  .welcome {
    min-height: 440px;
    padding: 34px 24px 220px;
    text-align: center;
  }
  .welcome img {
    right: 50%;
    bottom: -6%;
    width: 290px;
    height: 55%;
    transform: translateX(50%);
  }
  .quick-actions { justify-content: center; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { min-height: 400px; padding: 32px; }
  .auth-art img { right: 0; width: 60%; height: 85%; }
  .auth-art h1 { font-size: 38px; }
}

@media (max-width: 600px) {
  .admin-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .top-status-group {
    width: 100%;
    justify-content: space-between;
  }
  .panel-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .stats { grid-template-columns: 1fr; }
  .status-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
  }
  .status-banner-icon { margin: 0 auto; }
  .toggle-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .list-card {
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
  }
  .list-card img, .list-placeholder { width: 56px; height: 56px; }
  .list-card .price { grid-column: 2; }
  .card-actions { grid-column: 3; grid-row: 1 / 3; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .settings-card { padding: 22px 18px; }
  .settings-actions .button { width: 100%; }
}

.form-section-divider {
  height: 1px;
  background: rgba(241, 62, 147, 0.15);
  margin: 30px 0 24px;
}

/* Album Categories */
.category-filter-wrap {
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.category-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.category-tab:hover {
  border-color: var(--pink);
  color: var(--deep);
  transform: translateY(-1px);
}
.category-tab.active {
  background: linear-gradient(135deg, var(--pink), var(--deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(241, 62, 147, 0.35);
}
.category-tab .tab-count {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}
.category-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--deep);
  font-size: 11.5px;
  font-weight: 750;
  border: 1px solid rgba(241, 62, 147, 0.2);
}
.album-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.album-card-item .details strong {
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
}
.album-badge-icon {
  overflow: hidden;
  position: relative;
  background: var(--soft);
  display: grid;
  place-items: center;
}
.album-thumb-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* ========================================================
   Responsive Rules for Cute V2 Dashboard
   ======================================================== */
@media (max-width: 1220px) {
  .stats-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-widgets {
    grid-template-columns: 1fr 1fr;
  }
  .widget-quick {
    grid-column: 1 / -1;
  }
  .quick-tiles {
    grid-template-columns: repeat(4, 1fr);
  }
  .welcome-v2 {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 28px 26px 34px;
  }
  .welcome-brand-crest {
    display: none;
  }
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
    padding: 18px 16px 14px;
  }
  .sidebar-decor {
    display: none;
  }
  .sidebar-bottom {
    padding-bottom: 0;
  }
  .admin-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 6px;
  }
  .admin-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 9px 14px;
    font-size: 13px;
  }
  .admin-main {
    padding: 0 0 56px;
  }
  .admin-top-banner {
    padding: 18px 16px 16px;
  }
  .admin-content-body {
    padding: 16px 16px 0;
  }
  .welcome-v2 {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 26px 20px 28px;
  }
  .qs-actions {
    justify-content: center;
  }
  .welcome-mascot-zone {
    justify-content: center;
    min-height: 150px;
  }
  .welcome-mascot-img {
    width: 165px;
    height: 165px;
    margin-bottom: -10px;
  }
  .dashboard-widgets {
    grid-template-columns: 1fr;
  }
  .quick-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 14px 14px;
    gap: 10px;
  }
  .stat-icon-circle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .stat-icon-circle svg {
    width: 21px;
    height: 21px;
  }
  .stat-meta strong {
    font-size: 26px;
  }
  .stat-meta span {
    font-size: 12px;
  }
  .stat-art {
    width: 56px;
    height: 44px;
  }
  .admin-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .top-status-group {
    width: 100%;
    justify-content: flex-start;
  }
  .recent-item {
    grid-template-columns: 48px 1fr;
  }
  .recent-badge {
    grid-column: 2;
    justify-self: start;
  }
}

/* ========================================================
   Bot Protection: Honeypot & Math CAPTCHA Box
   ======================================================== */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.captcha-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff5fa 0%, #fffbe8 100%);
  border: 1.5px solid rgba(241, 62, 147, 0.24);
  box-shadow: 0 6px 18px rgba(185, 31, 102, 0.06);
  display: grid;
  gap: 10px;
}
.captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.captcha-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.captcha-op-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 800;
}
.captcha-refresh {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pink);
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(241, 62, 147, 0.2);
  transition: all 0.2s;
}
.captcha-refresh:hover {
  background: var(--pink);
  color: #fff;
}
.captcha-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}
.captcha-question {
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #a8105d, #d91b77);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 6px 16px rgba(185, 24, 102, 0.28);
  text-align: center;
}
.captcha-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(241, 62, 147, 0.28);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}
.captcha-input:focus {
  outline: 0;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-glow);
}

/* ========================================================
   Security Tab & Login Audit Log
   ======================================================== */
.nav-badge-warn {
  background: #ef4444;
  color: #fff;
}
.security-section {
  display: grid;
  gap: 18px;
}
.security-shield-card {
  padding: 20px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #fff4fa 65%, #fff9e8 100%);
  border: 1.5px solid rgba(241, 62, 147, 0.18);
  box-shadow: 0 10px 26px -8px rgba(130, 30, 80, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.shield-info h3 {
  margin: 0 0 10px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}
.shield-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shield-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.22);
  font-size: 12px;
  font-weight: 700;
}
.shield-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.shield-actions form {
  margin: 0;
}

.audit-table-card {
  background: #fff;
  border: 1px solid rgba(241, 62, 147, 0.12);
  border-radius: 22px;
  box-shadow: 0 10px 28px -8px rgba(85, 28, 58, 0.08);
  overflow: hidden;
}
.audit-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.audit-table thead th {
  text-align: left;
  padding: 14px 16px;
  background: #fff6fb;
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid rgba(241, 62, 147, 0.14);
  white-space: nowrap;
}
.audit-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(70, 42, 58, 0.06);
  color: var(--ink);
  vertical-align: middle;
}
.audit-table tbody tr:last-child td {
  border-bottom: 0;
}
.audit-table tbody tr.row-alert {
  background: #fff9fb;
}
.audit-table tbody tr:hover {
  background: #fff3f8;
}
.col-time {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.col-email {
  font-weight: 700;
}
.col-reason {
  color: var(--muted);
  font-size: 12.5px;
}
.log-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.log-badge.log-success {
  background: #dcfce7;
  color: #15803d;
}
.log-badge.log-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.log-badge.log-warn {
  background: #fef3c7;
  color: #b45309;
}
.log-badge.log-bot {
  background: #f3e8ff;
  color: #7e22ce;
}
.log-badge.log-locked {
  background: #ffedd5;
  color: #c2410c;
}
.ip-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 8px;
  background: #f5eff3;
  color: #4c2d3e;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ua-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.ua-label.ua-bot {
  padding: 3px 9px;
  border-radius: 999px;
  background: #fae8ff;
  color: #86198f;
  font-weight: 800;
}

@media (max-width: 520px) {
  .captcha-body {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   Admin Community: QR Member Scan & Quick Award Banner
   ======================================================== */
.uid-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.uid-search-bar input {
  flex: 1 1 280px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(241, 62, 147, 0.24);
  background: #fff;
  font-size: 13.5px;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(85, 25, 58, 0.04);
}
.uid-search-bar input:focus {
  outline: 0;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px var(--pink-glow);
}

.scanned-member-banner {
  margin-bottom: 22px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff2f8 0%, #fffbe8 100%);
  border: 2px solid rgba(241, 62, 147, 0.35);
  box-shadow: 0 18px 40px -10px rgba(241, 62, 147, 0.2);
  display: grid;
  gap: 16px;
}
.scanned-member-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.scanned-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.scanned-close {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
}
.scanned-close:hover {
  color: var(--pink-dark);
  border-color: var(--pink);
}
.scanned-member-body {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.scanned-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffd56b;
  background: #fff;
  box-shadow: 0 8px 18px rgba(185, 31, 102, 0.16);
}
.scanned-info h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}
.scanned-meta {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.uid-chip, .uid-chip-sm {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(241, 62, 147, 0.22);
  color: var(--deep);
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.uid-chip-sm {
  font-size: 11px;
  padding: 1px 7px;
}
.scanned-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.scanned-pts-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff2b2, #fde047);
  color: #7c2d12;
  font-size: 12.5px;
  font-weight: 800;
}
.scanned-lvl-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  border: 1px solid rgba(241, 62, 147, 0.18);
  font-size: 12.5px;
  font-weight: 700;
}
.quick-award-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-award-presets form {
  margin: 0;
}
.scanned-custom-form {
  display: grid;
  grid-template-columns: 140px 140px 1fr auto;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(241, 62, 147, 0.25);
}
.scanned-custom-form input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(241, 62, 147, 0.2);
  background: #fff;
  font-size: 13.5px;
}
.member-admin-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
@media (max-width: 780px) {
  .scanned-custom-form {
    grid-template-columns: 1fr 1fr;
  }
  .scanned-custom-form input[name="note"],
  .scanned-custom-form button {
    grid-column: 1 / -1;
  }
}

/* Mission QR Check-in Mode Badges */
.mission-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  margin-left: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}
.mission-mode-badge.mode-daily_instant {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.mission-mode-badge.mode-once_instant {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, 0.28);
}
.mission-mode-badge.mode-approval {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid rgba(147, 51, 234, 0.2);
}
.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.qr-box a {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--deep);
}





