/* =====================================================================
   TUKUBUKU — REVISI 11 (dimuat setelah rev10.css)
   1) Koala duduk membaca di meja (beranda)
   2) Gradasi krem di SEMUA halaman selain beranda
   3) Latar ilustrasi halaman Masuk/Daftar penuh sampai footer
   4) Ikon mata password tidak dobel (ikon bawaan Edge disembunyikan)
   5) Checkout: hanya QRIS
   6) Lampiran foto/video di rating & bantuan pesanan
   7) Halaman Bantuan baru
   ===================================================================== */

/* ---------- 1. Koala di meja ---------- */
.tb-scene2-art .tb-koala-desk { position: relative; z-index: 2; display: block; width: 100%; max-width: 640px; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); }
.tb-story.is-animated .tb-scene2-art .tb-koala-desk { transform: translateY(calc((1 - clamp(0, (var(--p, 0) - .55) * 3, 1)) * 50px)); }
@media (max-width: 899px) { .tb-scene2-art .tb-koala-desk { max-width: 460px; margin: 0 auto; } }

/* ---------- 2. Gradasi krem semua halaman (kecuali beranda) ---------- */
body:not(.page-home) main { background: transparent !important; }
body:not(.page-home) {
  --g1: #E7D9BE; --g2: #F1E9D6; --g3: #EAF0DF; --g4: #EFD9B6;
  background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 28%, var(--g3) 62%, var(--g4) 100%) !important;
  min-height: 100vh;
}
body.page-buy { --g1: #E3E9D2; --g2: #EEF2E2; --g3: #F4EEDD; --g4: #EFD9B6; }
body.page-trade, body.page-trade-requests { --g1: #EBD8BB; --g2: #F4E9D5; --g3: #E8EFDC; --g4: #E6D2AE; }
body.page-sell { --g1: #EEDCC0; --g2: #F6EDDB; --g3: #EAF0DF; --g4: #E9D5B2; }
body.page-cart { --g1: #E2EAD4; --g2: #F1EEDF; --g3: #F6EAD3; --g4: #EAD3AE; }
body.page-orders { --g1: #E9DCC3; --g2: #F3ECDB; --g3: #E8EFE0; --g4: #E3D2B4; }
body.page-chat { --g1: #E1E9D6; --g2: #EEF1E4; --g3: #F4ECDA; --g4: #E8D6B6; }
body.page-profile, body.page-settings { --g1: #EADBC0; --g2: #F5EEDD; --g3: #E9EEE0; --g4: #E6D3B3; }
body.page-contact { --g1: #E6EDDA; --g2: #F2EEDF; --g3: #F5E9D2; --g4: #ECD4AE; }
/* Pembungkus halaman Aturan / S&K tidak menutupi gradasi */
.list-page.legal-page { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.list-page.legal-page > h3, .list-page.legal-page > p { max-width: 860px; }

/* ---------- 3. Masuk / Daftar: ilustrasi penuh sampai footer ---------- */
body.page-login main, body.page-signup main { min-height: calc(100vh - var(--header-h)); }
body.page-login main::before, body.page-signup main::before { inset: 0 !important; height: auto !important; background-attachment: scroll; }

/* ---------- 4. Ikon mata password: sembunyikan ikon bawaan Edge/IE agar tidak menumpuk ---------- */
input[type=password]::-ms-reveal, input[type=password]::-ms-clear, input::-ms-reveal, input::-ms-clear { display: none !important; width: 0; height: 0; }
.password-field { position: relative; }
.password-field .password-toggle { z-index: 2; }

/* ---------- 5. Checkout: hanya QRIS ---------- */
.qris-only { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--c-olive); background: linear-gradient(135deg, var(--c-leaf-50), #FFFDF8); box-shadow: 0 0 0 3px rgba(122, 154, 90, .18); }
.qris-only .gateway-logo { flex: none; }
.qris-only-copy { display: grid; gap: 2px; flex: 1; min-width: 0; }
.qris-only-copy strong { font-size: .95rem; color: var(--c-olive-900); }
.qris-only-copy small { font-size: .78rem; color: var(--c-ink-3); line-height: 1.45; }
.qris-only .gateway-check { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-olive); color: #fff; font-size: .8rem; }
.qris-steps { margin: 12px 0 4px; padding-left: 20px; display: grid; gap: 4px; font-size: .84rem; color: var(--c-ink-2); }

/* ---------- 6. Lampiran foto/video (rating & bantuan) ---------- */
.fb-picker { display: grid; gap: 8px; margin: 4px 0 10px; }
.fb-picker-btn { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-md); border: 1.5px dashed var(--c-leaf); background: var(--c-leaf-50); cursor: pointer; }
.fb-picker-btn:hover { background: var(--c-leaf-100); }
.fb-picker-icons { display: inline-flex; gap: 6px; }
.fb-picker-icons svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: #fff; color: var(--c-olive); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-shadow: var(--sh-1); }
.fb-picker-btn strong { display: block; font-size: .86rem; color: var(--c-olive-900); }
.fb-picker-btn small { display: block; font-size: .72rem; color: var(--c-ink-3); }
body main .fb-picker-btn input[type=file] { flex: 1 1 100%; font-size: .78rem; }
.fb-preview { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fb-preview:empty { display: none; }
.fb-preview li { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--c-line); }
.fb-preview li img, .fb-preview li video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-preview li.is-warn { width: auto; height: auto; padding: 6px 10px; background: var(--c-warning-bg); color: #7E5420; font-size: .74rem; }
.fb-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.fb-thumb { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #1A2114; box-shadow: var(--sh-1); }
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
video.fb-thumb { width: 160px; object-fit: cover; }

/* ---------- 7. Halaman Bantuan ---------- */
body.page-contact main { padding-top: 0 !important; }
body.page-contact main::before { display: none !important; }
.help-page { padding-top: 0 !important; }
.help-hero { position: relative; isolation: isolate; display: grid; gap: 18px; align-items: center; padding: 36px 0 28px; margin-bottom: 26px; color: var(--c-on-night); }
.help-hero::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: radial-gradient(ellipse 45% 70% at 76% 45%, rgba(200, 147, 92, .3), transparent 70%),
              repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 150px),
              linear-gradient(135deg, #2A2015 0%, #1F2A18 55%, #2B3A22 100%); }
.help-hero .eyebrow { color: var(--c-bark-300) !important; }
.help-hero h2 { color: var(--c-on-night) !important; font-size: clamp(2rem, 5.2vw, 3.1rem) !important; line-height: 1.08; margin: 8px 0 12px !important; }
.help-hero .muted { color: var(--c-on-night-2) !important; max-width: 46ch; margin: 0 0 18px; }
.help-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.help-hero .tb-btn-frame { color: var(--c-on-night) !important; }
.help-hero .tb-btn-frame:hover { background: var(--c-on-night) !important; color: var(--c-night) !important; border-color: var(--c-on-night) !important; }
.help-hero-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.help-hero-facts li { display: grid; gap: 1px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--c-night-line); background: rgba(244, 236, 220, .06); }
.help-hero-facts b { font: 500 1rem/1.2 var(--f-display); color: #FFF8E8; }
.help-hero-facts span { font: 500 .62rem/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--c-on-night-2); }
@media (max-width: 639px) {
  .help-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .help-hero-facts li { padding: 8px; }
  .help-hero-facts b { font-size: .88rem; }
  .help-hero-facts span { font-size: .52rem; letter-spacing: .08em; }
}
.help-hero-art img { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .4)); }
.help-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.help-topic { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, #FFFDF8, #FBF4E6); border: 1px solid var(--c-line); box-shadow: var(--sh-1); text-decoration: none; color: var(--c-ink) !important; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.help-topic:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--c-leaf-300); }
.help-topic-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 14px; background: var(--c-leaf-100); color: var(--c-olive-800); }
.help-topic:nth-child(2) .help-topic-ico { background: var(--c-bark-100); color: var(--c-bark-700); }
.help-topic:nth-child(4) .help-topic-ico { background: var(--c-info-bg); color: var(--c-info); }
.help-topic-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.help-topic strong { font-family: var(--f-label); font-weight: 500; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-olive-900); }
.help-topic small { font-size: .78rem; color: var(--c-ink-3); line-height: 1.4; }
.help-grid { display: grid; gap: 18px; align-items: start; }
.help-faq { padding: 22px; border-radius: var(--r-lg); background: linear-gradient(180deg, #FFFDF8, #FBF6EA); border: 1px solid var(--c-line); box-shadow: var(--sh-1); }
.help-faq h3, .help-form h3 { margin: 0 0 12px; font-size: 1.4rem !important; color: var(--c-olive-900); }
.help-faq details { border-bottom: 1px solid var(--c-line); padding: 12px 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.help-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .92rem; color: var(--c-ink); }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-leaf-100); color: var(--c-olive-800); font-weight: 600; transition: transform .2s; }
.help-faq details[open] summary::after { transform: rotate(45deg); background: var(--c-olive); color: #fff; }
.help-faq details p { margin: 8px 0 0; font-size: .86rem; line-height: 1.6; color: var(--c-ink-2); }
.help-faq-more { margin: 14px 0 0; font-size: .82rem; color: var(--c-ink-3); }
body.page-contact .help-form { max-width: none !important; margin: 0 !important; padding: 24px !important; box-shadow: var(--sh-2) !important; }
.help-form > .muted { margin: -4px 0 16px; font-size: .86rem; }
@media (min-width: 640px) { .help-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .help-hero { grid-template-columns: 1.05fr 1fr; gap: 30px; padding: 48px 0 36px; }
  .help-grid { grid-template-columns: 1.05fr .95fr; gap: 24px; }
  body.page-contact .help-form { position: sticky; top: calc(var(--header-h) + 16px); }
}
