/* DheDame AI — sistem visual editorial: kertas putih, dakwat hitam, merah DheDame
   sebagai aksen tunggal, kuning highlighter untuk fakta penting. Tiada gradient,
   tiada bayang lembut, tiada bucu bulat — supaya nampak macam produk sebenar,
   bukan templat. */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #ffffff; color: #0a0a0a; line-height: 1.55; }
a { color: #c62828; }
.mono { font-family: "Courier New", Courier, monospace; }

/* Bar atas */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: #fff; border-bottom: 2px solid #0a0a0a; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 700; letter-spacing: 0; }
.brand span { color: #c62828; }
.topbar nav a, .topbar nav button { margin-left: 12px; }

/* Landing */
.wrap { max-width: 980px; margin: 0 auto; padding: 28px 16px 60px; }
.kicker { font-family: "Courier New", Courier, monospace; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #c62828; }
.hero { text-align: left; padding: 26px 0 18px; }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: 42px; line-height: 1.12; margin: 12px 0 12px; letter-spacing: 0; }
.hero p { font-size: 17px; color: #333; margin: 0; max-width: 640px; }
@media (max-width: 700px) { .hero h1 { font-size: 32px; } }
.hibox { background: #fff176; border: 2px solid #0a0a0a; padding: 14px 16px; font-weight: 700; font-size: 15px; margin: 6px 0 30px; }
.hibox span { font-family: "Courier New", Courier, monospace; }

/* Plan */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr 1fr; } }
.card { background: #fff; border: 2px solid #0a0a0a; border-radius: 0; padding: 20px; }
.card.hot { background: #0a0a0a; color: #fff; }
.card.hot .price small { color: #bbb; }
.card.hot ul { color: #ddd; }
.tag { display: inline-block; background: #fff176; color: #0a0a0a; font-family: "Courier New", Courier, monospace; font-size: 12px; font-weight: 700; padding: 3px 8px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.card h3 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 4px; font-size: 22px; }
.price { font-family: "Courier New", Courier, monospace; font-size: 30px; font-weight: 700; margin: 8px 0; }
.price small { font-family: system-ui, sans-serif; font-size: 14px; font-weight: 400; color: #5d564e; }
.card ul { padding-left: 18px; color: #333; }
.card li { margin-bottom: 8px; }

/* Senarai model */
.modelstrip { border: 2px solid #0a0a0a; padding: 20px; margin-top: 32px; }
.modelstrip h2 { font-family: Georgia, "Times New Roman", serif; margin: 0 0 4px; font-size: 24px; }
.modelstrip .sub { color: #5d564e; font-size: 14px; margin: 0 0 16px; }
.fam { margin-bottom: 14px; }
.fam h4 { font-family: "Courier New", Courier, monospace; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #c62828; margin: 0 0 6px; }
.fam ul { columns: 2; -webkit-columns: 2; margin: 0; padding-left: 18px; font-family: "Courier New", Courier, monospace; font-size: 13px; }
.fam li { margin-bottom: 4px; }
@media (max-width: 700px) { .fam ul { columns: 1; -webkit-columns: 1; } }

/* Langkah */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 12px; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.step { border-top: 3px solid #0a0a0a; padding-top: 12px; }
.stepnum { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 700; color: #c62828; }
.step h3 { font-family: Georgia, "Times New Roman", serif; margin: 4px 0 6px; font-size: 18px; }
.step p { margin: 0; color: #333; font-size: 15px; }
h2.sec { font-family: Georgia, "Times New Roman", serif; font-size: 26px; margin: 40px 0 8px; }

/* Butang & borang */
.btn { display: inline-block; background: #c62828; color: #fff; border: 2px solid #c62828; border-radius: 0; padding: 11px 18px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: #a81f1f; border-color: #a81f1f; }
.btn.ghost { background: #fff; color: #0a0a0a; border: 2px solid #0a0a0a; }
.btn.ghost:hover { background: #f2f2f2; }
.btn.wa { background: #1f9d55; border-color: #1f9d55; }
.btn.wa:hover { background: #178144; border-color: #178144; }
.btn:disabled { opacity: 0.55; cursor: default; }
.formbox { max-width: 440px; margin: 32px auto; background: #fff; border: 2px solid #0a0a0a; border-radius: 0; padding: 22px; }
.formbox h2 { font-family: Georgia, "Times New Roman", serif; margin-top: 0; }
label { display: block; font-family: "Courier New", Courier, monospace; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin: 14px 0 4px; }
input, select, textarea { width: 100%; padding: 11px 12px; font-size: 15px; border: 2px solid #0a0a0a; border-radius: 0; background: #fff; color: #0a0a0a; }
.msg { padding: 12px 14px; border-radius: 0; margin: 12px 0; font-size: 14px; border: 2px solid #0a0a0a; }
.msg.err { background: #fdecea; border-color: #c62828; color: #8d1a1a; }
.msg.ok { background: #e6f4ea; border-color: #14532d; color: #14532d; }
.msg.info { background: #fff176; color: #0a0a0a; }
.small { font-size: 13px; color: #5d564e; }
.footer { border-top: 2px solid #0a0a0a; color: #5d564e; font-family: "Courier New", Courier, monospace; font-size: 12px; padding: 16px 0; margin-top: 40px; }

/* Chat */
.chatwrap { display: flex; height: calc(100vh - 59px); }
.side { width: 270px; background: #fff; border-right: 2px solid #0a0a0a; padding: 14px; overflow-y: auto; flex-shrink: 0; }
.side h3 { margin: 16px 0 10px; font-family: "Courier New", Courier, monospace; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #0a0a0a; }
.chatitem { display: block; width: 100%; text-align: left; background: none; border: 2px solid transparent; border-radius: 0; padding: 9px 10px; font-size: 14px; cursor: pointer; color: #0a0a0a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatitem:hover { background: #f2f2f2; }
.chatitem.on { background: #0a0a0a; color: #fff; }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.modelbar { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 2px solid #0a0a0a; flex-wrap: wrap; }
.modelbar label { margin: 0; }
.modelbar select { width: auto; flex: 1; min-width: 180px; font-family: "Courier New", Courier, monospace; font-size: 14px; }
.msgs { flex: 1; overflow-y: auto; padding: 20px 16px; }
.msgmeta { font-family: "Courier New", Courier, monospace; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #c62828; margin: 14px 0 4px; }
.bubble { max-width: 88%; margin: 0 0 12px; padding: 12px 14px; border-radius: 0; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.bubble.user { background: #0a0a0a; color: #fff; margin-left: auto; }
.bubble.asst { background: #fff; border-left: 4px solid #c62828; padding-left: 14px; max-width: 100%; }
.bubble.wait { color: #8a837c; font-style: italic; border-left-color: #bbb; }
.sendbox { display: flex; gap: 10px; padding: 12px 16px; background: #fff; border-top: 2px solid #0a0a0a; }
.sendbox textarea { resize: none; height: 48px; }
.sendbox .btn { height: 48px; }
.menubtn { display: none; }
@media (max-width: 700px) {
  .side { display: none; position: fixed; left: 0; top: 59px; bottom: 0; z-index: 5; border-right: 2px solid #0a0a0a; background: #fff; }
  .side.open { display: block; }
  .menubtn { display: inline-block; }
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #ddd; }
th { font-family: "Courier New", Courier, monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; border-bottom: 2px solid #0a0a0a; }
