/* ==========================================================================
   SPATLAS APPS - Modern Full-Screen Institutional Stylesheet
   Portal Terpadu SMP Negeri 14 Samarinda
   Tema: Glassmorphism Modern & Professional Institutional Slate / Royal Navy
   Typography: Plus Jakarta Sans
   ========================================================================== */

:root {
  /* Dark Mode Institutional Palette */
  --bg: #070d19;
  --bg-gradient: radial-gradient(ellipse at 50% 0%, #0e1e38 0%, #070d19 75%);
  --nav-bg: rgba(7, 13, 25, 0.88);
  --card: rgba(13, 22, 38, 0.82);
  --card-solid: #0d1626;
  --card-hover: rgba(19, 32, 54, 0.9);
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --sub: #94a3b8;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.28);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(59, 130, 246, 0.45);
  --input-bg: rgba(255, 255, 255, 0.035);
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --emerald: #10b981;
  --rose: #ef4444;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  /* Light Mode Institutional Clean Palette */
  --bg: #f4f6fa;
  --bg-gradient: radial-gradient(ellipse at 50% 0%, #e2e8f4 0%, #f4f6fa 75%);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --card: rgba(255, 255, 255, 0.94);
  --card-solid: #ffffff;
  --card-hover: #ffffff;
  --text: #0f172a;
  --text-muted: #334155;
  --sub: #64748b;
  --accent: #1d4ed8;
  --accent-light: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.18);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --border-accent: rgba(37, 99, 235, 0.4);
  --input-bg: rgba(15, 23, 42, 0.035);
  --gold: #d97706;
  --gold-light: #f59e0b;
  --emerald: #059669;
  --rose: #dc2626;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 36px -6px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas, audio, iframe {
  max-width: 100%;
  height: auto;
}

/* Subtle Institutional Background Grid Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px), 
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -2;
  pointer-events: none;
  opacity: 0.35;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* Ambient Ambient Glow Blobs */
.glow-blob, .glow-blob-2 {
  position: fixed;
  width: 520px;
  height: 520px;
  background: var(--accent-light);
  opacity: 0.07;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.glow-blob {
  top: -140px;
  left: -140px;
}
.glow-blob-2 {
  bottom: -160px;
  right: -160px;
  background: #4f46e5;
  opacity: 0.06;
}

/* Glass Panel Utility */
.glass-panel {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* ==========================================================================
   FULL-WIDTH STICKY TOP NAVIGATION BAR
   ========================================================================== */
.top-nav-bar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.nav-container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 12px clamp(16px, 2.5vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Brand Identity */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-frame {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  box-shadow: 0 0 14px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.brand-link:hover .brand-logo-frame {
  transform: scale(1.06);
}

.nav-brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
  display: block;
}

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

.brand-gov {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 2px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.brand-name span {
  color: var(--accent-light);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sub);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 2px;
}

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

/* ==========================================================================
   EXECUTIVE ACTION BUTTONS (Clean, Unified & Non-Alay Design)
   ========================================================================== */
.action-btn {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
  font-size: 0.81rem;
  padding: 0 13px 0 8px;
  gap: 8px;
  user-select: none;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
[data-theme="light"] .action-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(15, 23, 42, 0.02);
}
.action-btn:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  color: var(--text);
}
[data-theme="light"] .action-btn:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.22);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.action-btn:active {
  transform: scale(0.97);
}

/* Micro-Icon Capsule */
.btn-micro-icon {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.action-btn:hover .btn-micro-icon {
  transform: scale(1.08);
}

/* Gold Capsule (Tentang & Dedikasi) */
.btn-micro-icon.icon-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
[data-theme="dark"] .btn-micro-icon.icon-gold {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

/* Blue Capsule (Mars SMPN 14) */
.btn-micro-icon.icon-blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.22);
}
[data-theme="dark"] .btn-micro-icon.icon-blue {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.32);
}

/* Indigo/Violet Capsule (Penyemangat) */
.btn-micro-icon.icon-indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.22);
}
[data-theme="dark"] .btn-micro-icon.icon-indigo {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

/* Admin Capsule */
.btn-micro-icon.icon-admin {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Mars Audio Wave Visualizer */
.audio-wave-visual {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.audio-wave-visual span {
  width: 2.5px;
  background: currentColor;
  border-radius: 2px;
  animation: waveBar 0.8s ease-in-out infinite alternate;
}
.audio-wave-visual span:nth-child(1) { height: 5px; animation-delay: 0.1s; }
.audio-wave-visual span:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.audio-wave-visual span:nth-child(3) { height: 8px; animation-delay: 0.2s; }

.btn-mars.playing .audio-wave-visual {
  display: inline-flex;
}
.btn-mars.playing i {
  display: none;
}
@keyframes waveBar {
  0% { height: 4px; }
  100% { height: 12px; }
}

/* Mars SMPN 14 Active Playing State */
.btn-mars.playing {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #059669 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2) !important;
}
[data-theme="dark"] .btn-mars.playing {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
}
.btn-mars.playing .btn-micro-icon {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* Penyemangat Active Playing State */
.btn-penyemangat.playing {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #dc2626 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.2) !important;
}
[data-theme="dark"] .btn-penyemangat.playing {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
}
.btn-penyemangat.playing .btn-micro-icon {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Theme Toggle Button (Circular/Squircle Modern Switcher) */
.btn-theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  flex-shrink: 0;
  font-size: 1.15rem;
  color: var(--sub);
}
.btn-theme-toggle:hover {
  color: var(--accent-light);
}

/* Portal Admin Button (Primary Executive Callout) */
.btn-portal-admin {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22) !important;
}
.btn-portal-admin:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3) !important;
}
[data-theme="dark"] .btn-portal-admin {
  background: linear-gradient(135deg, #1e3a8a, #2563eb) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}
[data-theme="dark"] .btn-portal-admin:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
}

/* ==========================================================================
   MAIN FULL-SCREEN CONTAINER & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 20px clamp(16px, 2.5vw, 40px) 48px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   COMMAND CENTER HERO CARD (Institutional Grade)
   ========================================================================== */
.hero-card {
  width: 100%;
  border-radius: 24px;
  padding: 24px 28px;
  margin-bottom: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--card) 0%, rgba(13, 22, 38, 0.95) 100%);
}
[data-theme="light"] .hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Institutional Top Ribbon */
.hero-institutional-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.inst-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inst-emblem {
  color: var(--gold);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
}
.inst-org {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--sub);
  text-transform: uppercase;
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.status-text {
  color: var(--emerald);
}
.status-badge-divider {
  color: var(--sub);
  opacity: 0.5;
}
.npsn-badge {
  color: var(--sub);
  font-weight: 700;
}

/* Profile & Salutation Section */
.profile-section {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}
.avatar-wrapper img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  border: 2px solid var(--accent-light);
  object-fit: cover;
  display: block;
  box-shadow: 0 0 20px var(--accent-glow);
  background: #ffffff;
}

.status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: var(--emerald);
  border-radius: 50%;
  border: 3px solid var(--card-solid);
}

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

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.hero-title-row h1 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.akreditasi-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
[data-theme="light"] .akreditasi-badge {
  color: #b45309;
}

.typewriter-text {
  font-size: 0.95rem;
  color: var(--sub);
  font-weight: 500;
  margin-bottom: 10px;
}

.hero-meta-chips {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 100%;
}
.meta-chip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta-chip i {
  color: var(--accent-light);
  font-size: 0.85rem;
}
.meta-chip-btn {
  cursor: pointer;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  color: var(--gold);
  transition: all 0.2s ease;
}
.meta-chip-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}
[data-theme="light"] .meta-chip-btn {
  color: #b45309;
}

/* Announcement Pill / Live Marquee */
.announcement-pill {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pill-label {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-right: 14px;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.marquee-box {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  display: flex;
  white-space: nowrap;
  position: relative;
  width: 100%;
}
.marquee-box:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 28s linear infinite;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.2px;
}
@keyframes scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Quote Box */
.quote-box {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quote-content-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.quote-mark {
  font-size: 1.25rem;
  color: var(--accent-light);
  opacity: 0.6;
  flex-shrink: 0;
}
#quote-text {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.92;
  line-height: 1.4;
}

#quote-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-light);
  white-space: nowrap;
}

/* ==========================================================================
   FAST SEARCH BAR
   ========================================================================== */
.search-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.search-wrapper input {
  width: 100%;
  padding: 16px 22px 16px 52px;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.search-wrapper input::placeholder {
  color: var(--sub);
  opacity: 0.8;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sub);
  font-size: 1.4rem;
  pointer-events: none;
  transition: color 0.2s ease;
}
.search-wrapper:focus-within .search-icon {
  color: var(--accent-light);
}

/* ==========================================================================
   EXPANSIVE DASHBOARD GRID (Widescreen 2-Column Architecture)
   ========================================================================== */
.main-content {
  width: 100%;
  flex: 1;
}

.dashboard-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* Sidebar Widgets Column */
.sidebar {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glass-box {
  border-radius: 20px;
  padding: 22px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.glass-box:hover {
  border-color: var(--border-strong);
}

/* Clock Widget */
.clock-card {
  text-align: center;
}
.clock-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wita-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--sub);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: 0.6px;
}
.live-clock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  animation: pulseDot 1.4s infinite;
}

#time {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  line-height: 1;
  color: var(--accent-light);
  letter-spacing: -1px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

#full-date {
  text-align: center;
  font-size: 0.86rem;
  color: var(--sub);
  font-weight: 600;
}

/* Academic Progress Card */
.status-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
}
.status-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.status-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  align-items: center;
}
.status-item b {
  color: var(--text);
  font-weight: 800;
}

.progress-container {
  width: 100%;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--sub);
}
.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--input-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.8s ease;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Weather Card */
.weather-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.w-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.w-main i {
  color: var(--accent-light);
  font-size: 2.3rem;
}
#w-desc {
  font-size: 0.84rem;
  color: var(--sub);
  font-weight: 600;
}

/* Real-Time Agendas Box */
.agenda-box {
  width: 100%;
}
.agenda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.agenda-box h3 {
  font-size: 0.94rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.agenda-box h3 i {
  color: var(--accent-light);
  font-size: 1.25rem;
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--input-bg);
  border-radius: 14px;
  border-left: 4px solid var(--accent-light);
  margin-top: 12px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.agenda-item:hover {
  transform: translateX(4px);
  border-color: var(--border-accent);
}
.agenda-item.red {
  border-left-color: var(--rose);
}

.ag-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 800;
  min-width: 44px;
  font-size: 1.15rem;
  line-height: 1.1;
  flex-shrink: 0;
  padding: 4px 6px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
}
.ag-date span {
  font-size: 0.64rem;
  color: var(--sub);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 700;
}

.ag-info {
  min-width: 0;
  flex: 1;
}
.ag-info b {
  font-size: 0.88rem;
  display: block;
  margin-bottom: 3px;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: var(--text);
}
.ag-info p {
  font-size: 0.76rem;
  color: var(--sub);
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

/* ==========================================================================
   LAUNCHPAD PANEL (MAIN RIGHT AREA)
   ========================================================================== */
.panel {
  width: 100%;
  min-width: 0;
}

/* Top Row: Mega Card & Refleksi Harian */
.top-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
  align-items: stretch;
}

/* Mega Card (Tautan Aplikasi Utama) */
.mega-card {
  min-width: 0;
  padding: 26px 28px;
  border-radius: 22px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #2563eb 100%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  min-height: 160px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}
.mega-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.4);
  border-color: rgba(255, 255, 255, 0.35);
}

.mega-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.mega-icon {
  position: absolute;
  right: 18px;
  bottom: -15px;
  font-size: 6rem;
  opacity: 0.16;
  transform: rotate(-8deg);
  transition: all 0.35s ease;
  pointer-events: none;
}
.mega-card:hover .mega-icon {
  transform: rotate(0deg) scale(1.08);
  opacity: 0.24;
}

.mega-text h3 {
  margin: 0 0 6px 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.mega-text p {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.92;
  line-height: 1.45;
  max-width: 90%;
}

.mega-action-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 10px;
  width: fit-content;
  transition: all 0.2s ease;
}
.mega-card:hover .mega-action-pill {
  background: #ffffff;
  color: var(--accent);
}

/* Refleksi Harian Card */
.rohani-card {
  min-width: 0;
  padding: 24px 26px;
  border-radius: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  box-shadow: var(--shadow-sm);
}

.rohani-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rohani-header i {
  color: var(--accent-light);
  font-size: 1.25rem;
}
.rohani-header h4 {
  margin: 0;
  font-size: 0.82rem;
  color: var(--accent-light);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.8px;
}

#quote-agama-text {
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
  transition: opacity 0.3s ease;
  color: var(--text);
  opacity: 0.95;
}

#quote-agama-sumber {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--sub);
  display: block;
  margin-top: 10px;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   DYNAMIC 4-COLUMN LAUNCHPAD GRID (12 Symmetrical Buttons)
   ========================================================================== */
.button-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Individual Launchpad Button */
.btn-item {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
  user-select: none;
  min-height: 66px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--card);
}

.btn-item:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  background: var(--card-hover);
  box-shadow: 0 8px 24px -4px var(--accent-glow);
}
.btn-item:active {
  transform: scale(0.98);
}

/* Dedicated Icon Box */
.btn-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.45rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.btn-item:hover .btn-icon-wrapper {
  transform: scale(1.1);
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* Content & Label */
.btn-text-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.btn-label {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Micro Pill Badge */
.menu-pill-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mars Grid Playing State */
.mars-grid-btn {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(37, 99, 235, 0.05);
}
.mars-grid-btn.playing {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
}
.mars-grid-btn.playing .btn-icon-wrapper {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
}
.mars-grid-btn.playing .btn-label {
  color: var(--emerald);
}

/* Special Button Color Accents */
.wa-btn {
  border-color: rgba(16, 185, 129, 0.35);
}
.wa-btn .btn-icon-wrapper {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.25);
}
.wa-btn:hover .btn-icon-wrapper {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
}

.admin-grid-btn {
  border-color: rgba(99, 102, 241, 0.35);
}
.admin-grid-btn .btn-icon-wrapper {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.25);
}
.admin-grid-btn:hover .btn-icon-wrapper {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

/* ==========================================================================
   OFFICIAL SOCIAL MEDIA & LUXURY MADING
   ========================================================================== */
.social-footer {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.soc-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.soc-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: var(--shadow-md);
}
.ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.fb { background: #1877f2; }
.yt { background: #dc2626; }

/* Luxury Mading (Papan Pengumuman Sekolah) */
.luxury-mading {
  width: 100%;
  margin-top: 22px;
  padding: 24px 28px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mading-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mading-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.mading-content-area {
  width: 100%;
  max-width: 100%;
  padding: 20px 24px;
  background: var(--input-bg);
  border-radius: 16px;
  border-left: 4px solid var(--accent-light);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mading-text-glowing {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Footer Section */
.powered-footer {
  width: 100%;
  text-align: center;
  margin: 36px 0 10px;
  padding: 26px;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.p-text {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--sub);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.p-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 0.5px;
}

.p-divider {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  margin: 12px auto 0;
  border-radius: 10px;
}

.discreet-kopi-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--input-bg);
  color: var(--sub);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.discreet-kopi-btn:hover {
  border-color: var(--accent-light);
  color: var(--text);
  background: var(--card);
}
.btn-footer-highlight {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.18));
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold);
}
.btn-footer-highlight:hover {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
[data-theme="light"] .btn-footer-highlight {
  color: #b45309;
}

/* ==========================================================================
   POPUP MODAL & POSTER ANNOUNCEMENT SYSTEM
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  padding: 26px;
  border-radius: 22px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  animation: modalFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-card.modal-lg {
  max-width: 840px;
  width: 95%;
}

/* ==========================================================================
   STANDAR INSTITUSI: PROFIL PIMPINAN, SAMBUTAN & PIAGAM DEDIKASI INOVASI
   ========================================================================== */
.inst-portal-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 1. Bilah Navigasi Tab Segmented */
.inst-tab-bar {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--input-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.inst-tab-bar::-webkit-scrollbar {
  display: none;
}

.inst-tab-nav-btn {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sub);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}
.inst-tab-nav-btn i {
  font-size: 1.15rem;
}
.inst-tab-nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.inst-tab-nav-btn.active {
  background: var(--card-solid);
  color: var(--text);
  border-color: var(--border-accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.inst-tab-nav-btn.active i {
  color: var(--gold);
}

/* Tab Panes */
.inst-tab-pane {
  display: none;
  animation: fadeInPane 0.25s ease-out;
}
.inst-tab-pane.active {
  display: block;
}
@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 2. TAB 1: KARTU PROFIL PIMPINAN (EXECUTIVE LEAD CARD) */
.executive-lead-card {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.executive-lead-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent-light));
}

.executive-portrait-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.portrait-gold-rim {
  width: 140px;
  height: 175px;
  border-radius: 18px;
  padding: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.7), rgba(37, 99, 235, 0.4));
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--card-solid);
}

.executive-official-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.portrait-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--gold);
  color: #ffffff;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.executive-lead-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gov-sub-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.executive-lead-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.executive-lead-nip {
  font-size: 0.82rem;
  color: var(--sub);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.sep-bullet {
  opacity: 0.4;
}

.executive-lead-unit {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.lead-competence-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.c-tag {
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.c-tag.gold {
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

/* 3. EDITORIAL SPEECH PAPER (SAMBUTAN RESMI - FONT LORA) */
.editorial-speech-paper {
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.speech-paper-heading {
  margin-bottom: 18px;
}
.speech-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.speech-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 12px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ornament-gold-divider {
  height: 3px;
  width: 70px;
  background: linear-gradient(90deg, var(--gold), var(--accent-light));
  border-radius: 3px;
}

.editorial-prose {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  opacity: 0.96;
}
.editorial-prose p {
  margin-bottom: 16px;
  text-align: justify;
  text-justify: inter-word;
}
.editorial-prose .prose-lead {
  font-size: 1.08rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  margin-bottom: 18px;
}
.editorial-prose b {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  color: var(--text);
}

.speech-sign-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.speech-sign-box {
  text-align: right;
  min-width: 220px;
}
.sign-place {
  font-size: 0.78rem;
  color: var(--sub);
  display: block;
}
.sign-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sub);
  display: block;
  margin-bottom: 6px;
}
.signature-display-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: -8px 0 -6px 0;
  min-height: 70px;
  position: relative;
  pointer-events: none;
}
.kepsek-official-signature {
  max-width: 175px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(20, 61, 120, 0.28));
  transition: transform 0.25s ease;
}
[data-theme="dark"] .kepsek-official-signature {
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.45)) brightness(1.3) contrast(1.12);
}
.sign-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  line-height: 1.2;
  margin: 0;
}
.sign-nip {
  font-size: 0.76rem;
  color: var(--sub);
  display: block;
  margin-top: 4px;
}

/* 4. TAB 2: PIAGAM APRESIASI & DEDIKASI INOVASI (OFFICIAL CHARTER) */
.official-charter-frame {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(37, 99, 235, 0.06));
  border: 2px solid var(--gold);
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.charter-inner-border {
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: 16px;
  padding: 26px 24px;
  text-align: center;
}

.charter-crest {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #ea580c);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.charter-issuer {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.charter-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text);
  margin: 0 0 6px 0;
}
.charter-motto {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--sub);
  max-width: 90%;
  margin: 0 auto 20px;
  line-height: 1.45;
}

.charter-recipient-card {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: center;
}
.recipient-label {
  font-size: 0.72rem;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
}
.recipient-fullname {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  margin: 4px 0 2px 0;
}
.recipient-role {
  font-size: 0.8rem;
  color: var(--sub);
  margin: 0;
}

.charter-prose {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 22px;
  text-align: center;
  max-width: 92%;
  margin-left: auto;
  margin-right: auto;
}

.charter-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
  text-align: left;
}
.pillar-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.pillar-top-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pillar-box h5 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px 0;
  line-height: 1.25;
}
.pillar-box p {
  font-size: 0.76rem;
  color: var(--sub);
  line-height: 1.45;
  margin: 0;
}

.charter-golden-pledge {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--gold);
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}
.charter-golden-pledge i {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.charter-sign-footer {
  font-size: 0.8rem;
  color: var(--sub);
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.charter-sign-footer b {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
  margin-top: 2px;
}

/* ==========================================================================
   TAB PRESTASI & REKAM JEJAK (EXECUTIVE DOSSIER)
   ========================================================================== */
.prestasi-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Hero Header Banner Prestasi */
.prestasi-hero-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.prestasi-hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), var(--accent-light));
}
.hero-crest-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.hero-lead-text {
  flex: 1;
  min-width: 0;
}
.hero-sub {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.hero-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px 0;
  line-height: 1.25;
}
.hero-motto {
  font-size: 0.84rem;
  color: var(--sub);
  margin: 0;
  line-height: 1.5;
}

/* Prestasi Cards Grid (2 Kolom di Desktop, 1 Kolom di HP) */
.prestasi-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.prestasi-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.prestasi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.prestasi-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.p-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.p-card-icon.icon-edu {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.p-card-icon.icon-research {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.p-card-icon.icon-lead {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.p-card-icon.icon-tech {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.prestasi-card-header h5 {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 3px 0;
  line-height: 1.3;
}
.p-card-sub {
  font-size: 0.74rem;
  color: var(--sub);
  display: block;
}

.prestasi-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Pendidikan Timeline */
.edu-timeline-item {
  position: relative;
  padding-left: 18px;
}
.edu-timeline-item:not(:last-child) {
  padding-bottom: 12px;
  border-left: 2px dashed var(--border);
  margin-left: 4px;
  padding-left: 14px;
}
.edu-bullet {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-glow);
}
.edu-timeline-item:last-child .edu-bullet {
  left: 0;
}
.edu-degree {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
.edu-campus {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 4px;
}
.edu-desc {
  font-size: 0.76rem;
  color: var(--sub);
  line-height: 1.5;
  margin: 0;
}
.prestasi-meta-pill {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Riset Ilmiah Card */
.pub-highlight-box {
  background: var(--input-bg);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 14px;
}
.pub-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.pub-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 6px 0;
  font-family: 'Lora', Georgia, serif;
}
.pub-source {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.74rem;
  color: var(--accent-light);
  margin-bottom: 8px;
  font-weight: 600;
}
.pub-abstract {
  font-size: 0.75rem;
  color: var(--sub);
  line-height: 1.5;
  margin: 0;
  text-align: justify;
}
.pub-extra-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--sub);
  padding: 10px 12px;
  background: var(--input-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.pub-extra-item i {
  color: #10b981;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.pub-extra-item b {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.pub-extra-item p {
  margin: 0;
  line-height: 1.4;
}

/* Penggerak & Kepemimpinan List */
.achievement-pill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ach-pill-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--input-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.ach-check {
  font-size: 1.25rem;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}
.ach-info {
  flex: 1;
}
.ach-info b {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  line-height: 1.25;
}
.ach-info span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-light);
  display: block;
  margin-bottom: 4px;
}
.ach-info p {
  font-size: 0.74rem;
  color: var(--sub);
  line-height: 1.45;
  margin: 0;
}

/* Smart School Stats */
.smart-school-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
.s-stat-box {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.s-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.s-stat-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.s-stat-box p {
  font-size: 0.7rem;
  color: var(--sub);
  margin: 0;
  line-height: 1.35;
}

.innovation-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inno-point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--sub);
  line-height: 1.45;
}
.inno-point i {
  color: var(--accent-light);
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.inno-point b {
  color: var(--text);
}

/* Footer Quote Prestasi */
.prestasi-footer-quote {
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(37, 99, 235, 0.05));
  border-radius: 14px;
  border: 1px dashed rgba(245, 158, 11, 0.4);
  text-align: center;
  position: relative;
}
.prestasi-footer-quote i {
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.prestasi-footer-quote p {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 6px 0;
}
.prestasi-footer-quote span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold);
}

/* 5. TAB 4: SPATLAS ARCHITECTURE */
.architecture-overview-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--card-solid);
  border: 1px solid var(--border);
}
.arch-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.arch-header i {
  font-size: 1.8rem;
  color: var(--accent-light);
}
.arch-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.arch-header p {
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: var(--sub);
}

.arch-desc {
  font-size: 0.84rem;
  color: var(--sub);
  line-height: 1.55;
  margin-bottom: 18px;
}

.arch-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.arch-mod-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--input-bg);
  border: 1px solid var(--border);
}
.mod-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-light);
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mod-info b {
  font-size: 0.86rem;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}
.mod-info p {
  font-size: 0.76rem;
  color: var(--sub);
  margin: 0;
  line-height: 1.4;
}

.arch-specs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.spec-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sp-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--input-bg);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-visit-official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-visit-official:hover {
  color: var(--text);
  text-decoration: underline;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.modal-header h2 i {
  color: var(--accent-light);
  font-size: 1.35rem;
}

.close-btn {
  background: var(--input-bg);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.close-btn:hover {
  background: var(--rose);
  color: #ffffff;
  border-color: var(--rose);
}

/* Modal Inner Components */
.tunnel-input {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.tunnel-input:focus {
  border-color: var(--accent-light);
}

.action-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--input-bg);
  border-radius: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.action-link:hover {
  border-color: var(--accent-light);
  transform: translateX(4px);
  background: var(--card);
}

.tautan-card {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
  margin-bottom: 14px;
  user-select: none;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.tautan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tc-icon {
  font-size: 2.1rem;
  margin-right: 16px;
  background: rgba(255, 255, 255, 0.2);
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 14px;
  flex-shrink: 0;
}
.tc-info h4 {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.tc-info p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.92;
  line-height: 1.35;
}
.tc-action {
  margin-left: auto;
  font-size: 1.6rem;
}
.eraport-card { background: linear-gradient(135deg, #059669, #10b981); }
.dapodik-card { background: linear-gradient(135deg, #be123c, #f43f5e); }
.piket-card   { background: linear-gradient(135deg, #1e3a8a, #2563eb); }

.alat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.alat-box {
  padding: 22px 16px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  background: var(--input-bg);
  user-select: none;
}
.alat-box:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
  background: var(--card);
}
.alat-box.full-span {
  grid-column: 1 / -1;
}

.btn-primary {
  width: 100%;
  padding: 13px 18px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent-light);
  background: var(--input-bg);
}

.btn-back {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.btn-back:hover {
  border-color: var(--accent-light);
  background: var(--card);
}

/* ==========================================================================
   POSTER POP-UP PENGUMUMAN FITUR BARU
   ========================================================================== */
.poster-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.poster-modal-card {
  width: 100%;
  max-width: 560px;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  animation: posterBounceIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes posterBounceIn {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.poster-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}
.poster-close-btn:hover {
  background: var(--rose);
  color: #ffffff;
  border-color: var(--rose);
  transform: rotate(90deg);
}

.poster-badge-row {
  margin-bottom: 14px;
  padding-right: 48px;
}
.poster-pill-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.3));
  border: 1px solid var(--accent-light);
  color: var(--accent-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.poster-media {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  text-align: center;
  max-height: 260px;
}
.poster-img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.2);
}

.poster-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}
.poster-desc {
  font-size: 0.9rem;
  color: var(--sub);
  line-height: 1.65;
  margin-bottom: 22px;
}

.poster-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn-poster-cta {
  flex: 1;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 20px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-poster-cta:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: #ffffff;
}

.btn-poster-dismiss {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--sub);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-poster-dismiss:hover {
  background: var(--input-bg);
  color: var(--text);
  border-color: var(--accent-light);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (COMPREHENSIVE ALL-DEVICE SUPPORT)
   Screens: Ultra-Wide (>=1400px), Standard Desktop (1024-1399px),
   Tablets (769-1023px), Mobile / Phablets (<=768px),
   Standard Phone (<=480px), Ultra-Compact (<=360px).
   ========================================================================== */

/* 1. Ultra-Wide & Large Desktop (>= 1400px) */
@media (min-width: 1400px) {
  .container {
    padding: 24px clamp(24px, 3vw, 48px) 56px;
  }
  .dashboard-grid {
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 32px;
  }
  .button-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

/* 2. Standard Desktop & Medium Laptop (1024px to 1399px) */
@media (max-width: 1399px) and (min-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
  }
  .button-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

/* 3. Tablets & Small Laptops (769px to 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
  .container {
    padding: 16px 20px 40px;
  }
  .dashboard-grid {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 20px;
  }
  .top-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .nav-container {
    padding: 10px 20px;
  }
  .action-btn .btn-caption {
    font-size: 0.76rem;
  }
}

/* 4. Mobile Phones & Tablets (<= 768px) */
@media (max-width: 768px) {
  /* Page Padding & Spacing */
  .container {
    padding: 12px 12px 36px;
    width: 100%;
    max-width: 100%;
  }

  /* Single-Row Sticky Header */
  .top-nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .nav-container {
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
  }
  .brand {
    min-width: 0;
    flex-shrink: 1;
  }
  .brand-link {
    gap: 8px;
    min-width: 0;
  }
  .brand-logo-frame {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .brand-text {
    min-width: 0;
  }
  .brand-gov {
    font-size: 0.52rem;
    letter-spacing: 0.6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-name {
    font-size: 1.1rem;
    line-height: 1.1;
    white-space: nowrap;
  }
  .brand-sub {
    font-size: 0.58rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Executive Action Buttons on Mobile: Slim Icon Capsules in a Single Row */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }
  .action-btn {
    height: 36px;
    padding: 0 8px;
    border-radius: 9px;
    gap: 0;
    flex-shrink: 0;
  }
  .action-btn .btn-caption {
    display: none; /* Hide captions on mobile for a clean native-app toolbar */
  }
  .btn-micro-icon {
    width: 24px;
    height: 24px;
    font-size: 0.95rem;
  }
  .btn-theme-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Command Center Hero Card on Mobile */
  .hero-card {
    padding: 16px 14px;
    border-radius: 18px;
    margin-bottom: 16px;
  }
  .hero-institutional-ribbon {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }
  .inst-org {
    font-size: 0.62rem;
    line-height: 1.35;
  }
  .system-status-indicator {
    font-size: 0.65rem;
    padding: 3px 8px;
    gap: 6px;
  }
  .profile-section {
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
  }
  .avatar-wrapper img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .hero-title-row {
    gap: 8px;
    margin-bottom: 3px;
  }
  .hero-title-row h1 {
    font-size: 1.15rem;
  }
  .akreditasi-badge {
    font-size: 0.62rem;
    padding: 2px 7px;
  }
  .typewriter-text {
    font-size: 0.78rem;
    margin-bottom: 8px;
  }
  .hero-meta-chips {
    gap: 6px;
  }
  .meta-chip {
    font-size: 0.68rem;
    padding: 3px 8px;
  }
  .announcement-pill {
    padding: 8px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
    gap: 8px;
  }
  .pill-label {
    padding: 4px 8px;
    font-size: 0.62rem;
    margin-right: 0;
    letter-spacing: 0.4px;
    flex-shrink: 0;
  }
  .marquee-content {
    font-size: 0.8rem;
  }
  .quote-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 10px;
  }
  #quote-text {
    font-size: 0.78rem;
    line-height: 1.4;
  }
  #quote-author {
    font-size: 0.7rem;
  }

  /* Search Bar */
  .search-wrapper {
    margin-bottom: 16px;
    border-radius: 14px;
  }
  .search-wrapper input {
    padding: 12px 16px 12px 42px;
    font-size: 0.84rem;
  }
  .search-icon {
    left: 14px;
    font-size: 1.2rem;
  }

  /* Dashboard Grid Stacking & Symmetrical Sidebar */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .clock-card {
    grid-column: 1;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #time {
    font-size: 2.2rem;
    margin-bottom: 2px;
  }
  #full-date {
    font-size: 0.74rem;
  }
  .weather-card {
    grid-column: 2;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .w-main {
    font-size: 1.5rem;
    margin-bottom: 2px;
  }
  .w-main i {
    font-size: 1.85rem;
  }
  #w-desc {
    font-size: 0.74rem;
  }
  .status-card {
    grid-column: 1 / -1;
    padding: 14px 16px;
  }
  .agenda-box {
    grid-column: 1 / -1;
    padding: 16px 14px;
  }
  .agenda-item {
    padding: 10px 12px;
    gap: 10px;
    margin-top: 8px;
  }
  .ag-date {
    min-width: 40px;
    font-size: 1rem;
    padding: 3px 5px;
  }
  .ag-info b {
    font-size: 0.82rem;
  }
  .ag-info p {
    font-size: 0.72rem;
  }

  /* Launchpad Area on Mobile */
  .top-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }
  .mega-card {
    padding: 18px 16px;
    min-height: 125px;
    border-radius: 18px;
  }
  .mega-icon {
    font-size: 4.2rem;
    right: 10px;
    bottom: -10px;
    opacity: 0.12;
  }
  .mega-text h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }
  .mega-text p {
    font-size: 0.78rem;
    line-height: 1.35;
    max-width: 88%;
  }
  .mega-action-pill {
    margin-top: 10px;
    padding: 5px 12px;
    font-size: 0.72rem;
  }
  .rohani-card {
    padding: 16px 14px;
    min-height: auto;
    border-radius: 18px;
  }
  #quote-agama-text {
    font-size: 0.8rem;
    line-height: 1.45;
  }
  #quote-agama-sumber {
    font-size: 0.7rem;
    margin-top: 6px;
  }

  /* 2-Column Symmetrical Button Grid with Micro Badges */
  .button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .btn-item {
    padding: 12px 10px;
    gap: 10px;
    min-height: 64px;
    border-radius: 14px;
    position: relative;
  }
  .btn-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .btn-text-content {
    flex: 1;
    min-width: 0;
  }
  .btn-label {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .menu-pill-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.52rem;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
    letter-spacing: 0.3px;
  }

  /* Social Footer: Single 3-Column Compact Bar on Mobile */
  .social-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }
  .soc-btn {
    padding: 10px 6px;
    font-size: 0.7rem;
    gap: 5px;
    border-radius: 10px;
  }

  /* Mading Box */
  .luxury-mading {
    padding: 16px 14px;
    border-radius: 18px;
    margin-top: 16px;
  }
  .mading-content-area {
    padding: 14px 14px;
    border-radius: 12px;
  }
  .mading-text-glowing {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  /* Footer */
  .powered-footer {
    padding: 20px 14px;
    margin: 24px 0 10px;
    border-radius: 18px;
  }

  /* ========================================================================
     MODAL POPUPS & TABBED INSTITUTIONAL DIALOG ON MOBILE
     ======================================================================== */
  .modal-overlay {
    padding: 8px;
  }
  .modal-card {
    padding: 16px 12px;
    border-radius: 18px;
    max-height: 92vh;
    width: 100%;
  }
  .modal-card.modal-lg {
    max-width: 860px;
    width: 100%;
  }
  .modal-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .modal-header h2 {
    font-size: 0.92rem;
  }
  .close-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    border-radius: 8px;
  }

  /* 2x2 Clean Segmented Grid for Modal Tabs (No Awkward Scrolling!) */
  .inst-tab-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    overflow-x: visible;
  }
  .inst-tab-nav-btn {
    min-width: 0;
    padding: 8px 6px;
    font-size: 0.72rem;
    border-radius: 8px;
    justify-content: center;
    gap: 5px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  .inst-tab-nav-btn i {
    font-size: 0.95rem;
  }

  /* Tab 1: Executive Lead Card & Speech */
  .executive-lead-card {
    flex-direction: column;
    text-align: center;
    padding: 14px 12px;
    gap: 12px;
    margin-bottom: 12px;
    border-radius: 16px;
  }
  .portrait-gold-rim {
    width: 110px;
    height: 140px;
    border-radius: 14px;
  }
  .executive-lead-name {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }
  .executive-lead-nip, .executive-lead-unit {
    justify-content: center;
    font-size: 0.74rem;
  }
  .lead-competence-tags {
    justify-content: center;
    gap: 4px;
  }
  .c-tag {
    font-size: 0.66rem;
    padding: 2px 7px;
  }
  .editorial-speech-paper {
    padding: 16px 12px;
    border-radius: 16px;
  }
  .speech-title {
    font-size: 1rem;
    line-height: 1.35;
  }
  .editorial-prose {
    font-size: 0.88rem;
    line-height: 1.65;
  }
  .editorial-prose p {
    text-align: left;
    margin-bottom: 12px;
  }
  .editorial-prose .prose-lead {
    font-size: 0.92rem;
    line-height: 1.55;
    padding-left: 8px;
    margin-bottom: 12px;
  }
  .speech-sign-wrapper {
    justify-content: center;
    margin-top: 18px;
    padding-top: 14px;
  }
  .signature-display-wrap {
    justify-content: center;
    min-height: 60px;
    margin: -4px 0 -2px 0;
  }
  .kepsek-official-signature {
    max-width: 140px;
  }
  .speech-sign-box {
    text-align: center;
    min-width: 0;
  }

  /* Tab 2: Prestasi & Rekam Jejak */
  .prestasi-hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 14px 12px;
    gap: 10px;
    border-radius: 14px;
  }
  .hero-crest-badge {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    margin: 0 auto;
    border-radius: 10px;
  }
  .hero-name {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }
  .hero-motto {
    font-size: 0.76rem;
    line-height: 1.45;
  }
  .prestasi-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .prestasi-card {
    padding: 14px 12px;
    border-radius: 14px;
  }
  .prestasi-card-header {
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .p-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
    border-radius: 10px;
  }
  .prestasi-card-header h5 {
    font-size: 0.88rem;
  }
  .edu-degree {
    font-size: 0.82rem;
  }
  .edu-campus {
    font-size: 0.74rem;
  }
  .edu-desc {
    font-size: 0.72rem;
  }
  .pub-highlight-box {
    padding: 10px;
    border-radius: 10px;
  }
  .pub-title {
    font-size: 0.86rem;
  }
  .pub-abstract {
    font-size: 0.72rem;
    text-align: left;
  }
  .smart-school-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .s-stat-num {
    font-size: 1.35rem;
  }
  .s-stat-label {
    font-size: 0.7rem;
  }
  .s-stat-box p {
    font-size: 0.65rem;
  }
  .prestasi-footer-quote {
    padding: 12px 10px;
    border-radius: 12px;
  }
  .prestasi-footer-quote p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  /* Tab 3: Piagam Apresiasi */
  .official-charter-frame {
    padding: 6px;
    border-radius: 16px;
  }
  .charter-inner-border {
    padding: 16px 12px;
    border-radius: 12px;
  }
  .charter-crest {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
  .charter-title {
    font-size: 1.05rem;
  }
  .charter-motto {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }
  .charter-recipient-card {
    padding: 10px 8px;
  }
  .recipient-fullname {
    font-size: 1rem;
  }
  .charter-pillars-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pillar-box {
    padding: 10px 8px;
  }
  .charter-golden-pledge {
    padding: 10px 12px;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  /* Tab 4: Arsitektur */
  .architecture-overview-card {
    padding: 14px 12px;
    border-radius: 16px;
  }
  .arch-modules-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .arch-mod-item {
    padding: 10px 8px;
  }
  .spec-tags {
    justify-content: center;
  }
  .btn-visit-official {
    justify-content: center;
    font-size: 0.78rem;
  }

  /* Poster Modal */
  .poster-modal-card {
    padding: 18px 14px;
    border-radius: 18px;
    max-width: 95%;
  }
  .poster-title {
    font-size: 1.15rem;
  }
  .poster-desc {
    font-size: 0.82rem;
  }
  .poster-actions {
    flex-direction: column;
    gap: 8px;
  }
  .btn-poster-cta, .btn-poster-dismiss {
    width: 100%;
  }

  /* Tautan Modal */
  .tautan-card {
    padding: 14px 14px;
    border-radius: 14px;
    margin-bottom: 10px;
  }
  .tc-icon {
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
    margin-right: 12px;
    border-radius: 10px;
  }
  .tc-info h4 {
    font-size: 0.95rem;
  }
  .tc-info p {
    font-size: 0.74rem;
  }

  /* Alat Bantu Grid */
  .alat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .alat-box {
    padding: 16px 10px;
    border-radius: 12px;
  }
}

/* 5. Compact Smartphones (<= 480px) */
@media (max-width: 480px) {
  .brand-name {
    font-size: 1.02rem;
  }
  .brand-logo-frame {
    width: 34px;
    height: 34px;
  }
  .action-btn {
    height: 34px;
    padding: 0 6px;
  }
  .btn-micro-icon {
    width: 22px;
    height: 22px;
    font-size: 0.88rem;
  }
  .btn-theme-toggle {
    width: 34px;
    height: 34px;
  }
  .button-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .btn-item {
    padding: 10px 8px;
    min-height: 60px;
  }
  .btn-icon-wrapper {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }
  .btn-label {
    font-size: 0.74rem;
  }
  #time {
    font-size: 2rem;
  }
}

/* 6. Ultra-Compact Phones (<= 360px, e.g. iPhone SE 1st gen, Galaxy Fold Cover) */
@media (max-width: 360px) {
  .container {
    padding: 10px 8px 30px;
  }
  .nav-container {
    padding: 6px 8px;
  }
  .brand-sub {
    display: none;
  }
  .brand-gov {
    display: none;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .clock-card, .weather-card {
    grid-column: 1 / -1;
  }
  .button-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .btn-label {
    font-size: 0.7rem;
  }
  .inst-tab-nav-btn {
    font-size: 0.68rem;
    padding: 6px 4px;
  }
}
