/* ==========================================================================
   NO VOID MINDS — SABLON & WORK ORDER STUDIO (POLA GOVET BELI PUTUS)
   Inspired by No Void Minds Air-Feel Aesthetic + Industrial Screen Printing
   ========================================================================== */

:root {
  --bg-ice: #f7f5f2;
  --bg-denim: #ece7e0;
  --bg-denim-dark: #d6cfc4;
  --surface: #ffffff;
  --surface-alt: #faf8f5;
  --text-main: #1b1f3b;
  --text-muted: #475569;
  --text-light: #64748b;
  --accent-orange: #d6006f;
  --accent-orange-hover: #ad005a;
  --pw-magenta: #d6006f;
  --pw-cyan: #00a3e0;
  --pw-yellow: #ffc20e;
  --pw-green: #00a651;
  --pw-ink: #1b1f3b;
  --accent-blue: #00a3e0;
  --accent-slate: #1b1f3b;
  --border-color: #cbd5e1;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  --shadow-soft: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-ice);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Denim Texture Banner Pattern like Reference Image */
.denim-texture {
  background-color: var(--bg-denim);
  background-image: 
    repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0px, rgba(255,255,255,0.14) 2px, transparent 2px, transparent 4px),
    linear-gradient(135deg, #c2d3e0 0%, #dbe7f0 50%, #b5c9d9 100%);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #cbd5e1 60%, #94a3b8);
  border: 1.5px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.5px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 2px 6px rgba(0,0,0,0.12);
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.nav-bar-denim {
  background: var(--pw-ink);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 2px 5px rgba(15,23,42,0.05);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
}

.nav-tab {
  background: transparent;
  border: none;
  padding: 13px 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-tab:hover {
  color: #ffffff;
}

.nav-tab.active {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(15,23,42,0.35);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pw-yellow);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.role-badge.admin {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.role-badge.staff {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange-hover);
}

/* ==========================================================================
   MAIN CONTAINER & VIEWS
   ========================================================================== */
.main-content {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.view-section {
  display: none;
  animation: fadeIn 0.22s ease-out;
}

.view-section.active {
  display: block;
}

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

/* ==========================================================================
   HERO SHOWCASE (DESAIN WEB KAOS.JPG INSPIRED)
   ========================================================================== */
.showcase-hero {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 36px 32px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.6);
}

.showcase-left .series-tag {
  color: #8aa8c7;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.showcase-left h1 {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--text-main);
}

.showcase-left p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.showcase-thumbs {
  display: flex;
  gap: 12px;
  align-items: center;
}

.showcase-thumbs img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  background: #f1f5f9;
}

.showcase-thumbs img:hover,
.showcase-thumbs img.active {
  transform: scale(1.05);
  border-color: var(--accent-orange);
}

.showcase-center {
  text-align: center;
  position: relative;
}

.showcase-main-img-wrap {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  aspect-ratio: 4/3.5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #ffffff 0%, #eef3f7 75%);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.showcase-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.showcase-caption {
  margin-top: 14px;
}

.showcase-caption .tech-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #7c9bb8;
  font-weight: 700;
  text-transform: uppercase;
}

.showcase-caption .tech-sub {
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

.showcase-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.OptionGroupTitle {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pill-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  background: var(--surface-alt);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  color: var(--text-main);
}

.pill-btn:hover {
  border-color: #64748b;
}

.pill-btn.active {
  background: #8aa8c7;
  color: #fff;
  border-color: #6b8eae;
  box-shadow: 0 3px 8px rgba(107, 142, 174, 0.35);
}

.pill-btn.active-orange {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange-hover);
}

/* Feature Strip Icons (Rubber Stretch, Ice Cool, etc.) */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  text-align: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feature-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.feature-item:hover .feature-icon-circle {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.65);
}

.svg-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  vertical-align: middle;
}

.svg-icon-lg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ==========================================================================
   CUSTOMER STEPPER & GUIDED FLOW BAR (ALUR MUDAH PELANGGAN & ADMIN)
   ========================================================================== */
.flow-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.flow-step-card {
  background: var(--surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
}

.flow-step-card:hover {
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.flow-step-card.active-step {
  border-color: var(--accent-orange);
  background: #fffaf5;
}

.flow-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text-main);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-step-card.active-step .flow-step-num {
  background: var(--accent-orange);
}

.flow-step-text h4 {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.flow-step-text p {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Step Section Headers inside Customer Form */
.step-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--text-main);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.step-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-main);
}

.step-banner-badge {
  background: var(--text-main);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Admin Guided Workflow Pipeline */
.admin-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.pipeline-box {
  background: var(--surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  transition: all 0.18s;
  cursor: pointer;
}

.pipeline-box:hover {
  border-color: var(--text-main);
  box-shadow: var(--shadow-soft);
}

.pipeline-box .pipe-step {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pipeline-box .pipe-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 4px;
}

.pipeline-box .pipe-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

@media (max-width: 992px) {
  .flow-stepper,
  .admin-pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .flow-stepper,
  .admin-pipeline {
    grid-template-columns: 1fr;
  }
}

.feature-item span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

/* Visual Story Gallery Strip (using the 8 Gemini Illustrations) */
.story-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.story-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}

.story-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid #f1f5f9;
}

.story-card h4 {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.story-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CARDS, GRIDS, FORMS & BUTTONS
   ========================================================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  padding: 22px;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card .stat-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.stat-card .stat-sub {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--accent-orange);
  color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-orange-hover);
}

.btn-dark {
  background: var(--text-main);
  color: #ffffff;
}
.btn-dark:hover:not(:disabled) {
  background: #334155;
}

.btn-denim {
  background: #8aa8c7;
  color: #ffffff;
}
.btn-denim:hover:not(:disabled) {
  background: #6b8eae;
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--text-main);
  background: var(--surface-alt);
}

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover:not(:disabled) {
  background: #15803d;
}

.btn-danger {
  background: #fee2e2;
  color: var(--danger);
  border-color: #fecaca;
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.74rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  background: var(--surface);
  color: var(--text-main);
  transition: border-color 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-orange);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-dark { background: #1e293b; color: #f8fafc; }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

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

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

/* ==========================================================================
   WORK ORDER SHEET (MANTRA STUDIO STYLE + 12 STAGES)
   ========================================================================== */
.wo-sheet {
  border: 2px solid #0f172a;
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.wo-sheet-header {
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wo-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 2px solid #0f172a;
}

.wo-meta-cell {
  padding: 10px 14px;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.wo-meta-cell .meta-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.wo-meta-cell .meta-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

/* 12 Stages Checklist */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stage-item {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.15s;
}

.stage-item.done {
  border-color: var(--accent-orange);
  background: #fff7ed;
}

.stage-item.locked {
  opacity: 0.55;
  background: #f1f5f9;
}

.stage-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-orange);
  cursor: pointer;
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
}

.stage-item.done .stage-num {
  background: var(--accent-orange);
  color: #fff;
}

.stage-name {
  font-size: 0.8rem;
  font-weight: 800;
}

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

/* Progress Bar Orange & Black (Like Gemini Image 5) */
.wo-progress-wrap {
  background: #0f172a;
  border-radius: var(--radius-pill);
  height: 28px;
  padding: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.wo-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pw-magenta), var(--pw-yellow));
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.wo-progress-label {
  position: absolute;
  right: 14px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-md);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #0f172a;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--accent-orange);
  animation: fadeIn 0.2s ease-out;
}

/* ==========================================================================
   FOOTER (LIKE REFERENCE DESIAN WEB KAOS.JPG)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding: 36px 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 24px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .showcase-hero {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stages-grid { grid-template-columns: repeat(2, 1fr); }
  .wo-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .stages-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}


/* Cetak Work Order: hanya lembar WO yang tercetak */
@media print {
  body * { visibility: hidden; }
  .wo-sheet, .wo-sheet * { visibility: visible; }
  .wo-sheet { position: absolute; left: 0; top: 0; width: 100%; }
  .wo-sheet button, .wo-sheet input[type="file"] { display: none !important; }
  .wo-sheet textarea { border: none; resize: none; }
}

/* Panca Warna: garis lima warna tinta di bawah header */
.top-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg,
    var(--pw-magenta) 0 20%, var(--pw-cyan) 20% 40%, var(--pw-yellow) 40% 60%,
    var(--pw-green) 60% 80%, var(--pw-ink) 80% 100%);
}
.brand-logo-circle {
  background: conic-gradient(var(--pw-magenta) 0 72deg, var(--pw-cyan) 0 144deg,
    var(--pw-yellow) 0 216deg, var(--pw-green) 0 288deg, var(--pw-ink) 0 360deg) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

/* Mobile: menu bawah ala aplikasi */
@media (max-width: 768px) {
  body { padding-bottom: 76px; }
  .top-header { backdrop-filter: none; } /* backdrop-filter membuat position:fixed anak ikut header */
  .nav-bar-denim, #dashSubtabBar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--pw-ink);
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nav-container { justify-content: space-around; padding: 0; gap: 0; }
  .nav-tab {
    flex: 1; flex-direction: column; gap: 3px;
    padding: 9px 2px; font-size: 0.6rem; letter-spacing: 0;
    white-space: normal; text-align: center; line-height: 1.15;
  }
  .nav-tab .svg-icon { width: 20px; height: 20px; }
  .nav-tab.active::after { bottom: auto; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; }

  /* Di dalam dashboard: menu bawah diganti submenu dashboard */
  body.in-dashboard .nav-bar-denim { display: none; }
  body.in-dashboard .view-section { animation: none; } /* transform animasi mengganggu menu fixed */
  #dashSubtabBar { flex-wrap: nowrap !important; overflow-x: auto; gap: 0 !important; }
  #dashSubtabBar .dash-subtab-btn {
    flex: 1 0 auto; min-width: 72px; flex-direction: column; gap: 3px;
    border: none !important; border-radius: 0; background: transparent !important;
    color: rgba(255,255,255,.7) !important; font-size: 0.6rem; padding: 9px 6px;
    box-shadow: none !important;
  }
  #dashSubtabBar .dash-subtab-btn.btn-dark { color: var(--pw-yellow) !important; }
}

[hidden] { display: none !important; }

/* Mobile: cegah konten melebar keluar layar */
@media (max-width: 768px) {
  .main-content { padding: 16px 12px 60px; }
  .step-banner { flex-wrap: wrap; gap: 10px; }
  .card { min-width: 0; padding: 16px; }
  .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
  .main-content [style*="min-width"] { min-width: 0 !important; }
  .main-content select.form-control, .main-content input.form-control { max-width: 100%; }
  .main-content [style*="width:280px"], .main-content [style*="width:180px"] { width: 100% !important; }
  img { max-width: 100%; }
}

/* Tab langkah order di header (scroll spy) */
.step-tabs { display: none; gap: 6px; overflow-x: auto; }
body.on-katalog .step-tabs { display: flex; }
.step-tab {
  border: 1.5px solid var(--border-color); background: #fff; color: var(--text-muted);
  border-radius: var(--radius-pill); padding: 6px 12px; font: 700 0.78rem var(--font-sans);
  white-space: nowrap; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all .2s;
}
.step-tab b {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-denim); color: var(--text-main); font-size: 0.7rem;
}
.step-tab.active { background: var(--accent-orange); border-color: var(--accent-orange); color: #fff; }
.step-tab.active b { background: #fff; color: var(--accent-orange); }
#stepDataPelanggan, #stepUkuranJumlah, #stepBayarDP { scroll-margin-top: 150px; }
@media (max-width: 768px) {
  .login-desktop { display: none; } /* login lewat menu Dashboard di bawah */
  .step-tabs { width: 100%; justify-content: space-between; }
  .step-tab { flex: 1; justify-content: center; padding: 6px 4px; font-size: 0.7rem; gap: 4px; }
}

/* Mobile: perbaikan teks dempet & halaman melebar */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .showcase-hero > *, .flow-stepper > *, .story-strip > *, .feature-strip > * { min-width: 0; }
  .showcase-hero { padding: 20px 16px; gap: 18px; }
  .showcase-left h1 { font-size: 1.7rem; line-height: 1.15; }
  .showcase-left .series-tag { font-size: 0.8rem; letter-spacing: 0.12em; }
  .story-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .story-card { padding: 8px; }
  .story-card h4 { font-size: 0.8rem; }
  .story-card p { font-size: 0.72rem; }
  .flow-step-card { padding: 12px; }
  .pill-btn { font-size: 0.72rem; padding: 7px 11px; }
  .main-content p, .main-content span, .main-content label { overflow-wrap: anywhere; }
}

/* Pilihan model: kartu bergambar, satu baris, bisa digeser */
.model-scroller {
  width: 100%;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.model-card {
  flex: 0 0 132px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  transition: border-color .18s, transform .18s;
}
.model-card:hover { transform: translateY(-2px); }
.model-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-sm); margin-bottom: 6px; background: var(--surface-alt);
}
.model-card .model-name { font-weight: 800; font-size: 0.8rem; color: var(--text-main); line-height: 1.2; }
.model-card .model-price { font-size: 0.74rem; font-weight: 700; color: var(--accent-orange); }
.model-card.active { border-color: var(--accent-orange); box-shadow: 0 0 0 3px rgba(214, 0, 111, 0.15); }
.model-card-custom { border-style: dashed; }
.model-custom-icon {
  width: 100%; aspect-ratio: 1; display: grid; place-items: center; font-size: 2rem;
  background: var(--surface-alt); border-radius: var(--radius-sm); margin-bottom: 6px;
}
@media (max-width: 768px) {
  .model-card { flex-basis: 112px; }
}
