/* ==========================================================================
   sikemas-panduan.css — FULL-VIEWPORT ZERO-CLIP, ZERO-CROP, DRAG & SWIPE
   SIKEMAS FMIPA UNIGA (Desktop & Mobile Perfection)
   - Desktop: Full-height centered modal (calc(100dvh - 24px)), 0% clipped bottom!
   - Mobile: 100vw x 100dvh edge-to-edge app sheet, 0% vertical scroll!
   - Slide Left/Right via Mouse Drag (Desktop), Touch Swipe (HP), & Side Arrows ‹ ›
   - Strict Zero-Crop (object-fit: contain !important) + Distinct Slide vs Video
   ========================================================================== */

.skp-overlay {
  position: fixed;
  inset: 0;
  z-index: 100250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(2, 12, 28, 0.90);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
.skp-overlay.is-open {
  display: flex;
  opacity: 1;
}
.skp-overlay *,
.skp-overlay *::before,
.skp-overlay *::after {
  box-sizing: border-box;
}

.skp-modal {
  position: relative;
  width: min(1040px, calc(100vw - 24px));
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background-color: #003566;
  background-image:
    radial-gradient(circle at 26% 42%, rgba(2, 132, 199, 0.34) 0%, transparent 56%),
    linear-gradient(155deg, rgba(0, 28, 58, 0.94) 0%, rgba(0, 62, 116, 0.90) 54%, rgba(0, 26, 54, 0.97) 100%),
    url('../img/siakad-pat-04.png');
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: cover, cover, 56px 56px;
  border: 1.5px solid rgba(245, 184, 0, 0.48);
  border-bottom: 4px solid #f5b800;
  box-shadow: 0 32px 80px rgba(0, 8, 22, 0.74);
  color: #ffffff;
}
.skp-overlay.is-open .skp-modal.has-fs-fallback {
  transform: none !important;
  overflow: visible !important;
  max-width: none !important;
  max-height: none !important;
}

/* Header */
.skp-hdr {
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 18, 38, 0.52);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.skp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.skp-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.skp-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
}
.skp-sub {
  font-size: 10.5px;
  color: #fde68a;
  font-weight: 600;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skp-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.skp-close:hover {
  background: rgba(239, 68, 68, 0.92);
}

/* Top Switcher Bar */
.skp-bar {
  padding: 7px 16px;
  background: rgba(2, 18, 40, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.skp-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.09);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.skp-pill-btn {
  border: 0;
  background: transparent;
  color: #e0f2fe;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.skp-pill-btn.is-active-gold {
  background: linear-gradient(135deg, #fde047, #f5b800);
  color: #002344;
  font-weight: 800;
}
.skp-pill-btn.is-active-blue {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  font-weight: 800;
}

.skp-modal.is-slide-mode .skp-voice-group,
.skp-modal.is-slide-mode .skp-video-only,
.skp-modal.is-slide-mode .skp-subtitle-box {
  display: none !important;
}
.skp-modal.is-video-mode .skp-practice-tip {
  display: none !important;
}

/* Body — STRICT FLEX-COLUMN WITH min-height: 0 SO NOTHING EVER CLIPS AT BOTTOM! */
.skp-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 10px 14px 12px;
  gap: 9px;
}

/* Stage — TAKES EXACT REMAINING HEIGHT, DRAGGABLE & SWIPEABLE! */
.skp-stage {
  position: relative;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  width: 100%;
  border-radius: 18px;
  padding: 16px 56px;
  background:
    radial-gradient(circle at 30% 50%, rgba(14, 165, 233, 0.25) 0%, transparent 52%),
    radial-gradient(circle at 75% 22%, rgba(245, 184, 0, 0.14) 0%, transparent 48%),
    linear-gradient(145deg, #041226 0%, #071e3d 55%, #041022 100%);
  border: 1.5px solid rgba(245, 184, 0, 0.45);
  box-shadow: 0 14px 36px rgba(0, 8, 22, 0.48);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.skp-stage:active {
  cursor: grabbing;
}

/* Elegant Side Prev/Next Arrows ‹ › */
.skp-side-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 184, 0, 0.65);
  background: rgba(0, 26, 56, 0.82);
  color: #fde047;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.14s ease, background 0.15s ease;
}
.skp-side-arrow:hover {
  background: linear-gradient(135deg, #fde047, #f5b800);
  color: #002344;
  transform: translateY(-50%) scale(1.08);
}
.skp-side-arrow.is-prev { left: 10px; }
.skp-side-arrow.is-next { right: 10px; }

/* iPhone 17 Pro Max Titanium Chassis — ZERO BLACK LETTERBOX BARS! */
.skp-phone-col {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.skp-phone-bezel {
  position: relative;
  height: 100%;
  max-height: 100%;
  width: auto;
  aspect-ratio: 402 / 856;
  border-radius: 36px;
  padding: 6px;
  /* Desert / Natural Titanium Brushed Frame */
  background: linear-gradient(145deg, #d8cfc3 0%, #9b9186 24%, #4f4842 54%, #9c9288 82%, #e2d9cd 100%);
  box-shadow:
    0 0 0 1px rgba(255, 248, 235, 0.35),
    0 22px 46px rgba(0, 6, 18, 0.76),
    inset 0 0 0 3px #0b0d12,
    inset 0 2px 5px rgba(255, 255, 255, 0.32);
}
/* Physical Side Buttons (Action, Volume Up/Down, Power) */
.skp-ip-hw {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e2d9cd, #7d746b, #c8bfb2);
  pointer-events: none;
}
.skp-ip-action { left: -3px; top: 15%; height: 4.5%; }
.skp-ip-vol1   { left: -3px; top: 23%; height: 8.5%; }
.skp-ip-vol2   { left: -3px; top: 34%; height: 8.5%; }
.skp-ip-power  { right: -3px; top: 26%; height: 12.5%; }

.skp-screen-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #00315c;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65);
}
/* Real iPhone 17 Pro Max Status Bar + Dynamic Island (Blends Seamlessly with Blue Header!) */
.skp-ip-statusbar {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 14px;
  background: linear-gradient(90deg, #00315c 0%, #004278 52%, #003463 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 6;
}
.skp-ip-time {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.skp-ip-island {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 16px;
  border-radius: 999px;
  background: #050608;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
}
.skp-ip-lens {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #1e3a8a 45%, #020617 85%);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}
.skp-ip-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  opacity: 0.95;
}
/* Edge-to-Edge Screenshot Body (0px Black Space!) */
.skp-ip-screen-body {
  position: relative;
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}
.skp-screen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: top center !important;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: opacity 0.16s ease;
}
.skp-screen-wrap img.is-switching {
  opacity: 0.35;
}
/* Seamless iPhone Home Indicator Bar (Blends into White Bottom Dock!) */
.skp-ip-homebar {
  flex: 0 0 auto;
  height: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}
.skp-ip-homepill {
  width: 36%;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.34);
}

/* Interactive Touch-Tap Hotspot */
.skp-hotspot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid #fde047;
  background: rgba(245, 184, 0, 0.28);
  box-shadow: 0 0 0 5px rgba(245, 184, 0, 0.24), 0 0 20px rgba(245, 184, 0, 0.7);
  z-index: 15;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  animation: skpTapPulse 1.5s ease-in-out infinite;
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1), top 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes skpTapPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.32), 0 0 18px rgba(245, 184, 0, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(245, 184, 0, 0.05), 0 0 28px rgba(253, 224, 71, 0.9); }
}

.skp-action-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -150%);
  z-index: 16;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 24, 52, 0.94);
  border: 1.5px solid #f5b800;
  color: #fde047;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1), top 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Story Column */
.skp-story-col {
  flex: 1 1 0%;
  max-width: 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.skp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 184, 0, 0.16);
  border: 1px solid rgba(253, 224, 71, 0.45);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fde047;
  text-transform: uppercase;
  width: fit-content;
}
.skp-step-title {
  margin: 7px 0 5px;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
}
.skp-step-desc {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #e0f2fe;
}
.skp-bullets {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.48;
  color: #cbd5e1;
}
.skp-bullets li {
  margin-bottom: 4px;
}
.skp-subtitle-box {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(2, 12, 28, 0.84);
  border: 1px solid rgba(253, 224, 71, 0.42);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}
.skp-subtitle-box.is-hidden {
  display: none !important;
}
.skp-practice-tip {
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px dashed rgba(125, 211, 252, 0.45);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 700;
}

/* Fullscreen — Slim Floating Red-Gold Exit Pill (Always Visible via :fullscreen OR .is-fs-active!) */
.skp-fs-exit-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.2px solid #fde047;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.94), rgba(153, 27, 27, 0.96));
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  transition: transform 0.14s ease, filter 0.15s ease;
}
.skp-fs-exit-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
}
.skp-stage:fullscreen,
.skp-stage:-webkit-full-screen,
.skp-stage.is-fs-active,
.skp-stage.is-fs-fallback {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  border-radius: 0 !important;
  border: 0 !important;
  z-index: 100500 !important;
  background: #030a17 !important;
  padding: 24px 60px !important;
}
.skp-stage:fullscreen .skp-fs-exit-btn,
.skp-stage:-webkit-full-screen .skp-fs-exit-btn,
.skp-stage.is-fs-active .skp-fs-exit-btn,
.skp-stage.is-fs-fallback .skp-fs-exit-btn {
  display: inline-flex !important;
}

/* Controls Bar — ALWAYS PINNED AT BOTTOM OF MODAL (NEVER CLIPPED!) */
.skp-controls {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(0, 18, 40, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.skp-progress-wrap {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  overflow: hidden;
}
.skp-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fde047, #f5b800);
  transition: width 0.22s ease;
}
.skp-ctrl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.skp-ctrl-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.skp-ctrl-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 9px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.skp-ctrl-btn.is-play {
  background: linear-gradient(135deg, #fde047, #f5b800);
  border-color: #fde047;
  color: #002344;
  font-weight: 800;
}
.skp-ctrl-btn.is-sub-on {
  background: rgba(16, 185, 129, 0.26);
  border-color: rgba(110, 231, 183, 0.55);
  color: #a7f3d0;
}
.skp-counter {
  font-size: 11.5px;
  font-weight: 800;
  color: #fde68a;
  padding: 0 4px;
}

/* Chapter Pills */
.skp-chapters {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.skp-chap-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.skp-chap-btn.is-active {
  background: linear-gradient(135deg, #fde047, #f5b800);
  border-color: #fde047;
  color: #002344;
  font-weight: 800;
}

/* ==========================================================================
   MOBILE FULL-SCREEN APP SHEET (<= 768px) — 0% SCROLL, SWIPE LEFT/RIGHT
   ========================================================================== */
@media (max-width: 768px) {
  .skp-overlay {
    padding: 0;
  }
  .skp-modal {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .skp-hdr { padding: 8px 12px; }
  .skp-logo { width: 28px; height: 28px; }
  .skp-title { font-size: 0.86rem; }
  .skp-sub { font-size: 9.5px; }
  .skp-bar { padding: 6px 10px; gap: 6px; }
  .skp-pill-btn { padding: 4px 9px; font-size: 10.5px; }
  .skp-body { padding: 6px 8px 8px; gap: 6px; }
  .skp-stage {
    flex-direction: column;
    padding: 8px 36px 6px;
    gap: 6px;
  }
  .skp-side-arrow {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .skp-side-arrow.is-prev { left: 4px; }
  .skp-side-arrow.is-next { right: 4px; }
  .skp-phone-col {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
  }
  .skp-phone-bezel {
    border-radius: 28px;
    padding: 5px;
  }
  .skp-screen-wrap { border-radius: 23px; }
  .skp-ip-statusbar { height: 20px; padding: 0 10px; font-size: 8.5px; }
  .skp-ip-island { width: 54px; height: 13px; }
  .skp-ip-homebar { height: 10px; }
  .skp-story-col {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    gap: 3px;
  }
  .skp-eyebrow { margin: 0 auto; font-size: 9px; padding: 2px 8px; }
  .skp-step-title { margin: 2px 0; font-size: 13.5px; }
  .skp-step-desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .skp-bullets,
  .skp-practice-tip { display: none !important; }
  .skp-subtitle-box { padding: 5px 8px; font-size: 10.5px; line-height: 1.3; }
  .skp-controls { padding: 7px 8px; gap: 5px; }
  .skp-ctrl-btn { padding: 5px 8px; font-size: 10.5px; }
  .skp-chap-btn { padding: 4px 8px; font-size: 10px; }

  .skp-stage:fullscreen,
  .skp-stage:-webkit-full-screen,
  .skp-stage.is-fs-fallback {
    flex-direction: column !important;
    padding: 52px 12px 16px !important;
    gap: 10px !important;
  }
  .skp-stage:fullscreen .skp-story-col > div:first-child,
  .skp-stage.is-fs-fallback .skp-story-col > div:first-child {
    display: none !important;
  }
}
