/* ============================================================
   VIARA.ID — DESIGN SYSTEM v2
   Model: marketplace-style (ala Shopee), background putih,
   identitas brand di header hijau gelap + aksen kuning.
   ============================================================ */

:root {
  /* Brand palette (LOCKED — Brand Bible 19 Jun 2026) */
  --green-dark: #0d281c;
  --green: #1e4d34;
  --grey: #aeaeae;
  --yellow: #ffd600;
  --white: #ffffff;

  /* Light theme derivatives */
  --bg: #ffffff;
  --bg-soft: #f5f6f5;
  --text: #1f2a24;
  --text-muted: #6f7a74;
  --line: #e7eae8;
  --shadow: 0 1px 4px rgba(13, 40, 28, 0.08);
  --shadow-hover: 0 4px 14px rgba(13, 40, 28, 0.14);

  /* Typography */
  --font-display: "Anton", sans-serif;
  --font-label: "Bebas Neue", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-soft);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.5px;
}
.label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.95rem;
  color: var(--green);
}
.muted { color: var(--text-muted); }

/* ============================================================
   HEADER (ala Shopee: bar brand + search besar di tengah)
   ============================================================ */
.header {
  background: linear-gradient(180deg, var(--green-dark) 0%, var(--green) 130%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-top {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 6px 0 0;
  font-size: 0.78rem;
}
.header-top a { color: rgba(255, 255, 255, 0.85); transition: color 0.2s; }
.header-top a:hover { color: var(--yellow); }

.header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--white);
  flex-shrink: 0;
}
.logo svg { width: 24px; height: 24px; fill: var(--yellow); }
.logo { gap: 0; }
.logo .logo-img { width: 58px; height: 58px; object-fit: contain; }
.footer-inner .logo { gap: 3px; }
.footer-inner .logo .logo-img { width: 30px; height: 30px; }

/* Search / paste-link di header */
.search-wrap { flex: 1; max-width: 720px; }
.paste-box {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}
.paste-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 9px 12px;
  color: var(--text);
  min-width: 0;
  background: transparent;
}
.paste-box input::placeholder { color: #9aa39e; }
.paste-box button {
  background: var(--yellow);
  color: var(--green-dark);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 22px;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: filter 0.15s;
}
.paste-box button:hover { filter: brightness(1.06); }
.paste-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  min-height: 1.2em;
}
.paste-note.active { color: var(--yellow); }

.header-actions { display: flex; gap: 18px; flex-shrink: 0; }
.header-actions a {
  font-family: var(--font-label);
  letter-spacing: 1.5px;
  font-size: 0.98rem;
  color: var(--yellow);
  border: 1.5px solid var(--yellow);
  border-radius: 999px;
  padding: 7px 18px;
  transition: background 0.2s, color 0.2s;
}
.header-actions a:hover {
  background: var(--yellow);
  color: var(--green-dark);
}

@media (max-width: 860px) {
  .header-top { display: none; }
  .header-main { flex-wrap: wrap; gap: 10px; padding-bottom: 10px; }
  .search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  /* 16px minimum: cegah iOS Safari auto-zoom pas fokus ke input */
  .paste-box input, .toolbar select { font-size: 16px; }
}

/* ============================================================
   BANNER (ala banner promo Shopee, isi: tagline Viara)
   ============================================================ */
.banner { padding: 16px 0 8px; }
.banner-inner {
  background: linear-gradient(120deg, var(--green-dark) 0%, var(--green) 75%);
  border-radius: var(--radius);
  color: var(--white);
  padding: 34px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.banner-inner::after {
  content: "★";
  position: absolute;
  right: -20px;
  top: -40px;
  font-size: 200px;
  color: rgba(255, 214, 0, 0.08);
  line-height: 1;
  pointer-events: none;
}
.banner h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
}
.banner h1 .hl { color: var(--yellow); }
.banner p { color: rgba(255, 255, 255, 0.85); max-width: 480px; font-size: 0.95rem; }
.banner .btn-yellow { position: relative; z-index: 1; }

.btn-yellow {
  background: var(--yellow);
  color: var(--green-dark);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 26px;
  font-family: var(--font-label);
  letter-spacing: 1.5px;
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.15s;
}
.btn-yellow:hover { transform: scale(1.04); }

/* ---------- Banner slider (dikelola admin) ---------- */
#banner-box { position: relative; }
.banner-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.banner-track::-webkit-scrollbar { display: none; }
.b-slide { flex: 0 0 100%; scroll-snap-align: center; }
.b-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 640px) { .b-slide img { aspect-ratio: 2 / 1; } }
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.banner-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
}
.banner-dots button.active { background: var(--yellow); }

/* ============================================================
   SECTIONS (panel putih ala Shopee)
   ============================================================ */
section { padding: 8px 0; }
.panel {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-label);
  letter-spacing: 2px;
  font-size: 1.3rem;
  color: var(--green);
}
.see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.see-all:hover { opacity: 0.7; }

/* ---------- Kategori (icon grid ala Shopee) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-item {
  text-align: center;
  padding: 16px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.18s, background 0.18s;
}
.cat-item:hover { border-color: var(--line); background: var(--bg-soft); }
.cat-item .emoji {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.cat-item .name { font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* ---------- Review cards (dense grid ala Shopee) ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 1020px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.card-thumb {
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: linear-gradient(135deg, #eef2ef 0%, #dfe6e1 100%);
  overflow: hidden;
}
.card-thumb .thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-thumb .tag-video {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green-dark);
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.card-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(13, 40, 28, 0.35);
  transition: opacity 0.2s;
}
.card:hover .card-thumb .play { opacity: 1; }
.card-thumb .play span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding-left: 3px;
}

.card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-summary {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price {
  color: var(--green);
  font-weight: 800;
  font-size: 0.95rem;
  margin-top: auto;
  padding-top: 4px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---------- Lencana kreator (centang biru + Tim Viara) ---------- */
.creator { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.creator strong { color: var(--text); }
.creator a { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; }
.creator a:hover strong { color: var(--green); text-decoration: underline; }
.detail-by { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.vbadge { width: 14px; height: 14px; flex-shrink: 0; vertical-align: -2px; display: inline-block; }

/* ============================================================
   HALAMAN PRODUK · MAU BELI · SHARE · BANNER SALE
   ============================================================ */

/* Strip sale di atas halaman */
.sale-strip {
  background: var(--yellow); color: var(--green-dark);
  font-size: 0.84rem; font-weight: 700; padding: 9px 0; text-align: center;
}
.sale-strip a { color: var(--green-dark); text-decoration: underline; }

/* Tag flash sale di kartu produk */
.fs-tag {
  display: inline-block; background: #fe2c55; color: #fff;
  font-size: 0.72rem; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; margin-bottom: 8px;
}

/* Tombol aksi di halaman produk */
.prod-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.wish-btn {
  flex: 1; min-width: 150px; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px;
  background: var(--green); color: var(--white); border: none;
  border-radius: var(--radius-sm); padding: 12px 18px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; min-height: 46px;
}
.wish-btn.active { background: var(--bg-soft); color: var(--green); border: 1px solid var(--green); }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 18px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; min-height: 46px;
}
.share-btn:hover { background: var(--bg-soft); border-color: var(--green); color: var(--green); }
.wish-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

/* Keranjang IJO di halaman review — daftar produk yang di-tag */
.cart-block {
  border: 1px solid #b8ecc9; background: #f0fbf4; border-radius: 12px;
  padding: 12px; margin: 12px 0 4px;
}
.cart-block-head { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 8px; font-size: 0.92rem; }
.cart-block-head .ic { color: #16c05b; font-size: 1.15rem; }
.cart-prod { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #d3eede; }
.cart-prod:first-of-type { border-top: none; }
.cart-prod img, .cart-prod .ph {
  width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none;
  background: var(--bg-soft); display: grid; place-items: center; font-size: 1.3rem;
}
.cart-prod .cp-body { flex: 1; min-width: 0; }
.cart-prod .cp-body strong { display: block; font-size: 0.88rem; }
.cart-prod .cp-brand { font-size: 0.74rem; color: var(--text-muted); }
.cart-prod .cp-price { font-weight: 800; color: var(--green); font-size: 0.92rem; display: block; margin-top: 2px; }
.cart-prod .cp-mp { font-size: 0.72rem; color: var(--text-muted); }
.cart-prod .cp-go {
  background: #16c05b; color: #fff; border-radius: 8px; padding: 9px 13px;
  font-weight: 700; font-size: 0.8rem; text-decoration: none; white-space: nowrap;
}
.to-feed {
  display: block; margin-top: 10px; text-align: center; padding: 10px;
  background: #000; color: #fff; border-radius: 10px; font-size: 0.84rem;
  font-weight: 700; text-decoration: none;
}

/* Link dari review → halaman produk */
.to-produk {
  display: block; margin: 10px 0 2px; padding: 11px 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 700;
  color: var(--green); text-decoration: none;
}
.to-produk:hover { border-color: var(--green); background: #f2f8f4; }

/* Sheet share (desktop / browser tanpa Web Share API) */
.share-sheet {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45);
  display: grid; place-items: center; z-index: 999; padding: 20px;
}
.share-card {
  background: var(--white); border-radius: var(--radius);
  padding: 18px; width: 100%; max-width: 320px;
}
.share-title { font-weight: 800; margin-bottom: 12px; text-align: center; }
.share-opt {
  display: block; width: 100%; text-align: left;
  padding: 13px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 0.9rem; font-weight: 600;
  color: var(--text); text-decoration: none; cursor: pointer; min-height: 46px;
}
.share-opt:hover { background: var(--bg-soft); border-color: var(--green); }
.share-close { text-align: center; color: var(--text-muted); border-style: dashed; margin-bottom: 0; }

/* Kartu Mau Beli (favorit.html) */
.wish-card {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px; margin-bottom: 10px; background: var(--white);
}
.wish-card img, .wish-card .ph {
  width: 78px; height: 78px; border-radius: 8px; object-fit: cover;
  flex: none; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.4rem;
}
.wish-card .wc-body { flex: 1; min-width: 0; }
.wish-card .wc-body strong { display: block; font-size: 0.92rem; }
.wish-card .wc-meta { font-size: 0.76rem; color: var(--text-muted); }
.wish-card .wc-price { font-weight: 800; color: var(--green); font-size: 0.95rem; }
.wc-expiry { font-size: 0.7rem; color: var(--text-muted); }
.wc-expiry.soon { color: #c0392b; font-weight: 700; }
.wc-del {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.2rem; cursor: pointer; padding: 8px; min-height: 44px;
}
.wc-del:hover { color: #c0392b; }

/* ---------- Hasil pencarian kreator (reviews.html?q=…) ---------- */
.creator-hits {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px;
}
.creator-hits-head {
  font-family: var(--font-label); letter-spacing: 1px;
  color: var(--green); font-size: 0.9rem; margin-bottom: 8px;
}
.creator-hit {
  display: flex; align-items: center; gap: 12px; padding: 9px 0;
  border-top: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.creator-hit:first-of-type { border-top: none; }
.creator-hit:hover .ch-go { color: var(--green); }
.ch-ava {
  width: 42px; height: 42px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--green-dark); color: var(--yellow);
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.ch-ava img { width: 100%; height: 100%; object-fit: cover; }
.ch-txt { flex: 1; min-width: 0; }
.ch-txt strong { display: flex; align-items: center; gap: 4px; font-size: 0.92rem; }
.ch-txt small { display: block; color: var(--text-muted); font-size: 0.76rem; }
.ch-go { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 700px) { .ch-go { display: none; } }
.creator-tag {
  flex-basis: 100%;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
}
.video-stats .creator { justify-content: flex-end; }

/* ---------- Tombol favorit (heart) di card ---------- */
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #c0392b;
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  z-index: 2;
}
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.active { background: #c0392b; color: var(--white); }

/* ---------- Halaman akun / login ---------- */
.auth-wrap { max-width: 420px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tabs button {
  flex: 1;
  padding: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.auth-tabs button.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.btn-google {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-google:hover { background: var(--bg-soft); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 14px 0;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-error {
  color: #c0392b;
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-top: 8px;
}

/* ============================================================
   PROFIL KREATOR ALA TIKTOK
   Dipakai di akun.html (kreator/admin lihat profil sendiri)
   & profil publik lewat ?k=email
   ============================================================ */
.tt-wrap { max-width: 720px; margin: 0 auto; }
.tt-head { text-align: center; padding: 8px 0 4px; }
.tt-ava {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 10px; display: grid; place-items: center;
  background: var(--green-dark); color: var(--yellow);
  font-size: 2.2rem; font-weight: 800; overflow: hidden;
  border: 3px solid var(--white); box-shadow: var(--shadow);
}
.tt-ava img { width: 100%; height: 100%; object-fit: cover; }
.tt-name {
  font-size: 1.5rem; font-weight: 800; line-height: 1.2;
  display: inline-flex; align-items: center; gap: 6px;
}
.tt-name .vbadge { width: 20px; height: 20px; vertical-align: 0; }
.tt-name #tt-verif { display: inline-flex; align-items: center; }
.tt-handle { color: var(--text-muted); font-size: 0.9rem; margin-top: 2px; }

/* 3 angka: Pengikut · Suka · Rating */
.tt-stats {
  display: flex; justify-content: center; gap: 8px;
  margin: 16px 0 12px;
}
.tt-stat { flex: 1; max-width: 120px; }
.tt-stat b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.tt-stat span { font-size: 0.78rem; color: var(--text-muted); }
.tt-stat.tap { cursor: pointer; }
.tt-stat.tap:hover b { color: var(--green); }

.tt-bio {
  font-size: 0.9rem; line-height: 1.5; text-align: center;
  max-width: 460px; margin: 0 auto 14px; white-space: pre-wrap;
}
.tt-actions { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.tt-actions .btn-follow {
  background: var(--green); color: var(--white); border: none;
  border-radius: var(--radius-sm); padding: 10px 32px;
  font-weight: 700; font-size: 0.9rem; min-height: 44px; cursor: pointer;
}
.tt-actions .btn-follow.ikut {
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
}
.tt-actions .btn-out {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 16px;
  font-weight: 700; font-size: 0.9rem; min-height: 44px; cursor: pointer;
}

/* Tab ala TikTok */
.tt-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.tt-tabs button {
  flex: 1; padding: 10px 0; background: none; border: none;
  border-bottom: 2px solid transparent; font-size: 1.05rem;
  color: var(--text-muted); cursor: pointer; min-height: 44px;
}
.tt-tabs button.active { color: var(--text); border-bottom-color: var(--text); }

/* Grid 3 kolom rapat ala TikTok */
.tt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tt-cell {
  position: relative; aspect-ratio: 9 / 14; overflow: hidden;
  background: var(--bg-soft); display: block;
}
.tt-cell img { width: 100%; height: 100%; object-fit: cover; }
.tt-cell .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 1.6rem; }
.tt-cell .plays {
  position: absolute; left: 6px; bottom: 5px;
  color: #fff; font-size: 0.78rem; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  display: flex; align-items: center; gap: 3px;
}
.tt-empty { padding: 40px 16px; text-align: center; color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Rating kreator ---------- */
.stars { display: inline-flex; gap: 2px; }
.stars .s { font-size: 1rem; color: #e0ddd4; }
.stars .s.on { color: #f5b301; }
.rate-pick { display: flex; gap: 4px; justify-content: center; margin: 8px 0; }
.rate-pick button {
  background: none; border: none; font-size: 1.9rem; cursor: pointer;
  color: #e0ddd4; line-height: 1; padding: 2px; min-height: 44px;
}
.rate-pick button.on { color: #f5b301; }
.rate-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rate-item:last-child { border-bottom: none; }
.rate-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rate-top strong { font-size: 0.88rem; }
.rate-top .when { font-size: 0.74rem; color: var(--text-muted); margin-left: auto; }
.rate-item p { font-size: 0.86rem; margin-top: 4px; line-height: 1.5; }
.rate-flag {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.74rem; text-decoration: underline; cursor: pointer; padding: 4px 0;
}
.rate-flag.done { color: #c0392b; text-decoration: none; }

/* ---------- 👍 Like (BEDA dari ♥ favorit) ---------- */
.like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font-size: 0.84rem; font-weight: 600; color: var(--text); min-height: 40px;
}
.like-btn.active { background: #eaf3de; border-color: #97c459; color: #3b6d11; }
.like-btn .like-num { font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .tt-ava { width: 80px; height: 80px; font-size: 1.8rem; }
  .tt-name { font-size: 1.25rem; }
  .tt-stat b { font-size: 1.05rem; }
  .tt-actions .btn-follow { flex: 1; padding: 10px 16px; }
}
.profile-box { text-align: center; padding: 12px 0; }
.profile-box .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.profile-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.profile-links a, .profile-links button {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  color: var(--text);
}
.profile-links .danger { color: #c0392b; }
.admin-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

/* ---------- Filter bar (browse page) ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.toolbar select {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.toolbar select:focus { border-color: var(--green); }

/* ---------- Quote strip ---------- */
.quote-strip { text-align: center; padding: 28px 20px; }
.quote-strip blockquote {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  line-height: 1.3;
  color: var(--green-dark);
  max-width: 720px;
  margin: 0 auto 10px;
}
.quote-strip blockquote .hl { color: var(--green); }
.quote-strip cite { color: var(--text-muted); font-style: normal; font-size: 0.85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { max-width: 460px; color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; }

/* ---------- Detail review page ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 4px 2px 12px;
}
.breadcrumb a { color: var(--green); font-weight: 600; }

.detail-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-info { min-width: 0; }

.video-panel {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.video-frame {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  gap: 12px;
}
.video-frame .play-big {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding-left: 4px;
}
.video-frame small { color: rgba(255, 255, 255, 0.65); }
.video-stats {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.detail-info { display: flex; flex-direction: column; gap: 16px; }
.detail-info .panel { padding: 22px; }

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.detail-title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }

/* Tombol favorit di halaman detail (samping judul) */
.fav-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  flex-shrink: 0;
  padding: 2px 6px;
}
.fav-detail .fav-ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: #c0392b;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.fav-detail:hover .fav-ic { transform: scale(1.1); border-color: #c0392b; }
.fav-detail.active .fav-ic { background: #c0392b; border-color: #c0392b; color: var(--white); }
.fav-detail .fav-cap {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}
.fav-detail.active .fav-cap { color: #c0392b; }
.detail-brand { font-size: 0.88rem; color: var(--text-muted); margin-top: 2px; }
.detail-summary {
  margin-top: 12px;
  font-size: 0.95rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--yellow);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }
.proscons h4 {
  font-family: var(--font-label);
  letter-spacing: 1.5px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.proscons ul { list-style: none; }
.proscons li {
  font-size: 0.87rem;
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--text);
}
.pros-list li::before { content: "＋"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.cons-list li::before { content: "－"; position: absolute; left: 0; color: #c0392b; font-weight: 800; }

/* Price comparison */
.price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.price-head h3 {
  font-family: var(--font-label);
  letter-spacing: 1.5px;
  font-size: 1.15rem;
  color: var(--green);
}
.price-block {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfb;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.price-row:hover { border-color: var(--green); }
.price-row.cheapest {
  border-color: var(--green);
  background: #f2f8f4;
}
.price-row .platform { font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.badge-cheapest {
  background: var(--yellow);
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.price-row .amount { font-weight: 800; color: var(--green); font-size: 1rem; }
.btn-buy {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: filter 0.15s;
}
.btn-buy:hover { filter: brightness(1.15); }
.price-row.cheapest .btn-buy { background: var(--green-dark); }

.cheapest-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-note-box {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  line-height: 1.5;
}

/* ---------- Media slider (video + foto produk dalam 1 slide) ---------- */
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.media-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.g-slide img { width: 100%; height: 100%; object-fit: cover; }
.g-slide.g-ph {
  background: linear-gradient(135deg, #eef2ef 0%, #dfe6e1 100%);
  color: var(--text-muted);
}
.g-slide.g-ph span { font-size: 3rem; }
.g-slide.g-ph small { font-size: 0.75rem; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 2px;
}
.gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.gallery-dots button.active { background: var(--green); transform: scale(1.25); }

/* ---------- Mobile polish (detail page) ---------- */
@media (max-width: 640px) {
  .detail-info .panel { padding: 16px; }
  .detail-title { font-size: 1.2rem; }
  .breadcrumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .price-block { padding: 12px 10px; }
  .price-note-box { display: none; } /* di HP disembunyikan biar hemat tempat */
  .price-row { flex-wrap: wrap; row-gap: 8px; padding: 10px 12px; }
  .price-row .amount { margin-left: auto; }
  .price-row .btn-buy { flex-basis: 100%; text-align: center; }
}

/* ---------- Submit / request review ---------- */
.submit-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 860px) { .submit-layout { grid-template-columns: 1fr; } }

.notfound-note {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.notfound-note strong { color: var(--yellow); }
.notfound-note .nf-emoji { font-size: 1.8rem; }

.request-form { display: flex; flex-direction: column; gap: 14px; }
.request-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.87rem;
  font-weight: 600;
}
.request-form .req { color: #c0392b; }
.request-form input,
.request-form select,
.request-form textarea {
  font-family: var(--font-body);
  font-size: 16px; /* min 16px: cegah iOS auto-zoom */
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 77, 52, 0.12);
}
.request-form textarea { resize: vertical; }

.request-success { text-align: center; padding: 24px 12px; }
.btn-dark-sm {
  display: inline-block;
  margin-top: 14px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.88rem;
}

.submit-aside .how-list {
  list-style: none;
  counter-reset: how;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.submit-aside .how-list li {
  counter-increment: how;
  position: relative;
  padding-left: 38px;
  font-size: 0.87rem;
  color: var(--text-muted);
}
.submit-aside .how-list li strong { color: var(--text); }
.submit-aside .how-list li::before {
  content: counter(how, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-display);
  color: var(--green);
  font-size: 1.05rem;
}
.aside-note {
  margin-top: 16px;
  background: var(--green-dark);
  color: var(--yellow);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- Tentang page ---------- */
.about-story { max-width: 680px; }
.about-story p { font-size: 0.95rem; margin-bottom: 14px; color: var(--text); }
.about-story p:last-child { margin-bottom: 0; }

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }
.principle {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
}
.principle .p-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--yellow);
  -webkit-text-stroke: 1px var(--green);
  display: block;
  margin-bottom: 6px;
}
.principle h3 {
  font-family: var(--font-label);
  letter-spacing: 1.5px;
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 4px;
}
.principle p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 32px 0 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-inner .logo { color: var(--green-dark); font-size: 1.1rem; }
.footer-inner .logo svg { fill: var(--green); }
.dummy-note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: #b3bab6;
  text-align: center;
}

/* ---------- Bottom nav (HP, ala Shopee) ---------- */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: 68px; }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(13, 40, 28, 0.06);
    z-index: 60;
    padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--green); }
  .bottom-nav a.active svg { stroke: var(--green); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
