/* ==========================================================================
   PMAS ARID AGRICULTURE UNIVERSITY RAWALPINDI — OFFICIAL PANAFLEX TEMPLATE
   Format Reference: TapID Academic Wall Hanging Infographic
   Specifications: 4ft (Height) × 2ft (Width) = 1:2 Portrait Ratio
   Print standard: Solid Vector Print, ZERO Glass/Blur, 6-7ft Distance Legibility
   ========================================================================== */

:root {
  /* Official UAAR Dark Green & Theme Variables */
  --uaar-green: #0b6638;
  --uaar-green-dark: #074726;
  --uaar-green-light: #15803d;
  --uaar-gold: #c69214;

  /* Theme Active Colors */
  --theme-primary: var(--uaar-green);
  --theme-primary-dark: var(--uaar-green-dark);
  --theme-border: #0b6638;
  --theme-text-dark: #111827;

  /* Solid Crisp Canvas Colors (NO BLUR, NO GLASS EFFECT) */
  --solid-white: #ffffff;
  --poster-width: 820px;
  --poster-height: 1640px;
  --poster-font-scale: 1;

  /* Typography & Font Type Customization */
  --poster-font-family: 'Montserrat', sans-serif;
  --poster-heading-font: 'Montserrat', sans-serif;
  --poster-body-font: 'Inter', system-ui, -apple-system, sans-serif;
  --poster-heading-color: var(--theme-primary);
  --poster-body-color: #0f172a;
  --poster-ribbon-bg: var(--theme-primary);
  --poster-ribbon-text: #ffffff;
  --poster-roll-color: var(--theme-primary);
  --font-supervisor-family: 'Montserrat', sans-serif;
  --font-supervisor-weight: 500;
  --font-supervisor-color: #111827;
  --font-supervisor-role-color: #374151;
  --font-supervisor-uni-color: #64748b;

  /* Studio Shell UI (Outside Poster) - CLEAN WHITE / LIGHT THEME */
  --ui-bg: #f8fafc;
  --ui-panel: #ffffff;
  --ui-panel-border: #e2e8f0;
  --ui-panel-hover: #f1f5f9;
  --ui-text: #0f172a;
  --ui-text-secondary: #334155;
  --ui-text-muted: #64748b;
  --ui-accent: #0b6638;
  --ui-accent-light: #ecfdf5;
}

/* ================= THEME PALETTES ================= */
body.theme-uaar-green {
  --theme-primary: #0b6638;
  --theme-primary-dark: #074726;
  --theme-border: #0b6638;
}

body.theme-academic-navy {
  --theme-primary: #0f2b5c;
  --theme-primary-dark: #081734;
  --theme-border: #0f2b5c;
}

body.theme-crimson-maroon {
  --theme-primary: #7f1d1d;
  --theme-primary-dark: #450a0a;
  --theme-border: #7f1d1d;
}

body.theme-monochrome-print {
  --theme-primary: #18181b;
  --theme-primary-dark: #000000;
  --theme-border: #18181b;
}

/* ================= BASE STYLES ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--ui-bg);
  color: var(--ui-text);
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= APP HEADER (CLEAN, SOLID WHITE, RESPONSIVE) ================= */
.app-header {
  height: 52px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--ui-panel-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem;
  z-index: 100;
  flex-shrink: 0;
  gap: 0.5rem;
  overflow: hidden;
  box-sizing: border-box;
}

.header-left-zone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: var(--uaar-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid #16a34a;
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.badge-ratio {
  font-size: 0.65rem;
  background-color: #0284c7;
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.header-center-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.compact-select-group {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  color: #475569;
  flex-shrink: 0;
}

.compact-select-group .select-icon {
  font-size: 0.75rem;
  color: #0b6638;
}

.compact-select {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.compact-header-color {
  width: 20px;
  height: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  background: transparent;
}

.compact-header-color::-webkit-color-swatch-wrapper {
  padding: 1px;
}

.compact-header-color::-webkit-color-swatch {
  border-radius: 3px;
  border: none;
}

.header-right-zone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-header-export {
  padding: 0.38rem 0.8rem;
  font-size: 0.80rem;
  font-weight: 700;
}

/* Dropdown Menu Cards */
.dropdown-wrapper {
  position: relative;
}

.btn-dropdown-trigger {
  padding: 0.38rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-help-trigger {
  width: 32px;
  height: 32px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.btn-help-trigger:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.dropdown-menu-card {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0.4rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dropdown-menu-card.right-aligned {
  left: auto;
  right: 0;
  width: 280px;
}

.menu-item-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: none;
  background: none;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background-color 0.15s ease;
  width: 100%;
}

.menu-item-btn:hover {
  background-color: #f1f5f9;
}

.menu-icon {
  font-size: 1rem;
  color: #0b6638;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.menu-text-wrap {
  display: flex;
  flex-direction: column;
}

.menu-text-wrap strong {
  font-size: 0.82rem;
  color: #0f172a;
}

.menu-text-wrap small {
  font-size: 0.72rem;
  color: #64748b;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.80rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.app-header .btn,
.app-header .btn-license-badge,
.app-header .compact-select-group {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-wizard {
  background: linear-gradient(135deg, #0b6638 0%, #15803d 100%);
  color: #ffffff;
  border: 1px solid #16a34a;
  box-shadow: 0 2px 5px rgba(11, 102, 56, 0.25);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-wizard .btn-text-short {
  display: none;
}

.btn-wizard:hover {
  background: linear-gradient(135deg, #074726 0%, #0b6638 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(11, 102, 56, 0.3);
}

.btn-primary {
  background-color: #0b6638;
  color: #ffffff;
  border-color: #074726;
  box-shadow: 0 1px 2px rgba(11, 102, 56, 0.2);
}

.btn-primary:hover {
  background-color: #074726;
}

.btn-secondary {
  background-color: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-outline {
  background-color: #f0fdf4;
  color: #0b6638;
  border-color: #16a34a;
}

.btn-outline:hover {
  background-color: #0b6638;
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: #64748b;
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.btn-icon {
  background-color: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 0.45rem 0.65rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-icon:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-sidebar-toggle {
  margin-right: 0.25rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 0.35rem 0.6rem;
  font-size: 0.76rem;
}

/* ================= WORKSPACE ================= */
.studio-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
}

/* ================= LEFT SIDEBAR (CLEAN WHITE / LIGHT THEME) ================= */
.studio-sidebar {
  width: 360px;
  background-color: #ffffff;
  border-right: 1px solid var(--ui-panel-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.03);
  z-index: 10;
}

.studio-sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  margin-left: -1px;
  border-right: none;
  visibility: hidden;
}

.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--ui-panel-border);
  background-color: #f8fafc;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--ui-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--ui-text);
  background-color: #f1f5f9;
}

.tab-btn.active {
  color: #0b6638;
  background-color: #ffffff;
  border-bottom-color: #0b6638;
}

.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: #ffffff;
}

.tab-content.active {
  display: block;
}

.panel-section {
  background-color: #f8fafc;
  border: 1px solid var(--ui-panel-border);
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.panel-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.panel-section h3 i {
  color: #0b6638;
}

.section-hint {
  font-size: 0.75rem;
  color: var(--ui-text-muted);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ui-text-secondary);
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  border-color: #0b6638;
  box-shadow: 0 0 0 3px rgba(11, 102, 56, 0.12);
}

textarea.form-control {
  resize: vertical;
  line-height: 1.4;
}

.file-input {
  display: none;
}

.image-upload-wrapper {
  display: flex;
  gap: 0.5rem;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #334155;
  padding: 0.35rem 0;
  cursor: pointer;
}

.toggle-item input[type="checkbox"] {
  accent-color: #0b6638;
  width: 16px;
  height: 16px;
}

.slider-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.slider-control input[type="range"] {
  flex: 1;
  accent-color: #0b6638;
}

.slider-control span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0b6638;
  min-width: 40px;
}

.spec-card {
  background-color: #ffffff;
  border: 1px solid var(--ui-panel-border);
  border-radius: 6px;
  padding: 0.75rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--ui-panel-border);
  font-size: 0.75rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  color: #64748b;
  font-weight: 500;
}

.spec-val {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

.sidebar-footer {
  padding: 0.75rem 1rem;
  background-color: #f8fafc;
  border-top: 1px solid var(--ui-panel-border);
  font-size: 0.72rem;
  color: var(--ui-text-muted);
}

/* ================= RIGHT / CANVAS STAGE (CLEAN LIGHT THEME) ================= */
.canvas-stage {
  flex: 1;
  background-color: #f1f5f9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ================= FLOATING DOCK BAR (FIGMA / CANVA BOTTOM DOCK) ================= */
.stage-dock-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  z-index: 50;
  white-space: nowrap;
  user-select: none;
  transition: box-shadow 0.2s ease;
}

.stage-dock-bar:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(0, 0, 0, 0.06);
}

.dock-control-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dock-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dock-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.dock-btn:active {
  transform: scale(0.95);
}

.dock-btn-text {
  padding: 0.25rem 0.65rem;
  height: 28px;
  border-radius: 6px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.dock-btn-text:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.dock-btn-text:active {
  transform: scale(0.97);
}

.dock-zoom-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0b6638;
  min-width: 44px;
  text-align: center;
}

.dock-font-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0b6638;
  min-width: 38px;
  text-align: center;
}

.dock-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dock-sep {
  width: 1px;
  height: 18px;
  background-color: #e2e8f0;
  margin: 0 0.2rem;
}

.dock-badge {
  font-size: 0.72rem;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ================= CANVAS SCROLL VIEWPORT ================= */
.canvas-scroll-wrapper {
  flex: 1;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1.25rem 6.5rem 1.25rem;
  background-color: #f1f5f9;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  position: relative;
}

/* ================= STEP-BY-STEP CREATION WIZARD MODAL ================= */
.wizard-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(15, 23, 42, 0.72);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wizard-modal-overlay.active {
  display: flex;
}

.wizard-modal-card {
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: wizardPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wizardPop {
  0% {
    transform: scale(0.96) translateY(8px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.wizard-header {
  padding: 1.1rem 1.4rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.wizard-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #ecfdf5;
  color: #0b6638;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid #a7f3d0;
}

.wizard-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.wizard-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.wizard-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wizard-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s;
}

.wizard-close-btn:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

/* Stepper Progress Bar */
.wizard-stepper {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.4rem;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.step-indicator.active {
  opacity: 1;
}

.step-indicator.completed {
  opacity: 0.95;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.step-indicator.active .step-num {
  background-color: #0b6638;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 102, 56, 0.2);
}

.step-indicator.completed .step-num {
  background-color: #10b981;
  color: #ffffff;
}

.step-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.step-indicator.active .step-name {
  color: #0b6638;
  font-weight: 700;
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: #e2e8f0;
  margin: 0 0.65rem;
  min-width: 16px;
}

/* Wizard Body */
.wizard-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.3rem 1.5rem;
  background-color: #ffffff;
}

.wizard-step-panel {
  display: none;
}

.wizard-step-panel.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-panel-header {
  margin-bottom: 1.1rem;
}

.step-panel-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-panel-header h3 i {
  color: #0b6638;
}

.step-panel-header p {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.wizard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-tip {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.objectives-inputs-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wizard-tech-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.wiz-tech-chip {
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
}

.wiz-tech-chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.wizard-export-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.wiz-export-box {
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s;
}

.wiz-export-box.highlight-export {
  border-color: #0b6638;
  background-color: #f0fdf4;
  box-shadow: 0 2px 8px rgba(11, 102, 56, 0.1);
}

.wiz-export-box:hover {
  border-color: #0b6638;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 102, 56, 0.15);
  background-color: #ffffff;
}

.wiz-box-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ecfdf5;
  color: #0b6638;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.wiz-export-box h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.wiz-export-box p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
}

.celebration-badge {
  font-size: 2.2rem;
  color: #0b6638;
  margin-bottom: 0.5rem;
}

/* Wizard Footer */
.wizard-footer {
  padding: 0.85rem 1.4rem;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-step-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b6638;
}

/* ================= MOBILE BLOCKER SCREEN (NEVER OPENS ON MOBILE) ================= */
.mobile-blocker-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: #0f172a;
}

.mobile-blocker-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18);
  padding: 2rem 1.5rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mobile-blocker-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  color: #0b6638;
  margin-bottom: 0.25rem;
}

.no-mobile-pill {
  position: relative;
  font-size: 1.7rem;
  color: #94a3b8;
}

.red-slash {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 125%;
  height: 3px;
  background-color: #ef4444;
  transform: rotate(-45deg);
  border-radius: 2px;
}

.mobile-blocker-tag {
  background-color: #fee2e2;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #fecaca;
}

.mobile-blocker-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.mobile-blocker-text {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
}

.mobile-specs-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #334155;
}

.spec-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copy-link {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  justify-content: center;
}

.license-text-short {
  display: none;
}
.license-text-full {
  display: inline;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN FOR LAPTOPS, TABLETS & COMPACT DISPLAYS
   ========================================================================== */

/* 1. MOBILE PHONE BLOCKER (Strictly for small portrait phones under 580px) */
@media screen and (max-width: 580px) and (orientation: portrait) {
  .mobile-blocker-screen {
    display: flex !important;
  }
}

.sidebar-backdrop {
  display: none;
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  z-index: 99;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sidebar-backdrop.active {
  display: block;
}

/* 2. LAPTOP BREAKPOINT 1: 1201px - 1400px (e.g. 1366x768 Standard Laptops) */
@media screen and (max-width: 1400px) {
  .app-header {
    height: 52px;
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .header-left-zone {
    gap: 0.5rem;
  }

  .header-center-zone {
    gap: 0.4rem;
  }

  .header-right-zone {
    gap: 0.4rem;
  }

  .brand-title {
    font-size: 0.92rem;
  }

  .badge-ratio {
    display: none;
  }

  .btn-wizard {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  .btn-wizard .btn-text-full {
    display: none !important;
  }

  .btn-wizard .btn-text-short {
    display: inline !important;
  }

  .hide-on-laptop {
    display: none !important;
  }

  .studio-sidebar {
    width: 310px;
  }

  .tab-btn {
    padding: 0.65rem 0.3rem;
    font-size: 0.74rem;
  }

  .stage-dock-bar {
    padding: 0.3rem 0.6rem;
    gap: 0.35rem;
    bottom: 12px;
    max-width: fit-content;
  }

  .dock-status-group {
    display: none !important;
  }

  .dock-hide-small {
    display: none !important;
  }

  .dock-btn-label {
    display: none !important;
  }

  .license-text-full {
    display: none !important;
  }

  .license-text-short {
    display: inline !important;
  }

  .whatsapp-widget-container {
    bottom: 14px;
    right: 14px;
  }

  .whatsapp-fab-trigger {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }
}

/* 3. LAPTOP BREAKPOINT 2: 961px - 1280px (e.g. 1024x768, 1280x720, or scaled laptops) */
@media screen and (max-width: 1280px) {
  .app-header {
    height: 50px;
    padding: 0 0.55rem;
    gap: 0.35rem;
  }

  .header-left-zone {
    gap: 0.4rem;
  }

  .brand-badge {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .brand-title {
    font-size: 0.85rem;
  }

  .compact-select {
    font-size: 0.72rem;
  }

  .btn {
    padding: 0.32rem 0.55rem;
    font-size: 0.75rem;
  }

  .btn-header-export .btn-text {
    display: none !important;
  }

  .btn-header-export {
    padding: 0.35rem 0.65rem !important;
  }

  .hide-on-tablet {
    display: none !important;
  }

  .studio-sidebar {
    width: 280px;
  }

  .sidebar-tabs {
    flex-wrap: nowrap;
  }

  .tab-btn {
    padding: 0.55rem 0.2rem;
    font-size: 0.72rem;
    gap: 0.25rem;
  }

  .panel-section {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .dock-btn-text {
    padding: 0.25rem 0.45rem;
    font-size: 0.72rem;
  }

  .stage-dock-bar {
    max-width: 90vw;
    bottom: 10px;
  }
}

/* 4. COMPACT / SPLIT-SCREEN LAPTOP BREAKPOINT: <= 960px */
@media screen and (max-width: 960px) {
  .mobile-blocker-screen {
    display: none !important;
  }

  .app-header {
    height: 48px;
    padding: 0 0.45rem;
  }

  .brand-title {
    display: none;
  }

  /* Off-canvas slide-out drawer sidebar on split screens & small laptop windows */
  .studio-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 1000;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .studio-sidebar.open-drawer {
    transform: translateX(0);
    visibility: visible;
  }

  .studio-sidebar.collapsed {
    transform: translateX(-100%) !important;
  }

  .btn-sidebar-toggle {
    background-color: #0b6638;
    color: #ffffff;
    border-color: #074726;
  }

  .canvas-stage {
    width: 100%;
  }

  .stage-dock-bar {
    gap: 0.25rem;
    padding: 0.25rem 0.45rem;
    bottom: 8px;
    transform: translateX(-50%) scale(0.92);
  }
}

/* 5. SHORT LAPTOP HEIGHT OPTIMIZATION (e.g. 768px laptop height where viewport is 520px - 650px) */
@media screen and (max-height: 820px) {
  .app-header {
    height: 48px;
  }

  .canvas-scroll-wrapper {
    padding: 1rem 1rem 4.5rem 1rem;
  }

  .stage-dock-bar {
    bottom: 8px;
    padding: 0.25rem 0.5rem;
  }

  .dock-btn {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }

  .dock-btn-text {
    height: 26px;
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
  }

  .wizard-modal-card {
    max-height: 95vh;
  }

  .wizard-header {
    padding: 0.6rem 1.2rem;
  }

  .wizard-header-icon {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .wizard-title {
    font-size: 1.05rem;
  }

  .wizard-subtitle {
    font-size: 0.74rem;
  }

  .wizard-stepper {
    padding: 0.4rem 1rem;
  }

  .wizard-body {
    padding: 0.8rem 1.2rem;
  }

  .step-panel-header {
    margin-bottom: 0.65rem;
  }

  .wizard-footer {
    padding: 0.5rem 1.2rem;
  }

  .wizard-export-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  .wiz-export-box {
    padding: 0.75rem;
  }
}

/* ================= TID STATUS ALERTS (PAYMENT VERIFICATION QUEUE) ================= */
.tid-status-alert {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tid-status-alert.alert-pending {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.tid-status-alert.alert-approved {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.tid-status-alert.alert-rejected {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media screen and (min-width: 901px) and (max-width: 1180px) {
  .studio-sidebar {
    width: 300px;
  }
}

/* ================= POSTER SCALING WRAPPER ================= */
.poster-scale-wrapper {
  width: calc(var(--poster-width, 820px) * var(--current-zoom, 0.45));
  height: calc(var(--poster-actual-height, 1640px) * var(--current-zoom, 0.45));
  flex-shrink: 0;
  margin: 0 auto;
  position: relative;
  transition: width 0.12s ease-out, height 0.12s ease-out;
}

/* ==========================================================================
   OFFICIAL 4FT X 2FT PANAFLEX POSTER CONTAINER (1:2 VERTICAL PORTRAIT)
   Matching the reference TapID format with thick outer green border
   ========================================================================== */
.panaflex-poster {
  --poster-font-scale: 1;
  --font-title-size: calc(1.85rem * var(--poster-font-scale, 1));
  --font-subtitle-size: calc(1.15rem * var(--poster-font-scale, 1));
  --font-ribbon-size: calc(1.15rem * var(--poster-font-scale, 1));
  --font-p-size: calc(1.22rem * var(--poster-font-scale, 1));
  --font-obj-size: calc(1.18rem * var(--poster-font-scale, 1));
  --font-member-size: calc(1.05rem * var(--poster-font-scale, 1));
  --font-supervisor-size: calc(1.22rem * var(--poster-font-scale, 1));
  width: var(--poster-width, 820px);
  min-width: var(--poster-width, 820px);
  max-width: var(--poster-width, 820px);
  min-height: var(--poster-height, 1640px);
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  transform: scale(var(--current-zoom, 0.45));
  flex-shrink: 0;
  box-sizing: border-box;
  background-color: #ffffff;
  color: var(--poster-body-color, #111827);
  font-family: var(--poster-font-family, var(--poster-body-font, 'Montserrat', sans-serif));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px #000000;
  display: flex;
  flex-direction: column;
  font-size: calc(16px * var(--poster-font-scale, 1));
  line-height: 1.5;
  transition: transform 0.12s ease-out;
  /* NO BLURRY EFFECTS - CRISP VECTOR PRINT READY */
}

/* ================= WHOLE DESIGN TYPOGRAPHY & COLOR INHERITANCE ================= */
.panaflex-poster h1,
.panaflex-poster h2,
.panaflex-poster h3,
.panaflex-poster .project-main-name,
.panaflex-poster .project-subtitle-text,
.panaflex-poster .green-ribbon-title,
.panaflex-poster .sub-uni,
.panaflex-poster .sub-dept {
  font-family: var(--poster-heading-font, var(--poster-font-family, 'Montserrat', sans-serif));
  transition: font-family 0.15s ease, color 0.15s ease;
}

.panaflex-poster p,
.panaflex-poster li,
.panaflex-poster .section-paragraph-text,
.panaflex-poster .numbered-points-list,
.panaflex-poster .member-tabular-row,
.panaflex-poster .supervisor-sub-role,
.panaflex-poster .supervisor-sub-uni {
  font-family: var(--poster-body-font, var(--poster-font-family, 'Inter', sans-serif));
  color: var(--poster-body-color, #0f172a);
  transition: font-family 0.15s ease, color 0.15s ease;
}

.panaflex-poster .project-main-name {
  color: var(--poster-heading-color, var(--theme-primary));
}

.panaflex-poster .project-subtitle-text {
  color: var(--poster-body-color, #111827);
}

.panaflex-poster .green-ribbon-title {
  background-color: var(--poster-ribbon-bg, var(--theme-primary));
  color: var(--poster-ribbon-text, #ffffff);
}

.panaflex-poster .m-name {
  font-weight: 600;
  color: var(--poster-body-color, #111827);
}

.panaflex-poster .m-roll {
  color: var(--poster-roll-color, var(--theme-primary));
  font-weight: 800;
}

/* SUPERVISOR NAME: ALWAYS NORMAL WEIGHT (NOT BOLD) PER USER REQUIREMENT */
.panaflex-poster .supervisor-main-name {
  font-family: var(--font-supervisor-family, var(--poster-heading-font, var(--poster-font-family, 'Montserrat', sans-serif)));
  font-weight: var(--font-supervisor-weight, 500) !important; /* CRITICAL: NEVER BOLD */
  color: var(--font-supervisor-color, var(--poster-body-color, #111827));
  line-height: 1.25;
  transition: font-family 0.15s ease, color 0.15s ease, font-weight 0.15s ease;
}

/* Simulated distance mode */
.panaflex-poster.sim-distance {
  filter: contrast(1.05) saturate(0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

/* ================= TOP MOUNTING BAR & HOOK GUIDES ================= */
.top-mounting-bar {
  background-color: #f1f5f9;
  border-bottom: 2px solid #cbd5e1;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-mounting-bar.hidden {
  display: none !important;
}

.hook-guide-overlay {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.hook-guide-overlay.hidden {
  display: none !important;
}

/* Top hooks: In 24-inch width: 6" from left = 25%, 12" distance = 50%, 6" from right = 25% */
.hook-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hook-marker.hook-left {
  left: 25%;
  transform: translate(-50%, -50%);
}

.hook-marker.hook-right {
  left: 75%;
  transform: translate(-50%, -50%);
}

.hook-circle {
  width: 22px;
  height: 22px;
  background-color: #fef08a;
  border: 2px solid #b45309;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78350f;
  font-size: 9px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hook-label {
  background-color: #78350f;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

.hook-distance-line {
  position: absolute;
  left: 25%;
  right: 25%;
  top: 50%;
  border-top: 2px dashed #b45309;
  display: flex;
  justify-content: center;
}

.distance-badge {
  background-color: #fef08a;
  border: 1px solid #b45309;
  color: #78350f;
  font-size: 8.5px;
  font-weight: 800;
  padding: 0 6px;
  border-radius: 3px;
  transform: translateY(-50%);
}

/* 1-Inch Bleed Margin Guide */
.bleed-guide-overlay {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  border: 2px dashed #ef4444;
  pointer-events: none;
  z-index: 45;
  display: none;
}

.bleed-guide-overlay.active {
  display: block;
}

.bleed-label {
  position: absolute;
  top: 4px;
  left: 8px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
}

/* ================= POSTER INNER FRAME ================= */
/* Solid thick green outer border matching TapID format */
.poster-inner-frame {
  margin: 10px;
  border: 9px solid var(--theme-border);
  border-radius: 4px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.95rem 0.85rem 0.95rem;
  flex: 1;
  box-sizing: border-box;
}

/* ================= 1. POSTER TOP HEADER ================= */
.poster-top-header {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 0.45rem;
}

.header-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.header-title-box {
  text-align: center;
}

.project-main-name {
  font-family: var(--poster-heading-font, 'Montserrat', sans-serif);
  font-size: var(--font-title-size, 1.85rem);
  font-weight: 900;
  color: var(--poster-heading-color, var(--theme-primary));
  line-height: 1.15;
  letter-spacing: 0.2px;
  transition: color 0.15s ease, font-family 0.15s ease;
}

.project-subtitle-text {
  font-family: var(--poster-heading-font, 'Montserrat', sans-serif);
  font-size: var(--font-subtitle-size, 1.15rem);
  font-weight: 700;
  color: #111827;
  line-height: 1.28;
  margin-top: 2px;
  transition: color 0.15s ease, font-family 0.15s ease;
}

.header-sub-affiliation {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sub-uni {
  font-size: calc(0.85rem * var(--poster-font-scale, 1));
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sub-dept {
  font-size: calc(0.80rem * var(--poster-font-scale, 1));
  font-weight: 600;
  color: #475569;
}

/* ================= 2. POSTER SECTIONS BODY ================= */
.poster-sections-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

/* ================= BANNER SECTION CARD ================= */
.banner-section-card {
  position: relative;
  background-color: #ffffff;
}

/* Drag & Drop Visuals */
.banner-section-card.dragging {
  opacity: 0.4;
  outline: 2px dashed #0284c7;
}

.banner-section-card.drag-over {
  border-top: 3px solid #0284c7;
}

.section-drag-handle {
  position: absolute;
  top: 4px;
  right: 6px;
  cursor: grab;
  color: #cbd5e1;
  font-size: 13px;
  padding: 2px 4px;
  z-index: 10;
}

.section-drag-handle:hover {
  color: #0f172a;
}

.section-drag-handle:active {
  cursor: grabbing;
}

/* ================= SOLID GREEN RIBBON TITLE (TAPID STYLE) ================= */
.green-ribbon-title {
  background-color: var(--theme-primary);
  color: #ffffff;
  font-family: var(--poster-heading-font, 'Montserrat', sans-serif);
  font-size: var(--font-ribbon-size, 1.15rem);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 0.35rem;
  letter-spacing: 0.25px;
  transition: font-family 0.15s ease;
}

.section-card-content {
  padding: 0.15rem 0.25rem;
}

/* ================= HERO BANNER WRAPPER (FULL WIDTH, NO GAPS) ================= */
.banner-hero-wrapper {
  width: 100%;
  border: 2px solid var(--theme-border);
  border-radius: 4px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.banner-hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

/* ================= SECTION PARAGRAPH TEXT (PROMINENT & HIGHLY LEGIBLE) ================= */
.section-paragraph-text {
  font-size: var(--font-p-size, 1.22rem);
  font-weight: 550;
  color: #0f172a;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  margin: 0;
  padding: 0.25rem 0.35rem;
  letter-spacing: -0.01em;
}

/* ================= NUMBERED LISTS (OBJECTIVES) ================= */
.numbered-points-list {
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--font-obj-size, 1.18rem);
  font-weight: 600;
  color: #0f172a;
  line-height: 1.5;
}

.numbered-points-list li {
  padding-left: 0.25rem;
}

.numbered-points-list.dense-list {
  gap: 0.45rem;
  font-size: var(--font-obj-size, 1.18rem);
  font-weight: 600;
  line-height: 1.48;
}

/* ================= SECTION 3: BLOCK DIAGRAM ================= */
.diagram-content-box {
  width: 100%;
  border: 2px solid var(--theme-border);
  border-radius: 4px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem;
  cursor: pointer;
}

.poster-block-diagram {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

/* ================= SECTION 4 & 5: SPLIT ROW (OBJECTIVES + TOOLS) ================= */
.split-columns-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

.split-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.split-col .section-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ================= TOOLS & TECHNOLOGIES: ICONS ONLY ================= */
.tools-icons-only-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  padding: 0.6rem 0.3rem;
  flex: 1;
  align-content: space-evenly;
  transition: gap 0.2s ease, padding 0.2s ease;
}

.tool-icon-card {
  width: 52px;
  height: 52px;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  padding: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, width 0.2s ease, height 0.2s ease, padding 0.2s ease;
}

/* --- DYNAMIC SLOT SIZING: 1 to 3 SLOTS (PROMINENT & BALANCED) --- */
.tools-icons-only-grid[data-icon-count="1"],
.tools-icons-only-grid[data-icon-count="2"],
.tools-icons-only-grid[data-icon-count="3"],
.tools-icons-only-grid.icons-count-1,
.tools-icons-only-grid.icons-count-2,
.tools-icons-only-grid.icons-count-3,
.tools-icons-only-grid.icons-few-3,
.tools-icons-only-grid:has(> .tool-icon-card:not(.add-icon-slot):first-child:nth-last-child(1 of :not(.add-icon-slot))),
.tools-icons-only-grid:has(> .tool-icon-card:not(.add-icon-slot):first-child:nth-last-child(2 of :not(.add-icon-slot))),
.tools-icons-only-grid:has(> .tool-icon-card:not(.add-icon-slot):first-child:nth-last-child(3 of :not(.add-icon-slot))) {
  gap: 16px 22px;
  padding: 0.85rem 0.4rem;
  align-content: center;
  justify-content: center;
}

/* 3 Icons Specific Styling */
.tools-icons-only-grid[data-icon-count="3"] .tool-icon-card:not(.add-icon-slot),
.tools-icons-only-grid.icons-count-3 .tool-icon-card:not(.add-icon-slot),
.tools-icons-only-grid:has(> .tool-icon-card:not(.add-icon-slot):first-child:nth-last-child(3 of :not(.add-icon-slot))) .tool-icon-card:not(.add-icon-slot) {
  width: 82px;
  height: 82px;
  padding: 11px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* 2 Icons Specific Styling */
.tools-icons-only-grid[data-icon-count="2"] .tool-icon-card:not(.add-icon-slot),
.tools-icons-only-grid.icons-count-2 .tool-icon-card:not(.add-icon-slot),
.tools-icons-only-grid:has(> .tool-icon-card:not(.add-icon-slot):first-child:nth-last-child(2 of :not(.add-icon-slot))) .tool-icon-card:not(.add-icon-slot) {
  width: 86px;
  height: 86px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* 1 Icon Specific Styling */
.tools-icons-only-grid[data-icon-count="1"] .tool-icon-card:not(.add-icon-slot),
.tools-icons-only-grid.icons-count-1 .tool-icon-card:not(.add-icon-slot),
.tools-icons-only-grid:has(> .tool-icon-card:not(.add-icon-slot):first-child:nth-last-child(1 of :not(.add-icon-slot))) .tool-icon-card:not(.add-icon-slot) {
  width: 92px;
  height: 92px;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
}

/* Add-icon-slot when there are 1-3 icons (compact & sleek so it doesn't wrap to a second line) */
.tools-icons-only-grid[data-icon-count="1"] .add-icon-slot,
.tools-icons-only-grid[data-icon-count="2"] .add-icon-slot,
.tools-icons-only-grid[data-icon-count="3"] .add-icon-slot,
.tools-icons-only-grid.icons-count-1 .add-icon-slot,
.tools-icons-only-grid.icons-count-2 .add-icon-slot,
.tools-icons-only-grid.icons-count-3 .add-icon-slot,
.tools-icons-only-grid.icons-few-3 .add-icon-slot {
  width: 54px;
  height: 54px;
  font-size: 1.25rem;
  border-radius: 10px;
}

/* Delete button sizing when cards are scaled up */
.tools-icons-only-grid[data-icon-count="1"] .btn-icon-del,
.tools-icons-only-grid[data-icon-count="2"] .btn-icon-del,
.tools-icons-only-grid[data-icon-count="3"] .btn-icon-del,
.tools-icons-only-grid.icons-few-3 .btn-icon-del {
  width: 20px;
  height: 20px;
  font-size: 13px;
  line-height: 17px;
  top: -7px;
  right: -7px;
}

/* --- DYNAMIC SLOT SIZING: 4 to 6 SLOTS --- */
.tools-icons-only-grid[data-icon-count="4"],
.tools-icons-only-grid[data-icon-count="5"],
.tools-icons-only-grid[data-icon-count="6"],
.tools-icons-only-grid.icons-count-6 {
  gap: 15px 20px;
  padding: 0.85rem 0.4rem;
  align-content: center;
}

.tools-icons-only-grid[data-icon-count="4"] .tool-icon-card,
.tools-icons-only-grid[data-icon-count="5"] .tool-icon-card,
.tools-icons-only-grid[data-icon-count="6"] .tool-icon-card,
.tools-icons-only-grid.icons-count-6 .tool-icon-card {
  width: 66px;
  height: 66px;
  padding: 8px;
  border-radius: 10px;
}

.tools-icons-only-grid[data-icon-count="4"] .add-icon-slot,
.tools-icons-only-grid[data-icon-count="5"] .add-icon-slot,
.tools-icons-only-grid[data-icon-count="6"] .add-icon-slot,
.tools-icons-only-grid.icons-count-6 .add-icon-slot {
  width: 54px;
  height: 54px;
  font-size: 1.2rem;
  border-radius: 10px;
}

/* --- DYNAMIC SLOT SIZING: 7 to 9 SLOTS --- */
.tools-icons-only-grid[data-icon-count="7"],
.tools-icons-only-grid[data-icon-count="8"],
.tools-icons-only-grid[data-icon-count="9"],
.tools-icons-only-grid.icons-count-9 {
  gap: 13px 16px;
  padding: 0.65rem 0.35rem;
}

.tools-icons-only-grid[data-icon-count="7"] .tool-icon-card,
.tools-icons-only-grid[data-icon-count="8"] .tool-icon-card,
.tools-icons-only-grid[data-icon-count="9"] .tool-icon-card,
.tools-icons-only-grid.icons-count-9 .tool-icon-card {
  width: 58px;
  height: 58px;
  padding: 7px;
  border-radius: 8px;
}

.tools-icons-only-grid[data-icon-count="7"] .add-icon-slot,
.tools-icons-only-grid[data-icon-count="8"] .add-icon-slot,
.tools-icons-only-grid[data-icon-count="9"] .add-icon-slot,
.tools-icons-only-grid.icons-count-9 .add-icon-slot {
  width: 52px;
  height: 52px;
  font-size: 1.15rem;
  border-radius: 8px;
}

.tool-icon-card:hover {
  border-color: var(--theme-primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 8px -1px rgba(0, 0, 0, 0.15);
  background-color: #f0fdf4;
}

.tech-pure-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tool-file-input {
  display: none;
}

.btn-icon-del {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: #ef4444;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tool-icon-card:hover .btn-icon-del {
  display: block;
}

.add-icon-slot {
  border: 1.5px dashed #94a3b8;
  background-color: #f8fafc;
  color: #64748b;
  font-size: 18px;
}

.add-icon-slot:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
  background-color: #f0fdf4;
}

/* ================= SECTION 6: FOOTER (MEMBERS & SUPERVISOR) ================= */
.members-tabular-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.2rem 0;
}

.member-tabular-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-member-size, 1.05rem);
  border-bottom: 1px dotted #e2e8f0;
  padding-bottom: 3px;
}

.member-tabular-row:last-child {
  border-bottom: none;
}

.m-name {
  font-weight: 700;
  color: #111827;
}

.m-roll {
  font-weight: 800;
  color: var(--theme-primary);
  letter-spacing: 0.3px;
}

.supervisor-single-box {
  display: flex;
  flex-direction: column;
  padding: 0.2rem 0;
}

.supervisor-main-name {
  font-family: var(--font-supervisor-family, 'Montserrat', sans-serif);
  font-size: var(--font-supervisor-size, 1.22rem);
  font-weight: var(--font-supervisor-weight, 500) !important;
  /* Explicitly NOT BOLD - 500 Medium / 400 Regular */
  color: var(--font-supervisor-color, #111827);
  line-height: 1.25;
  transition: color 0.15s ease, font-family 0.15s ease, font-weight 0.15s ease;
}

.supervisor-sub-role {
  font-size: calc(0.95rem * var(--poster-font-scale, 1));
  color: var(--font-supervisor-role-color, #374151);
  font-weight: 500;
  margin-top: 2px;
}

.supervisor-sub-uni {
  font-size: calc(0.88rem * var(--poster-font-scale, 1));
  color: var(--font-supervisor-uni-color, #64748b);
  margin-top: 2px;
}

/* ================= INLINE EDITING STYLING ================= */
[contenteditable="true"] {
  outline: none;
  cursor: text;
  border-radius: 2px;
  transition: background-color 0.12s, box-shadow 0.12s;
}

[contenteditable="true"]:hover {
  background-color: rgba(11, 102, 56, 0.08);
}

[contenteditable="true"]:focus {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 2px #0284c7;
}

.green-ribbon-title span[contenteditable="true"]:focus {
  background-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 2px #ffffff;
  color: #ffffff;
}

/* ================= SUPERVISOR & TYPOGRAPHY STYLING CONTROLS ================= */
.supervisor-styling-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem;
  margin-top: 0.75rem;
}

.styling-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.styling-box-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-not-bold {
  background: #ecfdf5;
  color: #0b6638;
  border: 1px solid #a7f3d0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.color-picker-input {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
}

.color-picker-input::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.color-picker-input::-webkit-color-swatch {
  border-radius: 4px;
  border: none;
}

.color-hex-input {
  flex: 1;
  font-family: monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
}

.color-swatches-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.5rem;
}

.swatch-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
}

.swatch-btn:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px #0b6638;
}

.swatch-btn.active {
  box-shadow: 0 0 0 2px #0b6638, 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: scale(1.12);
}

/* ================= FLOATING LIVE INLINE FORMATTING TOOLBAR ================= */
.poster-inline-toolbar {
  position: absolute;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.2), 0 4px 10px -2px rgba(0, 0, 0, 0.08);
  animation: inlineToolbarIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  user-select: none;
}

@keyframes inlineToolbarIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.inline-toolbar-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0b6638;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.inline-toolbar-sep {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
}

.inline-font-select {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 3px 6px;
  background: #f8fafc;
  cursor: pointer;
  outline: none;
}

.inline-font-select:focus {
  border-color: #0b6638;
}

.inline-color-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.inline-color-input {
  width: 26px;
  height: 26px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
  background: transparent;
}

.inline-color-input::-webkit-color-swatch-wrapper {
  padding: 1px;
}

.inline-color-input::-webkit-color-swatch {
  border-radius: 3px;
  border: none;
}

.inline-tool-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #334155;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.12s;
}

.inline-tool-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.inline-tool-btn.active {
  background: #ecfdf5;
  color: #0b6638;
  border-color: #0b6638;
  font-weight: 800;
}

.inline-tool-close {
  color: #94a3b8;
}

.inline-tool-close:hover {
  color: #ef4444;
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ================= DOCK QUICK CONTROLS ================= */
.dock-select {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 6px;
  background: #ffffff;
  cursor: pointer;
  outline: none;
}

.dock-color-wrap {
  display: inline-flex;
  align-items: center;
}

.dock-color-picker {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

/* ================= TOAST NOTIFICATION ================= */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #0f172a;
  border: 1px solid #10b981;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  z-index: 9999;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-notification i {
  color: #10b981;
  font-size: 1.1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

/* ================= PRINT MEDIA STYLES (STRICT SINGLE-PAGE FULL BANNER) ================= */
@media print {
  @page {
    size: portrait;
    margin: 0;
  }

  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
  }

  /* Hide all studio UI outside the poster */
  .no-print,
  .app-header,
  .studio-sidebar,
  .stage-dock-bar,
  .stage-floating-bar,
  .section-drag-handle,
  .btn-icon-del,
  .add-icon-slot,
  #btnPosterAddIcon,
  .toast-notification,
  .top-mounting-bar,
  .bleed-guide-overlay,
  .wizard-modal-overlay,
  .mobile-blocker-screen {
    display: none !important;
  }

  .studio-workspace,
  .canvas-stage,
  .canvas-scroll-wrapper,
  .poster-scale-wrapper {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    background: transparent !important;
    border: none !important;
    position: static !important;
  }

  /* Strict Single-Page Proportional Scaling */
  .panaflex-poster {
    transform-origin: center top !important;
    transform: scale(var(--print-scale, 0.46)) !important;
    position: relative !important;
    width: 820px !important;
    min-width: 820px !important;
    max-width: 820px !important;
    height: auto !important;
    margin: 0.15in auto 0 auto !important;
    box-shadow: none !important;
    border: none !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
    break-inside: avoid !important;
    break-after: avoid !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .poster-inner-frame {
    margin: 0 !important;
    border: 8px solid var(--theme-border) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0.75rem 0.95rem 0.85rem 0.95rem !important;
    background-color: #ffffff !important;
  }

  .poster-top-header {
    display: grid !important;
    grid-template-columns: 80px 1fr 80px !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding-bottom: 0.45rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
    margin-bottom: 0.45rem !important;
  }

  .header-logo {
    width: 78px !important;
    height: 78px !important;
    object-fit: contain !important;
  }

  .project-main-name {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
  }

  .project-subtitle-text {
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }

  .header-sub-affiliation {
    font-size: 0.75rem !important;
  }

  .poster-sections-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
  }

  .banner-hero-wrapper {
    width: 100% !important;
    border: 2px solid var(--theme-border) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .banner-hero-img {
    width: 100% !important;
    height: auto !important;
    max-height: 420px !important;
    object-fit: contain !important;
    display: block !important;
  }

  .diagram-content-box {
    width: 100% !important;
    border: 2px solid var(--theme-border) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .poster-block-diagram {
    width: 100% !important;
    height: auto !important;
    max-height: 280px !important;
    object-fit: contain !important;
    display: block !important;
  }

  .green-ribbon-title {
    font-size: 1.15rem !important;
    padding: 0.32rem 0.75rem !important;
    margin-bottom: 0.35rem !important;
  }

  .section-paragraph-text {
    font-size: 1.20rem !important;
    line-height: 1.52 !important;
    text-align: justify !important;
    padding: 0.2rem 0.3rem !important;
  }

  .numbered-points-list {
    font-size: 1.15rem !important;
    line-height: 1.45 !important;
    gap: 0.4rem !important;
  }

  .tools-icons-only-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px 14px !important;
    padding: 0.4rem 0.2rem !important;
  }

  .tool-icon-card {
    width: 48px !important;
    height: 48px !important;
    padding: 6px !important;
    border-radius: 6px !important;
  }

  /* Print dynamic scale for 1-3 slots */
  .tools-icons-only-grid[data-icon-count="1"] .tool-icon-card,
  .tools-icons-only-grid[data-icon-count="2"] .tool-icon-card,
  .tools-icons-only-grid[data-icon-count="3"] .tool-icon-card,
  .tools-icons-only-grid.icons-count-1 .tool-icon-card,
  .tools-icons-only-grid.icons-count-2 .tool-icon-card,
  .tools-icons-only-grid.icons-count-3 .tool-icon-card,
  .tools-icons-only-grid.icons-few-3 .tool-icon-card {
    width: 82px !important;
    height: 82px !important;
    padding: 11px !important;
    border-radius: 12px !important;
  }

  .tools-icons-only-grid[data-icon-count="1"],
  .tools-icons-only-grid[data-icon-count="2"],
  .tools-icons-only-grid[data-icon-count="3"],
  .tools-icons-only-grid.icons-count-1,
  .tools-icons-only-grid.icons-count-2,
  .tools-icons-only-grid.icons-count-3,
  .tools-icons-only-grid.icons-few-3 {
    gap: 18px 24px !important;
    padding: 0.8rem 0.4rem !important;
    align-content: center !important;
    justify-content: center !important;
  }

  /* Print dynamic scale for 4-6 slots */
  .tools-icons-only-grid[data-icon-count="4"] .tool-icon-card,
  .tools-icons-only-grid[data-icon-count="5"] .tool-icon-card,
  .tools-icons-only-grid[data-icon-count="6"] .tool-icon-card,
  .tools-icons-only-grid.icons-count-6 .tool-icon-card {
    width: 66px !important;
    height: 66px !important;
    padding: 8px !important;
    border-radius: 9px !important;
  }

  .member-tabular-row {
    font-size: 1.02rem !important;
  }

  .supervisor-main-name {
    font-size: 1.20rem !important;
    font-weight: var(--font-supervisor-weight, 500) !important;
  }
}

/* ==========================================================================
   MINIMAL & CLEAN SITE PRELOADER (PURE ACADEMIC AESTHETIC)
   ========================================================================== */
.site-preloader-overlay {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
}

.site-preloader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-minimal-wrap,
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 320px;
  width: 90%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  gap: 1.15rem;
}

/* Minimalist Dual-Ring Spinner with University Logo */
.preloader-spinner-box {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #f1f5f9;
  border-top-color: #0b6638;
  border-right-color: #0b6638;
  animation: preloaderSpin 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.preloader-center-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

@keyframes preloaderSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.preloader-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.preloader-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
}

.preloader-subtext {
  font-size: 0.80rem;
  font-weight: 500;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

/* Hairline Progress Bar */
.preloader-progress-box {
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.preloader-bar-track {
  width: 100%;
  height: 3px;
  background-color: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0b6638, #15803d);
  border-radius: 9999px;
  transition: width 0.16s ease-out;
}

.preloader-percent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ================= APP HEADER EXPANSIONS (SOLID & CLEAN) ================= */
.credit-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #1e293b;
  text-decoration: none;
  font-weight: 550;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  margin-left: 0.75rem;
}

.credit-nav-pill:hover {
  background-color: #f8fafc;
  color: #0b6638;
  border-color: #0b6638;
}

.credit-pill-icon {
  color: #0b6638;
  font-size: 0.80rem;
}

.pill-arrow {
  font-size: 0.65rem;
  opacity: 0.7;
}

.btn-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  font-size: 0.80rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-license-badge.status-locked {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.btn-license-badge.status-locked:hover {
  background-color: #fde68a;
}

.btn-license-badge.status-unlocked {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
}

.header-legal-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-header-link {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #475569;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-header-link:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.btn-header-link.highlight-cpanel {
  background-color: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.btn-header-link.highlight-cpanel:hover {
  background-color: #ffedd5;
  color: #9a3412;
}

/* ================= SADAPAY RS. 100 EXPORT LICENSE MODAL (MINIMAL & PROFESSIONAL) ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: opacity 0.2s ease;
}

.payment-modal-card {
  background-color: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 470px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.payment-modal-header {
  padding: 1.25rem 1.4rem 1rem 1.4rem;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pay-header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.pay-header-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: #f0fdf4;
  color: #0b6638;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid #bbf7d0;
  flex-shrink: 0;
}

.pay-modal-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0 0 0.2rem 0;
  line-height: 1.25;
}

.pay-modal-subtitle {
  font-size: 0.80rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-top: -2px;
}

.modal-close-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.payment-modal-body {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Compact Unified Payment Summary Card */
.pay-summary-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pay-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.65rem;
}

.pay-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.pay-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #0b6638;
}

.pay-amount-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.pay-currency {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0b6638;
}

.pay-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b6638;
  line-height: 1;
}

.pay-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0.55rem 0.85rem;
}

.pay-account-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pay-account-label {
  font-size: 0.70rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sadapay-number {
  font-size: 1.28rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.07em;
  color: #0f172a;
  line-height: 1.2;
}

.btn-copy-acc {
  background-color: #f1f5f9;
  color: #0b6638;
  border: 1px solid #cbd5e1;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-copy-acc:hover {
  background-color: #0b6638;
  color: #ffffff;
  border-color: #0b6638;
}

.pay-instructions-hint {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.pay-instructions-hint i {
  color: #0b6638;
  margin-top: 1px;
}

/* Focused Verification Form */
.payment-verification-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tid-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.tid-input-group {
  display: flex;
  gap: 0.5rem;
}

.tid-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.tid-field-icon {
  position: absolute;
  left: 0.8rem;
  color: #94a3b8;
  font-size: 0.88rem;
  pointer-events: none;
}

.tid-input {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.2rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tid-input:focus {
  border-color: #0b6638;
  box-shadow: 0 0 0 2.5px rgba(11, 102, 56, 0.15);
}

.btn-unlock {
  background-color: #0b6638;
  color: #ffffff;
  border: 1px solid #074726;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-unlock:hover {
  background-color: #074726;
}

.btn-unlock:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status & Error Alerts */
.tid-status-alert {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.tid-status-alert.alert-pending {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.tid-status-alert.alert-approved {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.tid-status-alert.alert-rejected {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.tid-error-msg {
  color: #dc2626;
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

/* Secondary Support Route */
.pay-support-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.76rem;
}

.pay-support-text {
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pay-wa-link {
  color: #0b6638;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pay-wa-link:hover {
  color: #074726;
  text-decoration: underline;
}

/* Minimal Modal Footer */
.payment-modal-footer {
  padding: 0.75rem 1.4rem;
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.modal-footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.modal-footer-legal a,
.modal-footer-legal .link-btn {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  transition: color 0.15s ease;
}

.modal-footer-legal a:hover,
.modal-footer-legal .link-btn:hover {
  color: #0b6638;
  text-decoration: underline;
}

.modal-footer-legal .sep {
  color: #cbd5e1;
}

/* ================= LEGAL & INFORMATION MODALS (SOLID & CLEAN) ================= */
.legal-modal-card {
  background-color: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid #cbd5e1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.legal-modal-header {
  padding: 1.25rem 1.6rem;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.legal-icon-wrap {
  width: 38px;
  height: 38px;
  background-color: #0b6638;
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.legal-modal-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0f172a;
}

.legal-modal-subtitle {
  font-size: 0.8rem;
  color: #64748b;
}

.legal-modal-body {
  padding: 1.4rem 1.6rem;
  overflow-y: auto;
  max-height: calc(80vh - 140px);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.legal-notice-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.legal-notice-callout.success-callout {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.legal-section h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.legal-section p {
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.5;
}

.legal-modal-footer {
  padding: 1rem 1.6rem;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

/* ================= INTERACTIVE WHATSAPP CHATBOT WIDGET (SOLID & CRISP) ================= */
.whatsapp-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-fab-trigger {
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background-color 0.15s ease, transform 0.15s ease;
  position: relative;
}

.whatsapp-fab-trigger:hover {
  background-color: #128c7e;
  transform: scale(1.05);
}

.wa-icon-main {
  font-size: 1.9rem;
}

.wa-online-indicator {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.wa-tooltip-text {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background-color: #0f172a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-fab-trigger:hover .wa-tooltip-text {
  opacity: 1;
}

.whatsapp-chat-drawer {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 350px;
  max-width: 90vw;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid #cbd5e1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wa-drawer-header {
  background-color: #075e54;
  color: #ffffff;
  padding: 0.9rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #054c44;
}

.wa-agent-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wa-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  background-color: #128c7e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.avatar-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background-color: #22c55e;
  border: 2px solid #075e54;
  border-radius: 50%;
}

.wa-agent-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.wa-agent-status {
  font-size: 0.70rem;
  color: #a7f3d0;
  display: block;
}

.wa-drawer-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  opacity: 0.85;
  padding: 0.2rem;
}

.wa-drawer-close:hover {
  opacity: 1;
}

.wa-drawer-body {
  padding: 1rem 1.15rem;
  background-color: #efeae2;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 320px;
  overflow-y: auto;
}

.wa-message-bubble {
  background-color: #ffffff;
  padding: 0.75rem 0.9rem;
  border-radius: 8px 8px 8px 2px;
  border: 1px solid #d9d4cc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  max-width: 92%;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #111827;
}

.wa-bubble-sender {
  font-size: 0.7rem;
  font-weight: 700;
  color: #075e54;
  margin-bottom: 0.25rem;
}

.wa-bubble-time {
  font-size: 0.65rem;
  color: #6b7280;
  display: block;
  text-align: right;
  margin-top: 0.35rem;
}

.wa-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wa-actions-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wa-action-chip {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
  font-size: 0.80rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.wa-action-chip:hover {
  background-color: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
}

.wa-drawer-footer {
  padding: 0.75rem 1rem;
  background-color: #f0f2f5;
  border-top: 1px solid #e5e7eb;
}

.wa-input-row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.wa-text-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.82rem;
  outline: none;
  background-color: #ffffff;
}

.wa-text-input:focus {
  border-color: #25d366;
}

.btn-send-wa {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: #25d366;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.btn-send-wa:hover {
  background-color: #128c7e;
}

.wa-footer-sub {
  font-size: 0.70rem;
  color: #4b5563;
  text-align: center;
}

/* ================= MISSING UTILITY & MODAL STYLES (STRICT ZERO BLUR) ================= */
.dock-status-group {
  display: flex;
  align-items: center;
}

.dock-btn-label {
  font-size: 0.74rem;
  font-weight: 600;
}

.dock-hide-small {
  display: inline-flex;
}

.dock-hide-medium {
  display: inline-flex;
}

.pay-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.price-right {
  display: flex;
  align-items: center;
}

.sadapay-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  background-color: #ff6e40;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.sadapay-logo-text {
  font-size: 0.95rem;
  font-weight: 800;
}

.sadapay-accent {
  color: #ffffff;
  opacity: 0.9;
}

.text-center {
  text-align: center;
}

.wa-incoming {
  background-color: #f1f5f9;
  color: #1e293b;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.section-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wiz-obj-input {
  width: 100%;
}

.wizard-tech-preview-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.desktop-badge-icon {
  font-size: 2.2rem;
  color: #0b6638;
}

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


/* ================= ADMIN DASHBOARD & SQLITE CONTROL CENTER ================= */
.admin-modal-card {
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px #cbd5e1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.18s ease-out;
}

.admin-view-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Admin PIN Login Screen */
.admin-login-header {
  padding: 2rem 1.5rem 1rem 1.5rem;
  text-align: center;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.admin-shield-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #ecfdf5;
  color: #0b6638;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1.5px solid #a7f3d0;
  margin-bottom: 0.25rem;
}

.admin-login-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.admin-login-subtitle {
  font-size: 0.82rem;
  color: #64748b;
}

.admin-attempts-badge {
  font-size: 0.74rem;
  font-weight: 700;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.admin-login-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
}

.admin-lockout-alert {
  width: 100%;
  background-color: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #991b1b;
  margin-bottom: 1.25rem;
  animation: shake 0.3s ease-in-out;
}

.admin-lockout-alert .lockout-icon {
  font-size: 1.4rem;
  color: #dc2626;
  flex-shrink: 0;
}

.admin-lockout-alert .lockout-text strong {
  font-size: 0.85rem;
  display: block;
  letter-spacing: 0.5px;
}

.admin-lockout-alert .lockout-text p {
  font-size: 0.76rem;
  color: #7f1d1d;
  margin-top: 0.15rem;
}

.pin-entry-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.pin-entry-wrap label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.pin-input-container {
  position: relative;
  width: 100%;
}

.pin-code-input {
  width: 100%;
  padding: 0.75rem 2.8rem 0.75rem 1rem;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 8px;
  text-align: center;
  background-color: #ffffff;
  color: #0f172a;
  outline: none;
  font-family: monospace;
  transition: border-color 0.15s ease;
}

.pin-code-input:focus {
  border-color: #0b6638;
  box-shadow: 0 0 0 3px rgba(11, 102, 56, 0.12);
}

.btn-pin-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
}

.btn-pin-eye:hover {
  color: #0f172a;
}

.admin-error-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #dc2626;
  text-align: center;
  margin-top: 0.25rem;
}

/* Pin Keypad Grid */
.pin-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1.25rem;
}

.pin-key-btn {
  height: 48px;
  border-radius: 8px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-key-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.pin-key-btn:active {
  transform: scale(0.96);
  background-color: #cbd5e1;
}

.btn-key-clear {
  color: #dc2626;
  font-weight: 800;
}

.btn-key-backspace {
  color: #64748b;
}

.admin-login-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ================= AUTHENTICATED DASHBOARD VIEW ================= */
.admin-dash-header {
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.dash-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dash-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: #ecfdf5;
  color: #0b6638;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid #a7f3d0;
}

.dash-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.dash-status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.dash-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 1px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dash-db-pill {
  font-size: 0.70rem;
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 1px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-dash-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: #f8fafc;
}

/* KPI Cards Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.kpi-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.kpi-card.highlight-kpi {
  border-color: #a7f3d0;
  background-color: #f0fdf4;
}

.kpi-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kpi-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.kpi-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}

/* Admin Sections & Tables */
.admin-section-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.section-box-header {
  padding: 0.75rem 1.15rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-header-title h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
}

.badge-pending-counter {
  font-size: 0.72rem;
  font-weight: 700;
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 9999px;
}

.section-filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-control-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.76rem;
  height: 28px;
  border-radius: 5px;
}

.table-responsive {
  overflow-x: auto;
  max-height: 260px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}

.admin-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: #f8fafc;
}

.badge-status-approved {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.70rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-status-pending {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.70rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-status-rejected {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.70rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-table-approve {
  background-color: #0b6638;
  color: #ffffff;
  border: none;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: background-color 0.15s;
}

.btn-table-approve:hover {
  background-color: #074726;
}

.btn-table-reject {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-table-reject:hover {
  background-color: #fca5a5;
  color: #7f1d1d;
}

.table-empty-state {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.85rem;
}

/* Security Log Terminal */
.log-terminal-box {
  background-color: #0f172a;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 0.74rem;
  padding: 0.85rem;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.log-entry-row {
  display: flex;
  gap: 0.6rem;
  line-height: 1.4;
}

.log-time {
  color: #64748b;
  flex-shrink: 0;
}

.log-event {
  color: #38bdf8;
  font-weight: 700;
  flex-shrink: 0;
}

.log-details {
  color: #cbd5e1;
}

.log-ip {
  color: #4ade80;
  margin-left: auto;
  flex-shrink: 0;
}

/* Modal Card Sm */
.modal-card-sm {
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card-sm-header {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-card-sm-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-card-sm-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}