/* ASTRO-Z Growth Hub — plain CSS, no framework. Copper Orbit palette (copper on charcoal) for the header. */
:root {
  --ink: #1d2230; --muted: #667085; --line: #e3e6ec; --bg: #f6f7f9; --card: #fff;
  --copper: #b8733c; --copper-dark: #8f5528; --charcoal: #22252b;
  --ok: #1f7a4d; --ok-bg: #e7f5ee; --err: #b42318; --err-bg: #fdecea; --warn-bg: #fff6e0;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Nastaliq Urdu", "Noto Naskh Arabic", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--copper-dark); }
.top { display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: var(--charcoal); color: #fff; flex-wrap: wrap; }
.top a { color: #e9e2da; text-decoration: none; }
.brand { font-weight: 700; letter-spacing: .5px; color: #f1b783 !important; }
.brand span { font-weight: 400; color: #e9e2da; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.top nav a { padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.top nav a.on, .top nav a:hover { background: #3a3e47; color: #fff; }
.me { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.me form { margin: 0; }
button.link { background: none; border: 0; color: #f1b783; cursor: pointer; padding: 0; font: inherit; }
.wrap { max-width: 1240px; margin: 20px auto; padding: 0 20px; }
.narrow { max-width: 440px; margin: 60px auto; padding: 0 20px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 10px; }
h1 { font-size: 22px; margin: 0 0 14px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.kpi b { display: block; font-size: 26px; }
.kpi span { color: var(--muted); font-size: 13px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--err-bg); color: var(--err); }
.note { background: var(--warn-bg); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { background: #fafbfc; font-weight: 600; color: #344054; white-space: nowrap; }
tr:hover td { background: #fcfcfd; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
form.inline { display: inline; margin: 0; }
label { display: block; font-weight: 600; font-size: 13px; margin: 10px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #cfd4dc; border-radius: 7px; font: inherit; background: #fff;
}
textarea { min-height: 110px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.filters select, .filters input { width: auto; min-width: 130px; }
.btn, button.btn { display: inline-block; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--copper); background: var(--copper); color: #fff; text-decoration: none; cursor: pointer; font: inherit; font-size: 14px; }
.btn.ghost { background: #fff; color: var(--copper-dark); }
.btn.small { padding: 4px 9px; font-size: 13px; }
.btn.danger { background: var(--err); border-color: var(--err); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; background: #eef0f4; color: #344054; white-space: nowrap; }
.tag.seeker { background: #e7f5ee; color: var(--ok); } .tag.learner { background: #e8f0fe; color: #1a56c4; }
.tag.skeptic { background: #fdecea; color: var(--err); } .tag.competitor { background: #fff1e0; color: #a35c00; }
.tag.found { background: #eef0f4; } .tag.joined, .tag.value_posting, .tag.active { background: #e7f5ee; color: var(--ok); }
.tag.partner { background: #f4e8dd; color: var(--copper-dark); } .tag.do_not_post, .tag.rejected, .tag.opted_out, .tag.erased { background: #fdecea; color: var(--err); }
.excerpt { white-space: pre-wrap; word-break: break-word; }
[dir=rtl] { text-align: right; font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", "Segoe UI", sans-serif; line-height: 2; }
.pager { margin: 12px 0; display: flex; gap: 8px; align-items: center; }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: #f2f4f7; padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.codes { columns: 2; font-family: ui-monospace, Consolas, monospace; font-size: 16px; }
.qr svg { width: 200px; height: 200px; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check { display: inline; font-weight: 400; margin-right: 14px; }
a.kpi { text-decoration: none; color: inherit; } a.kpi:hover { border-color: var(--copper); }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.subnav a { padding: 5px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; color: #344054; }
.subnav a.on, .subnav a:hover { background: #f4e8dd; color: var(--copper-dark); }
pre.mono { white-space: pre-wrap; max-height: 320px; overflow: auto; padding: 10px; }

/* pricing page */
.pricing h1 { font-size: 26px; }
.offers { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 14px 0; }
.offer { background: #fff7ef; border: 1px solid #f1d4b8; border-radius: 10px; padding: 10px 14px; }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0 24px; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--copper); }
.plan .badge { position: absolute; top: -11px; left: 16px; background: var(--copper); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.plan h2 { margin-top: 4px; }
.plan .price b { font-size: 24px; }
.plan ul { padding-left: 18px; flex: 1; }
.plan .btn { text-align: center; }

/* Brand strip: official logos shown unchanged (only scaled), same layout as the Raml site */
.cstrip { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.4fr) minmax(0,1fr); align-items: center; gap: clamp(8px,2vw,28px); padding: 6px clamp(10px,2.4vw,28px); background: #fff; border-bottom: 1px solid #e6e1d8; }
.cstrip img { display: block; width: auto; max-width: 100%; min-width: 0; }
.cstrip .cs-l { justify-self: start; height: clamp(24px,4vw,44px); }
.cstrip .cs-c { justify-self: center; font-weight: 700; letter-spacing: .02em; font-size: clamp(13px,1.8vw,18px); text-align: center; }
.cstrip .cs-r { justify-self: end; height: clamp(28px,5vw,56px); border-radius: 6px; }
.foot .contact { margin-top: 6px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.foot .wa { color: #128c4a; font-weight: 600; }
.btn.wa { background: #128c4a; color: #fff; }
.mailbody { white-space: pre-wrap; word-break: break-word; background: #fbfaf7; border: 1px solid #e6e1d8; border-radius: 8px; padding: 12px; max-height: 480px; overflow: auto; }
tr.unread td { font-weight: 700; }
@media print { .cstrip { display: none; } }

/* ---------- Simple Mode ---------- */
.simple { max-width: 860px; margin: 0 auto; }
.sstatus { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.sbox { background: #fff; border: 1px solid #e6e1d8; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ok-dot { color: #1c7c3c; font-weight: 600; }
.scard { background: #fff; border: 1px solid #e6e1d8; border-radius: 12px; padding: 14px; margin: 0 0 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.scard.later { opacity: .8; }
.shead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.stitle { display: block; margin: 4px 0 6px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; background: #eee; }
.ch-facebook_page { background: #e7efff; color: #1b4fd1; }
.ch-whatsapp_channel, .ch-whatsapp_status { background: #e3f6ea; color: #128c4a; }
.ch-instagram { background: #fde9f1; color: #b3245c; }
.ch-group_post { background: #fff3dc; color: #8a5a00; }
.scard textarea { width: 100%; font-size: 15px; line-height: 1.6; }
.smedia { margin: 8px 0; }
.smedia img, .smedia video { max-width: 100%; max-height: 320px; border-radius: 8px; display: block; margin-bottom: 4px; }
.sactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.sactions form { margin: 0; }
.btn.big { font-size: 16px; padding: 11px 18px; }
.btn.fb { background: #1877f2; color: #fff; }
.btn.ig { background: #c13584; color: #fff; }
.btn.ok { background: #1c7c3c; color: #fff; }
.upl label.btn { cursor: pointer; }
.modeswitch { margin: 0 8px; }
.modeswitch .link { color: inherit; opacity: .85; }
.help h2 { margin-top: 22px; }
.help .ur { direction: rtl; text-align: right; font-size: 17px; line-height: 2; }
.btn.fb, .btn.ig, .btn.ok, .btn.wa { border-color: transparent; }
