/* ==============================================================================
   PORTAL DIGITALISASI ADMINISTRASI SEKOLAH — UPTD SDN SADARTENGAH
   Theme: Enterprise Educational Elegance (Emerald, Slate Navy, Warm Gold)
   Standards: Anti-Slop Design, Mobile-First Thumb Navigation, Strict Print Isolation
   Lead Systems Architect & Custodian: Anton Maghfiron (A.D.A COMPUTER)
   ============================================================================== */

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

:root {
  --primary: #047857;         /* Emerald 700 */
  --primary-dark: #064e3b;    /* Emerald 900 */
  --primary-light: #10b981;   /* Emerald 500 */
  --primary-subtle: #ecfdf5;  /* Emerald 50 */
  
  --secondary: #0f172a;       /* Slate 900 */
  --secondary-light: #1e293b; /* Slate 800 */
  --surface: #ffffff;
  --surface-alt: #f8fafc;     /* Slate 50 */
  --border: #e2e8f0;          /* Slate 200 */
  --border-strong: #cbd5e1;   /* Slate 300 */
  
  --accent: #d97706;          /* Amber 600 */
  --accent-light: #fef3c7;    /* Amber 100 */
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverted: #ffffff;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --bottom-bar-height: 68px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--surface-alt);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottom-bar-height) + 24px);
  min-height: 100vh;
  position: relative;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* App Header */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.25);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 16px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
}

.brand-text p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  transition: all var(--transition-normal);
}

.btn-header-action:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
}

.btn-header-action.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-header-action.primary:hover {
  background: var(--primary-dark);
}

/* Hero Section (VIP Welcome & Panen Karya Banner) */
.hero-banner {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  color: white;
  padding: 24px 16px 28px 16px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
}

.vip-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef3c7;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 13px;
  color: #cbd5e1;
  max-width: 720px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: #94a3b8;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Quick VIP Action Banner */
.vip-interactive-strip {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-top: 18px;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

@media (min-width: 640px) {
  .vip-interactive-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.vip-strip-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vip-strip-text p {
  font-size: 12px;
  color: var(--text-muted);
}

.vip-strip-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.vip-strip-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.4);
}

/* Category Filter Tabs (2-Tier Card Grid / Anti-Stacking with Slider Controls) */
.category-nav-section {
  max-width: 1280px;
  margin: 16px auto 0 auto;
  padding: 0 16px;
  position: relative;
}

.category-nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--secondary);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  z-index: 5;
  user-select: none;
}

.nav-slider-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.08);
}

.nav-pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px;
  scroll-behavior: smooth;
  flex-grow: 1;
}

@media (min-width: 1280px) {
  .nav-pills-scroll {
    flex-wrap: wrap; /* Auto-wrap on large monitors so nothing is ever truncated! */
  }
  .nav-slider-arrow {
    display: none;
  }
}

.category-tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.category-tab-btn:hover {
  background: var(--surface-alt);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.category-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(4, 120, 87, 0.25);
}

.category-tab-btn .badge-count {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.category-tab-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* Main Content Area */
.app-viewport {
  max-width: 1280px;
  margin: 20px auto 40px auto;
  padding: 0 16px;
}

/* View Sections (Switched dynamically) */
.view-section {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Headers */
.section-header-box {
  margin-bottom: 18px;
}

.section-header-box h2 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Responsive Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Standard Content Card */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-top-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-tag.emerald {
  background: var(--primary-subtle);
  color: var(--primary-dark);
}

.badge-tag.amber {
  background: var(--accent-light);
  color: #92400e;
}

.badge-tag.slate {
  background: #f1f5f9;
  color: #334155;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #475569;
}

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

.card-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.btn-card-action {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-card-action.primary {
  background: var(--primary);
  color: white;
}

.btn-card-action.primary:hover {
  background: var(--primary-dark);
}

.btn-card-action.outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-card-action.outline:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
}

/* Profil Guru Card (Hero Profile) */
.profile-showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .profile-showcase-card {
    grid-template-columns: 200px 1fr;
    align-items: center;
  }
}

.profile-avatar-wrap {
  text-align: center;
}

.profile-avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-subtle);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.profile-details h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-title-tag {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.profile-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 16px;
  font-size: 12px;
}

.profile-badge-cell {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.profile-badge-cell span.label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.profile-badge-cell span.value {
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
}

/* CP, TP, ATP Flowchart Visualizer */
.flowchart-step-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.flowchart-node {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 14px;
  font-size: 13px;
}

.flowchart-node strong {
  display: block;
  color: var(--secondary);
  margin-bottom: 4px;
}

/* Mobile-First Bottom Navigation Bar (Docked at Bottom) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 0;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item .icon {
  font-size: 20px;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.bottom-nav-item .label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.bottom-nav-item:active {
  transform: scale(0.94);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active .icon {
  transform: translateY(-2px);
}

.bottom-nav-item.active::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 18px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--primary);
}

/* Desktop Adaptation for Navigation */
@media (min-width: 1024px) {
  body {
    padding-bottom: 24px;
  }
  
  .mobile-bottom-bar {
    position: static;
    height: auto;
    background: transparent;
    border-top: none;
    box-shadow: none;
    display: none; /* In desktop, top tabs and header suffice, or optionally keep as fixed dock */
  }

  .desktop-nav-header {
    display: flex !important;
  }
}

.desktop-nav-header {
  display: none;
  align-items: center;
  gap: 6px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--surface);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}

.modal-card.large {
  max-width: 860px;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-alt);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  transition: all var(--transition-fast);
}

.btn-close-modal:hover {
  background: #e2e8f0;
  color: var(--secondary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  line-height: 1.6;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Interactive VIP Quiz Container */
.quiz-question-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}

.quiz-question-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 14px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-opt-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-opt-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.quiz-opt-btn.correct {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
}

.quiz-opt-btn.wrong {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.quiz-explanation-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  display: none;
}

.quiz-explanation-box.show {
  display: block;
}

/* Word Search Game Grid */
.word-search-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  max-width: 360px;
  margin: 0 auto 18px auto;
}

.ws-cell {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.ws-cell:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-light);
}

.ws-cell.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary-dark);
}

.ws-cell.found {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* Standee Barcode Card (Untuk Meja Pameran) */
.standee-frame {
  background: white;
  border: 8px solid #064e3b;
  border-radius: var(--radius-xl);
  padding: 30px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.standee-qr-box {
  background: white;
  padding: 16px;
  border-radius: var(--radius-lg);
  display: inline-block;
  margin: 16px 0;
  border: 2px dashed #047857;
}

/* 3-Column Enterprise Footer (Creator Attribution Directive A.D.A COMPUTER) */
.app-footer {
  background: #0b1322;
  color: #94a3b8;
  border-top: 2px solid #1e293b;
  padding: 40px 16px 28px 16px;
  font-size: 13px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.footer-brand-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.footer-brand-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list li a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}

.footer-links-list li a:hover {
  color: #10b981;
}

.footer-server-card {
  background: #152033;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.footer-server-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.footer-server-url {
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom-bar {
  max-width: 1280px;
  margin: 30px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  font-size: 12px;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
    text-align: left;
  }
}

/* ==============================================================================
   STRICT PILLAR 6: PRINT ISOLATION & ANTI-BACKGROUND LEAK
   ============================================================================== */
@media print {
  /* Hide all app chrome, headers, footers, bottom bars, modals overlays */
  .no-print,
  .app-header,
  .mobile-bottom-bar,
  .hero-banner,
  .category-nav-section,
  .modal-overlay:not(.print-mode),
  .app-footer,
  .btn-card-action,
  .btn-header-action,
  #modalVipQuiz,
  #modalQrCode {
    display: none !important;
    visibility: hidden !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12pt !important;
  }

  .printable-document-area,
  .standee-frame {
    display: block !important;
    visibility: visible !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    page-break-after: avoid;
  }

  .content-card {
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
  }
}
