/* =============================================
   DIGILEARN - DESAIN GRAFIS SMK
   CSS Design System - Professional & Clean
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent;
}

:root {
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);

  --primary: #1a56db;
  --primary-dark: #1341a8;
  --primary-light: #3b82f6;
  --primary-xlight: #eff6ff;
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark2: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --white: #ffffff;

  --font-main: 'Inter', sans-serif;
  --font-display: 'Poppins', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button, a, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
p { color: var(--gray); line-height: 1.7; }
a { text-decoration: none; color: inherit; }

/* --- UTILITY --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.6rem 1.4rem; border-radius: var(--radius);
  font-family: var(--font-main); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,219,0.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-xlight); }
.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 70px; display: flex; align-items: center; gap: 1.5rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-icon { width: 40px; height: 40px; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--dark); line-height: 1; }
.brand-sub { display: block; font-size: 0.65rem; color: var(--gray-light); line-height: 1; font-weight: 500; }
.nav-links { display: flex; gap: 0.5rem; margin-left: auto; }
.nav-link {
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  color: var(--gray); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-xlight); }
.nav-actions { display: flex; gap: 0.75rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 2rem 4rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f0f4ff 100%);
  max-width: 1200px; margin: 0 auto; gap: 4rem;
  position: relative;
}
.hero::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f0f4ff 100%);
  z-index: -1;
}
.hero-content { flex: 1; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary-xlight); color: var(--primary);
  padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 1.5rem; border: 1px solid rgba(26,86,219,0.2);
}
.hero-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--dark); margin-bottom: 1.25rem; }
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 1.05rem; color: var(--gray); margin-bottom: 2rem; max-width: 480px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-cta .btn-outline-white { color: var(--primary); border-color: var(--primary); }
.hero-cta .btn-outline-white:hover { background: var(--primary-xlight); }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); }
.stat-label { font-size: 0.75rem; color: var(--gray); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-visual { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-img-wrapper {
  width: 100%; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.hero-img { width: 100%; height: auto; display: block; }
.hero-card-float {
  position: absolute; background: white; border-radius: var(--radius);
  padding: 0.75rem 1.25rem; box-shadow: var(--shadow-md); font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.5rem;
  animation: floatCard 3s ease-in-out infinite;
}
.card-1 { top: 10%; left: -10%; animation-delay: 0s; color: var(--success); }
.card-2 { bottom: 25%; left: -8%; animation-delay: 1s; color: var(--primary); }
.card-3 { top: 20%; right: -5%; animation-delay: 2s; color: var(--warning); }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =============================================
   MATERI SECTION
   ============================================= */
.materi-section { padding: 5rem 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
  display: inline-block; background: var(--primary-xlight); color: var(--primary);
  padding: 0.35rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-title { font-size: 2rem; color: var(--dark); margin-bottom: 0.75rem; }
.section-desc { color: var(--gray); max-width: 550px; margin: 0 auto; }

.materi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.materi-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; cursor: pointer; transition: var(--transition);
  position: relative; overflow: hidden;
}
.materi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.materi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.card-emoji { font-size: 2.5rem; }
.card-tp-badge {
  background: var(--primary-xlight); color: var(--primary);
  padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
}
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.card-desc { font-size: 0.88rem; color: var(--gray); margin-bottom: 1.25rem; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-meta { font-size: 0.8rem; color: var(--gray-light); }
.card-status { font-size: 0.8rem; font-weight: 600; }
.card-status.done { color: var(--success); }
.card-status.todo { color: var(--gray-light); }

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section { padding: 5rem 0; background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }
.about-content { }
.about-content h2 { margin: 0.75rem 0 1rem; }
.about-content > p { margin-bottom: 1.5rem; }
.feature-list { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-item { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { font-size: 1.5rem; min-width: 48px; height: 48px; background: var(--primary-xlight); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.feature-item h4 { font-size: 0.95rem; color: var(--dark); margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.85rem; margin: 0; }

.about-visual { display: flex; flex-direction: column; gap: 1rem; }
.about-card {
  background: white; border-radius: var(--radius-lg); padding: 1.5rem;
  border: 1px solid var(--border); transition: var(--transition);
}
.about-card:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.about-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.about-card h3 { font-size: 1rem; color: var(--dark); margin-bottom: 0.4rem; }
.about-card p { font-size: 0.85rem; margin: 0; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--dark); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand .nav-brand { gap: 0.75rem; }
.footer-links h4 { color: white; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links a { display: block; color: #94a3b8; font-size: 0.88rem; margin-bottom: 0.6rem; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; }
.footer-bottom p { color: #64748b; font-size: 0.85rem; margin: 0; }

/* =============================================
   MODALS
   ============================================= */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9999; align-items: center; justify-content: center; padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: white; border-radius: var(--radius-xl); padding: 2.5rem;
  width: 100%; max-width: 440px; position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-lg { max-width: 640px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: var(--surface);
  border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  color: var(--gray); transition: var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal-header { text-align: center; margin-bottom: 1.75rem; }
.modal-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.modal-header h2 { font-size: 1.4rem; margin-bottom: 0.35rem; }
.modal-header p { font-size: 0.9rem; }
.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--dark2); }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.7rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-main); font-size: 0.9rem; color: var(--dark);
  transition: var(--transition); background: white;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { background: #fef2f2; color: #dc2626; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.88rem; border: 1px solid #fecaca; }
.form-success { background: #f0fdf4; color: #16a34a; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.88rem; border: 1px solid #bbf7d0; }
.form-switch { text-align: center; font-size: 0.88rem; color: var(--gray); }
.form-switch a { color: var(--primary); font-weight: 600; }
.form-divider { text-align: center; position: relative; color: var(--gray-light); font-size: 0.82rem; }
.form-divider::before, .form-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.form-divider::before { left: 0; } .form-divider::after { right: 0; }

/* =============================================
   MATERI PAGE LAYOUT
   ============================================= */
.materi-page { background: var(--surface); }
.materi-layout { display: flex; min-height: 100vh; padding-top: 70px; }

.materi-sidebar {
  width: 280px; min-width: 280px; background: white; border-right: 1px solid var(--border);
  position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto;
}
.sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.sidebar-header h3 { font-size: 1rem; color: var(--dark); }
.sidebar-tp-list { padding: 1rem; }
.sidebar-tp-item {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.85rem;
  border-radius: var(--radius); cursor: pointer; transition: var(--transition);
  margin-bottom: 0.35rem; border: 1px solid transparent;
}
.sidebar-tp-item:hover { background: var(--surface); }
.sidebar-tp-item.active { background: var(--primary-xlight); border-color: rgba(26,86,219,0.2); }
.sidebar-tp-emoji { font-size: 1.3rem; min-width: 28px; }
.sidebar-tp-info { flex: 1; }
.sidebar-tp-label { font-size: 0.7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-tp-name { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.sidebar-tp-done { font-size: 0.7rem; color: var(--success); font-weight: 600; margin-top: 0.2rem; }

.materi-main { flex: 1; padding: 2rem; max-width: calc(100% - 280px); }

/* QUICK TP TABS (SEGMENTED CONTROL PILL BAR) */
.tp-quick-tabs-container {
  margin-bottom: 1.25rem;
  width: 100%;
}
.tp-quick-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tp-quick-tabs::-webkit-scrollbar { display: none; }
.tp-quick-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gray);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  user-select: none;
}
.tp-quick-tab-btn:hover {
  background: var(--surface);
  color: var(--dark);
}
.tp-quick-tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.28);
  border-color: rgba(255, 255, 255, 0.2);
}
.tp-quick-tab-btn .tab-emoji { font-size: 1rem; line-height: 1; }
.tp-quick-tab-btn .tab-code { font-weight: 700; }
.tp-quick-tab-btn .tab-badge-star { font-size: 0.72rem; font-weight: 800; color: #fbbf24; }
.tp-quick-tab-btn.active .tab-badge-star { color: #fef08a; }

/* SLIDE SECTION */
.slide-section { }
.slide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.slide-header-left {
  flex: 1;
  min-width: 260px;
}
.tp-badge {
  display: inline-block;
  background: var(--primary-xlight);
  color: var(--primary);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.slide-title {
  font-size: 1.5rem;
  color: var(--dark);
  line-height: 1.3;
}
.slide-controls-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.slide-tools-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.slide-tools-group .btn-sm {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}
.slide-tools-group .btn-sm:hover {
  background: var(--surface);
  color: var(--dark);
}
.btn-cta-lkpd {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.3);
  transition: var(--transition);
}
.btn-cta-lkpd:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.4);
}


/* =============================================
   HIGH-END PPT PRESENTATION DECK (KEYNOTE / PITCH STYLE)
   ============================================= */
.slide-presenter {
  background: #090e17;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.slide-progress-bar-wrap { width: 100%; height: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.slide-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #fbbf24);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* 16:9 PRESENTATION CANVAS */
.slide-display {
  min-height: 520px;
  padding: 2.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 90% 85%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
              linear-gradient(135deg, #090d16 0%, #0d1b2e 50%, #08111e 100%);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}
.slide-display::before {
  content: ''; position: absolute; top: -30%; right: -15%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(56, 189, 248, 0) 70%);
  border-radius: 50%; pointer-events: none;
}
.slide-display::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, rgba(129, 140, 248, 0) 70%);
  border-radius: 50%; pointer-events: none;
}

/* CANVAS HEADER */
.slide-deck-header {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}
.deck-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}
.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.deck-counter-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #bae6fd;
  font-family: monospace;
  letter-spacing: 0.05em;
}
.deck-counter-pill .active-idx { color: #38bdf8; font-weight: 800; font-size: 0.85rem; }
.deck-counter-pill .dim-slash { color: #64748b; margin: 0 0.15rem; }

/* CANVAS MAIN CONTENT */
.slide-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  animation: slideEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto 0;
}
@keyframes slideEntrance {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slide-heading-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}
.slide-heading-row .slide-emoji {
  width: 58px;
  height: 58px;
  min-width: 58px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.slide-topic-badge {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 0.2rem;
}
.slide-heading {
  font-size: 1.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #e2e8f0;
}
.slide-body strong { color: #ffffff; font-weight: 700; }
.slide-body .highlight-box {
  background: rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-left: 4px solid #38bdf8;
  padding: 0.85rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #bae6fd;
}

/* CANVAS FOOTER */
.slide-deck-footer {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #64748b;
}
.deck-footer-left { display: flex; align-items: center; gap: 0.6rem; }
.deck-badge-sm {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}
.deck-footer-right { display: flex; align-items: center; gap: 0.4rem; }

/* PPT FILMSTRIP (QUICK SLIDE JUMP) */
.slide-filmstrip-wrap {
  background: #070b14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.25rem;
}
.filmstrip-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}
.slide-filmstrip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}
.slide-filmstrip::-webkit-scrollbar { height: 4px; }
.slide-filmstrip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.filmstrip-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 140px;
  max-width: 180px;
  transition: all 0.2s ease;
  user-select: none;
}
.filmstrip-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}
.filmstrip-item.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(99, 102, 241, 0.35));
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}
.filmstrip-thumb { display: flex; align-items: center; gap: 0.35rem; }
.filmstrip-badge {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.filmstrip-item.active .filmstrip-badge { background: #38bdf8; color: #020617; }
.filmstrip-emoji { font-size: 1.1rem; }
.filmstrip-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filmstrip-item.active .filmstrip-title { color: #ffffff; font-weight: 700; }

/* PRESENTATION DOCK (BOTTOM CONTROLS) */
.slide-nav {
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #070b14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.slide-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.slide-btn:hover:not(:disabled) {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #020617;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}
.slide-btn:hover:not(:disabled) .dock-kbd { background: rgba(0, 0, 0, 0.2); color: #020617; border-color: rgba(0,0,0,0.3); }
.slide-btn:disabled { opacity: 0.25; cursor: not-allowed; }

.slide-progress-dock {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dock-num-active { color: #38bdf8; font-size: 1.05rem; font-weight: 800; }
.dock-slash { color: #64748b; }
.dock-kbd {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.68rem;
  color: #cbd5e1;
  font-family: monospace;
}

/* INTERACTIVE SLIDE CARDS & GRIDS (POLISHED GLASS) */
.slide-card-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1rem 0; }
.slide-card-grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; margin: 1rem 0; }
@media (min-width: 768px) {
  .slide-card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.interactive-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid #38bdf8;
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.interactive-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 16px 36px rgba(56, 189, 248, 0.25);
}
.interactive-card.active {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px #38bdf8, 0 14px 32px rgba(56, 189, 248, 0.3);
}
.card-icon { font-size: 2.2rem; margin-bottom: 0.5rem; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.card-badge { display: inline-block; background: rgba(56, 189, 248, 0.2); color: #7dd3fc; font-size: 0.72rem; font-weight: 800; padding: 0.15rem 0.55rem; border-radius: 999px; margin-bottom: 0.4rem; letter-spacing: 0.04em; }
.card-title { font-weight: 800; font-size: 1.05rem; color: #ffffff; margin-bottom: 0.35rem; }
.card-desc { font-size: 0.83rem; line-height: 1.5; color: #cbd5e1; }

/* INTERACTIVE DOMAINS TABS */
.domain-nav-wrap { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.domain-nav-btn {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: white; padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.domain-nav-btn:hover { background: rgba(255,255,255,0.22); }
.domain-nav-btn.active {
  background: #ffffff; color: var(--primary); border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.domain-detail-card {
  background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; margin-top: 0.75rem; animation: slideEntrance 0.3s ease-out;
}

/* INTERACTIVE HARDWARE CARDS */
.hw-chips-wrap { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hw-chip-btn {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.55rem 0.9rem;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); color: white; cursor: pointer; font-size: 0.85rem;
  font-weight: 600; transition: all 0.2s ease;
}
.hw-chip-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.hw-chip-btn.active {
  background: rgba(255,255,255,0.28); border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* VECTOR VS BITMAP SIMULATOR */
.compare-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0;
}
.compare-box {
  background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg); padding: 1.1rem; text-align: center;
}
.zoom-canvas-demo {
  height: 110px; background: rgba(255,255,255,0.06); border-radius: var(--radius);
  margin: 0.75rem 0; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; border: 1px dashed rgba(255,255,255,0.25);
}
.zoom-toggle-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  color: white; padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.zoom-toggle-btn:hover { background: white; color: var(--primary); }

/* INTERACTIVE GUI WORKSPACE SIMULATOR (SLIDE 5) */
.gui-workspace {
  background: #090d16;
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  overflow: visible;
  margin: 0.85rem 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.12);
  text-align: left;
  position: relative;
  user-select: none;
}
.gui-topbar-mock {
  background: #111827;
  padding: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1f2937;
  font-size: 0.74rem;
  color: #94a3b8;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.gui-topbar-mock .win-controls {
  display: flex;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #64748b;
}
.gui-topbar-mock .win-btn {
  cursor: pointer;
  padding: 0 3px;
  transition: color 0.15s;
}
.gui-topbar-mock .win-btn:hover { color: #38bdf8; }
.gui-menubar-mock {
  background: #172033;
  padding: 0.3rem 0.75rem;
  display: flex;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  border-bottom: 1px solid #283548;
  position: relative;
}
.gui-menu-item-wrap {
  position: relative;
}
.gui-menu-trigger {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
  color: #cbd5e1;
}
.gui-menu-trigger:hover, .gui-menu-trigger.active {
  background: #38bdf8;
  color: #020617;
  font-weight: 700;
}
.gui-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 210px;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.15);
  z-index: 50;
  overflow: hidden;
  animation: dropdownFade 0.15s ease-out;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.gui-dropdown.show { display: block; }
.gui-dropdown-item {
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.gui-dropdown-item:last-child { border-bottom: none; }
.gui-dropdown-item:hover {
  background: #2563eb;
  color: #ffffff;
}
.gui-dropdown-item kbd {
  font-size: 0.62rem;
  padding: 0.08rem 0.3rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #93c5fd;
}

.gui-body-layout {
  display: flex;
  min-height: 220px;
  height: 235px;
  position: relative;
}
.gui-toolbox-mock {
  width: 48px;
  background: #111827;
  border-right: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0;
  gap: 0.3rem;
  z-index: 5;
}
.gui-tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.gui-tool-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  transform: scale(1.05);
}
.gui-tool-btn.active {
  background: #38bdf8;
  color: #020617;
  font-weight: 700;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
.gui-canvas-mock {
  flex: 1;
  background: #1e293b;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.canvas-sheet {
  width: 260px;
  height: 175px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
  border: 1px solid #cbd5e1;
}
.sim-obj {
  position: absolute;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sim-obj:hover {
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}
.sim-obj.selected {
  outline: 2px dashed #0284c7;
  outline-offset: 3px;
}
.sim-obj.selected::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 6px;
  height: 6px;
  background: #0284c7;
  border: 1px solid #ffffff;
}
.sim-obj.selected::before {
  content: '';
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 6px;
  height: 6px;
  background: #0284c7;
  border: 1px solid #ffffff;
}

.gui-panels-mock {
  width: 175px;
  background: #111827;
  border-left: 1px solid #1f2937;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.72rem;
  overflow-y: auto;
  z-index: 5;
}
.prop-section-title {
  background: #1f2937;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  color: #38bdf8;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  color: #cbd5e1;
}
.prop-btn-group {
  display: flex;
  gap: 0.25rem;
}
.prop-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.prop-btn:hover {
  background: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
}
.color-swatches-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
  margin-top: 0.15rem;
}
.color-swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.color-swatch-btn:hover {
  transform: scale(1.2);
  border-color: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}
.color-swatch-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #38bdf8;
}
.layer-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  color: #94a3b8;
  font-size: 0.68rem;
}
.layer-row:hover { background: rgba(56, 189, 248, 0.1); color: #cbd5e1; }
.layer-row.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
}
.layer-vis-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  padding: 0 2px;
  color: inherit;
  opacity: 0.8;
}
.layer-vis-btn:hover { opacity: 1; }

.gui-statusbar-mock {
  background: #090d16;
  padding: 0.3rem 0.85rem;
  font-size: 0.7rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #1f2937;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.gui-statusbar-mock .stat-active { color: #38bdf8; font-weight: 600; }

/* Simulator notification toast */
.sim-toast {
  position: absolute;
  top: 10px;
  right: 185px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #38bdf8;
  color: #e0f2fe;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
}
.sim-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* MISSION CHECKLIST CARD (SLIDE 5) */
.sim-mission-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  margin: 0.65rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sim-mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
}
.sim-mission-badge {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-family: monospace;
}
.sim-mission-badge.completed {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #6ee7b7;
}
.sim-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem;
}
.sim-mission-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.sim-mission-item.done {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  font-weight: 600;
}
.sim-mission-item .chk-icon { font-size: 0.8rem; }

/* THEORY INSPECTION CHIPS */
.theory-inspect-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0.6rem 0 0.4rem;
}
.theory-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.theory-btn:hover, .theory-btn.active {
  background: #38bdf8;
  color: #020617;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}
.gui-info-banner {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border: 1.5px solid #38bdf8;
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  margin-top: 0.4rem;
  font-size: 0.84rem;
  animation: slideEntrance 0.25s ease-out;
}

/* INTERACTIVE SHORTCUT BOARD (SLIDE 6) */
.shortcut-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem; margin: 1rem 0;
}
.shortcut-chip {
  background: rgba(0,0,0,0.25); border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: var(--radius); padding: 0.65rem 0.75rem; text-align: center;
  cursor: pointer; transition: all 0.2s ease;
}
.shortcut-chip:hover {
  background: rgba(255,255,255,0.2); transform: translateY(-2px);
  border-color: #38bdf8; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.shortcut-chip.active {
  background: white; color: var(--dark); border-color: white;
  box-shadow: 0 0 16px rgba(255,255,255,0.5);
}
.shortcut-chip.active kbd { background: #e2e8f0; color: #1e293b; border-color: #cbd5e1; }
.shortcut-chip.active .shortcut-name { color: #1e293b; font-weight: 700; }
kbd {
  display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px; padding: 0.15rem 0.4rem; font-size: 0.75rem; font-family: monospace;
  box-shadow: 0 2px 0 rgba(0,0,0,0.3); color: #bae6fd;
}
.shortcut-name { font-size: 0.75rem; margin-top: 0.35rem; display: block; opacity: 0.9; }

/* READINESS CHECKLIST (SLIDE 7) */
.readiness-wrap {
  background: rgba(0, 0, 0, 0.22); border-radius: var(--radius-lg);
  padding: 1.25rem; margin: 1rem 0;
}
.check-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.75rem;
  border-radius: var(--radius); cursor: pointer; transition: background 0.2s;
  font-size: 0.92rem;
}
.check-item:hover { background: rgba(255,255,255,0.1); }
.check-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: #10b981; cursor: pointer; }
.readiness-score-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.15);
}

.slide-action-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #ffffff; color: var(--primary); font-weight: 700;
  padding: 0.75rem 1.6rem; border-radius: 999px; border: none;
  cursor: pointer; font-size: 0.92rem; box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: all 0.2s ease; margin-top: 0.5rem;
}
.slide-action-btn:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  background: #f8fafc;
}

/* FULLSCREEN PRESENTER */
.slide-presenter:fullscreen,
.slide-presenter:-webkit-full-screen {
  width: 100vw !important; height: 100vh !important;
  border-radius: 0 !important; display: flex !important; flex-direction: column !important;
  background: #0f172a !important;
}
.slide-presenter:fullscreen .slide-display,
.slide-presenter:-webkit-full-screen .slide-display {
  flex: 1 !important; min-height: 0 !important; padding: 3rem 5rem !important;
}

/* LKPD SECTION */
.lkpd-section { }
.lkpd-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background: white;
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
}
.lkpd-header-content {
  flex: 1;
}
.lkpd-header .slide-title {
  font-size: 1.35rem;
  margin: 0;
}
.lkpd-info-card {
  background: white; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  display: flex; gap: 2rem; border: 1px solid var(--border); margin-bottom: 1.5rem;
  flex-wrap: wrap; box-shadow: var(--shadow);
}
.lkpd-info-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.lkpd-petunjuk {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
.lkpd-petunjuk h3 { font-size: 0.95rem; color: #92400e; margin-bottom: 0.75rem; }
.lkpd-petunjuk ol { margin-left: 1.25rem; color: #78350f; font-size: 0.9rem; }
.lkpd-petunjuk ol li { margin-bottom: 0.3rem; }

.soal-container { display: flex; flex-direction: column; gap: 1.25rem; }
.soal-card {
  background: white; border-radius: var(--radius-lg); padding: 1.5rem;
  border: 1.5px solid var(--border); transition: var(--transition);
}
.soal-card:focus-within { border-color: var(--primary); }
.soal-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--primary); color: white;
  border-radius: 8px; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem;
}
.soal-type-badge {
  display: inline-block; margin-left: 0.5rem; background: var(--surface); color: var(--gray);
  padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
}
.soal-question { font-size: 0.95rem; font-weight: 600; color: var(--dark); margin-bottom: 1rem; line-height: 1.5; }

.pg-options { display: flex; flex-direction: column; gap: 0.6rem; }
.pg-option {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer;
  transition: var(--transition); font-size: 0.9rem;
}
.pg-option:hover { border-color: var(--primary); background: var(--primary-xlight); }
.pg-option input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; }
.pg-option.selected { border-color: var(--primary); background: var(--primary-xlight); color: var(--primary); }
.pg-option.correct { border-color: var(--success); background: #f0fdf4; color: var(--success); }
.pg-option.wrong { border-color: var(--danger); background: #fef2f2; color: var(--danger); }

.essay-input textarea {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-main); font-size: 0.9rem;
  resize: vertical; min-height: 100px; transition: var(--transition);
}
.essay-input textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,0.12); }

.lkpd-submit-area { text-align: center; margin-top: 2rem; padding: 1rem; }

/* HASIL SECTION */
.hasil-section { display: flex; justify-content: center; }
.hasil-card {
  background: white; border-radius: var(--radius-xl); padding: 3rem 2.5rem;
  text-align: center; box-shadow: var(--shadow-md); max-width: 500px; width: 100%;
}
.hasil-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }
.hasil-card h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.hasil-nilai { display: flex; align-items: baseline; justify-content: center; gap: 0.25rem; margin-bottom: 1rem; }
.nilai-label { font-size: 0.9rem; color: var(--gray); margin-right: 0.5rem; }
.nilai-angka { font-size: 4rem; font-weight: 800; font-family: var(--font-display); color: var(--primary); }
.nilai-max { font-size: 1.5rem; color: var(--gray-light); }
.nilai-bar-wrapper { background: var(--border); border-radius: 999px; height: 10px; margin-bottom: 1.25rem; overflow: hidden; }
.nilai-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 1s ease; }
.hasil-desc { color: var(--gray); margin-bottom: 1.25rem; }
.hasil-detail { text-align: left; margin-bottom: 1.5rem; }
.hasil-detail-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.88rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.hasil-actions { display: flex; gap: 1rem; justify-content: center; }

.lkpd-login-prompt { text-align: center; padding: 3rem; }
.prompt-icon { font-size: 3rem; margin-bottom: 1rem; }
.lkpd-login-prompt h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.lkpd-login-prompt p { margin-bottom: 1.5rem; }

/* =============================================
   ADMIN PAGE
   ============================================= */
.admin-page { background: var(--surface); }
.admin-login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}
.admin-login-card {
  background: white; border-radius: var(--radius-xl); padding: 2.5rem;
  width: 100%; max-width: 400px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.admin-login-card .modal-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.admin-login-card h2 { margin-bottom: 0.4rem; }
.admin-login-card > p { margin-bottom: 1.5rem; font-size: 0.9rem; }
.admin-login-card form { text-align: left; display: flex; flex-direction: column; gap: 1rem; }

.admin-dashboard { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; min-width: 260px; background: var(--dark); position: sticky;
  top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
}
.admin-brand { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 0.75rem; }
.admin-nav { padding: 1rem; flex: 1; }
.admin-nav-item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem;
  border-radius: var(--radius); color: #94a3b8; font-size: 0.92rem; font-weight: 500;
  transition: var(--transition); margin-bottom: 0.25rem; cursor: pointer;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.admin-nav-item.active { background: var(--primary); color: white; }
.admin-logout { padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }

.admin-main { flex: 1; overflow-x: hidden; }
.admin-topbar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.admin-topbar h2 { font-size: 1.2rem; }
.admin-user-info { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--gray); font-weight: 500; }
.admin-top-actions { display: flex; align-items: center; gap: 0.65rem; }

.admin-tab { padding: 2rem; }
.tab-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.tab-header h3 { font-size: 1.15rem; color: var(--dark); }

.admin-card-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 850px;
  margin-bottom: 2rem;
}

.admin-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.modal-score-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.admin-stat-card {
  background: white; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.ast-icon { font-size: 1.8rem; width: 52px; height: 52px; background: var(--primary-xlight); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ast-num { font-size: 1.65rem; font-weight: 800; color: var(--dark); font-family: var(--font-display); line-height: 1.1; }
.ast-label { font-size: 0.8rem; color: var(--gray); margin-top: 0.2rem; }

.admin-table-wrapper { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: var(--surface); }
.admin-table th { padding: 0.85rem 1rem; text-align: left; font-size: 0.8rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 0.85rem 1rem; font-size: 0.88rem; color: var(--dark); border-bottom: 1px solid var(--border); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #f8fafc; }
.admin-table .btn { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

.materi-admin-list { display: flex; flex-direction: column; gap: 1rem; }
.materi-admin-item {
  background: white; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  display: flex; align-items: flex-start; justify-content: space-between;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.mai-left { display: flex; gap: 1rem; align-items: flex-start; flex: 1; }
.mai-info .mai-tp { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; }
.mai-info .mai-title { font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.mai-info .mai-preview { font-size: 0.83rem; color: var(--gray); margin-top: 0.2rem; }
.mai-actions { display: flex; gap: 0.5rem; }

.soal-tp-filter { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 600; }
.soal-tp-filter select { padding: 0.4rem 0.75rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; }
.badge-pg { background: #eff6ff; color: var(--primary); padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-essay { background: #fdf4ff; color: #9333ea; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }

/* =============================================
   TP 5.2 INTERACTIVE MODULES (VECTOR VS BITMAP)
   ============================================= */
.tp2-container {
  margin: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tp2-scaler-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.15);
  position: relative;
}

.tp2-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: rgba(2, 6, 23, 0.6);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
}

.tp2-btn-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tp2-zoom-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tp2-zoom-chip:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: #a855f7;
  color: #ffffff;
}

.tp2-zoom-chip.active {
  background: #7c3aed;
  border-color: #a855f7;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.tp2-toggle-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.tp2-toggle-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

.tp2-toggle-btn.active {
  background: #38bdf8;
  color: #030712;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  font-weight: 700;
}

.tp2-stage-canvas {
  height: 220px;
  background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tp2-grid-backdrop {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.tp2-status-pill {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 9px;
  border-radius: 999px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 5;
}

.tp2-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.tp2-info-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.tp2-info-card strong {
  color: #a78bfa;
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

/* BITMAP MICROSCOPE GRID */
.tp2-pixel-matrix {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5px;
  padding: 6px;
  background: #020617;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 280px;
  margin: 0 auto;
  user-select: none;
}

.tp2-pixel-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.15s ease, outline 0.15s ease;
  position: relative;
}

.tp2-pixel-cell:hover, .tp2-pixel-cell.active {
  transform: scale(1.3);
  z-index: 10;
  outline: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.tp2-pixel-hud {
  margin-top: 0.6rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.tp2-color-chip {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid white;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* COMPARE TABS */
.tp2-tabs-nav {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tp2-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tp2-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.tp2-tab-btn.active {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-color: #a855f7;
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.tp2-tab-pane {
  display: none;
  animation: fadeInPane 0.25s ease-out;
}

.tp2-tab-pane.active {
  display: block;
}

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

.tp2-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.tp2-compare-table th {
  background: rgba(2, 6, 23, 0.8);
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.tp2-compare-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  line-height: 1.5;
}

.tp2-compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.tp2-pro-con-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.tp2-pro-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  padding: 0.85rem;
  font-size: 0.82rem;
  color: #d1fae5;
  line-height: 1.6;
}

.tp2-con-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 0.85rem;
  font-size: 0.82rem;
  color: #fee2e2;
  line-height: 1.6;
}

/* DPI CALCULATOR & RESOLUTION TESTER */
.tp2-calc-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

.tp2-calc-form {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius);
  padding: 1rem;
}

.tp2-calc-preview {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tp2-dpi-chips {
  display: flex;
  gap: 0.35rem;
  margin: 0.4rem 0 0.8rem;
  flex-wrap: wrap;
}

.tp2-dpi-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tp2-dpi-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: white;
}

.tp2-dpi-chip.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: white;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.tp2-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.tp2-input-row input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  color: white;
  font-size: 0.82rem;
}

.tp2-input-row input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

/* FORMAT EXPLORER */
.tp2-format-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.tp2-format-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tp2-format-btn.vector-type {
  border-color: rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.tp2-format-btn.bitmap-type {
  border-color: rgba(244, 114, 182, 0.4);
  color: #f472b6;
}

.tp2-format-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.tp2-format-btn.active.vector-type {
  background: #0284c7;
  color: white;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

.tp2-format-btn.active.bitmap-type {
  background: #db2777;
  color: white;
  border-color: #f472b6;
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.5);
}

.tp2-format-detail-card {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* CASE STUDY CHALLENGE */
.tp2-quiz-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.tp2-quiz-card.answered-correct {
  border-color: #10b981;
  background: rgba(6, 78, 59, 0.2);
}

.tp2-quiz-card.answered-wrong {
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.2);
}

.tp2-quiz-options {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.tp2-quiz-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.tp2-quiz-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.tp2-quiz-feedback {
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.5;
  display: none;
}

/* =============================================
   TP 5.3: MEMBEDAKAN FORMAT RGB & CMYK STYLES
   ============================================= */
.tp3-scaler-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1rem;
  backdrop-filter: blur(12px);
  margin-top: 0.5rem;
}

.tp3-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.85rem;
}

.tp3-btn-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tp3-chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tp3-chip-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  transform: translateY(-1px);
}

.tp3-chip-btn.active {
  background: #0284c7;
  color: white;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.tp3-mixer-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 860px) {
  .tp3-mixer-grid {
    grid-template-columns: 1fr;
  }
}

.tp3-light-stage {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.tp3-light-canvas {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: #000000;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.rgb-beam {
  position: absolute;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(4px);
  transition: opacity 0.15s ease;
}

.beam-red {
  background: #ff0000;
  top: 10px;
  left: 32px;
}

.beam-green {
  background: #00ff00;
  bottom: 12px;
  left: 10px;
}

.beam-blue {
  background: #0000ff;
  bottom: 12px;
  right: 10px;
}

.rgb-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 800;
  font-family: monospace;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.tp3-cmyk-canvas {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cmyk-plate {
  position: absolute;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  mix-blend-mode: multiply;
  transition: opacity 0.15s ease;
}

.plate-cyan {
  background: #00ffff;
  top: 15px;
  left: 15px;
}

.plate-magenta {
  background: #ff00ff;
  top: 15px;
  right: 15px;
}

.plate-yellow {
  background: #ffff00;
  bottom: 15px;
  left: 38px;
}

.plate-key {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #000000;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.cmyk-center-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 800;
  font-family: monospace;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
  white-space: nowrap;
}

.tp3-sliders-pane {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tp3-slider-row {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
}

.tp3-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.tp3-val-badge {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: white;
}

.tp3-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  background: #334155;
  cursor: pointer;
}

.range-red::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #ef4444; border: 2px solid white; cursor: pointer; }
.range-green::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #22c55e; border: 2px solid white; cursor: pointer; }
.range-blue::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #3b82f6; border: 2px solid white; cursor: pointer; }
.range-cyan::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #06b6d4; border: 2px solid white; cursor: pointer; }
.range-magenta::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #ec4899; border: 2px solid white; cursor: pointer; }
.range-yellow::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #eab308; border: 2px solid white; cursor: pointer; }
.range-key::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #0f172a; border: 2px solid #94a3b8; cursor: pointer; }

.tp3-result-hud {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
}

.tp3-hud-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.tp3-hud-hex {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.5px;
}

.tp3-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.tp3-info-card {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.tp3-card-title {
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

/* Tabs styling for TP 3 */
.tp3-tabs-wrap {
  margin-top: 0.5rem;
}

.tp3-tabs-nav {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.tp3-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tp3-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.tp3-tab-btn.active {
  background: #0284c7;
  color: white;
  border-color: #38bdf8;
}

.tp3-tab-pane {
  display: none;
}

.tp3-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.tp3-gamut-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

@media (max-width: 860px) {
  .tp3-gamut-layout { grid-template-columns: 1fr; }
}

.tp3-horseshoe-chart {
  background: #020617;
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp3-badge-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.tp3-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .tp3-channels-grid { grid-template-columns: 1fr; }
}

.tp3-channel-card {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.9rem;
}

.tp3-channel-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.ch-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: white;
  min-width: 55px;
  text-align: center;
}
.ch-r { background: #ef4444; }
.ch-g { background: #22c55e; }
.ch-b { background: #3b82f6; }
.ch-c { background: #06b6d4; }
.ch-m { background: #ec4899; }
.ch-y { background: #eab308; color: black; }
.ch-k { background: #0f172a; border: 1px solid #475569; }

/* POSTER SCREEN VS PRINT SIMULATOR */
.tp3-poster-sim-area {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 800px) {
  .tp3-poster-sim-area { grid-template-columns: 1fr; }
}

.tp3-poster-card {
  position: relative;
  background: #090e17;
  border: 2px solid #38bdf8;
  border-radius: 12px;
  padding: 1.25rem;
  overflow: hidden;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}

.tp3-poster-card.cmyk-mode {
  background: #f1f5f9;
  border-color: #94a3b8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  filter: contrast(0.9) brightness(0.92);
}

.poster-glow-bg {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
}

.poster-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  background: #0284c7;
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.poster-neon-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 0 20px #38bdf8, 0 0 40px #6366f1;
  transition: all 0.3s;
}

.tp3-poster-card.cmyk-mode .poster-neon-title {
  color: #1e293b;
  text-shadow: none;
}

.poster-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: #a5f3fc;
  margin: 0.35rem 0 0.85rem;
  letter-spacing: 0.5px;
}

.tp3-poster-card.cmyk-mode .poster-sub {
  color: #64748b;
}

.poster-color-bars {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.neon-bar {
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: black;
  transition: all 0.4s;
}

.bar-1 { background: #39ff14; box-shadow: 0 0 10px rgba(57, 255, 20, 0.5); }
.bar-2 { background: #00f0ff; box-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.bar-3 { background: #ff007f; color: white; box-shadow: 0 0 10px rgba(255, 0, 127, 0.5); }

.tp3-poster-card.cmyk-mode .bar-1 { background: #4d8c36; box-shadow: none; color: white; }
.tp3-poster-card.cmyk-mode .bar-2 { background: #008b9b; box-shadow: none; color: white; }
.tp3-poster-card.cmyk-mode .bar-3 { background: #aa2e68; box-shadow: none; color: white; }

.poster-footer-txt {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

.tp3-poster-card.cmyk-mode .poster-footer-txt {
  color: #475569;
}

.tp3-poster-analysis {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tp3-warning-box {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.tp3-solution-card {
  background: rgba(6, 78, 59, 0.25);
  border: 1px solid #10b981;
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

/* GUI SOFTWARE SIMULATOR */
.tp3-gui-app {
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tp3-app-menubar {
  position: relative;
  background: #2d2d2d;
  border-bottom: 1px solid #3c3c3c;
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #cccccc;
  user-select: none;
}

.tp3-app-logo {
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: #31a8ff;
  color: black;
  margin-right: 0.35rem;
}

.tp3-menu-item {
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.tp3-menu-item:hover {
  background: #444444;
  color: white;
}

.tp3-menu-wrapper {
  position: relative;
  display: inline-block;
}

.tp3-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #252526;
  border: 1px solid #454545;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  min-width: 205px;
  z-index: 100;
  display: none;
  padding: 0.25rem 0;
}

.tp3-dropdown-menu.active {
  display: block;
}

.tp3-dd-item {
  position: relative;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  color: #cccccc;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s;
}

.tp3-dd-item:hover {
  background: #094771;
  color: white;
}

.tp3-dropdown-submenu {
  position: absolute;
  top: -4px;
  left: 100%;
  background: #252526;
  border: 1px solid #454545;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  min-width: 215px;
  z-index: 101;
  display: none;
  padding: 0.25rem 0;
}

.tp3-dropdown-submenu.active {
  display: block;
}

.tp3-dd-separator {
  height: 1px;
  background: #3c3c3c;
  margin: 0.25rem 0;
}

.tp3-app-workspace {
  background: #181818;
}

.tp3-doc-tab {
  background: #2d2d2d;
  border-bottom: 1px solid #181818;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  color: #ffffff;
  display: inline-block;
  border-top: 2px solid #007acc;
}

.tp3-canvas-body {
  display: grid;
  grid-template-columns: 1fr 180px;
  min-height: 170px;
}

@media (max-width: 650px) {
  .tp3-canvas-body { grid-template-columns: 1fr; }
}

.tp3-canvas-mock {
  background: #282828;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mock-content {
  background: #1e1e1e;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mock-swatches {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.mock-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.s-cyan { background: #00f0ff; }
.s-magenta { background: #ff007f; }
.s-yellow { background: #ffff00; }

.tp3-side-panel {
  background: #252526;
  border-left: 1px solid #3c3c3c;
  padding: 0.5rem;
  font-size: 0.75rem;
}

.panel-header {
  font-size: 0.68rem;
  font-weight: 800;
  color: #858585;
  letter-spacing: 0.5px;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #333333;
}

.channel-list {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ch-item {
  color: #cccccc;
  padding: 0.15rem 0.25rem;
  border-radius: 3px;
}

.panel-body-status {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* PROJECT SPECIFICATIONS CARD */
.tp3-project-detail-card {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
}

.tp3-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.spec-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.tp3-notes-box {
  background: rgba(8, 145, 178, 0.15);
  border: 1px solid rgba(8, 145, 178, 0.4);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #e2e8f0;
}

/* =============================================
   TP 5.4 INTERACTIVE STYLES (VECTOR TOOLS & WORKFLOW)
   ============================================= */
.tp4-container {
  margin: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tp4-scaler-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.12);
  position: relative;
}

.tp4-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: rgba(2, 6, 23, 0.65);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.85rem;
}

.tp4-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tp4-chip-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tp4-chip-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #ffffff;
}

.tp4-chip-btn.active {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-color: #fbbf24;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}

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

@media (max-width: 768px) {
  .tp4-grid-2 { grid-template-columns: 1fr; }
}

.tp4-card-hud {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
}

.tp4-swatch-picker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.tp4-swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.tp4-swatch-dot:hover {
  transform: scale(1.18);
  border-color: #ffffff;
}

.tp4-swatch-dot.active {
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

.tp4-stage-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  min-height: 210px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.tp4-stage-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

/* =============================================
   TP 5.5 INTERACTIVE STYLES (BITMAP TOOLS & WORKFLOW)
   ============================================= */
.tp5-container {
  margin: 0.85rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tp5-scaler-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.12);
  position: relative;
}

.tp5-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: rgba(2, 6, 23, 0.65);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.85rem;
}

.tp5-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tp5-chip-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tp5-chip-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #ffffff;
}

.tp5-chip-btn.active {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: #6ee7b7;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

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

@media (max-width: 768px) {
  .tp5-grid-2 { grid-template-columns: 1fr; }
}

.tp5-card-hud {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem;
}

.tp5-stage-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  min-height: 210px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.tp5-stage-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.tp5-slider-row {
  margin-bottom: 0.75rem;
}

.tp5-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}

.tp5-range {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  accent-color: #10b981;
  cursor: pointer;
}

.tp5-photo-preview {
  width: 100%;
  max-width: 240px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: filter 0.15s ease;
}

/* =============================================
   LKPD LOCK & ACCESS CONTROL STYLES
   ============================================= */

/* Locked state on topbar button */
.btn.btn-lkpd-locked {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}
.btn.btn-lkpd-locked:hover {
  background: #fee2e2 !important;
  border-color: #f87171 !important;
}

/* Locked status badge on index cards */
.badge-lkpd-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.card-status.locked {
  color: #ef4444;
  font-weight: 700;
}

/* LKPD Locked Screen (Student view in materi.html) */
.lkpd-locked-container {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  width: 100%;
}

.lkpd-locked-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 2px solid #fee2e2;
  position: relative;
  overflow: hidden;
  animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lkpd-locked-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.locked-icon-pulse {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem;
  border-radius: 22px;
  background: #fef2f2;
  border: 2px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #ef4444;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.18);
  animation: lockBounce 2.5s infinite ease-in-out;
}

@keyframes lockBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.locked-badge-pill {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.locked-heading {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.65rem;
}

.locked-explanation {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 1.75rem;
}

.locked-tips-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  text-align: left;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.locked-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #334155;
}

.locked-tip-item .lt-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.locked-actions-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Admin LKPD Card Styles */
.lkpd-admin-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lkpd-admin-card.is-locked {
  background: #fffafa !important;
}

.lkpd-admin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.nav-mobile-actions {
  display: none;
}

/* BANNER ASAS FEATURED CARD */
.banner-asas-card {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  color: white;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}
.banner-asas-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.18);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}
.banner-asas-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.banner-asas-desc {
  color: #bfdbfe;
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}
.banner-asas-btn {
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 800;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.875rem 1.75rem;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  body {
    padding-top: var(--sat);
    padding-left: var(--sal);
    padding-right: var(--sar);
  }
  .navbar {
    padding-top: calc(0.5rem + var(--sat));
    padding-left: calc(1rem + var(--sal));
    padding-right: calc(1rem + var(--sar));
  }
  .hero { flex-direction: column; padding-top: 85px; gap: 1.75rem; }
  .hero-visual { width: 100%; }
  .hero-card-float { display: none; }
  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
  }
  .hero-cta .btn {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    padding: 0.65rem 1.25rem;
    font-size: 0.92rem;
  }
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }
  .nav-links.open { 
    display: flex; 
    flex-direction: column; 
    position: absolute; 
    top: 70px; 
    left: 0; 
    right: 0; 
    background: white; 
    padding: 1.25rem 1.5rem; 
    border-bottom: 1px solid var(--border); 
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    z-index: 1000; 
    animation: modalFadeIn 0.2s ease-out;
  }
  .nav-mobile-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }
  .nav-mobile-actions .btn {
    flex: 1 1 auto;
    width: auto;
    min-width: 120px;
    max-width: 100%;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  /* Banner ASAS Mobile: Ramping, Elegan & Tidak Melebar */
  .banner-asas-card {
    padding: 0.75rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.15rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .banner-asas-badge {
    padding: 0.18rem 0.5rem;
    font-size: 0.68rem;
    margin-bottom: 0.3rem;
    border-radius: 4px;
  }
  .banner-asas-title {
    font-size: 1.02rem;
    margin-bottom: 0.2rem;
    line-height: 1.3;
  }
  .banner-asas-desc {
    font-size: 0.78rem;
    line-height: 1.4;
  }
  .banner-asas-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 0.55rem 0.85rem !important;
    font-size: 0.84rem !important;
    border-radius: 6px;
  }
  
  /* Proteksi Tombol Global di Mobile: Mencegah Tombol Meluber / Melebar Aneh */
  .btn {
    max-width: 100%;
    box-sizing: border-box;
  }
  .btn-lg {
    padding: 0.7rem 1.35rem;
    font-size: 0.92rem;
    white-space: normal;
    text-align: center;
    width: auto;
    max-width: 100%;
  }

  /* Input Auto-Zoom Fix untuk iOS Safari */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Modals di Layar Ponsel */
  .modal-overlay {
    padding: 1rem;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-card {
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    margin: auto;
  }
  
  /* Materi Responsive Layout */
  .materi-layout { flex-direction: column; padding-top: 65px; }
  .materi-sidebar { display: none; }
  .materi-main { max-width: 100%; padding: 1rem 0.75rem; }
  
  .slide-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1rem;
  }
  .slide-header-left { min-width: 100%; }
  .slide-title { font-size: 1.25rem; }
  
  /* Controls Atas Slide: Fleksibel dan Proporsional (Tidak Melebar Penuh) */
  .slide-controls-top {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .slide-tools-group {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .slide-tools-group::-webkit-scrollbar { display: none; }
  .slide-tools-group .btn-sm {
    flex: 0 0 auto;
    width: auto;
    text-align: center;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
    min-height: 38px;
    white-space: nowrap;
  }
  .btn-cta-lkpd {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    min-height: 38px;
    white-space: nowrap;
  }

  /* Slide Presentation Canvas Mobile */
  .slide-display {
    padding: 1.5rem 1.15rem !important;
    min-height: 400px !important;
    touch-action: pan-y;
  }
  .slide-heading-row {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .slide-heading-row .slide-emoji {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.7rem;
    border-radius: 12px;
  }
  .slide-heading {
    font-size: 1.25rem;
  }
  .slide-body {
    font-size: 0.88rem;
    line-height: 1.65;
  }
  .slide-card-grid-2, .slide-card-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .interactive-card {
    padding: 0.95rem;
  }

  /* Slide Dock Controls Mobile */
  .slide-nav {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem;
  }
  .slide-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    min-height: 44px;
  }
  .dock-kbd {
    display: none;
  }
  .slide-progress-dock {
    padding: 0.25rem 0.65rem;
    font-size: 0.76rem;
  }
  .filmstrip-item {
    min-width: 110px;
    max-width: 140px;
    padding: 0.35rem 0.55rem;
  }

  /* LKPD Mobile */
  .lkpd-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    gap: 0.75rem;
  }
  .lkpd-header .slide-title {
    font-size: 1.15rem;
  }
  .lkpd-info-card {
    gap: 0.85rem;
    padding: 1rem 1.15rem;
  }

  /* Admin Mobile Navigation: Rapi, Terstruktur & Proporsional di Layar HP */
  .admin-dashboard { 
    flex-direction: column;
    min-height: 100vh;
    background: #f8fafc;
  }
  .admin-sidebar { 
    width: 100% !important; 
    min-width: 100% !important; 
    height: auto; 
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0.75rem;
    padding-top: calc(0.5rem + var(--sat));
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .admin-brand {
    padding: 0.15rem 0 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .admin-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    padding: 0.45rem 0 0.2rem 0;
    scrollbar-width: none;
  }
  .admin-nav::-webkit-scrollbar {
    display: none;
  }
  .admin-nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.42rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 9999px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    margin-bottom: 0;
    transition: all 0.2s;
  }
  .admin-nav-item.active {
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37,99,235,0.4);
  }
  .admin-logout {
    display: none;
  }

  /* Topbar Admin Mobile: Static (Tidak bertumpuk) & Rapi */
  .admin-topbar {
    position: static !important;
    top: auto !important;
    padding: 0.65rem 0.75rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .admin-topbar h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }
  .admin-top-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .admin-top-actions .btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
  }
  .admin-user-info {
    display: none !important;
  }

  .admin-tab {
    padding: 0.85rem 0.65rem !important;
  }
  .tab-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }
  .tab-header h3 {
    font-size: 1.08rem;
    margin: 0;
    color: #0f172a;
  }
  .tab-header p {
    font-size: 0.8rem;
    margin-top: 0.2rem;
    line-height: 1.45;
  }
  .tab-header > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
  }
  .tab-header > div:last-child .btn,
  .tab-header > button.btn,
  .tab-header > a.btn {
    flex: 1 1 auto;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
    white-space: normal;
  }

  /* Admin Stats Grid Mobile */
  .admin-stats-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 0.5rem;
    margin-bottom: 1rem !important;
  }
  .admin-stat-card {
    padding: 0.65rem 0.75rem;
    gap: 0.55rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .ast-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.25rem;
    border-radius: 8px;
  }
  .ast-num {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.1;
  }
  .ast-label {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.2rem;
    line-height: 1.2;
  }

  /* Dashboard LKPD Quick Bar */
  .admin-lkpd-quick-bar {
    padding: 0.85rem !important;
    border-radius: 10px !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    flex-direction: column;
    align-items: stretch !important;
  }
  .admin-lkpd-quick-bar > div:last-child .btn {
    width: 100%;
    justify-content: center;
  }

  /* Tab LKPD: Pesan Tampilan & Tombol Header */
  #tab-lkpd .tab-header > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: 100%;
  }
  #tab-lkpd .tab-header > div:last-child .btn:last-child {
    grid-column: span 2;
  }
  .lkpd-admin-msg-box {
    padding: 0.85rem 0.95rem !important;
    border-radius: 10px !important;
    margin-bottom: 1.25rem !important;
  }
  .lkpd-admin-msg-box > div:last-child {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .lkpd-admin-msg-box input {
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box;
    font-size: 16px !important;
    padding: 0.6rem 0.85rem !important;
    border-radius: 8px !important;
  }
  .lkpd-admin-msg-box .btn {
    width: 100% !important;
    justify-content: center;
    padding: 0.55rem !important;
  }
  .lkpd-admin-card {
    padding: 0.85rem 0.95rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    border-radius: 10px !important;
    margin-bottom: 0.85rem !important;
  }
  .lkpd-admin-card > div:first-child {
    min-width: 100% !important;
    gap: 0.75rem !important;
  }
  .lkpd-admin-card > div:last-child {
    width: 100% !important;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.65rem;
  }
  .lkpd-admin-card > div:last-child .btn {
    width: 100% !important;
    justify-content: center;
    padding: 0.55rem !important;
    font-size: 0.86rem !important;
    border-radius: 6px;
  }

  /* Tab Materi Mobile Card List */
  .materi-admin-list h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
  }
  .materi-admin-list h4 .btn {
    margin-left: auto;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 6px;
  }
  .materi-admin-item {
    display: flex;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    padding: 0.85rem 0.95rem !important;
    border-radius: 10px !important;
    margin-bottom: 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
  }
  .mai-left {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    width: 100%;
  }
  .mai-info .mai-tp {
    font-size: 0.72rem;
  }
  .mai-info .mai-title {
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .mai-info .mai-preview {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 0.25rem;
  }
  .mai-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.5rem;
  }
  .mai-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.4rem;
  }

  /* Tab Soal Filter */
  .soal-tp-filter {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    width: 100%;
  }
  .soal-tp-filter select {
    flex: 1;
    min-width: 180px;
    font-size: 16px !important;
    padding: 0.5rem 0.75rem;
  }

  /* Tab Pengaturan ASAS */
  .admin-card-box {
    padding: 1rem 0.85rem !important;
    border-radius: 10px;
    margin-bottom: 1.25rem;
  }
  .admin-form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    margin-bottom: 0.85rem !important;
  }
  .form-group label {
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
  }
  .form-group input, 
  .form-group select, 
  .form-group textarea {
    font-size: 16px !important;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
  }
  .form-group small {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-top: 0.25rem;
    display: block;
  }
  #btnSaveUasSettings {
    width: 100% !important;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
  }

  /* Tab Nilai ASAS Filter & Actions */
  #tab-uas-nilai .tab-header > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    width: 100%;
  }
  #tab-uas-nilai .tab-header > div:last-child .btn:last-child {
    grid-column: span 2;
  }
  #tab-uas-nilai .tab-header > div:last-child .btn {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
    justify-content: center;
  }
  .admin-search-row {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.4rem !important;
    margin-bottom: 0.85rem !important;
  }
  #uasSearchInput {
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  /* Admin Table Wrapper: Smooth Horizontal Scroll & Non-Squish Cells */
  .admin-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 1.25rem;
  }
  .admin-table {
    min-width: 600px !important;
    width: 100%;
    border-collapse: collapse;
  }
  #uasTable {
    min-width: 820px !important;
  }
  .admin-table th {
    padding: 0.65rem 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
  }
  .admin-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
  }
  .admin-table .btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    border-radius: 6px;
    white-space: nowrap;
  }

  /* Modals di Layar HP */
  .modal-overlay {
    padding: 0.5rem !important;
  }
  .modal.modal-lg {
    max-width: 100% !important;
    width: 100% !important;
    max-height: calc(100vh - 1rem) !important;
    max-height: calc(100dvh - 1rem) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px !important;
  }
  .modal-score-summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  .modal-score-summary-grid > div {
    padding: 0.65rem 0.5rem !important;
    border-radius: 8px !important;
  }
  .modal-score-summary-grid > div > div:first-child {
    font-size: 1.35rem !important;
  }
  .modal-score-summary-grid > div > div:last-child {
    font-size: 0.68rem !important;
  }
  .modal-form .form-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  #modalDetailUas .modal-header {
    padding: 1rem 1rem 0.75rem 1rem;
  }
  #modalDetailUas .modal-header h2 {
    font-size: 1.05rem;
  }
  #modalDetailUas > div:nth-child(2) {
    padding: 1rem !important;
  }

  /* Admin Login Screen Mobile */
  .admin-login-screen {
    padding: 1rem !important;
  }
  .admin-login-card {
    width: 100% !important;
    max-width: 380px !important;
    padding: 1.5rem 1.25rem !important;
    border-radius: 14px !important;
  }
  .admin-login-card input {
    font-size: 16px !important;
    padding: 0.65rem 0.85rem !important;
  }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .admin-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .admin-stat-card { padding: 0.6rem 0.65rem; gap: 0.45rem; }
  .ast-icon { width: 34px; height: 34px; font-size: 1.15rem; }
  .ast-num { font-size: 1.15rem; }
  .admin-user-name-text { display: none; }
  .slide-nav { flex-wrap: nowrap; justify-content: center; gap: 0.5rem; width: auto; }
  .slide-btn { flex: 0 0 auto; width: auto; min-width: 90px; padding: 0.45rem 0.85rem; font-size: 0.8rem; justify-content: center; }
  .slide-progress-dock { order: 0; width: auto; justify-content: center; margin-bottom: 0; }
  .hero-stats { flex-direction: column; gap: 0.75rem; }
  .stat-divider { display: none; }
}

.admin-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-light); }
