/* Halal Development Resources Center + eBizMal — public website
   Palette: eBizMal corporate purple, kunyit (turmeric) gold accent taken
   from the logo's warm face, blue for planned modules. Halal badges stay
   green so they always read as "halal". One bold motif: the songket band. */

:root {
  --brand: #3B0F9E;
  --brand-2: #5E17EB;
  --brand-soft: #EEE8FD;
  --kunyit: #E1A23A;
  --kunyit-ink: #8A5A0B;
  --indigo: #1F4E8C;
  --indigo-soft: #E7EEF8;
  --paper: #FAF9FC;
  --surface: #FFFFFF;
  --ink: #1D1630;
  --muted: #625B70;
  --line: #DCD7E6;
  --halal: #0F7A3D;
  --danger: #B42318;

  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);

  --radius-s: 6px;
  --radius-m: 12px;
  --gutter: 16px;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #34168A;
    --brand-2: #A98BF7;
    --brand-soft: #231A3A;
    --kunyit: #E8B04F;
    --kunyit-ink: #F1C777;
    --indigo: #9DB8E6;
    --indigo-soft: #172338;
    --paper: #120F1A;
    --surface: #1A1625;
    --ink: #ECE8F4;
    --muted: #A69FB8;
    --line: #2F2840;
    --halal: #4CC27E;
    --danger: #F97066;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #34168A; --brand-2: #A98BF7; --brand-soft: #231A3A;
  --kunyit: #E8B04F; --kunyit-ink: #F1C777; --indigo: #9DB8E6; --indigo-soft: #172338;
  --paper: #120F1A; --surface: #1A1625; --ink: #ECE8F4; --muted: #A69FB8;
  --line: #2F2840; --halal: #4CC27E; --danger: #F97066; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--kunyit); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; font-variation-settings: "wdth" 85; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.muted { color: var(--muted); }

/* ------------------------------------------------------------ header */
.site-header { background: var(--brand); color: #F7F4FF; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; padding: 8px 0; }
.brand-logo { flex: none; display: inline-flex; align-items: center; background: #FFFFFF; border-radius: 8px; padding: 4px 8px; height: 40px; }
.brand-logo img { height: 32px; width: auto; max-width: 160px; object-fit: contain; }
/* a wide wordmark already says eBizMal; a square icon gets the name beside it */
.brand .brand-name { display: none; }
.brand.show-name .brand-name { display: block; }
/* a square icon (the eBizMal cube) sits straight on the purple; a wide
   wordmark keeps the white tile so dark lettering stays readable */
.brand.show-name .brand-logo { background: transparent; padding: 0; }
.brand.show-name .brand-logo img { height: 40px; }
@media (max-width: 519px) { .brand-sub { display: none; } .brand.show-name .brand-sub { display: block; } }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.75rem; opacity: 0.75; }
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 8px 10px; border-radius: var(--radius-s); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,0.1); }
.nav .nav-cta { background: var(--kunyit); color: #2A1B02; font-weight: 600; }
.nav .nav-cta:hover { background: #EEB65A; }
.lang { display: flex; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-s); overflow: hidden; }
.lang a { padding: 5px 9px; font-size: 0.8rem; text-decoration: none; }
.lang a[aria-current="true"] { background: rgba(255,255,255,0.16); font-weight: 700; }
@media (max-width: 719px) {
  .site-header .wrap { padding-top: 6px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 2px 4px; }
  .nav a { padding: 6px 8px; }
  .nav .nav-cta { margin-left: auto; }
}

/* ------------------------------------------------------------ hero */
.hero { background: var(--brand); color: #F7F4FF; position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 72px; }
.hero .wrap > * { min-width: 0; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; padding-top: 72px; padding-bottom: 96px; } }
.hero h1 { color: #FFFFFF; max-width: 13ch; }
.hero .lede { margin-top: 18px; color: #E2DAFB; }
.hero-facts { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; color: #E2DAFB; font-size: var(--step--1); }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: var(--step-2); color: var(--kunyit); }

/* the songket band: eight-point stars woven along the hero's lower edge */
.songket {
  height: 28px;
  background-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg fill='%23E1A23A'%3E%3Crect x='8' y='8' width='12' height='12'/%3E%3Crect x='8' y='8' width='12' height='12' transform='rotate(45 14 14)'/%3E%3C/g%3E%3Cg fill='%233B0F9E'%3E%3Crect x='11.5' y='11.5' width='5' height='5' transform='rotate(45 14 14)'/%3E%3C/g%3E%3Cg fill='%23E1A23A'%3E%3Cpath d='M0 12l2 2-2 2zM28 12l-2 2 2 2z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  border-top: 2px solid var(--kunyit);
  border-bottom: 2px solid var(--kunyit);
}

/* halal checker */
.checker { background: var(--surface); color: var(--ink); border-radius: var(--radius-m); padding: 20px; box-shadow: 0 18px 40px -24px rgba(0,0,0,0.6); }
.checker h2 { font-size: var(--step-2); }
.checker > p { margin-top: 6px; color: var(--muted); font-size: var(--step--1); }
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; margin-top: 16px; background: var(--brand-soft); border-radius: var(--radius-s); padding: 3px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 6px 12px; border-radius: 4px; font-size: var(--step--1); font-weight: 600; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
.seg input:focus-visible + span { outline: 3px solid var(--kunyit); }
.search-row { display: flex; gap: 8px; margin-top: 12px; }
.search-row input[type="search"], .field {
  flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 11px 12px;
}
.search-row input[type="search"]:focus, .field:focus { border-color: var(--brand-2); outline: none; box-shadow: 0 0 0 3px rgba(225,162,58,0.35); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; border: 0; border-radius: var(--radius-s);
  padding: 11px 18px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #FFFFFF; }
.btn-primary:hover { filter: brightness(1.2); }
.btn-gold { background: var(--kunyit); color: #2A1B02; }
.btn-gold:hover { background: #EEB65A; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.results { margin-top: 14px; display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.results:empty { display: none; }
.result { min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.result strong { font-weight: 600; }
.result .meta { grid-column: 1; font-size: var(--step--1); color: var(--muted); }
.result .exp { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: var(--step--1); white-space: nowrap; }
.result .exp b { display: block; color: var(--halal); }
.result .exp.is-expired b { color: var(--danger); }
.result a { font-size: var(--step--1); color: var(--brand-2); grid-column: 1; }
.results-note { font-size: var(--step--1); color: var(--muted); padding: 4px 2px; }
.results-note a { color: inherit; }
.source-note { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }

/* ------------------------------------------------------------ sections */
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { max-width: 52ch; margin-top: 8px; color: var(--muted); }
.link-more { font-weight: 600; color: var(--brand-2); text-decoration-thickness: 2px; text-underline-offset: 4px; }
:root[data-theme="dark"] .link-more, :root[data-theme="dark"] .result a { color: var(--kunyit-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .link-more, :root:not([data-theme="light"]) .result a { color: var(--kunyit-ink); } }

/* platform modules: live ones get room, planned ones are a compact list */
.modules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 960px) { .modules { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.live { display: grid; gap: 16px; }
.live-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 22px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.live-item:hover { border-color: var(--brand-2); }
.live-item .icon { grid-row: span 3; width: 48px; height: 48px; border-radius: var(--radius-s); background: var(--brand); display: grid; place-items: center; }
.live-item h3 { font-size: var(--step-2); }
.live-item .go { font-weight: 600; color: var(--brand-2); margin-top: 6px; }
.status { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; vertical-align: middle; margin-left: 6px; letter-spacing: 0.01em; }
.status-live { background: #DDF3E5; color: #0B5A2C; }
.status-soon { background: var(--indigo-soft); color: var(--indigo); }
.planned { background: var(--indigo-soft); border-radius: var(--radius-m); padding: 22px; }
.planned h3 { color: var(--indigo); }
.planned ul { list-style: none; margin: 12px 0 0; padding: 0; }
.planned li { padding: 12px 0; border-top: 1px solid rgba(31,78,140,0.18); }
.planned li:first-child { border-top: 0; }
.planned li strong { display: block; }
.planned li span { font-size: var(--step--1); color: var(--muted); }
.planned .parts { margin: 8px 0 0; padding-left: 14px; border-left: 2px solid rgba(31,78,140,0.25); }
.planned .parts li { padding: 6px 0; border-top: 0; }
.planned .parts li strong { font-size: var(--step--1); }

/* ------------------------------------------------------------ market */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 500; font-size: var(--step--1); }
.chip[aria-current="true"], .chip:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0 22px; }
.toolbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--step--1); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--halal); }
select.field { flex: none; padding: 9px 10px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-img { position: relative; aspect-ratio: 1; border-radius: var(--radius-m); overflow: hidden; background: var(--brand-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .halal-chip { position: absolute; left: 8px; bottom: 8px; }
.card-name { font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-shop { font-size: var(--step--1); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.price s { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--muted); margin-left: 6px; }

.halal-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--halal); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.halal-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; border: 1.5px solid var(--halal); border-radius: var(--radius-m); background: color-mix(in srgb, var(--halal) 7%, var(--surface)); }
.halal-card svg { grid-row: span 4; color: var(--halal); }
.halal-card strong { color: var(--halal); }
.halal-card .meta { font-size: var(--step--1); color: var(--muted); }
.halal-card a { font-size: var(--step--1); font-weight: 600; color: var(--halal); }

.empty { padding: 40px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius-m); color: var(--muted); }
.empty p + p { margin-top: 10px; }

/* product page */
.crumbs { font-size: var(--step--1); color: var(--muted); margin: 22px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: inherit; }
.product { display: grid; gap: 28px; }
@media (min-width: 900px) { .product { grid-template-columns: 1fr 1fr; gap: 48px; } }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius-m); overflow: hidden; background: var(--brand-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: var(--radius-s); overflow: hidden; width: 64px; height: 64px; flex: none; cursor: pointer; background: none; }
.thumbs button[aria-pressed="true"] { border-color: var(--kunyit); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: var(--step-3); font-variation-settings: normal; max-width: none; }
.product-info .price { font-size: var(--step-3); margin: 12px 0 18px; }
.product-info .halal-card { margin-bottom: 18px; }
.shop-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0; text-decoration: none; }
.shop-line img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; }
.buy-box .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.prose { line-height: 1.7; max-width: 68ch; overflow-wrap: anywhere; }
.prose p + p { margin-top: 0.8em; }

/* shop header */
.shop-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 28px 0 8px; }
.shop-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.shop-head h1 { font-size: var(--step-3); max-width: none; font-variation-settings: normal; }

/* pagination */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; padding: 8px 12px; border-radius: var(--radius-s); border: 1px solid var(--line); text-align: center; text-decoration: none; }
.pager [aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .disabled { opacity: 0.45; }

/* sellers */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding-top: 18px; border-top: 3px solid var(--kunyit); }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); color: var(--kunyit-ink); display: block; line-height: 1; margin-bottom: 8px; }
.steps p { color: var(--muted); margin-top: 6px; }
.seller-band { background: var(--brand); color: #F7F4FF; border-radius: var(--radius-m); padding: 32px; display: grid; gap: 18px; }
@media (min-width: 860px) { .seller-band { grid-template-columns: 1fr auto; align-items: center; } }
.seller-band p { color: #E2DAFB; margin-top: 8px; max-width: 52ch; }
.seller-band .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* apps */
.apps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ------------------------------------------------------------ footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { font-size: var(--step-0); color: var(--ink); margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .results .result { animation: rise 180ms ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 519px) {
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .seg span { text-align: center; height: 100%; display: flex; align-items: center; justify-content: center; line-height: 1.3; }
}

/* CJK headlines: characters are wider than Latin "ch" units */
:lang(zh-Hans) .hero h1 { max-width: 10em; }
:lang(zh-Hans) .lede { max-width: 24em; }

.halal-card .disclaimer { grid-column: 2; font-size: 0.75rem; margin-top: 4px; }

/* seller directory + seller tags (Manufacturer / Bulk orders only) */
.seller-finder { margin-top: 12px; }
.seller-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.shop-head .seller-tags, .shop-line .seller-tags { display: flex; margin-top: 6px; }
.seller-tag { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); }
.seller-tag-bulk { background: color-mix(in srgb, var(--kunyit) 22%, var(--surface)); color: var(--kunyit-ink); }
:root[data-theme="dark"] .seller-tag { color: var(--brand-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seller-tag { color: var(--brand-2); } }
.seller-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .seller-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seller-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); text-decoration: none; }
.seller-card:hover { border-color: var(--brand-2); }
.seller-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--brand-soft); }
.seller-body { display: grid; gap: 4px; min-width: 0; }
.seller-meta { font-size: var(--step--1); overflow-wrap: anywhere; }
.seller-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.seller-badges:empty { display: none; }

/* waktu solat + qibla */
.zone-form { margin-top: 4px; }
.zone-label { display: block; font-weight: 600; margin-bottom: 6px; }
.zone-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.zone-row .field { flex: 1 1 320px; min-width: 0; max-width: 560px; }
.zone-row .btn { display: inline-flex; align-items: center; gap: 6px; }
.zone-status { min-height: 1.4em; margin-top: 6px; font-size: var(--step--1); }
.solat-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
@media (min-width: 900px) { .solat-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.times-card, .qibla-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; min-width: 0; }
.times-card h2, .qibla-card h2 { font-size: var(--step-1); }
.times-head .dates { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-weight: 600; }
.next-box { display: grid; gap: 2px; margin: 16px 0 6px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--brand); color: #fff; }
.next-box .muted { color: rgba(255,255,255,0.78); font-size: var(--step--1); }
.next-box strong { font-family: var(--font-display); font-size: var(--step-2); }
.next-box .countdown { color: var(--kunyit); font-weight: 600; }
.times { list-style: none; margin: 10px 0 0; padding: 0; }
.times li { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 4px; border-top: 1px solid var(--line); }
.times li:first-child { border-top: 0; }
.times li.is-main span { font-weight: 600; }
.times li.is-main time { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.times li.is-minor { color: var(--muted); font-size: var(--step--1); }
.times li.is-minor time { font-variant-numeric: tabular-nums; }
.times li.is-next { background: var(--brand-soft); border-radius: var(--radius-s); border-top-color: transparent; padding-left: 10px; padding-right: 10px; }
.times li.is-next + li { border-top-color: transparent; }
.qibla-card { display: grid; gap: 8px; justify-items: center; text-align: center; }
.qibla-card h2 { justify-self: start; }
.compass { position: relative; width: min(100%, 260px); aspect-ratio: 1; margin: 6px 0; }
.compass svg { width: 100%; height: 100%; overflow: visible; }
.compass [data-dial] { transition: transform 0.25s ease-out; transform-origin: 0 0; }
.dial-face { fill: var(--brand-soft); stroke: var(--line); stroke-width: 1.5; }
.tick { stroke: var(--muted); stroke-width: 1.2; }
.tick-major { stroke: var(--ink); stroke-width: 2.2; }
.cardinal { font: 700 15px var(--font-body); fill: var(--muted); text-anchor: middle; dominant-baseline: middle; }
.cardinal-n { fill: var(--danger); }
.needle { stroke: var(--brand-2); stroke-width: 4; stroke-linecap: round; }
.needle-head { fill: var(--brand-2); }
.kaaba { fill: #1D1630; }
.kaaba-band { fill: var(--kunyit); }
.hub { fill: var(--ink); }
.heading-mark { position: absolute; left: 50%; top: -8px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--kunyit); transform: translateX(-50%); display: none; }
.compass.is-live .heading-mark { display: block; }
.compass.is-facing .dial-face { fill: color-mix(in srgb, var(--halal) 18%, var(--surface)); stroke: var(--halal); }
.bearing strong { font-family: var(--font-display); font-size: var(--step-2); }
.compass-status { min-height: 1.4em; font-weight: 600; }
.compass-status.is-facing { color: var(--halal); }
.small { font-size: var(--step--1); }
:root[data-theme="dark"] .kaaba { fill: #0B0910; stroke: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kaaba { fill: #0B0910; stroke: var(--muted); } }
.timetable-section { padding-top: 32px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.timetable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.timetable th, .timetable td { padding: 9px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.timetable thead th { position: sticky; top: 0; background: var(--brand-soft); font-weight: 700; }
.timetable tbody th { font-weight: 600; }
.timetable tr.is-today { background: color-mix(in srgb, var(--kunyit) 18%, var(--surface)); }
.timetable tr:last-child th, .timetable tr:last-child td { border-bottom: 0; }
.solat-source { margin: 24px 0 8px; color: var(--muted); font-size: var(--step--1); max-width: 70ch; }

/* wholesale board */
.wholesale-how { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
@media (min-width: 760px) { .wholesale-how { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wholesale-how > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--brand-soft); }
.wholesale-how span { font-size: var(--step--1); }
.rfq-card { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); text-decoration: none; min-width: 0; }
.rfq-card:hover { border-color: var(--brand-2); }
.rfq-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rfq-top strong { overflow-wrap: anywhere; }
.rfq-qty { font-family: var(--font-display); font-weight: 700; white-space: nowrap; color: var(--brand); }
:root[data-theme="dark"] .rfq-qty { color: var(--brand-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rfq-qty { color: var(--brand-2); } }
.rfq-meta, .rfq-foot { font-size: var(--step--1); overflow-wrap: anywhere; }
.rfq-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rfq-tags:empty { display: none; }
.rfq-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 20px; }
.rfq-facts > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.rfq-facts dt { font-size: var(--step--1); color: var(--muted); }
.rfq-facts dd { margin: 2px 0 0; font-weight: 600; }
