/* Gooreka Agents: shared look (colours and font from goorekastore.com) */
:root {
  --navy: #1b2a4e; --navy-2: #24365f; --accent: #2f5aae; --accent-2: #f5a623; --accent-ink: #ffffff;
  --bg: #f5f7fb; --card: #ffffff; --text: #1f2433; --muted: #5f6676; --line: #e3e7ef; --chip: #eef1f7;
  --ok: #1f9e72; --ok-bg: #e5f6ef; --est: #a36200; --est-bg: #fff3df; --guess: #7a4fd0; --guess-bg: #f2ebfd;
  --bad: #d9452f; --bad-bg: #fdecea; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 16px rgba(16,24,40,.06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1424; --card: #171e33; --text: #e8ebf3; --muted: #9aa4ba; --line: #283253; --chip: #222b45;
    --accent: #6f93e6; --accent-ink: #0d1328; --ok: #5fd3a5; --ok-bg: #12312a; --est: #f3bf63; --est-bg: #33280f;
    --guess: #c4a6f5; --guess-bg: #2a2142; --bad: #ff8c7a; --bad-bg: #3a1a16; --shadow: 0 1px 2px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
[dir=auto] { text-align: start; unicode-bidi: plaintext; }
html, body { margin: 0; overflow-x: hidden; }
img, video, select, textarea, input { max-width: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
main { max-width: 1140px; margin: 0 auto; padding: 24px 16px 72px; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 6px; } h2 { font-size: 19px; margin: 0 0 12px; } h3 { font-size: 15px; margin: 14px 0 6px; }
.sub { color: var(--muted); margin: 0 0 22px; max-width: 760px; }
.muted { color: var(--muted); } .hint { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.pre { white-space: pre-wrap; }

/* header */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar .in { max-width: 1140px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brandmark { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.brandmark img { width: 34px; height: 34px; border-radius: 8px; }
.topbar nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.topbar nav a { color: #cfd7ea; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.topbar nav a.on, .topbar nav a:hover { background: var(--navy-2); color: #fff; }
.keysbtn { background: transparent; border: 1px solid #4b5f8f; color: #fff; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #e07a5f; display: inline-block; }
.dot.on { background: #38c695; }

/* cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; } h1 { font-size: 23px; }
  .hero { padding: 20px 16px; } .searchbox > * { flex: 1 1 100% !important; min-width: 0; }
  .topbar .in { gap: 8px; } .topbar nav { order: 3; flex: 1 1 100%; overflow-x: auto; flex-wrap: nowrap; }
  .topbar nav a { white-space: nowrap; padding: 5px 10px; } .keysbtn { margin-inline-start: auto; }
  .pcard .top { flex-direction: row; } .pcard .photo { width: 72px; height: 72px; }
  .costrow label { flex: 1 1 45%; } .card { padding: 16px; }
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; } .row > * { flex: 1 1 220px; }

/* forms */
label { font-weight: 600; display: block; margin-bottom: 6px; font-size: 14px; }
label.small { font-weight: 500; font-size: 13px; color: var(--muted); margin: 0; }
label.small input, label.small textarea, label.small select { margin-top: 4px; }
textarea, input[type=text], input[type=password], input[type=number], input[type=date], input[type=url], select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
textarea:focus, input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
textarea { min-height: 64px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; cursor: pointer; }
button { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; background: var(--accent); color: var(--accent-ink); }
button.big { padding: 13px 26px; font-size: 16px; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.ghost { background: var(--chip); color: var(--text); }
button.small { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
button:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 13px; font-weight: 500; cursor: pointer; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
details.more { margin-top: 12px; } details.more > summary { cursor: pointer; color: var(--accent); font-weight: 500; font-size: 14px; }

/* hero search */
.hero { background: linear-gradient(135deg, var(--navy), #2a3f72); color: #fff; border-radius: var(--radius); padding: 28px; margin-bottom: 16px; }
.hero h1 { color: #fff; } .hero .sub { color: #cfd7ea; }
.searchbox { display: flex; gap: 10px; flex-wrap: wrap; }
.searchbox textarea { flex: 1 1 420px; min-height: 54px; font-size: 16px; background: #fff; color: #1f2433; border: 0; }
.searchbox select { flex: 0 1 220px; background: #fff; color: #1f2433; border: 0; }
.searchbox button { background: var(--accent-2); color: #1b2a4e; }
.examples { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.examples button { background: rgba(255,255,255,.12); color: #fff; font-weight: 500; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.hero .hint, .hero .linkbtn { color: #cfd7ea; }

/* banners, chips, badges */
.banner { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.banner.warn { background: var(--est-bg); color: var(--est); } .banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.good { background: var(--ok-bg); color: var(--ok); } .banner.info { background: var(--chip); color: var(--text); }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--chip); white-space: nowrap; }
.chip.check { background: var(--est-bg); color: var(--est); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ev-strong { color: var(--ok); background: var(--ok-bg); } .ev-partial { color: var(--est); background: var(--est-bg); }
.ev-insufficient { color: var(--guess); background: var(--guess-bg); }
.m { display: inline-block; min-width: 18px; text-align: center; border-radius: 5px; font-weight: 700; margin-inline-end: 5px; font-size: 12px; }
.k-observed, .k-user_supplied, .k-calc-ok { color: var(--ok); background: var(--ok-bg); }
.k-provider_estimate { color: var(--est); background: var(--est-bg); }
.k-ai_hypothesis, .k-calc-no { color: var(--guess); background: var(--guess-bg); }
.k-unavailable { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* summary tiles */
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.tile .k { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.tile .v { font-size: 18px; font-weight: 600; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: 14px; }

/* product cards */
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.pcard .top { display: flex; gap: 14px; align-items: flex-start; }
.pcard .photo { width: 92px; height: 92px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.pcard .title { font-weight: 600; font-size: 16px; margin: 0 0 4px; }
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
@media (max-width: 860px) { .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.metric { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.metric .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.metric .v { font-weight: 600; font-size: 15px; }
.costrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.costrow label { flex: 0 1 160px; }
.detail { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; }
.sizegrid { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 10px; margin-top: 8px; }
@media (max-width: 640px) { .sizegrid { grid-template-columns: repeat(2, 1fr); } }

/* tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
table.facts td.item { font-weight: 600; white-space: nowrap; } table.facts td.src { color: var(--muted); white-space: nowrap; }
table.facts td.note { color: var(--muted); font-size: 13px; }

/* progress */
.progress { margin: 14px 0 0; } .progress .bar { height: 8px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s; }
.progress .step { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* keys drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(10,16,32,.45); z-index: 40; }
.drawer { position: fixed; top: 0; inset-inline-end: 0; height: 100%; width: min(520px, 100%); background: var(--card); z-index: 41; overflow-y: auto; padding: 22px; box-shadow: -8px 0 30px rgba(0,0,0,.2); }
.drawer h2 { display: flex; justify-content: space-between; align-items: center; }
.keyrow { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.keyrow .head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.keyrow input { margin-top: 6px; }
.badge { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; color: var(--est); background: var(--est-bg); }
.savebox { position: sticky; bottom: -22px; background: var(--card); border-top: 1px solid var(--line); padding: 12px 0; margin-top: 8px; }

/* platform badges */
.pb { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.pb-tiktok { background: #111; } .pb-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.pb-youtube { background: #e62117; } .pb-pinterest { background: #c8232c; } .pb-threads { background: #000; }
.pb-facebook { background: #1877f2; } .pb-linkedin { background: #0a66c2; } .pb-x { background: #000; } .pb-reddit { background: #ff4500; }
.platchips { display: flex; flex-wrap: wrap; gap: 8px; }
.platchip { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer; background: var(--card); color: var(--text); font-weight: 500; font-size: 14px; }
.platchip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }

/* calendar */
.week { margin-bottom: 16px; } .week h3 { margin: 4px 0 8px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .days { grid-template-columns: 1fr; } }
.day { background: var(--bg); border-radius: 10px; padding: 8px; min-height: 90px; }
.day .d { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.postchip { display: flex; gap: 6px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px; margin-bottom: 6px; cursor: pointer; font-size: 12px; line-height: 1.35; width: 100%; text-align: start; color: var(--text); font-weight: 500; }
.postchip:hover { border-color: var(--accent); }
.modal-bg { position: fixed; inset: 0; background: rgba(10,16,32,.5); z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 30px 12px; }
.modal { background: var(--card); border-radius: var(--radius); width: min(760px, 100%); padding: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.media img, .media video { max-width: 320px; max-height: 420px; border-radius: 8px; display: block; margin-top: 8px; background: #000; }

/* home */
.agents .agent { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.agents .agent:hover { transform: translateY(-2px); border-color: var(--accent); }
.agents .icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--chip); margin-bottom: 10px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding-inline-start: 34px; position: relative; margin-bottom: 10px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-2); color: #1b2a4e; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.hrow { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.toast { position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; font-size: 14px; }
ul.plain { margin: 0; padding-inline-start: 18px; }
footer.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 0 40px; }

#print { display: none; }
@media print {
  .topbar, main, .drawer, .drawer-bg, .modal-bg, .toast { display: none !important; }
  #print { display: block; font-size: 11px; color: #111; font-family: system-ui, sans-serif; }
  #print h1 { font-size: 18px; } #print h2 { font-size: 14px; margin: 14px 0 6px; } #print h3 { font-size: 12px; margin: 12px 0 4px; }
  #print table { width: 100%; } #print th, #print td { padding: 3px 5px; border-bottom: 1px solid #bbb; color: #111; }
  #print .pp { break-inside: avoid; border-top: 1px solid #bbb; padding-top: 6px; margin-top: 8px; }
  #print img { width: 70px; height: 70px; object-fit: contain; float: right; margin-left: 10px; }
  #print p { margin: 3px 0; white-space: pre-wrap; }
}
.langsel { width: auto; padding: 4px 8px; background: transparent; color: #fff; border: 1px solid #4b5f8f; border-radius: 8px; font-size: 13px; }
.langsel option { color: #111; }
[dir="rtl"] .topbar .in, [dir="rtl"] .actions { direction: rtl; }
.sites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sites a, .sites span.site { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--chip, #eef2fb); color: var(--text); text-decoration: none; border: 1px solid var(--line, #dfe5f1); }
.sites .sup { border-style: dashed; }
.pb-snapchat { background: #fffc00; color: #111; } .pb-whatsapp { background: #25d366; } .pb-telegram { background: #229ed9; }
.pb-vk { background: #0077ff; } .pb-xiaohongshu { background: #ff2442; } .pb-douyin { background: #161823; } .pb-line { background: #06c755; }

.pickrow { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line, #dfe5f1); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.pickrow:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.pickrow > input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.pickrow .pickq { display: inline-block; width: auto; min-width: 220px; max-width: 100%; padding: 4px 8px; margin-top: 4px; }

.gate { border: 2px solid var(--accent); }
a.btn { display: inline-block; text-decoration: none; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; }
a.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
a.btn.big { padding: 14px 24px; font-size: 16px; }
.acct { text-decoration: none; margin-inline-start: 8px; }
.codein { font-size: 24px; letter-spacing: 8px; text-align: center; max-width: 220px; }

.gallery { margin-top: 8px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 6px; }
.ptile { position: relative; border: 2px solid var(--line, #dfe5f1); border-radius: 12px; padding: 8px; cursor: pointer; background: var(--card, #fff); display: flex; flex-direction: column; gap: 4px; }
.ptile img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; }
.ptile .pt-title { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ptile .pt-meta { font-size: 12px; }
.ptile .pt-link { font-size: 12px; }
.ptile .pt-check { position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center; font-weight: 700; }
.ptile.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.ptile.on .pt-check { display: flex; }
.ptile:focus-visible { outline: 3px solid var(--accent-2); }

#prog { margin: 12px 0; }
