/* ==========================================================
   CNC LASER VIRTUAL LAB — DESIGN TOKENS
   ========================================================== */
:root {
  /* Latar belakang cerah & bersih ala tema referensi */
  --bg-void: #f8f9fa;
  --bg-void-soft: #ffffff;
  --bg-panel: #f1f3f5;
  --bg-panel-raised: #e9ecef;
  --bg-panel-sunken: #ffffff;

  /* Aksen oranye khas industri & status */
  --accent-laser: #ff5a1f;
  --accent-laser-dim: #ff5a1f1a;
  --accent-safe: #10b981;
  --accent-safe-dim: #10b9811a;
  --accent-warn: #f59e0b;
  --danger: #ef4444;
  --danger-dim: #ef44441a;

  /* Warna teks untuk mode terang */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  /* Garis pembatas yang tipis dan bersih */
  --line: #e5e7eb;
  --line-soft: #f3f4f6;

  --font-display: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --topbar-h: clamp(52px, 6vh, 64px);
  --gap: clamp(0.6rem, 1.4vw, 1.2rem);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --panel-w: clamp(280px, 26vw, 380px);

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button, select, input {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

#status-text {
  color: #ffffff;
  font-weight: bold;
}

:focus-visible {
  outline: 2px solid var(--accent-laser);
  outline-offset: 2px;
}

.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================
   TOPBAR
   ========================================================== */
.topbar {
  height: var(--topbar-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0 clamp(0.9rem, 2vw, 1.5rem);
  background: var(--bg-void-soft);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--accent-laser), #b23c10);
  color: #10141a;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px #ff5a1f55, 0 4px 12px -4px var(--accent-laser-dim);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text em { color: var(--accent-laser); font-style: normal; }
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: -2px;
}

.topnav {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.25rem;
}

.nav-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-btn:hover { color: var(--text-primary); }
.nav-btn.is-active {
  background: var(--accent-laser);
  color: #1a0e08;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--bg-void-soft);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem clamp(0.9rem, 3vw, 1.5rem);
}
.mobile-nav .nav-btn {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
}
.mobile-nav.is-open { display: flex; }

/* ==========================================================
   HOME HERO SECTION
   ========================================================== */
.tab-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.tab-content.is-hidden { display: none; }

.home-hero {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 5rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
#home-canvas {
  display: block;
  width: 100%;
  height: 440px;
}
.home-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-laser);
  background: var(--accent-laser-dim);
  border: 1px solid rgba(255, 90, 31, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
}
.home-hero h1 span { color: var(--accent-laser); }

.home-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 0 2rem 0;
}

.motto-box {
  background: var(--bg-panel);
  border-left: 4px solid var(--accent-laser);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
  max-width: 650px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.motto-box q {
  display: block;
  font-style: italic;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.motto-box span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-laser);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.home-hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;

  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;

  min-height: 100%;
  text-align: left;
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero-visual {
  width: 100%;
  height: 100%;
  min-height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.machine-preview-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08);
  overflow: hidden;
}

@media (max-width: 900px) {
  .home-hero-layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1rem;
    gap: 1rem;
  }
  .home-hero-visual {
    order: -1;
    width: 100%;
    height: 260px;
    min-height: unset;
    margin-bottom: 1rem;
  }
  .home-hero-content {
    order: 1;
    align-items: center;
    padding-top: 0;
    margin-top: -10px;
  }
  .home-actions {
    justify-content: center;
  }
  #home-canvas {
    width: 100% !important;
    height: 310px !important;
  }
}

@media (min-width: 901px) {
  .home-hero-layout {
    display: flex;
    grid-template-columns: 1fr 1fr;   
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 1rem;
  }

  .home-hero-visual {
    position: relative;
    width: 100%;
    max-width: 750px;
    height: 600px;
    left: 50px;
  }

  #home-canvas {
    width: 100% !important;
    height: 160% !important;
  }
}

/* ==========================================================
   WORKSPACE & VIEWPORT 3D
   ========================================================== */
.workspace {
  position: relative;
  height: 100%;
  display: flex;
  min-height: 0;
}

.viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  background: radial-gradient(120% 100% at 50% 0%, #1c232c 0%, var(--bg-void) 65%);
}

#webgl-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.viewport-hud {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.25rem);
  left: clamp(0.75rem, 2vw, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  pointer-events: none;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  background: #10141acc;
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  width: fit-content;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-safe);
  box-shadow: 0 0 8px 1px var(--accent-safe-dim);
}
.status-dot.is-active {
  background: var(--accent-laser);
  box-shadow: 0 0 8px 1px var(--accent-laser-dim);
  animation: pulse 1s ease-in-out infinite;
}
.status-dot.is-danger {
  background: var(--danger);
  box-shadow: 0 0 8px 1px var(--danger-dim);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hud-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.fab-controls {
  display: none;
  position: absolute;
  right: clamp(0.75rem, 3vw, 1.25rem);
  bottom: clamp(0.9rem, 3vw, 1.5rem);
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: var(--accent-laser);
  color: #1a0e08;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px #000a, 0 0 0 1px #ff5a1f55;
  z-index: 30;
}

/* ==========================================================
   CONTROL PANEL
   ========================================================== */
.control-panel {
  flex: 0 0 var(--panel-w);
  width: var(--panel-w);
  background: var(--bg-panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-handle { display: none; }

.panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--gap);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.panel-scroll::-webkit-scrollbar { width: 6px; }
.panel-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.panel-status-strip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-panel-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.mini-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-safe);
  box-shadow: 0 0 10px 2px var(--accent-safe-dim);
  flex: 0 0 auto;
}
.mini-led.is-active {
  background: var(--accent-laser);
  box-shadow: 0 0 10px 2px var(--accent-laser-dim);
}
.mini-led.is-danger {
  background: var(--danger);
  box-shadow: 0 0 10px 2px var(--danger-dim);
}
.strip-label {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.strip-value {
  margin: 0.1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.panel-section {
  background: var(--bg-panel-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.section-title {
  margin: 0;
  padding: 0.6rem 0.85rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}

.section-body {
  padding: 0.5rem 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.section-body.gap-lg { gap: 0.85rem; }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  appearance: none;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  background: var(--bg-panel-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}
.select-wrap svg {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.slider-block { display: flex; flex-direction: column; gap: 0.35rem; }
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.readout {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-panel-raised);
  border: 1px solid var(--line);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-panel-raised);
  border: 1px solid var(--line);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent-laser);
  border: 2px solid #1a0e08;
  cursor: pointer;
  margin-top: -1px;
}
.slider--speed::-webkit-slider-thumb { background: var(--accent-safe); }

.tick-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* KARTU HASIL PEMOTONGAN */
.result-badge {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #6b7280;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  transition: background 0.2s ease;
}
.result-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.2rem;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:hover { filter: brightness(1.08); }

.btn--start {
  background: linear-gradient(180deg, #3fe0a0, var(--accent-safe));
  color: #06251a;
}

.btn--stop {
  background: linear-gradient(180deg, #ff5560, var(--danger));
  color: #2a0508;
  overflow: hidden;
}
.hazard-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  pointer-events: none;
  background: repeating-linear-gradient(45deg, #ffc53d 0 10px, #1a1408 10px 20px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.9;
}

.panel-backdrop { display: none; }

.generic-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2rem;
}
.generic-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-laser);
}
.generic-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0;
}
.generic-inner p { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

/* TOUR GUIDE TOOLTIP */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(3px);
}

.tour-card {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  background: var(--bg-void-soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-laser);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
  text-align: left;
}
.tour-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
}
.tour-card p {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.tour-btn-group {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}
.tour-pri,
.tour-sec {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.tour-pri {
  background: var(--accent-laser);
  color: #fff;
}
.tour-sec {
  background: var(--bg-panel-raised);
  color: var(--text-secondary);
  border: 1px solid var(--line);
}
.tour-pri:hover,
.tour-sec:hover { filter: brightness(1.06); }
.tour-pri:active,
.tour-sec:active { transform: scale(0.97); }

.tour-tooltip {
  position: fixed;
  z-index: 10001;
  top: calc(var(--topbar-h) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 400px);
  padding: 0.8rem 1rem;
  background: var(--bg-void-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-laser);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.tour-tooltip h4 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
}
.tour-tooltip p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

@media (min-width: 1025px) {
  .home-hero-layout {
    grid-template-columns: 0.5fr 1fr;
    gap: 2rem;
    align-items: center;
    justify-content: center;
  }

  .home-hero-visual {
    width: 100%;
    height: 500px;
    min-height: 500px;
    display: flex;
    justify-content: flex-end;
  }

  #home-canvas {
    display: block;
    width: 100%;
    height: 600px;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  :root { --panel-w: clamp(260px, 34vw, 320px); }
  .topnav .nav-btn { padding: 0.4rem 0.65rem; font-size: 0.8rem; }
  .hud-hint { display: none; }
}

@media (max-width: 860px) {
  .topnav { display: none; }
  .menu-toggle { display: flex; }

  .workspace { display: block; position: relative; height: 100%; }
  .viewport { position: absolute; inset: 0; }
  .fab-controls { display: inline-flex; }

  .control-panel {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100%; flex: none;
    max-height: min(78dvh, 620px);
    border-left: none;
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 30px -10px #000a;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(.32,.72,0,1);
    z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .control-panel.is-open { transform: translateY(0); }

  .panel-handle {
    display: block;
    width: 40px; height: 4px;
    border-radius: 999px;
    background: var(--line);
    margin: 0.6rem auto 0.2rem;
  }

  .panel-scroll { padding-bottom: 1.2rem; gap: 0.5rem; }

  .panel-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: #05070ab3;
    backdrop-filter: blur(2px);
    border: none;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 50;
  }
  .panel-backdrop.is-open { opacity: 1; pointer-events: auto; }
}
/* ==========================================================
   COMPLETION MODAL (POP-UP SELESAI)
   ========================================================== */
.completion-overlay {
  position: fixed;
  inset: 0;
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(5px);
  animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.completion-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, #18202c, #111722);
  border: 1px solid rgba(255, 90, 31, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 90, 31, 0.15);
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.completion-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.completion-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--accent-laser);
}

.completion-body {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.completion-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.completion-title-msg {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #f3f4f6;
}

.completion-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #9ca3af;
  max-width: 340px;
}

.completion-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-modal {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn-modal:active { transform: scale(0.97); }
.btn-modal:hover { filter: brightness(1.12); }

.btn-modal--sec {
  background: #374151;
  color: #f3f4f6;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-modal--pri {
  background: linear-gradient(180deg, #ff7a45, var(--accent-laser));
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 90, 31, 0.35);
}