:root {
  --primary: #1e3a8a;
  --secondary: #d97706;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  --font-main: 'Sarabun', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

body.mourning-mode {
  filter: grayscale(100%);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top bar */
.topbar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: #f8fafc; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0f172a 100%);
  color: #fff;
  padding: 18px 0;
  border-bottom: 4px solid var(--secondary);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}
.header-titles h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.25;
}
.header-titles .en {
  font-size: 0.92rem;
  opacity: 0.9;
  font-weight: 500;
}
.header-titles .affil {
  font-size: 0.85rem;
  color: #fde68a;
  margin-top: 2px;
}

/* Main Navigation */
.main-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 8px 0;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 12px 15px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover, .nav-link.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 60;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  display: block;
}
.nav-dropdown a {
  display: block;
  padding: 9px 16px;
  color: var(--text);
  font-size: 0.92rem;
}
.nav-dropdown a:hover {
  background: #f1f5f9;
  color: var(--primary);
  text-decoration: none;
}

/* Marquee */
.marquee-bar {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  overflow: hidden;
  padding: 7px 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.marquee-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Hero Slider (Fade Transition) */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 18px 0;
  background: linear-gradient(120deg, var(--primary), #1e293b);
  aspect-ratio: 16 / 5;
  min-height: 240px;
  max-height: 400px;
  box-shadow: var(--shadow);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .hero-slider {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    background: #0f172a;
  }
  .hero-slide.active {
    position: relative;
  }
  .hero-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.85));
  color: #fff;
  padding: 28px 24px 18px;
}
.hero-default {
  padding: 46px 32px;
  color: #fff;
  text-align: center;
}
.hero-default h2 { margin: 0 0 8px; font-size: 1.75rem; }
.hero-default p { margin: 0; opacity: 0.9; font-size: 1.05rem; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

/* 3-Column School Portal Grid */
.portal-grid {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 20px;
  margin: 20px 0 36px;
  align-items: start;
}

/* Block Card */
.cms-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.cms-block-header {
  background: var(--primary);
  color: #fff;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--secondary);
}
.cms-block-header a {
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 500;
}
.cms-block-body {
  padding: 14px 16px;
}

/* Director Block */
.director-box {
  text-align: center;
}
.director-avatar {
  width: auto;
  height: 215px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
  border: 3px solid var(--secondary);
  background: #fff;
  margin: 0 auto 12px;
  display: block;
}
div.director-avatar {
  width: 175px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #64748b;
}
.director-name { font-weight: 700; font-size: 1rem; color: var(--primary); }
.director-pos { font-size: 0.88rem; color: var(--muted); }
.director-quote {
  margin-top: 8px;
  font-size: 0.86rem;
  font-style: italic;
  color: #475569;
  background: #f8fafc;
  padding: 8px;
  border-radius: 6px;
}

/* News List inside Block */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.news-item:last-child { border-bottom: none; }
.news-thumb {
  width: 84px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #e2e8f0;
}
.news-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e0e7ff;
  color: var(--primary);
}
.badge-pin {
  background: #fef3c7;
  color: #b45309;
}

/* Quick Links */
.quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.quick-links li {
  border-bottom: 1px solid #f1f5f9;
}
.quick-links li:last-child { border-bottom: none; }
.quick-links a {
  display: block;
  padding: 8px 6px;
  font-size: 0.92rem;
  color: var(--text);
}
.quick-links a:hover {
  color: var(--primary);
  background: #f8fafc;
  text-decoration: none;
}

/* ITA Shortcut */
.ita-banner {
  display: block;
  background: linear-gradient(135deg, #047857, #065f46);
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}
.ita-banner:hover { text-decoration: none; opacity: 0.95; }
.ita-banner strong { display: block; font-size: 1.1rem; }
.ita-banner span { font-size: 0.85rem; opacity: 0.9; }

/* Albums Grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.album-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: block;
  color: var(--text);
}
.album-card:hover { text-decoration: none; border-color: var(--primary); }
.album-cover {
  height: 125px;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  overflow: hidden;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-info { padding: 10px; }
.album-info h4 { margin: 0 0 4px; font-size: 0.92rem; line-height: 1.35; }
.album-info small { color: var(--muted); font-size: 0.78rem; }

/* Stats Table */
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.stat-row:last-child { border-bottom: none; }

/* Calendar Events */
.event-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.event-item:last-child { border-bottom: none; }
.event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* Inner Content Pages */
.page-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin: 22px 0 36px;
}
.page-heading {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  color: var(--primary);
}
.rich-content img { max-width: 100%; height: auto; border-radius: 6px; }
.rich-content iframe { max-width: 100%; border-radius: 8px; display: block; }
.rich-content .embed-wrap { margin: 14px 0; max-width: 100%; overflow: hidden; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.rich-content th, .rich-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.rich-content th { background: #f8fafc; }
.rich-content blockquote {
  border-left: 4px solid var(--secondary);
  margin: 14px 0;
  padding: 10px 16px;
  background: #fffbeb;
}

/* Forms & Buttons */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { opacity: 0.92; text-decoration: none; }
.btn-secondary { background: #e2e8f0; color: var(--text); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.92rem; }
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

/* Personnel Grid */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.person-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  background: #fff;
}
.person-card img {
  width: auto;
  height: 215px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  margin: 0 auto 10px;
  display: block;
}
.person-placeholder {
  width: 175px;
  height: 215px;
  max-width: 100%;
  border-radius: 8px;
  margin: 0 auto 10px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: #f8fafc;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 32px 0 20px;
  border-top: 4px solid var(--secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
.site-footer h3 { color: #fff; margin-top: 0; font-size: 1.05rem; }
.site-footer a { color: #93c5fd; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 14px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Native Modal Dialogs (Compliant with modern-web-guidance) */
dialog:modal {
  overscroll-behavior: contain;
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: min(680px, 92vw);
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
}
.dialog-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-header h2 { margin: 0; font-size: 1.1rem; }
.dialog-close-btn {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.dialog-body { padding: 18px; }
.dialog-footer {
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 980px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .nav-list { display: none; flex-direction: column; padding-bottom: 10px; }
  .nav-list.open { display: flex; }
  .nav-dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; }
}

/* Subsites Directory & Banner */
.subsite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.subsite-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.subsite-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  text-decoration: none;
}
.subsite-card-banner {
  padding: 18px 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.subsite-card-banner img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.2);
}
.subsite-card-body {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.subsite-hero {
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #fff;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.subsite-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.subsite-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #e2e8f0;
  color: var(--text);
}
.subsite-pill:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* Slider Pagination Dots & Block Image Slider (16:9 Stretch + Fade Transition) */
.block-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
}
.block-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
  z-index: 1;
}
.block-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.block-slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.block-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  z-index: 10;
}
.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  opacity: 0.75;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.slider-dot:hover {
  opacity: 1;
}
.slider-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 2px #ffffff;
  opacity: 1;
  transform: scale(1.15);
}

/* Vertical Album Layout */
.album-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.album-card-vertical {
  display: flex;
  gap: 12px;
  align-items: center;
}
.album-card-vertical .album-cover {
  width: 130px;
  height: 92px;
  flex-shrink: 0;
}
.album-card-vertical .album-info {
  flex: 1;
}

/* Clean Focus Styles (fixes thick Safari blue focus ring on inputs/selects/textareas) */
.form-control,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
  background-color: #ffffff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.15);
  background-color: #ffffff;
}

/* PDPA Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #f8fafc;
  border-top: 3px solid var(--secondary);
  padding: 14px 0;
  z-index: 200;
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.25);
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.cookie-banner-text strong {
  display: block;
  margin-bottom: 2px;
  color: #fde68a;
}
.cookie-banner-text a {
  color: #93c5fd;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-pref-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #f8fafc;
}

/* Floating Chat Widget (Bottom-Right) */
.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.chat-widget-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-widget-fab:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35);
}
.chat-widget-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.chat-widget-menu[hidden] {
  display: none;
}
.chat-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  transition: transform 0.15s ease;
}
.chat-item:hover {
  transform: translateX(-3px);
}
.chat-item-label {
  background: #ffffff;
  color: #0f172a;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  border: 1px solid #e2e8f0;
}
.chat-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}
.chat-fb .chat-item-icon { background: linear-gradient(135deg, #00B2FF 0%, #006AFF 55%, #A033FF 100%); }
.chat-line .chat-item-icon { background: #06C755; }
.chat-phone .chat-item-icon { background: #0284c7; }
.chat-email .chat-item-icon { background: #ea580c; }


/* Centered Alert Modal Popup (Public) */
dialog.center-alert-dialog {
  border: none;
  border-radius: 16px;
  padding: 28px 26px 22px;
  width: min(430px, 92vw);
  max-width: 92vw;
  text-align: center;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 25px 65px rgba(15, 23, 42, 0.32);
  margin: auto;
  animation: centerPopupIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
dialog.center-alert-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
}
@keyframes centerPopupIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.center-alert-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.center-alert-icon.is-success { background: #dcfce7; color: #059669; }
.center-alert-icon.is-error { background: #fee2e2; color: #dc2626; }
.center-alert-title {
  margin: 0 0 8px;
  font-size: 1.22rem;
  font-weight: 700;
  color: #0f172a;
}
.center-alert-body {
  margin: 0 0 20px;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #475569;
  word-break: break-word;
}
.center-alert-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.center-alert-actions .btn {
  min-width: 112px;
  padding: 9px 20px;
  font-size: 0.94rem;
  border-radius: 8px;
}
