/* UI kit bersama. Layar baru menyusun komponen ini; gaya khusus layar ada di assets/css/screens/. */

/* ---------- Tipografi ---------- */
.eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.title-xl {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.title-lg {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.title {
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.3;
}

.subtitle {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.text-muted {
  color: var(--muted);
}

.text-gold {
  color: var(--gold);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-sm {
  font-size: var(--fs-sm);
}

.text-xs {
  font-size: var(--fs-xs);
}

.text-strong {
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ---------- Tata letak ---------- */
.stack-y {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stack-y--sm {
  gap: var(--space-2);
}

.stack-y--lg {
  gap: var(--space-6);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.row--between {
  justify-content: space-between;
}

.row--top {
  align-items: flex-start;
}

.row--wrap {
  flex-wrap: wrap;
}

.grow {
  flex: 1;
  min-width: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.section + .section {
  margin-top: var(--space-6);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.section__title {
  font-size: var(--fs-lg);
  font-weight: 800;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--hairline);
}

/* Bagian yang melebar melewati gutter layar (carousel, hero). */
.bleed {
  margin-inline: calc(var(--gutter) * -1);
}

.hscroll {
  display: flex;
  gap: var(--space-3);
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--space-1) var(--gutter) var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.hscroll > * {
  flex: none;
  scroll-snap-align: start;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  transition:
    transform var(--duration-fast) var(--ease),
    opacity var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease);
}

.btn:active:not(:disabled) {
  transform: scale(0.975);
}

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

.btn--block {
  width: 100%;
}

.btn--gold {
  color: var(--on-gold);
  background: var(--gold-gradient);
  box-shadow: 0 10px 24px rgb(169 131 47 / 28%);
}

.btn--onyx {
  color: var(--on-onyx);
  background: #17140f;
}

:root[data-theme="dark"] .btn--onyx {
  color: #17140f;
  background: var(--ink);
}

.btn--outline {
  border-color: var(--gold-border);
  color: var(--gold-strong);
  background: var(--surface);
}

.btn--ghost {
  color: var(--gold-strong);
  background: var(--gold-soft);
}

.btn--danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.btn--whatsapp {
  color: #fff;
  background: #1faa59;
}

.btn--sm {
  min-height: 38px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.btn[data-loading] {
  color: transparent;
  pointer-events: none;
}

.btn[data-loading]::after {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgb(27 21 8 / 25%);
  border-top-color: var(--on-gold);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  content: "";
}

.btn[data-loading] {
  position: relative;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.link {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--gold);
}

.link:active {
  opacity: 0.6;
}

/* ---------- Kartu ---------- */
.card {
  display: block;
  width: 100%;
  padding: var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  text-align: left;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--duration-fast) var(--ease),
    background-color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

button.card:active,
a.card:active {
  transform: scale(0.985);
}

.card--flat {
  box-shadow: none;
}

.card--sunken {
  border-color: transparent;
  background: var(--surface-sunken);
  box-shadow: none;
}

.card--gold {
  border-color: var(--gold-border);
  background: var(--gold-soft);
  box-shadow: none;
}

.card--hero {
  position: relative;
  overflow: hidden;
  border-color: rgb(209 173 79 / 22%);
  color: var(--on-onyx);
  background: var(--hero-gradient);
  box-shadow: var(--shadow-float);
}

.card--hero .text-muted,
.card--hero .subtitle {
  color: var(--on-onyx-muted);
}

.card--hero .eyebrow {
  color: #e2c987;
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

/* ---------- Daftar berkelompok gaya iOS ---------- */
.list {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.list__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  transition: background-color var(--duration-fast) var(--ease);
}

.list__item + .list__item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: var(--space-4);
  height: 1px;
  background: var(--hairline);
  content: "";
}

.list__item--inset + .list__item--inset::before,
.list__item:has(.list__icon) + .list__item:has(.list__icon)::before {
  left: calc(var(--space-4) + 36px + var(--space-3));
}

button.list__item:active,
a.list__item:active {
  background: var(--hairline);
}

.list__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--gold);
  background: var(--gold-soft);
}

.list__icon--success {
  color: var(--success);
  background: var(--success-soft);
}

.list__icon--warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.list__icon--danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.list__icon--info {
  color: var(--info);
  background: var(--info-soft);
}

.list__icon--neutral {
  color: var(--ink-2);
  background: var(--surface-sunken);
}

.list__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.list__title {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.list__sub {
  font-size: var(--fs-sm);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.list__value {
  flex: none;
  max-width: 48%;
  font-size: var(--fs-sm);
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}

.list__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--faint);
}

.list-label {
  margin: 0 var(--space-1) var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.list-note {
  margin: var(--space-2) var(--space-1) 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ---------- Pasangan label–nilai ---------- */
.kv {
  display: flex;
  flex-direction: column;
}

.kv__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
}

.kv__row + .kv__row {
  border-top: 1px solid var(--hairline);
}

.kv__label {
  flex: none;
  max-width: 45%;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.kv__value {
  min-width: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.kv__row--total .kv__label,
.kv__row--total .kv__value {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--ink);
}

/* ---------- Form ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.field__label {
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.field__required {
  color: var(--danger);
}

.field__hint {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.field__error {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--danger);
}

.input,
.select,
.textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0 var(--space-4);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-lg);
  font-weight: 600;
  background: var(--surface);
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    background-color var(--duration) var(--ease);
  appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  font-weight: 500;
  color: var(--faint);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--gold);
  outline: 0;
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.input[readonly],
.input:disabled {
  color: var(--ink-2);
  background: var(--surface-sunken);
}

.textarea {
  min-height: 112px;
  padding-block: var(--space-3);
  line-height: 1.5;
  resize: none;
}

/* Select native dibuka sebagai picker iOS oleh ui/select.js; panah digambar lewat background. */
.select {
  padding-right: 44px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a9832f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
}

.select[data-empty] {
  font-weight: 500;
  color: var(--faint);
}

.input-group {
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}

.input-group:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.input-group__prefix {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  padding-left: var(--space-4);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--gold);
}

.input-group .input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: var(--radius-pill);
  background: var(--faint);
  transition: background-color var(--duration) var(--ease-ios);
}

.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 22%);
  transition: transform var(--duration) var(--ease-ios);
  content: "";
}

.switch[aria-checked="true"] {
  background: var(--success);
}

.switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
}

.check__box {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 8px;
  color: transparent;
  background: var(--surface);
  transition:
    background-color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
}

.check__box--round {
  border-radius: 50%;
}

.check[aria-checked="true"] .check__box,
.check[aria-pressed="true"] .check__box {
  border-color: transparent;
  color: var(--on-gold);
  background: var(--gold-gradient);
}

/* Kartu pilihan (radio) — satu opsi aktif ditandai bingkai emas. */
.option-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4);
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-lg);
  text-align: left;
  background: var(--surface);
  transition:
    border-color var(--duration-fast) var(--ease),
    background-color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}

.option-card:active {
  transform: scale(0.985);
}

.option-card[aria-checked="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.option-card:disabled {
  opacity: 0.5;
}

.segmented {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}

.segmented__item {
  min-height: 36px;
  padding: 0 var(--space-2);
  overflow: hidden;
  border-radius: 11px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    background-color var(--duration) var(--ease-ios),
    color var(--duration) var(--ease-ios),
    box-shadow var(--duration) var(--ease-ios);
}

.segmented__item[aria-selected="true"],
.segmented__item[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.chips {
  display: flex;
  gap: var(--space-2);
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips--wrap {
  flex-wrap: wrap;
  margin-inline: 0;
  padding-inline: 0;
  overflow: visible;
}

.chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  min-height: 38px;
  padding: 0 var(--space-4);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  background: var(--surface);
  transition:
    background-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
}

.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
  border-color: transparent;
  color: var(--on-onyx);
  background: #17140f;
}

:root[data-theme="dark"] .chip[aria-pressed="true"],
:root[data-theme="dark"] .chip[aria-selected="true"] {
  color: var(--on-gold);
  background: var(--gold-gradient);
}

.stepper {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-1);
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
}

.stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 1px 4px rgb(0 0 0 / 10%);
}

.stepper__btn:disabled {
  opacity: 0.35;
}

.stepper__value {
  min-width: 28px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--surface-sunken);
}

.searchbar__input {
  flex: 1;
  min-width: 0;
  border: 0;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  outline: 0;
}

.searchbar__input::placeholder {
  color: var(--muted);
}

/* ---------- Status ---------- */
.badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--surface-sunken);
}

.badge--gold {
  color: var(--gold-strong);
  background: var(--gold-soft);
}

.badge--success {
  color: var(--success);
  background: var(--success-soft);
}

.badge--warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.badge--danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.badge--info {
  color: var(--info);
  background: var(--info-soft);
}

.badge--onyx {
  color: var(--on-onyx);
  background: rgb(23 20 15 / 78%);
  backdrop-filter: blur(8px);
}

.progress {
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
}

.card--hero .progress {
  background: rgb(255 255 255 / 14%);
}

.progress__bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-gradient);
  transition: width 600ms var(--ease);
}

.notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  background: var(--gold-soft);
}

.notice .icon {
  margin-top: 1px;
  color: var(--gold);
}

.notice--info {
  border-color: transparent;
  background: var(--info-soft);
}

.notice--info .icon {
  color: var(--info);
}

.notice--success {
  border-color: transparent;
  background: var(--success-soft);
}

.notice--success .icon {
  color: var(--success);
}

.notice--warning {
  border-color: transparent;
  background: var(--warning-soft);
}

.notice--warning .icon {
  color: var(--warning);
}

.notice--danger {
  border-color: transparent;
  background: var(--danger-soft);
}

.notice--danger .icon {
  color: var(--danger);
}

/* Linimasa vertikal: data-state = done | current | todo. */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline__item {
  position: relative;
  display: flex;
  gap: var(--space-3);
  width: 100%;
  padding-bottom: var(--space-5);
  text-align: left;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 13px;
  width: 2px;
  border-radius: 1px;
  background: var(--hairline-strong);
  content: "";
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__item[data-state="done"]::before {
  background: var(--gold);
}

.timeline__dot {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--hairline-strong);
  border-radius: 50%;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--muted);
  background: var(--surface);
}

.timeline__item[data-state="done"] .timeline__dot {
  border-color: transparent;
  color: var(--on-gold);
  background: var(--gold-gradient);
}

.timeline__item[data-state="current"] .timeline__dot {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft);
}

.timeline__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 3px;
}

.avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--on-gold);
  background: var(--gold-gradient);
}

.avatar--lg {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  font-size: var(--fs-2xl);
}

.avatar--sm {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  font-size: var(--fs-xs);
}

.avatar--neutral {
  color: var(--ink-2);
  background: var(--surface-sunken);
}

.avatar-stack {
  display: flex;
}

.avatar-stack .avatar + .avatar {
  margin-left: -10px;
  box-shadow: 0 0 0 2px var(--surface);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-5);
  text-align: center;
}

.empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 28px;
  color: var(--gold);
  background: var(--gold-soft);
}

.amount {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.amount__currency {
  margin-right: 6px;
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.75;
}

/* Ubin menu cepat. */
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-3) var(--space-1);
  border-radius: var(--radius-lg);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
  transition: transform var(--duration-fast) var(--ease);
}

.tile:active {
  transform: scale(0.94);
}

.tile__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  color: var(--gold);
  background: var(--gold-soft);
}

.tile__dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--danger);
}

/* Foto ilustratif: gradien + ornamen geometris, dipakai sampai aset foto resmi tersedia. data-tone memilih nuansa. */
.photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--on-onyx);
  background:
    radial-gradient(90% 70% at 78% 12%, rgb(236 217 163 / 42%) 0%, transparent 60%),
    linear-gradient(160deg, #6b5426 0%, #2c2312 58%, #15110a 100%);
  isolation: isolate;
}

.photo::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' fill='none' stroke='%23ecd9a3' stroke-opacity='.16'%3E%3Cpath d='M28 2 36 20 54 28 36 36 28 54 20 36 2 28 20 20Z'/%3E%3Ccircle cx='28' cy='28' r='9'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  mask-image: linear-gradient(200deg, #000 0%, transparent 72%);
  content: "";
}

.photo::after {
  position: absolute;
  inset: 40% 0 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, rgb(12 9 4 / 72%) 100%);
  content: "";
}

.photo[data-tone="madinah"] {
  background:
    radial-gradient(90% 70% at 22% 10%, rgb(190 226 205 / 40%) 0%, transparent 60%),
    linear-gradient(160deg, #2f5a48 0%, #16302a 58%, #0c1614 100%);
}

.photo[data-tone="sky"] {
  background:
    radial-gradient(90% 70% at 78% 12%, rgb(205 226 240 / 45%) 0%, transparent 60%),
    linear-gradient(160deg, #3d6480 0%, #1c3142 58%, #0d161d 100%);
}

.photo[data-tone="terracotta"] {
  background:
    radial-gradient(90% 70% at 78% 12%, rgb(246 214 190 / 45%) 0%, transparent 60%),
    linear-gradient(160deg, #94553a 0%, #45261a 58%, #1c100b 100%);
}

.photo[data-tone="plum"] {
  background:
    radial-gradient(90% 70% at 22% 10%, rgb(226 208 240 / 40%) 0%, transparent 60%),
    linear-gradient(160deg, #5d4776 0%, #2a2038 58%, #120e18 100%);
}

.photo[data-tone="ivory"] {
  color: var(--ink);
  background:
    radial-gradient(90% 80% at 78% 10%, rgb(209 173 79 / 34%) 0%, transparent 62%),
    linear-gradient(160deg, #fbf5e6 0%, #ecdfc0 100%);
}

.photo[data-tone="ivory"]::after {
  display: none;
}

.photo__glyph {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 44%;
  height: auto;
  max-height: 70%;
  color: #ecd9a3;
  opacity: 0.5;
  transform: translate(-50%, -54%);
  stroke-width: 0.9;
}

.photo[data-tone="ivory"] .photo__glyph {
  color: var(--gold-logo);
  opacity: 0.85;
}

.skeleton {
  border-radius: var(--radius-sm);
  background: var(--skeleton);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

/* Kartu keberangkatan (JI.views.tripCard). */
.trip-card {
  display: flex;
  flex-direction: column;
}

.trip-card--compact {
  width: 268px;
}

.trip-card__photo {
  height: 148px;
  padding: var(--space-3);
  border-radius: 0;
}

.trip-card--compact .trip-card__photo {
  height: 128px;
}

.trip-card__badge {
  margin-bottom: auto;
}

.trip-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4);
}

.trip-card__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.3;
}

.trip-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.trip-card__meta .icon {
  color: var(--gold);
}

.trip-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
}

.trip-card__price {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--gold-strong);
}
