/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 1rem;
  color: #212529;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================================
   VARIABEL (opsional, memudahkan kustomisasi)
   ============================================================ */
:root {
  --grid-gutter: 1.5rem;      /* jarak antar kolom */
  --container-padding: 1rem;  /* padding kiri-kanan container */
  --container-max-sm: 540px;
  --container-max-md: 720px;
  --container-max-lg: 960px;
  --container-max-xl: 1140px;
  --container-max-xxl: 1320px;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container,
.container-fluid {
  width: 100%;
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
  margin-right: auto;
  margin-left: auto;
}

/* Container dengan max-width bertingkat sesuai breakpoint */
@media (min-width: 576px) {
  .container { max-width: var(--container-max-sm); }
}
@media (min-width: 768px) {
  .container { max-width: var(--container-max-md); }
}
@media (min-width: 992px) {
  .container { max-width: var(--container-max-lg); }
}
@media (min-width: 1200px) {
  .container { max-width: var(--container-max-xl); }
}
@media (min-width: 1400px) {
  .container { max-width: var(--container-max-xxl); }
}

/* container-fluid: selalu full width, hanya dibatasi padding */
.container-fluid {
  max-width: 100%;
}

/* ============================================================
   ROW
   ============================================================ */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--grid-gutter) / -2);
  margin-left: calc(var(--grid-gutter) / -2);
}

/* Varian row tanpa gutter */
.row.no-gutters {
  margin-right: 0;
  margin-left: 0;
}
.row.no-gutters > [class*="col"] {
  padding-right: 0;
  padding-left: 0;
}

/* ============================================================
   COL (base: semua kolom)
   ============================================================ */
[class*="col"] {
  position: relative;
  width: 100%;
  padding-right: calc(var(--grid-gutter) / 2);
  padding-left: calc(var(--grid-gutter) / 2);
  flex: 0 0 auto;
}

/* ============================================================
   COL — tanpa breakpoint (xs / default)
   col, col-auto, col-1 s/d col-12
   ============================================================ */
.col        { flex: 1 0 0%; max-width: 100%; }
.col-auto   { flex: 0 0 auto; width: auto; }

.col-1  { flex: 0 0 auto; width: 8.333333%;  max-width: 8.333333%;  }
.col-2  { flex: 0 0 auto; width: 16.666667%; max-width: 16.666667%; }
.col-3  { flex: 0 0 auto; width: 25%;        max-width: 25%;        }
.col-4  { flex: 0 0 auto; width: 33.333333%; max-width: 33.333333%; }
.col-5  { flex: 0 0 auto; width: 41.666667%; max-width: 41.666667%; }
.col-6  { flex: 0 0 auto; width: 50%;        max-width: 50%;        }
.col-7  { flex: 0 0 auto; width: 58.333333%; max-width: 58.333333%; }
.col-8  { flex: 0 0 auto; width: 66.666667%; max-width: 66.666667%; }
.col-9  { flex: 0 0 auto; width: 75%;        max-width: 75%;        }
.col-10 { flex: 0 0 auto; width: 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%;       max-width: 100%;       }

/* ============================================================
   BREAKPOINT RESPONSIF (sm, md, lg, xl, xxl)
   ============================================================ */
@media (min-width: 576px) {
  .col-sm      { flex: 1 0 0%; max-width: 100%; }
  .col-sm-auto { flex: 0 0 auto; width: auto; }

  .col-sm-1  { flex: 0 0 auto; width: 8.333333%;  max-width: 8.333333%;  }
  .col-sm-2  { flex: 0 0 auto; width: 16.666667%; max-width: 16.666667%; }
  .col-sm-3  { flex: 0 0 auto; width: 25%;        max-width: 25%;        }
  .col-sm-4  { flex: 0 0 auto; width: 33.333333%; max-width: 33.333333%; }
  .col-sm-5  { flex: 0 0 auto; width: 41.666667%; max-width: 41.666667%; }
  .col-sm-6  { flex: 0 0 auto; width: 50%;        max-width: 50%;        }
  .col-sm-7  { flex: 0 0 auto; width: 58.333333%; max-width: 58.333333%; }
  .col-sm-8  { flex: 0 0 auto; width: 66.666667%; max-width: 66.666667%; }
  .col-sm-9  { flex: 0 0 auto; width: 75%;        max-width: 75%;        }
  .col-sm-10 { flex: 0 0 auto; width: 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%;       max-width: 100%;       }
}

@media (min-width: 768px) {
  .col-md      { flex: 1 0 0%; max-width: 100%; }
  .col-md-auto { flex: 0 0 auto; width: auto; }

  .col-md-1  { flex: 0 0 auto; width: 8.333333%;  max-width: 8.333333%;  }
  .col-md-2  { flex: 0 0 auto; width: 16.666667%; max-width: 16.666667%; }
  .col-md-3  { flex: 0 0 auto; width: 25%;        max-width: 25%;        }
  .col-md-4  { flex: 0 0 auto; width: 33.333333%; max-width: 33.333333%; }
  .col-md-5  { flex: 0 0 auto; width: 41.666667%; max-width: 41.666667%; }
  .col-md-6  { flex: 0 0 auto; width: 50%;        max-width: 50%;        }
  .col-md-7  { flex: 0 0 auto; width: 58.333333%; max-width: 58.333333%; }
  .col-md-8  { flex: 0 0 auto; width: 66.666667%; max-width: 66.666667%; }
  .col-md-9  { flex: 0 0 auto; width: 75%;        max-width: 75%;        }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%;       max-width: 100%;       }
}

@media (min-width: 992px) {
  .col-lg      { flex: 1 0 0%; max-width: 100%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; }

  .col-lg-1  { flex: 0 0 auto; width: 8.333333%;  max-width: 8.333333%;  }
  .col-lg-2  { flex: 0 0 auto; width: 16.666667%; max-width: 16.666667%; }
  .col-lg-3  { flex: 0 0 auto; width: 25%;        max-width: 25%;        }
  .col-lg-4  { flex: 0 0 auto; width: 33.333333%; max-width: 33.333333%; }
  .col-lg-5  { flex: 0 0 auto; width: 41.666667%; max-width: 41.666667%; }
  .col-lg-6  { flex: 0 0 auto; width: 50%;        max-width: 50%;        }
  .col-lg-7  { flex: 0 0 auto; width: 58.333333%; max-width: 58.333333%; }
  .col-lg-8  { flex: 0 0 auto; width: 66.666667%; max-width: 66.666667%; }
  .col-lg-9  { flex: 0 0 auto; width: 75%;        max-width: 75%;        }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; max-width: 83.333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.666667%; max-width: 91.666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%;       max-width: 100%;       }
}

@media (min-width: 1200px) {
  .col-xl      { flex: 1 0 0%; max-width: 100%; }
  .col-xl-auto { flex: 0 0 auto; width: auto; }

  .col-xl-1  { flex: 0 0 auto; width: 8.333333%;  max-width: 8.333333%;  }
  .col-xl-2  { flex: 0 0 auto; width: 16.666667%; max-width: 16.666667%; }
  .col-xl-3  { flex: 0 0 auto; width: 25%;        max-width: 25%;        }
  .col-xl-4  { flex: 0 0 auto; width: 33.333333%; max-width: 33.333333%; }
  .col-xl-5  { flex: 0 0 auto; width: 41.666667%; max-width: 41.666667%; }
  .col-xl-6  { flex: 0 0 auto; width: 50%;        max-width: 50%;        }
  .col-xl-7  { flex: 0 0 auto; width: 58.333333%; max-width: 58.333333%; }
  .col-xl-8  { flex: 0 0 auto; width: 66.666667%; max-width: 66.666667%; }
  .col-xl-9  { flex: 0 0 auto; width: 75%;        max-width: 75%;        }
  .col-xl-10 { flex: 0 0 auto; width: 83.333333%; max-width: 83.333333%; }
  .col-xl-11 { flex: 0 0 auto; width: 91.666667%; max-width: 91.666667%; }
  .col-xl-12 { flex: 0 0 auto; width: 100%;       max-width: 100%;       }
}

@media (min-width: 1400px) {
  .col-xxl      { flex: 1 0 0%; max-width: 100%; }
  .col-xxl-auto { flex: 0 0 auto; width: auto; }

  .col-xxl-1  { flex: 0 0 auto; width: 8.333333%;  max-width: 8.333333%;  }
  .col-xxl-2  { flex: 0 0 auto; width: 16.666667%; max-width: 16.666667%; }
  .col-xxl-3  { flex: 0 0 auto; width: 25%;        max-width: 25%;        }
  .col-xxl-4  { flex: 0 0 auto; width: 33.333333%; max-width: 33.333333%; }
  .col-xxl-5  { flex: 0 0 auto; width: 41.666667%; max-width: 41.666667%; }
  .col-xxl-6  { flex: 0 0 auto; width: 50%;        max-width: 50%;        }
  .col-xxl-7  { flex: 0 0 auto; width: 58.333333%; max-width: 58.333333%; }
  .col-xxl-8  { flex: 0 0 auto; width: 66.666667%; max-width: 66.666667%; }
  .col-xxl-9  { flex: 0 0 auto; width: 75%;        max-width: 75%;        }
  .col-xxl-10 { flex: 0 0 auto; width: 83.333333%; max-width: 83.333333%; }
  .col-xxl-11 { flex: 0 0 auto; width: 91.666667%; max-width: 91.666667%; }
  .col-xxl-12 { flex: 0 0 auto; width: 100%;       max-width: 100%;       }
}
/* ============================================================
   SPACING — VARIABEL SKALA
   ============================================================ */
:root {
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px  */
  --space-2: 0.5rem;    /* 8px  */
  --space-3: 1rem;      /* 16px */
  --space-4: 1.5rem;    /* 24px */
  --space-5: 3rem;      /* 48px */
}

/* ============================================================
   PADDING — semua sisi
   p-0 .. p-5
   ============================================================ */
.p-0 { padding: var(--space-0) !important; }
.p-1 { padding: var(--space-1) !important; }
.p-2 { padding: var(--space-2) !important; }
.p-3 { padding: var(--space-3) !important; }
.p-4 { padding: var(--space-4) !important; }
.p-5 { padding: var(--space-5) !important; }

/* ============================================================
   PADDING — per sisi
   pt (top), pb (bottom), ps (start/left), pe (end/right)
   px (kiri+kanan), py (atas+bawah)
   ============================================================ */
/* Top */
.pt-0 { padding-top: var(--space-0) !important; }
.pt-1 { padding-top: var(--space-1) !important; }
.pt-2 { padding-top: var(--space-2) !important; }
.pt-3 { padding-top: var(--space-3) !important; }
.pt-4 { padding-top: var(--space-4) !important; }
.pt-5 { padding-top: var(--space-5) !important; }

/* Bottom */
.pb-0 { padding-bottom: var(--space-0) !important; }
.pb-1 { padding-bottom: var(--space-1) !important; }
.pb-2 { padding-bottom: var(--space-2) !important; }
.pb-3 { padding-bottom: var(--space-3) !important; }
.pb-4 { padding-bottom: var(--space-4) !important; }
.pb-5 { padding-bottom: var(--space-5) !important; }

/* Start (kiri) */
.ps-0 { padding-left: var(--space-0) !important; }
.ps-1 { padding-left: var(--space-1) !important; }
.ps-2 { padding-left: var(--space-2) !important; }
.ps-3 { padding-left: var(--space-3) !important; }
.ps-4 { padding-left: var(--space-4) !important; }
.ps-5 { padding-left: var(--space-5) !important; }

/* End (kanan) */
.pe-0 { padding-right: var(--space-0) !important; }
.pe-1 { padding-right: var(--space-1) !important; }
.pe-2 { padding-right: var(--space-2) !important; }
.pe-3 { padding-right: var(--space-3) !important; }
.pe-4 { padding-right: var(--space-4) !important; }
.pe-5 { padding-right: var(--space-5) !important; }

/* X (kiri + kanan) */
.px-0 { padding-left: var(--space-0) !important; padding-right: var(--space-0) !important; }
.px-1 { padding-left: var(--space-1) !important; padding-right: var(--space-1) !important; }
.px-2 { padding-left: var(--space-2) !important; padding-right: var(--space-2) !important; }
.px-3 { padding-left: var(--space-3) !important; padding-right: var(--space-3) !important; }
.px-4 { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
.px-5 { padding-left: var(--space-5) !important; padding-right: var(--space-5) !important; }

/* Y (atas + bawah) */
.py-0 { padding-top: var(--space-0) !important; padding-bottom: var(--space-0) !important; }
.py-1 { padding-top: var(--space-1) !important; padding-bottom: var(--space-1) !important; }
.py-2 { padding-top: var(--space-2) !important; padding-bottom: var(--space-2) !important; }
.py-3 { padding-top: var(--space-3) !important; padding-bottom: var(--space-3) !important; }
.py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
.py-5 { padding-top: var(--space-5) !important; padding-bottom: var(--space-5) !important; }

/* ============================================================
   MARGIN — semua sisi
   m-0 .. m-5 + m-auto
   ============================================================ */
.m-0 { margin: var(--space-0) !important; }
.m-1 { margin: var(--space-1) !important; }
.m-2 { margin: var(--space-2) !important; }
.m-3 { margin: var(--space-3) !important; }
.m-4 { margin: var(--space-4) !important; }
.m-5 { margin: var(--space-5) !important; }
.m-auto { margin: auto !important; }

/* ============================================================
   MARGIN — per sisi
   ============================================================ */
/* Top */
.mt-0 { margin-top: var(--space-0) !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }
.mt-auto { margin-top: auto !important; }

/* Bottom */
.mb-0 { margin-bottom: var(--space-0) !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }
.mb-auto { margin-bottom: auto !important; }

/* Start (kiri) */
.ms-0 { margin-left: var(--space-0) !important; }
.ms-1 { margin-left: var(--space-1) !important; }
.ms-2 { margin-left: var(--space-2) !important; }
.ms-3 { margin-left: var(--space-3) !important; }
.ms-4 { margin-left: var(--space-4) !important; }
.ms-5 { margin-left: var(--space-5) !important; }
.ms-auto { margin-left: auto !important; }

/* End (kanan) */
.me-0 { margin-right: var(--space-0) !important; }
.me-1 { margin-right: var(--space-1) !important; }
.me-2 { margin-right: var(--space-2) !important; }
.me-3 { margin-right: var(--space-3) !important; }
.me-4 { margin-right: var(--space-4) !important; }
.me-5 { margin-right: var(--space-5) !important; }
.me-auto { margin-right: auto !important; }

/* X (kiri + kanan) */
.mx-0 { margin-left: var(--space-0) !important; margin-right: var(--space-0) !important; }
.mx-1 { margin-left: var(--space-1) !important; margin-right: var(--space-1) !important; }
.mx-2 { margin-left: var(--space-2) !important; margin-right: var(--space-2) !important; }
.mx-3 { margin-left: var(--space-3) !important; margin-right: var(--space-3) !important; }
.mx-4 { margin-left: var(--space-4) !important; margin-right: var(--space-4) !important; }
.mx-5 { margin-left: var(--space-5) !important; margin-right: var(--space-5) !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* Y (atas + bawah) */
.my-0 { margin-top: var(--space-0) !important; margin-bottom: var(--space-0) !important; }
.my-1 { margin-top: var(--space-1) !important; margin-bottom: var(--space-1) !important; }
.my-2 { margin-top: var(--space-2) !important; margin-bottom: var(--space-2) !important; }
.my-3 { margin-top: var(--space-3) !important; margin-bottom: var(--space-3) !important; }
.my-4 { margin-top: var(--space-4) !important; margin-bottom: var(--space-4) !important; }
.my-5 { margin-top: var(--space-5) !important; margin-bottom: var(--space-5) !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }
/* ============================================================
   DISPLAY
   ============================================================ */
.d-none         { display: none !important; }
.d-inline       { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block        { display: block !important; }
.d-grid         { display: grid !important; }
.d-inline-grid  { display: inline-grid !important; }
.d-table        { display: table !important; }
.d-table-row    { display: table-row !important; }
.d-table-cell   { display: table-cell !important; }
.d-flex         { display: flex !important; }
.d-inline-flex  { display: inline-flex !important; }
.d-contents     { display: contents !important; }

/* ============================================================
   FLEX CONTAINER — DIRECTION
   ============================================================ */
.flex-row            { flex-direction: row !important; }
.flex-row-reverse    { flex-direction: row-reverse !important; }
.flex-column         { flex-direction: column !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }

/* ============================================================
   FLEX CONTAINER — WRAP
   ============================================================ */
.flex-wrap         { flex-wrap: wrap !important; }
.flex-wrap-reverse { flex-wrap: wrap-reverse !important; }
.flex-nowrap       { flex-wrap: nowrap !important; }

/* ============================================================
   FLEX CONTAINER — JUSTIFY CONTENT (sumbu utama)
   ============================================================ */
.justify-content-start   { justify-content: flex-start !important; }
.justify-content-end     { justify-content: flex-end !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around  { justify-content: space-around !important; }
.justify-content-evenly  { justify-content: space-evenly !important; }

/* ============================================================
   FLEX CONTAINER — ALIGN ITEMS (sumbu silang, semua item)
   ============================================================ */
.align-items-start    { align-items: flex-start !important; }
.align-items-end      { align-items: flex-end !important; }
.align-items-center   { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch  { align-items: stretch !important; }

/* ============================================================
   FLEX CONTAINER — ALIGN CONTENT (multi-line, sumbu silang)
   ============================================================ */
.align-content-start   { align-content: flex-start !important; }
.align-content-end     { align-content: flex-end !important; }
.align-content-center  { align-content: center !important; }
.align-content-between { align-content: space-between !important; }
.align-content-around  { align-content: space-around !important; }
.align-content-stretch { align-content: stretch !important; }

/* ============================================================
   FLEX ITEM — ALIGN SELF (sumbu silang, item tunggal)
   ============================================================ */
.align-self-auto     { align-self: auto !important; }
.align-self-start    { align-self: flex-start !important; }
.align-self-end      { align-self: flex-end !important; }
.align-self-center   { align-self: center !important; }
.align-self-baseline { align-self: baseline !important; }
.align-self-stretch  { align-self: stretch !important; }

/* ============================================================
   FLEX ITEM — GROW / SHRINK / BASIS
   ============================================================ */
.flex-grow-0   { flex-grow: 0 !important; }
.flex-grow-1   { flex-grow: 1 !important; }

.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-shrink-1 { flex-shrink: 1 !important; }

.flex-fill     { flex: 1 1 auto !important; }   /* isi sisa ruang */
.flex-none     { flex: none !important; }         /* tidak grow/shrink */

/* ============================================================
   FLEX ITEM — ORDER
   ============================================================ */
.order-0  { order: 0 !important; }
.order-1  { order: 1 !important; }
.order-2  { order: 2 !important; }
.order-3  { order: 3 !important; }
.order-4  { order: 4 !important; }
.order-5  { order: 5 !important; }
.order-first { order: -1 !important; }
.order-last  { order: 6 !important; }

/* ============================================================
   GAP (flex & grid)
   ============================================================ */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

.row-gap-0 { row-gap: 0 !important; }
.row-gap-1 { row-gap: 0.25rem !important; }
.row-gap-2 { row-gap: 0.5rem !important; }
.row-gap-3 { row-gap: 1rem !important; }
.row-gap-4 { row-gap: 1.5rem !important; }
.row-gap-5 { row-gap: 3rem !important; }

.column-gap-0 { column-gap: 0 !important; }
.column-gap-1 { column-gap: 0.25rem !important; }
.column-gap-2 { column-gap: 0.5rem !important; }
.column-gap-3 { column-gap: 1rem !important; }
.column-gap-4 { column-gap: 1.5rem !important; }
.column-gap-5 { column-gap: 3rem !important; }

/* ============================================================
   VERSI RESPONSIF — sm (≥576px)
   ============================================================ */
@media (min-width: 576px) {
  .d-sm-none         { display: none !important; }
  .d-sm-inline       { display: inline !important; }
  .d-sm-inline-block { display: inline-block !important; }
  .d-sm-block        { display: block !important; }
  .d-sm-grid         { display: grid !important; }
  .d-sm-inline-grid  { display: inline-grid !important; }
  .d-sm-table        { display: table !important; }
  .d-sm-table-row    { display: table-row !important; }
  .d-sm-table-cell   { display: table-cell !important; }
  .d-sm-flex         { display: flex !important; }
  .d-sm-inline-flex  { display: inline-flex !important; }

  .flex-sm-row            { flex-direction: row !important; }
  .flex-sm-row-reverse    { flex-direction: row-reverse !important; }
  .flex-sm-column         { flex-direction: column !important; }
  .flex-sm-column-reverse { flex-direction: column-reverse !important; }

  .flex-sm-wrap         { flex-wrap: wrap !important; }
  .flex-sm-wrap-reverse { flex-wrap: wrap-reverse !important; }
  .flex-sm-nowrap       { flex-wrap: nowrap !important; }

  .justify-content-sm-start   { justify-content: flex-start !important; }
  .justify-content-sm-end     { justify-content: flex-end !important; }
  .justify-content-sm-center  { justify-content: center !important; }
  .justify-content-sm-between { justify-content: space-between !important; }
  .justify-content-sm-around  { justify-content: space-around !important; }
  .justify-content-sm-evenly  { justify-content: space-evenly !important; }

  .align-items-sm-start    { align-items: flex-start !important; }
  .align-items-sm-end      { align-items: flex-end !important; }
  .align-items-sm-center   { align-items: center !important; }
  .align-items-sm-baseline { align-items: baseline !important; }
  .align-items-sm-stretch  { align-items: stretch !important; }

  .align-content-sm-start   { align-content: flex-start !important; }
  .align-content-sm-end     { align-content: flex-end !important; }
  .align-content-sm-center  { align-content: center !important; }
  .align-content-sm-between { align-content: space-between !important; }
  .align-content-sm-around  { align-content: space-around !important; }
  .align-content-sm-stretch { align-content: stretch !important; }

  .align-self-sm-auto     { align-self: auto !important; }
  .align-self-sm-start    { align-self: flex-start !important; }
  .align-self-sm-end      { align-self: flex-end !important; }
  .align-self-sm-center   { align-self: center !important; }
  .align-self-sm-baseline { align-self: baseline !important; }
  .align-self-sm-stretch  { align-self: stretch !important; }

  .flex-sm-grow-0 { flex-grow: 0 !important; }
  .flex-sm-grow-1 { flex-grow: 1 !important; }
  .flex-sm-shrink-0 { flex-shrink: 0 !important; }
  .flex-sm-shrink-1 { flex-shrink: 1 !important; }
  .flex-sm-fill { flex: 1 1 auto !important; }
  .flex-sm-none { flex: none !important; }

  .order-sm-0 { order: 0 !important; }
  .order-sm-1 { order: 1 !important; }
  .order-sm-2 { order: 2 !important; }
  .order-sm-3 { order: 3 !important; }
  .order-sm-4 { order: 4 !important; }
  .order-sm-5 { order: 5 !important; }
  .order-sm-first { order: -1 !important; }
  .order-sm-last  { order: 6 !important; }

  .gap-sm-0 { gap: 0 !important; }
  .gap-sm-1 { gap: 0.25rem !important; }
  .gap-sm-2 { gap: 0.5rem !important; }
  .gap-sm-3 { gap: 1rem !important; }
  .gap-sm-4 { gap: 1.5rem !important; }
  .gap-sm-5 { gap: 3rem !important; }
}

/* ============================================================
   VERSI RESPONSIF — md (≥768px)
   ============================================================ */
@media (min-width: 768px) {
  .d-md-none         { display: none !important; }
  .d-md-inline       { display: inline !important; }
  .d-md-inline-block { display: inline-block !important; }
  .d-md-block        { display: block !important; }
  .d-md-grid         { display: grid !important; }
  .d-md-inline-grid  { display: inline-grid !important; }
  .d-md-table        { display: table !important; }
  .d-md-table-row    { display: table-row !important; }
  .d-md-table-cell   { display: table-cell !important; }
  .d-md-flex         { display: flex !important; }
  .d-md-inline-flex  { display: inline-flex !important; }

  .flex-md-row            { flex-direction: row !important; }
  .flex-md-row-reverse    { flex-direction: row-reverse !important; }
  .flex-md-column         { flex-direction: column !important; }
  .flex-md-column-reverse { flex-direction: column-reverse !important; }

  .flex-md-wrap         { flex-wrap: wrap !important; }
  .flex-md-wrap-reverse { flex-wrap: wrap-reverse !important; }
  .flex-md-nowrap       { flex-wrap: nowrap !important; }

  .justify-content-md-start   { justify-content: flex-start !important; }
  .justify-content-md-end     { justify-content: flex-end !important; }
  .justify-content-md-center  { justify-content: center !important; }
  .justify-content-md-between { justify-content: space-between !important; }
  .justify-content-md-around  { justify-content: space-around !important; }
  .justify-content-md-evenly  { justify-content: space-evenly !important; }

  .align-items-md-start    { align-items: flex-start !important; }
  .align-items-md-end      { align-items: flex-end !important; }
  .align-items-md-center   { align-items: center !important; }
  .align-items-md-baseline { align-items: baseline !important; }
  .align-items-md-stretch  { align-items: stretch !important; }

  .align-content-md-start   { align-content: flex-start !important; }
  .align-content-md-end     { align-content: flex-end !important; }
  .align-content-md-center  { align-content: center !important; }
  .align-content-md-between { align-content: space-between !important; }
  .align-content-md-around  { align-content: space-around !important; }
  .align-content-md-stretch { align-content: stretch !important; }

  .align-self-md-auto     { align-self: auto !important; }
  .align-self-md-start    { align-self: flex-start !important; }
  .align-self-md-end      { align-self: flex-end !important; }
  .align-self-md-center   { align-self: center !important; }
  .align-self-md-baseline { align-self: baseline !important; }
  .align-self-md-stretch  { align-self: stretch !important; }

  .flex-md-grow-0 { flex-grow: 0 !important; }
  .flex-md-grow-1 { flex-grow: 1 !important; }
  .flex-md-shrink-0 { flex-shrink: 0 !important; }
  .flex-md-shrink-1 { flex-shrink: 1 !important; }
  .flex-md-fill { flex: 1 1 auto !important; }
  .flex-md-none { flex: none !important; }

  .order-md-0 { order: 0 !important; }
  .order-md-1 { order: 1 !important; }
  .order-md-2 { order: 2 !important; }
  .order-md-3 { order: 3 !important; }
  .order-md-4 { order: 4 !important; }
  .order-md-5 { order: 5 !important; }
  .order-md-first { order: -1 !important; }
  .order-md-last  { order: 6 !important; }

  .gap-md-0 { gap: 0 !important; }
  .gap-md-1 { gap: 0.25rem !important; }
  .gap-md-2 { gap: 0.5rem !important; }
  .gap-md-3 { gap: 1rem !important; }
  .gap-md-4 { gap: 1.5rem !important; }
  .gap-md-5 { gap: 3rem !important; }
}

/* ============================================================
   VERSI RESPONSIF — lg (≥992px)
   ============================================================ */
@media (min-width: 992px) {
  .d-lg-none         { display: none !important; }
  .d-lg-inline       { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
  .d-lg-block        { display: block !important; }
  .d-lg-grid         { display: grid !important; }
  .d-lg-inline-grid  { display: inline-grid !important; }
  .d-lg-table        { display: table !important; }
  .d-lg-table-row    { display: table-row !important; }
  .d-lg-table-cell   { display: table-cell !important; }
  .d-lg-flex         { display: flex !important; }
  .d-lg-inline-flex  { display: inline-flex !important; }

  .flex-lg-row            { flex-direction: row !important; }
  .flex-lg-row-reverse    { flex-direction: row-reverse !important; }
  .flex-lg-column         { flex-direction: column !important; }
  .flex-lg-column-reverse { flex-direction: column-reverse !important; }

  .flex-lg-wrap         { flex-wrap: wrap !important; }
  .flex-lg-wrap-reverse { flex-wrap: wrap-reverse !important; }
  .flex-lg-nowrap       { flex-wrap: nowrap !important; }

  .justify-content-lg-start   { justify-content: flex-start !important; }
  .justify-content-lg-end     { justify-content: flex-end !important; }
  .justify-content-lg-center  { justify-content: center !important; }
  .justify-content-lg-between { justify-content: space-between !important; }
  .justify-content-lg-around  { justify-content: space-around !important; }
  .justify-content-lg-evenly  { justify-content: space-evenly !important; }

  .align-items-lg-start    { align-items: flex-start !important; }
  .align-items-lg-end      { align-items: flex-end !important; }
  .align-items-lg-center   { align-items: center !important; }
  .align-items-lg-baseline { align-items: baseline !important; }
  .align-items-lg-stretch  { align-items: stretch !important; }

  .align-content-lg-start   { align-content: flex-start !important; }
  .align-content-lg-end     { align-content: flex-end !important; }
  .align-content-lg-center  { align-content: center !important; }
  .align-content-lg-between { align-content: space-between !important; }
  .align-content-lg-around  { align-content: space-around !important; }
  .align-content-lg-stretch { align-content: stretch !important; }

  .align-self-lg-auto     { align-self: auto !important; }
  .align-self-lg-start    { align-self: flex-start !important; }
  .align-self-lg-end      { align-self: flex-end !important; }
  .align-self-lg-center   { align-self: center !important; }
  .align-self-lg-baseline { align-self: baseline !important; }
  .align-self-lg-stretch  { align-self: stretch !important; }

  .flex-lg-grow-0 { flex-grow: 0 !important; }
  .flex-lg-grow-1 { flex-grow: 1 !important; }
  .flex-lg-shrink-0 { flex-shrink: 0 !important; }
  .flex-lg-shrink-1 { flex-shrink: 1 !important; }
  .flex-lg-fill { flex: 1 1 auto !important; }
  .flex-lg-none { flex: none !important; }

  .order-lg-0 { order: 0 !important; }
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
  .order-lg-3 { order: 3 !important; }
  .order-lg-4 { order: 4 !important; }
  .order-lg-5 { order: 5 !important; }
  .order-lg-first { order: -1 !important; }
  .order-lg-last  { order: 6 !important; }

  .gap-lg-0 { gap: 0 !important; }
  .gap-lg-1 { gap: 0.25rem !important; }
  .gap-lg-2 { gap: 0.5rem !important; }
  .gap-lg-3 { gap: 1rem !important; }
  .gap-lg-4 { gap: 1.5rem !important; }
  .gap-lg-5 { gap: 3rem !important; }
}

/* ============================================================
   VERSI RESPONSIF — xl (≥1200px)
   ============================================================ */
@media (min-width: 1200px) {
  .d-xl-none         { display: none !important; }
  .d-xl-inline       { display: inline !important; }
  .d-xl-inline-block { display: inline-block !important; }
  .d-xl-block        { display: block !important; }
  .d-xl-grid         { display: grid !important; }
  .d-xl-inline-grid  { display: inline-grid !important; }
  .d-xl-table        { display: table !important; }
  .d-xl-table-row    { display: table-row !important; }
  .d-xl-table-cell   { display: table-cell !important; }
  .d-xl-flex         { display: flex !important; }
  .d-xl-inline-flex  { display: inline-flex !important; }

  .flex-xl-row            { flex-direction: row !important; }
  .flex-xl-row-reverse    { flex-direction: row-reverse !important; }
  .flex-xl-column         { flex-direction: column !important; }
  .flex-xl-column-reverse { flex-direction: column-reverse !important; }

  .flex-xl-wrap         { flex-wrap: wrap !important; }
  .flex-xl-wrap-reverse { flex-wrap: wrap-reverse !important; }
  .flex-xl-nowrap       { flex-wrap: nowrap !important; }

  .justify-content-xl-start   { justify-content: flex-start !important; }
  .justify-content-xl-end     { justify-content: flex-end !important; }
  .justify-content-xl-center  { justify-content: center !important; }
  .justify-content-xl-between { justify-content: space-between !important; }
  .justify-content-xl-around  { justify-content: space-around !important; }
  .justify-content-xl-evenly  { justify-content: space-evenly !important; }

  .align-items-xl-start    { align-items: flex-start !important; }
  .align-items-xl-end      { align-items: flex-end !important; }
  .align-items-xl-center   { align-items: center !important; }
  .align-items-xl-baseline { align-items: baseline !important; }
  .align-items-xl-stretch  { align-items: stretch !important; }

  .align-content-xl-start   { align-content: flex-start !important; }
  .align-content-xl-end     { align-content: flex-end !important; }
  .align-content-xl-center  { align-content: center !important; }
  .align-content-xl-between { align-content: space-between !important; }
  .align-content-xl-around  { align-content: space-around !important; }
  .align-content-xl-stretch { align-content: stretch !important; }

  .align-self-xl-auto     { align-self: auto !important; }
  .align-self-xl-start    { align-self: flex-start !important; }
  .align-self-xl-end      { align-self: flex-end !important; }
  .align-self-xl-center   { align-self: center !important; }
  .align-self-xl-baseline { align-self: baseline !important; }
  .align-self-xl-stretch  { align-self: stretch !important; }

  .flex-xl-grow-0 { flex-grow: 0 !important; }
  .flex-xl-grow-1 { flex-grow: 1 !important; }
  .flex-xl-shrink-0 { flex-shrink: 0 !important; }
  .flex-xl-shrink-1 { flex-shrink: 1 !important; }
  .flex-xl-fill { flex: 1 1 auto !important; }
  .flex-xl-none { flex: none !important; }

  .order-xl-0 { order: 0 !important; }
  .order-xl-1 { order: 1 !important; }
  .order-xl-2 { order: 2 !important; }
  .order-xl-3 { order: 3 !important; }
  .order-xl-4 { order: 4 !important; }
  .order-xl-5 { order: 5 !important; }
  .order-xl-first { order: -1 !important; }
  .order-xl-last  { order: 6 !important; }

  .gap-xl-0 { gap: 0 !important; }
  .gap-xl-1 { gap: 0.25rem !important; }
  .gap-xl-2 { gap: 0.5rem !important; }
  .gap-xl-3 { gap: 1rem !important; }
  .gap-xl-4 { gap: 1.5rem !important; }
  .gap-xl-5 { gap: 3rem !important; }
}

/* ============================================================
   VERSI RESPONSIF — xxl (≥1400px)
   ============================================================ */
@media (min-width: 1400px) {
  .d-xxl-none         { display: none !important; }
  .d-xxl-inline       { display: inline !important; }
  .d-xxl-inline-block { display: inline-block !important; }
  .d-xxl-block        { display: block !important; }
  .d-xxl-grid         { display: grid !important; }
  .d-xxl-inline-grid  { display: inline-grid !important; }
  .d-xxl-table        { display: table !important; }
  .d-xxl-table-row    { display: table-row !important; }
  .d-xxl-table-cell   { display: table-cell !important; }
  .d-xxl-flex         { display: flex !important; }
  .d-xxl-inline-flex  { display: inline-flex !important; }

  .flex-xxl-row            { flex-direction: row !important; }
  .flex-xxl-row-reverse    { flex-direction: row-reverse !important; }
  .flex-xxl-column         { flex-direction: column !important; }
  .flex-xxl-column-reverse { flex-direction: column-reverse !important; }

  .flex-xxl-wrap         { flex-wrap: wrap !important; }
  .flex-xxl-wrap-reverse { flex-wrap: wrap-reverse !important; }
  .flex-xxl-nowrap       { flex-wrap: nowrap !important; }

  .justify-content-xxl-start   { justify-content: flex-start !important; }
  .justify-content-xxl-end     { justify-content: flex-end !important; }
  .justify-content-xxl-center  { justify-content: center !important; }
  .justify-content-xxl-between { justify-content: space-between !important; }
  .justify-content-xxl-around  { justify-content: space-around !important; }
  .justify-content-xxl-evenly  { justify-content: space-evenly !important; }

  .align-items-xxl-start    { align-items: flex-start !important; }
  .align-items-xxl-end      { align-items: flex-end !important; }
  .align-items-xxl-center   { align-items: center !important; }
  .align-items-xxl-baseline { align-items: baseline !important; }
  .align-items-xxl-stretch  { align-items: stretch !important; }

  .align-content-xxl-start   { align-content: flex-start !important; }
  .align-content-xxl-end     { align-content: flex-end !important; }
  .align-content-xxl-center  { align-content: center !important; }
  .align-content-xxl-between { align-content: space-between !important; }
  .align-content-xxl-around  { align-content: space-around !important; }
  .align-content-xxl-stretch { align-content: stretch !important; }

  .align-self-xxl-auto     { align-self: auto !important; }
  .align-self-xxl-start    { align-self: flex-start !important; }
  .align-self-xxl-end      { align-self: flex-end !important; }
  .align-self-xxl-center   { align-self: center !important; }
  .align-self-xxl-baseline { align-self: baseline !important; }
  .align-self-xxl-stretch  { align-self: stretch !important; }

  .flex-xxl-grow-0 { flex-grow: 0 !important; }
  .flex-xxl-grow-1 { flex-grow: 1 !important; }
  .flex-xxl-shrink-0 { flex-shrink: 0 !important; }
  .flex-xxl-shrink-1 { flex-shrink: 1 !important; }
  .flex-xxl-fill { flex: 1 1 auto !important; }
  .flex-xxl-none { flex: none !important; }

  .order-xxl-0 { order: 0 !important; }
  .order-xxl-1 { order: 1 !important; }
  .order-xxl-2 { order: 2 !important; }
  .order-xxl-3 { order: 3 !important; }
  .order-xxl-4 { order: 4 !important; }
  .order-xxl-5 { order: 5 !important; }
  .order-xxl-first { order: -1 !important; }
  .order-xxl-last  { order: 6 !important; }

  .gap-xxl-0 { gap: 0 !important; }
  .gap-xxl-1 { gap: 0.25rem !important; }
  .gap-xxl-2 { gap: 0.5rem !important; }
  .gap-xxl-3 { gap: 1rem !important; }
  .gap-xxl-4 { gap: 1.5rem !important; }
  .gap-xxl-5 { gap: 3rem !important; }
}
/* ============================================================
   TOMBOL — BASIS iOS
   ============================================================ */
:root {
  /* Warna sistem iOS */
  --ios-blue: #007aff;
  --ios-blue-dark: #0062cc;
  --ios-green: #34c759;
  --ios-red: #ff3b30;
  --ios-orange: #ff9500;
  --ios-gray: #8e8e93;
  --ios-gray2: #aeaeb2;
  --ios-gray3: #c7c7cc;
  --ios-gray4: #d1d1d6;
  --ios-gray5: #e5e5ea;
  --ios-gray6: #f2f2f7;
  --ios-label: #000;
  --ios-secondary-label: rgba(60, 60, 67, 0.6);
  --ios-fill: rgba(120, 120, 128, 0.2);
  --ios-fill-secondary: rgba(120, 120, 128, 0.16);

  /* Radius & ukuran */
  --ios-radius-sm: 8px;
  --ios-radius: 12px;
  --ios-radius-lg: 14px;
  --ios-radius-pill: 980px;

  /* Transisi khas iOS: cepat, halus */
  --ios-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ios-duration: 0.2s;
}

/* ============================================================
   TOMBOL — BASE
   ============================================================ */
.btn {
  /* Layout */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;

  /* Ukuran default (medium) */
  min-height: 44px;              /* touch target iOS */
  padding: 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;

  /* Bentuk */
  border-radius: var(--ios-radius);
  border: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  white-space: nowrap;

  /* Transisi */
  transition:
    background-color var(--ios-duration) var(--ios-ease),
    color var(--ios-duration) var(--ios-ease),
    opacity var(--ios-duration) var(--ios-ease),
    transform 0.1s var(--ios-ease),
    box-shadow var(--ios-duration) var(--ios-ease);

  /* Default: filled blue */
  background-color: var(--ios-blue);
  color: #fff;
}

/* State hover (desktop) */
@media (hover: hover) {
  .btn:hover {
    background-color: var(--ios-blue-dark);
  }
}

/* State active — efek "tekan" khas iOS */
.btn:active {
  transform: scale(0.97);
  opacity: 0.85;
}

/* Focus visible — ring aksesibilitas */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.35);
}

/* Disabled */
.btn:disabled,
.btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   VARIAN — FILLED (solid)
   ============================================================ */
.btn-filled-blue   { background-color: var(--ios-blue);   color: #fff; }
.btn-filled-green  { background-color: var(--ios-green);  color: #fff; }
.btn-filled-red    { background-color: var(--ios-red);    color: #fff; }
.btn-filled-orange { background-color: var(--ios-orange); color: #fff; }
.btn-filled-gray   { background-color: var(--ios-gray);   color: #fff; }

@media (hover: hover) {
  .btn-filled-blue:hover   { background-color: var(--ios-blue-dark); }
  .btn-filled-green:hover  { filter: brightness(0.92); }
  .btn-filled-red:hover    { filter: brightness(0.92); }
  .btn-filled-orange:hover { filter: brightness(0.92); }
  .btn-filled-gray:hover   { filter: brightness(0.92); }
}

/* ============================================================
   VARIAN — TINTED (latar transparan berwarna)
   ============================================================ */
.btn-tinted-blue {
  background-color: rgba(0, 122, 255, 0.15);
  color: var(--ios-blue);
}
.btn-tinted-green {
  background-color: rgba(52, 199, 89, 0.15);
  color: var(--ios-green);
}
.btn-tinted-red {
  background-color: rgba(255, 59, 48, 0.15);
  color: var(--ios-red);
}
.btn-tinted-orange {
  background-color: rgba(255, 149, 0, 0.15);
  color: var(--ios-orange);
}
.btn-tinted-gray {
  background-color: var(--ios-fill);
  color: var(--ios-label);
}

@media (hover: hover) {
  .btn-tinted-blue:hover   { background-color: rgba(0, 122, 255, 0.25); }
  .btn-tinted-green:hover  { background-color: rgba(52, 199, 89, 0.25); }
  .btn-tinted-red:hover    { background-color: rgba(255, 59, 48, 0.25); }
  .btn-tinted-orange:hover { background-color: rgba(255, 149, 0, 0.25); }
  .btn-tinted-gray:hover   { background-color: rgba(120, 120, 128, 0.28); }
}

/* ============================================================
   VARIAN — GRAY (sekunder netral, umum di iOS)
   ============================================================ */
.btn-gray {
  background-color: var(--ios-gray6);
  color: var(--ios-label);
}
@media (hover: hover) {
  .btn-gray:hover { background-color: var(--ios-gray5); }
}

/* ============================================================
   VARIAN — PLAIN (teks saja, tanpa latar)
   ============================================================ */
.btn-plain {
  background-color: transparent;
  color: var(--ios-blue);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.btn-plain:hover { background-color: transparent; opacity: 0.6; }

.btn-plain-gray {
  background-color: transparent;
  color: var(--ios-blue);
}
.btn-plain-gray:hover { background-color: transparent; opacity: 0.6; }

/* ============================================================
   VARIAN — BORDERED (outline tipis)
   ============================================================ */
.btn-bordered {
  background-color: transparent;
  color: var(--ios-blue);
  box-shadow: inset 0 0 0 1.5px var(--ios-blue);
}
@media (hover: hover) {
  .btn-bordered:hover {
    background-color: rgba(0, 122, 255, 0.08);
  }
}

.btn-bordered-gray {
  background-color: transparent;
  color: var(--ios-label);
  box-shadow: inset 0 0 0 1.5px var(--ios-gray3);
}
@media (hover: hover) {
  .btn-bordered-gray:hover { background-color: var(--ios-gray6); }
}

/* ============================================================
   VARIAN — DESTRUKTIF (bisa digabung dengan varian di atas)
   ============================================================ */
.btn-destructive {
  background-color: var(--ios-red);
  color: #fff;
}
@media (hover: hover) {
  .btn-destructive:hover { filter: brightness(0.92); }
}

/* ============================================================
   UKURAN
   ============================================================ */
/* Small — tinggi 32px, untuk toolbar/inline */
.btn-sm {
  min-height: 32px;
  padding: 0 0.875rem;
  font-size: 0.875rem;
  border-radius: var(--ios-radius-sm);
}

/* Large — tinggi 50px, CTA utama */
.btn-lg {
  min-height: 50px;
  padding: 0 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--ios-radius-lg);
}

/* Pill — membulat penuh */
.btn-pill {
  border-radius: var(--ios-radius-pill);
}

/* Block — selebar container */
.btn-block {
  display: flex;
  width: 100%;
}

/* ============================================================
   TOMBOL IKON (khusus, tanpa teks)
   ============================================================ */
.btn-icon {
  padding: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
}
.btn-icon.btn-sm {
  width: 32px;
  min-width: 32px;
  height: 32px;
}
.btn-icon.btn-lg {
  width: 50px;
  min-width: 50px;
  height: 50px;
}
/* ============================================================
   TOMBOL — INTEGRASI IKON MDI
   ============================================================ */

/* Ikon di dalam tombol */
.btn .mdi {
  font-size: 1.25em;       /* Ikon sedikit lebih besar dari teks */
  line-height: 1;          /* Hindari memengaruhi tinggi baris */
  vertical-align: middle;  /* Selaras dengan teks */
  margin-top: -1px;        /* Koreksi halus untuk perataan visual */
}

/* Penyesuaian ikon pada tombol kecil */
.btn-sm .mdi {
  font-size: 1.1em;
}

/* Penyesuaian ikon pada tombol besar */
.btn-lg .mdi {
  font-size: 1.3em;
}

/* Saat tombol hanya berisi ikon (btn-icon), pastikan ikon di tengah */
.btn-icon .mdi {
  font-size: 1.4rem;
  margin-top: 0;
}

/* Varian tombol khusus MDI (opsional: tombol dengan ikon di kiri/kanan) */
.btn .mdi:first-child {
  margin-right: 0.25rem;
}

.btn .mdi:last-child {
  margin-left: 0.25rem;
}

/* Ikon status loading (berputar) */
.btn .mdi-spin {
  animation: mdi-spin 1s infinite linear;
}

@keyframes mdi-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* ============================================================
   BREADCRUMB — iOS STYLE
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  margin: 0 0 1rem 0;
  list-style: none;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

/* Link (item yang bisa diklik) */
.breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;              /* touch target minimum */
  padding: 0 0.125rem;
  color: var(--ios-blue);
  text-decoration: none;
  border-radius: 4px;
  transition: opacity var(--ios-duration) var(--ios-ease);
}

@media (hover: hover) {
  .breadcrumb-item a:hover {
    opacity: 0.6;
  }
}

.breadcrumb-item a:active {
  opacity: 0.4;
}

/* Item aktif (halaman saat ini) — tidak bisa diklik */
.breadcrumb-item.active {
  color: var(--ios-secondary-label);
  font-weight: 500;
  pointer-events: none;
}

/* Pemisah — chevron tipis via MDI */
.breadcrumb-item + .breadcrumb-item::before {
  content: "\F0142";             /* kode MDI mdi-chevron-right */
  font-family: "Material Design Icons";
  font-size: 0.875rem;
  color: var(--ios-gray3);
  line-height: 1;
  margin-right: 0.125rem;
}

/* Ikon di breadcrumb */
.breadcrumb-item .mdi {
  font-size: 1.125rem;
  line-height: 1;
}

/* Varian dengan latar (grouped style) */
.breadcrumb-bg {
  padding: 0.75rem 1rem;
  background-color: var(--ios-gray6);
  border-radius: var(--ios-radius);
}

/* Varian minimal tanpa pemisah chevron (slash) */
.breadcrumb-slash .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  font-family: inherit;
  color: var(--ios-gray3);
  font-size: 0.875rem;
}
/* ============================================================
   OVERLAY & BACKDROP (dipakai alert + modal)
   ============================================================ */
.ios-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ios-ease), visibility 0.25s var(--ios-ease);
}

.ios-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   ALERT — iOS STYLE
   ============================================================ */
.ios-alert {
  width: 100%;
  max-width: 270px;
  background-color: rgba(250, 250, 250, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transform: scale(1.15);
  opacity: 0;
  transition: transform 0.25s var(--ios-ease), opacity 0.25s var(--ios-ease);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ios-overlay.show .ios-alert {
  transform: scale(1);
  opacity: 1;
}

.ios-alert-header {
  padding: 1.25rem 1rem 0.5rem;
}

.ios-alert-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ios-label);
  margin-bottom: 0.25rem;
}

.ios-alert-message {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ios-label);
  padding: 0 0.5rem 1rem;
}

.ios-alert-actions {
  display: flex;
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
}

.ios-alert-btn {
  flex: 1;
  min-height: 44px;
  padding: 0.75rem 0.5rem;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ios-blue);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
}

.ios-alert-btn + .ios-alert-btn {
  border-left: 0.5px solid rgba(60, 60, 67, 0.2);
}

.ios-alert-btn:active {
  background-color: rgba(0, 0, 0, 0.08);
}

.ios-alert-btn.strong {
  font-weight: 600;
}

.ios-alert-btn.destructive {
  color: var(--ios-red);
}

/* ============================================================
   TOAST — iOS STYLE
   ============================================================ */
.ios-toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
  width: calc(100% - 2rem);
  max-width: 400px;
}

.ios-toast {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background-color: rgba(250, 250, 250, 0.95);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--ios-radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ios-label);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.3s var(--ios-ease), transform 0.3s var(--ios-ease);
}

.ios-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ios-toast.hide {
  opacity: 0;
  transform: translateY(-16px);
}

.ios-toast .mdi {
  font-size: 1.375rem;
  line-height: 1;
  flex-shrink: 0;
}

.ios-toast-success .mdi { color: var(--ios-green); }
.ios-toast-error   .mdi { color: var(--ios-red); }
.ios-toast-warning .mdi { color: var(--ios-orange); }
.ios-toast-info    .mdi { color: var(--ios-blue); }

.ios-toast-message {
  flex: 1;
}
.ios-toast.is-static { opacity: 1; transform: none; width: 100%; }
/* ============================================================
   MODAL — iOS STYLE (sheet dari bawah / centered)
   ============================================================ */
.ios-modal {
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s var(--ios-ease), opacity 0.3s var(--ios-ease);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.ios-overlay.show .ios-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Varian: sheet dari bawah (khas iOS mobile) */
.ios-overlay.ios-overlay-sheet {
  align-items: flex-end;
  padding: 0;
}

.ios-overlay-sheet .ios-modal {
  max-width: 100%;
  border-radius: var(--ios-radius-lg) var(--ios-radius-lg) 0 0;
  transform: translateY(100%);
}

.ios-overlay-sheet.show .ios-modal {
  transform: translateY(0);
}

.ios-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
}

.ios-modal-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ios-label);
}

.ios-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--ios-gray6);
  color: var(--ios-secondary-label);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
}

.ios-modal-close:active {
  background-color: var(--ios-gray5);
}

.ios-modal-close .mdi {
  font-size: 1.125rem;
  line-height: 1;
}

.ios-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ios-label);
}

.ios-modal-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
}

.ios-modal-footer .btn {
  flex: 1;
}

/* ============================================================
   LOADING OVERLAY — iOS STYLE
   ============================================================ */

/* ---------- Spinner dasar (UIActivityIndicator) ---------- */
.ios-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(120, 120, 128, 0.2);
  border-top-color: var(--ios-gray);
  animation: ios-spin 0.8s linear infinite;
}

/* Varian ukuran */
.ios-spinner-sm { width: 20px; height: 20px; border-width: 2px; }
.ios-spinner-lg { width: 48px; height: 48px; border-width: 4px; }

/* Varian warna */
.ios-spinner-blue   { border-top-color: var(--ios-blue); }
.ios-spinner-white  { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }

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

/* ---------- Overlay fullscreen ---------- */
.ios-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  background-color: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ios-ease), visibility 0.2s var(--ios-ease);
}

.ios-loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Kotak spinner khas iOS: latar terang, sudut membulat */
.ios-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 100px;
  min-height: 100px;
  padding: 1.25rem;
  background-color: rgba(250, 250, 250, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--ios-radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.25s var(--ios-ease);
}

.ios-loading-overlay.show .ios-loading-box {
  transform: scale(1);
}

.ios-loading-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ios-secondary-label);
  text-align: center;
  max-width: 200px;
}

/* ---------- Varian tanpa kotak (spinner polos di tengah) ---------- */
.ios-loading-overlay.ios-loading-plain .ios-loading-box {
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.ios-loading-overlay.ios-loading-plain .ios-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.ios-loading-overlay.ios-loading-plain .ios-loading-text {
  color: #fff;
}

/* ---------- Varian inline (menutupi elemen induk) ---------- */
.ios-loading-inline {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ios-ease), visibility 0.2s var(--ios-ease);
}

.ios-loading-inline.show {
  opacity: 1;
  visibility: visible;
}

/* Induk harus position:relative agar overlay menempel */
.ios-loading-host {
  position: relative;
}

/* ---------- Tombol dalam state loading ---------- */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn.is-loading .mdi-spin {
  animation: ios-spin 0.8s linear infinite;
}
/* ============================================================
   FORM — BASE iOS
   ============================================================ */

/* Label & helper */
.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ios-secondary-label);
  letter-spacing: 0.01em;
}

.form-text {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--ios-secondary-label);
}

.form-text.error { color: var(--ios-red); }

/* Grup field */
.form-group {
  margin-bottom: 1rem;
}

/* ============================================================
   INPUT DASAR
   ============================================================ */
.form-control {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ios-label);
  background-color: var(--ios-gray6);
  border: 1.5px solid transparent;
  border-radius: var(--ios-radius);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background-color var(--ios-duration) var(--ios-ease),
    border-color var(--ios-duration) var(--ios-ease),
    box-shadow var(--ios-duration) var(--ios-ease);
}

.form-control::placeholder {
  color: var(--ios-gray2);
}

/* Focus — ring biru khas iOS */
.form-control:focus {
  background-color: #fff;
  border-color: var(--ios-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

/* Disabled */
.form-control:disabled,
.form-control[readonly] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Error state */
.form-control.is-invalid {
  border-color: var(--ios-red);
  background-color: rgba(255, 59, 48, 0.06);
}
.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

/* Valid state */
.form-control.is-valid {
  border-color: var(--ios-green);
}

/* Ukuran */
.form-control-sm {
  min-height: 36px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--ios-radius-sm);
}
.form-control-lg {
  min-height: 52px;
  padding: 0.875rem 1rem;
  font-size: 1.0625rem;
}

/* ============================================================
   TEXTAREA
   ============================================================ */
textarea.form-control {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

/* ============================================================
   INPUT GROUP (prefix/suffix teks atau tombol)
   ============================================================ */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-radius: var(--ios-radius);
  overflow: hidden;
  background-color: var(--ios-gray6);
  border: 1.5px solid transparent;
  transition:
    background-color var(--ios-duration) var(--ios-ease),
    border-color var(--ios-duration) var(--ios-ease),
    box-shadow var(--ios-duration) var(--ios-ease);
}

.input-group:focus-within {
  background-color: #fff;
  border-color: var(--ios-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.input-group .form-control {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.input-group .form-control:focus {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Prefix / suffix teks */
.input-group-text {
  display: inline-flex;
  align-items: center;
  padding: 0 0.875rem;
  font-size: 0.9375rem;
  color: var(--ios-secondary-label);
  background: transparent;
  white-space: nowrap;
  user-select: none;
}

/* Prefix/suffix tombol */
.input-group .btn {
  border-radius: 0;
  min-height: 44px;
  flex-shrink: 0;
}

/* Divider antar prefix dan input */
.input-group-text + .form-control,
.input-group .form-control + .input-group-text {
  border-left: 1px solid rgba(60, 60, 67, 0.15);
}

/* ============================================================
   INPUT WITH ICON (ikon di dalam field)
   ============================================================ */
.input-icon {
  position: relative;
  display: block;
  width: 100%;
}

.input-icon .form-control {
  padding-left: 2.75rem;
}

.input-icon .mdi {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--ios-gray2);
  pointer-events: none;
  transition: color var(--ios-duration) var(--ios-ease);
}

.input-icon .form-control:focus ~ .mdi,
.input-icon:focus-within .mdi {
  color: var(--ios-blue);
}

/* Ikon di kanan (mis. tombol show password) */
.input-icon.input-icon-end .form-control {
  padding-left: 0.875rem;
  padding-right: 2.75rem;
}
.input-icon.input-icon-end .mdi {
  left: auto;
  right: 0.875rem;
  pointer-events: auto;
  cursor: pointer;
}

/* Ikon di kedua sisi */
.input-icon.input-icon-both .form-control {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}
.input-icon.input-icon-both .mdi.mdi-left { left: 0.875rem; right: auto; }
.input-icon.input-icon-both .mdi.mdi-right { right: 0.875rem; left: auto; }

/* ============================================================
   SELECT (native, disesuaikan)
   ============================================================ */
.form-select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ios-label);
  background-color: var(--ios-gray6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%238e8e93' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6l1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 16px;
  border: 1.5px solid transparent;
  border-radius: var(--ios-radius);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition:
    background-color var(--ios-duration) var(--ios-ease),
    border-color var(--ios-duration) var(--ios-ease),
    box-shadow var(--ios-duration) var(--ios-ease);
}

.form-select:focus {
  background-color: #fff;
  border-color: var(--ios-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-select-sm {
  min-height: 36px;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--ios-radius-sm);
}
.form-select-lg {
  min-height: 52px;
  padding: 0.875rem 2.75rem 0.875rem 1rem;
  font-size: 1.0625rem;
}

/* ============================================================
   DROPDOWN CUSTOM (JS-driven)
   ============================================================ */
.dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ios-label);
  background-color: var(--ios-gray6);
  border: 1.5px solid transparent;
  border-radius: var(--ios-radius);
  cursor: pointer;
  text-align: left;
  transition:
    background-color var(--ios-duration) var(--ios-ease),
    border-color var(--ios-duration) var(--ios-ease),
    box-shadow var(--ios-duration) var(--ios-ease);
}

.dropdown-toggle:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--ios-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.dropdown-toggle .mdi {
  font-size: 1.125rem;
  color: var(--ios-gray);
  transition: transform var(--ios-duration) var(--ios-ease);
}

.dropdown.open .dropdown-toggle .mdi {
  transform: rotate(180deg);
}

.dropdown-toggle .dropdown-value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-toggle .dropdown-value.placeholder {
  color: var(--ios-gray2);
}

/* Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.375rem;
  background-color: rgba(250, 250, 250, 0.98);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--ios-radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s var(--ios-ease),
    transform 0.2s var(--ios-ease),
    visibility 0.2s var(--ios-ease);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Item */
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--ios-label);
  border-radius: var(--ios-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
}

.dropdown-item:hover,
.dropdown-item.focused {
  background-color: var(--ios-fill);
}

.dropdown-item.active {
  color: var(--ios-blue);
  font-weight: 600;
}

.dropdown-item.active .mdi {
  font-size: 1.125rem;
}

.dropdown-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.dropdown-divider {
  height: 0.5px;
  margin: 0.375rem 0.5rem;
  background-color: rgba(60, 60, 67, 0.2);
}

/* ============================================================
   SLIDER / RANGE
   ============================================================ */
.form-range {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Track — WebKit */
.form-range::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--ios-gray4);
  border-radius: 2px;
}

/* Thumb — WebKit */
.form-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -12px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s var(--ios-ease);
}

.form-range:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

/* Track — Firefox */
.form-range::-moz-range-track {
  height: 4px;
  background: var(--ios-gray4);
  border-radius: 2px;
}

.form-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s var(--ios-ease);
}

.form-range:active::-moz-range-thumb {
  transform: scale(1.1);
}

/* Progress fill (pakai CSS var --range-progress diisi via JS) */
.form-range {
  --range-progress: 50%;
}
.form-range::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    var(--ios-blue) 0%,
    var(--ios-blue) var(--range-progress),
    var(--ios-gray4) var(--range-progress),
    var(--ios-gray4) 100%
  );
}
.form-range::-moz-range-track {
  background: var(--ios-gray4);
}
.form-range::-moz-range-progress {
  height: 4px;
  background: var(--ios-blue);
  border-radius: 2px;
}

/* Label nilai di atas slider */
.form-range-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.form-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ios-secondary-label);
}

/* ============================================================
   CHECKBOX (biasa)
   ============================================================ */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-height: 44px;
  padding: 0.5rem 0;
  cursor: pointer;
  user-select: none;
}

.form-check-input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.125rem;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--ios-gray6);
  border: 1.5px solid var(--ios-gray3);
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.15s var(--ios-ease),
    border-color 0.15s var(--ios-ease),
    box-shadow 0.15s var(--ios-ease);
  position: relative;
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.form-check-input:checked {
  background-color: var(--ios-blue);
  border-color: var(--ios-blue);
}

/* Centang via pseudo-element */
.form-check-input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-check-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-check-label {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ios-label);
  cursor: pointer;
}

/* ============================================================
   SWITCH (iOS toggle)
   ============================================================ */
.form-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 0;
  cursor: pointer;
  user-select: none;
}

.form-switch-label {
  font-size: 0.9375rem;
  color: var(--ios-label);
}

.form-switch-input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 51px;
  height: 31px;
  background-color: var(--ios-gray4);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s var(--ios-ease);
}

/* Knob */
.form-switch-input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s var(--ios-ease);
}

.form-switch-input:checked {
  background-color: var(--ios-green);
}

.form-switch-input:checked::after {
  transform: translateX(20px);
}

.form-switch-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.form-switch-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   RADIO (bonus, gaya iOS)
   ============================================================ */
.form-radio {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  padding: 0.5rem 0;
  cursor: pointer;
  user-select: none;
}

.form-radio-input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--ios-gray6);
  border: 1.5px solid var(--ios-gray3);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition:
    background-color 0.15s var(--ios-ease),
    border-color 0.15s var(--ios-ease),
    box-shadow 0.15s var(--ios-ease);
}

.form-radio-input:checked {
  background-color: var(--ios-blue);
  border-color: var(--ios-blue);
}

.form-radio-input:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.form-radio-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

/* ============================================================
   FORM LAYOUT — GROUPED LIST (khas iOS Settings)
   ============================================================ */
.form-grouped {
  background-color: #fff;
  border-radius: var(--ios-radius);
  overflow: hidden;
}

.form-grouped .form-grouped-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.625rem 1rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.15);
}

.form-grouped .form-grouped-item:last-child {
  border-bottom: none;
}

.form-grouped .form-grouped-item .form-control,
.form-grouped .form-grouped-item .form-select {
  background: transparent;
  border: none;
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
  box-shadow: none;
}

.form-grouped .form-grouped-item .form-control:focus,
.form-grouped .form-grouped-item .form-select:focus {
  background: transparent;
  border: none;
  box-shadow: none;
}
/* ============================================================
   CARD — iOS STYLE
   ============================================================ */
.card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--ios-duration) var(--ios-ease),
              transform 0.15s var(--ios-ease);
}

/* Card yang bisa diklik */
.card-clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.card-clickable:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.card-clickable:active {
  transform: scale(0.985);
}

/* Bagian card */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.5rem;
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ios-label);
  line-height: 1.3;
}

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--ios-secondary-label);
  margin-top: 0.125rem;
}

.card-body {
  padding: 0.75rem 1.25rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ios-label);
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 0.5px solid rgba(60, 60, 67, 0.15);
  margin-top: auto;
}

.card-footer .btn {
  flex: 1;
}

/* Card dengan gambar */
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--ios-gray6);
}

/* Card horizontal (gambar di kiri) */
.card-horizontal {
  flex-direction: row;
  align-items: stretch;
}
.card-horizontal .card-img {
  width: 120px;
  aspect-ratio: 1;
  flex-shrink: 0;
}
.card-horizontal .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Card grid wrapper */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* Card flat (tanpa shadow, latar abu) */
.card-flat {
  background-color: var(--ios-gray6);
  box-shadow: none;
}

/* ============================================================
   LIST — iOS STYLE (grouped list ala Settings)
   ============================================================ */

/* Wrapper grup */
.list-group {
  background-color: #fff;
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Judul grup (di luar kotak) */
.list-group-title {
  padding: 0 1rem;
  margin: 1.25rem 0 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ios-secondary-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.list-group-title:first-child {
  margin-top: 0;
}


/* Item list */
.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background-color: #fff;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.15);
  color: var(--ios-label);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}
.list-item-subtitle.multiline { white-space: normal; overflow: visible; text-overflow: clip; }
.fw-normal { font-weight: 400; }

/* Ikon list ungu (menu Blog) */
.list-item-icon.purple { background-color: #af52de; }
.list-item:last-child {
  border-bottom: none;
}
.list-item-column { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.list-item-column .list-item-content { width: 100%; }


/* Item yang bisa diklik */
a.list-item,
button.list-item,
.list-item-clickable {
  cursor: pointer;
}
a.list-item:hover,
button.list-item:hover,
.list-item-clickable:hover {
  background-color: var(--ios-gray6);
}
a.list-item:active,
button.list-item:active,
.list-item-clickable:active {
  background-color: var(--ios-gray5);
}

/* Ikon kiri */
.list-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  font-size: 1.125rem;
  color: #fff;
  background-color: var(--ios-gray);
}
/* Warna ikon */
.list-item-icon.blue   { background-color: var(--ios-blue); }
.list-item-icon.green  { background-color: var(--ios-green); }
.list-item-icon.red    { background-color: var(--ios-red); }
.list-item-icon.orange { background-color: var(--ios-orange); }

/* Konten item */
.list-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.list-item-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ios-label);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item-subtitle {
  font-size: 0.8125rem;
  color: var(--ios-secondary-label);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nilai / trailing (mis. "Aktif", chevron, switch) */
.list-item-value {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--ios-secondary-label);
}

/* Chevron kanan */
.list-item-chevron {
  flex-shrink: 0;
  font-size: 1.125rem;
  color: var(--ios-gray3);
  margin-left: 0.25rem;
}

/* Avatar bulat */
.list-item-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--ios-gray5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ios-secondary-label);
  font-size: 0.9375rem;
}

/* List tanpa border (plain) */
.list-group-plain .list-item {
  border-bottom: none;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

/* ============================================================
   TABS — iOS STYLE (berbasis ID + hash)
   ============================================================ */

/* Wrapper */
.tabs {
  width: 100%;
}

/* Bar tab (segmented style) */
.tabs-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background-color: var(--ios-gray6);
  border-radius: var(--ios-radius);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }

/* Tombol tab */
.tabs-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 36px;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ios-secondary-label);
  background: transparent;
  border: none;
  border-radius: var(--ios-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--ios-duration) var(--ios-ease),
    color var(--ios-duration) var(--ios-ease),
    box-shadow var(--ios-duration) var(--ios-ease);
}

.tabs-link:hover {
  color: var(--ios-label);
}

.tabs-link .mdi {
  font-size: 1.125rem;
}

/* Tab aktif — pill putih dengan shadow (segmented control iOS) */
.tabs-link.active {
  background-color: #fff;
  color: var(--ios-label);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

/* Varian underline (ala iOS large title / web) */
.tabs-nav-underline {
  background: transparent;
  border-radius: 0;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
  padding: 0;
  gap: 0;
}

.tabs-nav-underline .tabs-link {
  border-radius: 0;
  padding: 0.75rem 1rem;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.tabs-nav-underline .tabs-link.active {
  background: transparent;
  color: var(--ios-blue);
  box-shadow: none;
}

.tabs-nav-underline .tabs-link.active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -0.5px;
  height: 2px;
  background-color: var(--ios-blue);
  border-radius: 1px;
}

/* Panel konten */
.tabs-panel {
  display: none;
  padding: 1rem 0;
  animation: tabs-fade 0.25s var(--ios-ease);
}

.tabs-panel.active {
  display: block;
}

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

/* Varian tab full-width (tanpa flex:1 agar bisa scroll) */
.tabs-nav-scroll .tabs-link {
  flex: 0 0 auto;
}
/* ============================================================
   NAVBAR — iOS STYLE (top bar)
   ============================================================ */
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background-color: rgba(250, 250, 250, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
  z-index: 100;
}

/* Navbar fixed di atas */
.navbar-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* Navbar large title (ala iOS large title) */
.navbar-lg {
  min-height: 96px;
  align-items: flex-end;
  padding-bottom: 0.75rem;
}

.navbar-title {
  flex: 1;
  min-width: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ios-label);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar-lg .navbar-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.02em;
}

.navbar-left,
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  min-width: 44px;
}

.navbar-right {
  justify-content: flex-end;
}

/* Tombol di navbar */
.navbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ios-blue);
  background: none;
  border: none;
  border-radius: var(--ios-radius-sm);
  cursor: pointer;
  transition: opacity var(--ios-duration) var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}

.navbar-btn:active {
  opacity: 0.5;
}

.navbar-btn .mdi {
  font-size: 1.375rem;
}

/* Navbar dengan judul kiri (bukan center) */
.navbar-title-left .navbar-title {
  text-align: left;
}

/* ============================================================
   FIXED — UTILITY POSITIONING
   ============================================================ */
   .border-top-soft { border-top: 0.5px solid rgba(60, 60, 67, 0.15); }
   .border-bottom-soft { border-bottom: 0.5px solid rgba(60, 60, 67, 0.15); }

.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.fixed-left {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}

.fixed-right {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 100;
}

/* Sticky */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 90;
}

/* Spacer: agar konten tidak tertutup fixed element */
.has-navbar-fixed {
  padding-top: 56px;   /* navbar 44px + padding */
}

.has-tabbar-fixed {
  padding-bottom: 64px; /* tabbar 49px + safe area */
}

.has-navbar-fixed.has-tabbar-fixed {
  padding-top: 56px;
  padding-bottom: 64px;
}

/* ============================================================
   TABBAR — iOS STYLE (bottom tab bar)
   ============================================================ */
.tabbar {
  display: flex;
  align-items: stretch;
  min-height: 49px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  background-color: rgba(250, 250, 250, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
  z-index: 100;
}

/* Item tabbar */
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  min-height: 49px;
  padding: 0.25rem 0.125rem;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ios-gray);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--ios-duration) var(--ios-ease);
}

.tabbar-item .mdi {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.15s var(--ios-ease);
}

.tabbar-item:active .mdi {
  transform: scale(0.9);
}

/* Item aktif */
.tabbar-item.active {
  color: var(--ios-blue);
}

/* Badge di tabbar */
.tabbar-item {
  position: relative;
}

.tabbar-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background-color: var(--ios-red);
  border-radius: 8px;
}

/* Label (bisa disembunyikan) */
.tabbar-label {
  font-size: 0.625rem;
  line-height: 1.2;
}

/* ---------- OPSI HANDHELD: tabbar muncul hanya di mobile ---------- */
/*
  .tabbar-handheld → display:none di desktop,
  tampil sebagai fixed bottom hanya di < 768px.
*/
.tabbar-handheld {
  display: none;
}

@media (max-width: 767.98px) {
  .tabbar-handheld {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  /* Otomatis tambah padding bawah body saat tabbar handheld tampil */
  body:has(.tabbar-handheld) {
    padding-bottom: calc(49px + env(safe-area-inset-bottom, 0px));
  }
}

/* Fallback untuk browser tanpa :has() — pakai class manual */
body.has-tabbar-handheld {
  padding-bottom: calc(49px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
  body.has-tabbar-handheld {
    padding-bottom: 0;
  }
}

/* ============================================================
   SIDENAV — iOS STYLE (sidebar / drawer)
   ============================================================ */
.sidenav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background-color: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ios-ease), visibility 0.25s var(--ios-ease);
}

.sidenav-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.sidenav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  width: 280px;
  max-width: 85vw;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s var(--ios-ease);
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.sidenav.show {
  transform: translateX(0);
}

/* Sidenav dari kanan */
.sidenav-right {
  left: auto;
  right: 0;
  transform: translateX(100%);
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
}
.sidenav-right.show {
  transform: translateX(0);
}

/* Header sidenav */
.sidenav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.15);
}

.sidenav-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ios-label);
}

/* Body sidenav */
.sidenav-body {
  flex: 1;
  padding: 0.5rem 0;
  overflow-y: auto;
}

/* Item sidenav */
.sidenav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--ios-label);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}

.sidenav-item:hover {
  background-color: var(--ios-gray6);
}

.sidenav-item:active {
  background-color: var(--ios-gray5);
}

.sidenav-item.active {
  color: var(--ios-blue);
  font-weight: 600;
  background-color: rgba(0, 122, 255, 0.08);
}

.sidenav-item .mdi {
  font-size: 1.375rem;
  color: var(--ios-gray);
  flex-shrink: 0;
}

.sidenav-item.active .mdi {
  color: var(--ios-blue);
}

/* Divider */
.sidenav-divider {
  height: 0.5px;
  margin: 0.5rem 1.25rem;
  background-color: rgba(60, 60, 67, 0.15);
}

/* Section title */
.sidenav-section {
  padding: 1rem 1.25rem 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ios-secondary-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Footer sidenav */
.sidenav-footer {
  padding: 1rem 1.25rem;
  border-top: 0.5px solid rgba(60, 60, 67, 0.15);
}

/* ---------- Sidenav varian desktop (persistent sidebar) ---------- */
@media (min-width: 992px) {
  .sidenav-desktop {
    position: sticky;
    top: 0;
    transform: none;
    box-shadow: none;
    border-right: 0.5px solid rgba(60, 60, 67, 0.15);
    height: 100vh;
    z-index: 50;
  }
  .sidenav-desktop + .sidenav-backdrop {
    display: none;
  }
}
/* ============================================================
   ACTION SHEET — iOS STYLE
   ============================================================ */

/* Backdrop */
.ios-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ios-ease), visibility 0.25s var(--ios-ease);
}

.ios-sheet-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Wadah sheet */
.ios-action-sheet {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.3s var(--ios-ease);
}

.ios-sheet-overlay.show .ios-action-sheet {
  transform: translateY(0);
}

/* Grup tombol (kotak putih) */
.ios-action-group {
  display: flex;
  flex-direction: column;
  background-color: rgba(250, 250, 250, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
}

/* Header (judul + pesan) */
.ios-action-header {
  padding: 1rem;
  text-align: center;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
}

.ios-action-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ios-secondary-label);
  line-height: 1.4;
}

.ios-action-message {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--ios-secondary-label);
  line-height: 1.4;
}

/* Tombol aksi */
.ios-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ios-blue);
  background: none;
  border: none;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}

.ios-action-btn:last-child {
  border-bottom: none;
}

.ios-action-btn:active {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Varian */
.ios-action-btn.destructive {
  color: var(--ios-red);
}

.ios-action-btn.strong {
  font-weight: 600;
}

/* Tombol batal (terpisah di bawah, tebal) */
.ios-action-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ios-blue);
  background-color: rgba(250, 250, 250, 0.98);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: none;
  border-radius: var(--ios-radius-lg);
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}

.ios-action-cancel:active {
  background-color: rgba(230, 230, 235, 0.98);
}

/* Ikon di action sheet */
.ios-action-btn .mdi {
  font-size: 1.25rem;
  color: var(--ios-secondary-label);
}

/* ============================================================
   SEARCH BAR — iOS STYLE
   ============================================================ */

/* Pembungkus */
.searchbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(250, 250, 250, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
}

/* Variasi: tanpa background (inline) */
.searchbar-inline {
  padding: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
}

/* Field */
.searchbar-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.75rem 0 2.25rem;
  background-color: rgba(120, 120, 128, 0.12);
  border-radius: 10px;
  transition: background-color var(--ios-duration) var(--ios-ease);
}

.searchbar-field:focus-within {
  background-color: rgba(120, 120, 128, 0.18);
}

/* Ikon search di kiri */
.searchbar-field .searchbar-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
  color: var(--ios-gray);
  pointer-events: none;
}

/* Input */
.searchbar-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0.375rem 0;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ios-label);
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
}

.searchbar-input::placeholder {
  color: var(--ios-gray);
}

/* Tombol clear (x) */
.searchbar-clear {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-left: 0.375rem;
  padding: 0;
  font-size: 0.75rem;
  color: var(--ios-gray);
  background-color: rgba(120, 120, 128, 0.25);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.searchbar-field.has-value .searchbar-clear {
  display: inline-flex;
}

.searchbar-clear .mdi {
  font-size: 0.75rem;
}

/* Tombol cancel di kanan luar field */
.searchbar-cancel {
  flex-shrink: 0;
  display: none;
  padding: 0.375rem 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ios-blue);
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.searchbar.is-active .searchbar-cancel {
  display: block;
}

/* Varian scope/chips di bawah search bar */
.searchbar-scope {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.searchbar-scope::-webkit-scrollbar {
  display: none;
}

.searchbar-chip {
  flex-shrink: 0;
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ios-label);
  background-color: var(--ios-gray6);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease), color 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}

.searchbar-chip.active {
  color: #fff;
  background-color: var(--ios-blue);
}

/* Dropdown hasil pencarian */
.searchbar-results {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 1rem;
  right: 1rem;
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.375rem;
  background-color: rgba(250, 250, 250, 0.98);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--ios-radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ios-ease), transform 0.2s var(--ios-ease), visibility 0.2s var(--ios-ease);
}

.searchbar-results.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.searchbar-result {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--ios-label);
  border-radius: var(--ios-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
}

.searchbar-result:hover,
.searchbar-result.focused {
  background-color: var(--ios-fill);
}

.searchbar-result .mdi {
  font-size: 1.125rem;
  color: var(--ios-gray);
}

.searchbar-result mark {
  background-color: rgba(0, 122, 255, 0.15);
  color: var(--ios-blue);
  border-radius: 2px;
  padding: 0 1px;
}

.searchbar-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ios-secondary-label);
}
/* ============================================================
   SEGMENTED CONTROL — iOS STYLE (terpisah dari tabs)
   ============================================================ */
.segmented {
  display: inline-flex;
  width: 100%;
  padding: 0.125rem;
  background-color: var(--ios-gray6);
  border-radius: 9px;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Indikator geser (knob) — diposisikan via JS */
.segmented-indicator {
  position: absolute;
  top: 0.125rem;
  bottom: 0.125rem;
  left: 0;
  background-color: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s var(--ios-ease), width 0.25s var(--ios-ease);
  z-index: 1;
  pointer-events: none;
}

/* Segmen */
.segmented-item {
  flex: 1;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ios-label);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ios-ease);
}

.segmented-item .mdi {
  font-size: 1rem;
}

/* Item aktif — teks lebih tebal */
.segmented-item.active {
  font-weight: 600;
}

/* Ukuran */
.segmented-sm .segmented-item {
  min-height: 28px;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
}
.segmented-lg .segmented-item {
  min-height: 40px;
  font-size: 0.9375rem;
  padding: 0.375rem 1rem;
}

/* Varian full-width */
.segmented-block {
  display: flex;
  width: 100%;
}

/* ============================================================
   DATE PICKER — iOS STYLE
   ============================================================ */

/* Trigger (field yang menampilkan tanggal) */
.datepicker-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ios-label);
  background-color: var(--ios-gray6);
  border: 1.5px solid transparent;
  border-radius: var(--ios-radius);
  cursor: pointer;
  text-align: left;
  transition:
    background-color var(--ios-duration) var(--ios-ease),
    border-color var(--ios-duration) var(--ios-ease),
    box-shadow var(--ios-duration) var(--ios-ease);
}

.datepicker-trigger:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--ios-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.datepicker-trigger .mdi {
  font-size: 1.25rem;
  color: var(--ios-gray);
}

.datepicker-trigger .datepicker-value {
  flex: 1;
}

.datepicker-trigger .datepicker-value.placeholder {
  color: var(--ios-gray2);
}

/* Overlay + panel */
.datepicker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ios-ease), visibility 0.25s var(--ios-ease);
}

.datepicker-overlay.show {
  opacity: 1;
  visibility: visible;
}

.datepicker-panel {
  width: 100%;
  max-width: 340px;
  background-color: rgba(250, 250, 250, 0.95);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
  transform: scale(1.1);
  opacity: 0;
  transition: transform 0.25s var(--ios-ease), opacity 0.25s var(--ios-ease);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.datepicker-overlay.show .datepicker-panel {
  transform: scale(1);
  opacity: 1;
}

/* Header */
.datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
}

.datepicker-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ios-label);
}

.datepicker-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  color: var(--ios-blue);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
}

.datepicker-nav:active {
  background-color: rgba(0, 0, 0, 0.08);
}

.datepicker-nav:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Grid kalender */
.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem;
  padding: 0.5rem 0.75rem;
}

.datepicker-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ios-secondary-label);
  text-transform: uppercase;
}

.datepicker-day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 36px;
  font-size: 0.9375rem;
  color: var(--ios-label);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease), color 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}

.datepicker-day:hover {
  background-color: var(--ios-fill);
}

/* Hari di bulan lain */
.datepicker-day.other-month {
  color: var(--ios-gray3);
}

/* Hari ini */
.datepicker-day.today {
  font-weight: 600;
  color: var(--ios-blue);
  box-shadow: inset 0 0 0 1.5px var(--ios-blue);
}

/* Hari terpilih */
.datepicker-day.selected {
  background-color: var(--ios-blue);
  color: #fff;
  font-weight: 600;
}

.datepicker-day.selected:hover {
  background-color: var(--ios-blue-dark);
}

.datepicker-day:disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* Footer */
.datepicker-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
}

.datepicker-footer .btn {
  flex: 1;
}

/* ============================================================
   AVATAR — iOS STYLE
   ============================================================ */
.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ios-secondary-label);
  background-color: var(--ios-gray5);
  border-radius: 50%;
  overflow: hidden;
  user-select: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Warna latar inisial */
.avatar-blue   { background-color: rgba(0, 122, 255, 0.15);  color: var(--ios-blue); }
.avatar-green  { background-color: rgba(52, 199, 89, 0.15);  color: var(--ios-green); }
.avatar-red    { background-color: rgba(255, 59, 48, 0.15);  color: var(--ios-red); }
.avatar-orange { background-color: rgba(255, 149, 0, 0.15);  color: var(--ios-orange); }
.avatar-purple { background-color: rgba(175, 82, 222, 0.15); color: #af52de; }

/* Ukuran */
.avatar-xs { width: 24px; height: 24px; font-size: 0.625rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.8125rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.75rem; }

/* Status dot */
.avatar-status {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  height: 30%;
  min-width: 10px;
  min-height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-color: var(--ios-gray);
}
.avatar-status.online  { background-color: var(--ios-green); }
.avatar-status.away    { background-color: var(--ios-orange); }
.avatar-status.offline { background-color: var(--ios-gray3); }

/* Grup avatar bertumpuk */
.avatar-group {
  display: inline-flex;
  align-items: center;
}

.avatar-group .avatar {
  border: 2px solid #fff;
  margin-left: -10px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

.avatar-group .avatar-more {
  background-color: var(--ios-gray6);
  color: var(--ios-secondary-label);
  font-size: 0.75rem;
}

/* ============================================================
   CHIPS — iOS STYLE
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ios-label);
  background-color: var(--ios-gray6);
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: default;
  user-select: none;
  transition:
    background-color 0.15s var(--ios-ease),
    border-color 0.15s var(--ios-ease),
    color 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}

/* Chip yang bisa diklik */
.chip-clickable {
  cursor: pointer;
}

.chip-clickable:hover {
  background-color: var(--ios-gray5);
}

.chip-clickable:active {
  transform: scale(0.97);
}

/* Chip terpilih (filter) */
.chip.active,
.chip[aria-pressed="true"] {
  background-color: var(--ios-blue);
  color: #fff;
  border-color: var(--ios-blue);
}
.chip-green  { background-color: rgba(52, 199, 89, 0.15);  color: var(--ios-green);  border-color: transparent; }
.chip-orange { background-color: rgba(255, 149, 0, 0.15);  color: var(--ios-orange); border-color: transparent; }
.chip-red    { background-color: rgba(255, 59, 48, 0.15);  color: var(--ios-red);    border-color: transparent; }
.chip-blue   { background-color: rgba(0, 122, 255, 0.15);  color: var(--ios-blue);   border-color: transparent; }

/* Chip outline */
.chip-outline {
  background-color: transparent;
  border-color: var(--ios-gray3);
}

.chip-outline.active {
  background-color: var(--ios-blue);
  border-color: var(--ios-blue);
  color: #fff;
}

/* Ikon di chip */
.chip .mdi {
  font-size: 1rem;
  line-height: 1;
}

/* Tombol hapus di chip */
.chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: -0.25rem;
  margin-left: 0.125rem;
  padding: 0;
  font-size: 0.75rem;
  color: inherit;
  background-color: rgba(120, 120, 128, 0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
}

.chip.active .chip-remove {
  background-color: rgba(255, 255, 255, 0.3);
}

.chip-remove .mdi {
  font-size: 0.6875rem;
}

/* Avatar di dalam chip */
.chip .avatar {
  width: 20px;
  height: 20px;
  margin-left: -0.5rem;
  font-size: 0.625rem;
}

/* Ukuran */
.chip-sm {
  min-height: 26px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
}
.chip-lg {
  min-height: 40px;
  padding: 0.375rem 1rem;
  font-size: 0.9375rem;
}

/* Chip input (wrapper untuk membuat chip baru) */
.chip-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
  min-height: 44px;
  padding: 0.375rem 0.5rem;
  background-color: var(--ios-gray6);
  border: 1.5px solid transparent;
  border-radius: var(--ios-radius);
  transition: border-color 0.15s var(--ios-ease), box-shadow 0.15s var(--ios-ease), background-color 0.15s var(--ios-ease);
}

.chip-input-wrap:focus-within {
  background-color: #fff;
  border-color: var(--ios-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.chip-input {
  flex: 1;
  min-width: 100px;
  min-height: 28px;
  padding: 0.125rem 0.25rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--ios-label);
  background: transparent;
  border: none;
  outline: none;
}

/* ============================================================
   PULL TO REFRESH — iOS STYLE
   ============================================================ */
.ptr {
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Area indikator di atas konten */
.ptr-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin-top: -60px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ios-ease);
}

.ptr.pulling .ptr-indicator,
.ptr.refreshing .ptr-indicator {
  opacity: 1;
}

/* Spinner */
.ptr-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.ptr-spinner .mdi {
  font-size: 1.5rem;
  color: var(--ios-gray);
  transition: transform 0.2s var(--ios-ease);
}

/* Saat ditarik: panah berputar mengikuti progres */
.ptr.pulling .ptr-spinner .mdi {
  color: var(--ios-gray);
}

/* Saat siap dilepas */
.ptr.ready .ptr-spinner .mdi {
  transform: rotate(180deg);
  color: var(--ios-blue);
}

/* Saat refreshing: spinner berputar */
.ptr.refreshing .ptr-spinner .mdi {
  animation: ios-spin 0.8s linear infinite;
  color: var(--ios-blue);
}

/* Konten yang bergeser */
.ptr-content {
  transition: transform 0.25s var(--ios-ease);
  will-change: transform;
}

.ptr.pulling .ptr-content,
.ptr.ready .ptr-content {
  transition: none;
}

/* Teks status */
.ptr-text {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--ios-secondary-label);
}

/* ============================================================
   STEPPER — iOS STYLE (UIStepper)
   ============================================================ */

/* Wadah stepper: dua tombol + nilai di tengah */
.stepper {
  display: inline-flex;
  align-items: stretch;
  height: 32px;
  background-color: var(--ios-gray6);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Tombol - dan + */
.stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  font-size: 1.125rem;
  color: var(--ios-blue);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}

.stepper-btn:hover {
  background-color: rgba(120, 120, 128, 0.12);
}

.stepper-btn:active {
  background-color: rgba(120, 120, 128, 0.2);
}

.stepper-btn:disabled {
  color: var(--ios-gray3);
  pointer-events: none;
}

.stepper-btn .mdi {
  font-size: 1.25rem;
  line-height: 1;
}

/* Pemisah vertikal */
.stepper-btn + .stepper-value,
.stepper-value + .stepper-btn {
  border-left: 0.5px solid rgba(60, 60, 67, 0.2);
}

/* Nilai di tengah */
.stepper-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ios-label);
  background-color: #fff;
}

/* Ukuran */
.stepper-sm {
  height: 28px;
  border-radius: 7px;
}
.stepper-sm .stepper-btn {
  width: 32px;
  min-width: 32px;
}
.stepper-sm .stepper-btn .mdi {
  font-size: 1rem;
}
.stepper-sm .stepper-value {
  min-width: 40px;
  font-size: 0.8125rem;
}

.stepper-lg {
  height: 40px;
  border-radius: 10px;
}
.stepper-lg .stepper-btn {
  width: 48px;
  min-width: 48px;
}
.stepper-lg .stepper-btn .mdi {
  font-size: 1.375rem;
}
.stepper-lg .stepper-value {
  min-width: 56px;
  font-size: 1rem;
}

/* Varian horizontal (label di kiri, stepper di kanan) */
.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
}

.stepper-row-label {
  font-size: 0.9375rem;
  color: var(--ios-label);
}

.stepper-row-sub {
  font-size: 0.75rem;
  color: var(--ios-secondary-label);
  margin-top: 0.125rem;
}

/* ============================================================
   PROGRESS BAR — iOS STYLE
   ============================================================ */

/* Track */
.progress {
  display: flex;
  width: 100%;
  height: 4px;
  background-color: var(--ios-gray5);
  border-radius: 2px;
  overflow: hidden;
}

/* Bar isi */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: var(--ios-blue);
  border-radius: 2px;
  transition: width 0.3s var(--ios-ease);
  overflow: hidden;
}

/* Varian ukuran */
.progress-sm { height: 2px; }
.progress-lg { height: 8px; border-radius: 4px; }
.progress-lg .progress-bar { border-radius: 4px; }
.progress-xl { height: 12px; border-radius: 6px; }
.progress-xl .progress-bar { border-radius: 6px; }

/* Warna bar */
.progress-bar-green  { background-color: var(--ios-green); }
.progress-bar-red    { background-color: var(--ios-red); }
.progress-bar-orange { background-color: var(--ios-orange); }
.progress-bar-gray   { background-color: var(--ios-gray); }

/* Animasi stripe (untuk indeterminate / loading) */
.progress-bar-animated {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.2) 75%,
    transparent 75%,
    transparent
  );
  background-size: 16px 16px;
  animation: progress-stripes 0.8s linear infinite;
}

@keyframes progress-stripes {
  from { background-position: 16px 0; }
  to   { background-position: 0 0; }
}

/* Indeterminate (tidak diketahui persennya) */
.progress-indeterminate .progress-bar {
  width: 40% !important;
  animation: progress-indeterminate 1.2s var(--ios-ease) infinite;
}

@keyframes progress-indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Label persen di atas / bawah bar */
.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ios-secondary-label);
}

.progress-label strong {
  color: var(--ios-label);
  font-variant-numeric: tabular-nums;
}

/* Progress dengan teks di dalam bar (hanya untuk progress-lg ke atas) */
.progress-lg .progress-bar {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
}

/* Lingkaran progress (circular) */
.progress-circle {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 48px;
}

.progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-circle-track {
  fill: none;
  stroke: var(--ios-gray5);
  stroke-width: 4;
}

.progress-circle-bar {
  fill: none;
  stroke: var(--ios-blue);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s var(--ios-ease);
}

.progress-circle-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ios-label);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   SKELETON LOADING — iOS STYLE
   ============================================================ */

/* Blok dasar */
.skeleton {
  display: block;
  background-color: var(--ios-gray5);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

/* Animasi shimmer khas iOS */
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}

/* Varian bentuk */
.skeleton-text {
  height: 0.875rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-text:last-child {
  margin-bottom: 0;
  width: 70%;
}

.skeleton-title {
  height: 1.25rem;
  width: 50%;
  margin-bottom: 0.75rem;
  border-radius: 6px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-avatar-sm { width: 32px; height: 32px; }
.skeleton-avatar-lg { width: 56px; height: 56px; }

.skeleton-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--ios-radius);
}

.skeleton-btn {
  height: 44px;
  width: 120px;
  border-radius: var(--ios-radius);
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
}

/* Baris skeleton (avatar + teks) */
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.skeleton-row .skeleton-body {
  flex: 1;
  min-width: 0;
}

/* Card skeleton */
.skeleton-card {
  padding: 1rem;
  background-color: #fff;
  border-radius: var(--ios-radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Varian tanpa animasi (untuk prefers-reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
    display: none;
  }
  .skeleton {
    background-color: var(--ios-gray5);
  }
}

/* Pulse (alternatif shimmer) */
.skeleton-pulse {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-pulse::after {
  display: none;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
/* ============================================================
   BOTTOM SHEET — iOS STYLE
   ============================================================ */

/* Backdrop */
.ios-bottomsheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1180;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ios-ease), visibility 0.3s var(--ios-ease);
}

.ios-bottomsheet-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Panel sheet */
.ios-bottomsheet {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background-color: rgba(250, 250, 250, 0.96);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.35s var(--ios-ease);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  will-change: transform;
}

.ios-bottomsheet-overlay.show .ios-bottomsheet {
  transform: translateY(0);
}

/* Drag handle (grabber) */
.ios-bottomsheet-handle {
  display: flex;
  justify-content: center;
  padding: 0.625rem 0 0.375rem;
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
}

.ios-bottomsheet-handle::before {
  content: "";
  width: 36px;
  height: 5px;
  background-color: var(--ios-gray3);
  border-radius: 3px;
}

/* Header */
.ios-bottomsheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem 0.75rem;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.15);
  flex-shrink: 0;
}

.ios-bottomsheet-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ios-label);
}

.ios-bottomsheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--ios-gray5);
  color: var(--ios-secondary-label);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
  flex-shrink: 0;
}

.ios-bottomsheet-close:active {
  background-color: var(--ios-gray4);
}

.ios-bottomsheet-close .mdi {
  font-size: 1rem;
}

/* Body */
.ios-bottomsheet-body {
  flex: 1;
  padding: 1rem 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ios-label);
}

/* Footer */
.ios-bottomsheet-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 0.5px solid rgba(60, 60, 67, 0.15);
  flex-shrink: 0;
}

.ios-bottomsheet-footer .btn {
  flex: 1;
}

/* Varian: full height */
.ios-bottomsheet-full {
  max-height: 100vh;
  height: 100vh;
  border-radius: 0;
  max-width: 100%;
}

/* Varian: auto height (hanya sebesar konten) */
.ios-bottomsheet-auto {
  max-height: 85vh;
}

/* Snap points — tinggi sheet diatur via JS */
.ios-bottomsheet[data-snap="half"] {
  max-height: 50vh;
}

/* ============================================================
   TOOLTIP — iOS STYLE
   ============================================================ */

/* Elemen pemicu */
.tooltip-trigger {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

/* Tooltip bubble */
.tooltip {
  position: absolute;
  z-index: 1300;
  max-width: 240px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  background-color: rgba(60, 60, 67, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition:
    opacity 0.15s var(--ios-ease),
    transform 0.15s var(--ios-ease),
    visibility 0.15s var(--ios-ease);
}

.tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Panah (arrow) */
.tooltip::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: rgba(60, 60, 67, 0.92);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* Posisi: atas (default) */
.tooltip[data-placement="top"] {
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
}
.tooltip[data-placement="top"].show {
  transform: translateX(-50%) scale(1);
}
.tooltip[data-placement="top"]::after {
  top: 100%;
  left: 50%;
  margin-left: -5px;
  margin-top: -5px;
}

/* Posisi: bawah */
.tooltip[data-placement="bottom"] {
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
}
.tooltip[data-placement="bottom"].show {
  transform: translateX(-50%) scale(1);
}
.tooltip[data-placement="bottom"]::after {
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  margin-bottom: -5px;
}

/* Posisi: kiri */
.tooltip[data-placement="left"] {
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) scale(0.95);
}
.tooltip[data-placement="left"].show {
  transform: translateY(-50%) scale(1);
}
.tooltip[data-placement="left"]::after {
  left: 100%;
  top: 50%;
  margin-left: -5px;
  margin-top: -5px;
}

/* Posisi: kanan */
.tooltip[data-placement="right"] {
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) scale(0.95);
}
.tooltip[data-placement="right"].show {
  transform: translateY(-50%) scale(1);
}
.tooltip[data-placement="right"]::after {
  right: 100%;
  top: 50%;
  margin-right: -5px;
  margin-top: -5px;
}

/* Varian: tooltip terang (light) */
.tooltip-light {
  background-color: rgba(250, 250, 250, 0.98);
  color: var(--ios-label);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.tooltip-light::after {
  background-color: rgba(250, 250, 250, 0.98);
}

/* Varian: tooltip dengan judul */
.tooltip-title {
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.tooltip-desc {
  font-size: 0.75rem;
  opacity: 0.85;
  font-weight: 400;
}

/* ============================================================
   TIMELINE — iOS STYLE
   ============================================================ */
.timeline {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Item */
.timeline-item {
  position: relative;
  display: flex;
  gap: 0.875rem;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Garis vertikal penghubung */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background-color: var(--ios-gray5);
}

.timeline-item:last-child::before {
  display: none;
}

/* Marker (titik/ikon) */
.timeline-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  color: var(--ios-secondary-label);
  background-color: #fff;
  border: 2px solid var(--ios-gray4);
  border-radius: 50%;
  transition: all 0.2s var(--ios-ease);
}

.timeline-marker .mdi {
  font-size: 1rem;
  line-height: 1;
}

/* Varian marker: titik kecil */
.timeline-marker-dot {
  width: 12px;
  height: 12px;
  border-width: 2px;
  margin: 10px 10px 0;
}

/* Varian marker: angka */
.timeline-marker-num {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Status marker */
.timeline-item.completed .timeline-marker {
  background-color: var(--ios-blue);
  border-color: var(--ios-blue);
  color: #fff;
}

.timeline-item.completed::before {
  background-color: var(--ios-blue);
}

.timeline-item.active .timeline-marker {
  border-color: var(--ios-blue);
  color: var(--ios-blue);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

.timeline-item.error .timeline-marker {
  border-color: var(--ios-red);
  color: var(--ios-red);
}

.timeline-item.error::before {
  background-color: var(--ios-red);
}

/* Konten */
.timeline-content {
  flex: 1;
  min-width: 0;
  padding-top: 0.25rem;
}

.timeline-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ios-label);
  line-height: 1.3;
}

.timeline-time {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--ios-secondary-label);
  font-variant-numeric: tabular-nums;
}

.timeline-desc {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ios-secondary-label);
}

/* Varian timeline horizontal */
.timeline-horizontal {
  display: flex;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.timeline-horizontal::-webkit-scrollbar { display: none; }

.timeline-horizontal .timeline-item {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
  padding-bottom: 0;
  padding-right: 1rem;
}

.timeline-horizontal .timeline-item::before {
  left: 50%;
  top: 16px;
  bottom: auto;
  right: -50%;
  width: auto;
  height: 2px;
  transform: translateX(0);
}

.timeline-horizontal .timeline-item:last-child::before {
  display: none;
}

.timeline-horizontal .timeline-marker {
  margin-bottom: 0.5rem;
}

.timeline-horizontal .timeline-content {
  padding-top: 0;
  text-align: center;
}

/* Timeline dengan latar abu (grouped) */
.timeline-grouped {
  padding: 1rem;
  background-color: #fff;
  border-radius: var(--ios-radius-lg);
}

/* Timeline compact (spacing lebih rapat) */
.timeline-compact .timeline-item {
  padding-bottom: 1rem;
}
.timeline-compact .timeline-title {
  font-size: 0.875rem;
}
.timeline-compact .timeline-marker {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}
.timeline-compact .timeline-item::before {
  left: 11px;
  top: 24px;
}
/* ============================================================
   ACCORDION / COLLAPSE — iOS STYLE
   ============================================================ */

/* Wrapper */
.accordion {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Item */
.accordion-item {
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.15);
}

.accordion-item:last-child {
  border-bottom: none;
}

/* Header (tombol toggle) */
.accordion-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--ios-label);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}

.accordion-header:hover {
  background-color: var(--ios-gray6);
}

.accordion-header:active {
  background-color: var(--ios-gray5);
}

/* Judul */
.accordion-title {
  flex: 1;
  min-width: 0;
}

.accordion-subtitle {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ios-secondary-label);
}

/* Ikon chevron */
.accordion-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--ios-gray);
  transition: transform 0.25s var(--ios-ease);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

/* Body (panel konten) */
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ios-ease);
  will-change: max-height;
}

.accordion-item.open .accordion-body {
  max-height: 1000px; /* fallback; JS akan set nilai aktual */
}

/* Konten dalam body */
.accordion-content {
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ios-secondary-label);
}

/* Varian: tanpa border antar item (plain) */
.accordion-plain {
  background: transparent;
  box-shadow: none;
}

.accordion-plain .accordion-item {
  border-bottom: none;
}

/* Varian: grouped list (ala Settings iOS) */
.accordion-grouped .accordion-header {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Varian: card individual */
.accordion-card {
  background: transparent;
  box-shadow: none;
  gap: 0.5rem;
}

.accordion-card .accordion-item {
  background-color: #fff;
  border-radius: var(--ios-radius);
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Varian: icon di kiri (warna sistem) */
.accordion-icon-left {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  font-size: 1.125rem;
  color: #fff;
  background-color: var(--ios-gray);
}
.accordion-icon-left.blue   { background-color: var(--ios-blue); }
.accordion-icon-left.green  { background-color: var(--ios-green); }
.accordion-icon-left.red    { background-color: var(--ios-red); }
.accordion-icon-left.orange { background-color: var(--ios-orange); }

/* ============================================================
   RATING / STAR — iOS STYLE
   ============================================================ */

/* Wadah */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Bintang */
.rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 1.5rem;
  color: var(--ios-gray4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s var(--ios-ease), transform 0.15s var(--ios-ease);
}

.rating-star .mdi {
  font-size: inherit;
  line-height: 1;
  transition: color 0.15s var(--ios-ease);
}

/* Bintang terisi */
.rating-star.filled {
  color: var(--ios-orange);
}

/* Bintang aktif (saat hover/ditekan) */
.rating-star:active {
  transform: scale(0.9);
}

/* Mode readonly */
.rating-readonly .rating-star {
  cursor: default;
  pointer-events: none;
}

/* Ukuran */
.rating-sm .rating-star {
  min-width: 24px;
  min-height: 24px;
  font-size: 1rem;
}
.rating-lg .rating-star {
  min-width: 48px;
  min-height: 48px;
  font-size: 2rem;
}
.rating-xl .rating-star {
  min-width: 56px;
  min-height: 56px;
  font-size: 2.5rem;
}

/* Warna kustom */
.rating-blue .rating-star.filled   { color: var(--ios-blue); }
.rating-green .rating-star.filled  { color: var(--ios-green); }
.rating-red .rating-star.filled    { color: var(--ios-red); }

/* Label nilai di samping */
.rating-value {
  margin-left: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ios-label);
  font-variant-numeric: tabular-nums;
}

.rating-count {
  margin-left: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ios-secondary-label);
}

/* Rating ringkas (bintang kecil + angka) */
.rating-inline {
  gap: 0.125rem;
}
.rating-inline .rating-star {
  min-width: 18px;
  min-height: 18px;
  font-size: 0.875rem;
}

/* Rating dengan setengah bintang (half) */
.rating-star.half .mdi::before {
  /* Trik: gunakan bintang penuh dengan gradient clip */
}

.rating-star.half {
  position: relative;
  color: var(--ios-gray4);
}

.rating-star.half::before {
  content: "\F04CE"; /* kode MDI mdi-star */
  font-family: "Material Design Icons";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: var(--ios-orange);
  pointer-events: none;
}

.rating-star.half .mdi {
  color: var(--ios-gray4);
}

/* Rating summary (bintang besar + teks) */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rating-summary-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ios-label);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rating-summary-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.rating-summary-label {
  font-size: 0.75rem;
  color: var(--ios-secondary-label);
}

/* ============================================================
   EMPTY STATE — iOS STYLE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: 0.75rem;
}

/* Ikon / ilustrasi */
.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 0.25rem;
  font-size: 2.25rem;
  color: var(--ios-gray);
  background-color: var(--ios-gray6);
  border-radius: 50%;
  flex-shrink: 0;
}

.empty-state-icon .mdi {
  font-size: inherit;
  line-height: 1;
}

/* Varian ikon besar */
.empty-state-icon-lg {
  width: 96px;
  height: 96px;
  font-size: 3rem;
}

/* Varian ikon transparan (tanpa latar) */
.empty-state-icon-plain {
  background: none;
  color: var(--ios-gray3);
}

/* Judul */
.empty-state-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ios-label);
  line-height: 1.3;
}

/* Deskripsi */
.empty-state-desc {
  max-width: 320px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ios-secondary-label);
}

/* Aksi */
.empty-state-action {
  margin-top: 0.75rem;
}

/* Varian: empty state dalam card */
.empty-state-card {
  background-color: #fff;
  border-radius: var(--ios-radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 2rem 1.5rem;
}

/* Varian: empty state fullscreen (di tengah viewport) */
.empty-state-fullscreen {
  min-height: 60vh;
}

/* Varian: empty state ringkas (inline) */
.empty-state-compact {
  padding: 1.5rem 1rem;
  gap: 0.5rem;
}
.empty-state-compact .empty-state-icon {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}
.empty-state-compact .empty-state-title {
  font-size: 0.9375rem;
}
.empty-state-compact .empty-state-desc {
  font-size: 0.8125rem;
}

/* Varian: empty state horizontal (ikon di kiri) */
.empty-state-horizontal {
  flex-direction: row;
  text-align: left;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}
.empty-state-horizontal .empty-state-icon {
  margin-bottom: 0;
}
.empty-state-horizontal .empty-state-body {
  flex: 1;
  min-width: 0;
}
.empty-state-horizontal .empty-state-action {
  margin-top: 0;
  flex-shrink: 0;
}

/* Ilustrasi SVG kustom (opsional) */
.empty-state-illustration {
  max-width: 180px;
  height: auto;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
/* ============================================================
   PAGINATION — iOS STYLE
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0;
  margin: 1.5rem 0;
  list-style: none;
  flex-wrap: wrap;
}

.page-item {
  display: flex;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--ios-blue);
  background-color: transparent;
  border: none;
  border-radius: var(--ios-radius-sm);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--ios-duration) var(--ios-ease),
    color var(--ios-duration) var(--ios-ease),
    transform 0.1s var(--ios-ease);
}

/* Hover (desktop) */
@media (hover: hover) {
  .page-link:hover {
    background-color: var(--ios-gray6);
  }
}

/* Active — efek tekan iOS */
.page-link:active {
  transform: scale(0.96);
  opacity: 0.7;
}

/* Halaman aktif */
.page-item.active .page-link {
  background-color: var(--ios-blue);
  color: #fff;
  font-weight: 600;
  pointer-events: none;
}

/* Disabled (prev/next di ujung) */
.page-item.disabled .page-link {
  color: var(--ios-gray3);
  pointer-events: none;
  opacity: 0.5;
}

/* Ikon MDI di tombol prev/next */
.page-link .mdi {
  font-size: 1.25rem;
  line-height: 1;
}

/* Ellipsis (…) */
.page-item.disabled .page-link.ellipsis,
.page-link.ellipsis {
  pointer-events: none;
  color: var(--ios-gray);
}

/* Varian pill (opsional) */
.pagination-pill .page-link {
  border-radius: var(--ios-radius-pill);
}

/* Varian minimal (hanya underline di halaman aktif) */
.pagination-minimal .page-item.active .page-link {
  background-color: transparent;
  color: var(--ios-blue);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--ios-blue);
  border-radius: 0;
}

/* Ukuran */
.pagination-sm .page-link {
  min-width: 36px;
  height: 36px;
  font-size: 0.875rem;
  padding: 0 0.5rem;
}

.pagination-lg .page-link {
  min-width: 50px;
  height: 50px;
  font-size: 1.0625rem;
  padding: 0 1rem;
}

/* ============================================================
   PRODUCT — iOS STYLE
   ============================================================ */

/* ---------- Varian 1: Grid Card (vertikal) ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--ios-duration) var(--ios-ease),
              transform 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
}

/* Card bisa diklik */
.product-card-clickable {
  cursor: pointer;
}
.product-card-clickable:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.product-card-clickable:active {
  transform: scale(0.985);
}

/* Gambar */
.product-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;          /* persegi, khas produk */
  object-fit: cover;
  background-color: var(--ios-gray6);
  flex-shrink: 0;
}

/* Varian rasio gambar */
.product-img-4x3 { aspect-ratio: 4 / 3; }
.product-img-16x9 { aspect-ratio: 16 / 9; }

/* Body konten */
.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  min-width: 0;                  /* penting agar truncate bekerja */
  flex: 1;
}

/* Nama produk — truncated 1 baris */
.product-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ios-label);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

/* Nama produk — truncated 2 baris (opsional) */
.product-name-2 {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sub-text (kategori, brand, dll.) */
.product-subtext {
  font-size: 0.8125rem;
  color: var(--ios-secondary-label);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

/* Harga (bonus) */
.product-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ios-label);
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}

.product-price-old {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ios-gray);
  text-decoration: line-through;
  margin-left: 0.375rem;
}

/* Badge di atas gambar (opsional) */
.product-media {
  position: relative;
}

.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--ios-red);
  border-radius: 6px;
  letter-spacing: 0.01em;
}
.product-badge-blue  { background-color: var(--ios-blue); }
.product-badge-green { background-color: var(--ios-green); }

/* Tombol wishlist di gambar */
.product-wishlist {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1.125rem;
  color: var(--ios-label);
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease), transform 0.15s var(--ios-ease);
}
.product-wishlist:active {
  transform: scale(0.9);
}
.product-wishlist.active {
  color: var(--ios-red);
}

/* ---------- Varian 2: List Row (horizontal) ---------- */
.product-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  background-color: #fff;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.15);
  transition: background-color 0.15s var(--ios-ease);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
}
.product-row:last-child {
  border-bottom: none;
}

.product-row-clickable {
  cursor: pointer;
}
.product-row-clickable:hover {
  background-color: var(--ios-gray6);
}
.product-row-clickable:active {
  background-color: var(--ios-gray5);
}

/* Gambar di row */
.product-row-img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--ios-radius-sm);
  background-color: var(--ios-gray6);
  flex-shrink: 0;
}

/* Body row */
.product-row-body {
  flex: 1;
  min-width: 0;                  /* penting untuk truncate */
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

/* Nama di row */
.product-row-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ios-label);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

/* Sub-text di row */
.product-row-subtext {
  font-size: 0.8125rem;
  color: var(--ios-secondary-label);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

/* Harga di row */
.product-row-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ios-label);
  font-variant-numeric: tabular-nums;
  margin-top: 0.125rem;
}

/* Trailing (chevron / tombol) */
.product-row-trailing {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: var(--ios-gray3);
  font-size: 1.25rem;
}

/* ---------- Grid wrapper untuk product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

/* Grid 2 kolom di mobile (khas e-commerce) */
.product-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .product-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* ---------- Wrapper list (grouped) ---------- */
.product-list {
  background-color: #fff;
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
/* ============================================================
   SIDENAV — VARIAN FIXED (khusus desktop)
   ============================================================ */
/*
  .sidenav-fixed → fixed di kiri viewport, hanya tampil ≥992px.
  Di mobile: tetap tersembunyi (pakai .sidenav + JS toggle biasa).

  Perilaku:
  - Desktop: fixed, tidak bisa ditutup, konten utama digeser via .has-sidenav-fixed
  - Mobile: display:none (pakai drawer biasa via data-sidenav-toggle)
*/

/* Sembunyikan hanya jika BUKAN drawer biasa */

/*
deactivated because it force to hide
.sidenav-fixed:not(.sidenav) {
  display: none;
}
*/
/* Konten utama yang digeser saat sidenav-fixed tampil */
.has-sidenav-fixed {
  transition: padding-left 0.3s var(--ios-ease);
}

/* Di desktop: tampilkan sidenav-fixed, geser konten */
@media (min-width: 992px) {
  .sidenav-fixed {
    display: flex;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    z-index: 50;
    transform: none;
    box-shadow: none;
    border-right: 0.5px solid rgba(60, 60, 67, 0.15);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .has-sidenav-fixed {
    padding-left: 260px;
  }

  /* Sembunyikan backdrop jika ada (karena sidenav-fixed tidak pakai backdrop) */
  .sidenav-fixed + .sidenav-backdrop {
    display: none !important;
  }

  /* Jika sidenav-fixed digabung dengan navbar-fixed, geser navbar juga */
  .has-sidenav-fixed .navbar-fixed-top {
    left: 260px;
  }

  /* Tabbar handheld tidak terpengaruh (mobile only) */
  .has-sidenav-fixed .tabbar-handheld {
    left: 0;
  }
}

/* Varian lebar */
@media (min-width: 992px) {
  .sidenav-fixed.sidenav-fixed-sm { width: 220px; }
  .has-sidenav-fixed.sidenav-fixed-sm { padding-left: 220px; }

  .sidenav-fixed.sidenav-fixed-lg { width: 300px; }
  .has-sidenav-fixed.sidenav-fixed-lg { padding-left: 300px; }
}
/* State collapsed: sidenav disembunyikan, konten full width */
@media (min-width: 992px) {
  body.sidenav-fixed-collapsed .sidenav-fixed {
    transform: translateX(-100%);
    transition: transform 0.3s var(--ios-ease);
  }

  body.sidenav-fixed-collapsed .has-sidenav-fixed {
    padding-left: 0;
  }

  body.sidenav-fixed-collapsed .navbar-fixed-top {
    left: 0;
  }
}
.img-preview-loading { position: relative; opacity: 0.5; pointer-events: none; }
.img-preview-placeholder { border: 1px dashed var(--ios-gray3); border-radius: var(--ios-radius); }
/* Konten kitab berbahasa Arab */
.arabic-content {
  direction: rtl;
  text-align: justify;
  line-height: 2;
}

/* Harga termurah */
.product-price.cheapest { color: var(--ios-green); }

/* ============================================================
   TABLE — iOS STYLE
   ============================================================ */

/* ---------- Wrapper responsive ---------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background-color: var(--ios-gray4);
  border-radius: 3px;
}

/* ---------- Base table ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.875rem;
  color: var(--ios-label);
  background-color: #fff;
}

/* Header */
.table thead th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  color: var(--ios-secondary-label);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background-color: var(--ios-gray6);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.2);
  white-space: nowrap;
}

/* Body cell */
.table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--ios-label);
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.15);
  vertical-align: middle;
}

/* Baris terakhir tanpa border */
.table tbody tr:last-child td {
  border-bottom: none;
}

/* Footer table (opsional) */
.table tfoot td {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ios-label);
  background-color: var(--ios-gray6);
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
}

/* Align helper */
.table .text-center { text-align: center; }
.table .text-right  { text-align: right; }
.table .text-left   { text-align: left; }

/* Cell tanpa padding (untuk gambar/avatar) */
.table .cell-tight { padding: 0.5rem; }

/* Lebar kolom otomatis */
.table .col-auto { width: 1%; white-space: nowrap; }

/* ============================================================
   VARIAN — STRIPED (baris selang-seling)
   ============================================================ */
.table-striped tbody tr:nth-child(odd) td {
  background-color: rgba(120, 120, 128, 0.03);
}

/* ============================================================
   VARIAN — HOVER (baris highlight saat hover)
   ============================================================ */
@media (hover: hover) {
  .table-hover tbody tr:hover td {
    background-color: var(--ios-gray6);
  }
}

/* Baris bisa diklik */
.table tbody tr.row-clickable {
  cursor: pointer;
  transition: background-color 0.15s var(--ios-ease);
}
.table tbody tr.row-clickable:active td {
  background-color: var(--ios-gray5);
}

/* ============================================================
   VARIAN — BORDERED (border semua sisi)
   ============================================================ */
.table-bordered {
  border: 0.5px solid rgba(60, 60, 67, 0.2);
  border-radius: var(--ios-radius-sm);
  overflow: hidden;
}
.table-bordered th,
.table-bordered td {
  border: 0.5px solid rgba(60, 60, 67, 0.2);
}

/* ============================================================
   VARIAN — COMPACT (padding lebih rapat)
   ============================================================ */
.table-compact thead th {
  padding: 0.5rem 0.75rem;
  font-size: 0.6875rem;
}
.table-compact tbody td {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

/* ============================================================
   VARIAN — GROUPED (ala iOS Settings, tanpa header abu)
   ============================================================ */
.table-grouped thead th {
  background-color: transparent;
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.15);
  font-size: 0.75rem;
  color: var(--ios-secondary-label);
}
.table-grouped tbody td {
  border-bottom: 0.5px solid rgba(60, 60, 67, 0.15);
}

/* ============================================================
   VARIAN — CARD WRAPPER (table dalam card)
   ============================================================ */
.table-card {
  background-color: #fff;
  border-radius: var(--ios-radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.table-card .table {
  border-radius: 0;
}

/* ============================================================
   CELL HELPERS
   ============================================================ */

/* Cell dengan avatar + nama */
.table-user {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.table-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.table-user-name {
  font-weight: 500;
  color: var(--ios-label);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-user-sub {
  font-size: 0.75rem;
  color: var(--ios-secondary-label);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Badge di tabel */
.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}
.table-badge-blue   { background-color: rgba(0, 122, 255, 0.15);  color: var(--ios-blue); }
.table-badge-green  { background-color: rgba(52, 199, 89, 0.15);  color: var(--ios-green); }
.table-badge-red    { background-color: rgba(255, 59, 48, 0.15);  color: var(--ios-red); }
.table-badge-orange { background-color: rgba(255, 149, 0, 0.15);  color: var(--ios-orange); }
.table-badge-gray   { background-color: var(--ios-fill);          color: var(--ios-label); }

.table-badge .mdi {
  font-size: 0.75rem;
}

/* Aksi di cell (tombol kecil) */
.table-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: flex-end;
}

.table-actions .btn-icon {
  width: 32px;
  min-width: 32px;
  height: 32px;
}

/* Teks truncate di cell */
.table .truncate {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   TEXT COLOR — iOS STYLE
   ============================================================ */

/* Warna utama (system colors) */
.text-primary   { color: var(--ios-blue) !important; }
.text-success   { color: var(--ios-green) !important; }
.text-danger    { color: var(--ios-red) !important; }
.text-warning   { color: var(--ios-orange) !important; }
.text-info      { color: var(--ios-blue) !important; }   /* alias primary */
.text-secondary { color: var(--ios-secondary-label) !important; }

/* Netral */
.text-dark      { color: var(--ios-label) !important; }
.text-body      { color: var(--ios-label) !important; }
.text-muted     { color: var(--ios-secondary-label) !important; }
.text-light     { color: var(--ios-gray) !important; }
.text-white     { color: #fff !important; }
.text-black     { color: #000 !important; }

/* Abu-abu bertingkat */
.text-gray      { color: var(--ios-gray) !important; }
.text-gray-2    { color: var(--ios-gray2) !important; }
.text-gray-3    { color: var(--ios-gray3) !important; }
.text-gray-4    { color: var(--ios-gray4) !important; }
.text-gray-5    { color: var(--ios-gray5) !important; }
.text-gray-6    { color: var(--ios-gray6) !important; }

/* Warna tambahan iOS */
.text-purple    { color: #af52de !important; }
.text-pink      { color: #ff2d55 !important; }
.text-teal      { color: #5ac8fa !important; }
.text-indigo    { color: #5856d6 !important; }
.text-yellow    { color: #ffcc00 !important; }
.text-brown     { color: #a2845e !important; }

/* ============================================================
   BACKGROUND COLOR — iOS STYLE
   ============================================================ */
.bg-primary   { background-color: var(--ios-blue) !important; }
.bg-success   { background-color: var(--ios-green) !important; }
.bg-danger    { background-color: var(--ios-red) !important; }
.bg-warning   { background-color: var(--ios-orange) !important; }
.bg-info      { background-color: var(--ios-blue) !important; }
.bg-secondary { background-color: var(--ios-gray) !important; }

.bg-dark      { background-color: var(--ios-label) !important; }
.bg-light     { background-color: var(--ios-gray6) !important; }
.bg-white     { background-color: #fff !important; }
.bg-black     { background-color: #000 !important; }

.bg-gray      { background-color: var(--ios-gray) !important; }
.bg-gray-2    { background-color: var(--ios-gray2) !important; }
.bg-gray-3    { background-color: var(--ios-gray3) !important; }
.bg-gray-4    { background-color: var(--ios-gray4) !important; }
.bg-gray-5    { background-color: var(--ios-gray5) !important; }
.bg-gray-6    { background-color: var(--ios-gray6) !important; }

.bg-purple    { background-color: #af52de !important; }
.bg-pink      { background-color: #ff2d55 !important; }
.bg-teal      { background-color: #5ac8fa !important; }
.bg-indigo    { background-color: #5856d6 !important; }
.bg-yellow    { background-color: #ffcc00 !important; }
.bg-brown     { background-color: #a2845e !important; }

/* Varian transparan (tinted) untuk background */
.bg-primary-tinted   { background-color: rgba(0, 122, 255, 0.15) !important; }
.bg-success-tinted   { background-color: rgba(52, 199, 89, 0.15) !important; }
.bg-danger-tinted    { background-color: rgba(255, 59, 48, 0.15) !important; }
.bg-warning-tinted   { background-color: rgba(255, 149, 0, 0.15) !important; }
.bg-info-tinted      { background-color: rgba(0, 122, 255, 0.15) !important; }
.bg-secondary-tinted { background-color: var(--ios-fill) !important; }

/* ============================================================
   BORDER COLOR — iOS STYLE
   ============================================================ */
.border-primary   { border-color: var(--ios-blue) !important; }
.border-success   { border-color: var(--ios-green) !important; }
.border-danger    { border-color: var(--ios-red) !important; }
.border-warning   { border-color: var(--ios-orange) !important; }
.border-info      { border-color: var(--ios-blue) !important; }
.border-secondary { border-color: var(--ios-gray) !important; }

.border-dark      { border-color: var(--ios-label) !important; }
.border-light     { border-color: var(--ios-gray5) !important; }
.border-white     { border-color: #fff !important; }
.border-black     { border-color: #000 !important; }

.border-gray      { border-color: var(--ios-gray) !important; }
.border-gray-2    { border-color: var(--ios-gray2) !important; }
.border-gray-3    { border-color: var(--ios-gray3) !important; }
.border-gray-4    { border-color: var(--ios-gray4) !important; }
.border-gray-5    { border-color: var(--ios-gray5) !important; }
.border-gray-6    { border-color: var(--ios-gray6) !important; }

/* ============================================================
   BORDER UTILITY (tambah/lepas border)
   ============================================================ */
.border        { border: 1px solid rgba(60, 60, 67, 0.2) !important; }
.border-0      { border: 0 !important; }
.border-top    { border-top: 1px solid rgba(60, 60, 67, 0.2) !important; }
.border-bottom { border-bottom: 1px solid rgba(60, 60, 67, 0.2) !important; }
.border-start  { border-left: 1px solid rgba(60, 60, 67, 0.2) !important; }
.border-end    { border-right: 1px solid rgba(60, 60, 67, 0.2) !important; }

.border-top-0    { border-top: 0 !important; }
.border-bottom-0 { border-bottom: 0 !important; }
.border-start-0  { border-left: 0 !important; }
.border-end-0    { border-right: 0 !important; }

/* Border tipis 0.5px (khas iOS) */
.border-hairline       { border: 0.5px solid rgba(60, 60, 67, 0.2) !important; }
.border-top-hairline   { border-top: 0.5px solid rgba(60, 60, 67, 0.2) !important; }
.border-bottom-hairline{ border-bottom: 0.5px solid rgba(60, 60, 67, 0.2) !important; }

/* Radius */
.rounded-0   { border-radius: 0 !important; }
.rounded-sm  { border-radius: var(--ios-radius-sm) !important; }
.rounded     { border-radius: var(--ios-radius) !important; }
.rounded-lg  { border-radius: var(--ios-radius-lg) !important; }
.rounded-pill{ border-radius: var(--ios-radius-pill) !important; }
.rounded-circle { border-radius: 50% !important; }

/* ============================================================
   OPACITY UTILITY
   ============================================================ */
.opacity-0   { opacity: 0 !important; }
.opacity-25  { opacity: 0.25 !important; }
.opacity-50  { opacity: 0.5 !important; }
.opacity-75  { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* ============================================================
   SHADOW UTILITY
   ============================================================ */
.shadow-none { box-shadow: none !important; }
.shadow-sm   { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important; }
.shadow      { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important; }
.shadow-md   { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; }
.shadow-lg   { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important; }

/* ============================================================
   TEXT ALIGN & DECORATION
   ============================================================ */
.text-start  { text-align: left !important; }
.text-end    { text-align: right !important; }
.text-center { text-align: center !important; }
.text-justify{ text-align: justify !important; }

.text-nowrap { white-space: nowrap !important; }
.text-break  { word-wrap: break-word !important; word-break: break-word !important; }
.text-truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.text-uppercase  { text-transform: uppercase !important; }
.text-lowercase  { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.text-decoration-none      { text-decoration: none !important; }
.text-decoration-underline { text-decoration: underline !important; }
.text-decoration-line-through { text-decoration: line-through !important; }

.fw-light    { font-weight: 300 !important; }
.fw-normal   { font-weight: 400 !important; }
.fw-medium   { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold     { font-weight: 700 !important; }

.fst-italic  { font-style: italic !important; }
.fst-normal  { font-style: normal !important; }

/* ============================================================
   FONT SIZE UTILITY
   ============================================================ */
.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

.fs-xs { font-size: 0.6875rem !important; }   /* 11px */
.fs-sm { font-size: 0.8125rem !important; }   /* 13px */
.fs-md { font-size: 0.9375rem !important; }   /* 15px */
.fs-lg { font-size: 1.0625rem !important; }   /* 17px */
.fs-xl { font-size: 1.25rem !important; }     /* 20px */

/* ============================================================
   BADGE — iOS STYLE
   ============================================================ */

/* ---------- Base badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 20px;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;        /* 11px */
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 6px;
  vertical-align: middle;
  user-select: none;
}

/* Ikon di badge */
.badge .mdi {
  font-size: 0.75rem;
  line-height: 1;
}

/* ---------- Ukuran ---------- */
.badge-sm {
  min-height: 16px;
  padding: 0 0.375rem;
  font-size: 0.625rem;         /* 10px */
  border-radius: 4px;
}
.badge-sm .mdi { font-size: 0.625rem; }

.badge-lg {
  min-height: 24px;
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;        /* 13px */
  border-radius: 8px;
}
.badge-lg .mdi { font-size: 0.875rem; }

/* ---------- Pill (membulat penuh) ---------- */
.badge-pill {
  border-radius: var(--ios-radius-pill);
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

/* ============================================================
   VARIAN — SOLID (default)
   ============================================================ */
.badge-primary   { background-color: var(--ios-blue);   color: #fff; }
.badge-success   { background-color: var(--ios-green);  color: #fff; }
.badge-danger    { background-color: var(--ios-red);    color: #fff; }
.badge-warning   { background-color: var(--ios-orange); color: #fff; }
.badge-info      { background-color: var(--ios-blue);   color: #fff; }
.badge-secondary { background-color: var(--ios-gray);   color: #fff; }
.badge-dark      { background-color: var(--ios-label);  color: #fff; }
.badge-light     { background-color: var(--ios-gray6);  color: var(--ios-label); }
.badge-white     { background-color: #fff;              color: var(--ios-label); }

.badge-purple    { background-color: #af52de; color: #fff; }
.badge-pink      { background-color: #ff2d55; color: #fff; }
.badge-teal      { background-color: #5ac8fa; color: #fff; }
.badge-indigo    { background-color: #5856d6; color: #fff; }
.badge-yellow    { background-color: #ffcc00; color: #000; }
.badge-brown     { background-color: #a2845e; color: #fff; }

/* ============================================================
   VARIAN — TINTED (transparan berwarna, khas iOS)
   ============================================================ */
.badge-tinted-primary   { background-color: rgba(0, 122, 255, 0.15);  color: var(--ios-blue); }
.badge-tinted-success   { background-color: rgba(52, 199, 89, 0.15);  color: var(--ios-green); }
.badge-tinted-danger    { background-color: rgba(255, 59, 48, 0.15);  color: var(--ios-red); }
.badge-tinted-warning   { background-color: rgba(255, 149, 0, 0.15);  color: var(--ios-orange); }
.badge-tinted-info      { background-color: rgba(0, 122, 255, 0.15);  color: var(--ios-blue); }
.badge-tinted-secondary { background-color: var(--ios-fill);          color: var(--ios-label); }
.badge-tinted-purple    { background-color: rgba(175, 82, 222, 0.15); color: #af52de; }
.badge-tinted-pink      { background-color: rgba(255, 45, 85, 0.15);  color: #ff2d55; }
.badge-tinted-teal      { background-color: rgba(90, 200, 250, 0.15); color: #3aa8d8; }
.badge-tinted-gray      { background-color: rgba(120, 120, 128, 0.15);color: var(--ios-gray); }

/* ============================================================
   VARIAN — OUTLINE (border tipis, latar transparan)
   ============================================================ */
.badge-outline-primary {
  background-color: transparent;
  color: var(--ios-blue);
  box-shadow: inset 0 0 0 1px var(--ios-blue);
}
.badge-outline-success {
  background-color: transparent;
  color: var(--ios-green);
  box-shadow: inset 0 0 0 1px var(--ios-green);
}
.badge-outline-danger {
  background-color: transparent;
  color: var(--ios-red);
  box-shadow: inset 0 0 0 1px var(--ios-red);
}
.badge-outline-warning {
  background-color: transparent;
  color: var(--ios-orange);
  box-shadow: inset 0 0 0 1px var(--ios-orange);
}
.badge-outline-secondary {
  background-color: transparent;
  color: var(--ios-secondary-label);
  box-shadow: inset 0 0 0 1px var(--ios-gray3);
}
.badge-outline-gray {
  background-color: transparent;
  color: var(--ios-gray);
  box-shadow: inset 0 0 0 1px var(--ios-gray4);
}

/* ============================================================
   VARIAN — DOT (titik status kecil)
   ============================================================ */
.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  background-color: var(--ios-gray);
  vertical-align: middle;
}

.badge-dot.badge-dot-primary   { background-color: var(--ios-blue); }
.badge-dot.badge-dot-success   { background-color: var(--ios-green); }
.badge-dot.badge-dot-danger    { background-color: var(--ios-red); }
.badge-dot.badge-dot-warning   { background-color: var(--ios-orange); }
.badge-dot.badge-dot-secondary { background-color: var(--ios-gray); }

/* Dot dengan pulse (live indicator) */
.badge-dot-pulse {
  position: relative;
}
.badge-dot-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: inherit;
  opacity: 0.4;
  animation: badge-dot-pulse 1.5s var(--ios-ease) infinite;
}
@keyframes badge-dot-pulse {
  0%   { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ============================================================
   BADGE — DI DALAM KOMPONEN LAIN
   ============================================================ */

/* Badge di dalam tombol */
.btn .badge {
  margin-left: 0.375rem;
  background-color: rgba(255, 255, 255, 0.25);
  color: inherit;
}
.btn-gray .badge,
.btn-light .badge {
  background-color: rgba(0, 0, 0, 0.08);
}

/* Badge counter di tombol ikon (pojok kanan atas) */
.btn-icon {
  position: relative;
}
.btn-icon .badge-counter {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background-color: var(--ios-red);
  border-radius: 9px;
  border: 2px solid #fff;
  box-sizing: content-box;
}

/* Badge di tabbar (sudah ada .tabbar-badge, ini alias) */
.badge-tabbar {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background-color: var(--ios-red);
  border-radius: 8px;
}

/* Badge di list item (di kanan) */
.list-item .badge {
  flex-shrink: 0;
  margin-left: auto;
}

/* Badge di navbar */
.navbar-btn .badge-counter {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background-color: var(--ios-red);
  border-radius: 8px;
}

/* ============================================================
   BADGE GROUP (beberapa badge berdampingan)
   ============================================================ */
.badge-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

/* ============================================================
   STATUS BADGE (kombinasi dot + teks)
   ============================================================ */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--ios-gray6);
  color: var(--ios-label);
  border-radius: var(--ios-radius-pill);
}

.badge-status .badge-dot {
  width: 6px;
  height: 6px;
}

/* Status warna */
.badge-status.status-success { background-color: rgba(52, 199, 89, 0.12); color: var(--ios-green); }
.badge-status.status-success .badge-dot { background-color: var(--ios-green); }

.badge-status.status-warning { background-color: rgba(255, 149, 0, 0.12); color: var(--ios-orange); }
.badge-status.status-warning .badge-dot { background-color: var(--ios-orange); }

.badge-status.status-danger { background-color: rgba(255, 59, 48, 0.12); color: var(--ios-red); }
.badge-status.status-danger .badge-dot { background-color: var(--ios-red); }

.badge-status.status-primary { background-color: rgba(0, 122, 255, 0.12); color: var(--ios-blue); }
.badge-status.status-primary .badge-dot { background-color: var(--ios-blue); }

/* ============================================================
   BADGE — POSISI ABSOLUT (menempel di elemen)
   ============================================================ */
.badge-absolute {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 1;
}

/* Wrapper untuk badge absolute */
.badge-host {
  position: relative;
  display: inline-flex;
}

/* Badge di avatar */
.avatar .badge-counter {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background-color: var(--ios-red);
  border-radius: 8px;
  border: 2px solid #fff;
  box-sizing: content-box;
}

/* Utility lebar */
.w-25  { width: 25%  !important; }
.w-50  { width: 50%  !important; }
.w-60  { width: 60%  !important; }
.w-75  { width: 75%  !important; }
.w-100 { width: 100% !important; }
/* ============================================================
   RESPONSIVE VISIBILITY — HIDE / SHOW
   Breakpoint mengikuti framework:
     xs  : <576px   (mobile)
     sm  : ≥576px
     md  : ≥768px   (tablet)
     lg  : ≥992px   (desktop)
     xl  : ≥1200px
     xxl : ≥1400px
   ============================================================ */

/* ---------- HIDE ON MOBILE (sembunyi <768px) ---------- */
.hide-on-mobile {
  display: none !important;
}
@media (min-width: 768px) {
  .hide-on-mobile {
    display: revert !important;
  }
}

/* ---------- HIDE ON DESKTOP (sembunyi ≥992px) ---------- */
.hide-on-desktop {
  display: revert !important;
}
@media (min-width: 992px) {
  .hide-on-desktop {
    display: none !important;
  }
}

/* ---------- HIDE ON TABLET (sembunyi 768px–991px) ---------- */
.hide-on-tablet {
  display: revert !important;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .hide-on-tablet {
    display: none !important;
  }
}

/* ---------- HIDE ON MED AND UP (sembunyi ≥768px) ---------- */
.hide-on-med-and-up {
  display: revert !important;
}
@media (min-width: 768px) {
  .hide-on-med-and-up {
    display: none !important;
  }
}

/* ---------- HIDE ON MED AND DOWN (sembunyi ≤991.98px) ---------- */
.hide-on-med-and-down {
  display: none !important;
}
@media (min-width: 992px) {
  .hide-on-med-and-down {
    display: revert !important;
  }
}

/* ---------- HIDE ON SM AND UP (sembunyi ≥576px) ---------- */
.hide-on-sm-and-up {
  display: revert !important;
}
@media (min-width: 576px) {
  .hide-on-sm-and-up {
    display: none !important;
  }
}

/* ---------- HIDE ON SM AND DOWN (sembunyi ≤767.98px) ---------- */
.hide-on-sm-and-down {
  display: none !important;
}
@media (min-width: 768px) {
  .hide-on-sm-and-down {
    display: revert !important;
  }
}

/* ---------- HIDE ON LG AND UP (sembunyi ≥992px) ---------- */
.hide-on-lg-and-up {
  display: revert !important;
}
@media (min-width: 992px) {
  .hide-on-lg-and-up {
    display: none !important;
  }
}

/* ---------- HIDE ON LG AND DOWN (sembunyi ≤1199.98px) ---------- */
.hide-on-lg-and-down {
  display: none !important;
}
@media (min-width: 1200px) {
  .hide-on-lg-and-down {
    display: revert !important;
  }
}

/* ---------- HIDE ON XL AND UP (sembunyi ≥1200px) ---------- */
.hide-on-xl-and-up {
  display: revert !important;
}
@media (min-width: 1200px) {
  .hide-on-xl-and-up {
    display: none !important;
  }
}

/* ---------- HIDE ON XL AND DOWN (sembunyi ≤1399.98px) ---------- */
.hide-on-xl-and-down {
  display: none !important;
}
@media (min-width: 1400px) {
  .hide-on-xl-and-down {
    display: revert !important;
  }
}

/* ---------- HIDE ON PRINT ---------- */
@media print {
  .hide-on-print {
    display: none !important;
  }
}

/* ---------- HIDE ON LANDSCAPE / PORTRAIT ---------- */
@media (orientation: landscape) {
  .hide-on-landscape {
    display: none !important;
  }
}
@media (orientation: portrait) {
  .hide-on-portrait {
    display: none !important;
  }
}

/* ---------- SHOW ONLY (kebalikan hide-on) ---------- */
/* Hanya tampil di mobile (<768px) */
.show-on-mobile {
  display: revert !important;
}
@media (min-width: 768px) {
  .show-on-mobile {
    display: none !important;
  }
}

/* Hanya tampil di desktop (≥992px) */
.show-on-desktop {
  display: none !important;
}
@media (min-width: 992px) {
  .show-on-desktop {
    display: revert !important;
  }
}

/* Hanya tampil di tablet (768–991px) */
.show-on-tablet {
  display: none !important;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .show-on-tablet {
    display: revert !important;
  }
}
/* ============================================================
   ARTICLE BODY — Styling untuk konten WYSIWYG (Quill/HTML)
   ============================================================ */
.article-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ios-label);
  word-wrap: break-word;
}

/* Paragraf */
.article-body p {
  margin: 0 0 1.25em;
}
.article-body p:last-child {
  margin-bottom: 0;
}

/* Heading */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  font-weight: 700;
  color: var(--ios-label);
  line-height: 1.35;
  margin: 1.8em 0 0.7em;
}
.article-body h1:first-child,
.article-body h2:first-child,
.article-body h3:first-child {
  margin-top: 0;
}

.article-body h1 { font-size: 1.5rem; }
.article-body h2 { font-size: 1.3125rem; }
.article-body h3 { font-size: 1.125rem; }
.article-body h4 { font-size: 1rem; }
.article-body h5 { font-size: 0.9375rem; }
.article-body h6 { font-size: 0.875rem; color: var(--ios-secondary-label); }

/* Link */
.article-body a {
  color: var(--ios-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 122, 255, 0.3);
  transition: border-color 0.15s var(--ios-ease);
}
.article-body a:hover {
  border-bottom-color: var(--ios-blue);
}

/* List */
.article-body ul,
.article-body ol {
  padding-left: 1.5em;
  margin: 0 0 1.25em;
}
.article-body ul { list-style-type: disc; }
.article-body ol { list-style-type: decimal; }
.article-body li { margin-bottom: 0.5em; }
.article-body li:last-child { margin-bottom: 0; }

/* Image */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ios-radius-sm);
  margin: 1.5em 0;
  display: block;
}
.article-body figure {
  margin: 1.5em 0;
}
.article-body figcaption {
  font-size: 0.8125rem;
  color: var(--ios-secondary-label);
  text-align: center;
  margin-top: 0.375rem;
  font-style: italic;
}

/* Blockquote */
.article-body blockquote {
  border-left: 4px solid var(--ios-blue);
  background: var(--ios-gray6);
  padding: 0.875rem 1.125rem;
  margin: 1.5em 0;
  border-radius: 0 var(--ios-radius-sm) var(--ios-radius-sm) 0;
  font-style: italic;
  color: var(--ios-secondary-label);
}
.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */
.article-body code {
  background: var(--ios-gray6);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #ff2d55; /* iOS Pink */
}

.article-body pre {
  background: var(--ios-gray6);
  padding: 1rem;
  border-radius: var(--ios-radius-sm);
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 1.5em 0;
  border: 1px solid rgba(60, 60, 67, 0.15);
}
.article-body pre code {
  background: transparent;
  padding: 0;
  color: var(--ios-label);
}

/* Divider */
.article-body hr {
  border: none;
  border-top: 0.5px solid rgba(60, 60, 67, 0.2);
  margin: 2.5em 0;
}

/* Table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.875rem;
  overflow-x: auto;
  display: block;
}
.article-body th,
.article-body td {
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(60, 60, 67, 0.2);
  text-align: left;
}
.article-body th {
  background: var(--ios-gray6);
  font-weight: 600;
}

/* Video / iframe */
.article-body iframe,
.article-body video {
  max-width: 100%;
  border-radius: var(--ios-radius-sm);
  margin: 1.5em 0;
}

/* Strong & emphasis */
.article-body strong { font-weight: 700; color: var(--ios-label); }
.article-body em { font-style: italic; }

/* Responsive — sedikit lebih lega di layar besar */
@media (min-width: 481px) {
  .article-body { font-size: 1.0625rem; }
}
