/* ===== Top navigation ===== */
.topnav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: var(--surface); border-bottom: 1px solid var(--border); }
.topnav-inner { max-width: var(--shell-max); height: 100%; margin: 0 auto; padding: 0 var(--s-4); display: flex; align-items: center; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--brand); text-decoration: none !important; flex: none; direction: ltr; unicode-bidi: isolate; } /* the logo never mirrors in Arabic */
.brand-mark { flex: none; display: block; }
.brand-word { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; direction: ltr; unicode-bidi: isolate; }
.brand-word b { font-weight: 800; color: #0C968F; background: linear-gradient(120deg, #0A1A33, #0C968F); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-search { flex: 0 1 300px; }
.nav-search .input { height: 38px; min-height: 38px; background: var(--surface-2); border-color: transparent; border-radius: var(--r-pill); }
.nav-search .input:focus { background: var(--surface); border-color: var(--primary); }
.nav-links { display: flex; align-items: stretch; height: 100%; margin-inline-start: auto; }
.nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 76px; padding: 0 10px; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 500; border: 0; background: none; border-bottom: 2px solid transparent; text-decoration: none !important; position: relative; }
.nav-link:hover { color: var(--text); }
.nav-link .icon { color: #0C968F; }
/* Notification bell in the top bar — phones only (desktop has it in the nav links) */
.nav-bell { display: none; position: relative; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); color: #0C968F; text-decoration: none !important; }
.nav-bell[aria-current="page"] { background: linear-gradient(120deg, #0A1A33, #0C968F); color: #fff; }
.nav-bell .dot { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--cx-danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.nav-bell .dot.hidden { display: none; }
.nav-link[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }
.nav-link .dot { position: absolute; top: 10px; inset-inline-end: 22px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--cx-danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.nav-actions { display: flex; align-items: center; gap: var(--s-2); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); }
.lang-switch:hover { background: var(--surface-2); }
.me-btn { display: flex; flex-direction: row; align-items: center; gap: 8px; height: 40px; border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; padding-block: 0; padding-inline: 4px 10px; }
.me-btn:hover, .me-btn[aria-expanded="true"] { background: var(--surface-hover); }

/* ===== Mobile bottom tabs ===== */
.bottomnav { display: none; }

/* ===== App shell ===== */
.shell { max-width: var(--shell-max); margin: 0 auto; padding: var(--s-6) var(--s-4) var(--s-14); }
.shell-3 { display: grid; grid-template-columns: var(--col-left) minmax(0, 1fr) var(--col-right); gap: var(--s-6); align-items: start; }
.shell-2 { display: grid; grid-template-columns: minmax(0, 1fr) var(--col-right); gap: var(--s-6); align-items: start; }
.shell-1 { max-width: 100%; margin: 0 auto; }
.shell-wide { max-width: var(--shell-max); }
.sticky-col { position: sticky; top: calc(var(--nav-h) + var(--s-6)); display: flex; flex-direction: column; gap: var(--s-4); }
.main-col { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }

/* Profile summary card in the left rail */
.mini-profile { overflow: hidden; text-align: center; }
.mini-profile .cover { height: 64px; background: linear-gradient(120deg, #0A1A33, #0C968F); background-size: cover; background-position: center; }
.mini-profile .avatar { margin: -36px auto 0; border: 3px solid var(--surface); }
.mini-profile .name { margin-top: var(--s-2); font-weight: 700; font-size: var(--fs-md); color: var(--text); }
.mini-profile .stat { display: flex; justify-content: space-between; padding: 8px var(--s-4); font-size: var(--fs-sm); color: var(--text-muted); }
.mini-profile .stat b { color: var(--primary); }
.side-nav a { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-4); color: var(--text-2); font-weight: 500; text-decoration: none !important; }
.side-nav a:hover { background: var(--surface-2); }
.side-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }

/* ===== Auth / marketing layout ===== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; overflow: hidden; background: var(--cx-navy-800); color: #fff; padding: var(--s-14); display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside::after { content: ''; position: absolute; inset-inline-end: -180px; inset-block-end: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(31,91,255,.55), rgba(31,91,255,0) 70%); pointer-events: none; }
.auth-aside .brand { color: #fff; }
.auth-aside .brand-word b { background-image: linear-gradient(120deg, #5EEAD4, #0C968F); }
.auth-aside h2 { color: #fff; font-size: 34px; line-height: 1.2; max-width: 440px; }
.auth-aside p { color: #B9C4D8; max-width: 420px; margin-top: var(--s-4); font-size: var(--fs-md); }
.auth-aside .places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-6); position: relative; z-index: 1; }
.auth-aside .places span { padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: var(--fs-sm); color: #DCE3F0; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--s-10) var(--s-6); background: var(--surface); }
.auth-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: var(--s-5); }
.auth-card h1 { font-size: 28px; }
.auth-top { position: absolute; top: var(--s-5); inset-inline-end: var(--s-6); }

/* ===== Landing ===== */
.landing-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(10,26,51,.02), 0 8px 24px rgba(10,26,51,.04); }
.hero { max-width: var(--shell-max); margin: 0 auto; padding: 72px var(--s-4) 56px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: var(--fs-4xl); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; color: var(--brand); }
:root[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero h1 em { font-style: normal; color: #0C968F; background: linear-gradient(120deg, #0B4F63, #0C968F 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { font-size: 18px; color: var(--text-muted); margin-top: var(--s-5); max-width: 520px; }
.hero .cta { display: flex; gap: var(--s-3); margin-top: var(--s-8); flex-wrap: wrap; }
.hero-visual { position: relative; display: grid; gap: var(--s-3); }
.hero-card { padding: var(--s-4); display: flex; gap: var(--s-3); align-items: center; }
.hero-card:nth-child(2) { margin-inline-start: 48px; }
.hero-card:nth-child(3) { margin-inline-start: 18px; }
.section { max-width: var(--shell-max); margin: 0 auto; padding: 56px var(--s-4); }
.section h2 { font-size: 28px; color: var(--brand); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
.feature { padding: var(--s-6); }
.feature .icon-box { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: var(--s-4); }
.feature p { color: var(--text-muted); margin-top: var(--s-2); }
.band { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 15%, rgba(94,234,212,.18), transparent 45%), linear-gradient(120deg, #0A1A33, #0C968F); color: #fff; }
.band h2 { color: #fff; }
.place-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
.place { padding: var(--s-4); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-md); background: rgba(255,255,255,.07); backdrop-filter: blur(4px); transition: background-color .15s, border-color .15s; }
.place:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); }
.place b { display: block; font-size: var(--fs-md); }
.place span { color: rgba(255,255,255,.72); font-size: var(--fs-sm); }
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { max-width: var(--shell-max); margin: 0 auto; padding: var(--s-6) var(--s-4); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); color: var(--text-muted); font-size: var(--fs-sm); flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .shell-3 { grid-template-columns: var(--col-left) minmax(0, 1fr); }
  .shell-3 > .right-col { display: none; }
  .nav-link { min-width: 64px; }
}
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .place-grid { grid-template-columns: repeat(4, 1fr); }
  .shell-2 { grid-template-columns: minmax(0, 1fr); }
  .shell-2 > .right-col { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .shell { padding: var(--s-4) var(--s-4) 88px; }
  .shell-3 { grid-template-columns: minmax(0, 1fr); }
  .shell-3 > .left-col { display: none; }
  .nav-links { display: none; }
  .topnav-inner { gap: var(--s-2); }
  .brand-word { font-size: 22px; }
  .nav-bell { display: inline-grid; }
  /* Search is a round icon button; tapping it opens the box over the brand word, bell and language button.
     Leaving the box (after searching or tapping elsewhere) shrinks it back to the icon. */
  .nav-search { flex: 0 0 38px; margin-inline-start: auto; transition: flex-basis .18s ease-out; }
  .nav-search .input { height: 38px; min-height: 38px; padding: 0; padding-inline-start: 36px; border-radius: 50%; cursor: pointer; color: transparent; }
  .nav-search .input::placeholder { color: transparent; }
  .nav-search .input::-webkit-search-cancel-button { display: none; }
  .nav-search .input-group .icon { inset-inline-start: 11px; color: #0C968F; }
  .nav-search:focus-within { flex: 1 1 auto; margin-inline-start: 0; }
  .nav-search:focus-within .input { padding-inline-end: 12px; border-radius: var(--r-pill); cursor: text; color: var(--text); }
  .nav-search:focus-within .input::placeholder { color: var(--text-faint); }
  .nav-search:focus-within .input::-webkit-search-cancel-button { display: revert; }
  .topnav-inner:has(.nav-search:focus-within) .brand-word,
  .topnav-inner:has(.nav-search:focus-within) .nav-bell,
  .topnav-inner:has(.nav-search:focus-within) .lang-menu,
  .topnav-inner:has(.nav-search:focus-within) .acting-chip { display: none; }
  .bottomnav { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 50; height: 62px; background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav .nav-link { flex: 1; min-width: 0; border-bottom: 0; border-top: 2px solid transparent; }
  .bottomnav .nav-link[aria-current="page"] { border-top-color: var(--primary); color: var(--primary); }
  .bottomnav .nav-link .dot { inset-inline-end: calc(50% - 20px); top: 6px; }
  .bottomnav .nav-more { flex: 1; min-width: 0; position: relative; display: flex; }
  .bottomnav .nav-more > .nav-link { flex: 1; width: 100%; height: 100%; min-width: 0; padding: 0 4px; }
  /* "More" opens a sheet that grows out of the bottom bar: one surface, links 3 per row */
  .bottomnav:has(.nav-more-menu:not(.hidden)) { border-top-color: transparent; }
  .bottomnav .nav-more:has(.nav-more-menu:not(.hidden))::before { content: ""; position: fixed; inset: 0; bottom: calc(62px + env(safe-area-inset-bottom)); background: rgba(10,26,51,.35); z-index: -1; }
  .bottomnav .nav-more-menu { position: fixed; top: auto; inset-inline: 0; bottom: calc(62px + env(safe-area-inset-bottom)); min-width: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 22px 16px 14px;
    border: 0; border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: 0 -14px 30px rgba(10,26,51,.14); animation: sheet-up .18s ease-out; }
  .bottomnav .nav-more-menu::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 99px; background: var(--cx-gray-200); }
  .bottomnav .nav-more-menu a { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 6px; border-radius: 14px; background: var(--surface-2);
    color: var(--text); font-size: var(--fs-xs); font-weight: 600; text-align: center; }
  .bottomnav .nav-more-menu a .icon { width: 24px; height: 24px; color: #0C968F; }
  .bottomnav .nav-more-menu a[aria-current="page"] { background: linear-gradient(120deg, #0A1A33, #0C968F); color: #fff; }
  .bottomnav .nav-more-menu a[aria-current="page"] .icon { color: #fff; }
  .bottomnav .nav-more > .nav-link[aria-expanded="true"] { color: #0C968F; border-top-color: #0C968F; }
  @keyframes sheet-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
  .form-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .place-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .lang-switch .label-long { display: none; }
  /* Room for the brand word on small screens: language = globe only, Me = photo only */
  .topnav .lang-switch { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; color: #0C968F; }
  .topnav .lang-switch > span, .topnav .lang-caret { display: none; }
  .topnav .me-btn { padding-inline: 2px; }
  .topnav .me-btn > .row { display: none; }
}

/* "Acting as" switch (Me menu) and badge (top bar) */
.menu-label { padding: 4px 10px 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.menu .act-option { gap: 10px; }
.menu .act-option.is-on { color: var(--primary); background: var(--primary-soft); }
.acting-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; height: 34px; padding-inline: 4px 10px; border: 1px solid var(--primary); border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.acting-chip:hover { background: var(--primary-soft-2); }
@media (max-width: 760px) { .acting-chip > span { display: none; } }

/* Desktop: the top bar stays put and only the page body (#view) scrolls — the scrollbar starts under the bar.
   In Arabic #view is right-to-left, so its scrollbar sits on the left. Phones keep normal page scrolling. */
@media (hover: hover) and (pointer: fine) {
  html:has(#app > .topnav), html:has(#app > .topnav) body { height: 100%; overflow: hidden; }
  html:has(#app > .topnav) #app { height: 100%; display: flex; flex-direction: column; }
  html:has(#app > .topnav) #app > .topnav { flex: none; }
  html:has(#app > .topnav) #view { flex: 1 1 auto; min-height: 0; width: 100%; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; }
  html:has(#app > .topnav) .sticky-col, html:has(#app > .topnav) .settings-nav, html:has(#app > .topnav) .intern-side { top: var(--s-5); }
}

/* Top-bar language menu (globe → list of languages, like the Me menu) */
.lang-menu .lang-switch .icon:first-child { color: #0C968F; }
.lang-menu .lang-caret { opacity: .6; }
.lang-menu-list { min-width: 200px; }
.menu .lang-option { gap: 10px; }
.menu .lang-option.is-on { color: var(--text); font-weight: 600; cursor: default; background: rgba(12,150,143,.08); }
.lang-option.is-on .icon { color: #0C968F; }

/* "Install Careery X" (PWA) — top bar pill on desktop, a tile in the phone "More" sheet. Shown only when installing is possible. */
.nav-install { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border: 0; border-radius: var(--r-pill);
  background: linear-gradient(120deg, #0A1A33, #0C968F); color: #fff; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; cursor: pointer; }
.nav-install:hover { background: linear-gradient(120deg, #0D2242, #0FA89F); box-shadow: 0 4px 14px rgba(12,150,143,.28); }
.nav-install .brand-mark { color: #fff; }
.nav-install.hidden { display: none; }
@media (max-width: 1180px) { .nav-install > span { display: none; } .nav-install { width: 34px; padding: 0; justify-content: center; } }
@media (max-width: 760px) { .topnav .nav-install { display: none; } }
.bottomnav .nav-more-menu .nav-more-install { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 6px; border-radius: 14px; background: var(--surface-2); color: var(--text); font-size: var(--fs-xs); font-weight: 600; text-align: center; }
.bottomnav .nav-more-menu .nav-more-install.hidden { display: none; }
.install-tile-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(120deg, #0A1A33, #0C968F); color: #fff; }
.install-tile-mark .brand-mark { color: #fff; }
.install-ios { align-items: center; text-align: start; }
.install-ios-icon img { display: block; border-radius: 16px; box-shadow: 0 6px 18px rgba(10,26,51,.18); }
.install-steps { align-self: stretch; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.install-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: var(--fs-sm); }
.install-steps li .icon { flex: none; color: #0C968F; }


.install-why { display: flex; align-items: flex-start; gap: 8px; align-self: stretch; margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(12,150,143,.08); color: var(--text); font-size: var(--fs-sm); }
.install-why .icon { flex: none; margin-top: 2px; color: #0C968F; }
.install-why.is-warn { background: rgba(217,119,6,.1); color: #92400E; }
.install-why.is-warn .icon { color: #B45309; }

/* Landing header (signed-out home page) */
.landing-nav-inner { height: 68px; }
.landing-nav .brand-word { font-size: 21px; }
.landing-actions { margin-inline-start: auto; gap: 10px; }
.landing-install { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 11px; border: 1px solid rgba(12,150,143,.25); border-radius: var(--r-pill);
  background: rgba(12,150,143,.08); color: #0A6E69; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: background-color .15s, border-color .15s; }
.landing-install:hover { background: rgba(12,150,143,.14); border-color: rgba(12,150,143,.45); }
.landing-install .icon { color: #0C968F; }
.landing-install.hidden { display: none; }
.landing-nav .lang-switch { height: 36px; }
.landing-divider { width: 1px; height: 24px; background: var(--border); margin-inline: 2px; }
.landing-signin { border-color: var(--border); color: var(--text); background: var(--surface); }
.landing-signin:hover { border-color: #0C968F; color: #0A6E69; background: rgba(12,150,143,.06); }
.landing-actions .btn { height: 38px; padding-inline: 18px; }
@media (max-width: 760px) {
  .landing-nav-inner { height: 60px; }
  .landing-actions { gap: 6px; }
  .landing-install { width: 36px; padding: 0; justify-content: center; }
  .landing-install > span:last-child, .landing-nav .lang-switch > span, .landing-nav .lang-caret, .landing-divider { display: none; }
  .landing-nav .lang-switch { width: 36px; padding: 0; justify-content: center; border-radius: 50%; }
  .landing-actions .btn { height: 34px; padding-inline: 12px; font-size: var(--fs-sm); }
  .landing-nav .brand-word { font-size: 18px; }
}
@media (max-width: 400px) { .landing-signin { display: none; } }

/* Sign-in / register / password pages on phones: gradient band with the logo, the form on a sheet that overlaps it */
@media (max-width: 760px) {
  .auth-page { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; grid-template-columns: none; background: #0A1A33; }
  .auth-aside { display: flex; justify-content: flex-start; gap: 6px; padding: 18px 20px 52px; background: linear-gradient(120deg, #0A1A33, #0C968F); }
  .auth-aside::after { width: 240px; height: 240px; inset-inline-end: -90px; inset-block-end: -120px; background: radial-gradient(circle, rgba(94,234,212,.35), rgba(94,234,212,0) 70%); }
  .auth-aside .brand-word { font-size: 22px; }
  .auth-aside h2 { font-size: 21px; line-height: 1.3; margin-top: 18px; max-width: 290px; }
  .auth-aside p, .auth-aside .places { display: none; }
  .auth-main { position: static !important; flex: 1; justify-content: flex-start; margin-top: -28px; padding: 26px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 30px rgba(10,26,51,.18); z-index: 1; }
  .auth-top { top: 16px; inset-inline-end: 16px; z-index: 2; }
  .auth-top .lang-switch { height: 34px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
  .auth-top .lang-switch:hover { background: rgba(255,255,255,.2); }
  .auth-card { gap: var(--s-4); }
  .auth-card h1 { font-size: 24px; }
  .auth-card .choice-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .auth-card .choice { padding: 12px 8px !important; align-items: center; text-align: center; border-radius: 14px; }
  .auth-card .choice .row { flex-direction: column; gap: 6px; font-size: var(--fs-sm); }
  .auth-card .choice .icon { margin: 0; color: #0C968F; }
  .auth-card .choice[aria-pressed="true"] { border-color: #0C968F; background: rgba(12,150,143,.08); }
  .auth-card .form-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .auth-card .input { height: 46px; border-radius: 12px; }
  .auth-card .btn-lg, .auth-card button[type="submit"] { height: 48px; }
}

/* Landing: "Get the Careery X app" figure — a phone home screen with the app, chips around it, caption + install button */
.hero-install { margin: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 50px rgba(10,26,51,.10); }
.hi-stage { position: relative; display: grid; place-items: center; padding: 28px 0; min-height: 380px;
  background: radial-gradient(circle at 30% 20%, rgba(94,234,212,.28), transparent 50%), linear-gradient(150deg, #0A1A33, #0C968F); }
.hi-phone { position: relative; width: 168px; height: 330px; padding: 8px; border-radius: 30px; background: #0B1220; box-shadow: 0 20px 40px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.08); }
.hi-notch { position: absolute; top: 12px; left: 50%; width: 56px; height: 14px; margin-left: -28px; border-radius: 99px; background: #0B1220; z-index: 2; }
.hi-screen { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 23px; overflow: hidden; padding: 10px 12px 10px;
  background: linear-gradient(170deg, #DDF5F1 0%, #EAF0FF 55%, #F6F8FC 100%); direction: ltr; }
.hi-status { display: flex; justify-content: space-between; align-items: center; height: 16px; padding: 0 4px; font-size: 9px; font-weight: 700; color: #0A1A33; }
.hi-status-icons { display: flex; gap: 3px; }
.hi-status-icons i { width: 9px; height: 6px; border-radius: 2px; background: #0A1A33; opacity: .75; }
.hi-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; margin-top: 22px; }
.hi-apps > span, .hi-dock > span { aspect-ratio: 1; border-radius: 10px; background: rgba(10,26,51,.08); }
.hi-apps > .hi-app { position: relative; background: none; aspect-ratio: 1; min-width: 0; }
.hi-app img { display: block; width: 100%; height: 100%; border-radius: 10px; background: #fff; box-shadow: 0 6px 14px rgba(10,26,51,.25); animation: hi-pop 2.8s ease-in-out infinite; }
.hi-app em { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-style: normal; white-space: nowrap; line-height: 1; }
.hi-app .brand { gap: 0; }
.hi-app .brand-word { font-size: 7.5px; letter-spacing: 0; font-weight: 700; }
.hi-app::after { content: ""; position: absolute; inset: -5px; border-radius: 14px; border: 2px solid rgba(12,150,143,.55); animation: hi-ring 2.8s ease-out infinite; }
.hi-dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.55); }
.hi-chip { position: absolute; display: inline-flex; align-items: center; gap: 5px; max-width: 170px; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.95);
  color: #0A1A33; font-size: 10.5px; font-weight: 600; line-height: 1.25; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.hi-chip .icon { flex: none; color: #0C968F; }
.hi-chip-1 { top: 64px; inset-inline-start: 10px; }
.hi-chip-2 { top: 46%; inset-inline-end: 8px; }
.hi-chip-3 { bottom: 30px; inset-inline-start: 14px; }
.hi-caption { display: flex; flex-direction: column; justify-content: center; gap: var(--s-3); padding: var(--s-6); }
.hi-caption h2 { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; color: var(--brand); }
.hi-caption p { margin: 0; }
.hero-install-btn { margin-top: var(--s-2); }
.hero-install-btn .brand-mark { color: #fff; }
@keyframes hi-pop { 0%, 70%, 100% { transform: none; } 80% { transform: scale(.9); } 90% { transform: scale(1.04); } }
@keyframes hi-ring { 0%, 70% { opacity: 0; transform: scale(.85); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .hi-app img, .hi-app::after { animation: none; } }
@media (max-width: 1100px) { .hero-install { grid-template-columns: minmax(0, 1fr); } .hi-stage { min-height: 360px; } }

/* Sign-in / register / password pages on laptops & desktops: same look as on phones —
   gradient band (logo, language, title) with the form on a centred card that overlaps it */
@media (min-width: 761px) {
  .auth-page { position: relative; display: flex; flex-direction: column; min-height: 100vh; grid-template-columns: none; background: var(--bg); }
  .auth-aside { display: flex; justify-content: flex-start; align-items: center; gap: 6px; padding: 26px 40px 130px; text-align: center;
    background: radial-gradient(circle at 80% 10%, rgba(94,234,212,.25), transparent 45%), linear-gradient(120deg, #0A1A33, #0C968F); }
  .auth-aside::after { width: 420px; height: 420px; inset-inline-end: -140px; inset-block-end: -220px; background: radial-gradient(circle, rgba(94,234,212,.3), rgba(94,234,212,0) 70%); }
  .auth-aside > .brand { align-self: flex-start; }
  .auth-aside .brand-word { font-size: 22px; }
  .auth-aside h2 { font-size: 30px; line-height: 1.25; margin-top: 28px; max-width: 760px; text-wrap: balance; }
  .auth-aside p { margin-inline: auto; }
  .auth-aside .places, .auth-aside > p.small { display: none; }
  .auth-main { position: static !important; flex: none; width: min(480px, calc(100% - 32px)); margin: -96px auto 48px; padding: 36px 40px;
    border-radius: 26px; background: var(--surface); box-shadow: 0 24px 60px rgba(10,26,51,.16); z-index: 1; }
  .auth-top { top: 24px; inset-inline-end: 40px; z-index: 2; }
  .auth-top .lang-switch { height: 36px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
  .auth-top .lang-switch:hover { background: rgba(255,255,255,.2); }
  .auth-card { width: 100%; gap: var(--s-4); }
  .auth-card .choice .icon { color: #0C968F; }
  .auth-card .choice[aria-pressed="true"] { border-color: #0C968F; background: rgba(12,150,143,.08); }
  .auth-card .input { height: 46px; border-radius: 12px; }
  .auth-card button[type="submit"] { height: 48px; }
}

/* Register on laptops & desktops: a wider card with two columns, so the whole form fits on screen */
@media (min-width: 900px) {
  .auth-main:has(.choice-grid) { width: min(760px, calc(100% - 48px)); padding: 32px 40px; }
  .auth-card:has(.choice-grid) > [data-slot="form-view"] > form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; }
  .auth-card:has(.choice-grid) > [data-slot="form-view"] > form > *,
  .auth-card:has(.choice-grid) > [data-slot="form-view"] > form > .reg-fields > * { grid-column: 1 / -1; }
  .auth-card:has(.choice-grid) > [data-slot="form-view"] > form > .reg-fields > [data-field="email"],
  .auth-card:has(.choice-grid) > [data-slot="form-view"] > form > .reg-fields > [data-field="password"] { grid-column: auto; }
  .auth-card:has(.choice-grid) .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .auth-card:has(.choice-grid) .choice-grid { gap: 20px; }
}
/* Short laptop screens: a slimmer band so the form starts higher */
@media (min-width: 761px) and (max-height: 860px) {
  .auth-aside { padding-top: 20px; padding-bottom: 110px; }
  .auth-aside h2 { font-size: 26px; margin-top: 10px; }
  .auth-aside p { display: none; }
  .auth-main { margin-top: -84px; }
}

/* Signed-out home page on desktop: the header stays put and only the page body scrolls (scrollbar under the header; on the left in Arabic) */
@media (hover: hover) and (pointer: fine) {
  html:has(.landing-body), html:has(.landing-body) body { height: 100%; overflow: hidden; }
  html:has(.landing-body) #app, html:has(.landing-body) #view { height: 100%; }
  [data-show="landing"] { height: 100%; display: flex; flex-direction: column; }
  [data-show="landing"] > .landing-nav { flex: none; }
  .landing-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; }
}

/* Register: the inputs' wrapper (shown once Member or Hotel / Company is picked) doesn't add a box of its own,
   so the inputs keep the form's spacing and desktop two-column grid */
.reg-fields { display: contents; }
/* Register: the two account-type cards (Member · Hotel / Company) — large, icon above the label */
.auth-card .choice.reg-type { padding: 28px 16px !important; min-height: 132px; align-items: center; justify-content: center; text-align: center; border-radius: 16px; }
.auth-card .choice.reg-type .row { flex-direction: column; gap: 10px; font-size: 18px; }
.auth-card .choice.reg-type .icon { width: 40px; height: 40px; margin: 0; }
@media (max-width: 760px) {
  .auth-card .choice.reg-type { padding: 22px 10px !important; min-height: 112px; }
  .auth-card .choice.reg-type .row { font-size: 16px; }
  .auth-card .choice.reg-type .icon { width: 34px; height: 34px; }
}
@media (min-width: 900px) { .auth-card .choice.reg-type { min-height: 150px; } }
/* Register: Back (to the two cards) above the "New Member" / "New Hotel / Company" title */
.auth-card .reg-back { margin-inline-start: -10px; margin-bottom: 6px; }
