/* Client hub. Same visual language as the landing-page client platform (client-platform/app.css): white frame, tab column on the RIGHT,
   one strong colour panel, white rounded cards. --sky and --main are replaced by the client's brand colour from app.js. */
@font-face { font-family: "Noto Sans Hebrew"; font-weight: 400; font-display: swap; src: url("fonts/noto-sans-hebrew-400.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Hebrew"; font-weight: 700; font-display: swap; src: url("fonts/noto-sans-hebrew-700.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Hebrew"; font-weight: 800; font-display: swap; src: url("fonts/noto-sans-hebrew-800.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Hebrew"; font-weight: 900; font-display: swap; src: url("fonts/noto-sans-hebrew-900.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }

:root {
  --sky: #186cff; --main: #186cff;
  --frame: #ffffff; --panel: #f2f5fa; --card: #ffffff; --soft: #f6fbff;
  --ink: #171725; --mute: #5f6176; --title: #101828; --line: #e3e9f5;
  --ok: #0f7a41; --ok-bg: #e7f6ee; --bad: #b3261e; --bad-bg: #fdecea; --wa: #128c4b;
}
body.dark {
  --frame: #0b1020; --panel: #121a30; --card: #18223b; --soft: #121a30;
  --ink: #e8eefb; --mute: #a9b6d0; --title: #f2f5ff; --line: #2a3a5a;
  --ok: #58d08f; --ok-bg: #12301f; --bad: #ff8f86; --bad-bg: #3a1614;
}
* { box-sizing: border-box; }
html { background: var(--frame); }
body { margin: 0; min-height: 100vh; font-family: "Noto Sans Hebrew", sans-serif; font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--frame); -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, p, ul, ol, li) { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.n { font-family: "Poppins", sans-serif; font-weight: 700; }
:focus-visible { outline: 3px solid var(--main); outline-offset: 2px; }
[hidden] { display: none !important; }

.ic { display: inline-block; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic--list { --i: url(icons/ph-list-bold.svg); } .ic--home { --i: url(icons/hub-home.svg); } .ic--backup { --i: url(icons/hub-backup.svg); }
.ic--more { --i: url(icons/hub-more.svg); } .ic--msgs { --i: url(icons/hub-msgs.svg); } .ic--guide { --i: url(icons/hub-guide.svg); }
.ic--bell { --i: url(icons/hub-bell.svg); } .ic--copy { --i: url(icons/copy-round.svg); } .ic--wa { --i: url(icons/ph-whatsapp-logo-fill.svg); } .ic--check { --i: url(icons/hub-check.svg); }

/* gate: loading, or a link that is not valid */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 30% 40%, #d0eaff 0%, #e8f5ff 30%, #f0f9ff 60%, #fff 100%); }
.gate__card { width: min(100%, 560px); padding: 48px 28px; text-align: center; background: rgba(255, 255, 255, .9); border-radius: 28px; box-shadow: 0 10px 28px rgba(0, 60, 180, .11), 0 28px 64px rgba(0, 50, 160, .18); color: #171725; }
.gate__card h1 { font-size: clamp(22px, 5vw, 28px); font-weight: 900; line-height: 1.25; color: #0058d6; }
.gate__card p { margin-top: 12px; font-size: 18px; color: #33405a; }
.gate__card p:empty { display: none; }

/* shell */
.app { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; align-self: flex-start; height: 100vh; width: 248px; flex: none; background: var(--frame); padding: 36px 24px 24px; display: flex; flex-direction: column; z-index: 30; overflow-y: auto; }
.side__logo { width: 76px; height: 76px; object-fit: contain; border-radius: 16px; background: #fff; margin-bottom: 16px; }
.side__name { color: var(--title); padding-bottom: 22px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 19px; line-height: 1.3; margin-bottom: 22px; overflow-wrap: anywhere; }
.side__nav { display: flex; flex-direction: column; gap: 6px; }
.tab { display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-weight: 700; font-size: 16px; text-align: right; line-height: 1.25; }
.tab .ic { color: var(--main); width: 22px; height: 22px; }
.tab:hover { background: color-mix(in srgb, var(--sky) 7%, transparent); }
/* the active tab carries the same colour band as the greeting */
.tab[aria-current=page] { background: linear-gradient(120deg, var(--main) 0%, color-mix(in srgb, var(--main) 80%, #06143a) 100%); color: #fff; font-weight: 800; box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--main) 70%, #000); }
.tab[aria-current=page] .ic { color: #fff; }
.side__dark { margin-top: auto; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 10px; background: none; color: var(--mute); font-size: 15px; font-weight: 700; text-align: right; }
.side__dark:hover { background: color-mix(in srgb, var(--sky) 9%, transparent); }
body.dark .tab:not([aria-current=page]) .ic { color: #8fb4ff; }
/* the brand colour is an accent (the greeting band, the buttons, the numbers), never the whole screen: Liav found a full blue screen ugly (Session 156) */
.main { flex: 1 1 auto; min-width: 0; background: color-mix(in srgb, var(--sky) 6%, #f7f9fc); min-height: 100vh; padding: 28px clamp(16px, 3vw, 40px) 48px; border-inline-start: 1px solid var(--line); }
body.dark .main { background: var(--panel); }
.bar, .scrim { display: none; }
.view { width: min(100%, 1080px); margin-inline: auto; outline: none; }

.hero { position: relative; overflow: hidden; margin-bottom: 22px; padding: 30px 32px 32px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, var(--main) 0%, color-mix(in srgb, var(--main) 80%, #06143a) 100%); box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--main) 70%, #000); }
.hero::after { content: ""; position: absolute; inset-inline-end: -70px; top: -90px; width: 300px; height: 300px; border-radius: 50%; border: 44px solid rgba(255, 255, 255, .08); pointer-events: none; }
.hello { position: relative; font-weight: 900; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; color: #fff; }
.sub { position: relative; color: #fff; font-size: 18px; margin-top: 6px; max-width: 46ch; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > .wide { grid-column: 1 / -1; }
.card { background: var(--card); color: var(--ink); border-radius: 24px; padding: 26px 26px 28px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(6, 30, 90, .04), 0 14px 30px -22px rgba(6, 30, 90, .28); min-width: 0; }
.card h2 { font-size: 20px; font-weight: 800; color: var(--title); line-height: 1.3; margin-bottom: 10px; }
.card p { color: var(--ink); }
.small { font-size: 15px; color: var(--mute); }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 99px; font-weight: 800; font-size: 17px; background: var(--ok-bg); color: var(--ok); }
.pill::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #1faa5c; box-shadow: 0 0 0 4px rgba(31, 170, 92, .2); flex: none; }
.pill--bad::before { background: currentColor; box-shadow: none; }
.pill--wait::before { background: currentColor; box-shadow: none; }
.pill--bad { background: var(--bad-bg); color: var(--bad); }
.pill--wait { background: var(--soft); color: var(--mute); }

.card .big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; color: var(--main); }
body.dark .card .big { color: #fff; }
.big .n { font-size: clamp(46px, 7vw, 64px); line-height: 1; }
.big span { font-size: 22px; font-weight: 800; }

.what { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 20px; }
.what li { display: flex; gap: 10px; align-items: flex-start; }
.what .ic { margin-top: 4px; color: var(--ok); width: 18px; height: 18px; }

/* buttons speak the same language as the greeting band: the colour band with a soft coloured shadow; the second kind is a pale tint, never an outline */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 26px; border: 0; border-radius: 14px; background: linear-gradient(120deg, var(--main) 0%, color-mix(in srgb, var(--main) 80%, #06143a) 100%); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; text-align: center; line-height: 1.25; box-shadow: 0 12px 22px -14px color-mix(in srgb, var(--main) 75%, #000); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 26px -14px color-mix(in srgb, var(--main) 80%, #000); }
.btn:active { transform: none; }
.btn--wa { background: linear-gradient(120deg, #17a35a 0%, #0e7a41 100%); box-shadow: 0 12px 22px -14px #0b5c31; }
.btn--wa:hover { box-shadow: 0 16px 26px -14px #0b5c31; }
.btn--ghost { background: color-mix(in srgb, var(--main) 9%, #fff); color: var(--main); box-shadow: none; }
.btn--ghost:hover { background: color-mix(in srgb, var(--main) 15%, #fff); box-shadow: none; }
body.dark .btn--ghost { background: color-mix(in srgb, var(--main) 26%, var(--card)); color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btn .ic { order: 2; } /* text on the right, icon on the left */

.msg { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 12px 0 16px; white-space: pre-line; overflow-wrap: anywhere; }
.when { display: inline-block; font-size: 15px; font-weight: 700; color: var(--mute); margin-bottom: 2px; }

.flds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 4px 0 10px; }
.fld label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.fld input { width: 100%; height: 50px; padding: 0 16px; border: 1.5px solid color-mix(in srgb, var(--main) 28%, var(--line)); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 17px; text-align: right; }
.fld input[type=tel] { direction: ltr; text-align: right; }
.fld input::placeholder { color: var(--mute); opacity: 1; }
.fld input:focus { outline: none; border-color: var(--main); box-shadow: 0 0 0 4px color-mix(in srgb, var(--main) 16%, transparent); }
.fld-err { color: var(--bad); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.fld-err:empty { display: none; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.acts .btn { flex: 1 1 150px; padding-inline: 16px; }
.rem { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rem__l { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--mute); margin-inline-end: 4px; }
.rem__l .ic { color: var(--main); width: 20px; height: 20px; }
.chip { min-height: 40px; padding: 6px 14px; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--main) 9%, #fff); color: var(--main); font-weight: 700; font-size: 15px; transition: background-color .15s ease; }
.chip:hover { background: color-mix(in srgb, var(--main) 17%, #fff); }
body.dark .chip { background: color-mix(in srgb, var(--main) 26%, var(--card)); color: #fff; }
body.dark .rem__l .ic { color: #8fb4ff; }
.refer { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.refer div { flex: 1 1 280px; }

video { display: block; width: 100%; max-height: 70vh; border-radius: 16px; background: #000; margin-bottom: 8px; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); font-family: "Poppins", sans-serif; font-weight: 700; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--main); color: #fff; font-size: 15px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 0; }
summary { font-weight: 800; cursor: pointer; min-height: 28px; }
details p { margin-top: 8px; }

.toast { position: fixed; bottom: 24px; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: 90vw; background: #171725; color: #fff; padding: 14px 22px; border-radius: 12px; font-weight: 700; z-index: 90; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

@media (max-width: 900px) {
  .bar { display: flex; align-items: center; gap: 12px; position: sticky; top: 8px; z-index: 20; padding: 10px 14px; margin-bottom: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 18px -14px rgba(6, 30, 90, .4); }
  .bar__burger { width: 46px; height: 46px; flex: none; border: 0; border-radius: 10px; background: var(--panel); color: var(--main); display: grid; place-items: center; }
  body.dark .bar__burger { color: #fff; }
  .bar__title { font-weight: 800; font-size: 18px; color: var(--title); min-width: 0; overflow-wrap: anywhere; }
  .side { position: fixed; top: 0; bottom: 0; right: 0; height: 100%; width: min(84vw, 300px); transform: translateX(105%); transition: transform .25s ease; box-shadow: -20px 0 60px -20px rgba(6, 30, 90, .45); visibility: hidden; }
  body.menu .side { transform: none; visibility: visible; }
  body.menu .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(10, 20, 50, .45); }
  .main { padding: 12px 12px 40px; border: 0; }
  .hero { padding: 24px 20px 26px; border-radius: 20px; margin-bottom: 16px; }
}
@media (max-width: 700px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card { padding: 22px 18px 24px; border-radius: 20px; }
  .card .btn { width: 100%; }
  .flds { grid-template-columns: minmax(0, 1fr); }
  .acts .btn { flex: 1 1 100%; }
  .rem__l { flex: 1 1 100%; }
  .chip { min-height: 44px; flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .side, .btn { transition: none; } .btn:hover { transform: none; } }
