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

/* ==========================================================================
   LABTIF AUTOLAPRAK • PREMIUM SAAS DESIGN SYSTEM v2
   Theme inspired by Finance Manager (https://financemanager.page.gd)
   Clean, Professional, High-Contrast Light Theme with Solid Blue Accents
   Enhanced: Micro-animations, refined shadows, polished interactions
   ========================================================================== */

:root {
  /* Typography Tokens — Mekari Clean Inter Architecture */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', Consolas, monospace;

  /* Primary Brand Colors — Mekari Electric Indigo / Purple Palette */
  --primary: #5b0fff;
  --primary-dark: #40149e;
  --primary-deeper: #2d0b77;
  --primary-light: #efe7ff;
  --primary-subtle: #f6f2ff;

  /* Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-indigo: #5b0fff;
  --accent-purple: #7c3aed;
  --accent-emerald: #10b981;
  --accent-rose: #ef4444;
  --accent-amber: #f59e0b;

  /* Surfaces & Backgrounds — Mekari Crisp White Foundation */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #ffffff;

  /* Borders — Mekari Precision Thin Borders */
  --border: #e9eaeb;
  --border-glass: #e9eaeb;
  --border-focus: #5b0fff;
  --border-accent: #c4aef5;

  /* Typography — Mekari High Contrast Scale */
  --text-main: #181d27;
  --text-secondary: #232933;
  --text-muted: #535862;
  --text-subtle: #717680;

  /* Radii — Mekari Curved Aesthetics */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows — Mekari Layered Precision Soft Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 2px 4px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(16, 24, 40, 0.07), 0 2px 4px -2px rgba(16, 24, 40, 0.03);
  --shadow-lg: 0 12px 24px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
  --shadow-card: 0 20px 32px -4px rgba(16, 24, 40, 0.06), 0 4px 8px -2px rgba(16, 24, 40, 0.02);
  --shadow-glow: 0 8px 24px rgba(91, 15, 255, 0.22);
  --shadow-glow-hover: 0 14px 36px rgba(91, 15, 255, 0.32);
  --shadow-glow-purple: 0 8px 24px rgba(91, 15, 255, 0.25);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
}

@media (max-width: 768px) {
  html {
    font-size: 15.5px;
  }
}

body {
  zoom: 0.8;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  letter-spacing: -0.012em;
}

/* Enforce font inheritance across all form and interactive controls */
button, input, optgroup, select, textarea {
  font-family: var(--font-sans) !important;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Premium Heading & Title Typography with Outfit */
h1, h2, h3, h4, h5, h6,
.hero-title,
.step-title,
.brand-title,
.step-label,
.toggle-title,
.active-report-title,
.photo-card-badge,
.btn-primary,
.btn-secondary,
.btn-add-frame-primary,
.btn-add-frame-secondary,
.btn-generate-big,
.btn-frame-tool,
.btn-demo,
.btn-admin-link,
.badge-status,
.card-title,
.active-subj-pill,
.review-item strong {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.022em;
}

button {
  font-family: var(--font-heading) !important;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Mekari Clean Background Overlay (No harsh grid, pure subtle ambiance) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(91, 15, 255, 0.07) 0%, rgba(124, 58, 237, 0.03) 40%, transparent 65%);
  z-index: -2;
  pointer-events: none;
}

/* Ambient Corner Glows — Mekari Lavender Aura */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: #efe7ff;
  top: -150px;
  left: -150px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(91, 15, 255, 0.08);
  right: -100px;
  bottom: -150px;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: #efe7ff;
  top: 35%;
  left: 10%;
  opacity: 0.15;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.gradient-text,
.highlight-text {
  color: var(--primary);
  display: inline-block;
  font-weight: 800;
}

/* ==========================================================================
   TOP NAVBAR (Executive Glass Island Header)
   Ultra-clean floating bar, rich academic branding & tactical controls
   ========================================================================== */
.navbar {
  position: relative;
  z-index: 50;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  box-shadow: 
    0 4px 6px -1px rgba(15, 23, 42, 0.03),
    0 12px 36px -4px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  max-width: 1200px;
  margin: 18px auto 0;
  width: calc(100% - 32px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar:hover {
  border-color: rgba(203, 213, 225, 0.95);
  box-shadow: 
    0 8px 30px -4px rgba(15, 23, 42, 0.08),
    0 2px 4px 0 rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.nav-container {
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   Brand Identity & University Affiliation
   -------------------------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.4);
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-icon {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
}

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

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.brand-title .brand-accent {
  color: var(--primary);
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-version-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 1px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1px;
}

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

/* --------------------------------------------------------------------------
   Navigation Actions & Utility Toolbar
   -------------------------------------------------------------------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Official Standard Badge with Live Radar Pulse */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  background: rgba(239, 246, 255, 0.85);
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e40af;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.04);
  white-space: nowrap;
}

.badge-status-dot {
  position: relative;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-status-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  animation: beaconPulse 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

/* Hairline Divider */
.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(226, 232, 240, 0.9);
  flex-shrink: 0;
  margin: 0 4px;
}

/* Secondary Utility Buttons (Demo Data & Developer) */
.btn-demo {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  color: #334155;
  padding: 6px 14px;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff;
  white-space: nowrap;
}

.btn-demo .demo-icon {
  color: #6366f1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-demo .dev-icon {
  color: #64748b;
}

.btn-demo:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.btn-demo:hover .demo-icon {
  transform: rotate(15deg) scale(1.15);
}

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

/* Executive Admin Button */
.btn-admin-link {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(37, 99, 235, 0.9);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.btn-admin-link:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38);
  color: #ffffff;
}

.btn-admin-link:active {
  transform: scale(0.97);
}

/* ==========================================================================
   MAIN LAYOUT & HERO
   ========================================================================== */
.main-wrapper {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px 100px;
  position: relative;
  z-index: 10;
  flex: 1;
}

.hero-section {
  text-align: center;
  margin-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary-light);
  border: 1px solid var(--primary-subtle);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.6rem;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ==========================================================================
   STEPPER NAVIGATION — Enhanced & Enlarged
   ========================================================================== */
.stepper-nav {
  position: relative;
  margin-bottom: 44px;
}

.stepper-track {
  position: absolute;
  top: 28px;
  left: 44px;
  right: 44px;
  height: 4px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  z-index: 1;
}

.stepper-progress {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.stepper-progress::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.25);
}

.step-items {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.step-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
}

.step-item:hover {
  transform: translateY(-2px);
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.22rem;
  color: var(--text-muted);
  transition: var(--transition-normal);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.step-label {
  font-size: 0.96rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: -0.01em;
  transition: var(--transition-fast);
}

.step-item:hover .step-circle {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.16);
}

.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38);
  transform: scale(1.12);
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.0rem;
}

.step-item.completed .step-circle {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.25);
}

/* ==========================================================================
   WIZARD CARD & PANELS — Premium Glass
   ========================================================================== */
.wizard-card,
.glass-panel {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 32px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.07),
    0 4px 12px rgba(15, 23, 42, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  padding: 64px 68px;
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.glass-panel-inner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 28px;
}

.wizard-step {
  display: none;
  animation: fadeInStep 0.4s ease;
}

.wizard-step.active {
  display: block;
}

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

/* Step Header — Enhanced with decorative accent */
.step-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.step-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 70px;
  height: 3.5px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.step-title {
  font-size: 1.75rem;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.step-title i {
  color: var(--primary);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 14px;
  flex-shrink: 0;
}

.step-desc {
  color: var(--text-muted);
  font-size: 1.04rem;
  padding-left: 63px;
}

/* ==========================================================================
   SUBJECT SELECTOR CARDS — Premium with glow
   ========================================================================== */
.subject-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-bottom: 52px;
}

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

@media (min-width: 1200px) {
  .subject-selector {
    grid-template-columns: repeat(4, 1fr);
  }
}

.subject-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 15px 16px;
  background: #ffffff;
  border: 1.5px solid #e9eaeb;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.04);
  overflow: hidden;
  min-height: 250px;
  text-align: left;
}

.subject-card:hover {
  border-color: #c4aef5;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.08);
}

.subject-card.active {
  border-color: #5b0fff;
  border-width: 2px;
  box-shadow: 0 16px 32px rgba(91, 15, 255, 0.12), 0 0 0 1px #5b0fff;
  background: #ffffff;
}

.subject-card[data-subject="STRUKDAT"].active {
  border-color: #2563eb;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.12), 0 0 0 1px #2563eb;
}

.subject-card[data-subject="BASDAT"].active {
  border-color: #059669;
  box-shadow: 0 16px 32px rgba(5, 150, 105, 0.12), 0 0 0 1px #059669;
}

.subject-card[data-subject="STATISTIKA"].active {
  border-color: #ea580c;
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.12), 0 0 0 1px #ea580c;
}

/* Card Header (Title & Subtitle - Top of Mekari Card) */
.mekari-card-head {
  width: 100%;
  padding-right: 24px;
}

.mekari-card-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px;
  font-weight: 700;
  color: #181d27;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.mekari-card-sub {
  font-size: 13px;
  color: #717680;
  line-height: 1.4;
  margin: 0;
}

/* Center Emblem Graphic with Concentric Arc Lines (Signature Mekari Aesthetic) */
.mekari-emblem-wrap {
  position: relative;
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
  overflow: hidden;
}

.mekari-emblem-arcs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.85);
  pointer-events: none;
}

.mekari-emblem-arcs::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(241, 245, 249, 0.85);
}

.mekari-emblem-arcs::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(241, 245, 249, 0.95);
}

.mekari-emblem-circle {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.subject-card:hover .mekari-emblem-circle {
  transform: scale(1.12);
}

.mekari-emblem-circle.kdjk {
  background: linear-gradient(135deg, #7c3aed 0%, #5b0fff 100%);
  box-shadow: 0 8px 24px rgba(91, 15, 255, 0.3);
}

.mekari-emblem-circle.strukdat {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.mekari-emblem-circle.basdat {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.mekari-emblem-circle.statistika {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

/* Bottom Format Box — Mekari Structured Enterprise Format Badge */
.mekari-card-footer {
  width: 100%;
}

.mekari-format-box {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e9eaeb;
  border-radius: 10px;
  padding: 8px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.format-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.format-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 10.5px;
  font-weight: 700;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.format-label i {
  font-size: 11px;
  color: #5b0fff;
}

.format-badge-ext {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  line-height: 1.3;
  white-space: nowrap;
}

.format-badge-ext.dual {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.format-badge-ext.docx {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.format-badge-ext.pdf {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.format-code-wrap {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 6px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
  box-sizing: border-box;
  text-align: center;
  transition: all 0.2s ease;
  overflow: hidden;
}

.format-code-text {
  font-family: 'Fira Code', 'SFMono-Regular', Consolas, monospace !important;
  font-size: 10.5px;
  font-weight: 600;
  color: #181d27;
  letter-spacing: -0.025em;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* Card Hover State */
.subject-card:hover .mekari-format-box {
  background: #ffffff;
  border-color: #d0d5dd;
}

/* Active State Theming */
.subject-card.active .mekari-format-box,
.subject-card[data-subject="KDJK"].active .mekari-format-box {
  background: #faf5ff;
  border-color: #e9d7fe;
}

.subject-card.active .format-code-wrap,
.subject-card[data-subject="KDJK"].active .format-code-wrap {
  background: #ffffff;
  border-color: #c4aef5;
}

.subject-card.active .format-code-text,
.subject-card[data-subject="KDJK"].active .format-code-text {
  color: #5b0fff;
  font-weight: 700;
}

.subject-card[data-subject="STRUKDAT"].active .mekari-format-box {
  background: #eff8ff;
  border-color: #b2ddff;
}

.subject-card[data-subject="STRUKDAT"].active .format-code-wrap {
  background: #ffffff;
  border-color: #93c5fd;
}

.subject-card[data-subject="STRUKDAT"].active .format-code-text {
  color: #1d4ed8;
  font-weight: 700;
}

.subject-card[data-subject="BASDAT"].active .mekari-format-box {
  background: #ecfdf3;
  border-color: #a6f4c5;
}

.subject-card[data-subject="BASDAT"].active .format-code-wrap {
  background: #ffffff;
  border-color: #6ee7b7;
}

.subject-card[data-subject="BASDAT"].active .format-code-text {
  color: #027a48;
  font-weight: 700;
}

.subject-card[data-subject="STATISTIKA"].active .mekari-format-box {
  background: #fff6ed;
  border-color: #ffd6ae;
}

.subject-card[data-subject="STATISTIKA"].active .format-code-wrap {
  background: #ffffff;
  border-color: #fdba74;
}

.subject-card[data-subject="STATISTIKA"].active .format-code-text {
  color: #c2410c;
  font-weight: 700;
}

/* Fallback for legacy format-pill */
.format-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e9eaeb;
  border-radius: 8px;
  padding: 7px 10px;
  font-family: 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #475467;
  word-break: break-all;
  transition: all 0.2s ease;
}

/* Check Indicator — Animated bounce in */
.check-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #5b0fff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 5;
}

.subject-card.active .check-indicator {
  opacity: 1;
  transform: scale(1);
}

.subject-card[data-subject="STRUKDAT"].active .check-indicator {
  background: #2563eb;
}

.subject-card[data-subject="BASDAT"].active .check-indicator {
  background: #059669;
}

.subject-card[data-subject="STATISTIKA"].active .check-indicator {
  background: #ea580c;
}

/* ==========================================================================
   SAVED PROFILE BANNER & REMEMBER IDENTITY SYSTEM
   ========================================================================== */
.saved-profile-banner {
  background: #ffffff;
  border: 1.5px solid #dbeafe;
  border-left: 5px solid var(--primary);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  animation: fadeInBanner 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.saved-profile-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 70%);
  pointer-events: none;
}

@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.saved-profile-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.saved-profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

.saved-profile-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.saved-profile-topline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.saved-profile-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3.5px 12px;
  border-radius: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.saved-profile-badge i {
  color: #2563eb;
  font-size: 0.85rem;
}

.saved-profile-sync {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.saved-profile-sync i {
  color: #059669;
  font-size: 0.85rem;
}

.saved-profile-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.saved-profile-meta {
  font-size: 0.94rem;
  color: #475569;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.btn-reset-profile {
  background: #ffffff;
  border: 1.5px solid #dce5f0;
  border-radius: 14px;
  padding: 10px 20px;
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
}

.btn-reset-profile:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16);
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-action input {
  padding-right: 44px !important;
}

.nim-lookup-spinner {
  position: absolute;
  right: 15px;
  color: var(--primary);
  font-size: 1.05rem;
  pointer-events: none;
}

.nim-badge-status {
  font-size: 0.80rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 7px;
  background: #dbeafe;
  color: #1d4ed8;
  margin-left: auto;
}

.nim-badge-status.verified {
  background: #dcfce7;
  color: #15803d;
}

.remember-profile-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.remember-profile-box:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.remember-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.remember-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.remember-toggle input:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.remember-toggle input:checked + .checkbox-custom i {
  display: block;
}

.remember-toggle input:not(:checked) + .checkbox-custom i {
  display: none;
}

.remember-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.remember-text strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.remember-text small {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

/* ==========================================================================
   FORMS & INPUTS — Polished
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 36px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.form-group label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.form-group label i {
  color: var(--primary);
  font-size: 1.05rem;
  opacity: 0.85;
}

.req {
  color: var(--accent-rose);
  font-size: 0.92em;
}

input[type="text"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #dce5f0;
  border-radius: 16px;
  padding: 16px 22px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

input:hover,
textarea:hover,
select:hover {
  border-color: #c3d1e0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 2px 8px rgba(37, 99, 235, 0.06);
}

input::placeholder,
textarea::placeholder {
  color: #8295ab;
  font-size: 1.0rem;
}

textarea {
  resize: vertical;
  min-height: 155px;
  line-height: 1.6;
  font-size: 1.04rem;
}

/* Keterangan Kode Program & Keterangan Foto — Jauh lebih luas, lega, dan leluasa */
textarea.item-desc {
  min-height: 180px;
  line-height: 1.65;
  font-size: 1.04rem;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

textarea.item-desc:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 4px 12px rgba(37, 99, 235, 0.08);
}

.hint {
  font-size: 0.90rem;
  color: #52637a;
  font-weight: 500;
  line-height: 1.45;
  padding-left: 2px;
  margin-top: 3px;
}

/* Chips & Quick Selectors — Polished */
.pert-selector {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.field-spacing-lg {
  margin-top: 22px !important;
}

#kdjk-fields,
#strukdat-slot-field,
#strukdat-pj-field {
  margin-top: 26px;
}

.chip-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 10px 22px;
  color: #334155;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.chip-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.08);
}

.chip-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Toggle Switch Card — Premium */
.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  margin-bottom: 50px;
  transition: var(--transition-fast);
}

.toggle-card:hover {
  border-color: #cbd5e1;
  background: #f5f8fb;
}

.toggle-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.toggle-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

input:checked + .slider {
  background-color: var(--primary);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.2);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ==========================================================================
   PRE-TEST Q&A CARD COMPONENT (.qa-item)
   Memberikan jarak proporsional dan rapi antara Pertanyaan dan Jawaban
   ========================================================================== */
.qa-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.qa-item {
  background: #ffffff;
  border: 1.5px solid #dce5f0;
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.qa-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.08);
}

.qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.qa-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.qa-num i {
  color: var(--primary);
  font-size: 1rem;
}

.btn-delete-item,
.qa-item .btn-delete-item {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.06);
}

.btn-delete-item i,
.qa-item .btn-delete-item i {
  font-size: 0.84rem;
  color: #f43f5e;
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-delete-item:hover,
.qa-item .btn-delete-item:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.28);
}

.btn-delete-item:hover i,
.qa-item .btn-delete-item:hover i {
  color: #ffffff;
  transform: scale(1.12);
}

.btn-delete-item:active,
.qa-item .btn-delete-item:active {
  transform: translateY(0) scale(0.97);
}

/* Jarak eksplisit & lega antara field Soal dan field Jawaban */
.qa-item .qa-field-question {
  margin-bottom: 24px !important;
}

.qa-item .qa-field-question input {
  background: #fbfcfe;
}

.qa-item .qa-field-answer {
  margin-top: 4px;
}

.qa-item .qa-field-answer textarea {
  background: #fbfcfe;
}

/* ==========================================================================
   PHOTO FRAME COMPONENT & 2-COLUMN GRID SYSTEM
   Realistic Photo Frame with Full-Size Modal, Replace, and Delete
   ========================================================================== */

/* Strukdat Pre-Test Special Notice Banner & Badges */
.pretest-strukdat-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1.5px solid #c4b5fd;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 48px;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.05);
}

.pretest-strukdat-notice .notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #7c3aed;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pretest-strukdat-notice .notice-text {
  flex: 1;
}

.pretest-strukdat-notice .notice-text strong {
  display: block;
  font-size: 0.92rem;
  color: #5b21b6;
  margin-bottom: 3px;
  font-weight: 700;
}

.pretest-strukdat-notice .notice-text p {
  font-size: 0.82rem;
  color: #4c1d95;
  line-height: 1.5;
  margin: 0;
}

.badge-req-strukdat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* KDJK Pre-Test Notice Banner */
.pretest-kdjk-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 48px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.05);
}

.pretest-kdjk-notice .notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pretest-kdjk-notice .notice-text {
  flex: 1;
}

.pretest-kdjk-notice .notice-text strong {
  display: block;
  font-size: 0.92rem;
  color: #1e40af;
  margin-bottom: 3px;
  font-weight: 700;
}

.pretest-kdjk-notice .notice-text p {
  font-size: 0.82rem;
  color: #1d4ed8;
  line-height: 1.5;
  margin: 0;
}

/* Basdat Pre-Test Notice Banner */
.pretest-basdat-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 48px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.05);
}

.pretest-basdat-notice .notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pretest-basdat-notice .notice-text {
  flex: 1;
}

.pretest-basdat-notice .notice-text strong {
  display: block;
  font-size: 0.92rem;
  color: #065f46;
  margin-bottom: 3px;
  font-weight: 700;
}

.pretest-basdat-notice .notice-text p {
  font-size: 0.82rem;
  color: #047857;
  line-height: 1.5;
  margin: 0;
}

/* Statistika Pre-Test Notice Banner */
.pretest-statistika-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1.5px solid #5eead4;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 48px;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.05);
}

.pretest-statistika-notice .notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0d9488;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pretest-statistika-notice .notice-text {
  flex: 1;
}

.pretest-statistika-notice .notice-text strong {
  display: block;
  font-size: 0.92rem;
  color: #115e59;
  margin-bottom: 3px;
  font-weight: 700;
}

.pretest-statistika-notice .notice-text p {
  font-size: 0.82rem;
  color: #0f766e;
  line-height: 1.5;
  margin: 0;
}

/* General Mandatory Badge for Fields */
.badge-req-field {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #be123c;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* Pretest Photo Group & Spacing */
.pretest-photo-group,
#pretest-photo-group {
  margin-bottom: 34px !important;
  margin-top: 0 !important;
}

#pretest-photo-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px !important;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Pre-Test Single Photo Frame Card */
.photo-frame-card {
  background: #ffffff;
  border: 1.5px solid #dce5f0;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.photo-frame-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

/* Photo Frames Grid (2 Kolom per baris di Langkah Praktikum & Post-Test) */
.photo-frames-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 26px;
  row-gap: 52px;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .photo-frames-grid {
    grid-template-columns: 1fr;
    row-gap: 38px;
    column-gap: 20px;
  }
}

/* Photo Card Item (Per Langkah Praktikum) */
.photo-card-item {
  background: #ffffff;
  border: 1.5px solid #dce5f0;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.photo-card-item:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.photo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
}

.photo-card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.photo-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.photo-number-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.photo-card-badge i {
  color: var(--primary);
  font-size: 0.95rem;
}

.photo-crop-hint-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.06);
}

.photo-crop-hint-badge i {
  color: #d97706;
  font-size: 0.8rem;
}

.photo-card-badge.code-badge {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border-color: #ddd6fe;
  color: #6d28d9;
}

.photo-card-badge.code-badge i {
  color: #7c3aed;
}

.photo-card-item.code-card-item {
  grid-column: 1 / -1;
  border-left: 4px solid #7c3aed;
}

.btn-card-delete {
  background: #ffffff;
  border: 1px solid #fecaca;
  color: #ef4444;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.08);
}

.btn-card-delete:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* The Photo Frame Box (Aspect Ratio Frame Foto Nyata) */
.photo-frame-wrapper {
  width: 100%;
}

.photo-frame-box,
.photo-frame {
  position: relative;
  width: 100%;
  min-height: 96px;
  padding: 16px 20px;
  border: 2px dashed #93c5fd;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}

.photo-frame-box:hover,
.photo-frame:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff 0%, #e0effe 100%);
}

.photo-frame-box.has-image,
.photo-frame.has-image {
  aspect-ratio: 16 / 10;
  min-height: 240px;
  padding: 0;
  border-style: solid;
  border-color: #cbd5e1;
  background: #0b1120;
  cursor: default;
}

/* Empty Placeholder Inside Frame — Sleek Compact Horizontal / Row Layout */
.photo-frame-empty {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 14px;
  text-align: left;
  user-select: none;
  width: 100%;
}

.frame-camera-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.photo-frame-box:hover .frame-camera-icon,
.photo-frame:hover .frame-camera-icon {
  transform: scale(1.08);
  background: var(--primary);
  color: #ffffff;
}

.frame-upload-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.frame-upload-text strong {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 700;
}

.frame-upload-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.frame-badge-format {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

/* Filled Photo State */
.photo-frame-filled {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
  overflow: hidden;
  border-radius: 16px;
}

.frame-image-preview,
.frame-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.photo-frame:hover .frame-image-preview {
  transform: scale(1.015);
}

/* Floating Glass Pill Toolbar (Modern Floating Capsule UI) */
.frame-hover-toolbar,
.photo-frame-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px) saturate(190%);
  -webkit-backdrop-filter: blur(16px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.25);
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.photo-frame:hover .frame-hover-toolbar,
.photo-frame-box:hover .photo-frame-overlay {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn-frame-tool {
  border: none;
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  font-family: inherit;
  outline: none;
}

/* 1. Full Size (Electric Blue Glow Glass) */
.btn-tool-zoom {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}

.btn-tool-zoom:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.65);
  transform: translateY(-1px) scale(1.02);
  color: #ffffff;
}

.btn-tool-zoom i {
  font-size: 0.85rem;
}

/* 2. Ganti Foto (Frosted Glass Minimalist) */
.btn-tool-replace {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.btn-tool-replace:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-tool-replace i {
  font-size: 0.82rem;
  transition: transform 0.3s ease;
}

.btn-tool-replace:hover i {
  transform: rotate(90deg);
}

/* 3. Hapus Foto (Ruby Red Glass) */
.btn-tool-delete {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.btn-tool-delete:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px) scale(1.02);
}

.btn-tool-delete i {
  font-size: 0.82rem;
}

/* Multi-Photo Container & Controls */
.photo-frames-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.extra-photo-frame {
  margin-top: 4px;
  animation: fadeInFrame 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInFrame {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.extra-frame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 4px;
}

.extra-frame-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-remove-extra-frame {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.btn-remove-extra-frame:hover {
  background: #fee2e2;
  color: #b91c1c;
  transform: scale(1.03);
}

.photo-frames-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.btn-add-subphoto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #f5f3ff;
  color: #5b0fff;
  border: 1.5px dashed #c4b5fd;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(91, 15, 255, 0.04);
}

.btn-add-subphoto:hover {
  background: #ede9fe;
  border-color: #7c3aed;
  color: #4c1d95;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(91, 15, 255, 0.15);
}

.btn-add-subphoto:active {
  transform: translateY(0) scale(0.98);
}

/* Form Fields Under Photo */
.photo-card-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 10px;
}

.photo-card-fields .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-card-fields .item-caption-group,
.photo-card-fields .form-group:first-child {
  margin-bottom: 8px;
}

.photo-card-fields label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.photo-card-fields input[type="text"] {
  padding: 11px 14px;
  font-size: 0.9rem;
  border-radius: 12px;
}

.photo-card-fields textarea {
  padding: 11px 14px;
  font-size: 0.88rem;
  border-radius: 12px;
  min-height: 75px;
  resize: vertical;
}

/* ==========================================================================
   TOP ACTION BAR — Pilihan Input di Awal (Tepat di bawah Header / Banner)
   ========================================================================== */
.action-bar-top {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 20px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  transition: all 0.25s ease;
}

.action-bar-top:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.action-bar-top-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-bar-top-header .action-bar-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-bar-top-header .action-bar-label i {
  color: var(--primary);
  font-size: 1rem;
}

.action-bar-top-header .action-bar-sublabel {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.action-bar-top-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-choice-code,
.btn-choice-photo {
  padding: 11px 20px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

/* Primary Code Button (Struktur Data Mode) */
.btn-choice-code {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-choice-code:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
}

/* Primary Photo Button (KDJK Mode) */
.btn-choice-photo {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-choice-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Outline / Secondary variants */
.btn-choice-code.secondary,
.btn-choice-photo.secondary {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  box-shadow: none;
}

.btn-choice-code.secondary:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #faf5ff;
}

.btn-choice-photo.secondary:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

/* Action Buttons Under the 2 Frames */
.action-bar-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 28px;
  flex-wrap: wrap;
}

.btn-add-frame-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  padding: 13px 24px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
  transition: all 0.25s ease;
}

.btn-add-frame-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.38);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-add-frame-secondary {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1.5px solid #cbd5e1;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-frame-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
  transform: translateY(-2px);
}

/* Struktur Data Accent & Variant for Action Bars */
.action-bar-top.strukdat-accent {
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
  border-color: #ddd6fe;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.action-bar-top.strukdat-accent .action-bar-top-header .action-bar-label i {
  color: #7c3aed;
}

.action-bar-top.kdjk-accent {
  background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.action-bar-top.kdjk-accent .action-bar-top-header .action-bar-label i {
  color: #2563eb;
}

.btn-add-frame-primary.btn-code-theme {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.btn-add-frame-primary.btn-code-theme:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.45);
}

/* Basis Data Accent & Variant for Action Bars */
.action-bar-top.basdat-accent {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #a7f3d0;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
}

.action-bar-top.basdat-accent .action-bar-top-header .action-bar-label i {
  color: #059669;
}

.btn-choice-sql {
  padding: 11px 20px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.btn-choice-sql:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.4);
  background: linear-gradient(135deg, #047857 0%, #0f766e 100%);
}

.btn-choice-sql.secondary {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  box-shadow: none;
}

.btn-choice-sql.secondary:hover {
  border-color: #059669;
  color: #059669;
  background: #f0fdf4;
}

.btn-add-frame-primary.btn-sql-theme {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.btn-add-frame-primary.btn-sql-theme:hover {
  background: linear-gradient(135deg, #047857 0%, #0f766e 100%);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.45);
}

.btn-add-frame-primary.btn-statistika-theme {
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}

.btn-add-frame-primary.btn-statistika-theme:hover {
  background: linear-gradient(135deg, #c2410c 0%, #b45309 100%);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.45);
}

.active-report-banner.basdat-theme {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #a7f3d0;
}

.active-report-banner.basdat-theme .active-report-icon-box {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.active-report-banner.statistika-theme {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
}

.active-report-banner.statistika-theme .active-report-icon-box {
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}

.active-subj-pill.basdat-pill {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.active-subj-pill.statistika-pill {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #ea580c;
}

/* ==========================================================================
   FULL SIZE & MINIMIZE LIGHTBOX MODAL PREVIEW
   ========================================================================== */
.photo-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  animation: fadeInOverlay 0.25s ease;
}

.lightbox-dialog {
  position: relative;
  z-index: 10;
  width: 95vw;
  max-width: 1100px;
  max-height: 92vh;
  background: #ffffff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  animation: zoomInDialog 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomInDialog {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-header {
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-title-box i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.lightbox-title-box strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.lightbox-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-lightbox-close {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: var(--primary);
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.btn-lightbox-close:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.lightbox-body {
  flex: 1;
  background: #090e1a;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  max-height: 70vh;
  min-height: 360px;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-footer {
  padding: 12px 24px;
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.lightbox-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #15803d;
  font-weight: 600;
}

/* Dynamic Item Cards — Enhanced */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 30px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.item-card[data-type="code"] {
  border-left: 4.5px solid #8b5cf6;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

/* Card spacing & pemisah lapang antar kartu Kode Program (2.1, 2.2, dst.) */
.photo-frames-grid > .item-card,
.photo-frames-grid > .photo-card-item.code-card-item,
.photo-frames-grid > [data-type="code"] {
  margin-top: 12px;
  margin-bottom: 22px;
}

.photo-frames-grid > .item-card:first-child,
.photo-frames-grid > .photo-card-item.code-card-item:first-child,
.photo-frames-grid > [data-type="code"]:first-child {
  margin-top: 0;
}

.photo-frames-grid > .item-card:last-child,
.photo-frames-grid > .photo-card-item.code-card-item:last-child,
.photo-frames-grid > [data-type="code"]:last-child {
  margin-bottom: 0;
}

.item-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.item-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0 !important;
}

.item-card .form-group label {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.item-card .form-group label i {
  color: var(--primary);
  font-size: 1.0rem;
}

.item-card .item-caption-group {
  margin-bottom: 8px;
}

.item-card .item-code-group.code-editor-box {
  margin-bottom: 16px;
}

.item-card .item-photo-group {
  margin-bottom: 10px;
}

.photo-card-item.code-card-item .photo-card-fields .code-editor-box {
  margin-bottom: 16px;
}

/* Telegram-style notice informing auto-naming and format */
.field-hint-format {
  display: block;
  font-size: 0.83rem;
  font-style: italic;
  color: #2563eb;
  font-weight: 500;
  margin-top: -2px;
  margin-bottom: 5px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.field-hint-format b,
.field-hint-format strong {
  font-weight: 700;
  color: #1d4ed8;
  font-style: italic;
}

.photo-card-item.code-card-item .field-hint-format {
  color: #7c3aed;
}

.photo-card-item.code-card-item .field-hint-format b,
.photo-card-item.code-card-item .field-hint-format strong {
  color: #5b21b6;
}

.item-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.item-badge.photo {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-subtle);
}

.item-badge.code {
  background: #f5f3ff;
  color: var(--accent-purple);
  border: 1px solid #ddd6fe;
}

.btn-delete-item {
  background: none;
  border: none;
  color: var(--accent-rose);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-delete-item:hover {
  background: #fee2e2;
  transform: scale(1.05);
}

/* Post-Test Code Card Spacing */
.photo-card-item.code-card-item {
  padding: 28px 30px;
  border-radius: 20px;
}

.photo-card-item.code-card-item .photo-card-fields {
  display: flex;
  flex-direction: column;
  gap: 24px !important;
  margin-top: 14px;
}

.photo-card-item.code-card-item .photo-card-fields .form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0 !important;
}

.photo-card-item.code-card-item .photo-card-fields label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

/* Code Editor Textarea — Dark themed, spacious & tall IDE Style */
.code-editor-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.code-editor-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  border: 1.5px solid #334155;
  border-bottom: 1px solid #0f172a;
  border-radius: 16px 16px 0 0;
  padding: 10px 18px;
  z-index: 2;
}

.code-editor-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.code-editor-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.code-editor-dots .dot-red { background: #ef4444; }
.code-editor-dots .dot-yellow { background: #f59e0b; }
.code-editor-dots .dot-green { background: #10b981; }

.code-editor-tag {
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}

.code-textarea {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.95rem;
  background: #090e1a;
  color: #38bdf8;
  border: 1.5px solid #334155;
  border-radius: 16px;
  padding: 22px 24px;
  white-space: pre;
  tab-size: 4;
  line-height: 1.65;
  min-height: 460px !important;
  resize: vertical;
  outline: none;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.55);
  transition: all 0.2s ease;
}

.code-editor-header-bar + .code-textarea {
  border-top: none;
  border-radius: 0 0 16px 16px !important;
}

.code-textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16), inset 0 2px 14px rgba(0, 0, 0, 0.55);
}

.pretest-a-input {
  min-height: 120px;
  line-height: 1.6;
  font-size: 0.94rem;
  padding: 14px 18px;
}

#ulasan {
  min-height: 150px;
  line-height: 1.65;
  font-size: 0.95rem;
  padding: 16px 18px;
}

/* QA Items for Pre-test — Polished */
.qa-item {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
  transition: var(--transition-fast);
}

.qa-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qa-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
}

/* Ulasan Box — Accent left border */
.ulasan-box {
  border-left: 4px solid var(--primary);
}

.ulasan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.ulasan-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.ulasan-hint {
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Review Summary — Enhanced */
.review-card {
  margin-bottom: 24px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.review-item {
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.review-item:hover {
  border-color: #cbd5e1;
  background: #f5f8fb;
}

.review-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.review-item strong {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 700;
}

/* ==========================================================================
   FILENAME ESTIMATION BOX (Step 5 Review)
   ========================================================================== */
.filename-preview-box {
  margin-top: 18px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.04);
  transition: all 0.25s ease;
}

.filename-preview-box:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
}

.filename-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.filename-preview-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
}

.filename-preview-title i {
  color: #2563eb;
  font-size: 0.95rem;
}

.filename-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.filename-preview-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.filename-preview-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.filename-preview-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fee2e2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.filename-preview-text {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  word-break: break-all;
  user-select: all;
}

.filename-preview-text .file-ext {
  color: #2563eb;
  font-weight: 800;
}

.btn-copy-filename {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-copy-filename:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-copy-filename:active {
  transform: translateY(0);
}

.btn-copy-filename.copied {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .filename-preview-content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-copy-filename {
    justify-content: center;
  }
}


/* ==========================================================================
   BUTTONS — Premium interactions
   ========================================================================== */
.btn-primary, .btn-secondary {
  padding: 16px 36px;
  border-radius: 16px;
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Shine sweep effect on primary button */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
  background: #ffffff;
  border: 1.5px solid var(--border);
  color: #334155;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   GENERATE CTA BUTTON — Ultra-Premium SaaS Style
   ========================================================================== */
.generate-cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-generate-big {
  width: 100%;
  padding: 16px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 12px 30px -4px rgba(37, 99, 235, 0.4),
    0 4px 12px rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Light shimmer sweep animation */
.btn-generate-big::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  transition: left 0.75s ease;
  pointer-events: none;
}

.btn-generate-big:hover::before {
  left: 120%;
}

.btn-generate-big:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 45%, #2563eb 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 16px 36px -4px rgba(37, 99, 235, 0.48),
    0 6px 16px rgba(37, 99, 235, 0.25);
}

.btn-generate-big:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 6px 16px -2px rgba(37, 99, 235, 0.4);
}

.btn-generate-big:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

.btn-gen-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.btn-gen-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.btn-generate-big:hover .btn-gen-icon {
  transform: scale(1.08) rotate(6deg);
}

.btn-gen-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.btn-gen-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.25;
}

.btn-gen-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2px;
  letter-spacing: 0;
}

.btn-gen-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.btn-gen-badge i {
  font-size: 0.78rem;
  transition: transform 0.25s ease;
}

.btn-generate-big:hover .btn-gen-badge {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-generate-big:hover .btn-gen-badge i {
  transform: translateX(4px);
}

.generate-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 12px;
}

.generate-guarantee i {
  color: var(--primary);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .btn-gen-content {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .btn-gen-text {
    align-items: center;
    text-align: center;
  }
  .btn-gen-badge {
    display: none;
  }
}

/* ==========================================================================
   LOADING OVERLAY & SPINNER — Enhanced
   ========================================================================== */
.loading-overlay {
  text-align: center;
  padding: 40px 20px;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #dbeafe;
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.9s linear infinite;
}

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

.loader-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.loader-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.loader-progress-bar {
  max-width: 400px;
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  margin: 0 auto;
  overflow: hidden;
}

.loader-progress-inner {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  animation: progressAnim 3.5s ease-in-out forwards;
}

@keyframes progressAnim {
  0% { width: 10%; }
  35% { width: 50%; }
  75% { width: 85%; }
  100% { width: 98%; }
}

/* ==========================================================================
   RESULT SECTION & DOWNLOAD CARDS — Enhanced
   ========================================================================== */
.result-section {
  text-align: center;
  padding: 36px 24px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: var(--accent-emerald);
  padding: 7px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid #a7f3d0;
}

.result-title {
  font-size: 1.7rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.result-desc {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  text-align: left;
}

.download-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.download-card.docx {
  border-left: 4px solid #2563eb;
}

.download-card.pdf {
  border-left: 4px solid #dc2626;
}

.card-file-icon {
  font-size: 2.4rem;
}

.download-card.docx .card-file-icon { color: #2563eb; }
.download-card.pdf .card-file-icon { color: #dc2626; }

.card-file-info .file-type {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.card-file-info .file-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  word-break: break-all;
  margin: 4px 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.card-file-info .file-tag {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.btn-download {
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.download-card.docx .btn-download {
  background: #2563eb;
  color: white;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}
.download-card.docx .btn-download:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.3);
}

.download-card.pdf .btn-download {
  background: #dc2626;
  color: white;
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.25);
}
.download-card.pdf .btn-download:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   ADMIN DASHBOARD SPECIFIC STYLES
   ========================================================================== */
.admin-body {
  background-color: var(--bg-page);
}

.admin-wrapper {
  max-width: 1100px;
}

.pin-card {
  max-width: 440px;
  margin: 60px auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.pin-icon {
  width: 60px;
  height: 60px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: var(--accent-amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.pin-card h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.pin-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pin-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pin-input-group input {
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 4px;
}

.pin-error {
  color: var(--accent-rose);
  font-size: 0.85rem;
  margin-top: 12px;
  font-weight: 600;
}

.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title {
  font-size: 1.8rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.admin-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.admin-top-actions {
  display: flex;
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-icon.users {
  background: var(--primary-light);
  color: var(--primary);
}

.stat-icon.reports {
  background: #ecfdf5;
  color: var(--accent-emerald);
}

.stat-icon.kdjk {
  background: #eef2ff;
  color: var(--accent-indigo);
}

.stat-icon.strukdat {
  background: #f5f3ff;
  color: var(--accent-purple);
}

.stat-icon.basdat {
  background: #ecfeff;
  color: #0891b2;
}

.stat-icon.statistika {
  background: #fff7ed;
  color: #ea580c;
}

.stat-val {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.table-section {
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-top: 24px;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.table-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-count {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-box {
  position: relative;
  width: 280px;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.search-box input {
  padding-left: 38px;
  font-size: 0.85rem;
}

.table-responsive {
  overflow-x: auto;
}

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

.data-table th, .data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.data-table th {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

/* ==========================================================================
   DEVELOPER SECTION (Direct from Finance Manager)
   ========================================================================== */
.developer-section {
  padding: 80px 0 40px;
  scroll-margin-top: 80px;
}

.developer-heading {
  max-width: 750px;
  margin: 0 auto 40px;
  text-align: center;
}

.developer-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 10px 18px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.developer-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
}

.developer-heading p {
  max-width: 680px;
  margin: 16px auto 0;
  color: #64748b;
  font-size: 15.5px;
  line-height: 1.8;
}

.developer-card {
  position: relative;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 45px;
  align-items: center;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.06) 0%, transparent 40%),
    #ffffff;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.07);
}

.developer-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
}

.developer-photo-wrapper {
  position: relative;
  z-index: 1;
}

.developer-photo {
  position: relative;
  width: 250px;
  height: 290px;
  margin: 0 auto;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #dce7f6;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.developer-photo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  object-position: 43% 20%;
}

.developer-photo-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #2563eb;
  color: #ffffff;
  font-size: 80px;
  font-weight: 800;
}

.developer-status {
  position: relative;
  width: fit-content;
  margin: -18px auto 0;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce8f4;
  border-radius: 999px;
  background: #ffffff;
  color: #526077;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.developer-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.developer-information {
  position: relative;
  z-index: 1;
}

.developer-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5ebf3;
}

.developer-role {
  display: inline-block;
  margin-bottom: 6px;
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.developer-title h3 {
  margin: 0;
  color: #0f172a;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.developer-title p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14.5px;
  font-weight: 500;
}

.developer-code-icon {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  font-size: 24px;
  transition: var(--transition-normal);
}

.developer-code-icon:hover {
  transform: rotate(5deg) scale(1.05);
}

.developer-description p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.8;
}

.developer-tech-title {
  margin: 22px 0 12px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 750;
}

.developer-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.developer-technologies span {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.developer-technologies span:hover {
  border-color: #bfdbfe;
  color: #2563eb;
  background: var(--primary-light);
  transform: translateY(-1px);
}

.developer-technologies span i {
  color: #2563eb;
  font-size: 14px;
}

.developer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.developer-button {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.developer-button.primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.developer-button.primary:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.developer-button.secondary {
  border: 1.5px solid #dce5f0;
  background: #ffffff;
  color: #475569;
}

.developer-button.secondary:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  color: #2563eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

/* LANDING FOOTER (Matching Finance Manager) */
.landing-footer {
  margin-top: 40px;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e2e8f0;
}

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

.landing-footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.landing-footer-brand strong {
  display: block;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 700;
}

.landing-footer-brand span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
}

.landing-footer p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.landing-footer a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.landing-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .developer-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .developer-title {
    flex-direction: column;
    align-items: center;
  }
  .developer-code-icon {
    display: none;
  }
  .developer-technologies,
  .developer-actions {
    justify-content: center;
  }
}

@media (max-width: 650px) {
  .developer-section {
    padding-top: 50px;
  }
  .developer-card {
    padding: 26px 20px;
    border-radius: 24px;
  }
  .developer-photo {
    width: 220px;
    height: 255px;
  }
  .developer-title h3 {
    font-size: 28px;
  }
  .developer-actions {
    flex-direction: column;
  }
  .developer-button {
    width: 100%;
  }
  .landing-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Utilities */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 20px; }
.mb-4 { margin-bottom: 20px; }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   SESSION DRAFT STATUS DOCK (FLOATING COMPACT ISLAND)
   Centered, compact, tactile macOS Dynamic Island aesthetic
   ========================================================================== */
.draft-session-dock-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
}

.draft-session-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 9999px;
  padding: 6px 12px 6px 16px;
  box-shadow: 
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 10px 25px -4px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 10;
}

.draft-session-bar:hover {
  border-color: #94a3b8;
  box-shadow: 
    0 4px 8px rgba(15, 23, 42, 0.05),
    0 14px 32px -4px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Hairline Divider between island segments */
.draft-session-divider {
  width: 1px;
  height: 18px;
  background: rgba(203, 213, 225, 0.8);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   1. Left: Live Radar Sync Beacon & Status
   -------------------------------------------------------------------------- */
.draft-session-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.draft-status-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.draft-beacon-box {
  position: relative;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.draft-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.draft-beacon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  animation: beaconPulse 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

.draft-pulse-dot.saving {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
}

.draft-beacon-box:has(.draft-pulse-dot.saving) .draft-beacon-ring {
  background: rgba(245, 158, 11, 0.35);
  animation: beaconPulse 1.2s infinite ease-out;
}

@keyframes beaconPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  60% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.draft-status-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.draft-last-saved {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1px 7px;
  border-radius: 9999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.4;
}

.draft-last-saved:empty {
  display: none !important;
}

.draft-last-saved:not(:empty)::before {
  content: "\f017";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.68rem;
  margin-right: 4px;
}

/* --------------------------------------------------------------------------
   2. Middle: Active Practicum Module Capsule
   -------------------------------------------------------------------------- */
.draft-session-mid {
  display: inline-flex;
  align-items: center;
}

.active-subj-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px 3px 4px;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.pill-icon-box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.76rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.pill-subj-name {
  font-size: 0.80rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pill-pert-badge {
  background: #ffffff;
  border: 1px solid currentColor;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pill-switch-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid currentColor;
  margin-left: 3px;
  opacity: 0.85;
  transition: all 0.2s ease;
}

/* Theme Variations */
/* KDJK */
.active-subj-pill.kdjk-pill {
  background: rgba(239, 246, 255, 0.95);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08);
}
.active-subj-pill.kdjk-pill .pill-icon-box {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.35);
}
.active-subj-pill.kdjk-pill .pill-switch-tag {
  color: #1d4ed8;
  border-color: #93c5fd;
}

/* BASDAT */
.active-subj-pill.basdat-pill {
  background: rgba(236, 253, 245, 0.95);
  border: 1px solid #a7f3d0;
  color: #065f46;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.08);
}
.active-subj-pill.basdat-pill .pill-icon-box {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.35);
}
.active-subj-pill.basdat-pill .pill-switch-tag {
  color: #065f46;
  border-color: #6ee7b7;
}

/* STRUKDAT */
.active-subj-pill.strukdat-pill {
  background: rgba(245, 243, 255, 0.95);
  border: 1px solid #ddd6fe;
  color: #5b21b6;
  box-shadow: 0 1px 4px rgba(124, 58, 237, 0.08);
}
.active-subj-pill.strukdat-pill .pill-icon-box {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  box-shadow: 0 2px 5px rgba(124, 58, 237, 0.35);
}
.active-subj-pill.strukdat-pill .pill-switch-tag {
  color: #5b21b6;
  border-color: #c4b5fd;
}

/* STATISTIKA */
.active-subj-pill.statistika-pill {
  background: rgba(255, 247, 237, 0.95);
  border: 1px solid #fed7aa;
  color: #9a3412;
  box-shadow: 0 1px 4px rgba(234, 88, 12, 0.08);
}
.active-subj-pill.statistika-pill .pill-icon-box {
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.35);
}
.active-subj-pill.statistika-pill .pill-switch-tag {
  color: #9a3412;
  border-color: #fdba74;
}

/* Hover on Pill */
.active-subj-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1);
}
.active-subj-pill:hover .pill-icon-box {
  transform: scale(1.06);
}
.active-subj-pill:hover .pill-switch-tag {
  opacity: 1;
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Right: Reset Draft Utility Button
   -------------------------------------------------------------------------- */
.draft-session-right {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-clear-draft {
  background: transparent;
  border: 1px solid rgba(203, 213, 225, 0.85);
  color: #64748b;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-clear-draft .btn-clear-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  color: #64748b;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.btn-clear-draft:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
  transform: translateY(-0.5px);
}

.btn-clear-draft:hover .btn-clear-icon {
  color: #dc2626;
  transform: rotate(-90deg);
}

.btn-clear-draft:active {
  transform: scale(0.96);
}

/* ==========================================================================
   ACTIVE REPORT CONTEXT HEADER BANNER (STEPS 2, 3, 4, 5)
   Prominent banner informing the user which subject is currently being worked on
   ========================================================================== */
.active-report-banner {
  margin-bottom: 26px;
  border-radius: 22px;
  padding: 20px 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: bannerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.active-report-banner.kdjk-theme {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(219, 234, 254, 0.85) 100%);
  border: 1.5px solid #93c5fd;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.08);
}

.active-report-banner.strukdat-theme {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.98) 0%, rgba(237, 233, 254, 0.85) 100%);
  border: 1.5px solid #c4b5fd;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.08);
}

.active-report-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.active-report-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 270px;
}

.active-report-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.kdjk-theme .active-report-icon-box {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}

.strukdat-theme .active-report-icon-box {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ffffff;
}

.active-report-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.active-report-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.report-status-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.kdjk-theme .report-status-badge {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.strukdat-theme .report-status-badge {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.report-pert-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.active-report-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 1px 0 0;
  line-height: 1.3;
}

.active-report-materi {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.active-report-materi .materi-label {
  font-weight: 600;
  color: #64748b;
}

.btn-change-subject-quick {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
}

.btn-change-subject-quick:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   FLOATING TOAST: DRAFT RESTORED (PREMIUM FROSTED GLASS PILL)
   ========================================================================== */
.draft-restored-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 20px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.85), 0 8px 24px -4px rgba(37, 99, 235, 0.12);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 440px;
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  animation: toastSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}

.draft-restored-toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.95), 0 10px 28px -4px rgba(37, 99, 235, 0.16);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.draft-restored-toast .toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.draft-restored-toast .toast-content {
  flex: 1;
  padding-top: 1px;
}

.draft-restored-toast .toast-content strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.draft-restored-toast .toast-content p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #475569;
}

.draft-restored-toast .toast-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.draft-restored-toast .toast-close:hover {
  color: #0f172a;
  background: #e2e8f0;
  transform: rotate(90deg);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .main-wrapper { padding: 36px 20px 80px; }
  .glass-panel { padding: 46px 40px; }
}

@media (max-width: 768px) {
  .main-wrapper { padding: 24px 14px 60px; }
  .navbar {
    margin: 12px auto 0;
    width: calc(100% - 20px);
    border-radius: 18px;
  }
  .hero-title { font-size: 1.9rem; }
  .subject-selector { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .download-cards-grid { grid-template-columns: 1fr; }
  .glass-panel { padding: 32px 20px; }
  .step-label { display: none; }
  .action-bar-top { flex-direction: column; align-items: stretch; }
  .nav-container { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px; }
  .nav-actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .nav-divider { display: none; }
  .draft-session-dock-wrap { margin-bottom: 16px; }
  .draft-session-bar { 
    flex-wrap: wrap; 
    border-radius: 20px; 
    gap: 8px 12px; 
    padding: 8px 14px;
    justify-content: center;
  }
  .draft-session-divider { display: none; }
}

/* ==========================================================================
   LUXURY IN-APP TOAST NOTIFICATION SYSTEM (SONNER / LINEAR MODERN OBSIDIAN HUD)
   Replaces generic AI pastel cards with sleek developer-grade notifications
   ========================================================================== */
.laprak-toast-container {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 430px;
}

.laprak-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 13px 15px 15px 14px;
  border-radius: 14px;
  background: rgba(13, 17, 28, 0.96);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: toastSlideDown 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

.laprak-toast.toast-hiding {
  animation: toastSlideUpFade 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideUpFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }
}

/* Toast Icon - Compact, crisp, glowing micro-badge */
.laprak-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Toast Variant Themes */
.laprak-toast.success .laprak-toast-icon {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}
.laprak-toast.success .laprak-toast-progress-bar {
  background: #10b981;
}

.laprak-toast.warning .laprak-toast-icon {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}
.laprak-toast.warning .laprak-toast-progress-bar {
  background: #f59e0b;
}

.laprak-toast.error .laprak-toast-icon {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(251, 113, 133, 0.3);
  color: #fb7185;
}
.laprak-toast.error .laprak-toast-progress-bar {
  background: #f43f5e;
}

.laprak-toast.info .laprak-toast-icon {
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(165, 180, 252, 0.3);
  color: #a5b4fc;
}
.laprak-toast.info .laprak-toast-progress-bar {
  background: #6366f1;
}

/* Toast Text Body */
.laprak-toast-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.laprak-toast-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.laprak-toast-msg {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.45;
  color: #94a3b8;
  word-break: break-word;
}

/* Toast Close Button - Minimalist Ghost Icon */
.laprak-toast-close {
  background: transparent;
  border: none;
  color: #64748b;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.18s ease;
}

.laprak-toast-close:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.1);
}

/* Toast Progress Bar - Hairline Bottom Glow */
.laprak-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.laprak-toast-progress-bar {
  height: 100%;
  width: 100%;
  opacity: 0.9;
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* Field Highlight Animation on Warning */
@keyframes fieldPulseWarn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.35); border-color: #f59e0b !important; }
}
.field-highlight-warn {
  animation: fieldPulseWarn 0.8s ease-in-out 2;
  border-color: #f59e0b !important;
}

/* Responsive adjustment for Mobile */
@media (max-width: 640px) {
  .laprak-toast-container {
    top: 14px;
    width: calc(100vw - 28px);
    max-width: none;
  }
  .laprak-toast {
    padding: 12px 14px 14px;
    border-radius: 13px;
    gap: 10px;
  }
  .laprak-toast-icon {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
    border-radius: 7px;
  }
  .laprak-toast-title {
    font-size: 13px;
  }
  .laprak-toast-msg {
    font-size: 12px;
    line-height: 1.4;
  }
}


/* ==========================================================================
   MEKARI.COM 99% REPLICA DESIGN SYSTEM FOR LAPRAKIN.WEB.ID
   Authentic SaaS Aesthetics: Inter Font, Electric Indigo #5B0FFF, Crisp Borders,
   Lavender Pills #EFE7FF, Multi-layer Elevation, and Pixel-perfect Layouts
   ========================================================================== */

/* 1. MEKARI NAVBAR */
.mekari-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #eaecf0;
  height: 70px;
  width: 100%;
  transition: all 0.2s ease;
  zoom: 1.25; /* Kompensasi zoom: 0.8 pada body (0.8 * 1.25 = 1.0) agar ukuran navbar 100% presisi sama persis dengan Mekari */
}

.mekari-nav-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 70px;
  width: 100%;
}

.mekari-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #181d27;
  flex-shrink: 0;
  margin-right: 40px;
}

.mekari-brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.mekari-brand:hover .mekari-brand-icon {
  transform: scale(1.05);
}

.mekari-brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.mekari-brand-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.mekari-brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #181d27;
  letter-spacing: -0.5px;
  line-height: 1;
}

.mekari-brand-badge {
  font-size: 11px;
  font-weight: 700;
  color: #5b0fff;
  background: #efe7ff;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0;
  line-height: 1.2;
}

.mekari-nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.mekari-nav-item {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
}

.mekari-nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: #344054;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.15s ease;
  white-space: nowrap;
  line-height: 20px;
}

.mekari-nav-link:hover {
  color: #5b0fff;
  text-decoration: none;
}

.mekari-nav-link i {
  font-size: 10px;
  color: #667085;
  transition: transform 0.2s ease;
  margin-top: 1px;
}

.mekari-nav-item:hover .mekari-nav-link i {
  transform: rotate(180deg);
  color: #5b0fff;
}

.nav-free-badge {
  font-size: 10px;
  font-weight: 700;
  background: #10b981;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dropdown Menu */
.mekari-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 290px;
  background: #ffffff;
  border: 1px solid #e9eaeb;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mekari-nav-item:hover .mekari-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #181d27;
  transition: background 0.15s ease;
}

.dropdown-item-card:hover {
  background: #f6f2ff;
  text-decoration: none;
}

.dropdown-item-card .drop-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #efe7ff;
  color: #5b0fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.dropdown-item-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #181d27;
  line-height: 1.3;
}

.dropdown-item-card small {
  display: block;
  font-size: 11px;
  color: #717680;
  line-height: 1.2;
}

/* Navbar Right Controls */
.mekari-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

.mekari-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #344054;
  background: transparent;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.mekari-lang-badge:hover {
  color: #5b0fff;
}

.caret-sm {
  font-size: 9px;
  color: #667085;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5b0fff;
  background: #efe7ff;
  border: 1px solid #d8b4fe;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  height: 36px;
}

.btn-demo:hover {
  background: #e5d5ff;
  border-color: #c084fc;
  transform: translateY(-1px);
}

.btn-mekari-signin {
  font-size: 14.5px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
  background: transparent;
}

.btn-mekari-signin:hover {
  color: #1d4ed8;
  text-decoration: underline;
  background: transparent;
}

.mekari-nav-divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  margin: 0 4px;
  flex-shrink: 0;
}

.btn-mekari-waba {
  background: #5b0fff;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 600;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-mekari-waba:hover {
  background: #470bcc;
  box-shadow: 0 4px 12px rgba(91, 15, 255, 0.25);
  text-decoration: none;
}

.btn-mekari-waba i {
  font-size: 16px;
}

/* 2. MEKARI HERO / MASTHEAD SECTION */
.mekari-masthead {
  position: relative;
  padding: 56px 20px 24px;
  background: #ffffff;
  overflow: hidden;
}

.mekari-masthead-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.mekari-outline-badge {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 16px;
}

.mekari-outline-badge span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: #40149e;
  background: #efe7ff;
  border-radius: 30px;
  padding: 6px 18px;
  border: 1px solid rgba(196, 174, 245, 0.4);
  letter-spacing: -0.01em;
}

.mekari-hero-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 52px;
  line-height: 66px;
  font-weight: 800;
  color: #181d27;
  max-width: 1040px;
  margin: 0 auto 18px;
  letter-spacing: -0.03em;
}

.mekari-hero-desc {
  font-size: 18.5px;
  line-height: 30px;
  color: #535862;
  max-width: 880px;
  margin: 0 auto 32px;
  letter-spacing: -0.01em;
}

.mekari-ai-sparkle-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #efe7ff;
  color: #5b0fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(91, 15, 255, 0.2);
}

.mekari-ai-sparkle-icon {
  font-size: 12px;
  color: #5b0fff;
}

.mekari-hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-mekari-hero-purple {
  background: #5b0fff;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(91, 15, 255, 0.25);
  transition: all 0.2s ease;
}

.btn-mekari-hero-purple:hover {
  background: #40149e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 15, 255, 0.35);
  text-decoration: none;
}

.btn-mekari-hero-white {
  background: #ffffff;
  color: #252726 !important;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid #dcdfe4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-mekari-hero-white:hover {
  background: #f8f8fb;
  border-color: #c4aef5;
  color: #5b0fff !important;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-mekari-hero-white i {
  transition: transform 0.2s ease;
}

.btn-mekari-hero-white:hover i {
  transform: translateY(2px);
}

/* Rating Bar & Badges (Persis Mekari.com Screenshot) */
.mekari-rating-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.mekari-rating-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #efe7ff;
  color: #40149e;
  border-radius: 30px;
  padding: 5px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid rgba(196, 174, 245, 0.4);
}

.rate-sep {
  color: #c4aef5;
  margin: 0 2px;
}

.rate-score {
  font-weight: 800;
}

.rate-text {
  font-weight: 500;
  color: #40149e;
}

.mekari-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.trust-badge-card {
  background: #ffffff;
  border: 1px solid #e9eaeb;
  border-radius: 8px;
  padding: 8px 18px;
  box-shadow: 0 4px 12px rgba(65, 70, 81, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  transition: all 0.2s ease;
}

.trust-badge-card:hover {
  border-color: #c4aef5;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(91, 15, 255, 0.08);
}

.badge-brand {
  font-size: 13px;
  font-weight: 700;
  color: #181d27;
}

.badge-sub {
  font-size: 11px;
  font-weight: 600;
  color: #717680;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 4px;
}

/* 3. PRODUCT FRAME (Framing the generator like Mekari .masthead-9__media) */
.mekari-product-frame {
  width: 100%;
  max-width: 1180px;
  margin: 10px auto 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid #ffffff;
  box-shadow: 
    0 24px 48px -12px rgba(16, 24, 40, 0.1),
    0 1px 3px rgba(16, 24, 40, 0.05);
}

.mekari-product-frame-inner {
  background: #ffffff;
  border: 1px solid #e9eaeb;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.03);
}

/* 4. INFINITE LOGO MARQUEE (Mekari .clients-popup) */
.mekari-marquee-section {
  padding: 40px 20px 48px;
  background: #f8f8fb;
  border-top: 1px solid #e9eaeb;
  border-bottom: 1px solid #e9eaeb;
  text-align: center;
  overflow: hidden;
}

.mekari-marquee-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #535862;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mekari-marquee-track {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.mekari-marquee-content {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: mekariScroll 30s linear infinite;
}

.mekari-marquee-track:hover .mekari-marquee-content {
  animation-play-state: paused;
}

@keyframes mekariScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e9eaeb;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #414651;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.03);
  transition: all 0.2s ease;
}

.marquee-item:hover {
  border-color: #c4aef5;
  color: #5b0fff;
}

.marquee-item .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b0fff;
}

/* 5. SOLUTIONS SECTION (AUTHENTIC 2-COLUMN MEKARI SUITE LAYOUT) */
.mekari-solution-section {
  padding: 80px 20px 90px;
  background: #ffffff;
  position: relative;
}

.container-mekari {
  max-width: 1200px;
  margin: 0 auto;
}

/* Two-column Section Header */
.solution-header-two-col {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 32px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.col-head-left,
.col-head-right {
  display: flex;
  flex-direction: column;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #5b0fff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.section-title-sm {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #181d27;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Main 2-Column Grid Layout */
.solution-main-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* Left Column Container (Subtle Dotted Grid Frame like Mekari) */
.solution-left-block {
  background: #ffffff;
  border: 1px solid #e9eaeb;
  border-radius: 24px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px);
  background-size: 20px 20px;
}

/* Tab Pills in Left Column */
.solution-tabs-nav-left {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f2f4f7;
  padding: 4px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.solution-tabs-nav-left .tab-pill {
  border: none;
  background: transparent;
  color: #475467;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.solution-tabs-nav-left .tab-pill:hover {
  color: #181d27;
}

.solution-tabs-nav-left .tab-pill.active {
  background: #ffffff;
  color: #181d27;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
}

/* 2x2 Product Grid inside Left Column */
.solution-cards-grid-mekari {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  flex-grow: 1;
}

/* Individual Bento Product Card */
.mekari-bento-card {
  background: #ffffff;
  border: 1px solid #e9eaeb;
  border-radius: 20px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 205px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.03);
  position: relative;
  overflow: hidden;
}

.mekari-bento-card:hover {
  transform: translateY(-4px);
  border-color: #c4aef5;
  box-shadow: 0 14px 28px rgba(91, 15, 255, 0.09);
}

.mekari-bento-head h4 {
  font-family: 'Inter', sans-serif !important;
  font-size: 17px;
  font-weight: 700;
  color: #181d27;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}

.mekari-bento-head p {
  font-size: 13px;
  color: #717680;
  margin: 0;
  line-height: 1.4;
}

/* Center Emblem Graphic with Concentric Arc Lines */
.mekari-bento-emblem {
  position: relative;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
  overflow: hidden;
}

.mekari-bento-card:hover .mekari-emblem-circle {
  transform: scale(1.1);
}

.mekari-bento-footer {
  display: flex;
  align-items: center;
}

.bento-badge-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e9eaeb;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.mekari-bento-card:hover .bento-badge-tag {
  background: #efe7ff;
  border-color: #d8b4fe;
  color: #5b0fff;
}

/* Right Column: Authentic Mekari SUITE Card */
.solution-right-suite-card {
  background: #ffffff;
  border: 1px solid #e9eaeb;
  border-radius: 24px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(16, 24, 40, 0.04);
  background-image: radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.05) 0%, rgba(91, 15, 255, 0.03) 45%, transparent 70%);
}

.suite-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif !important;
}

.suite-star-icon,
.suite-asterisk {
  color: #7c3aed;
  font-size: 22px;
  animation: pulseRotate 6s linear infinite;
}

@keyframes pulseRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.suite-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #181d27;
  letter-spacing: -0.02em;
}

.suite-brand-divider,
.suite-brand-sep {
  color: #d0d5dd;
  font-size: 20px;
  font-weight: 300;
  margin: 0 2px;
}

.suite-badge-tag {
  font-size: 19px;
  font-weight: 800;
  color: #181d27;
  letter-spacing: 0.05em;
}

.suite-desc {
  font-size: 14.5px;
  line-height: 22px;
  color: #475467;
  margin: 18px 0 24px;
}

.suite-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.suite-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #344054;
  line-height: 1.45;
}

.suite-check-list li i {
  color: #12b76a;
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}

.suite-card-action {
  margin-top: auto;
  padding-top: 12px;
}

.btn-suite-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #d0d5dd;
  color: #5b0fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.04);
  transition: all 0.2s ease;
}

.btn-suite-action:hover {
  border-color: #5b0fff;
  background: #faf5ff;
  color: #40149e;
  transform: translateX(3px);
  text-decoration: none;
}


/* 6. INTERACTIVE FEATURE ACCORDION (Mekari .feature-14) */
.mekari-feature-section {
  padding: 72px 20px;
  background: #ffffff;
  border-top: 1px solid #e9eaeb;
}

.section-head-left {
  max-width: 720px;
  margin-bottom: 40px;
}

.feature-accordion-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.accordion-items-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acc-item {
  border-top: 1px solid #e9eaeb;
  padding: 20px 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.acc-progress-bar {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2.5px;
  width: 0;
  background: #5b0fff;
  transition: width 0.35s ease;
}

.acc-item.active .acc-progress-bar {
  width: 100%;
}

.acc-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #535862;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
}

.acc-item.active .acc-icon {
  background: #efe7ff;
  color: #5b0fff;
}

.acc-head h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 18px;
  font-weight: 600;
  color: #535862;
  margin: 0;
  transition: color 0.2s ease;
}

.acc-item.active .acc-head h3 {
  color: #181d27;
  font-weight: 700;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  padding-left: 50px;
}

.acc-item.active .acc-body {
  max-height: 200px;
  opacity: 1;
  padding-top: 12px;
}

.acc-body p {
  font-size: 14px;
  line-height: 22px;
  color: #535862;
  margin: 0;
}

/* Feature Preview Mockup */
.preview-mockup-card {
  background: #ffffff;
  border: 1px solid #e9eaeb;
  border-radius: 20px;
  box-shadow: 0 20px 48px -12px rgba(16, 24, 40, 0.12);
  overflow: hidden;
}

.mockup-top-bar {
  background: #f8f8fb;
  border-bottom: 1px solid #e9eaeb;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-top-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-top-bar .dot.red { background: #ef4444; }
.mockup-top-bar .dot.yellow { background: #f59e0b; }
.mockup-top-bar .dot.green { background: #10b981; }

.mockup-file-name {
  margin-left: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #535862;
}

.mockup-doc-body {
  padding: 32px;
  background: #fafafa;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-cover-sim {
  background: #ffffff;
  border: 1px solid #e9eaeb;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  text-align: center;
}

.doc-badge {
  font-size: 10px;
  font-weight: 700;
  color: #5b0fff;
  background: #efe7ff;
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.doc-cover-sim h4 {
  font-size: 16px;
  font-weight: 800;
  color: #181d27;
  margin: 0 0 4px;
}

.doc-subtitle {
  font-size: 12px;
  color: #717680;
  margin: 0 0 16px;
}

.doc-meta-box {
  background: #f8f8fb;
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
  color: #535862;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.doc-status-stamp {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 7. VALUE PROPOSITION CARDS (Mekari .usp-10) */
.mekari-usp-section {
  padding: 72px 20px;
  background: #f8f8fb;
  border-top: 1px solid #e9eaeb;
}

.usp-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.usp-card {
  background: #ffffff;
  border: 1px solid #e9eaeb;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.03);
  transition: all 0.25s ease;
}

.usp-card:hover {
  transform: translateY(-3px);
  border-color: #c4aef5;
  box-shadow: 0 12px 24px rgba(91, 15, 255, 0.08);
}

.usp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.usp-icon.purple { background: #efe7ff; color: #5b0fff; }
.usp-icon.indigo { background: #e0e7ff; color: #4338ca; }
.usp-icon.emerald { background: #d1fae5; color: #059669; }
.usp-icon.blue { background: #dbeafe; color: #2563eb; }
.usp-icon.rose { background: #ffe4e6; color: #e11d48; }
.usp-icon.amber { background: #fef3c7; color: #d97706; }

.usp-card h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 17px;
  font-weight: 700;
  color: #181d27;
  margin: 0 0 8px;
}

.usp-card p {
  font-size: 14px;
  line-height: 22px;
  color: #535862;
  margin: 0;
}

/* 8. FAQ ACCORDION */
.mekari-faq-section {
  padding: 72px 20px;
  background: #ffffff;
  border-top: 1px solid #e9eaeb;
}

.faq-accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e9eaeb;
  border-radius: 12px;
  padding: 18px 24px;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: #c4aef5;
  box-shadow: 0 8px 20px rgba(91, 15, 255, 0.06);
}

.faq-item summary {
  font-size: 16px;
  font-weight: 600;
  color: #181d27;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  font-size: 13px;
  color: #717680;
  transition: transform 0.25s ease;
}

.faq-item[open] summary i {
  transform: rotate(180deg);
  color: #5b0fff;
}

.faq-item p {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 24px;
  color: #535862;
}

/* 9. BOTTOM CONVERSION CTA BANNER */
.mekari-cta-banner-section {
  padding: 56px 20px;
  background: #ffffff;
}

.cta-banner-box {
  background: linear-gradient(135deg, #5b0fff 0%, #40149e 100%);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(91, 15, 255, 0.25);
  max-width: 1100px;
  margin: 0 auto;
}

.cta-banner-box h2 {
  font-family: 'Inter', sans-serif !important;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cta-banner-box p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 28px;
}

.cta-banner-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-banner-primary {
  background: #ffffff;
  color: #5b0fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-banner-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-banner-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-banner-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

/* 10. CORPORATE FOOTER (Mekari Style) */
.mekari-footer {
  background: #ffffff;
  border-top: 1px solid #e9eaeb;
  padding: 64px 20px 32px;
  font-size: 14px;
  color: #535862;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col.brand-col p {
  margin: 12px 0 16px;
  line-height: 22px;
  max-width: 320px;
  font-size: 13.5px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #181d27;
}

.footer-logo span {
  color: #5b0fff;
  font-size: 13px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #717680;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px;
  font-weight: 700;
  color: #181d27;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: #535862;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover {
  color: #5b0fff;
  text-decoration: none;
}

.footer-bottom-bar {
  border-top: 1px solid #e9eaeb;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-bar p {
  margin: 0;
  font-size: 13px;
  color: #717680;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social-links a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #535862;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-social-links a:hover {
  background: #efe7ff;
  color: #5b0fff;
  transform: translateY(-2px);
}

/* 11. FLOATING WHATSAPP BUTTON (Identik pojok kanan bawah screenshot Mekari) */
.mekari-floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.mekari-floating-wa:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  text-decoration: none;
}

/* ==========================================================================
   12. MEKARI MOBILE DRAWER & NAVIGATION
   ========================================================================== */
.btn-mekari-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f6f2ff;
  border: 1px solid #d8b4fe;
  color: #5b0fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-mekari-mobile-toggle:hover {
  background: #efe7ff;
  border-color: #5b0fff;
  transform: scale(1.05);
}

.btn-mekari-mobile-toggle:active {
  transform: scale(0.96);
}

.mekari-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mekari-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  box-shadow: -8px 0 36px rgba(16, 24, 40, 0.18);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
  overflow: hidden;
}

.mekari-mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e9eaeb;
  background: #fafbff;
}

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: #181d27;
}

.mobile-drawer-brand img.m-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.mobile-drawer-brand strong span {
  color: #5b0fff;
}

.btn-mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mobile-drawer-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.mobile-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin: 14px 8px 6px;
  text-transform: uppercase;
}

.mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: #1e293b;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mobile-drawer-item:hover,
.mobile-drawer-item:active {
  background: #f6f2ff;
  border-color: #efe7ff;
  color: #5b0fff;
  text-decoration: none;
  transform: translateX(3px);
}

.m-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #efe7ff;
  color: #5b0fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.m-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-item-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #181d27;
  line-height: 1.3;
}

.mobile-drawer-item:hover .m-item-text strong {
  color: #5b0fff;
}

.m-item-text small {
  font-size: 11px;
  color: #717680;
  line-height: 1.2;
}

.mobile-drawer-footer {
  padding: 16px;
  border-top: 1px solid #e9eaeb;
  background: #ffffff;
}

.btn-mobile-drawer-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-mobile-drawer-wa:hover {
  background: #1eb857;
  text-decoration: none;
}

/* ==========================================================================
   13. COMPREHENSIVE RESPONSIVE BREAKPOINTS (TABLET & SMARTPHONE FLEKSIBEL)
   ========================================================================== */

/* A. TABLET & IPAD (<= 1024px) */
@media (max-width: 1024px) {
  /* Navbar adjustments */
  .mekari-navbar {
    zoom: 1 !important;
    height: 68px;
  }
  .mekari-nav-container {
    padding: 0 20px;
    height: 68px;
  }
  .mekari-nav-menu {
    display: none !important;
  }
  .btn-mekari-mobile-toggle {
    display: flex !important;
  }
  
  /* Hero / Masthead */
  .mekari-hero-title {
    font-size: 38px !important;
    line-height: 48px !important;
    max-width: 90%;
  }
  .mekari-hero-desc {
    font-size: 16.5px !important;
    line-height: 27px !important;
    max-width: 90%;
  }

  /* Product Frame & Forms */
  .mekari-product-frame {
    max-width: 100%;
    margin: 8px 16px 0;
  }
  .subject-selector {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .form-group.full-width {
    grid-column: 1 / -1;
  }

  /* Stepper */
  .step-circle {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
  .step-label {
    font-size: 0.88rem;
  }

  /* Solution & Marketing Grids */
  .solution-header-two-col { grid-template-columns: 1fr; gap: 16px; }
  .solution-main-layout { grid-template-columns: 1fr; gap: 24px; }
  .feature-accordion-wrapper { grid-template-columns: 1fr; }
  .preview-mockup-card { order: -1; }
  .usp-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Base default for mobile step pill on desktop (hidden on desktop) */
.mobile-step-pill {
  display: none;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulseDot 1.8s infinite;
  vertical-align: middle;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

/* ==========================================================================
   13. COMPREHENSIVE RESPONSIVE BREAKPOINTS (SMARTPHONE & TABLET FLEKSIBEL)
   ========================================================================== */

/* B. SMARTPHONE / PHABLET (<= 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 24px;
  }

  /* Sticky Navbar on Mobile */
  .mekari-navbar {
    height: 62px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  }
  .mekari-nav-container {
    height: 62px;
    padding: 0 14px;
  }
  .mekari-brand {
    margin-right: 8px;
    gap: 8px;
  }
  .mekari-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.4px;
  }
  .mekari-nav-right {
    gap: 8px;
  }
  .btn-demo {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .btn-mekari-waba {
    height: 36px;
    padding: 0 12px;
    font-size: 12.5px;
    border-radius: 10px;
    font-weight: 600;
    background: #25D366;
    color: #ffffff !important;
  }
  .btn-mekari-mobile-toggle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Masthead Mobile */
  .mekari-masthead {
    padding: 32px 14px 18px;
    text-align: center;
  }
  .mekari-outline-badge {
    margin-bottom: 14px;
  }
  .mekari-outline-badge span {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
  }
  .mekari-hero-title {
    font-size: 26px !important;
    line-height: 34px !important;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
    margin-bottom: 12px;
  }
  .mekari-hero-desc {
    font-size: 13.5px !important;
    line-height: 21px !important;
    color: #475569;
    margin-bottom: 20px;
    max-width: 100%;
  }
  .mekari-hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .btn-mekari-hero-purple {
    width: 100% !important;
    height: 48px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    justify-content: center;
    background: linear-gradient(135deg, #5b0fff 0%, #7c3aed 100%);
    box-shadow: 0 4px 16px rgba(91, 15, 255, 0.3);
  }
  .btn-mekari-hero-white {
    width: 100% !important;
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #334155;
  }
  .mekari-rating-bar {
    margin-top: 16px;
  }
  .mekari-rating-outline {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  /* Stepper Progress Bar & Mobile Step Status Banner */
  .stepper-nav {
    margin-bottom: 18px;
    position: relative;
  }
  .stepper-track {
    top: 18px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
  }
  .stepper-progress {
    height: 100%;
    background: linear-gradient(90deg, #5b0fff, #8b5cf6);
    border-radius: 3px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .step-items {
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding: 0 2px;
  }
  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 13px;
    border-width: 2px;
    background: #ffffff;
    border-color: #cbd5e1;
    color: #64748b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
  }
  .step-item.active .step-circle {
    border-color: #5b0fff;
    background: #5b0fff;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(91, 15, 255, 0.18), 0 4px 12px rgba(91, 15, 255, 0.35);
    transform: scale(1.08);
  }
  .step-item.completed .step-circle {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
  }
  .step-label {
    display: none !important;
  }

  /* Mobile Dynamic Step Status Pill */
  .mobile-step-pill {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px auto 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f5f2ff;
    border: 1px solid #e9e0ff;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(91, 15, 255, 0.05);
  }
  .m-step-pill-badge {
    background: #5b0fff;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.2px;
  }
  .m-step-pill-text {
    font-size: 12px;
    font-weight: 700;
    color: #3b0764;
  }

  /* Product Frame & Wizard Box (Zero Double Padding) */
  .mekari-product-frame {
    margin: 6px 8px 0 !important;
    padding: 5px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1.5px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 10px 30px -10px rgba(91, 15, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
  }
  .mekari-product-frame-inner {
    padding: 16px 12px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
  }
  .wizard-card,
  .glass-panel {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .step-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
  }
  .step-title {
    font-size: 17px !important;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .step-desc {
    font-size: 12.5px !important;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.35;
  }

  /* Active Report Banner */
  .active-report-banner {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 18px !important;
  }
  .active-report-banner-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .active-report-left {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .active-report-icon-box {
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }
  .active-report-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
  }
  .active-report-materi {
    font-size: 12px !important;
  }
  .btn-change-subject-quick {
    width: 100% !important;
    justify-content: center !important;
    padding: 9px 12px !important;
    font-size: 12.5px !important;
    border-radius: 10px !important;
  }

  /* Step 1: Subject Cards (Sleek 2x2 Grid Layout) */
  .subject-selector {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 32px !important;
  }
  .subject-card {
    padding: 12px 10px !important;
    border-radius: 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: unset !important;
    position: relative !important;
    cursor: pointer !important;
  }
  .subject-card:active {
    transform: scale(0.97) !important;
  }
  .subject-card.active {
    border-color: #5b0fff !important;
    background: linear-gradient(180deg, #faf7ff 0%, #ffffff 100%) !important;
    box-shadow: 0 4px 16px rgba(91, 15, 255, 0.16) !important;
  }
  .check-indicator {
    top: 8px !important;
    right: 8px !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 10px !important;
  }
  .mekari-card-head {
    margin-bottom: 4px !important;
  }
  .mekari-card-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #0f172a !important;
  }
  .mekari-card-sub {
    font-size: 10px !important;
    line-height: 1.25 !important;
    color: #64748b !important;
    margin-top: 2px !important;
  }
  .mekari-emblem-wrap {
    height: 38px !important;
    margin: 6px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .mekari-emblem-arcs {
    display: none !important;
  }
  .mekari-emblem-circle {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
  .mekari-card-footer {
    margin-top: 6px !important;
    padding-top: 6px !important;
    border-top: 1px dashed #e2e8f0 !important;
  }
  .mekari-format-box {
    padding: 4px 6px !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
  }
  .format-header {
    font-size: 9px !important;
    margin-bottom: 2px !important;
    display: flex !important;
    justify-content: space-between !important;
  }
  .format-label {
    font-size: 8.5px !important;
    color: #64748b !important;
  }
  .format-badge-ext {
    font-size: 8px !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
  }
  .format-code-wrap {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .format-code-text {
    font-size: 8.5px !important;
    font-family: 'JetBrains Mono', monospace !important;
  }

  /* Form Grids & Touch Inputs (16px prevents iOS Safari auto-zoom) */
  .saved-profile-banner {
    padding: 10px 12px;
    border-radius: 12px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 32px !important;
  }
  .saved-profile-info {
    gap: 10px;
    align-items: center;
  }
  .saved-profile-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .btn-reset-profile {
    width: 100%;
    justify-content: center;
    padding: 6px 10px;
    font-size: 11.5px;
  }

  .form-grid,
  .form-row,
  .profile-grid,
  .slot-pj-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .form-group {
    margin-bottom: 0 !important;
  }
  .form-group label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  input[type="text"],
  input[type="number"],
  input[type="password"],
  select,
  textarea,
  .input-control,
  .textarea-control {
    font-size: 16px !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  input:focus,
  select:focus,
  textarea:focus {
    border-color: #5b0fff !important;
    box-shadow: 0 0 0 3px rgba(91, 15, 255, 0.15) !important;
    outline: none !important;
  }
  .hint {
    font-size: 11.5px !important;
    color: #64748b !important;
    margin-top: 4px !important;
    line-height: 1.35 !important;
    display: block !important;
  }
  .remember-profile-box {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    margin-top: 4px !important;
  }
  .remember-toggle {
    gap: 10px !important;
  }
  .remember-text strong {
    font-size: 12.5px !important;
    display: block !important;
    color: #1e293b !important;
  }
  .remember-text small {
    font-size: 11px !important;
    color: #64748b !important;
    line-height: 1.35 !important;
    display: block !important;
  }

  /* Wizard Step Footers & Nav Buttons */
  .step-footer {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 10px !important;
    margin-top: 22px !important;
    padding-top: 16px !important;
    border-top: 1px solid #f1f5f9 !important;
  }
  .step-footer button,
  .step-footer a,
  .step-footer .btn-primary,
  .step-footer .btn-secondary {
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .btn-primary.next-step {
    background: linear-gradient(135deg, #5b0fff 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(91, 15, 255, 0.28) !important;
  }
  .btn-secondary.prev-step {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #475569 !important;
  }
  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.98) !important;
  }

  /* Steps 2, 3 & 4: Actions, QA & Dropzones (Generous Spacing) */
  .toggle-card {
    padding: 14px 16px;
    border-radius: 14px;
    gap: 10px;
    margin-bottom: 32px !important;
  }
  .pretest-strukdat-notice,
  .pretest-kdjk-notice,
  .pretest-basdat-notice,
  .pretest-statistika-notice {
    margin-bottom: 32px !important;
    padding: 14px 16px !important;
  }
  .pretest-photo-group,
  #pretest-photo-group {
    margin-bottom: 28px !important;
  }
  #pretest-photo-label {
    margin-bottom: 12px !important;
    font-size: 13.5px !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  .toggle-title {
    font-size: 13px;
    font-weight: 600;
  }
  .toggle-sub {
    font-size: 11px;
  }
  .action-bar-top {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
  }
  .action-bar-top-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .action-bar-top-buttons button {
    width: 100% !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    justify-content: center !important;
  }
  .action-bar-bottom {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }
  .action-bar-bottom button {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    justify-content: center !important;
  }
  .photo-frames-grid {
    grid-template-columns: 1fr !important;
    row-gap: 36px !important;
    column-gap: 16px !important;
  }
  .photo-card-item {
    padding: 14px 12px !important;
    border-radius: 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  }
  .photo-frame-box {
    min-height: 130px !important;
    border-radius: 12px !important;
  }
  .frame-camera-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 17px !important;
  }
  .frame-upload-text strong {
    font-size: 12.5px !important;
  }
  .frame-upload-text span {
    font-size: 10.5px !important;
  }
  .frame-hover-toolbar {
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 0 0 !important;
    background: transparent !important;
  }
  .btn-frame-tool {
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
  }
  .ulasan-box {
    padding: 14px 12px;
    border-radius: 14px;
  }
  .ulasan-label {
    font-size: 13px;
    font-weight: 600;
  }
  .ulasan-hint {
    font-size: 11px;
  }

  /* Step 5: Review & Downloads */
  .review-card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
  }
  .btn-generate-big {
    width: 100% !important;
    padding: 14px 12px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #5b0fff 0%, #7c3aed 100%) !important;
    box-shadow: 0 6px 20px rgba(91, 15, 255, 0.35) !important;
  }
  .btn-gen-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .btn-gen-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    flex-shrink: 0 !important;
  }
  .btn-gen-text {
    text-align: left !important;
    flex: 1 !important;
  }
  .btn-gen-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
  }
  .btn-gen-sub {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-top: 2px !important;
    line-height: 1.2 !important;
  }
  .btn-gen-badge {
    display: none !important;
  }
  .download-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .download-card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }
  .btn-download-word,
  .btn-download-pdf,
  .btn-download {
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    justify-content: center !important;
  }

  /* Marketing & Content Sections */
  .solution-cards-grid-mekari { grid-template-columns: 1fr !important; }
  .usp-grid-cards { grid-template-columns: 1fr !important; }
  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    text-align: center;
  }
  .footer-col ul {
    align-items: center;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  /* Lightbox Modal on Mobile */
  .lightbox-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 10px auto !important;
    border-radius: 16px !important;
  }
  .lightbox-header {
    padding: 12px 14px !important;
  }
  .lightbox-title-box strong {
    font-size: 14px !important;
  }
  .lightbox-title-box span {
    font-size: 11px !important;
  }
  .lightbox-footer {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }

  /* Floating WhatsApp on Mobile */
  .mekari-floating-wa {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 18px;
    right: 16px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 999;
  }
}

/* C. SMALL SMARTPHONE (<= 480px, e.g. iPhone SE, Android 360px-414px) */
@media (max-width: 480px) {
  /* Ultra-compact Navbar Header */
  .mekari-navbar {
    height: 56px;
  }
  .mekari-nav-container {
    height: 56px;
    padding: 0 10px;
  }
  .mekari-brand {
    margin-right: 0;
    gap: 6px;
  }
  .mekari-brand-name {
    font-size: 16.5px;
    letter-spacing: -0.3px;
  }
  .mekari-brand-badge {
    display: none;
  }
  .mekari-nav-right {
    gap: 6px;
  }

  /* Collapse navbar buttons to stylish compact icons on small screens */
  .btn-demo {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
  }
  .btn-demo span {
    display: none;
  }
  .btn-demo i {
    font-size: 14px;
    margin: 0;
  }

  .btn-mekari-waba {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
  }
  .btn-mekari-waba span {
    display: none;
  }
  .btn-mekari-waba i {
    font-size: 16px;
    margin: 0;
  }

  .btn-mekari-mobile-toggle {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 10px;
  }

  /* Masthead on small phones */
  .mekari-masthead {
    padding: 24px 10px 14px;
  }
  .mekari-outline-badge span {
    font-size: 11.5px;
    padding: 4px 10px;
  }
  .mekari-hero-title {
    font-size: 24px !important;
    line-height: 32px !important;
    margin-bottom: 10px;
  }
  .mekari-hero-desc {
    font-size: 13px !important;
    line-height: 19px !important;
    margin-bottom: 18px;
  }

  /* Product Frame & Step Card on small phones */
  .mekari-product-frame {
    margin: 4px 4px 0 !important;
    padding: 4px !important;
    border-radius: 14px !important;
  }
  .mekari-product-frame-inner {
    padding: 14px 8px !important;
    border-radius: 10px !important;
  }
  .subject-selector {
    gap: 8px !important;
  }
  .subject-card {
    padding: 10px 8px !important;
    border-radius: 12px !important;
  }
  .mekari-card-title {
    font-size: 13.5px !important;
  }
  .mekari-card-sub {
    font-size: 9.5px !important;
  }

  .step-title {
    font-size: 16px !important;
  }
  .step-desc {
    font-size: 12px !important;
  }
  .step-circle {
    width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }
  .stepper-track {
    top: 17px !important;
    left: 14px !important;
    right: 14px !important;
  }
  .mobile-step-pill {
    padding: 5px 12px;
    gap: 6px;
  }
  .m-step-pill-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  .m-step-pill-text {
    font-size: 11px;
  }

  .chip-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  /* Pre-test 3-Box Spacing on Small Phones */
  .toggle-card {
    margin-bottom: 24px !important;
  }
  .pretest-strukdat-notice,
  .pretest-kdjk-notice,
  .pretest-basdat-notice,
  .pretest-statistika-notice {
    margin-bottom: 24px !important;
    padding: 12px 14px !important;
  }
  .pretest-photo-group,
  #pretest-photo-group {
    margin-bottom: 24px !important;
  }
  #pretest-photo-label {
    margin-bottom: 10px !important;
    font-size: 13px !important;
  }
}

/* ==========================================================================
   MULTI-PHOTO FRAMES PER ITEM (HASIL & POST-TEST)
   ========================================================================== */
.photo-frames-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.extra-frames-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.extra-photo-frame {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.extra-photo-frame:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.extra-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.extra-frame-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.extra-frame-label i {
  color: var(--primary);
  font-size: 0.88rem;
}

.btn-remove-extra-frame {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  padding: 5px 12px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-extra-frame:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: translateY(-1px);
}

.photo-frames-footer {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.btn-add-subphoto {
  background: #ffffff;
  color: #4f46e5;
  border: 1.5px dashed #c7d2fe;
  padding: 11px 18px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.btn-add-subphoto:hover {
  background: #f5f3ff;
  border-color: #818cf8;
  color: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.btn-add-subphoto i {
  font-size: 0.95rem;
}

/* Variant for Blue Photo cards (KDJK / Photo steps) */
.item-card[data-type="photo"] .btn-add-subphoto,
.photo-card-item[data-type="photo"] .btn-add-subphoto {
  color: #2563eb;
  border-color: #bfdbfe;
}

.item-card[data-type="photo"] .btn-add-subphoto:hover,
.photo-card-item[data-type="photo"] .btn-add-subphoto:hover {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
