/* =========================================================
   Toko reseller (halaman pembeli, proses reseller-toko)
   Konsep: latar hangat terang, kartu link bento ungu/hitam/lime, kartu produk
   bergambar warna, pilih paket berupa kartu, bayar berupa "tiket".
   Semua warna di :root. Mode gelap: tombol bulan/matahari (data-theme) atau tema sistem.
   ========================================================= */

:root {
  --bg: var(--theme-bg, #f4f3ef);   /* tema toko bisa mengganti latar mode terang */
  --surface: #ffffff;
  --surface-2: #f0efea;
  --ink: #141414;
  --ink-2: #55565a;
  --ink-3: #8b8c90;
  --line: rgba(20, 20, 20, .08);
  --lime: #c6f432;
  --lime-2: #b2e01c;
  --lime-soft: #eefac7;
  --violet: #6d4aff;
  --violet-soft: #ece6ff;
  --green: #138a41; --green-soft: #dcf3e4;
  --red: #d93c41;   --red-soft: #fde4e4;
  --amber: #b96507; --amber-soft: #fdecd6;
  --bar: #141414;
  /* Warna yang diatur tema toko (blok "TEMA TOKO" di bawah): kartu link 1/2 (+ kartu 3 = --lime), tombol Order &
     menu aktif (--btn), tombol utama (--cta). Nilai di sini = tema Bawaan. */
  --t1: #5b3df6; --t1-ink: #fff;
  --t2: #141416; --t2-ink: #fff;
  --t3-ink: #141414;
  --btn: var(--ink); --btn-ink: var(--bg);
  --cta: var(--lime); --cta-2: var(--lime-2); --cta-ink: #141414;
  --deco-o: 1;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 12px 30px rgba(20, 20, 20, .07);
  --r: 24px;
  --r-sm: 16px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --surface: #151518; --surface-2: #1d1d21;
  --ink: #f3f3f4; --ink-2: #b7b8bd; --ink-3: #85868c; --line: rgba(255, 255, 255, .08);
  --lime-soft: rgba(198, 244, 50, .13);
  --violet: #9a82ff; --violet-soft: rgba(109, 74, 255, .2);
  --green: #45c97a; --green-soft: rgba(19, 138, 65, .2);
  --red: #ff7b7f; --red-soft: rgba(217, 60, 65, .2);
  --amber: #f5ad55; --amber-soft: rgba(185, 101, 7, .22);
  --bar: #1d1d21;
  --deco-o: .45;
  --shadow: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d; --surface: #151518; --surface-2: #1d1d21;
    --ink: #f3f3f4; --ink-2: #b7b8bd; --ink-3: #85868c; --line: rgba(255, 255, 255, .08);
    --lime-soft: rgba(198, 244, 50, .13);
    --violet: #9a82ff; --violet-soft: rgba(109, 74, 255, .2);
    --green: #45c97a; --green-soft: rgba(19, 138, 65, .2);
    --red: #ff7b7f; --red-soft: rgba(217, 60, 65, .2);
    --amber: #f5ad55; --amber-soft: rgba(185, 101, 7, .22);
    --bar: #1d1d21;
    --deco-o: .45;
    --shadow: none;
    color-scheme: dark;
  }
}

/* ---------- TEMA TOKO (migrasi 020, pilihan reseller di Toko saya → Pengaturan) ----------
   Kelas th-<tema> di <html> (views/toko/_top.ejs). Daftar & nama warna: src/services/shopThemes.js; titik warna
   di panel: .thm-<tema> di app.css. Tema hanya mengubah variabel warna (kartu link --t1/--t2/--lime, tombol --btn/--cta,
   aksen --violet, bar bayar --bar) + motif latar (--deco*, digambar body::before). Ditaruh SETELAH blok mode gelap supaya
   aksen tema tetap berlaku di mode gelap; latar mode terang lewat --theme-bg (mode gelap memakai latar gelap sendiri).
   CSS ini dibuat skrip (SVG motif di-encode) — ubah warnanya di sini, motifnya cukup salin pola yang ada. */
:root.th-bawaan {
  --deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='190' viewBox='0 0 150 190'%3E%3Cpath fill='%236d4aff' fill-opacity='0.45' d='M24 22Q24 30 32 30Q24 30 24 38Q24 30 16 30Q24 30 24 22ZM118 145Q118 150 123 150Q118 150 118 155Q118 150 113 150Q118 150 118 145ZM96 42Q96 46 100 46Q96 46 96 50Q96 46 92 46Q96 46 96 42Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Ccircle cx='150' cy='150' r='150' fill='%236d4aff' fill-opacity='0.12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Ccircle cx='130' cy='130' r='130' fill='%23c6f432' fill-opacity='0.3'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Ccircle cx='110' cy='110' r='110' fill='%236d4aff' fill-opacity='0.09'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='1.2' fill='%236d4aff' fill-opacity='0.13'/%3E%3C/svg%3E");
  --deco-pos: left 8px top 30%, right -120px top -120px, left -140px top 42%, right -100px bottom 6%, 0 0;
  --deco-size: 150px 190px, 300px 300px, 260px 260px, 220px 220px, 16px 16px;
  --deco-rep: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
}
:root.th-gold {
  --theme-bg: #f6f0e2; --t1: #c9a24a; --t1-ink: #1a1406; --t2: #2a261e; --t2-ink: #f5efe2; --lime: #e9d9a6; --lime-2: #dcc681; --t3-ink: #1a1406; --violet: #a87a1f; --btn: #c9a24a; --btn-ink: #1a1406; --cta: #c9a24a; --cta-2: #b8913c; --cta-ink: #1a1406; --bar: #2a261e;
  --lime-soft: color-mix(in srgb, var(--lime) 30%, transparent); --violet-soft: color-mix(in srgb, var(--violet) 16%, transparent);
  --deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='220' viewBox='0 0 160 220'%3E%3Cpath fill='%23c9a24a' fill-opacity='0.7' d='M30 31Q30 40 39 40Q30 40 30 49Q30 40 21 40Q30 40 30 31ZM128 91Q128 96 133 96Q128 96 128 101Q128 96 123 96Q128 96 128 91ZM58 184Q58 190 64 190Q58 190 58 196Q58 190 52 190Q58 190 58 184Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='130' height='130' viewBox='0 0 130 130'%3E%3Cpath fill='%23e9d9a6' fill-opacity='0.45' d='M96 26Q96 30 100 30Q96 30 96 34Q96 30 92 30Q96 30 96 26ZM30 90Q30 96 36 96Q30 96 30 102Q30 96 24 96Q30 96 30 90Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380' viewBox='0 0 380 380'%3E%3Ccircle cx='190' cy='190' r='170' fill='none' stroke='%23c9a24a' stroke-opacity='0.38' stroke-width='1.4'/%3E%3Ccircle cx='190' cy='190' r='138' fill='none' stroke='%23c9a24a' stroke-opacity='0.24' stroke-width='1'/%3E%3Ccircle cx='190' cy='190' r='106' fill='none' stroke='%23c9a24a' stroke-opacity='0.14' stroke-width='0.8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Ccircle cx='150' cy='150' r='140' fill='none' stroke='%23c9a24a' stroke-opacity='0.22' stroke-width='1'/%3E%3Ccircle cx='150' cy='150' r='110' fill='none' stroke='%23c9a24a' stroke-opacity='0.12' stroke-width='0.8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M-1 19L19 -1' stroke='%23c9a24a' stroke-opacity='0.1' stroke-width='1'/%3E%3C/svg%3E");
  --deco-pos: left 6px top 26%, right 10px bottom 16%, right -170px top -170px, left -160px bottom -140px, 0 0;
  --deco-size: 160px 220px, 130px 130px, 380px 380px, 300px 300px, 18px 18px;
  --deco-rep: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
}
:root.th-pink {
  --theme-bg: #fff0f4; --t1: #ff4f87; --t1-ink: #fff; --t2: #2b1420; --t2-ink: #fff; --lime: #ffc2d6; --lime-2: #ffadc7; --t3-ink: #2b1420; --violet: #e8336f; --btn: #ff4f87; --btn-ink: #fff; --cta: #ff4f87; --cta-2: #ec3a74; --cta-ink: #fff; --bar: #2b1420;
  --lime-soft: color-mix(in srgb, var(--lime) 30%, transparent); --violet-soft: color-mix(in srgb, var(--violet) 16%, transparent);
  --deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='210' viewBox='0 0 170 210'%3E%3Cg fill='%23ff4f87' fill-opacity='0.4'%3E%3Cpath transform='translate(34 34) scale(1.8)' d='M0 3C-3-1-8 1-6 5L0 11L6 5C8 1 3-1 0 3Z'/%3E%3Cpath transform='translate(128 118) scale(1.3)' d='M0 3C-3-1-8 1-6 5L0 11L6 5C8 1 3-1 0 3Z'/%3E%3Cpath transform='translate(56 176) scale(1.1)' d='M0 3C-3-1-8 1-6 5L0 11L6 5C8 1 3-1 0 3Z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='120' viewBox='0 0 150 120'%3E%3Cg fill='%23b48cff' fill-opacity='0.4'%3E%3Cpath transform='translate(30 30) scale(1.2)' d='M0 3C-3-1-8 1-6 5L0 11L6 5C8 1 3-1 0 3Z'/%3E%3Cpath transform='translate(110 80) scale(1.6)' d='M0 3C-3-1-8 1-6 5L0 11L6 5C8 1 3-1 0 3Z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Ccircle cx='150' cy='150' r='150' fill='%23ff4f87' fill-opacity='0.13'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Ccircle cx='110' cy='110' r='110' fill='%23ff4f87' fill-opacity='0.1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Ccircle cx='130' cy='130' r='130' fill='%23b48cff' fill-opacity='0.12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Ccircle cx='45' cy='45' r='45' fill='%23b48cff' fill-opacity='0.18'/%3E%3C/svg%3E");
  --deco-pos: right 4px top 22%, left 10px bottom 18%, right -120px top -120px, left -120px top 36%, left -100px bottom -100px, right 14px top 58%;
  --deco-size: 170px 210px, 150px 120px, 300px 300px, 220px 220px, 260px 260px, 90px 90px;
  --deco-rep: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}
:root.th-biru {
  --theme-bg: #edf4ff; --t1: #1f6bff; --t1-ink: #fff; --t2: #0b2545; --t2-ink: #fff; --lime: #3fd5c0; --lime-2: #2cc2ad; --t3-ink: #0b2545; --violet: #1f6bff; --btn: #1f6bff; --btn-ink: #fff; --cta: #1f6bff; --cta-2: #1557d6; --cta-ink: #fff; --bar: #0b2545;
  --lime-soft: color-mix(in srgb, var(--lime) 30%, transparent); --violet-soft: color-mix(in srgb, var(--violet) 16%, transparent);
  --deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80' viewBox='0 0 240 80'%3E%3Cpath d='M0 30Q60 4 120 30T240 30V0H0Z' fill='%231f6bff' fill-opacity='0.12'/%3E%3Cpath d='M0 52Q60 24 120 52T240 52V0H0Z' fill='%233fd5c0' fill-opacity='0.12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80' viewBox='0 0 240 80'%3E%3Cpath d='M0 50Q60 76 120 50T240 50V80H0Z' fill='%231f6bff' fill-opacity='0.12'/%3E%3Cpath d='M0 28Q60 56 120 28T240 28V80H0Z' fill='%233fd5c0' fill-opacity='0.16'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cg fill='%231f6bff' fill-opacity='0.22'%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3Ccircle cx='52' cy='50' r='3'/%3E%3Ccircle cx='140' cy='120' r='7'/%3E%3Ccircle cx='118' cy='146' r='3.5'/%3E%3Ccircle cx='70' cy='150' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='%233fd5c0' fill-opacity='0.35'%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3Ccircle cx='100' cy='90' r='3.5'/%3E%3Ccircle cx='60' cy='120' r='2.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Ccircle cx='120' cy='120' r='120' fill='%233fd5c0' fill-opacity='0.1'/%3E%3C/svg%3E");
  --deco-pos: left top, left bottom, right 8px top 32%, left 6px bottom 22%, left -130px top 34%;
  --deco-size: 240px 80px, 240px 80px, 170px 170px, 150px 150px, 240px 240px;
  --deco-rep: repeat-x, repeat-x, no-repeat, no-repeat, no-repeat;
}
:root.th-hijau {
  --theme-bg: #eefaf2; --t1: #13a35a; --t1-ink: #fff; --t2: #0f2b1d; --t2-ink: #fff; --lime: #ffd43b; --lime-2: #f5c518; --t3-ink: #0f2b1d; --violet: #0f8a4a; --btn: #13a35a; --btn-ink: #fff; --cta: #13a35a; --cta-2: #0f8a4a; --cta-ink: #fff; --bar: #0f2b1d;
  --lime-soft: color-mix(in srgb, var(--lime) 30%, transparent); --violet-soft: color-mix(in srgb, var(--violet) 16%, transparent);
  --deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='170' viewBox='0 0 220 170'%3E%3Cg fill='%2313a35a' fill-opacity='0.22'%3E%3Cellipse cx='150' cy='40' rx='34' ry='13' transform='rotate(-30 150 40)'/%3E%3C/g%3E%3Cg fill='%2313a35a' fill-opacity='0.16'%3E%3Cellipse cx='110' cy='78' rx='28' ry='11' transform='rotate(20 110 78)'/%3E%3C/g%3E%3Cg fill='%23ffd43b' fill-opacity='0.45'%3E%3Cellipse cx='188' cy='96' rx='26' ry='10' transform='rotate(-62 188 96)'/%3E%3C/g%3E%3Cg fill='%2313a35a' fill-opacity='0.12'%3E%3Cellipse cx='70' cy='30' rx='22' ry='9' transform='rotate(40 70 30)'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cg fill='%2313a35a' fill-opacity='0.18'%3E%3Cellipse cx='40' cy='60' rx='30' ry='12' transform='rotate(35 40 60)'/%3E%3C/g%3E%3Cg fill='%23ffd43b' fill-opacity='0.45'%3E%3Cellipse cx='96' cy='110' rx='24' ry='10' transform='rotate(-25 96 110)'/%3E%3C/g%3E%3Cg fill='%2313a35a' fill-opacity='0.14'%3E%3Cellipse cx='40' cy='140' rx='20' ry='8' transform='rotate(70 40 140)'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='170' viewBox='0 0 220 170'%3E%3Cg fill='%2313a35a' fill-opacity='0.2'%3E%3Cellipse cx='60' cy='120' rx='34' ry='13' transform='rotate(-35 60 120)'/%3E%3C/g%3E%3Cg fill='%2313a35a' fill-opacity='0.14'%3E%3Cellipse cx='120' cy='140' rx='28' ry='11' transform='rotate(15 120 140)'/%3E%3C/g%3E%3Cg fill='%23ffd43b' fill-opacity='0.4'%3E%3Cellipse cx='170' cy='110' rx='22' ry='9' transform='rotate(-70 170 110)'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='1.2' fill='%2313a35a' fill-opacity='0.14'/%3E%3C/svg%3E");
  --deco-pos: right -30px top -16px, left -24px top 40%, left -20px bottom 0, 0 0;
  --deco-size: 220px 170px, 170px 170px, 220px 170px, 16px 16px;
  --deco-rep: no-repeat, no-repeat, no-repeat, repeat;
}
:root.th-oranye {
  --theme-bg: #fff5ec; --t1: #ff6a2b; --t1-ink: #fff; --t2: #2a160c; --t2-ink: #fff; --lime: #ffc93c; --lime-2: #f5b81c; --t3-ink: #2a160c; --violet: #e8551a; --btn: #ff6a2b; --btn-ink: #fff; --cta: #ff6a2b; --cta-2: #e8551a; --cta-ink: #fff; --bar: #2a160c;
  --lime-soft: color-mix(in srgb, var(--lime) 30%, transparent); --violet-soft: color-mix(in srgb, var(--violet) 16%, transparent);
  --deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='160' viewBox='0 0 140 160'%3E%3Cpath fill='%23ff6a2b' fill-opacity='0.4' d='M30 23Q30 30 37 30Q30 30 30 37Q30 30 23 30Q30 30 30 23ZM110 115Q110 120 115 120Q110 120 110 125Q110 120 105 120Q110 120 110 115Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'%3E%3Cg stroke='%23ff6a2b' stroke-opacity='0.22' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='224' y1='140' x2='257.6' y2='140'/%3E%3Cline x1='212.7' y1='182' x2='241.8' y2='198.8'/%3E%3Cline x1='182' y1='212.7' x2='198.8' y2='241.8'/%3E%3Cline x1='140' y1='224' x2='140' y2='257.6'/%3E%3Cline x1='98' y1='212.7' x2='81.2' y2='241.8'/%3E%3Cline x1='67.3' y1='182' x2='38.2' y2='198.8'/%3E%3Cline x1='56' y1='140' x2='22.4' y2='140'/%3E%3Cline x1='67.3' y1='98' x2='38.2' y2='81.2'/%3E%3Cline x1='98' y1='67.3' x2='81.2' y2='38.2'/%3E%3Cline x1='140' y1='56' x2='140' y2='22.4'/%3E%3Cline x1='182' y1='67.3' x2='198.8' y2='38.2'/%3E%3Cline x1='212.7' y1='98' x2='241.8' y2='81.2'/%3E%3C/g%3E%3Ccircle cx='140' cy='140' r='61.6' fill='%23ffc93c' fill-opacity='0.45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='320' viewBox='0 0 700 320'%3E%3Cpath d='M20 320A330 330 0 0 1 680 320' fill='none' stroke='%23ff6a2b' stroke-opacity='0.22' stroke-width='2'/%3E%3Cpath d='M80 320A270 270 0 0 1 620 320' fill='none' stroke='%23ffc93c' stroke-opacity='0.45' stroke-width='2'/%3E%3Cpath d='M140 320A210 210 0 0 1 560 320' fill='none' stroke='%23ff6a2b' stroke-opacity='0.154' stroke-width='1.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Ccircle cx='110' cy='110' r='110' fill='%23ffc93c' fill-opacity='0.22'/%3E%3C/svg%3E");
  --deco-pos: left 8px top 30%, right -90px top -90px, 50% calc(100% + 110px), left -130px top 44%;
  --deco-size: 140px 160px, 280px 280px, 700px 320px, 220px 220px;
  --deco-rep: no-repeat, no-repeat, no-repeat, no-repeat;
}
/* Gold elegan tampil gelap dulu (toko-theme.js) dengan latar hitam hangat. */
:root.th-gold[data-theme="dark"] { --bg: #0e0d0b; --surface: #1b1915; --surface-2: #24211b; --line: rgba(201, 162, 74, .16); --violet: #d9b45e; }
@media (prefers-color-scheme: dark) {
  :root.th-gold:not([data-theme="light"]) { --bg: #0e0d0b; --surface: #1b1915; --surface-2: #24211b; --line: rgba(201, 162, 74, .16); --violet: #d9b45e; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; min-height: 100vh; }
/* Motif latar tema (--deco*: beberapa gambar SVG kecil — gelembung, garis, daun, dll.). Tetap di tempat saat digulir. */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: var(--deco, none); background-position: var(--deco-pos, 0 0); background-size: var(--deco-size, auto); background-repeat: var(--deco-rep, no-repeat); opacity: var(--deco-o, 1); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { line-height: 1.15; margin: 0; letter-spacing: -.025em; }
p { margin: 0; }
svg { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
.tk-sprite { position: absolute; width: 0; height: 0; }
.tk-wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.tk-main { padding-top: 14px; padding-bottom: 120px; display: grid; gap: 16px; }
.tk-mono { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 12px; font-weight: 600; }

/* ---------- Kepala ---------- */
.tk-head { position: sticky; top: 0; z-index: 10; background: var(--bg); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tk-head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.tk-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.tk-ava { flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #141414; background: conic-gradient(from 210deg, var(--lime), #8ef0c8, var(--violet), var(--lime)); }
.tk-ava img { width: 100%; height: 100%; object-fit: cover; }
.tk-brand-txt { display: grid; min-width: 0; }
.tk-brand-txt b { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-brand-txt small { color: var(--ink-3); font-size: .74rem; }
.tk-head-tools { display: flex; gap: 8px; flex: none; }
.tk-head-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); cursor: pointer; padding: 0; font: inherit; }
.tk-head-btn .i-sun { display: none; }
:root[data-theme="dark"] .tk-head-btn .i-moon { display: none; }
:root[data-theme="dark"] .tk-head-btn .i-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tk-head-btn .i-moon { display: none; }
  :root:not([data-theme="light"]) .tk-head-btn .i-sun { display: block; }
}

/* Judul halaman untuk pembaca layar/mesin pencari saja (nama toko sudah tampil di bar atas). */
.tk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Tombol link reseller (home.ejs, maks 3, diatur di Toko saya) ----------
   Kartu "bento" bertema beda: 1 = ungu besar dengan tumpukan gambar miring + kilau bintang,
   2 = hitam berpola titik + panah lime, 3 = lime + panah gelap. Gambar kotak "berbalik" (rotateY 360deg)
   bergiliran — gambarnya tetap sama (animasi di blok gerak di bawah). */
.tk-links { display: grid; gap: 12px; }
.tk-links.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-links.n3 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.tk-links.n3 .tl-1 { grid-row: span 2; }
.tk-link { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 14px; min-height: 150px; padding: 18px 18px 16px; border-radius: 24px; text-decoration: none; transition: transform .25s cubic-bezier(.3, 1.3, .5, 1); }
.tk-link::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px); background-size: 14px 14px; pointer-events: none; }
.tk-link:active { transform: scale(.98); }
@media (hover: hover) { .tk-link:hover { transform: translateY(-3px); } }
.tk-link:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.tk-link-txt { display: grid; gap: 4px; min-width: 0; }
.tk-link-txt b { font-size: 1.15rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tk-link-txt small { font-size: .82rem; font-weight: 600; line-height: 1.35; opacity: .78; overflow-wrap: anywhere; }
/* Kartu 1 (paling atas / besar): judul & deskripsi lebih besar dari kartu lain supaya jadi pusat perhatian. */
.tl-1 .tk-link-txt { gap: 6px; }
.tl-1 .tk-link-txt b { font-size: 1.6rem; letter-spacing: -.02em; }
.tl-1 .tk-link-txt small { font-size: .92rem; }
.tk-logos { display: flex; align-items: flex-end; gap: 8px; margin-top: auto; }
.tk-logo { --s: 46px; position: relative; width: var(--s); height: var(--s); flex: none; perspective: 500px; }
.tk-logo img, .tk-logo.is-ic svg { display: block; width: 100%; height: 100%; box-sizing: border-box; border-radius: 22%; border: 2px solid #fff; background: #fff; object-fit: cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.tk-logo.is-ic svg { padding: 9px; color: #141414; }
.tk-link-go { position: absolute; right: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s ease; }
.tk-link-go svg { width: 16px; height: 16px; transform: rotate(180deg); }
@media (hover: hover) { .tk-link:hover .tk-link-go { transform: translateX(3px); } }

.tl-1 { --dot: rgba(255, 255, 255, .16); background: var(--t1); color: var(--t1-ink); }
/* Kartu 1: latar garis kotak-kotak tipis (bukan titik) + cahaya lembut di belakang gambar kanan bawah. */
.tl-1::before { background-image:
  radial-gradient(circle at 84% 76%, rgba(255, 255, 255, .2), transparent 38%),
  linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px, 26px 26px; background-position: 0 0, -1px -1px, -1px -1px; }
.tl-1 .tk-link-go { display: none; }
.tl-1 .tk-logos { justify-content: flex-end; padding: 18px 6px 4px; }
.tl-1 .tk-logo { --s: 76px; }
.tl-1 .tk-logo img, .tl-1 .tk-logo.is-ic svg { border-width: 2.5px; }   /* kotak besar: garis putih sedikit lebih tebal agar seimbang */
.tl-1 .tk-logo + .tk-logo { margin-left: -16px; }
/* Teks mengambang di sisi kiri kartu 1 (isi diatur reseller, bawaan "QRIS Otomatis", maks 20 karakter) (bagian yang tadinya kosong) — ada di baris gambar, jadi tidak
   pernah menimpa gambar; turun 2 baris kalau sempit. Hanya teks (tanpa kotak), warnanya ikut tulisan kartu (tema). */
.tk-float { display: none; }
/* Bintang kilau tambahan kartu 1 (selain 2 bintang .tl-1::after): bintang 4 sudut dari clip-path, di belakang tulisan
   & gambar (z-index -1, di atas pola kotak-kotak), posisi persen supaya ikut ukuran kartu di HP maupun layar lebar. */
.tk-stars { display: none; }
.tl-1 .tk-stars { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tk-stars i { position: absolute; width: var(--z); height: var(--z); background: rgba(255, 255, 255, .85); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.tk-stars .s1 { --z: 17px; top: 13%; right: 6%; }
.tk-stars .s2 { --z: 10px; top: 30%; right: 21%; opacity: .7; }
.tk-stars .s3 { --z: 12px; top: 47%; left: 37%; opacity: .8; }
.tk-stars .s4 { --z: 8px; top: 44%; left: 7%; opacity: .65; }
.tk-stars .s5 { --z: 9px; bottom: 7%; left: 40%; opacity: .7; }
.tl-1 .tk-float { display: block; margin-right: auto; align-self: center; max-width: 46%; padding: 0 6px 6px 2px; font-size: 1.3rem; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; transform: rotate(-6deg); text-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.tl-1 .lg-1 { transform: rotate(-11deg) translateY(4px); z-index: 2; }
.tl-1 .lg-2 { transform: rotate(9deg) translateY(-16px); z-index: 1; }
.tl-1 .lg-3 { transform: rotate(-4deg); z-index: 3; }
.tl-1::after { content: '\2726'; position: absolute; left: 20px; bottom: 14px; font-size: 20px; line-height: 1; color: rgba(255, 255, 255, .8); text-shadow: 112px -84px 0 rgba(255, 255, 255, .45); pointer-events: none; }
.tl-2 { --dot: rgba(255, 255, 255, .13); background: var(--t2); color: var(--t2-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tl-2 .tk-link-go { border: 1.5px solid var(--lime); color: var(--lime); }
.tl-3 { --dot: rgba(20, 20, 20, .13); background: var(--lime); color: var(--t3-ink); }
.tl-3 .tk-link-go { background: var(--t3-ink); color: var(--lime); }
.tl-2 .tk-logos, .tl-3 .tk-logos { padding-right: 44px; }
@media (max-width: 560px) {
  .tk-links.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-links.n3 .tl-1 { grid-column: 1 / -1; grid-row: auto; }
  .tk-link { min-height: 138px; padding: 15px 14px 14px; border-radius: 20px; }
  .tk-link-txt b { font-size: 1rem; }
  .tk-link-txt small { font-size: .76rem; }
  /* HP: kartu 1 selebar layar (3 / 1 tombol) → teks tetap lebih besar; 2 tombol berdampingan → ukuran sama. */
  .tk-links:not(.n2) .tl-1 .tk-link-txt b { font-size: 1.35rem; }
  .tk-links:not(.n2) .tl-1 .tk-link-txt small { font-size: .84rem; }
  .tk-links.n2 .tl-1 .tk-link-txt b { font-size: 1.08rem; }
  .tk-links.n2 .tl-1 .tk-link-txt small { font-size: .78rem; }
  .tl-1 .tk-logo { --s: 64px; }
  .tl-1 .tk-float { font-size: 1.15rem; }
  .tk-links.n2 .tl-1 .tk-float { display: none; }   /* kartu 1 setengah layar: tidak ada tempat kosong */
  /* Kartu 2 & 3 setengah layar (keputusan pemilik 2026-11-17): bulatan panah tetap tampil (tanda "bisa diketuk"),
     sedikit lebih kecil; gambar ditumpuk sedikit (seperti kartu 1) supaya 3 gambar + panah tetap muat. */
  .tk-links:not(.n1) .tl-2 .tk-logo, .tk-links:not(.n1) .tl-3 .tk-logo { --s: 34px; }
  .tk-links:not(.n1) .tl-2 .tk-logo + .tk-logo, .tk-links:not(.n1) .tl-3 .tk-logo + .tk-logo { margin-left: -8px; }
  .tk-links:not(.n1) .tl-2 .tk-logos, .tk-links:not(.n1) .tl-3 .tk-logos { gap: 0; padding-right: 36px; }
  .tk-links:not(.n1) .tl-2 .tk-link-go, .tk-links:not(.n1) .tl-3 .tk-link-go { width: 28px; height: 28px; right: 12px; bottom: 17px; }
  .tk-links:not(.n1) .tl-2 .tk-link-go svg, .tk-links:not(.n1) .tl-3 .tk-link-go svg { width: 13px; height: 13px; }
}
/* HP sangat kecil: teks "QRIS Otomatis" & gambar kartu 1 sedikit lebih kecil supaya teks tidak terpotong di kiri;
   gambar kartu 2 & 3 juga sedikit lebih kecil supaya panah tetap muat. */
@media (max-width: 359px) {
  .tl-1 .tk-float { font-size: 1rem; }
  .tl-1 .tk-logo { --s: 54px; }
  .tk-links:not(.n1) .tl-2 .tk-logo, .tk-links:not(.n1) .tl-3 .tk-logo { --s: 30px; }
  .tk-links:not(.n1) .tl-2 .tk-link-go, .tk-links:not(.n1) .tl-3 .tk-link-go { bottom: 15px; }
}

/* ---------- Kartu & catatan ---------- */
.tk-card { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.tk-note { border-radius: var(--r-sm); padding: 12px 14px; font-size: .9rem; font-weight: 600; }
.tk-note.warn { background: var(--amber-soft); color: var(--amber); }
.tk-note.err { background: var(--red-soft); color: var(--red); }
.tk-empty { text-align: center; padding: 34px 20px; display: grid; gap: 8px; justify-items: center; color: var(--ink-2); }
.tk-empty h2 { color: var(--ink); }
.tk-sec-h { display: flex; align-items: baseline; gap: 8px; margin: 6px 2px -4px; }
.tk-sec-h h2 { font-size: 1.25rem; font-weight: 800; }
.tk-hint { font-size: .8rem; color: var(--ink-3); text-align: center; }

/* ---------- Gambar produk (warna dari id produk, tanpa style inline) ---------- */
.tk-art { position: relative; display: grid; place-items: center; overflow: hidden; }
.tk-art img { width: 100%; height: 100%; object-fit: cover; }
.tk-art b { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.03em; text-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.art-0 { background: linear-gradient(135deg, #6d4aff, #b388ff); }
.art-1 { background: linear-gradient(135deg, #00a37a, #7be3b9); }
.art-2 { background: linear-gradient(135deg, #ff6a3d, #ffb36b); }
.art-3 { background: linear-gradient(135deg, #1f6fff, #6fc3ff); }
.art-4 { background: linear-gradient(135deg, #e0338a, #ff8fc1); }
.art-5 { background: linear-gradient(135deg, #1c1c1c, #5c5c66); }
.art-5 b { color: var(--lime); }

/* ---------- Daftar produk ---------- */
.tk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 680px) { .tk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 920px) { .tk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tk-prod { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .tk-prod:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20, 20, 20, .12); } }
/* Foto 5:4 (sedikit lebih pendek dari kotak, permintaan pemilik 2026-11-13; dipotong rata tengah). Sejak 2026-11-17
   foto PENUH sampai tepi kartu (tanpa bingkai): sudut atas ikut lengkung kartu (.tk-prod overflow hidden). */
.tk-prod .tk-art { aspect-ratio: 5 / 4; margin: 0; border-radius: 0; }
.tk-prod .tk-tag { left: 10px; top: 10px; }
.tk-tag { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: .7rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--lime); color: #141414; }
.tk-tag svg { width: 12px; height: 12px; }
.tk-prod-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 11px 12px 12px; }
/* Nama maks 2 baris. Tidak lagi dipaksa 2 baris (keputusan pemilik 2026-11-17): nama pendek langsung disusul
   "mulai"/harga tanpa baris kosong; tombol Order tetap rata bawah (margin-top: auto). */
.tk-prod-name { font-weight: 800; font-size: .95rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-from { display: grid; line-height: 1.2; }
.tk-from small { color: var(--ink-3); font-size: .72rem; font-weight: 600; }
.tk-from b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
/* Harga + "N terjual" sebaris, terjual di kanan (keputusan pemilik 2026-11-17). Harga tidak pernah dipotong/patah
   (nowrap); kalau kartu terlalu sempit, "terjual" yang turun ke baris berikutnya. */
.tk-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 6px; row-gap: 1px; }
.tk-price b { white-space: nowrap; }
.tk-sold { white-space: nowrap; font-size: .74rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }   /* jumlah terjual gabungan semua toko */
/* HP: sedikit dirapatkan (harga TIDAK diperkecil) supaya harga 5–6 digit + "N terjual" muat sebaris di layar ±375px. */
@media (max-width: 560px) {
  .tk-prod-body { padding-left: 10px; padding-right: 10px; }
  .tk-price { column-gap: 4px; }
  .tk-sold { font-size: .7rem; }
}
.tk-order-btn { margin-top: auto; display: block; text-align: center; font-size: .88rem; font-weight: 800; padding: 10px 14px; border-radius: 14px; background: var(--btn); color: var(--btn-ink); }
@media (hover: hover) { .tk-prod:hover .tk-order-btn { background: var(--lime); color: var(--t3-ink); } }

/* ---------- Detail produk & order ---------- */
.tk-back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .9rem; width: fit-content; }
.tk-back svg { width: 18px; height: 18px; }
.tk-pd { display: flex; align-items: center; gap: 16px; }
.tk-pd-art { width: 96px; height: 96px; flex: none; border-radius: 26px; }
.tk-pd-art b { font-size: 1.8rem; }
.tk-pd h1 { font-size: clamp(1.4rem, 5.5vw, 2.1rem); font-weight: 800; }
@media (min-width: 760px) { .tk-pd-art { width: 128px; height: 128px; border-radius: 32px; } }

.tk-buy { display: grid; gap: 12px; }
.tk-step { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-top: 4px; }
.tk-step span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: .8rem; }
.tk-vars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 680px) { .tk-vars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tk-var { position: relative; cursor: pointer; }
.tk-var input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tk-var-box { position: relative; display: grid; gap: 2px; align-content: start; height: 100%; padding: 14px 14px 12px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease, background-color .15s ease; }
.tk-var-name { font-weight: 800; font-size: .95rem; padding-right: 24px; }
.tk-var-price { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tk-var-tag { font-size: .74rem; font-weight: 700; color: var(--ink-3); }
.tk-var-tag.is-instant { color: var(--green); }
.tk-var-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); }
.tk-var-check svg { width: 13px; height: 13px; opacity: 0; color: var(--t3-ink); }
.tk-var input:checked + .tk-var-box { border-color: var(--ink); background: var(--lime-soft); }
.tk-var input:checked + .tk-var-box .tk-var-check { background: var(--lime); border-color: var(--lime); }
.tk-var input:checked + .tk-var-box .tk-var-check svg { opacity: 1; }
.tk-var input:focus-visible + .tk-var-box { outline: 3px solid var(--violet); outline-offset: 2px; }
@media (hover: hover) { .tk-var:hover .tk-var-box { transform: translateY(-2px); } }

/* Deskripsi & ketentuan paket terpilih: kartu buka-tutup berisi poin */
.tk-info { display: grid; gap: 10px; }
.tk-acc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.tk-acc summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; }
.tk-acc summary::-webkit-details-marker { display: none; }
.tk-acc-label { flex: 1; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.tk-acc-pkg { font-size: .85rem; font-weight: 700; color: var(--ink); }
.tk-acc-chev { width: 16px; height: 16px; color: var(--ink-2); transform: rotate(-90deg); transition: transform .2s ease; }
.tk-acc[open] .tk-acc-chev { transform: rotate(90deg); }
.tk-points-list { margin: 0; padding: 12px 16px 14px 34px; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--ink-2); font-size: .92rem; line-height: 1.55; }
.tk-points-list li { padding-left: 2px; overflow-wrap: anywhere; }
.tk-points-list li::marker { color: var(--ink); }
.tk-points-list li.is-note { color: var(--violet); font-weight: 700; }
.tk-points-list a { color: var(--violet); }
.tk-desc b, .tk-points-list b { color: var(--ink); }
.tk-desc { white-space: pre-line; color: var(--ink-2); overflow-wrap: anywhere; font-size: .92rem; }
.tk-desc a { color: var(--violet); }

.tk-wa { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 0 14px; min-height: 56px; box-shadow: var(--shadow); }
.tk-wa:focus-within { border-color: var(--ink); }
.tk-wa svg { color: var(--green); }
.tk-wa input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--ink); padding: 14px 0; outline: none; letter-spacing: .02em; }
.tk-wa input::placeholder { color: var(--ink-3); font-weight: 500; }
.tk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px; background: var(--bar); color: #fff; box-shadow: 0 16px 40px rgba(20, 20, 20, .2); margin-top: 4px; }
.tk-bar-total { display: grid; line-height: 1.15; }
.tk-bar-total small { color: rgba(255, 255, 255, .6); font-size: .72rem; font-weight: 600; }
.tk-bar-total b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }

.tk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; border: 0; border-radius: 999px; padding: 13px 24px; min-height: 48px; background: var(--cta); color: var(--cta-ink); transition: transform .12s ease, background-color .12s ease; }
@media (hover: hover) { .tk-btn:hover { background: var(--cta-2); } }
.tk-btn:active { transform: scale(.97); }
.tk-btn:disabled { opacity: .4; cursor: not-allowed; }
.tk-btn-order { min-width: 132px; font-size: 1rem; }
.tk-chip-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .8rem; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: var(--surface-2); color: var(--ink); }
.tk-chip-btn svg { width: 15px; height: 15px; }
.tk-chip-btn.is-done { background: var(--green); color: #fff; border-color: transparent; }

/* ---------- Tiket pesanan ---------- */
.tk-ticket { position: relative; overflow: hidden; max-width: 460px; width: 100%; margin: 0 auto; background: var(--surface); border-radius: 28px; padding: 26px 20px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 12px; justify-items: center; text-align: center; }
.tk-ticket::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--lime), var(--violet)); }
.tk-ticket h1 { font-size: 1.5rem; font-weight: 800; }
.tk-ticket-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-pill { display: inline-block; font-weight: 800; font-size: .74rem; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.tk-pill.st-pending { background: var(--amber-soft); color: var(--amber); }
.tk-pill.st-lunas { background: var(--violet-soft); color: var(--violet); }
.tk-pill.st-selesai { background: var(--green-soft); color: var(--green); }
.tk-pill.st-kedaluwarsa, .tk-pill.st-dibatalkan { background: var(--red-soft); color: var(--red); }
.tk-qr { background: #fff; border-radius: 20px; padding: 12px; width: min(270px, 100%); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 20, 20, .08); }
.tk-qr img { width: 100%; height: auto; image-rendering: pixelated; }
.tk-amount { display: grid; justify-items: center; gap: 4px; }
.tk-amount small { color: var(--ink-3); font-weight: 700; font-size: .78rem; }
.tk-amount b { font-size: 2.1rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tk-timer { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; background: var(--surface-2); border-radius: 999px; padding: 7px 14px; }
.tk-timer span { color: var(--ink-3); }
.tk-timer b { font-variant-numeric: tabular-nums; }
.tk-timer.is-over { background: var(--red-soft); color: var(--red); }
.tk-state { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; }
.tk-state svg { width: 30px; height: 30px; }
.tk-state.ok { background: var(--lime); color: var(--t3-ink); }
.tk-state.warn { background: var(--red-soft); color: var(--red); }
.tk-deliver { width: 100%; text-align: left; background: var(--surface-2); border-radius: var(--r-sm); padding: 14px; display: grid; gap: 10px; border: 2px dashed var(--lime-2); }
.tk-deliver pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; }
.tk-deliver .tk-chip-btn { justify-self: start; }
.tk-acc-terms { width: 100%; text-align: left; box-shadow: none; background: var(--surface-2); }
.tk-perf { width: calc(100% + 40px); margin: 4px -20px; height: 22px; position: relative; background: radial-gradient(circle at 0 50%, var(--bg) 11px, transparent 12px), radial-gradient(circle at 100% 50%, var(--bg) 11px, transparent 12px); }
.tk-perf::after { content: ''; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--line); }
.tk-sum { width: 100%; margin: 0; display: grid; text-align: left; }
.tk-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .88rem; }
.tk-sum dt { color: var(--ink-3); flex: none; }
.tk-sum dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Riwayat pesanan ---------- */
.tk-olist { display: grid; gap: 10px; }
.tk-orow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; box-shadow: var(--shadow); }
.tk-orow-main { display: grid; min-width: 0; }
.tk-orow-main b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-orow-main small { color: var(--ink-3); font-size: .74rem; }
.tk-orow-side { display: grid; justify-items: end; gap: 4px; flex: none; }
.tk-orow-side b { font-variant-numeric: tabular-nums; font-size: .92rem; }

/* ---------- Pesan (tidak ditemukan / error) ---------- */
.tk-msg { text-align: center; max-width: 460px; margin: 30px auto; display: grid; justify-items: center; gap: 10px; }
.tk-msg-ic { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--lime); color: var(--t3-ink); font-weight: 800; font-size: 1.6rem; }
.tk-msg p { color: var(--ink-2); }

/* ---------- Menu bawah & kaki ---------- */
.tk-nav { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--surface); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(20, 20, 20, .14); }
.tk-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.tk-nav a svg { width: 19px; height: 19px; }
.tk-nav a.on { background: var(--btn); color: var(--btn-ink); }
/* Pil yang meluncur di belakang menu aktif (dipasang toko.js; posisi dari --x/--w) */
.tk-nav-ind { position: absolute; top: 6px; bottom: 6px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: var(--btn); pointer-events: none; transition: transform .3s cubic-bezier(.3, 1.25, .5, 1), width .3s cubic-bezier(.3, 1.25, .5, 1), opacity .2s ease, scale .25s ease; }
.tk-nav-ind.hide { opacity: 0; scale: .6; }
.tk-nav-ind.jump { transition: none; }
.tk-nav.has-ind a { position: relative; z-index: 1; }
.tk-nav.has-ind a.on { background: transparent; }
.tk-foot { padding: 10px 0 110px; font-size: .75rem; color: var(--ink-3); text-align: center; }
/* ---------- Ketentuan ---------- */
.tk-terms { display: grid; gap: 14px; max-width: 640px; width: 100%; margin: 0 auto; }
.tk-terms h1 { font-size: 1.5rem; font-weight: 800; }
.tk-terms .tk-desc b { color: var(--ink); display: inline-block; margin-top: 4px; }
.tk-terms .tk-chip-btn { justify-self: start; }
.tk-foot a, .tk-hint a { color: inherit; font-weight: 700; }

/* =========================================================
   Animasi
   - Ganti tema: lingkaran menyebar dari tombol 🌙/☀️ (toko.js, View Transitions)
   - Pindah halaman: memudar halus, kepala & menu bawah tetap diam
   - Bagian halaman muncul bertahap saat terlihat (.js + .is-in dari toko.js). Memakai properti
     translate/scale (bukan transform) supaya tidak bentrok dengan efek hover yang memakai transform.
   Semua hanya aktif kalau pengguna TIDAK memilih "kurangi gerakan" (prefers-reduced-motion).
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: tkVtOut .16s ease both; }
  ::view-transition-new(root) { animation: tkVtIn .32s cubic-bezier(.2, .75, .2, 1) both; }
  .tk-head { view-transition-name: tk-head; }
  .tk-nav { view-transition-name: tk-nav; }
  ::view-transition-group(tk-head), ::view-transition-group(tk-nav) { animation: none; }
  ::view-transition-old(tk-head), ::view-transition-old(tk-nav) { display: none; }
  ::view-transition-new(tk-head), ::view-transition-new(tk-nav) { animation: none; }
  /* Saat ganti tema: tanpa animasi bawaan, seluruh layar ikut dalam satu lingkaran */
  :root.theme-vt::view-transition-old(root), :root.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  :root.theme-vt .tk-head, :root.theme-vt .tk-nav { view-transition-name: none; }

  /* Ikon tombol tema berputar & membesar setiap berganti */
  :root.theme-vt .tk-head-btn .i-moon, :root.theme-vt .tk-head-btn .i-sun { animation: tkIconIn .5s cubic-bezier(.34, 1.56, .64, 1) both; }
  .tk-head-btn { transition: transform .15s ease; }
  .tk-head-btn:active { transform: scale(.9); }

  /* Muncul bertahap */
  .js .tk-sec-h, .js .tk-prod, .js .tk-back, .js .tk-pd, .js .tk-step, .js .tk-var, .js .tk-info,
  .js .tk-wa, .js .tk-bar, .js .tk-ticket, .js .tk-orow, .js .tk-card, .js .tk-note, .js .tk-link {
    opacity: 0; translate: 0 16px;
    transition-property: opacity, translate, scale, transform, box-shadow;
    transition-duration: .55s, .55s, .55s, .2s, .2s;
    transition-timing-function: cubic-bezier(.2, .75, .2, 1);
    transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0s, 0s;
  }
  .js .tk-prod, .js .tk-var, .js .tk-ticket, .js .tk-link { scale: .96; }
  .js .tk-sec-h.is-in, .js .tk-prod.is-in, .js .tk-back.is-in, .js .tk-pd.is-in, .js .tk-step.is-in,
  .js .tk-var.is-in, .js .tk-info.is-in, .js .tk-wa.is-in, .js .tk-bar.is-in, .js .tk-ticket.is-in, .js .tk-orow.is-in,
  .js .tk-card.is-in, .js .tk-note.is-in, .js .tk-link.is-in { opacity: 1; translate: none; scale: none; }
  /* toko.js gagal dimuat → semua tetap muncul setelah 2,5 detik */
  .js:not(.js-ready) :is(.tk-sec-h, .tk-prod, .tk-back, .tk-pd, .tk-step, .tk-var, .tk-info, .tk-wa, .tk-bar, .tk-ticket, .tk-orow, .tk-card, .tk-note, .tk-link) {
    animation: tkShow 0s 2.5s forwards;
  }

  /* Tombol link: gambar berbalik bergiliran (kartu 1 -> 2 -> 3, tiap gambar sedikit menyusul); bintang berkedip */
  .tk-logo img, .tk-logo.is-ic svg { animation: tkFlip 6s cubic-bezier(.45, 0, .2, 1) infinite both; animation-delay: calc(var(--fd, 0s) + var(--fi, 0s)); }
  .tk-logo.lg-2 { --fi: .18s; }
  .tk-logo.lg-3 { --fi: .36s; }
  .tl-2 { --fd: 2s; }
  .tl-3 { --fd: 4s; }
  .tl-1::after { animation: tkTwinkle 2.6s ease-in-out infinite; }
  .tl-1 .tk-float { animation: tkFloat 3.4s ease-in-out infinite; }
  .tk-stars i { animation: tkStar 2.8s ease-in-out infinite; }
  .tk-stars .s2 { animation-delay: .6s; }
  .tk-stars .s3 { animation-delay: 1.3s; animation-duration: 3.2s; }
  .tk-stars .s4 { animation-delay: 1.9s; }
  .tk-stars .s5 { animation-delay: .9s; animation-duration: 2.4s; }

  /* Kartu produk: kilau saat disorot, label Instan berdenyut, ditekan mengecil sedikit */
  .tk-prod .tk-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); }
  .tk-art b, .tk-art img { transition: transform .5s cubic-bezier(.2, .75, .2, 1); }
  .tk-tag { animation: tkPulse 2.4s ease-in-out infinite; }
  .tk-prod:active { transform: scale(.98); }
  .tk-order-btn { transition: background-color .2s ease, color .2s ease; }

  /* Pilih paket: kartu memantul & centang muncul; isi deskripsi memudar masuk */
  .tk-var input:checked + .tk-var-box { animation: tkVarPop .35s cubic-bezier(.34, 1.56, .64, 1); }
  .tk-var input:checked + .tk-var-box .tk-var-check svg { animation: tkCheck .35s cubic-bezier(.34, 1.56, .64, 1) both; }
  .tk-info:not([hidden]) .tk-acc[open] .tk-points-list { animation: tkFade .35s ease; }

  /* Tombol Order: kilau lewat berkala */
  .tk-btn-order { position: relative; overflow: hidden; }
  .tk-btn-order:not(:disabled)::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); animation: tkShine 3.2s ease-in-out 1s infinite; }

  /* Tiket bayar: garis scan di QR, waktu hampir habis berdenyut, ikon lunas meletup */
  .st-pending .tk-qr { position: relative; overflow: hidden; }
  .st-pending .tk-qr::after { content: ''; position: absolute; left: 8%; right: 8%; height: 3px; top: 10%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--lime-2), transparent); box-shadow: 0 0 14px 2px rgba(198, 244, 50, .6); animation: tkScan 2.6s ease-in-out infinite; }
  .tk-timer.is-low { animation: tkLow 1s ease-in-out infinite; color: var(--red); }
  .tk-state { position: relative; animation: tkStateIn .6s cubic-bezier(.34, 1.56, .64, 1) .15s both; }
  .tk-state.ok::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--lime); animation: tkRing 1.6s ease-out .4s 2; }
  .tk-deliver { animation: tkFade .5s ease .3s both; }
  .tk-acc-terms { animation: tkFade .5s ease .45s both; }

  /* Menu bawah naik sekali per kunjungan (toko-theme.js memasang .nav-seen setelahnya) */
  .js:not(.nav-seen) .tk-nav { animation: tkNavIn .55s cubic-bezier(.34, 1.56, .64, 1) .2s both; }
  .tk-nav a { transition: background-color .25s ease, color .25s ease, transform .15s ease; }
  .tk-nav a:active { transform: scale(.95); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .tk-prod:hover .tk-art::after { transform: translateX(120%); transition: transform .8s ease; }
  .tk-prod:hover .tk-art b, .tk-prod:hover .tk-art img { transform: scale(1.06); }
}
@keyframes tkVtOut { to { opacity: 0; } }
@keyframes tkVtIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes tkIconIn { from { opacity: 0; transform: rotate(-120deg) scale(.3); } }
@keyframes tkFlip { 0%, 72% { transform: rotateY(0); } 86%, 100% { transform: rotateY(360deg); } }
@keyframes tkTwinkle { 50% { opacity: .35; } }
@keyframes tkStar { 50% { transform: scale(.55) rotate(25deg); opacity: .25; } }
@keyframes tkFloat { 50% { transform: rotate(-4deg) translateY(-7px); } }
@keyframes tkShow { to { opacity: 1; translate: none; scale: none; } }
@keyframes tkPulse { 50% { box-shadow: 0 0 0 6px rgba(198, 244, 50, .25); } }
@keyframes tkVarPop { 40% { transform: scale(1.03); } }
@keyframes tkCheck { from { transform: scale(0) rotate(-45deg); } }
@keyframes tkFade { from { opacity: 0; transform: translateY(-4px); } }
@keyframes tkShine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
@keyframes tkScan { 50% { top: 88%; } }
@keyframes tkLow { 50% { transform: scale(1.06); background: var(--red-soft); } }
@keyframes tkStateIn { from { transform: scale(0) rotate(-30deg); opacity: 0; } }
@keyframes tkRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes tkNavIn { from { transform: translate(-50%, 140%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Ulasan pembeli (services/reviews.js) ---------- */
:root { --star: #f5a524; --star-off: rgba(20, 20, 20, .14); }
:root[data-theme="dark"] { --star-off: rgba(255, 255, 255, .18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --star-off: rgba(255, 255, 255, .18); } }
.tk-note.ok { background: var(--green-soft); color: var(--green); }
.tk-rstars { display: inline-flex; gap: 2px; flex: none; }
.tk-rstars svg { width: 15px; height: 15px; color: var(--star-off); }
.tk-rstars svg.on { color: var(--star); }

.tk-reviews { display: grid; gap: 10px; }
.tk-rv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.tk-rv-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tk-rv-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--surface-2); color: var(--ink-2); }
.tk-rv-who { flex: 1; min-width: 0; display: grid; }
.tk-rv-who b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-rv-who small { font-size: .75rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-rv-text { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.tk-more { justify-self: center; }

.tk-pd-title { display: grid; gap: 6px; min-width: 0; }
.tk-rating { display: inline-flex; align-items: center; gap: 5px; width: fit-content; text-decoration: none; color: var(--ink-2); font-size: .85rem; }
.tk-rating svg { width: 17px; height: 17px; color: var(--star); }
.tk-rating b { color: var(--ink); }
.tk-rating span { text-decoration: underline; text-underline-offset: 3px; }
.tk-rating-strip { display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.tk-rating-strip b { color: var(--ink); font-size: 1.05rem; }
.tk-rating-star { width: 22px; height: 22px; color: var(--star); flex: none; }
.tk-rating-strip span { flex: 1; }
.tk-rating-go { width: 18px; height: 18px; transform: rotate(180deg); color: var(--ink-3); flex: none; }

.tk-rsum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; align-items: center; padding: 16px 18px; }
.tk-rsum-big { display: grid; justify-items: center; gap: 4px; }
.tk-rsum-big b { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.tk-rsum-big small { font-size: .75rem; color: var(--ink-3); }
.tk-rsum-bars { display: grid; gap: 4px; }
.tk-rsum-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) 24px; gap: 8px; align-items: center; font-size: .75rem; color: var(--ink-3); }
.tk-rsum-row span:last-child { text-align: right; }
.tk-rsum-bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tk-rsum-bar i { display: block; height: 100%; border-radius: inherit; background: var(--star); }
.tk-rsum-bar i.w0 { width: 0%; }
.tk-rsum-bar i.w5 { width: 5%; }
.tk-rsum-bar i.w10 { width: 10%; }
.tk-rsum-bar i.w15 { width: 15%; }
.tk-rsum-bar i.w20 { width: 20%; }
.tk-rsum-bar i.w25 { width: 25%; }
.tk-rsum-bar i.w30 { width: 30%; }
.tk-rsum-bar i.w35 { width: 35%; }
.tk-rsum-bar i.w40 { width: 40%; }
.tk-rsum-bar i.w45 { width: 45%; }
.tk-rsum-bar i.w50 { width: 50%; }
.tk-rsum-bar i.w55 { width: 55%; }
.tk-rsum-bar i.w60 { width: 60%; }
.tk-rsum-bar i.w65 { width: 65%; }
.tk-rsum-bar i.w70 { width: 70%; }
.tk-rsum-bar i.w75 { width: 75%; }
.tk-rsum-bar i.w80 { width: 80%; }
.tk-rsum-bar i.w85 { width: 85%; }
.tk-rsum-bar i.w90 { width: 90%; }
.tk-rsum-bar i.w95 { width: 95%; }
.tk-rsum-bar i.w100 { width: 100%; }
.tk-rsum-note { grid-column: 1 / -1; margin: 0; font-size: .75rem; color: var(--ink-3); }

.tk-page-h { font-size: clamp(1.4rem, 5.5vw, 2rem); font-weight: 800; }
.tk-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tk-filter::-webkit-scrollbar { display: none; }
.tk-filter a { flex: none; text-decoration: none; font-size: .82rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.tk-filter a small { color: var(--ink-3); font-weight: 600; }
.tk-filter a.on { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.tk-filter a.on small { color: inherit; opacity: .7; }
.tk-pager { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .85rem; color: var(--ink-2); }

/* Formulir ulasan di halaman pesanan */
.tk-review { max-width: 460px; width: 100%; margin: 0 auto; display: grid; gap: 12px; }
.tk-review h2 { font-size: 1.15rem; font-weight: 800; }
.tk-rv-edit { display: grid; gap: 12px; }
.tk-rv-edit > summary { list-style: none; width: fit-content; }
.tk-rv-edit > summary::-webkit-details-marker { display: none; }
.tk-rv-form { display: grid; gap: 14px; margin-top: 4px; }
.tk-rate { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.tk-rate legend { padding: 0; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.tk-rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.tk-rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tk-rate-stars label { cursor: pointer; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); }
.tk-rate-stars label svg { width: 30px; height: 30px; color: var(--star-off); transition: color .12s ease, transform .12s ease; }
.tk-rate-stars input:checked ~ label svg { color: var(--star); }
@media (hover: hover) {
  .tk-rate-stars:hover label svg { color: var(--star-off); }
  .tk-rate-stars label:hover svg, .tk-rate-stars label:hover ~ label svg { color: var(--star); }
}
.tk-rate-stars input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.tk-rate-stars label:active svg { transform: scale(.88); }
.tk-field { display: grid; gap: 6px; }
.tk-field > span { font-weight: 700; font-size: .9rem; }
.tk-field small { font-weight: 500; color: var(--ink-3); }
.tk-field textarea, .tk-field input { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; outline: none; resize: vertical; width: 100%; }
.tk-field textarea:focus, .tk-field input:focus { border-color: var(--ink); }
.tk-field textarea::placeholder, .tk-field input::placeholder { color: var(--ink-3); }
