/* NexHub - stylesheet (tanpa framework, tanpa CDN) */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-strong: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --emerald-line: #a7f3d0;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --red-line: #fecaca;
  --amber-soft: #fffbeb;
  --amber-line: #fde68a;
  --amber-text: #92400e;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, .18);
  --nav-h: 64px;
  --bn-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #d1fae5; color: #064e3b; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(5, 150, 105, .45); outline-offset: 2px; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.text-emerald { color: var(--emerald); }

/* Ikon */
.icon {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- NAVBAR ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  background: var(--emerald); color: #fff; padding: 8px; border-radius: 12px;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  transition: transform .3s ease;
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand:hover .brand-mark { transform: rotate(6deg); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); line-height: 1; }
.brand-name span { color: var(--emerald); }
.brand-sub { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 4px; line-height: 1; }
.brand-tag { display: none; font-size: 9px; font-weight: 600; color: var(--muted-2); margin-top: 2px; line-height: 1; }

.tabs { display: none; gap: 4px; background: var(--line-soft); padding: 6px; border-radius: var(--radius-sm); border: 1px solid rgba(226, 232, 240, .7); }
.tab-btn {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  padding: 8px 14px; font-size: .875rem; font-weight: 500; border-radius: 8px; transition: all .2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-strong); }
.tab-btn.is-active { background: #fff; color: var(--text-strong); font-weight: 600; box-shadow: var(--shadow-sm); border-color: rgba(226, 232, 240, .6); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.user-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--line-soft); border: 1px solid var(--line); padding: 4px 12px; border-radius: var(--radius-sm);
  font-size: .75rem; font-weight: 700; color: #334155; max-width: 180px;
}
.user-badge .icon { color: var(--emerald); width: 16px; height: 16px; }
.user-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- TOMBOL ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 11px 18px; font-size: .875rem; font-weight: 600; line-height: 1.2;
  transition: background .2s, transform .1s, border-color .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 14px; font-size: .75rem; font-weight: 700; }
.btn-block { width: 100%; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--dark-2); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover:not(:disabled) { background: var(--emerald-dark); }
.btn-light { background: #fff; color: var(--text); border-color: var(--line); }
.btn-light:hover:not(:disabled) { border-color: #cbd5e1; background: var(--bg); }
.btn-done { background: var(--emerald-soft); color: var(--emerald-dark); border-color: var(--emerald-line); }

/* ---------- LAYOUT UTAMA ---------- */
.main { flex: 1 0 auto; padding-top: 24px; padding-bottom: calc(var(--bn-h) + 32px); }
.tab-content { animation: fadeIn .4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.hero {
  background: linear-gradient(135deg, #064e3b 0%, #047857 55%, #0f766e 100%);
  color: #ecfdf5; border-radius: 20px; padding: 24px 20px; margin-bottom: 28px;
  display: grid; gap: 18px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6ee7b7; margin-bottom: 8px; }
.hero h1 { font-size: 1.5rem; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hero-sub { margin-top: 10px; color: #a7f3d0; font-size: .9375rem; max-width: 40rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); padding: 7px 12px; border-radius: 999px;
}

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.section-head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-strong); }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.search { position: relative; width: 100%; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 16px; height: 16px; pointer-events: none; }
.search input[type=search] { padding-left: 38px; }

/* Form dasar */
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: .875rem; box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(5, 150, 105, .12); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .08); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0;
}
.form { display: flex; flex-direction: column; gap: 16px; }
.row-2, .row-3 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.field-error { font-size: .75rem; color: var(--red); }
.form-error { background: var(--red-soft); border: 1px solid var(--red-line); color: #b91c1c; font-size: .8125rem; font-weight: 600; padding: 10px 12px; border-radius: var(--radius-sm); margin: 0; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check span {
  display: inline-block; padding: 7px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--muted); transition: all .15s;
}
.check input:checked + span { background: var(--emerald-soft); border-color: var(--emerald); color: var(--emerald-dark); }
.check input:focus-visible + span { outline: 3px solid rgba(5, 150, 105, .45); outline-offset: 2px; }

/* Kartu umum */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); }
.card-title { font-size: 1.125rem; font-weight: 700; color: var(--text-strong); display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.small-title { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--emerald-dark); border: 0; padding: 4px 0 0; }
.form-card { max-width: 42rem; margin: 0 auto; }
.form-card .form { margin-top: 18px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber-text);
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: .8125rem;
}
.notice .icon { margin-top: 2px; }

/* Gate (belum masuk) & pilihan Daftar/Masuk */
.gate { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 22px; }
.gate h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: var(--text-strong); }
.gate p { max-width: 28rem; font-size: .9375rem; }
.gate-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--emerald-soft); color: var(--emerald); display: grid; place-items: center; border: 1px solid var(--emerald-line); }
.gate-icon .icon { width: 26px; height: 26px; }
.gate-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 20rem; margin-top: 6px; }
.auth-seg { display: flex; width: 100%; margin-bottom: 14px; }
.auth-seg .seg-btn { flex: 1; padding: 9px 14px; font-size: .8125rem; }
input[type=password] { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .875rem; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
input[type=password]:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(5, 150, 105, .12); }
input[type=password].invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .08); }

/* ---------- KATALOG ---------- */
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 600; transition: all .15s;
}
.chip:hover { border-color: #cbd5e1; color: var(--text-strong); }
.chip.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.sort select { width: auto; min-width: 150px; padding-top: 8px; padding-bottom: 8px; }
#result-count { margin-bottom: 14px; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.product-visual {
  height: 112px; display: grid; place-items: center; font-size: 3.25rem; position: relative;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}
.product-visual[data-cat="rempah"] { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.product-visual[data-cat="kelapa"] { background: linear-gradient(135deg, #f0fdf4, #bbf7d0); }
.product-visual[data-cat="kopi-kakao"] { background: linear-gradient(135deg, #fefce8, #e7d3b0); }
.product-visual[data-cat="laut"] { background: linear-gradient(135deg, #ecfeff, #a5f3fc); }
.product-visual[data-cat="energi"] { background: linear-gradient(135deg, #f1f5f9, #cbd5e1); }
.product-visual[data-cat="atsiri"] { background: linear-gradient(135deg, #fdf4ff, #f5d0fe); }
.product-tag {
  position: absolute; top: 10px; left: 10px; background: rgba(15, 23, 42, .85); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px;
}
.product-tag.new { background: var(--emerald); }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--emerald-dark); }
.product-name { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--text-strong); }
.product-meta { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.product-meta .icon { width: 14px; height: 14px; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--text-strong); letter-spacing: -.01em; }
.price small { font-size: .75rem; font-weight: 600; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px; padding: 6px 10px; font-size: .6875rem; color: var(--muted-2); font-weight: 500; }
.fact strong { display: block; font-size: .8125rem; color: #334155; font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: var(--emerald-soft); color: var(--emerald-dark); border: 1px solid var(--emerald-line);
}
.product-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; padding-top: 4px; }

.empty { text-align: center; padding: 48px 16px; background: #fff; border: 1px dashed #cbd5e1; border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty > .icon { width: 32px; height: 32px; color: var(--muted-2); }
.empty .btn { margin-top: 8px; }

/* ---------- RFQ ---------- */
.seg { display: inline-flex; background: var(--line-soft); border: 1px solid var(--line); padding: 3px; border-radius: 10px; }
.seg-btn { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.seg-btn.is-active { background: #fff; color: var(--text-strong); box-shadow: var(--shadow-sm); }
.rfq-list { display: flex; flex-direction: column; gap: 16px; }
.rfq {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px; transition: border-color .2s;
}
.rfq:hover { border-color: #cbd5e1; }
.rfq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag-urgent {
  display: inline-flex; align-items: center; gap: 6px; background: var(--red-soft); color: #b91c1c;
  border: 1px solid var(--red-line); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; display: inline-block; animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } }
.tag-new { background: var(--emerald-soft); color: var(--emerald-dark); border: 1px solid var(--emerald-line); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; }
.rfq-loc { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; color: var(--muted-2); }
.rfq-loc .icon { width: 14px; height: 14px; }
.rfq h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 700; color: var(--text-strong); }
.rfq p.desc { font-size: .875rem; color: var(--muted); max-width: 56rem; margin-top: 8px; }
.rfq-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.rfq-facts .fact { padding: 8px 14px; border-radius: 12px; font-size: .75rem; }
.rfq-facts .fact strong { font-size: .875rem; color: var(--text-strong); }
.rfq-action { border-top: 1px solid var(--line-soft); padding-top: 14px; }

/* ---------- KALKULATOR ---------- */
.calc-layout { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
.calc-result { background: var(--dark); border-color: var(--dark); color: #e2e8f0; }
.calc-result h3 { color: #fff; font-size: 1.0625rem; font-weight: 700; }
.calc-big { margin: 14px 0 4px; font-size: 1.875rem; font-weight: 800; letter-spacing: -.02em; color: #6ee7b7; line-height: 1.1; word-break: break-word; }
.calc-big-sub { font-size: .875rem; color: #94a3b8; }
.calc-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.pill { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 12px; }
.pill span { display: block; font-size: .6875rem; color: #94a3b8; font-weight: 500; }
.pill strong { font-size: .9375rem; color: #fff; font-weight: 700; word-break: break-word; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.calc-table td { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: top; }
.calc-table td:last-child { text-align: right; font-weight: 600; color: #fff; padding-left: 12px; white-space: nowrap; }
.calc-table tr.sub td { color: #6ee7b7; font-weight: 700; }
.calc-table tr.sub td:last-child { color: #6ee7b7; }
.calc-note { font-size: .75rem; color: #94a3b8; margin-top: 12px; }
.calc-note.warn { color: #fcd34d; }
.calc-actions { display: grid; gap: 8px; margin-top: 16px; }
.calc-result .btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .16); }
.calc-result .btn-light:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }

/* ---------- MODAL ---------- */
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .6);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  animation: fadeBg .2s ease both;
}
@keyframes fadeBg { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; width: 100%; max-width: 38rem; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 22px 20px 26px; box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .4);
  animation: slideUp .3s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 800; color: var(--text-strong); letter-spacing: -.01em; }
.modal-close { border: 0; background: var(--line-soft); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.modal-close:hover { background: var(--line); color: var(--text-strong); }
.modal p.lead { color: var(--muted); font-size: .875rem; margin-bottom: 14px; }
.modal-visual { height: 96px; border-radius: 16px; display: grid; place-items: center; font-size: 3rem; margin-bottom: 14px; }
.spec { width: 100%; border-collapse: collapse; font-size: .8125rem; margin-bottom: 16px; }
.spec th, .spec td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.spec th { color: var(--muted); font-weight: 500; width: 38%; padding-right: 10px; }
.spec td { color: var(--text-strong); font-weight: 600; }
.modal hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.modal .form-title { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--emerald-dark); margin-bottom: 12px; }
.modal .checkline { display: flex; gap: 8px; align-items: center; font-size: .875rem; }
.modal .checkline input { width: 18px; height: 18px; accent-color: var(--emerald); }
.hint { font-size: .75rem; color: var(--muted); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; top: 76px; right: 16px; left: 16px; margin-left: auto; max-width: 24rem; z-index: 80;
  background: var(--dark); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  display: flex; align-items: flex-start; gap: 10px; font-size: .8125rem; font-weight: 600; line-height: 1.4;
  transform: translateX(120%); opacity: 0; transition: transform .3s ease, opacity .3s ease; pointer-events: none;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-icon { color: #34d399; width: 20px; height: 20px; margin-top: 1px; }
.toast.error .toast-icon { color: #f87171; }

/* ---------- FOOTER & NAV BAWAH ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 20px 0 calc(var(--bn-h) + 20px); font-size: .875rem; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--bn-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
  box-sizing: content-box;
}
.bn-btn { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted-2); }
.bn-btn .icon { width: 22px; height: 22px; }
.bn-btn.is-active { color: var(--emerald); }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .search { width: 18rem; }
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .toolbar .chips { flex: 1; min-width: 0; }
  .hero { padding: 32px; }
  .hero h1 { font-size: 1.875rem; }
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { border-radius: 22px; padding: 26px; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; gap: 24px; }
  .footer-inner .muted { max-width: 34rem; text-align: right; }
  .toast { left: auto; }
}
@media (min-width: 768px) {
  .tabs { display: flex; }
  .bottom-nav { display: none; }
  .main { padding-bottom: 48px; }
  .footer { padding-bottom: 20px; }
  .brand-tag { display: block; }
  .rfq { flex-direction: row; justify-content: space-between; align-items: stretch; }
  .rfq-main { flex: 1; }
  .rfq-action { border-top: 0; padding-top: 0; display: flex; align-items: center; flex: none; }
  .hero { grid-template-columns: 1fr auto; align-items: center; }
  .hero-points { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .calc-layout { grid-template-columns: 1.15fr 1fr; }
  .calc-result { position: sticky; top: calc(var(--nav-h) + 16px); }
  .tab-btn { padding: 8px 16px; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
  .btn-sm { padding: 8px 10px; }
  #btn-register-label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
