/* =====================================================================
   LIHAI.ID: lapisan tampilan baru, satu keluarga dengan homepage lihai.id
   Dimuat SETELAH style.css. Hanya tampilan. Oranye dan putih; terang default, gelap tersedia.
   ===================================================================== */
:root {
  --paper: #FFFBF7; --bg2: #FFF3EA; --ink: #1A1210; --muted: #6B5B52; --line: #F1E1D4; --bd: #F1E1D4; --bd-in: #B49A8A;
  --orange: #F2550F; --orange2: #FF8A3D; --orange-dark: #C23A08; --btn1: #F0600F; --btn2: #D4440D; --on-accent: #fff;
  --peach: #FFE9DA; --card: #fff; --field: #fff; --yellow: #FFF3D6; --green: #1E8E5A; --danger: #B3261E;
  --glow: rgba(242, 85, 15, .38); --radius: 22px;
  --sh: 0 1px 2px rgba(80, 35, 10, .06), 0 8px 24px -8px rgba(120, 50, 10, .16);
  --sh2: 0 2px 4px rgba(80, 35, 10, .06), 0 24px 60px -20px rgba(150, 60, 10, .38);
  --panel-dark: #2B160C;
}
:root[data-theme="dark"] {
  --paper: #120D0A; --bg2: #1A130F; --ink: #FBF1EA; --muted: #C2B0A4; --line: #352619; --bd: #352619; --bd-in: #7A6354;
  --orange: #FF7A3A; --orange2: #FFA063; --orange-dark: #FF9A66; --btn1: #FF7A3A; --btn2: #EF5A15; --on-accent: #1A0E07;
  --peach: #3A2214; --card: #1E1612; --field: #1A130F; --yellow: #3A3220; --green: #4CD08B; --danger: #FF8A7A;
  --glow: rgba(255, 122, 58, .34); --panel-dark: #2B1B10;
  --sh: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .6); --sh2: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 60px -20px rgba(0, 0, 0, .8);
}
body { background: var(--paper); transition: background-color .3s, color .3s; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 420px at 6% -4%, rgba(255, 178, 122, .42), transparent 70%), radial-gradient(560px 460px at 100% 6%, rgba(255, 138, 61, .22), transparent 70%); }
:root[data-theme="dark"] body::before { background: radial-gradient(520px 420px at 6% -4%, rgba(255, 122, 58, .16), transparent 70%), radial-gradient(560px 460px at 100% 6%, rgba(255, 138, 61, .09), transparent 70%); }
h1, h2, h3 { font-weight: 800; letter-spacing: -.035em; text-wrap: balance; } h3 { letter-spacing: -.02em; }
.hero h1 { font-weight: 800; letter-spacing: -.04em; font-size: clamp(26px, 4.4vw, 40px); line-height: 1.12; }
.hero p.lead { font-size: 16px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

/* header kaca, merek dan logo Lihai.id */
header.top { background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 8px 30px -22px rgba(120, 50, 10, .45); }
.brand .logo, img.logo { width: 38px; height: 38px; border-radius: 11px; background: none; box-shadow: 0 8px 18px -6px var(--glow); flex: none; display: block; }
.brand-tx b { font: 800 24px/1 var(--font); letter-spacing: -.04em; color: var(--ink); }
.brand-tx b i { font-style: normal; color: var(--orange); }
.brand-tx small { font: 500 12px/1.3 var(--font); color: var(--muted); }
.brand { gap: 10px; }

/* tombol hidup: pil bergradasi, bercahaya, berkilau saat disorot */
.btn, button.btn { position: relative; overflow: hidden; isolation: isolate; border-radius: 999px; border: 0; padding: 12px 22px; font-weight: 700;
  background: var(--card); color: var(--ink); box-shadow: var(--sh), 0 0 0 1px var(--line) inset; transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s, background-color .2s; }
.btn:hover { background: var(--card); transform: translateY(-2px); box-shadow: var(--sh2), 0 0 0 1px var(--orange) inset; }
.btn:active { transform: scale(.98); box-shadow: var(--sh), 0 0 0 1px var(--line) inset; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(242, 85, 15, .16) 50%, transparent 65%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .7s; }
.btn.pri { background: linear-gradient(180deg, var(--btn1), var(--btn2)); color: #fff; border: 0;
  box-shadow: 0 12px 26px -8px var(--glow), 0 2px 0 rgba(255, 255, 255, .32) inset, 0 -2px 0 rgba(0, 0, 0, .12) inset; }
:root[data-theme="dark"] .btn.pri { color: #1A0E07; }
.btn.pri::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); }
.btn.pri:hover { background: linear-gradient(180deg, var(--btn1), var(--btn2)); box-shadow: 0 18px 34px -8px var(--glow), 0 2px 0 rgba(255, 255, 255, .32) inset; }
.btn.ghost { background: transparent; box-shadow: none; padding: 8px 14px; } .btn.ghost:hover { background: var(--peach); box-shadow: none; }
.btn.dark, .btn.dark:hover { background: var(--panel-dark); color: #fff; box-shadow: var(--sh); }
.btn.del { color: var(--danger); }
.btn.sm { padding: 8px 16px; }
.btn:disabled { transform: none; box-shadow: 0 0 0 1px var(--line) inset; opacity: .55; }
.btn.pri:disabled { box-shadow: none; }
.btn.prof-b, .iconb { box-shadow: none; }
.iconb { border-radius: 50%; } .lang-b { border-radius: 999px; }
.iconb:hover { background: var(--peach); transform: none; }

/* menu, chip, pil */
.nv { border-radius: 999px; font-weight: 600; color: var(--muted); } .nv:hover { color: var(--ink); background: var(--peach); }
.nv.on { background: var(--peach); color: var(--orange-dark); }
.chip, nav.tabs a { border-radius: 999px; border-color: var(--line); font-weight: 600; box-shadow: none; }
.chip.on, nav.tabs a.on { background: linear-gradient(180deg, var(--btn1), var(--btn2)); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -8px var(--glow); }
:root[data-theme="dark"] .chip.on, :root[data-theme="dark"] nav.tabs a.on { color: #1A0E07; }
.seg { background: var(--card); border-radius: 999px; padding: 4px; gap: 4px; box-shadow: 0 0 0 1px var(--line) inset; }
.seg button { border: 0; border-radius: 999px; box-shadow: none; background: transparent; color: var(--muted); font-weight: 700; }
.seg button:hover:not(.on) { background: var(--peach); color: var(--ink); }
.seg button.on { background: linear-gradient(180deg, var(--btn1), var(--btn2)); color: #fff; box-shadow: 0 8px 18px -8px var(--glow); }
:root[data-theme="dark"] .seg button.on { color: #1A0E07; }
.badge, .badge.new, .balpill { border-radius: 999px; border: 0; }
.link { color: var(--orange-dark); }

/* kartu: sudut besar, bayangan berlapis */
.card, .panel, .pack, .tt-item, .catpanel, .et-open-box, .et-add, .tt-chat, .tblwrap { border: 0; box-shadow: var(--sh), 0 0 0 1px var(--line) inset; }
.panel, .pack, .catpanel { border-radius: 24px; }
.card { border-radius: 24px; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh2), 0 0 0 1px var(--line) inset; }
.img { border-bottom: 0; background: var(--bg2); }
.comm, .wr-prod, .edit-tip, .et-warn, .et-steps, .lic-hint { border-radius: 16px; }
.pack.best { background: var(--peach); box-shadow: var(--sh), 0 0 0 2px var(--orange) inset; }
.notice { border-radius: 20px; background: var(--peach); border: 0; box-shadow: 0 0 0 1px var(--line) inset; }
.pop, .prof-menu { border-radius: 20px; border: 0; box-shadow: var(--sh2), 0 0 0 1px var(--line) inset; }
.drawer { box-shadow: var(--sh2); }
dialog#calc { border-radius: 28px; border: 0; box-shadow: var(--sh2); }
.dd-item, .prof-menu a, .mn { border-radius: 14px; } .dd-ic { border-radius: 12px; }
.tt-item { border-radius: 20px; } #toast { border-radius: 999px; }
.adsbar, .trust { border-radius: 20px; }

/* kolom isian */
input:not([type=checkbox]), select, textarea { border-radius: 14px; border: 1px solid var(--bd-in); background: var(--field); transition: border-color .15s, box-shadow .15s; }
input:not([type=checkbox]):focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 22%, transparent); outline: none; }
.field > span, .lbl { font-weight: 600; color: var(--muted); }

/* layar masuk / daftar */
#p-auth .hero { text-align: center; justify-items: center; padding: clamp(16px, 4vw, 40px) 0 4px; margin-bottom: 8px; }
#p-auth .hero h1 { max-width: 780px; font-size: clamp(28px, 5vw, 48px); }
#p-auth .hero p.lead { max-width: 520px; text-align: center; font-size: 17px; }
#p-auth .authcard { border-radius: 32px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--sh2), 0 0 0 1px var(--line) inset; }
#p-auth .packwrap { text-align: center; max-width: 820px; } #p-auth .packwrap .packs { text-align: left; }
#p-auth .trust { text-align: left; }

/* footer */
footer.foot { border-top: 1px solid var(--line); background: transparent; }
footer.foot a { text-decoration: none; } footer.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active, .card, .card:hover { transform: none !important; }
  .btn::after { display: none; }
}
@media (max-width: 640px) { .brand-tx b { font-size: 21px; } #p-auth .authcard { border-radius: 26px; } }

/* admin: isi panel boleh menyusut (tabel lebar bergeser di dalam kotaknya, bukan melebarkan halaman) */
.adm-main .panel > *, #em-list > *, #em-detail { min-width: 0; }
#em-detail .tblwrap { max-width: 100%; }

/* Karosel AI */
.kr-palet { display: flex; flex-wrap: wrap; gap: 10px; }
.kr-sw { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: var(--b); box-shadow: 0 0 0 1px var(--line) inset; display: grid; place-items: center; transition: transform .15s; }
.kr-sw i { width: 24px; height: 24px; border-radius: 50%; background: var(--a); }
.kr-sw:hover { transform: scale(1.08); } .kr-sw.on { box-shadow: 0 0 0 3px var(--orange); }
.kr-rev { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 12px; align-items: end; }
.kr-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.kr-slide { display: grid; gap: 8px; padding: 16px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; min-width: 0; }
.kr-n { font-weight: 800; color: var(--orange-dark); }
.kr-act { display: flex; flex-wrap: wrap; gap: 10px; }
.kr-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.kr-fig { margin: 0; display: grid; gap: 8px; min-width: 0; }
.kr-fig canvas { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--sh), 0 0 0 1px var(--line) inset; display: block; }
.kr-fig figcaption { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--muted); }
#k-karosel .panel, #k-karosel input, #k-karosel select, #k-karosel textarea { min-width: 0; }
@media (max-width: 700px) { .kr-rev { grid-template-columns: minmax(0, 1fr); } .kr-slides { grid-template-columns: minmax(0, 1fr); } .kr-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kr-th { align-content: start; justify-items: start; } .kr-th canvas { width: 100%; max-width: 120px; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line) inset; margin-bottom: 6px; }
.kr-themes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kr-ph { display: flex; flex-wrap: wrap; gap: 12px; } .kr-pt { position: relative; } .kr-pt img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--line) inset; background: var(--bg2); display: block; }
.kr-x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 420px) { .lp-styles.kr-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kr-th { padding: 10px; } }

/* Kalender Konten */
.kal-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.kal-nav { display: flex; align-items: center; gap: 8px; } .kal-nav b { min-width: 150px; text-align: center; font-size: 18px; letter-spacing: -.02em; }
.kal-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; } .kal-rng { display: grid; gap: 4px; } .kal-rng select { min-width: 170px; }
.kal-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; }
.kal-seg button { border: 0; background: transparent; color: var(--muted); font: 700 14px var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.kal-seg button.on { background: linear-gradient(180deg, var(--btn1), var(--btn2)); color: #fff; } :root[data-theme="dark"] .kal-seg button.on { color: #1A0E07; }
.kal-act { display: flex; flex-wrap: wrap; gap: 8px; }
.kal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.kal-dh { text-align: center; font-weight: 700; font-size: 13px; color: var(--muted); padding: 4px 0; }
.kal-c { min-height: 112px; padding: 6px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kal-c.off { background: transparent; box-shadow: none; } .kal-c.today { box-shadow: 0 0 0 2px var(--orange) inset; background: var(--peach); }
.kal-n { align-self: flex-start; min-width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font: 700 13px var(--font); cursor: pointer; } .kal-n:hover { background: var(--peach); }
.kal-chip { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--orange); border-radius: 8px; padding: 3px 6px; background: var(--peach); color: var(--ink); font: 600 12px/1.3 var(--font); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal-chip.done { opacity: .55; text-decoration: line-through; } .kal-more { border: 0; background: none; color: var(--orange-dark); font: 700 12px var(--font); cursor: pointer; text-align: left; padding: 2px 4px; }
.kf-video { --kc: #F2550F; } .kf-karosel { --kc: #7C3AED; } .kf-foto { --kc: #2563EB; } .kf-story { --kc: #DB2777; } .kf-teks { --kc: #64748B; } .kf-live { --kc: #DC2626; } .kf-lain { --kc: #64748B; }
.kal-chip[class*="kf-"] { border-left-color: var(--kc); }
.kal-b { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 600 12px var(--font); background: var(--bg2); color: var(--muted); } .kal-b[class*="kf-"] { background: color-mix(in srgb, var(--kc) 14%, transparent); color: var(--kc); }
.kal-b.st-posting { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); } .kal-b.st-siap { background: color-mix(in srgb, #2563EB 14%, transparent); color: #2563EB; }
.kal-day { display: grid; gap: 8px; margin-bottom: 16px; } .kal-day h3 { font-size: 16px; }
.kal-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; }
.kal-row.done .kal-t { text-decoration: line-through; opacity: .6; } .kal-ck { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.kal-tx { flex: 1; min-width: 0; } .kal-t { font-weight: 700; overflow-wrap: anywhere; } .kal-m { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; } .kal-note { margin-top: 6px; color: var(--muted); font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.kal-plats { display: flex; flex-wrap: wrap; gap: 4px 16px; } .kal-ailist { display: grid; gap: 8px; max-height: 46vh; overflow: auto; padding: 2px; } .kal-row.ai { cursor: pointer; }
dialog#kal-dlg, dialog#kal-aidlg { border: 0; border-radius: 28px; padding: 0; width: min(560px, calc(100vw - 24px)); background: var(--card); color: var(--ink); box-shadow: var(--sh2); } dialog#kal-dlg::backdrop, dialog#kal-aidlg::backdrop { background: rgba(0, 0, 0, .45); }
@media (max-width: 700px) { .kal-grid { grid-template-columns: minmax(0, 1fr); } .kal-dh, .kal-c.off { display: none; } .kal-nav b { min-width: 0; flex: 1; } .kal-bar { align-items: stretch; } .kal-act .btn { flex: 1 1 140px; } }
#kal-printarea { display: none; }
@media print {
  body.printing > *:not(#kal-printarea) { display: none !important; } body.printing::before { display: none; }
  body.printing #kal-printarea { display: block; padding: 0; color: #000; background: #fff; } body.printing { background: #fff; }
  #kal-printarea h1 { font-size: 24px; margin: 0 0 4px; } #kal-printarea .kal-row { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; border-radius: 8px; } #kal-printarea .kal-day { break-inside: avoid-page; } #kal-printarea .kal-ck { font-size: 18px; width: auto; }
}
.wr-btns .wide { grid-column: 1 / -1; }

/* Dashboard */
.dash-hero { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: clamp(20px, 4vw, 32px); margin: 8px 0 20px; border-radius: 32px; background: linear-gradient(135deg, var(--soft, var(--peach)), var(--card)); box-shadow: var(--sh), 0 0 0 1px var(--line) inset; position: relative; overflow: hidden; }
.dash-hero::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -90px; top: -130px; background: radial-gradient(circle, color-mix(in srgb, var(--orange) 28%, transparent), transparent 70%); pointer-events: none; }
.dash-hi h1 { font-size: clamp(26px, 4.6vw, 42px); } .dash-hi .lead { margin-top: 6px; color: var(--muted); font-size: 18px; }
.dash-cred { display: grid; gap: 4px; justify-items: start; position: relative; } .dash-n { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--orange-dark); }
.dash-ask { margin-bottom: 24px; } .dash-ask h2 { font-size: 22px; }
.dash-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dash-sec { margin: 0 0 24px; } .dash-sec h2 { font-size: 20px; margin: 0 0 12px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dash-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; text-decoration: none; color: var(--ink); background: var(--card); box-shadow: var(--sh), 0 0 0 1px var(--line) inset; transition: transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s; min-width: 0; }
.dash-card:hover { transform: translateY(-3px); box-shadow: var(--sh2), 0 0 0 1px var(--orange) inset; }
.dash-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--peach); color: var(--orange-dark); } .dash-ic .ic { width: 22px; height: 22px; margin: 0; }
.dash-tx { display: grid; gap: 2px; min-width: 0; } .dash-tx b { font-size: 16px; } .dash-tx small { color: var(--muted); font-size: 13px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .dash-card, .dash-card:hover { transform: none; } }
@media (max-width: 640px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } .dash-hero { border-radius: 26px; }
  /* sapaan, nama, dan kredit sejajar dalam satu baris dan lebih kecil supaya tidak menutupi layar HP */
  .dash-hero { flex-wrap: nowrap; gap: 12px; padding: 14px 16px; margin: 4px 0 14px; }
  .dash-hi { min-width: 0; } .dash-hi h1 { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; } .dash-hi .lead { font-size: 13.5px; margin-top: 2px; }
  .dash-cred { flex: none; justify-items: end; text-align: right; gap: 2px; } .dash-cred .lbl { font-size: 11px; } .dash-n { font-size: 22px; } .dash-cred .btn.sm { padding: 5px 12px; font-size: 12px; min-height: 0; }
  .dash-hero::before { width: 200px; height: 200px; right: -70px; top: -90px; } }

/* Builder landing page */
#p-lp.lpb-on > *:not(#lpb) { display: none !important; }
.lpb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .lpb-bar h3 { margin-right: auto; }
.lpb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; } .lpb-main { display: grid; gap: 16px; min-width: 0; } .lpb-main .panel { margin-bottom: 0; }
.lpb-prev { position: sticky; top: 84px; display: grid; gap: 8px; justify-items: center; } .lpb-prev .phone { width: 100%; } .lpb-prev .phone iframe { height: 600px; }
#lpb-blocks { display: grid; gap: 10px; }
.lpb-card { border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .15s; } .lpb-card.drag { opacity: .5; } .lpb-card.over { box-shadow: 0 0 0 2px var(--orange) inset; }
.lpb-h { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; }
.lpb-grip { cursor: grab; color: var(--muted); font-weight: 800; letter-spacing: -2px; padding: 8px 4px; user-select: none; touch-action: none; }
.lpb-t { flex: 1; min-width: 0; text-align: left; border: 0; background: none; color: var(--ink); font: 600 15px var(--font); cursor: pointer; padding: 8px 4px; display: grid; gap: 1px; border-radius: 10px; } .lpb-t small { color: var(--muted); font-weight: 400; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpb-ctl { display: flex; gap: 2px; flex: none; } .lpb-ctl .btn { padding: 6px 10px; min-width: 36px; }
.lpb-b { display: grid; gap: 10px; padding: 4px 14px 14px; min-width: 0; } .lpb-b[hidden] { display: none; } .lpb-b .field, .lpb-b input, .lpb-b textarea, .lpb-b select { min-width: 0; }
.lpb-pal { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.lpb-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.lpb-th { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--bg2); box-shadow: 0 0 0 1px var(--line) inset; } .lpb-th img { width: 100%; height: 100%; object-fit: cover; display: block; } .lpb-th.on { box-shadow: 0 0 0 3px var(--orange); }
.lpb-up { width: 72px; height: 72px; border: 2px dashed var(--bd-in); border-radius: 14px; background: transparent; color: var(--muted); font: 600 12px var(--font); cursor: pointer; padding: 4px; }
.lpb-ways { display: grid; gap: 12px; margin: 8px 0 16px; } .lpb-way { text-align: left; display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; border: 0; background: var(--card); color: var(--ink); box-shadow: var(--sh), 0 0 0 1px var(--line) inset; cursor: pointer; font: 500 14px var(--font); transition: transform .2s, box-shadow .2s; }
.lpb-way b { font-size: 17px; } .lpb-way span { color: var(--muted); line-height: 1.45; } .lpb-way:hover { transform: translateY(-2px); box-shadow: var(--sh2), 0 0 0 1px var(--orange) inset; }
dialog#lpb-pick { border: 0; border-radius: 28px; padding: 0; width: min(520px, calc(100vw - 24px)); background: var(--card); color: var(--ink); box-shadow: var(--sh2); } dialog#lpb-pick::backdrop { background: rgba(0, 0, 0, .45); }
@media (max-width: 960px) { .lpb-cols { grid-template-columns: minmax(0, 1fr); } .lpb-prev { position: static; max-width: 360px; margin: 0 auto; width: 100%; } .lpb-grip { display: none; } }
@media (max-width: 520px) { .lpb-ctl .btn { padding: 6px 8px; min-width: 32px; } }
@media (prefers-reduced-motion: reduce) { .lpb-way, .lpb-way:hover { transform: none; } }

/* Jendela konfirmasi di tengah layar (Ui.confirm) */
dialog.ui-dlg { border: 0; padding: 0; border-radius: 28px; width: min(420px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--sh2), 0 0 0 1px var(--line) inset; animation: ui-pop .22s cubic-bezier(.2, .8, .2, 1); }
dialog.ui-dlg::backdrop { background: rgba(26, 18, 16, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ui-box { padding: 28px 24px 22px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.ui-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); color: var(--orange-dark); } .ui-ic svg { width: 30px; height: 30px; }
.ui-dlg.danger .ui-ic { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.ui-box h3 { font-size: 20px; line-height: 1.3; margin: 0; } .ui-box p { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; } .ui-box p[hidden] { display: none; }
.ui-act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 8px; } .ui-act .btn { width: 100%; }
.btn.pri.del-pri, .btn.pri.del-pri:hover { background: linear-gradient(180deg, #E5484D, #B3261E); color: #fff; box-shadow: 0 12px 26px -8px rgba(179, 38, 30, .5), 0 2px 0 rgba(255, 255, 255, .28) inset; }
@keyframes ui-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.ui-dlg { animation: none; } }
@media (max-width: 380px) { .ui-act { grid-template-columns: minmax(0, 1fr); } }

/* Pengaturan + sambungan AI */
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; } .st-grid .panel { margin-bottom: 0; min-width: 0; } .st-grid .st-wide { grid-column: 1 / -1; }
.st-sw { align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--bg2); } .st-sw span { color: var(--muted); font-size: 14px; } .st-sw b { display: block; color: var(--ink); }
.st-sc { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; } .st-sc li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--bg2); } .st-sc span { color: var(--muted); font-size: 13.5px; }
.st-conn { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; margin-bottom: 8px; } .st-conn > div { min-width: 0; flex: 1 1 260px; overflow-wrap: anywhere; }
#st-mcp h4 { margin: 12px 0 4px; font-size: 16px; }
@media (max-width: 860px) { .st-grid { grid-template-columns: minmax(0, 1fr); } }

/* Jendela checkout kredit (form OrderHero di dalam aplikasi) */
dialog.co-dlg { border: 0; padding: 0; border-radius: 28px; width: min(640px, calc(100vw - 24px)); max-width: none; height: min(880px, calc(100vh - 24px)); height: min(880px, calc(100dvh - 24px)); max-height: none; background: var(--card); color: var(--ink); box-shadow: var(--sh2), 0 0 0 1px var(--line) inset; overflow: hidden; animation: ui-pop .22s cubic-bezier(.2, .8, .2, 1); }
dialog.co-dlg[open] { display: flex; flex-direction: column; }
dialog.co-dlg::backdrop { background: rgba(26, 18, 16, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.co-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; }
.co-bar h3 { margin: 0; font-size: 20px; } .co-sub { color: var(--muted); font-size: 14px; }
.co-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 18px 10px; padding: 10px 12px; border-radius: 14px; background: var(--peach); font-size: 14px; }
.co-mail b { word-break: break-all; }
.co-fr { position: relative; flex: 1 1 auto; min-height: 0; margin: 0 12px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line) inset; }
.co-fr iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.co-ld { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: var(--bg2); }
.co-ld[hidden] { display: none; }
.co-ft { padding: 10px 18px 14px; display: grid; gap: 8px; } .co-ft p { margin: 0; }
.co-fa { display: flex; gap: 10px 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.co-ok { color: var(--green); font-weight: 700; }
@media (max-width: 640px) { dialog.co-dlg { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; } .co-bar { padding: 12px 14px 8px; } .co-mail { margin: 0 14px 8px; } .co-fr { margin: 0 8px; } .co-ft { padding: 8px 14px 12px; } }
@media (prefers-reduced-motion: reduce) { dialog.co-dlg { animation: none; } }

/* ---- Riwayat alat AI (tab "Buat ..." dan "... Kamu") ---- */
.rw-tabs { margin: 0 0 12px; }
.rw-hint { margin: 0 4px 12px; }
.rw-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.rw-note { display: grid; gap: 4px; }
.rw-note ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rw-items { display: grid; gap: 12px; margin-top: 12px; }
.rw-it { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0; }
.rw-it.cur { box-shadow: 0 0 0 2px var(--orange) inset; }
.rw-main { display: grid; gap: 3px; min-width: 0; flex: 1 1 240px; }
.rw-main b { overflow-wrap: anywhere; }
.rw-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rw-create[hidden], .rw-list[hidden] { display: none; }
.pg-time { display: grid; gap: 10px; } .pg-time .field { margin: 0; }
#pg-tg-box { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--bg2); } #pg-tg-box .pg-code { font-family: ui-monospace, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: 2px; user-select: all; }
.int-list { display: grid; gap: 16px; max-width: 780px; } .int-list .panel { margin-bottom: 0; min-width: 0; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; } .int-card { margin: 0; cursor: pointer; align-content: start; transition: transform .15s ease, box-shadow .15s ease; } .int-card:hover { transform: translateY(-2px); } .int-card:focus-visible { outline: 2px solid var(--brand, #E8530C); outline-offset: 2px; } .int-card p { margin: 0; } .int-card .btn { justify-self: start; }
.int-logo { display: grid; place-items: center; height: 124px; border-radius: 12px; background: var(--bg2); } .int-logo svg { width: 64px; height: 64px; padding: 10px; box-sizing: content-box; border-radius: 20px; background: var(--card); box-shadow: 0 6px 18px rgba(0, 0, 0, .08), 0 0 0 1px var(--line); }
.int-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .int-t b { font-size: 17px; } .int-badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg2); color: var(--muted); } .int-badge.on { background: #E3F6E8; color: #1B6B35; } .int-badge:empty { display: none; }

/* Kotak unggah file (uploader.js): menggantikan tombol "Pilih File" bawaan browser */
.field:has(> .up-native) { position: relative; }
.up-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.up-box { display: flex; align-items: center; gap: 14px; padding: 18px 18px; border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--orange) 45%, transparent); background: color-mix(in srgb, var(--orange) 5%, var(--card)); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; min-height: 84px; outline: none; }
.up-box:hover { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 9%, var(--card)); }
.up-box:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 35%, transparent); }
.up-box.over { border-style: solid; border-color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, var(--card)); transform: scale(1.01); }
.up-box.bad { border-color: #D93025; background: #FDECEA; animation: up-shake .3s; }
.up-box.has { border-style: solid; border-color: var(--line, var(--bd)); background: var(--card); padding: 12px 14px; }
.up-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--orange); color: var(--on-accent, #fff); box-shadow: 0 6px 14px color-mix(in srgb, var(--orange) 35%, transparent); }
.up-ic svg { width: 24px; height: 24px; }
.up-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.up-tx b { font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.up-tx small { color: var(--muted); font-size: 12.5px; }
.up-th { flex: none; display: flex; }
.up-th img, .up-th .up-file { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line, var(--bd)); background: var(--bg2); }
.up-th img + img, .up-th .up-file + img, .up-th img + .up-file { margin-left: -14px; }
.up-th .up-file { display: grid; place-items: center; color: var(--orange); font-style: normal; } .up-th .up-file svg { width: 24px; height: 24px; }
.up-chg { flex: none; font: 700 13px var(--font); padding: 7px 14px; border-radius: 999px; background: var(--bg2); color: var(--ink); }
.up-box:hover .up-chg { background: var(--orange); color: var(--on-accent, #fff); }
@keyframes up-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@media (max-width: 480px) { .up-box { padding: 14px; gap: 12px; } .up-ic { width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .up-box, .up-box.over { transition: none; transform: none; } .up-box.bad { animation: none; } }

/* Hubungi Dukungan */
.dk-form { display: grid; gap: 14px; }
.dk-done { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: #E3F6E8; color: #1B6B35; }
.dk-done b { font-size: 18px; } .dk-done p { margin: 0; color: #1B3D26; line-height: 1.55; } .dk-done .meta { color: #2F6B45; }

/* Landing page: tombol Buat di atas + wizard satu langkah per layar */
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-head h3 { margin: 0; }
.wz-bar { display: grid; gap: 8px; margin: 4px 0 12px; }
.wz-prog { height: 6px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.wz-prog i { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 99px; transition: width .25s ease; }
.wz-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.wz-dot { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 700 13px/1 var(--font); cursor: pointer; padding: 0; }
.wz-dot.ok { color: var(--ink); } .wz-dot.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.wz-dot:disabled { opacity: .45; cursor: default; }
.wz-nav { display: flex; gap: 10px; justify-content: space-between; margin: 12px 0; }
.wz-nav .btn { min-width: 120px; }
[data-wz][hidden] { display: none !important; }
@media (max-width: 480px) { .wz-nav { position: sticky; bottom: 8px; z-index: 3; } .wz-nav .btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .wz-prog i { transition: none; } }

/* Tombol bagikan: logo media sosial saja (ringkas) */
.share.logos { grid-template-columns: repeat(4, 1fr); }
.share.logos .btn.logo { padding: 10px 0; min-width: 0; display: grid; place-items: center; }
.share.logos .btn.logo .lg { width: 26px; height: 26px; }
.share.logos .btn.wide { grid-column: 1 / -1; }

/* Pengisi Suara AI */
.sr-card { display: grid; gap: 12px; background: var(--card); border-radius: 22px; padding: 18px; box-shadow: var(--sh), 0 0 0 1px var(--line) inset; margin-bottom: 14px; }
.sr-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sr-voice { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.sr-voice:hover { border-color: var(--orange); }
.sr-orb { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffd9bf, var(--orange) 60%, #6b2200); flex: none; }
.sr-vn { display: grid; line-height: 1.2; } .sr-vn small { color: var(--muted); font-size: 12px; }
#sr-text { width: 100%; min-height: 220px; resize: vertical; border: 0; outline: 0; background: transparent; font: 500 16px/1.7 var(--font); color: var(--ink); padding: 6px 2px; }
#sr-text:focus-visible { box-shadow: 0 0 0 2px var(--orange) inset; border-radius: 10px; }
.sr-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.sr-opts, .sr-go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sr-speed { display: grid; gap: 2px; font-size: 12px; color: var(--muted); } .sr-speed input { width: 130px; }
.sr-cost { font-weight: 700; font-size: 13px; color: var(--orange-dark); }
.sr-res { display: grid; gap: 8px; background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--sh), 0 0 0 1px var(--line) inset; margin-bottom: 10px; }
.sr-rh { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .sr-res audio { width: 100%; }
.sr-ra { display: flex; gap: 8px; flex-wrap: wrap; }
.sr-dlg { border: 0; border-radius: 22px; padding: 18px; width: min(520px, 94vw); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.sr-dlg::backdrop { background: rgba(20, 12, 8, .45); }
.sr-dlg { display: grid; gap: 10px; }
.sr-dh { display: flex; align-items: center; justify-content: space-between; }
.sr-vl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 50vh; overflow: auto; }
.sr-vi { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.sr-vi.on { border-color: var(--orange); background: var(--peach); }
.sr-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; cursor: pointer; flex: none; font-size: 12px; }
.sr-play.on { background: var(--ink); }
.sr-pick { flex: 1; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: grid; line-height: 1.2; padding: 4px; } .sr-pick small { color: var(--muted); }
@media (max-width: 480px) { .sr-vl { grid-template-columns: 1fr; } .sr-go { width: 100%; justify-content: space-between; } }

.sr-dlg:not([open]) { display: none; }

.sr-tier { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.sr-tier button { border: 0; background: var(--card); color: var(--ink); font: 600 13px var(--font); padding: 8px 14px; cursor: pointer; }
.sr-tier button.on { background: var(--orange); color: #fff; }
.sr-vn small { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sr-adm { background: var(--card); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; box-shadow: 0 0 0 1px var(--line) inset; font-size: 13px; }
.sr-pre { white-space: pre-wrap; word-break: break-all; font: 12px/1.5 ui-monospace, Consolas, monospace; margin: 0; max-height: 240px; overflow: auto; }
#sr-vlang small { opacity: .7; margin-left: 2px; }

.sr-tips { font-size: 13px; color: var(--muted); }
.sr-tips b { color: var(--ink); }
.sr-tips ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; line-height: 1.5; }

/* Galeri Video: putar di kartu + tombol Buat Video AI */
.card .img[data-a="play"] { cursor: pointer; }
.card .img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
#k-galeri .toolbar { flex-wrap: wrap; }
#k-galeri .toolbar input { flex: 1 1 220px; min-width: 0; }
#k-galeri .toolbar .btn { flex: 0 0 auto; }
@media (max-width: 480px) { #k-galeri .toolbar .btn { flex: 1 1 100%; } }

/* ===== Tanya Lihai (Dashboard): kotak asisten yang lebih besar dan profesional ===== */
.tl { padding: 0; overflow: hidden; border-radius: 30px; margin-bottom: 28px; gap: 0; } /* gap 0: tanpa celah putih antar bagian */
.tl-head { display: flex; align-items: center; gap: 14px; padding: 12px clamp(18px, 3vw, 30px); background: linear-gradient(135deg, var(--peach), var(--card) 70%); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tl-logo { width: 44px; height: 44px; border-radius: 18px; flex: none; box-shadow: 0 8px 20px -8px var(--glow); background: var(--card); }
.tl-title { flex: 1 1 260px; min-width: 0; } .tl-title h2 { font-size: clamp(22px, 3vw, 28px); margin: 0; }
.tl-title p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tl-status { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--font); color: var(--green); padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--green) 12%, transparent); }
.tl-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); animation: tl-pulse 2.4s infinite; }
@keyframes tl-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.tl-body { padding: clamp(10px, 1.6vw, 14px) clamp(16px, 3vw, 30px) 12px; display: grid; gap: 10px; }
.tl-chat { display: flex; flex-direction: column; gap: 18px; min-height: 0; max-height: min(40vh, 420px); overflow-y: auto; padding: 2px 4px 6px; overscroll-behavior: contain; scrollbar-width: thin; }
.tl-row { display: flex; gap: 12px; align-items: flex-start; min-width: 0; } .tl-row.me { justify-content: flex-end; }
.tl-av { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset, var(--sh); overflow: hidden; } .tl-av img { width: 100%; height: 100%; display: block; }
.tl-col { min-width: 0; max-width: min(760px, 100%); display: grid; gap: 4px; } .tl-row.me .tl-col { justify-items: end; max-width: min(640px, 88%); }
.tl-who { font: 700 11px var(--mono); letter-spacing: .04em; color: var(--muted); }
.tl-bub { padding: 13px 18px; border-radius: 22px; line-height: 1.65; font-size: 15px; overflow-wrap: anywhere; }
.tl-row.ai .tl-bub { background: var(--card); color: var(--ink); border-top-left-radius: 8px; box-shadow: var(--sh), 0 0 0 1px var(--line) inset; }
.tl-row.me .tl-bub { background: linear-gradient(135deg, var(--btn1), var(--btn2)); color: var(--on-accent); border-top-right-radius: 8px; box-shadow: 0 10px 24px -12px var(--glow); }
.tl-bub b { font-weight: 800; } .tl-bub a { color: var(--orange-dark); font-weight: 700; } .tl-row.me .tl-bub a { color: inherit; }
.tl-lead { margin: 0 0 6px; font-weight: 700; font-size: 16px; }
.tl-steps { list-style: none; counter-reset: tls; padding: 0; margin: 8px 0 4px; display: grid; gap: 10px; }
.tl-steps li { counter-increment: tls; display: flex; gap: 12px; align-items: flex-start; }
.tl-steps li::before { content: counter(tls); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--font); color: var(--on-accent); background: linear-gradient(135deg, var(--btn1), var(--btn2)); margin-top: 1px; }
.tl-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 11px 14px; border-radius: 14px; background: var(--yellow); font-size: 14px; line-height: 1.55; } .tl-tip .ic { flex: none; width: 18px; height: 18px; margin: 2px 0 0; color: var(--orange-dark); }
.tl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tl-acts .btn.ai { background: var(--card); color: var(--orange-dark); box-shadow: 0 0 0 1.5px var(--orange) inset; }
.tl-typing { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.tl-dots { display: inline-flex; gap: 5px; } .tl-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: tl-bounce 1.2s infinite ease-in-out; } .tl-dots i:nth-child(2) { animation-delay: .15s; } .tl-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tl-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-6px); opacity: 1; } }
.tl-sug-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .tl-sug-h b { font-size: 15px; } .tl-sug-h span { font-size: 12px; color: var(--green); font-weight: 700; }
.tl-tpls { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tpl { display: flex; align-items: center; gap: 8px; padding: 5px 13px 5px 6px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border: 0; border-radius: 999px; background: var(--card); box-shadow: var(--sh), 0 0 0 1px var(--line) inset; transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s; min-width: 0; }
.tl-tpl:hover { transform: translateY(-2px); box-shadow: var(--sh2), 0 0 0 1.5px var(--orange) inset; }
.tl-tpl .tl-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--peach); color: var(--orange-dark); } .tl-tpl .tl-ic .ic { width: 14px; height: 14px; margin: 0; }
.tl-tpl b { display: block; font-size: 13px; line-height: 1.25; white-space: nowrap; } .tl-tpl small { display: none; }
.tl-tpls.compact { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: thin; } .tl-tpls.compact .tl-tpl { flex: none; padding: 8px 14px; border-radius: 999px; gap: 8px; } .tl-tpls.compact .tl-ic { width: 26px; height: 26px; border-radius: 9px; } .tl-tpls.compact .tl-ic .ic { width: 14px; height: 14px; } .tl-tpls.compact small { display: none; } .tl-tpls.compact b { font-size: 13px; white-space: nowrap; }
.tl-form { display: flex; gap: 12px; padding: 12px clamp(16px, 3vw, 30px); margin-top: 0; border-top: 1px solid var(--line); background: var(--bg2); }
.tl-pic { display: block; max-width: min(260px, 100%); max-height: 200px; border-radius: 12px; margin: 0 0 8px; object-fit: cover; background: #fff }
.tl-clip svg { width: 22px; height: 22px }
.tl-clip { flex: none; width: 48px; min-height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer }
.tl-shot { display: flex; align-items: center; gap: 10px; padding: 6px clamp(16px, 3vw, 30px) } .tl-shot[hidden] { display: none } .tl-shot img { border-radius: 8px; object-fit: cover }
.tl-form input { flex: 1 1 auto; min-width: 0; font-size: 16px; padding: 12px 20px; border-radius: 16px; min-height: 48px; }
.tl-send { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; min-height: 48px; border: 0; border-radius: 16px; font: 800 15px var(--font); color: var(--on-accent); cursor: pointer; background: linear-gradient(135deg, var(--btn1), var(--btn2)); box-shadow: 0 12px 26px -12px var(--glow); } .tl-send .ic { width: 18px; height: 18px; margin: 0; } .tl-send:disabled { opacity: .6; cursor: wait; }
.tl-err { padding: 0 clamp(16px, 3vw, 30px) 8px; background: var(--bg2); margin: 0; }
.tl-tplwrap { display: grid; gap: 8px; }
.tl-quota { padding: 6px clamp(16px, 3vw, 30px) 16px; background: var(--bg2); margin: 0; font-size: 12.5px; }
.tl-err:empty { display: none; }
/* kartu hasil */
.tl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; margin-top: 12px; }
.tl-prod { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--bg2); box-shadow: 0 0 0 1px var(--line) inset; }
.tl-prod .im { aspect-ratio: 1; background: var(--peach); display: grid; place-items: center; color: var(--muted); font-size: 12px; } .tl-prod .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-prod .in { padding: 10px 12px 12px; display: grid; gap: 7px; flex: 1; align-content: start; }
.tl-prod .nm { font-size: 13px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-prod .pr { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--orange-dark); }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; } .tl-tag { font: 700 11px var(--font); padding: 3px 9px; border-radius: 999px; background: var(--peach); color: var(--orange-dark); } .tl-tag.g { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.tl-prod .btn, .tl-box .btn { font-size: 12.5px; padding: 7px 12px; min-height: 0; }
.tl-box { display: grid; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: var(--bg2); box-shadow: 0 0 0 1px var(--line) inset; } .tl-box h4 { margin: 0; font-size: 15px; } .tl-box .meta { margin: 0; }
.tl-box.pend { background: color-mix(in srgb, var(--orange) 8%, var(--card)); box-shadow: 0 0 0 2px var(--orange) inset; }
.tl-box.ok { box-shadow: 0 0 0 1.5px var(--green) inset; } .tl-box .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tl-box input { flex: 1 1 200px; min-width: 0; padding: 9px 12px; border-radius: 12px; font-size: 14px; }
.tl-cost { font-weight: 800; color: var(--orange-dark); }
@media (max-width: 640px) { .tl-head { flex-wrap: nowrap; gap: 10px; padding: 10px 14px; } .tl-logo { width: 38px; height: 38px; border-radius: 12px; } .tl-title { flex: 1 1 auto; } .tl-title h2 { font-size: 20px; } .tl-title p { display: none; } .tl-status { padding: 4px 10px; font-size: 11px; }
  .tl-tpls { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .tl-tpls::-webkit-scrollbar { display: none; } .tl-tpl { flex: none; } .tl-bub { font-size: 14px; padding: 10px 14px; line-height: 1.55; } .tl-body { padding-bottom: 8px; gap: 8px; } .tl-chat { gap: 12px; }
  .tl-send span { display: none; } .tl-send { padding: 0 18px; } .tl-av { width: 32px; height: 32px; border-radius: 10px; } .tl-tpls { grid-template-columns: 1fr 1fr; } .tl-tpl small { display: none; } }
@media (prefers-reduced-motion: reduce) { .tl-dots i, .tl-status i { animation: none; } .tl-tpl { transition: none; } .tl-chat { scroll-behavior: auto; } }

.sr-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .sr-n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(255, 255, 255, .28); font-size: 12px; line-height: 20px; text-align: center; }
.sr-md { width: min(680px, 96vw); max-height: 88vh; overflow: auto; } .sr-md .sr-res { margin-bottom: 0; } #sr-mlist { display: grid; gap: 10px; } .sr-txt { margin: 0; font-size: 13px; color: var(--mute, #7a6a60); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; } .sr-exp { color: #b45309; }

/* Product Frame Maker */
#k-frame .panel, #k-frame input, #k-frame select, #k-frame textarea { min-width: 0; }
.fm-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 18px; align-items: start; }
.fm-side { display: grid; gap: 0; min-width: 0; } .fm-view { min-width: 0; }
.fm-sticky { position: sticky; top: 76px; display: grid; gap: 12px; }
#fm-canvas { width: 100%; height: auto; display: block; border-radius: 16px; background: #fff; box-shadow: var(--sh), 0 0 0 1px var(--line) inset; cursor: grab; touch-action: pan-y; }
#fm-canvas:active { cursor: grabbing; }
.fm-photos, .fm-slides { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.fm-pt { position: relative; }
.fm-pb, .fm-sl { padding: 0; border: 0; cursor: pointer; background: repeating-conic-gradient(#e9e6e1 0 25%, #fff 0 50%) 0 0 / 14px 14px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; display: block; position: relative; }
.fm-pb img { width: 84px; height: 84px; object-fit: contain; display: block; }
.fm-pt.on .fm-pb, .fm-sl.on { box-shadow: 0 0 0 3px var(--orange); }
.fm-sl { background: #fff; } .fm-sl canvas { width: 84px; height: 84px; display: block; }
.fm-sl span { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: var(--on-accent); font: 700 12px/22px var(--mono); text-align: center; }
.fm-popts { display: grid; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--line); margin-top: 6px; }
.fm-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.fm-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.fm-tpl { display: grid; gap: 4px; align-content: start; justify-items: start; text-align: left; padding: 10px; border-radius: 14px; border: 1px solid var(--bd); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.fm-tpl canvas { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line) inset; background: #fff; margin-bottom: 4px; }
.fm-tpl b { font-size: 14px; } .fm-tpl small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.fm-tpl.on { box-shadow: 0 0 0 3px var(--orange); }
.fm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0; }
.fm-color { margin-top: 10px; max-width: 200px; } .fm-color input { height: 44px; padding: 4px; }
.fm-row { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 8px; margin-bottom: 8px; } .fm-row.vl { grid-template-columns: 96px minmax(0, 1fr); }
#fm-fields { display: grid; gap: 12px; margin: 10px 0; }
#fm-tnote { background: var(--yellow); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
@media (max-width: 900px) { .fm-wrap { grid-template-columns: minmax(0, 1fr); } .fm-view { order: -1; } .fm-sticky { position: static; } }
@media (max-width: 480px) { .fm-row { grid-template-columns: 112px minmax(0, 1fr); } }

#rf-tabs{grid-template-columns:repeat(3,1fr)}
#rf-tabs button{padding:12px 8px;white-space:nowrap}
@media (max-width:420px){#rf-tabs button{font-size:13px;padding:11px 4px}}

/* Jendela kredit doit.id */
.co-fr iframe[hidden]{display:none}
.co-form{position:absolute;inset:0;overflow:auto;padding:18px;background:var(--card);display:grid;gap:12px;align-content:start}
.co-form p{margin:0}.co-lb{display:grid;gap:6px;font-size:14px;color:var(--muted)}.co-lb input{width:100%}
.co-sum{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--peach);border-radius:14px;padding:12px 14px;font-weight:700}.co-sum b{font-size:20px;color:var(--orange-dark)}
.co-err{color:#c92a2a;min-height:1.2em;font-size:14px}
/* alat edit komponen HTML di builder landing page */
.lpe-htools { display: grid; gap: 6px; margin: 0 0 6px }
.lpe-hrow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap }
.lpe-hrow input { flex: 1 1 120px; min-width: 0; padding: 8px 12px; min-height: 38px; font-size: 14px; border-radius: 10px }
.lpe-hwrap textarea { resize: vertical; min-height: 160px }
.lpe-hwrap.full { position: fixed; inset: 2vh 2vw; z-index: 120; background: var(--card, #fff); padding: 16px; border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 8px }
.lpe-hwrap.full .field { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0 }
.lpe-hwrap.full textarea { flex: 1 1 auto; resize: none; font-size: 14px !important }
body.lpe-noscroll { overflow: hidden }
.lpe-tx { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px }
.lpe-tx summary { cursor: pointer; font-weight: 700 }
.lpe-txl { display: grid; gap: 6px; max-height: 320px; overflow: auto; padding: 2px }
.lpe-txl textarea { width: 100%; min-height: 0; resize: vertical; font-size: 14px; padding: 8px 10px; line-height: 1.4 }
