/* ========================================================
   ระบบสนับสนุนงาน โรงเรียนบ้านดุงวิทยา (DW ONE Portal)
   ธีมสว่าง สบายตา โทนชมพูม่วง (Soft Light Pink & Purple Aesthetic)
   ออกแบบให้ใช้งานง่าย มีมิติ ตอบสนองทุกอุปกรณ์ (Fully Responsive)
   พัฒนาโดย ทีม BDW ONE
   ======================================================== */

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

:root {
  /* Soft Light Pink & Purple Spectrum */
  --bg-gradient-start: #fdf4f9;
  --bg-gradient-mid: #faf5ff;
  --bg-gradient-end: #f5f3ff;

  --purple-900: #1e1338;
  --purple-800: #3b135e;
  --purple-700: #581c87;
  --purple-600: #7e22ce;
  --purple-500: #9333ea;
  --purple-400: #a855f7;
  --purple-300: #c084fc;
  --purple-200: #e9d5ff;
  --purple-100: #f3e8ff;
  --purple-50:  #faf5ff;

  --pink-700: #9d174d;
  --pink-600: #be185d;
  --pink-500: #db2777;
  --pink-400: #ec4899;
  --pink-300: #f472b6;
  --pink-200: #fbcfe8;
  --pink-100: #fdf2f8;
  --pink-50:  #fff1f2;

  /* Surfaces & Glass (Light / Frosted Glass) */
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  
  --border-glass: rgba(236, 72, 153, 0.22);
  --border-glass-hover: rgba(236, 72, 153, 0.55);

  --text-main: #1e1338;
  --text-muted: #4b5563;
  --text-dim: #6b7280;

  --shadow-card: 0 10px 30px -8px rgba(126, 34, 206, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 20px 45px -10px rgba(236, 72, 153, 0.22), 0 0 25px rgba(168, 85, 247, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 45%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========================================================
   Background Ambient Soft Lavender & Rose Lights
   ======================================================== */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  will-change: transform;
}
.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, rgba(244, 114, 182, 0.1) 50%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: floatOrb 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(192, 132, 252, 0.1) 50%, transparent 70%);
  bottom: 0%;
  right: -120px;
  animation: floatOrb 26s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(251, 207, 232, 0.35) 0%, transparent 70%);
  top: 35%;
  left: 30%;
  animation: floatOrb 20s ease-in-out infinite alternate;
}
.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 88%);
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, 25px) scale(1.08); }
  100% { transform: translate(-25px, 45px) scale(0.95); }
}

/* ========================================================
   Header Navigation Bar (Light Frosted Glass)
   ======================================================== */
.portal-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1.5px solid rgba(236, 72, 153, 0.22);
  box-shadow: 0 4px 25px rgba(126, 34, 206, 0.06);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.9), rgba(243, 232, 255, 0.9));
  border: 1.5px solid rgba(236, 72, 153, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(236, 72, 153, 0.18);
}

.brand-logo-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(236, 72, 153, 0.3));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-section:hover .brand-logo-wrap img {
  transform: rotate(15deg) scale(1.12);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--purple-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--purple-700);
  font-weight: 500;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-time-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(243, 232, 255, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--purple-800);
  font-weight: 500;
}
.nav-time-pill .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #db2777;
  box-shadow: 0 0 8px #ec4899;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* REFINED TACTILE BUTTONS */
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-nav-replay {
  border-color: rgba(236, 72, 153, 0.35);
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.9), rgba(243, 232, 255, 0.9));
  color: var(--purple-800);
  box-shadow: 0 2px 6px rgba(236, 72, 153, 0.1);
}
.btn-nav-replay:hover {
  background: linear-gradient(135deg, #fbcfe8, #e9d5ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25);
}

.btn-nav-admin {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3);
}
.btn-nav-admin:hover {
  background: linear-gradient(135deg, #f472b6 0%, #9333ea 100%);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.45);
  transform: translateY(-2px);
}
.btn-nav-admin:active, .btn-nav-replay:active {
  transform: translateY(1px) scale(0.98);
}

/* ========================================================
   Hero Section & Clean Shimmering TITLE Motion
   ======================================================== */
.hero-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 0.8rem;
  text-align: center;
  position: relative;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
  border: 1.5px solid rgba(236, 72, 153, 0.35);
  color: #be185d;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.12);
  animation: badgeGlowLight 3s ease-in-out infinite alternate;
}

@keyframes badgeGlowLight {
  0% { box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1); }
  100% { box-shadow: 0 4px 18px rgba(236, 72, 153, 0.25); }
}

/* TITLE Motion Animation (ขนาดกะทัดรัด สวยงาม สบายตา) */
.hero-title-motion {
  font-size: clamp(1.4rem, 2.7vw, 2.25rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
  position: relative;
  display: inline-block;
}

.title-gradient-motion {
  background: linear-gradient(
    90deg,
    #1e1338 0%,
    #7e22ce 25%,
    #db2777 50%,
    #9333ea 75%,
    #1e1338 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGradient 7s linear infinite;
  display: inline-block;
}

@keyframes shineGradient {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-size: clamp(0.86rem, 1.25vw, 1.02rem);
  color: #4b5563;
  max-width: 760px;
  margin: 0 auto 1.35rem;
  font-weight: 400;
}

.hero-subtitle strong {
  color: #581c87;
  font-weight: 600;
}

/* Stats / Highlights Bar */
.hero-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(236, 72, 153, 0.2);
  border-radius: 999px;
  font-size: 0.86rem;
  color: #374151;
  box-shadow: 0 2px 8px rgba(126, 34, 206, 0.05);
}
.stat-pill span.num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #db2777;
}

/* Search Box */
.filter-search-wrap {
  max-width: 580px;
  margin: 0 auto 1.25rem;
  position: relative;
}

.search-input-box {
  width: 100%;
  padding: 13px 20px 13px 48px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(236, 72, 153, 0.3);
  border-radius: 999px;
  color: #1e1338;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(126, 34, 206, 0.06);
}

.search-input-box:focus {
  border-color: #ec4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.25);
  background: #ffffff;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #a855f7;
  pointer-events: none;
  font-size: 1.05rem;
}

/* ========================================================
   NETWORK LAYOUT: DW ONE MASTER HUB & 4 CONNECTED MENUS
   (ซ้าย 2 | กลาง DW ONE Hub | ขวา 2) โทนสว่าง สบายตา ชมพูม่วง
   ======================================================== */
.network-layout-section {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  perspective: 1200px;
}

/* Dynamic SVG Connector Overlay */
.connector-svg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.connector-line {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
  animation: dashFlow 20s linear infinite;
  opacity: 0.75;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.connector-line.left-line {
  stroke: url(#lineGradLeft);
}
.connector-line.right-line {
  stroke: url(#lineGradRight);
}

.connector-line.highlight {
  stroke-width: 4.8;
  opacity: 1;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 14px rgba(236, 72, 153, 0.75)) drop-shadow(0 0 6px rgba(168, 85, 247, 0.6));
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -1000;
  }
}

.connector-dot {
  fill: #ffffff;
  stroke: #ec4899;
  stroke-width: 1.5;
  opacity: 0.95;
  filter: drop-shadow(0 0 8px #f472b6);
  transition: opacity 0.3s ease;
}

/* 3-Column Grid for Network Container */
.network-container {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  align-items: center;
  gap: 2.25rem;
  position: relative;
  z-index: 5;
}

.network-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Menu Cards in Light Theme */
.dept-card {
  position: relative;
  z-index: 6;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
}

.dept-card:hover {
  transform: translateY(-6px) scale(1.015);
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-card-hover);
}

/* Card Glow Line on Top */
.card-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

.theme-purple .card-glow-line { background: linear-gradient(90deg, #ec4899, #8b5cf6); }
.theme-rose .card-glow-line { background: linear-gradient(90deg, #f43f5e, #ec4899); }
.theme-emerald .card-glow-line { background: linear-gradient(90deg, #9333ea, #f472b6); }
.theme-blue .card-glow-line { background: linear-gradient(90deg, #7e22ce, #ec4899); }
.theme-amber .card-glow-line { background: linear-gradient(90deg, #db2777, #f472b6); }

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.95), rgba(243, 232, 255, 0.95));
  border: 1.5px solid rgba(236, 72, 153, 0.28);
  box-shadow: 0 3px 10px rgba(236, 72, 153, 0.12);
  transition: transform 0.35s ease;
}

.dept-card:hover .card-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #fbcfe8, #e9d5ff);
}

.card-status-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-active {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid rgba(236, 72, 153, 0.35);
}
.status-active .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #db2777;
  box-shadow: 0 0 6px #ec4899;
}

.status-pending {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid rgba(251, 146, 60, 0.35);
}
.status-pending .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ea580c;
}

.card-category {
  font-size: 0.78rem;
  color: #7e22ce;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--purple-900);
  margin-bottom: 0.55rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.dept-card:hover .card-title {
  color: #be185d;
}

.card-description {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 1.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* REFINED TACTILE IN-APP BUTTONS */
.btn-open-inapp {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.28);
}

.btn-open-inapp:hover {
  background: linear-gradient(135deg, #f472b6 0%, #9333ea 100%);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.42);
  transform: translateY(-2px);
}
.btn-open-inapp:active {
  transform: translateY(1px) scale(0.98);
}

.btn-open-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fdf2f8;
  border: 1.5px solid rgba(236, 72, 153, 0.28);
  color: #db2777;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.btn-open-ext:hover {
  background: #ec4899;
  border-color: #ec4899;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

/* ========================================================
   CENTER HUB COLUMN & 3D MASTER CARD (DW ONE)
   (สว่าง สบายตา มีมิติ ลอยเด่นตรงกลาง ไม่สามารถคลิกได้)
   ======================================================== */
.network-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.center-hub-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.9));
  border: 2px solid rgba(236, 72, 153, 0.35);
  border-radius: 30px;
  padding: 1.6rem 1.4rem 1.6rem;
  text-align: center;
  box-shadow: 0 20px 50px -10px rgba(168, 85, 247, 0.18),
              0 0 30px rgba(236, 72, 153, 0.15),
              inset 0 1px 2px #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.3s ease;
  cursor: default; /* ส่วนกลางไม่สามารถคลิกได้ตามคำขอ */
  user-select: none;
  z-index: 10;
}

.center-hub-card:hover {
  border-color: rgba(236, 72, 153, 0.65);
  box-shadow: 0 25px 65px -10px rgba(236, 72, 153, 0.28),
              0 0 40px rgba(168, 85, 247, 0.2),
              inset 0 1px 3px #ffffff;
}

/* Pulsing Radiant Rings behind Hub */
.hub-glow-aura {
  position: absolute;
  inset: -20px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22), rgba(168, 85, 247, 0.16), transparent 70%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
  animation: hubPulseLight 4s ease-in-out infinite alternate;
}

.hub-ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(236, 72, 153, 0.25);
  pointer-events: none;
  z-index: -1;
}
.hub-ripple-ring.r1 {
  width: 118%;
  height: 118%;
  animation: ringExpandLight 5s ease-out infinite;
}
.hub-ripple-ring.r2 {
  width: 140%;
  height: 140%;
  animation: ringExpandLight 5s ease-out infinite 2.5s;
}

@keyframes hubPulseLight {
  0% { opacity: 0.5; transform: scale(0.96); }
  100% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes ringExpandLight {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; }
}

/* DW ONE 3D EMBLEM STAGE */
.dwone-3d-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem 0.5rem;
  margin-bottom: 0.75rem;
  perspective: 900px;
}

.dw-letters-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: -4px;
}

.dw-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ec4899 0%, #a855f7 60%, #581c87 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.35));
  letter-spacing: 0.04em;
  transform: translateZ(25px);
}

.one-letters-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  height: 108px;
}

.hub-logo-emblem {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transform: translateZ(30px);
}

.hub-logo-emblem::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ec4899, #c084fc, #f472b6, #7e22ce, #ec4899);
  opacity: 0.8;
  filter: blur(4px);
  animation: bdwRingSpin 6s linear infinite;
  z-index: -1;
}

@keyframes bdwRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hub-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(126, 34, 206, 0.35));
}

.hub-ne-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 3;
  transform: translateZ(25px);
}

.ne-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ec4899 0%, #a855f7 60%, #581c87 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 10px rgba(236, 72, 153, 0.35));
  letter-spacing: 0.04em;
}

.one-orbit-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  width: 115%;
  height: 108px;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.hub-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 82%;
  margin: 0.85rem auto 0.4rem;
  opacity: 0.85;
}
.hub-div-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.45), transparent);
}
.hub-div-star {
  color: #db2777;
  font-size: 0.88rem;
  text-shadow: 0 0 8px rgba(236, 72, 153, 0.4);
}

.hub-slogan-text {
  font-size: 0.84rem;
  color: #581c87;
  font-weight: 600;
  text-align: center;
  line-height: 1.45;
}

.hub-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 0.4rem;
}

.hub-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  padding: 3px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
}

.hub-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple-900);
  margin-top: 4px;
  line-height: 1.35;
}

/* Extra Cards Grid */
.extra-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.75rem;
  margin-top: 3.5rem;
}

/* ========================================================
   CIRCUIT JUNCTION NODES & CARD PIN HEADS
   ======================================================== */
.junction-node-outer {
  fill: #ffffff;
  stroke: #ec4899;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.4));
}

.junction-node-inner {
  fill: #ec4899;
}

.junction-node-pulse {
  fill: none;
  stroke: #f472b6;
  stroke-width: 1.5;
  opacity: 0.8;
  animation: pulseJunction 2s ease-out infinite;
}

@keyframes pulseJunction {
  0% { r: 5; opacity: 0.9; }
  100% { r: 14; opacity: 0; }
}

.card-connection-pin {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ec4899;
  border: 3px solid #ffffff;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
  z-index: 10;
  transition: all 0.3s ease;
}

.dept-card-left .card-connection-pin {
  right: -7px;
}
.dept-card-right .card-connection-pin {
  left: -7px;
}

.dept-card:hover .card-connection-pin {
  transform: translateY(-50%) scale(1.3);
  background: #db2777;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.7);
}

/* ========================================================
   IN-PAGE EMBEDDED SYSTEM VIEWER
   ======================================================== */
.inapp-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fdf4f9;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.inapp-viewer-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.viewer-topbar {
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1.5px solid rgba(236, 72, 153, 0.25);
  box-shadow: 0 2px 15px rgba(126, 34, 206, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 1rem;
  flex-shrink: 0;
  z-index: 10;
}

.viewer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.btn-viewer-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  background: #fdf2f8;
  border: 1.5px solid rgba(236, 72, 153, 0.3);
  color: #be185d;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-viewer-back:hover {
  background: #ec4899;
  border-color: #ec4899;
  color: #ffffff;
}

.viewer-sys-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.viewer-sys-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.viewer-sys-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-sys-url-badge {
  font-size: 0.72rem;
  color: #7e22ce;
  background: #f3e8ff;
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
  display: none;
}
@media (min-width: 768px) {
  .viewer-sys-url-badge { display: inline-block; }
}

.viewer-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-switch-select {
  background: #ffffff;
  color: var(--purple-900);
  border: 1.5px solid rgba(236, 72, 153, 0.35);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  max-width: 260px;
}
.viewer-switch-select option {
  background: #ffffff;
  color: #1e1338;
}

.viewer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-viewer-ctrl {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fdf2f8;
  border: 1.5px solid rgba(236, 72, 153, 0.25);
  color: #db2777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.btn-viewer-ctrl:hover {
  background: #ec4899;
  border-color: #ec4899;
  color: #ffffff;
}

.btn-viewer-close {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}
.btn-viewer-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.viewer-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100vh - 60px);
  background: #ffffff;
  overflow: hidden;
}

.viewer-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.viewer-loading-cover {
  position: absolute;
  inset: 0;
  background: #faf5ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 5;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.viewer-loading-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.viewer-spinner {
  width: 52px;
  height: 52px;
  border: 3.5px solid rgba(236, 72, 153, 0.2);
  border-top-color: #ec4899;
  border-right-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.viewer-loading-text {
  font-size: 0.95rem;
  color: #581c87;
  font-weight: 600;
}

.viewer-pending-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 50%, #f5f3ff 100%);
  z-index: 4;
}

.pending-graphic {
  font-size: 4.2rem;
  margin-bottom: 1rem;
  animation: pulseGraphic 2.5s infinite;
}
@keyframes pulseGraphic {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.pending-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--purple-900);
  margin-bottom: 0.5rem;
}

.pending-desc {
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 500px;
  margin-bottom: 1.85rem;
  line-height: 1.6;
}

.pending-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35);
}

/* ========================================================
   ADMIN BACKOFFICE MODAL & DASHBOARD (Light Theme)
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(30, 19, 56, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border: 1.5px solid rgba(236, 72, 153, 0.3);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 70px -15px rgba(126, 34, 206, 0.25);
  overflow: hidden;
  transform: translateY(15px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1.5px solid rgba(236, 72, 153, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdf2f8;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-icon {
  font-size: 1.5rem;
}

.modal-title-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-900);
}

.btn-modal-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.btn-modal-close:hover {
  color: #ec4899;
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

/* Password View */
.admin-login-box {
  text-align: center;
  padding: 2rem 1rem;
}

.admin-login-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.admin-login-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple-900);
  margin-bottom: 0.5rem;
}

.admin-login-sub {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.admin-password-wrap {
  max-width: 340px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.admin-password-input {
  width: 100%;
  padding: 14px 18px;
  background: #faf5ff;
  border: 1.5px solid rgba(236, 72, 153, 0.4);
  border-radius: 12px;
  color: #1e1338;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.25em;
  outline: none;
  transition: all 0.25s ease;
}

.admin-password-input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
  background: #ffffff;
}

.btn-admin-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35);
}
.btn-admin-submit:hover {
  background: linear-gradient(135deg, #f472b6 0%, #9333ea 100%);
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.5);
  transform: translateY(-2px);
}

.admin-error-msg {
  color: #dc2626;
  font-size: 0.88rem;
  margin-top: 10px;
  display: none;
}

/* Admin Dashboard Toolbar */
.admin-dashboard-wrap {
  display: none;
}
.admin-dashboard-wrap.active {
  display: block;
}

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

.btn-admin-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.25);
}
.btn-admin-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4);
}

.admin-tool-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-admin-sec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: #fdf2f8;
  border: 1.5px solid rgba(236, 72, 153, 0.25);
  color: #be185d;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-admin-sec:hover {
  background: #fbcfe8;
}

/* Admin Item List */
.admin-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-item-card {
  background: #faf5ff;
  border: 1.5px solid rgba(236, 72, 153, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s ease;
}
.admin-item-card:hover {
  background: #f3e8ff;
}

.item-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.item-order-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-order-arrow {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
  line-height: 1;
}
.btn-order-arrow:hover { color: #1e1338; }

.item-icon-badge {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(236, 72, 153, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-info {
  min-width: 0;
  flex: 1;
}

.item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.item-main-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e1338;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-url-text {
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}
.item-url-text.empty {
  color: #ea580c;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-item-action {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(236, 72, 153, 0.3);
  background: #ffffff;
  color: #1e1338;
  font-size: 0.82rem;
  cursor: pointer;
}
.btn-item-action:hover {
  background: #fdf2f8;
  color: #db2777;
}

.btn-item-delete {
  color: #dc2626;
  border-color: #fca5a5;
  background: #fee2e2;
}
.btn-item-delete:hover {
  background: #fecdd3;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  background: #faf5ff;
  border: 1.5px solid rgba(236, 72, 153, 0.3);
  border-radius: 10px;
  color: #1e1338;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: #ec4899;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.2);
}
.form-select option {
  background: #ffffff;
  color: #1e1338;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  padding: 12px 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid rgba(236, 72, 153, 0.4);
  color: #1e1338;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 10px 35px rgba(126, 34, 206, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========================================================
   SECURITY WARNING MODAL
   ======================================================== */
.security-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(30, 19, 56, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.security-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.security-card-box {
  background: #ffffff;
  border-radius: 28px;
  width: 100%;
  max-width: 480px;
  padding: 2.25rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.security-modal-backdrop.active .security-card-box {
  transform: translateY(0) scale(1);
}

.security-circle-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #fff5f5;
  border: 2.5px solid #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.25);
  animation: pulseSecRing 2s infinite;
}

@keyframes pulseSecRing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.security-circle-icon svg {
  width: 36px;
  height: 36px;
  stroke: #ef4444;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.security-title-head {
  font-size: 1.45rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.security-alert-card {
  background: #fff7f7;
  border: 1.5px solid #fecdd3;
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.security-alert-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc2626;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.security-alert-msg {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.6;
}

.security-footer-note {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.btn-security-ack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  padding: 13px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e11d48, #dc2626);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35);
  transition: all 0.25s ease;
}

.btn-security-ack:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.45);
  transform: translateY(-2px);
}

/* ========================================================
   Footer Section (Light Theme)
   ======================================================== */
.portal-footer {
  border-top: 1.5px solid rgba(236, 72, 153, 0.2);
  background: rgba(255, 255, 255, 0.85);
  padding: 2.75rem 1.5rem 2rem;
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(236, 72, 153, 0.3));
}

.footer-school-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--purple-900);
}

.footer-affiliation {
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-dev-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdf2f8, #f3e8ff);
  border: 1.5px solid rgba(236, 72, 153, 0.35);
  font-size: 0.9rem;
  color: #be185d;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.15);
}
.footer-dev-pill strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--purple-900);
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 0.82rem;
  color: #6b7280;
}

/* ========================================================
   FULL RESPONSIVE SYSTEM (Mobile / Tablet Auto-Scaling)
   ======================================================== */
@media (max-width: 1024px) {
  .network-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .network-col-center {
    order: -1;
  }
  .connector-svg-canvas {
    display: none;
  }
  .center-hub-card {
    max-width: 480px;
    margin: 0 auto;
  }
  .card-connection-pin {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-container { 
    padding: 0.75rem 1rem; 
  }
  .brand-logo-wrap {
    width: 42px;
    height: 42px;
  }
  .brand-logo-wrap img {
    width: 36px;
    height: 36px;
  }
  .brand-name { 
    font-size: 1rem; 
  }
  .brand-sub { 
    display: none; 
  }
  .nav-time-pill { 
    display: none; 
  }
  .btn-nav {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  .hero-section { 
    padding: 1.5rem 1rem 0.5rem; 
  }
  .hero-title-motion {
    font-size: 1.35rem;
    line-height: 1.35;
  }
  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  .hero-stats-row {
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }
  .stat-pill {
    padding: 5px 12px;
    font-size: 0.78rem;
  }
  .center-hub-card {
    max-width: 100%;
    padding: 1.4rem 1.1rem;
  }
  .dw-letter, .ne-letter {
    font-size: 2.7rem;
  }
  .hub-logo-emblem {
    width: 80px;
    height: 80px;
  }
  .one-letters-row {
    height: 90px;
  }
  .network-layout-section {
    padding: 0.5rem 1rem 3rem;
  }
  .network-col {
    gap: 1.25rem;
  }
  .dept-card {
    padding: 1.35rem 1.25rem;
  }
  .card-title {
    font-size: 1.12rem;
  }
  .viewer-topbar {
    padding: 0 0.75rem;
  }
  .viewer-sys-title {
    max-width: 140px;
    font-size: 0.9rem;
  }
  .viewer-switch-select { 
    max-width: 130px; 
    font-size: 0.78rem; 
    padding: 5px 8px;
  }
  .btn-viewer-back {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
