/* Wijha — travel agency ERP. Brand: Deep navy / Lime / Warm paper (UI/UX package V1).
   Hand-written, no build step. RTL-first via logical properties. */
:root {
  --navy: #09101f;
  --navy-2: #151d2e;
  --lime: #b7e84a;
  --lime-600: #a3d436;
  --lime-50: #f0f5e4;
  --paper: #f7f5ef;
  --brand: var(--navy);            /* tenants may override on their portal */
  --brand-600: #1c2638;
  --brand-50: #eef1ea;
  --accent: var(--lime);
  --ink: #09101f;
  --muted: #5b6472;
  --line: #dde1d9;
  --line-2: #eef0ea;
  --bg: var(--paper);
  --card: #ffffff;
  --ok: #3d7a18;
  --warn: #9a5b00;
  --err: #b93434;
  --focus: #277b94;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(9, 16, 31, .04);
  --shadow-lg: 0 18px 50px rgba(9, 16, 31, .16);
  --font-ar: "El Messiri", "Manrope", system-ui, sans-serif;
  --font-en: "Manrope", "El Messiri", system-ui, sans-serif;
  --font: var(--font-ar);
  --font-num: "Outfit", "El Messiri", "Manrope", system-ui, sans-serif;
}
html[lang=en] { --font: var(--font-en); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 15px; }
a { color: var(--ink); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; text-decoration-color: var(--lime-600); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.75rem; letter-spacing: -.01em; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
html[lang=en] h1 { letter-spacing: -.02em; }
p { margin: 0 0 1em; }
img { max-width: 100%; }
small, .muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: embed; }
code { background: var(--lime-50); padding: .1em .4em; border-radius: 6px; font-size: .9em; word-break: break-all; }
kbd { font: 600 .72rem/1 var(--font-en); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .2rem .4rem; background: #fff; color: var(--muted); direction: ltr; }
.brand-word { font: 700 1.9rem/1 "Outfit", sans-serif; letter-spacing: -.02em; direction: ltr; display: inline-flex; flex-direction: column; }
.brand-word small { font: 700 .5rem/1.6 "Manrope", sans-serif; letter-spacing: .22em; margin-top: .35rem; color: inherit; opacity: .8; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 44px; padding: .55em 1.15em; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: #fff; border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-accent { background: var(--lime); color: var(--navy); }
.btn-accent:hover { background: var(--lime-600); }
.btn-danger { background: transparent; color: var(--err); border-color: #efcaca; }
.btn-danger:hover { background: #fdf0f0; }
.btn-sm { min-height: 36px; padding: .3em .8em; font-size: .86rem; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: .8em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Cards / layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; }
.card + .card { margin-block-start: 1rem; }
.grid > .card + .card { margin-block-start: 0; }
.card.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.card.dark .muted, .card.dark small { color: #c4cbd5; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 1.1rem; }
.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)); }
.span2 { grid-column: span 2; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-block-start: 1rem; }
.mt { margin-block-start: 1.1rem; } .mb { margin-block-end: 1.1rem; }
.center { text-align: center; }
.eyebrow { font: 700 .72rem/1.4 var(--font-en); letter-spacing: .18em; text-transform: uppercase; color: #547020; }
@media (max-width: 1050px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }

/* ---------- Stats ---------- */
.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat .label { color: var(--muted); font-size: .86rem; }
.stat .value { font: 700 1.75rem/1.35 var(--font-num); letter-spacing: -.01em; }
.stat .value .money { font-family: var(--font-num); }
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--navy); border-radius: 99px; }
.progress.hot > span { background: var(--err); }
.progress.warm > span { background: #e0a100; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-inline: -1.4rem; padding-inline: 1.4rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: .8rem .7rem; border-block-end: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: .8rem; color: var(--muted); font-weight: 700; white-space: nowrap; background: #f3f4ee; }
thead th:first-child { border-start-start-radius: 10px; } thead th:last-child { border-start-end-radius: 10px; }
tbody tr:hover { background: #fafbf7; }
td.num, th.num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

/* ---------- Badges (state always has text, never colour alone) ---------- */
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .2em .7em; border-radius: 99px; font-size: .76rem; font-weight: 700; background: #eef2e5; color: #405721; white-space: nowrap; }
.badge.amber { background: #fff0da; color: #855513; }
.badge.blue { background: #e9f2fb; color: #275f94; }
.badge.violet { background: #f1ecfb; color: #5b3aa8; }
.badge.green { background: #e6f3d8; color: #36621a; }
.badge.red { background: #ffe8e7; color: #9e3535; }
.badge.gray { background: #edf0f4; color: #535c6a; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 700; font-size: .88rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .error { font-size: .82rem; color: var(--err); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=tel], input[type=search], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; min-height: 44px; padding: .55em .85em; border: 1px solid #c9d1c6; border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(183, 232, 74, .45); }
/* iPhone Safari zooms the page into any field under 16px; keep fields at 16px on touch screens. */
@media (pointer: coarse), (max-width: 820px) {
  input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=tel], input[type=search], input[type=time], input[type=datetime-local], select, textarea { font-size: max(16px, 1em); }
}
input[type=color] { width: 60px; height: 44px; border: 1px solid #c9d1c6; border-radius: 9px; padding: 2px; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: .55rem; align-items: center; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
fieldset { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem; margin: 0; }
legend { padding-inline: .5rem; font-weight: 700; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-block-start: 1.25rem; flex-wrap: wrap; }

/* ---------- Alerts ---------- */
.alert { padding: .85rem 1.1rem; border-radius: 12px; margin-block-end: 1rem; border: 1px solid; border-inline-start-width: 4px; }
.alert-success { background: #eef6e3; border-color: #cfe3b3; border-inline-start-color: var(--lime-600); color: #2d5212; }
.alert-error { background: #fdeeee; border-color: #f2cccc; border-inline-start-color: var(--err); color: #8c2323; }
.alert-info { background: #fff; border-color: var(--line); border-inline-start-color: var(--navy); color: var(--ink); }
.alert ul { margin: 0; padding-inline-start: 1.2rem; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: #c5cddb; padding: 1.4rem .95rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: #2a3446 transparent; }
.sidebar .brand { display: flex; align-items: center; gap: .7rem; color: #fff; padding: 0 .45rem .9rem; text-decoration: none; }
.sidebar .brand-word { font-size: 1.75rem; }
.tenant-chip { margin: 0 .2rem 1rem; padding: .7rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); display: flex; flex-direction: column; }
.tenant-chip strong { color: #fff; font-size: .95rem; }
.tenant-chip small { color: #9ba6b8; font-size: .76rem; }
.sidebar nav a { display: flex; align-items: center; gap: .7rem; min-height: 42px; padding: .45rem .75rem; border-radius: 10px; color: #c5cddb; text-decoration: none; margin-block-end: 2px; font-weight: 500; font-size: .92rem; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar nav a.active { background: var(--lime); color: var(--navy); font-weight: 700; }
.sidebar nav a.locked { opacity: .42; }
.sidebar .nav-ic { display: inline-grid; place-items: center; width: 22px; flex-shrink: 0; }
.sidebar .nav-label { flex: 1; }
.sidebar .nav-lock { font-size: .7rem; }
.sidebar .nav-section { font: 700 .66rem/1 var(--font-en); text-transform: uppercase; letter-spacing: .16em; color: #7d889b; margin: 1.1rem .75rem .5rem; }
html[lang=ar] .sidebar .nav-section { font-family: var(--font-ar); letter-spacing: .02em; font-size: .74rem; }
.sidebar .plan-box { margin-top: 1rem; background: rgba(183, 232, 74, .08); border: 1px solid rgba(183, 232, 74, .22); border-radius: 12px; padding: .8rem .9rem; font-size: .84rem; color: #dfe7cf; }
.sidebar .plan-box strong { color: #fff; }
.sidebar .by { margin-top: auto; padding: 1.2rem .75rem .2rem; font-size: .72rem; color: #8d98ab; }
.sidebar .by strong { color: #c9d1dc; letter-spacing: .06em; }
.main { min-width: 0; overflow-x: clip; }
.content > * { max-width: 100%; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.75rem; background: rgba(247, 245, 239, .9); backdrop-filter: blur(10px); border-block-end: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar .who { display: flex; align-items: center; gap: .6rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--lime); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.search-trigger { flex: 1; max-width: 460px; display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font: inherit; cursor: pointer; text-align: start; }
.search-trigger span { flex: 1; }
.search-trigger:hover { border-color: #b7c19e; }
.content { padding: 1.75rem; max-width: 1320px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 1.4rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.9rem; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 272px; z-index: 30; transform: translateX(100%); transition: transform .2s; }
  [dir=ltr] .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(9, 16, 31, .45); z-index: 25; }
  .menu-toggle { display: inline-flex; }
  .content { padding: 1rem; }
  .topbar { padding: .6rem 1rem; }
  .search-trigger kbd, .search-trigger span { display: none; }
  .search-trigger { flex: 0 0 auto; }
}
.logout-ico, .ls-short { display: none; }
@media (max-width: 520px) {
  .topbar .btn-accent { display: none; }
  .topbar { gap: .5rem; }
  .topbar .who { gap: .35rem; }
  .topbar .who .btn-sm { padding-inline: .55rem; }
  .logout-txt, .topbar .ls-long { display: none; }
  .logout-ico, .topbar .ls-short { display: inline-flex; }
}
@media (max-width: 380px) { .topbar .avatar { display: none; } }
@media (max-width: 700px) {
  .topbar .bell { position: static; }
  .topbar .bell-menu { position: fixed; inset-inline: .6rem; top: 62px; width: auto; max-height: calc(100vh - 80px); overflow: auto; }
}

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; background: rgba(9, 16, 31, .55); z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-box { width: min(640px, 100%); background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.palette-input { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-block-end: 1px solid var(--line); background: #fff; }
.palette-input input { border: 0 !important; box-shadow: none !important; padding: .3rem 0; font-size: 1.05rem; }
.palette-list { list-style: none; margin: 0; padding: .4rem; max-height: 55vh; overflow-y: auto; }
.palette-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .65rem .8rem; border-radius: 10px; cursor: pointer; }
.palette-list li em { font-style: normal; font-size: .74rem; color: var(--muted); }
.palette-list li.on { background: var(--navy); color: #fff; }
.palette-list li.on em, .palette-list li.on small { color: var(--lime); }
.palette-list li.none { color: var(--muted); cursor: default; }
.palette-foot { display: flex; gap: 1.2rem; padding: .55rem 1rem; font-size: .76rem; color: var(--muted); border-block-start: 1px solid var(--line); }

/* ---------- Filters / tabs ---------- */
.filters { display: flex; gap: .55rem; flex-wrap: wrap; margin-block-end: 1rem; }
.filters input, .filters select { width: auto; min-width: 160px; flex: 1 1 160px; }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-block-end: 1.1rem; }
.tabs a { padding: .45rem 1rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.tabs a:hover { border-color: #b7c19e; }
.tabs a.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Definition lists ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.1rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .88rem; }
.dl dd { margin: 0; font-weight: 600; }

/* ---------- Pagination ---------- */
nav[role=navigation] { margin-top: 1rem; }
nav[role=navigation] svg { width: 18px; height: 18px; }
.pagination { display: flex; gap: .3rem; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination li > * { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.pagination .active > * { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Public site ---------- */
.site-header { background: rgba(247, 245, 239, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-block-end: 1px solid rgba(9, 16, 31, .06); position: sticky; top: 0; z-index: 20; }
.site-header .inner, .container { max-width: 1240px; margin: 0 auto; padding-inline: 1.5rem; }
.site-header .inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none !important; flex-shrink: 0; }
.logo .brand-word { font-size: 1.55rem; }
.site-nav { display: flex; gap: .25rem; align-items: center; margin-inline: auto; background: rgba(255, 255, 255, .7); border: 1px solid rgba(9, 16, 31, .07); border-radius: 99px; padding: .3rem; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: .93rem; padding: .45rem 1rem; border-radius: 99px; text-decoration: none !important; transition: background .15s; }
.site-nav a:hover { background: var(--line-2); }
.site-nav a.on { background: var(--navy); color: #fff; }
.site-actions { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.site-lang { font: 700 .82rem var(--font-en); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; width: 36px; height: 36px; display: grid; place-items: center; text-decoration: none !important; }
.site-lang:hover { color: var(--ink); border-color: var(--ink); }
.site-login { font-weight: 600; font-size: .93rem; white-space: nowrap; }
.site-cta { background: var(--lime) !important; color: var(--navy) !important; border-radius: 99px !important; padding-inline: 1.1rem !important; box-shadow: 0 6px 18px rgba(163, 212, 54, .35); }
.site-cta:hover { background: var(--lime-600) !important; text-decoration: none !important; }
.site-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.site-burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header.open .site-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.open .site-burger span:nth-child(2) { opacity: 0; }
.site-header.open .site-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .site-header .inner { flex-wrap: wrap; gap: .75rem; min-height: 64px; }
  .site-actions { margin-inline-start: auto; gap: .5rem; }
  .site-login, .site-actions .site-cta { display: none; }
  .site-burger { display: flex; }
  .site-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; border-radius: 16px; margin: 0 0 .8rem; }
  .site-nav a { padding: .7rem 1rem; }
  .site-header.open .site-nav { display: flex; }
  .site-header.open .site-login, .site-header.open .site-actions .site-cta { display: inline-flex; }
  .site-header.open .site-actions { order: 4; width: 100%; justify-content: space-between; margin: 0 0 .9rem; }
  .logo .brand-word small { display: none; }
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: .7rem; }
.footer-grid a, .footer-grid span { display: block; color: #c1c9d1; font-weight: 500; margin-bottom: .35rem; }
.footer-grid a:hover { color: var(--lime); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); max-width: 16ch; margin-bottom: .35em; line-height: 1.3; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .cta .btn:first-child { background: var(--lime); color: var(--navy); }
.hero .cta .btn-outline { background: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero-art { position: relative; background: var(--navy); color: #fff; border-radius: 28px; padding: 2.6rem; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; width: 260px; height: 320px; inset-inline-start: -110px; top: -100px; background: var(--lime); transform: rotate(32deg); opacity: .16; }
.hero-art .wj-mark { width: 70%; height: auto; display: block; margin: .5rem auto 2rem; position: relative; }
.hero-art .mock-strip { display: flex; justify-content: space-between; gap: 1rem; border: 1px solid #34404b; border-radius: 12px; padding: .9rem 1rem; margin: .7rem 0; font-size: .9rem; position: relative; }
.hero-art .mock-strip b { color: var(--lime); font-family: var(--font-num); }
.hero-art small { color: #c1c9d1; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } .hero-art .wj-mark { width: 55%; } }
.section { padding: 3.75rem 0; }
.section-title { text-align: center; margin-bottom: 2.2rem; }
.section-title p { color: var(--muted); max-width: 60ch; margin-inline: auto; }
.feature { display: flex; flex-direction: column; gap: .35rem; }
.feature .icon { width: 48px; height: 48px; border-radius: 13px; background: var(--lime-50); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: .6rem; }
.pill-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .35rem .95rem; font-weight: 600; font-size: .88rem; }
.compare td:first-child { font-weight: 600; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: #b6c0ca; }
.plan { display: flex; flex-direction: column; gap: .75rem; position: relative; }
.plan.featured { border: 2px solid var(--navy); }
.plan .ribbon { position: absolute; top: -13px; inset-inline-end: 18px; background: var(--lime); color: var(--navy); padding: .2rem .8rem; border-radius: 99px; font-size: .76rem; font-weight: 700; }
.plan .price { font: 700 2.2rem/1.3 var(--font-num); }
.plan .price small { font: 500 .95rem var(--font); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-inline-end: .45rem; }
.plan li.off { color: #9aa6b2; }
.plan li.off::before { content: "—"; color: #c3ccd5; }
.plan .grow { flex: 1; }
.cycle-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 5px; gap: 5px; }
.cycle-toggle button { border: 0; background: transparent; padding: .45rem 1.1rem; border-radius: 9px; font: inherit; cursor: pointer; }
.cycle-toggle button.on { background: var(--navy); color: #fff; }
.site-footer { background: var(--navy); color: #aab3c2; padding: 2.75rem 0; margin-top: 3rem; }
.site-footer a { color: #fff; }
.auth-box { max-width: 480px; margin: 3rem auto; }

/* ---------- Portal ---------- */
.portal-hero { background: var(--brand); color: #fff; padding: 2.75rem 0; }
.portal-hero h1 { color: #fff; }
.pkg { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.pkg .img { aspect-ratio: 16/9; background: var(--lime-50) center/cover no-repeat; }
.pkg .body { padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pkg .price { font: 700 1.3rem var(--font-num); color: var(--brand); }
.includes { white-space: pre-line; }

/* ---------- Greeting / dashboard ---------- */
.greeting { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-block-end: 1.5rem; }
.greeting h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .2rem 0 .2rem; }
.greeting p { margin: 0; color: var(--muted); }
.quick { display: flex; gap: .5rem; flex-wrap: wrap; }

@media print { .sidebar, .topbar, .no-print, .palette { display: none !important; } .shell { display: block; } .card { box-shadow: none; } body { background: #fff; } }

/* ---------- v2: finance, charts, polish ---------- */
h1, h2, h3, .logo, .sidebar .brand, .stat .value { font-weight: 700; letter-spacing: 0; }
.sidebar .nav-group summary { display: flex; align-items: center; gap: .7rem; min-height: 42px; padding: .45rem .75rem; border-radius: 10px; cursor: pointer; list-style: none; color: #c5cddb; font-size: .92rem; }
.sidebar .nav-group summary::-webkit-details-marker { display: none; }
.sidebar .nav-group summary:hover { background: rgba(255,255,255,.07); }
.sidebar .nav-group a { padding-inline-start: 1.6rem; font-size: .88rem; min-height: 36px; }
.stat.accent { background: var(--navy); color: #fff; border-color: var(--navy); } .stat.accent .label { color: #c4cbd5; } .stat.accent .value { color: var(--lime); }
.stat.good .value { color: var(--ok); }
.stat.bad .value { color: var(--err); }
.money { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: embed; white-space: nowrap; }
.pos { color: var(--ok); } .neg { color: var(--err); }
tfoot td, tr.total td { font-weight: 700; border-block-start: 2px solid var(--ink); background: #f7f8f3; }
tr.group td { background: var(--lime-50); font-weight: 700; color: var(--navy); }
.indent-1 { padding-inline-start: 1.4rem !important; } .indent-2 { padding-inline-start: 2.8rem !important; } .indent-3 { padding-inline-start: 4.2rem !important; }
.report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-block-end: 1rem; }
.report-head h1 { margin: 0; }
.report-head form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.report-head input[type=date] { width: auto; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.legend { display: flex; gap: 1rem; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: .35rem; vertical-align: middle; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: .6rem; align-items: center; padding: .3rem 0; }
.bar-row .bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-row .bar span { display: block; height: 100%; background: var(--navy); border-radius: 99px; }
.lines-table input, .lines-table select { padding: .45em .6em; }
.print-only { display: none; }
@media print { .print-only { display: block; } body { background: #fff; } }

/* ---------- Help center & assistant ---------- */
.help-card { display: flex; flex-direction: column; gap: .35rem; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.help-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.help-card h3 { margin: .4rem 0 0; }
.help-card p { margin: 0; font-weight: 400; font-size: .9rem; }
.help-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--lime-50); display: grid; place-items: center; color: var(--navy); }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.25rem; align-items: start; }
.help-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1rem; }
.help-side .card + .card { margin: 0; }
.help-toc { display: flex; flex-direction: column; gap: .15rem; padding: .8rem; }
.help-toc a { padding: .45rem .7rem; border-radius: 9px; font-weight: 500; }
.help-toc a.on { background: var(--navy); color: #fff; }
.prose { max-width: 820px; font-size: 1.02rem; line-height: 1.95; }
.prose h2 { margin-top: 1.6em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--navy); background: linear-gradient(transparent 60%, rgba(183, 232, 74, .45) 60%); }
@media (max-width: 960px) { .help-layout { grid-template-columns: 1fr; } .help-side { position: static; } }
.chat { display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 460px; padding: 0; overflow: hidden; }
.chat-log { flex: 1; overflow-y: auto; padding: 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.msg { max-width: 80%; padding: .8rem 1rem; border-radius: 16px; line-height: 1.8; white-space: normal; overflow-wrap: anywhere; }
.msg p { margin: 0 0 .5em; } .msg p:last-child { margin: 0; } .msg ul, .msg ol { margin: .3em 0; padding-inline-start: 1.2rem; }
.msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-end-end-radius: 4px; }
.msg.bot { align-self: flex-start; background: #f3f4ee; border: 1px solid var(--line); border-end-start-radius: 4px; }
.msg.bot a { text-decoration: underline; }
.msg.typing { color: var(--muted); }
.chat-form { display: flex; gap: .6rem; padding: .9rem; border-block-start: 1px solid var(--line); background: #fff; }
.chat-form textarea { min-height: 48px; max-height: 160px; resize: none; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: .45rem .9rem; font: inherit; font-size: .88rem; cursor: pointer; }
.chips button:hover { border-color: var(--navy); }
.fab { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 20; display: inline-flex; align-items: center; gap: .5rem; background: var(--navy); color: #fff !important; border-radius: 99px; padding: .75rem 1.1rem; box-shadow: var(--shadow-lg); font-weight: 700; text-decoration: none !important; }
.fab .ic { color: var(--lime); }
@media (max-width: 640px) { .fab span { display: none; } .msg { max-width: 92%; } }
@media print { .fab { display: none !important; } }

/* ---------- Notifications ---------- */
.bell { position: relative; }
.bell > summary { list-style: none; position: relative; }
.bell > summary::-webkit-details-marker { display: none; }
.bell-dot { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #e5484d; color: #fff; font: 700 .7rem/20px var(--font-en); text-align: center; }
.bell-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(380px, 92vw); z-index: 40; padding: .8rem; box-shadow: var(--shadow-lg); }
.notif-row { display: grid; grid-template-columns: 36px 1fr auto; gap: .7rem; align-items: start; padding: .65rem .5rem; border-radius: 12px; color: var(--ink); font-weight: 500; text-decoration: none !important; }
.notif-row:hover { background: #f3f4ee; }
.notif-row.unread { background: var(--lime-50); }
.notif-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: var(--lime); display: grid; place-items: center; }

/* ---------- Dialogs ---------- */
dialog.modal { border: 0; border-radius: 20px; padding: 1.5rem; width: min(720px, 94vw); max-height: 90vh; overflow: auto; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(9, 16, 31, .55); }
.empty .ic { color: var(--muted); }
@media (max-width: 700px) { .hide-sm { display: none; } }
.nav-lock { opacity: .8; display: inline-grid; }

/* ---------- Growth suite ---------- */
.trip-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; align-items: center; }
.trip-actions small { grid-column: 1 / -1; }
.btn-sos { background: var(--err); border-color: var(--err); color: #fff; font-weight: 800; }
.btn-sos:hover { background: #9c2a2a; color: #fff; }
.btn-sos:disabled { opacity: .7; }

/* Leads board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(205px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .6rem; align-items: start; }
.board-col { background: var(--line-2); border-radius: var(--radius); padding: .7rem; min-height: 200px; }
.board-col.drop { outline: 2px dashed var(--navy); outline-offset: -4px; }
.board-col h3 { display: flex; justify-content: space-between; align-items: center; margin: .2rem .3rem .7rem; font-size: .95rem; }
.lead-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .75rem .85rem; margin-bottom: .6rem; cursor: grab; box-shadow: var(--shadow); }
.lead-card:active { cursor: grabbing; }
.lead-card.overdue { border-inline-start: 4px solid var(--err); }
.lead-card .meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; font-size: .8rem; color: var(--muted); }
.lead-card summary { list-style: none; cursor: pointer; }
.lead-card summary::-webkit-details-marker { display: none; }

/* WhatsApp inbox */
.inbox { display: grid; grid-template-columns: 320px 1fr 280px; gap: 0; min-height: 70vh; padding: 0; overflow: hidden; }
.inbox-list { border-inline-end: 1px solid var(--line); overflow-y: auto; max-height: 78vh; }
.inbox-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; padding: .8rem 1rem; border-block-end: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.inbox-item:hover, .inbox-item.on { background: var(--lime-50); }
.inbox-item small { grid-column: 1 / -1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-thread { display: flex; flex-direction: column; min-width: 0; }
.inbox-msgs { flex: 1; overflow-y: auto; max-height: 60vh; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: #f3f4ee; }
.bubble { max-width: 75%; padding: .6rem .85rem; border-radius: 16px; word-wrap: break-word; line-height: 1.7; }
.bubble-text { white-space: pre-wrap; }
.bubble.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-end-start-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--navy); color: #fff; border-end-end-radius: 4px; }
.bubble.note { align-self: center; background: #fff7e0; border: 1px dashed #d8b64a; font-size: .9rem; }
.bubble small { display: block; opacity: .7; font-size: .72rem; margin-top: .2rem; }
.inbox-side { border-inline-start: 1px solid var(--line); padding: 1rem; overflow-y: auto; max-height: 78vh; }
@media (max-width: 1100px) { .inbox { grid-template-columns: 280px 1fr; } .inbox-side { display: none; } }
@media (max-width: 700px) { .inbox { grid-template-columns: 1fr; } .inbox.has-active .inbox-list { display: none; } .inbox:not(.has-active) .inbox-thread { display: none; } }

/* Stars, checklist, big mobile buttons */
.stars { color: #b8860b; letter-spacing: 1px; }
.stars .off { opacity: .25; }
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 2.2rem; line-height: 1; color: var(--line); cursor: pointer; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #d9a520; }
.rate input:focus-visible + label { outline: 2px solid var(--focus); border-radius: 6px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.checklist li a { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; align-items: start; padding: .55rem .6rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
.checklist li a:hover { background: var(--lime-50); }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.checklist .done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist .done strong { text-decoration: line-through; color: var(--muted); }
.collect { max-width: 560px; margin: 0 auto; }
.collect .btn-lg, .collect input, .collect select { min-height: 52px; font-size: 1.05rem; }
.whats-new { background: var(--navy); color: #fff; border-radius: var(--radius); padding: .8rem 1.1rem; display: flex; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.whats-new a { color: var(--lime); font-weight: 700; }
.map-box { height: 62vh; min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* ---------- Price calculator (Odoo-style) ---------- */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.cfg-main { display: grid; gap: 1.1rem; min-width: 0; }
.cfg-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.cfg-step-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .7rem; list-style: none; cursor: default; }
details.cfg-step > summary { cursor: pointer; margin-bottom: 0; }
details.cfg-step > summary::-webkit-details-marker { display: none; }
.cfg-step-head h3 { margin: 0; flex: 1; font-size: 1.1rem; }
.cfg-num { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--lime); display: grid; place-items: center; font: 800 .95rem var(--font-num); }
.cycle-toggle label { position: relative; }
.cycle-toggle label input { position: absolute; opacity: 0; }
.cycle-toggle label span { display: inline-block; padding: .45rem 1rem; border-radius: 9px; cursor: pointer; }
.cycle-toggle label input:checked + span { background: var(--navy); color: #fff; }
.cycle-toggle label input:focus-visible + span { outline: 2px solid var(--focus); }
.cfg-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.cfg-plan { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .8rem .85rem; font-size: .88rem; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.cfg-plan input { position: absolute; opacity: 0; }
.cfg-plan.on { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(183, 232, 74, .45); }
.cfg-plan:focus-within { outline: 2px solid var(--focus); }
.cfg-plan .cfg-price b { font: 800 1.35rem/1.2 var(--font-num); }
.cfg-plan > small.muted { line-height: 1.4; min-height: 2.4em; }
.cfg-ribbon { position: absolute; top: -11px; inset-inline-end: 12px; background: var(--lime); color: var(--navy); font-size: .72rem; font-weight: 800; padding: .15rem .6rem; border-radius: 99px; }
.cfg-qty { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.cfg-qty label { display: flex; align-items: center; gap: .4rem; font-weight: 700; margin-bottom: .4rem; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { width: 44px; border: 0; background: var(--line-2); font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--lime-50); }
.stepper input { width: 84px !important; border: 0 !important; border-radius: 0 !important; text-align: center; font: 800 1.2rem var(--font-num); box-shadow: none !important; }
.cfg-groupbox { border-top: 1px solid var(--line-2); }
.cfg-groupbox:first-of-type { border-top: 0; }
.cfg-group { display: flex; align-items: center; gap: .4rem; padding: .7rem 0; font-size: .92rem; font-weight: 700; cursor: pointer; list-style: none; }
.cfg-group::-webkit-details-marker { display: none; }
.cfg-chev { width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); margin-top: -3px; transform: rotate(45deg); margin-inline-start: auto; transition: transform .15s; }
.cfg-groupbox[open] .cfg-chev { transform: rotate(-135deg); margin-top: 3px; }
.cfg-groupbox .cfg-apps { padding-bottom: .8rem; }
.cfg-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .45rem; }
.cfg-app { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: .55rem; align-items: center; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.cfg-app input { position: absolute; opacity: 0; }
.cfg-app:focus-within { outline: 2px solid var(--focus); }
.cfg-app-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--line-2); display: grid; place-items: center; color: var(--navy); }
.cfg-app-body { display: flex; flex-direction: column; min-width: 0; }
.cfg-app-body { padding-inline-end: 3.6rem; }
.cfg-app-body strong { font-size: .86rem; line-height: 1.35; }
.cfg-app-body small { display: none; }
.cfg-app-price { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: .55rem; font: 700 .76rem var(--font-num); white-space: nowrap; background: var(--line-2); border-radius: 99px; padding: .1rem .55rem; }
.cfg-app.on { border-color: var(--navy); background: var(--lime-50); }
.cfg-app.on .cfg-app-ic { background: var(--navy); color: var(--lime); }
.cfg-app.included { cursor: default; background: var(--lime-50); border-style: dashed; }
.cfg-app.included .cfg-app-price { color: var(--ok); font-family: inherit; background: #fff; }
.cfg-app.on .cfg-app-price { background: var(--navy); color: var(--lime); }
.cfg-summary { position: sticky; top: 84px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-lg); }
.cfg-summary h3 { color: var(--lime); margin-top: 0; }
.cfg-summary .muted { color: #b9c1cc !important; }
.cfg-summary hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.cfg-total { font: 800 1.7rem var(--font-num); color: var(--lime); }
.cfg-total small { font-size: .8rem; color: #fff; font-family: var(--font); }
@media (max-width: 960px) { .cfg { grid-template-columns: 1fr; } .cfg-summary { position: static; } }

/* ---------- Marketer program ---------- */
.mk-hero { padding-bottom: 2rem; }
.mk-calc { padding: 1.6rem; box-shadow: var(--shadow-lg); border: 0; }
.mk-hero { padding-bottom: 2.2rem; }
.mk-hero { text-align: center; padding-top: 3.5rem; }
.mk-hero h1 { max-width: none; font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
.mk-hero p.lead { margin-inline: auto; }
.mk-hero .cta { justify-content: center; }
.mk-range { display: block; margin-bottom: 1.1rem; }
.mk-range span { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; margin-bottom: .35rem; }
.mk-range b { font-family: var(--font-num); }
.mk-range input[type=range] { width: 100%; accent-color: var(--navy); }
.mk-result { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.mk-result > div { background: var(--navy); color: #fff; border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.mk-result > div:last-child { background: var(--lime); color: var(--navy); }
.mk-result small { opacity: .8; font-size: .8rem; }
.mk-result strong { font: 800 1.7rem/1.2 var(--font-num); }
.mk-step { width: 38px; height: 38px; border-radius: 12px; background: var(--lime); color: var(--navy); display: grid; place-items: center; font: 800 1.1rem var(--font-num); margin-bottom: .8rem; }
.mk-steps h3 { margin-bottom: .3rem; }
.mk-rights { background: #fff; border-block: 1px solid var(--line-2); }
.mk-form { padding: 1.8rem; }

/* ---------- Demo agency ---------- */
.sandbox-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 14px; padding: .7rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.sandbox-bar strong { color: var(--lime); }
.sandbox-bar form { margin-inline-start: auto; }
.sandbox-dots { display: inline-flex; gap: 4px; }
.sandbox-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.sandbox-dots i.used { background: rgba(255, 255, 255, .2); }

/* ---------- Sidebar sections (one open at a time) ---------- */
.sidebar .nav-sep { height: 1px; background: rgba(255, 255, 255, .08); margin: .6rem .5rem; }
.sidebar .nav-sec { margin-block-end: 2px; border-radius: 12px; }
.sidebar .nav-sec[open] { background: rgba(255, 255, 255, .035); }
.sidebar .nav-sec > summary { display: flex; align-items: center; gap: .7rem; min-height: 42px; padding: .45rem .75rem; border-radius: 10px; cursor: pointer; list-style: none; color: #e3e8f0; font-weight: 600; font-size: .92rem; user-select: none; }
.sidebar .nav-sec > summary::-webkit-details-marker { display: none; }
.sidebar .nav-sec > summary:hover { background: rgba(255, 255, 255, .06); }
.sidebar .nav-sec > summary .badge { margin-inline-start: auto; }
.sidebar .nav-chev { width: 7px; height: 7px; border-right: 2px solid #7d889b; border-bottom: 2px solid #7d889b; margin-top: -3px; transform: rotate(45deg); transition: transform .15s; margin-inline-start: auto; flex-shrink: 0; }
.sidebar .nav-sec > summary .badge + .nav-chev { margin-inline-start: .4rem; }
.sidebar .nav-sec[open] > summary .nav-chev { transform: rotate(-135deg); margin-top: 3px; }
.sidebar .nav-sec-body { padding: .1rem 0 .4rem; }
.sidebar .nav-sec-body a { min-height: 36px; font-size: .88rem; padding-inline-start: 1.15rem; }
.sidebar .nav-sec-body a .nav-ic svg { width: 16px; height: 16px; }
.sidebar nav a .badge { margin-inline-start: auto; }
.sidebar .nav-locked > summary { color: #9aa5b6; font-weight: 500; }
.sidebar .nav-locked a.locked { opacity: .6; }
.sidebar a.nav-more { color: var(--lime); font-size: .82rem; min-height: 32px; }
.mk-big { font: 800 2.6rem/1.1 var(--font-num); color: var(--navy); }
.mk-list { margin: 0; padding-inline-start: 1.1rem; color: var(--muted); font-size: .9rem; }
.mk-demo { background: linear-gradient(135deg, var(--lime-50), #fff); }

/* Compact plan cards (home page) */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.plans-grid .plan { padding: 1.2rem; gap: .55rem; }
.plans-grid .plan .price span { font-size: 1.9rem; }
.plans-grid .plan ul { margin: 0; font-size: .88rem; }
.plan-apps { display: flex; flex-direction: column; gap: .4rem; border-top: 1px solid var(--line-2); padding-top: .7rem; }
.plan-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.plan-chips span { background: var(--line-2); border-radius: 99px; padding: .12rem .55rem; font-size: .76rem; font-weight: 600; }
.plan-chips span.more { background: var(--navy); color: var(--lime); }
.verify-bar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; background: #eef6ff; border: 1px solid #c9ddf3; color: #123; border-radius: 14px; padding: .55rem .9rem; margin-bottom: 1rem; font-size: .92rem; }
.verify-bar span { flex: 1; }

/* ---------- Prospecting ---------- */
.grid.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.g5, .grid.g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid.g5, .grid.g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-stats a.card { text-decoration: none !important; }
.pr-stats .value small { font-size: .9rem; }
.crawl-box { margin-top: .7rem; display: grid; gap: .35rem; }
.crawl-box .bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.crawl-box .bar i { display: block; height: 100%; background: var(--lime-600); }
.crawl-log { background: #fff4f4; color: var(--err); border-radius: 10px; padding: .5rem .7rem; font-size: .8rem; white-space: pre-wrap; margin: .4rem 0; }
.area-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .25rem .8rem; margin-top: .5rem; font-weight: 500; font-size: .9rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filters input[name=q] { flex: 1; min-width: 180px; }
.filters select { width: auto; }
.timeline { display: flex; flex-direction: column; gap: .2rem; max-height: 560px; overflow-y: auto; }
.tl-row { display: flex; gap: .7rem; padding: .45rem 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.tl-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.tl-clicked .tl-ic, .tl-visited .tl-ic { background: #e6f0ff; }
.tl-signed_up .tl-ic, .tl-paid .tl-ic { background: var(--lime); }
.tl-unsubscribed .tl-ic { background: #ffe9e9; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.tpl-card { position: relative; display: flex; flex-direction: column; gap: .3rem; border: 2px solid var(--line); border-radius: 14px; padding: .9rem; cursor: pointer; background: #fff; }
.tpl-card input { position: absolute; opacity: 0; }
.tpl-card:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(183, 232, 74, .45); }
.tpl-card small { line-height: 1.5; }
.tpl-preview { font-size: .82rem; margin-top: auto; }
.aud-count { background: var(--navy); color: #fff; border-radius: 12px; padding: .7rem 1rem; }
.aud-count strong { color: var(--lime); font: 800 1.3rem var(--font-num); }
.wa-item { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.wa-text { white-space: pre-line; font-size: .84rem; color: var(--muted); margin-top: .25rem; max-height: 4.6em; overflow: hidden; }
.wa-bubble { white-space: pre-line; background: #dcf8c6; border-radius: 14px 14px 4px 14px; padding: .8rem 1rem; font-size: .92rem; max-width: 420px; }
.mail-preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #f7f5ef; }
.push-ask { position: fixed; inset-block-end: 5.2rem; inset-inline-end: 1.2rem; z-index: 40; display: flex; gap: .8rem; align-items: center; max-width: 440px; background: var(--navy); color: #fff; border-radius: 16px; padding: .9rem 1rem; box-shadow: var(--shadow-lg); }
.push-ask small { color: #c5cddb; }
.push-ask .btn-ghost { color: #fff; }
@media (max-width: 600px) { .push-ask { inset-inline: .8rem; flex-wrap: wrap; } }

/* ---------- Platform settings ---------- */
.ps-status { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.2rem; }
.ps-pill { display: flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .85rem; font-family: var(--font); }
.ps-pill strong { display: block; font-size: .86rem; line-height: 1.3; }
.ps-pill small { color: var(--muted); font-size: .8rem; }
.ps-pill .ps-dot { width: 9px; height: 9px; border-radius: 50%; background: #d9534f; flex-shrink: 0; box-shadow: 0 0 0 3px #fde3e3; }
.ps-pill.ok .ps-dot { background: #4caf27; box-shadow: 0 0 0 3px #e2f4d6; }
.ps-tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.ps-tabs a { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem; color: var(--muted); font-weight: 600; text-decoration: none !important; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ps-tabs a:hover { color: var(--ink); }
.ps-tabs a[aria-selected=true] { color: var(--ink); border-bottom-color: var(--lime-600); }
.ps-warn { width: 7px; height: 7px; border-radius: 50%; background: #e0a100; }
.ps-panel[hidden] { display: none !important; }
.ps-panel { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.ps-panel aside h2 { font-size: 1.2rem; margin: .2rem 0 .5rem; }
.ps-panel aside p { color: var(--muted); margin: 0 0 .8rem; line-height: 1.8; }
.ps-panel aside ol { margin: 0; padding-inline-start: 1.1rem; color: var(--ink); font-size: .9rem; line-height: 1.8; display: grid; gap: .35rem; }
.ps-note { background: var(--lime-50); border-radius: 10px; padding: .6rem .8rem; font-size: .86rem; color: #3f5a12 !important; margin-top: .9rem !important; }
.ps-form { padding: 1.4rem 1.5rem; }
.ps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }
.ps-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.ps-field.ps-wide { grid-column: 1 / -1; }
.ps-label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ps-label label { font-weight: 700; font-size: .92rem; }
.ps-saved { display: inline-flex; align-items: center; gap: .2rem; background: var(--lime-50); color: #3d7a18; border-radius: 99px; padding: .05rem .5rem; font-size: .72rem; font-weight: 700; }
.ps-hint { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.ps-reset { display: inline-flex; gap: .35rem; align-items: center; font-size: .78rem; font-weight: 500; color: var(--muted); }
.ps-sub { font-size: .95rem; margin: 1.5rem 0 .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line-2); }
.ps-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }
.ps-switch { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; cursor: pointer; }
.ps-switch input { position: absolute; opacity: 0; }
.ps-switch span { width: 40px; height: 22px; border-radius: 99px; background: #cfd5cc; position: relative; transition: background .15s; flex-shrink: 0; }
.ps-switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.ps-switch input:checked + span { background: var(--navy); }
.ps-switch input:checked + span::after { inset-inline-start: 21px; }
.ps-switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.ps-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.ps-rows > div > span:first-child { font-weight: 700; }
.ps-error { display: grid; gap: .2rem; padding: .55rem .7rem; background: #fff6f6; border-radius: 10px; margin-bottom: .45rem; }
.ps-error code { font-size: .78rem; white-space: pre-wrap; word-break: break-word; color: #8a1c1c; }
@media (max-width: 1000px) { .ps-panel { grid-template-columns: 1fr; } .ps-status { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ps-grid { grid-template-columns: 1fr; } }
.menu-pop { position: relative; }
.menu-pop > summary { list-style: none; }
.menu-pop > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; z-index: 30; inset-inline-end: 0; top: calc(100% + 6px); min-width: 260px; padding: .4rem; display: grid; gap: 2px; box-shadow: var(--shadow-lg); }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: start; padding: .55rem .7rem; border-radius: 9px; font: inherit; font-weight: 600; font-size: .9rem; background: none; border: 0; color: var(--ink); cursor: pointer; text-decoration: none !important; }
.menu-list a:hover, .menu-list button:hover { background: var(--line-2); }
.tpl-thumb { display: block; height: 220px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line-2); background: #f7f5ef; position: relative; pointer-events: none; }
.tpl-thumb iframe { width: 640px; height: 900px; border: 0; transform: scale(.36); transform-origin: top right; position: absolute; top: 0; right: 0; }
[dir=ltr] .tpl-thumb iframe { transform-origin: top left; left: 0; right: auto; }
.tpl-wa { display: block; white-space: pre-line; background: #dcf8c6; border-radius: 12px 12px 4px 12px; padding: .6rem .75rem; font-size: .8rem; line-height: 1.6; max-height: 220px; overflow: hidden; }
.tplg { display: grid; gap: 1.2rem; }
.tplg-item header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.tplg-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.tplg-tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--line-2); border-radius: 99px; padding: .1rem .6rem; margin-bottom: .5rem; }
.tplg-mail { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 12px; background: #f7f5ef; display: block; margin-bottom: .4rem; }
.tplg-phone { background: #ece5dd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23d6cfc4'/%3E%3C/svg%3E"); border-radius: 18px; padding: 1.2rem; min-height: 200px; }
.tplg-phone .wa-bubble { margin-inline-start: auto; }
@media (max-width: 900px) { .tplg-body { grid-template-columns: 1fr; } }

/* ---------- Earnings calculator ---------- */
.ec { container-type: inline-size; }
.ec-grid { display: grid; gap: 1.2rem; }
.ec-in { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.ec-field { display: grid; gap: .4rem; min-width: 0; }
.ec-field[hidden] { display: none; }
.ec-label { font-weight: 700; font-size: .86rem; }
.ec-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.ec-plan { position: relative; display: grid; gap: 0; padding: .45rem .55rem; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.ec-plan input { position: absolute; opacity: 0; pointer-events: none; }
.ec-plan:hover { border-color: #c9d1c6; }
.ec-plan:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.ec-plan:has(input:checked) .ec-plan-price, .ec-plan:has(input:checked) .ec-plan-price b { color: var(--lime); }
.ec-plan:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(183, 232, 74, .6); }
.ec-plan-name { font-weight: 800; font-size: .88rem; }
.ec-plan-price { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-plan-price b { font: 800 .85rem var(--font-num); color: var(--ink); }
.ec-steppers { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ec-steppers:has([data-users-field][hidden]) { grid-template-columns: 1fr; }
.ec-stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; overflow: hidden; }
.ec-stepper:focus-within { border-color: var(--navy); }
.ec-stepper button { height: 42px; border: 0; background: var(--line-2); color: var(--navy); font: 700 1.2rem var(--font-num); cursor: pointer; touch-action: manipulation; }
.ec-stepper button:hover { background: var(--lime); }
.ec .ec-stepper input { border: 0; min-height: 42px; padding: 0 .2rem; text-align: center; font: 800 1.15rem var(--font-num); box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.ec-stepper input::-webkit-inner-spin-button, .ec-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ec-range { --fill: 33%; direction: ltr; width: 100%; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.ec-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--navy) var(--fill), var(--line-2) var(--fill)); }
.ec-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--lime); border: 3px solid var(--navy); }
.ec-range::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line-2); }
.ec-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--navy); }
.ec-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--lime); border: 3px solid var(--navy); }
.ec-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; margin-top: -.3rem; }
.ec-chips button { min-width: 0; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: 700 .82rem var(--font-num); color: var(--ink); cursor: pointer; }
.ec-chips button:hover { border-color: var(--navy); }
.ec-chips button.on { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.ec-out { display: grid; gap: .7rem; align-content: start; padding: 1rem; border-radius: 16px; background: var(--navy); color: #fff; min-width: 0; }
.ec-tiles { display: grid; grid-template-columns: 1.35fr 1fr; gap: .6rem; }
.ec-tile { display: flex; flex-wrap: wrap; align-items: baseline; align-content: center; gap: .1rem .35rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(255, 255, 255, .07); min-width: 0; }
.ec-tile span { flex-basis: 100%; font-size: .84rem; font-weight: 600; color: #c8cfdb; }
.ec-tile b { font: 800 clamp(1.5rem, 4.2vw, 2rem)/1.15 var(--font-num); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ec-tile small { font-size: .85rem; font-weight: 700; }
.ec-tile-year { background: var(--lime); color: var(--navy); }
.ec-tile-year span { color: var(--navy); }
.ec-tile-year b { font-size: clamp(1.9rem, 5.5vw, 2.6rem); }
.ec-long .ec-tile-year b { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
.ec-math { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.ec-math > div { display: grid; gap: .05rem; padding: .45rem .55rem; border-radius: 10px; background: rgba(255, 255, 255, .05); min-width: 0; }
.ec-math span { font-size: .72rem; color: #aab3c2; }
.ec-math b { font: 800 .92rem var(--font-num); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-math b span { font: inherit; color: inherit; }
@container (min-width: 760px) {
  .ec-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.4rem; align-items: stretch; }
  .ec-out { align-content: center; padding: 1.2rem; }
}
@container (max-width: 459px) {
  .ec-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-tiles { grid-template-columns: 1fr; }
  .ec-math { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 300px) { .ec-steppers { grid-template-columns: 1fr; } }
.mk-calc-section { padding: 0 0 3rem; }
.mk-calc-section .mk-calc { padding: 1.4rem; }
.mk-calc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; margin-bottom: 1rem; }
.mk-calc-head h2 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); }
@media (max-width: 480px) { .mk-calc-section .mk-calc { padding: 1rem; } }
.g-meter { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.g-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime-600), #e0a100); }

/* ---------- Zoho import ---------- */
.zh-ok { display: flex; align-items: center; gap: .4rem; background: var(--lime-50); color: #3d7a18; font-weight: 700; border-radius: 12px; padding: .6rem .8rem; }
.zh-pick { display: grid; gap: .4rem; }
.zh-pick label { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.zh-pick label span { display: flex; flex-direction: column; }
.zh-pick small { color: var(--muted); font-size: .8rem; }
.zh-steps { margin: 0; padding-inline-start: 1.1rem; line-height: 1.9; font-size: .92rem; }
.zh-progress { border-color: #c9ddf3; background: #f4f9ff; display: grid; gap: .6rem; }
.zh-mods { display: flex; flex-wrap: wrap; gap: .4rem; }
.zh-mod { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .7rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .86rem; }
.zh-mod small { font-family: var(--font-num); color: var(--muted); }
.zh-mod.now { border-color: var(--navy); }
.zh-mod.done { background: var(--lime-50); border-color: #bfe39a; }
.zh-why-item { display: flex; gap: .7rem; align-items: flex-start; }
.zh-why-item p { margin: .2rem 0 0; font-size: .88rem; }
.zh-banner { display: flex; align-items: center; gap: 1rem; text-decoration: none !important; background: linear-gradient(135deg, var(--lime-50), #fff); }
.zh-banner > span:nth-child(2) { flex: 1; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; }
.legal p, .legal li { line-height: 1.95; color: #2b3340; }
.legal ul { padding-inline-start: 1.2rem; }
