/* ==============================
   ORDER PAGE — Neo-Brutalism
   ============================== */

.order {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.order__head {
  max-width: 700px;
  margin-bottom: 28px;
}
.order__head h1 {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  margin: 8px 0 10px;
  line-height: 1.08;
}
.order__head p { font-size: 14.5px; max-width: 560px; }

.alert {
  border: 2.5px solid #0a0a0a;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 3px 3px 0 0 #0a0a0a;
}
.alert--err { background: #ffd0e0; }
.alert--ok { background: #c8f5d4; }

.order__form { display: grid; gap: 20px; }

.step-box {
  border: 2.5px solid #0a0a0a;
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 0 #0a0a0a;
  padding: 22px;
}
.step-box__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-box__num {
  display: inline-block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  background: #0a0a0a;
  color: #fff;
  padding: 3px 9px;
  border-radius: 5px;
  transform: rotate(-2deg);
}
.step-box__head h2 { font-family: 'Archivo Black', sans-serif; font-size: 20px; margin: 0; }

/* Category tabs */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cat-tab {
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border: 2px solid #0a0a0a;
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 2px 2px 0 0 #0a0a0a;
  transition: transform 100ms, box-shadow 100ms;
}
.cat-tab:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 0 #0a0a0a; }
.cat-tab.is-active { background: #6fb6ff; }

/* Service cards */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.svc-card {
  position: relative;
  cursor: pointer;
  display: block;
}
.svc-card input { position: absolute; opacity: 0; pointer-events: none; }
.svc-card__inner {
  border: 2.5px solid #0a0a0a;
  border-radius: 6px;
  background: #fff;
  padding: 14px;
  box-shadow: 3px 3px 0 0 #0a0a0a;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 100ms, box-shadow 100ms, background 100ms;
}
.svc-card:hover .svc-card__inner {
  transform: translate(-1px,-1px);
  box-shadow: 5px 5px 0 0 #0a0a0a;
}
.svc-card input:checked + .svc-card__inner {
  background: #b9dcff;
  box-shadow: 5px 5px 0 0 #0a0a0a;
}
.svc-card input:focus-visible + .svc-card__inner {
  outline: 2px dashed #6fb6ff; outline-offset: 3px;
}
.svc-card__top { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.svc-card h3 { font-family: 'Archivo Black', sans-serif; font-size: 15px; margin: 0 0 5px; line-height: 1.2; }
.svc-card__desc { font-size: 12.5px; margin: 0 0 10px; color: #333; line-height: 1.4; }
.svc-card__bot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price {
  font-family: 'Archivo Black', sans-serif;
  font-size: 17px;
}
.check-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 2px solid #0a0a0a;
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
  color: transparent;
  font-size: 12px;
}
.svc-card input:checked + .svc-card__inner .check-mark {
  background: #0a0a0a;
  color: #fff;
}

.chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #ffe66d;
  border: 1.5px solid #0a0a0a;
  padding: 1px 7px;
  border-radius: 999px;
}
.chip--followers { background: #b9dcff; }
.chip--likes { background: #ffd0e0; }
.chip--review { background: #ffe66d; }

/* === Platform grid (Step 1) === */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.pf-card {
  --pf-color: #b9dcff;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border: 2.5px solid #0a0a0a;
  border-radius: 6px;
  background: #fff;
  box-shadow: 3px 3px 0 0 #0a0a0a;
  cursor: pointer;
  transition: transform 100ms, box-shadow 100ms, background 100ms;
}
.pf-card:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 #0a0a0a; }
.pf-card.is-selected { background: var(--pf-color); box-shadow: 4px 4px 0 0 #0a0a0a; }
.pf-card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.pf-card__icon img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}
.pf-card__name { font-family: 'Archivo Black', sans-serif; font-size: 13px; }

/* === Service pills (Step 2) === */
.svc-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.svc-pill {
  font: inherit;
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  border: 2.5px solid #0a0a0a;
  border-radius: 6px;
  background: #fff;
  box-shadow: 2px 2px 0 0 #0a0a0a;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 100ms, box-shadow 100ms, background 100ms;
}
.svc-pill:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 0 #0a0a0a; }
.svc-pill.is-selected { background: #6fb6ff; }
.svc-desc {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: #444;
  min-height: 18px;
}

/* === Tier grid (Step 3) === */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.tier-card {
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border: 2.5px solid #0a0a0a;
  border-radius: 6px;
  background: #fff;
  box-shadow: 3px 3px 0 0 #0a0a0a;
  cursor: pointer;
  text-align: left;
  transition: transform 100ms, box-shadow 100ms, background 100ms;
}
.tier-card:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 #0a0a0a; }
.tier-card.is-selected { background: #ffe66d; box-shadow: 4px 4px 0 0 #0a0a0a; }
.tier-card__qty { font-family: 'Archivo Black', sans-serif; font-size: 20px; line-height: 1; }
.tier-card__price { font-size: 13px; font-weight: 600; color: #555; }
.tier-card.is-selected .tier-card__price { color: #0a0a0a; }

/* Form fields */
.field { display: flex; flex-direction: column; margin-bottom: 12px; }
.field label {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12.5px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  padding: 9px 12px;
  border: 2px solid #0a0a0a;
  border-radius: 5px;
  background: #fff;
  box-shadow: 2px 2px 0 0 #0a0a0a;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  background: #fff8d9;
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 0 #0a0a0a;
}
.field small { font-size: 12px; color: #555; margin-top: 4px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Summary */
.step-box--summary { background: #ffe66d; }
.summary { margin-bottom: 16px; }
.summary__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1.5px dashed #0a0a0a;
}
.summary__line:last-child { border-bottom: 0; }
.summary__line strong { font-family: 'Archivo Black', sans-serif; }
.summary__line--total { font-size: 15px; padding-top: 12px; }
.summary__line--total strong { font-size: 21px; }

.btn--block { width: 100%; }
.order__note { font-size: 12px; text-align: center; margin: 10px 0 0; color: #444; }

button[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Success page */
.success {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 24px 60px;
}
.success__box {
  border: 2.5px solid #0a0a0a;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: 6px 6px 0 0 #0a0a0a;
}
.success__icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: #c8f5d4;
  border: 2.5px solid #0a0a0a;
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 3px 3px 0 0 #0a0a0a;
}
.success__icon.is-pending { background: #ffe66d; }
.success__icon.is-failed { background: #ffd0e0; }
.success h1 { font-family: 'Archivo Black', sans-serif; font-size: 26px; margin: 0 0 10px; }
.success p { font-size: 14px; }

.info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin: 18px 0;
}
@media (max-width: 540px) { .info-grid { grid-template-columns: 1fr; } }

.info {
  border: 2px solid #0a0a0a;
  border-radius: 5px;
  padding: 10px 12px;
  background: #fafafa;
}
.info span { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #666; }
.info strong { font-family: 'Archivo Black', sans-serif; font-size: 14px; word-break: break-word; }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid #0a0a0a;
  border-radius: 999px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  box-shadow: 2px 2px 0 0 #0a0a0a;
}

.btn--wa {
  background: #25d366;
  color: #0a0a0a;
  margin-top: 14px;
}
.btn--wa:hover { background: #1ebd5b; }

/* Invoice search results list */
.invoice-list { display: flex; flex-direction: column; gap: 10px; }
.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 2px solid #0a0a0a;
  border-radius: 6px;
  background: #fff;
  box-shadow: 2px 2px 0 0 #0a0a0a;
  transition: transform 100ms, box-shadow 100ms, background 100ms;
  text-decoration: none;
  color: inherit;
}
.invoice-row:hover {
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 0 #0a0a0a;
  background: #fffceb;
}
.invoice-row__left { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; text-align: left; }
.invoice-row__left strong { font-family: 'Archivo Black', sans-serif; font-size: 14px; }
.invoice-row__left span { font-size: 13px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invoice-row__left small { font-size: 11.5px; color: #777; }
.invoice-row__right { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.invoice-row__right strong { font-family: 'Archivo Black', sans-serif; font-size: 14px; }
.invoice-row__right .status-badge { font-size: 11px; padding: 2px 8px; box-shadow: 1.5px 1.5px 0 0 #0a0a0a; }

/* Fix text warna berubah di mobile */
.pf-card,
.pf-card *,
.svc-pill,
.svc-pill *,
.tier-card,
.tier-card * {
  color: #0a0a0a !important;
}

.pf-card.is-selected,
.pf-card.is-selected *,
.svc-pill.is-selected,
.svc-pill.is-selected *,
.tier-card.is-selected,
.tier-card.is-selected * {
  color: #0a0a0a !important;
}

/* Hilangkan warna highlight biru bawaan HP saat tap */
.pf-card,
.svc-pill,
.tier-card {
  -webkit-tap-highlight-color: transparent;
}