/* JOINKY web design layer. Component styles keep behaviour-specific rules;
   this sheet owns the shared visual system: tokens, typography, surfaces,
   controls, the public shell and the management shell. Selectors are scoped
   with `html` so they apply consistently over generated component styles. */

/* ---------- Tokens ---------- */
html:root {
  --jk-brand: #5B3FD0;
  --jk-brand-strong: #4A31B8;
  --jk-brand-soft: #EFEBFF;
  --jk-brand-tint: #F7F5FF;
  --jk-accent: #2D6CDF;
  --jk-on-brand: #FFFFFF;
  --jk-ink: #1C1740;
  --jk-on-surface: #1C1740;
  --jk-muted: #5E6378;
  --jk-subtle: #8A8FA3;
  --jk-surface: #FFFFFF;
  --jk-surface-soft: #F4F5FA;
  --jk-canvas: #F7F8FB;
  --jk-border: #E5E7EF;
  --jk-border-strong: #CDD1DE;
  --jk-status-success: #177245;
  --jk-status-warning: #9A5B00;
  --jk-status-error: #B3261E;
  --jk-shadow-xs: 0 1px 2px rgba(28, 23, 64, .05);
  --jk-shadow-sm: 0 1px 2px rgba(28, 23, 64, .04), 0 4px 16px rgba(28, 23, 64, .05);
  --jk-shadow-md: 0 2px 6px rgba(28, 23, 64, .05), 0 12px 32px rgba(28, 23, 64, .08);
  --jk-shadow-lg: 0 24px 64px rgba(28, 23, 64, .14);
  --jk-radius-xs: 8px;
  --jk-radius-sm: 10px;
  --jk-radius-md: 14px;
  --jk-radius-lg: 20px;
  --jk-header-height: 72px;
  --jk-rail-width: 248px;
  --jk-container: 1200px;
  --jk-gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-block: calc(var(--jk-header-height) + 16px); -webkit-text-size-adjust: 100%; }
html body { background: var(--jk-canvas); color: var(--jk-ink); font-size: 1rem; line-height: 1.6; }
/* The app's typefaces: Manrope for Latin text and IBM Plex Sans Arabic for
   Arabic, served locally from /fonts with their licenses. Controls inherit them
   explicitly because browsers otherwise use system UI fonts for form fields. */
html body, html [dir="ltr"], html [dir="ltr"] :is(button, input, select, textarea, optgroup) {
  font-family: 'Manrope', var(--jk-font-latin), 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html [dir="rtl"], html [dir="rtl"] :is(button, input, select, textarea, optgroup) {
  font-family: 'IBM Plex Sans Arabic', var(--jk-font-arabic), 'Manrope', Tahoma, sans-serif;
}
html .auth-google { font-family: 'Google Sans', Arial, sans-serif; }
img, video, svg { max-width: 100%; }
img, video { height: auto; }
button, input, textarea, select { max-width: 100%; font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, textarea, select { color: var(--jk-ink); accent-color: var(--jk-brand); }
input::placeholder, textarea::placeholder { color: var(--jk-subtle); opacity: 1; }
:where(h1, h2, h3, h4, p, a, label, button, li, dd, dt) { overflow-wrap: anywhere; }
:where(h1, h2, h3) { text-wrap: balance; color: var(--jk-ink); }
html :where(h1) { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
html :where(h2) { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
html :where(h3) { font-size: 1.0625rem; font-weight: 700; line-height: 1.45; }
html [dir="rtl"] :where(h1, h2, h3) { letter-spacing: 0; line-height: 1.5; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 3px solid var(--jk-brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--jk-brand-soft); color: var(--jk-ink); }
.jk-icon { width: 1.375rem; height: 1.375rem; flex: 0 0 auto; }
.jk-skip { position: fixed; inset-inline-start: 1rem; top: -12rem; z-index: 200; padding: .75rem 1rem; border-radius: var(--jk-radius-sm); background: var(--jk-surface); color: var(--jk-brand); font-weight: 700; box-shadow: var(--jk-shadow-md); }
.jk-skip:focus { top: .75rem; }

/* Brand lockup: the app's J mark beside the localized name in the app font. */
.jk-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--jk-ink); text-decoration: none; white-space: nowrap; }
.jk-lockup img { display: block; width: 36px; height: 36px; flex: 0 0 auto; }
.jk-lockup-name { font-size: 1.375rem; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.jk-lockup[dir="ltr"] .jk-lockup-name { font-family: 'Manrope', var(--jk-font-latin), sans-serif; }
.jk-lockup[dir="rtl"] .jk-lockup-name { font-family: 'IBM Plex Sans Arabic', var(--jk-font-arabic), sans-serif; font-weight: 700; letter-spacing: 0; font-size: 1.5rem; line-height: 1.1; padding-bottom: 2px; }
.jk-lockup-sm img { width: 30px; height: 30px; }
.jk-lockup-sm .jk-lockup-name { font-size: 1.125rem; }
.jk-lockup-sm[dir="rtl"] .jk-lockup-name { font-size: 1.25rem; }
.jk-lockup-lg img { width: 40px; height: 40px; }
.jk-lockup-lg .jk-lockup-name { font-size: 1.5rem; }
.jk-lockup-lg[dir="rtl"] .jk-lockup-name { font-size: 1.625rem; }
.public-brand, .auth-brand, html .jk-brand { text-decoration: none; }

/* ---------- Shared controls ---------- */
html .jk-button,
html .store-page button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; max-width: 100%;
  border: 1px solid var(--jk-border-strong); border-radius: var(--jk-radius-sm);
  background: var(--jk-surface); color: var(--jk-ink);
  font-size: .9375rem; font-weight: 650; line-height: 1.5; text-decoration: none; white-space: normal;
  box-shadow: var(--jk-shadow-xs);
}
html .jk-button.primary,
html .store-page .jk-button.primary { background: var(--jk-brand); border-color: var(--jk-brand); color: var(--jk-on-brand); box-shadow: 0 1px 2px rgba(74, 49, 184, .25), 0 4px 12px rgba(91, 63, 208, .18); }
html .jk-button.danger { color: var(--jk-status-error); border-color: #EBC3C0; background: var(--jk-surface); }
html .jk-button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
html .jk-field { display: grid; gap: 6px; min-width: 0; font-size: .9375rem; }
html .jk-field > span { font-weight: 650; color: var(--jk-ink); }
html .jk-field input, html .jk-field select, html .jk-field textarea,
html .applicant-page input:not([type="checkbox"]):not([type="radio"]), html .applicant-page select, html .applicant-page textarea,
html .store-page input:not([type="checkbox"]):not([type="radio"]), html .store-page select, html .store-page textarea {
  width: 100%; min-width: 0; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--jk-border-strong); border-radius: var(--jk-radius-sm);
  background: var(--jk-surface); color: var(--jk-ink); font: inherit; line-height: 1.5;
}
html .jk-field textarea { min-height: 110px; }
html .jk-field input:hover, html .jk-field select:hover, html .jk-field textarea:hover { border-color: #B6BBCC; }
html .jk-field input:focus, html .jk-field select:focus, html .jk-field textarea:focus,
html .applicant-page input:focus, html .applicant-page select:focus, html .applicant-page textarea:focus,
html .store-page input:focus, html .store-page select:focus, html .store-page textarea:focus {
  outline: none; border-color: var(--jk-brand); box-shadow: 0 0 0 4px var(--jk-brand-soft);
}
html .jk-field small, html .jk-muted { color: var(--jk-muted); font-size: .875rem; }
html .jk-panel {
  display: grid; gap: 14px; min-width: 0; padding: clamp(18px, 2.2vw, 26px);
  background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: var(--jk-radius-lg);
  box-shadow: var(--jk-shadow-sm);
}
html .jk-panel h2, html .jk-panel h3 { margin: 0; }
html .jk-panel p { margin: 0; }
html .jk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
html .jk-cover { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: var(--jk-radius-md); background: var(--jk-brand-soft); }
html .jk-grid > .jk-panel { overflow: hidden; align-content: start; transition: box-shadow 160ms, transform 160ms, border-color 160ms; }
html .jk-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: var(--jk-radius-md); box-shadow: var(--jk-shadow-xs);
}
html .jk-tabs .jk-button { flex: 1 1 8rem; min-height: 40px; border: 0; box-shadow: none; background: transparent; color: var(--jk-muted); font-weight: 600; }
html .jk-tabs .jk-button.primary, html .jk-tabs .jk-button.active, html .jk-tabs .jk-button[aria-pressed="true"], html .jk-tabs .jk-button[aria-current="page"] {
  background: var(--jk-brand-soft); color: var(--jk-brand); box-shadow: none;
}
html .jk-badge {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; width: fit-content; max-width: 100%;
  padding: 3px 10px; border-radius: 999px; background: var(--jk-brand-soft); color: var(--jk-brand);
  font-size: .8125rem; font-weight: 650; line-height: 1.6;
}
html .jk-badge.success { background: #E6F4EC; color: var(--jk-status-success); }
html .jk-badge.warning { background: #FFF3DF; color: var(--jk-status-warning); }
html .jk-badge.danger, html .jk-badge.error { background: #FCEBEA; color: var(--jk-status-error); }
html .jk-progress { height: 8px; border-radius: 4px; background: var(--jk-brand-tint); overflow: hidden; }
html .jk-progress > span { display: block; height: 100%; background: var(--jk-brand); }
html .jk-stack > .jk-button { justify-self: start; }
html .jk-table-wrap { overflow-x: auto; border: 1px solid var(--jk-border); border-radius: var(--jk-radius-md); background: var(--jk-surface); }
html .jk-app table, html .public-app table { width: 100%; border-collapse: collapse; }
html .jk-app th, html .public-app th { background: var(--jk-surface-soft); color: var(--jk-muted); font-size: .8125rem; font-weight: 700; text-align: start; }
html .jk-app th, html .jk-app td, html .public-app th, html .public-app td { padding: 14px 16px; border-bottom: 1px solid var(--jk-border); }
html .jk-metric { color: var(--jk-brand); font-variant-numeric: tabular-nums; font-weight: 800; }
html .jk-empty, html .jk-loading { padding: clamp(32px, 6vw, 64px) 24px; color: var(--jk-muted); text-align: center; }
html .jk-menu-items { border-color: var(--jk-border); box-shadow: var(--jk-shadow-lg); max-width: calc(100vw - 32px); max-height: 75dvh; overflow-y: auto; border-radius: var(--jk-radius-md); }
html .jk-stage { border-color: var(--jk-border); border-radius: var(--jk-radius-md); }
html .jk-stage.selected { border-color: var(--jk-brand); box-shadow: 0 0 0 3px var(--jk-brand-soft); }
html .jk-builder-toolbar { background: rgba(247, 248, 251, .92); }
html details > summary { cursor: pointer; }

/* ---------- Public shell ---------- */
html .public-app { min-height: 100dvh; background: var(--jk-canvas); padding-bottom: 0; display: flex; flex-direction: column; }
html .public-app-header {
  position: sticky; top: 0; z-index: 90; display: block; padding: 0;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--jk-border);
}
.public-header-inner {
  max-width: calc(var(--jk-container) + 2 * var(--jk-gutter)); margin-inline: auto; min-height: var(--jk-header-height);
  padding: 12px var(--jk-gutter); display: flex; align-items: center; gap: 20px;
}
.public-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.public-search { position: relative; flex: 1 1 320px; max-width: 460px; display: flex; align-items: center; }
.public-search-icon { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--jk-subtle); pointer-events: none; }
.public-search input {
  width: 100%; min-height: 44px; padding-block: 8px; padding-inline: 42px 14px;
  border: 1px solid var(--jk-border); border-radius: 999px; background: var(--jk-surface-soft); font-size: .9375rem;
}
.public-search input:focus { outline: none; background: var(--jk-surface); border-color: var(--jk-brand); box-shadow: 0 0 0 4px var(--jk-brand-soft); }
.public-header-spacer { flex: 1 1 auto; }
.public-header-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.public-header-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: var(--jk-radius-sm);
  color: var(--jk-muted); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.public-header-links a[aria-current="page"] { color: var(--jk-brand); background: var(--jk-brand-soft); }
.public-header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 0; }
html .public-app-header .auth-nav { display: flex; align-items: center; gap: 8px; }
html .public-app-header .nav-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--jk-brand); border-radius: var(--jk-radius-sm); background: var(--jk-brand); color: var(--jk-on-brand);
  font: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; white-space: nowrap;
}
html .public-app-header .account-link { background: var(--jk-brand-soft); border-color: transparent; color: var(--jk-brand); }
html .public-app-header .sign-out-button { background: transparent; border-color: var(--jk-border); color: var(--jk-muted); }
html .public-app-header .auth-language, .auth-language {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--jk-border); border-radius: var(--jk-radius-sm); background: var(--jk-surface);
  color: var(--jk-muted); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
html .public-app-content { flex: 1 0 auto; width: 100%; margin: 0; min-width: 0; }
html .public-app-content > .jk-content,
html .public-app-content > :not(.home):not(.store-page) {
  max-width: calc(var(--jk-container) + 2 * var(--jk-gutter)); margin-inline: auto;
}
html .public-app-content > .jk-content { padding: clamp(24px, 4vw, 44px) var(--jk-gutter) !important; display: grid; gap: 24px; }
html .public-app-content .store-page { max-width: calc(var(--jk-container) + 2 * var(--jk-gutter)); margin-inline: auto; padding-inline: var(--jk-gutter); }
html .public-app-footer { margin: 0; padding: 0; background: var(--jk-surface); border-top: 1px solid var(--jk-border); }
.public-footer-inner {
  max-width: calc(var(--jk-container) + 2 * var(--jk-gutter)); margin-inline: auto; padding: 32px var(--jk-gutter);
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 40px;
}
.public-footer-brand { display: grid; gap: 8px; max-width: 22rem; }
.public-footer-brand p { margin: 0; color: var(--jk-muted); font-size: .875rem; }
html .public-app-footer .public-footer-about { color: var(--jk-brand); font-weight: 650; font-size: .875rem; }
.public-app-footer nav, .auth-policies nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.public-app-footer nav { max-width: 40rem; }
.public-app-footer a, .auth-policies a { font-size: .8125rem; color: var(--jk-muted); text-decoration: none; line-height: 1.8; padding-block: 4px; }
.public-app-footer a:hover, .auth-policies a:hover { text-decoration: underline; color: var(--jk-brand); }
html .public-app-nav { display: none; }

/* ---------- Home ---------- */
.home { display: grid; gap: 0; }
.home-hero {
  position: relative; overflow: hidden; color: var(--jk-on-brand);
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgba(45, 108, 223, .45), transparent 60%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(140, 110, 255, .45), transparent 60%),
    linear-gradient(135deg, #4B2FC2 0%, #5B3FD0 50%, #3F4FD8 100%);
}
.home-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.home-hero-inner {
  position: relative; z-index: 1; max-width: calc(860px + 2 * var(--jk-gutter)); margin-inline: auto;
  padding: clamp(48px, 9vw, 104px) var(--jk-gutter) clamp(44px, 7vw, 84px); text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px;
}
.home-eyebrow {
  display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  font-size: .8125rem; font-weight: 650; letter-spacing: .02em;
}
html .home-hero h1 { max-width: 100%; overflow-wrap: break-word; margin: 4px 0 0; color: #fff; font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.15; letter-spacing: -.03em; }
html [dir="rtl"] .home-hero h1 { line-height: 1.4; letter-spacing: 0; }
.home-lead { margin: 0; max-width: 40rem; color: rgba(255, 255, 255, .86); font-size: clamp(1rem, 1.6vw, 1.1875rem); line-height: 1.75; }
.home-search {
  width: 100%; max-width: 640px; margin-top: 12px; display: flex; gap: 8px; padding: 8px;
  background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(20, 10, 70, .35);
}
.home-search input { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 50px; padding: 10px 16px; border: 0; border-radius: 10px; background: transparent; font-size: 1.0625rem; color: var(--jk-ink); }
.home-search input:focus { outline: none; background: var(--jk-brand-tint); }
.home-search button {
  flex: 0 0 auto; min-height: 50px; padding: 10px 22px; border: 0; border-radius: 10px;
  background: var(--jk-brand); color: #fff; font-weight: 700; font-size: 1rem;
}
.home-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.home-quick a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26); color: #fff;
  font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.home-quick .jk-icon { width: 18px; height: 18px; }
.home-section {
  width: 100%; max-width: calc(var(--jk-container) + 2 * var(--jk-gutter)); margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--jk-gutter) 8px;
}
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.home-section-head h2 { margin: 0; font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
.home-section-head p { margin: 4px 0 0; color: var(--jk-muted); }
.home-see-all { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--jk-radius-sm); color: var(--jk-brand); font-weight: 700; text-decoration: none; background: var(--jk-brand-soft); }
.home-see-all .jk-icon { width: 18px; height: 18px; }
[dir="rtl"] .home-see-all .jk-icon { transform: scaleX(-1); }
.home-empty { padding: 48px 24px; text-align: center; color: var(--jk-muted); background: var(--jk-surface); border: 1px dashed var(--jk-border-strong); border-radius: var(--jk-radius-lg); }
.home-business {
  width: calc(100% - 2 * var(--jk-gutter)); max-width: var(--jk-container); margin: clamp(40px, 6vw, 72px) auto clamp(40px, 6vw, 64px);
  padding: clamp(28px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: 24px; box-shadow: var(--jk-shadow-sm);
}
.home-business-copy { flex: 1 1 420px; min-width: 0; display: grid; gap: 12px; justify-items: start; }
.home-business .home-eyebrow { background: var(--jk-brand-soft); border-color: transparent; color: var(--jk-brand); }
.home-business h2 { margin: 0; max-width: 34rem; }
.home-business ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.home-business li { display: flex; align-items: flex-start; gap: 10px; color: var(--jk-muted); }
.home-business li .jk-icon { width: 20px; height: 20px; margin-top: 3px; color: var(--jk-status-success); }
.home-business-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 12px;
  background: var(--jk-brand); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(91, 63, 208, .28);
}
.home-faq { padding-top: 0; padding-bottom: clamp(40px, 6vw, 64px); max-width: calc(860px + 2 * var(--jk-gutter)); }
.home-faq-item { margin-bottom: 12px; background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: var(--jk-radius-lg); box-shadow: var(--jk-shadow-xs); }
.home-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px;
  font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--jk-radius-lg);
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after { content: "+"; flex: 0 0 auto; font-size: 1.375rem; line-height: 1; color: var(--jk-brand); }
.home-faq-item[open] summary::after { content: "−"; }
.home-faq-item summary:focus-visible { outline: 3px solid var(--jk-brand-soft); outline-offset: 2px; }
.home-faq-item p { margin: 0; padding: 0 20px 18px; color: var(--jk-muted); line-height: 1.7; }
.home-faq-contact { margin: 20px 0 0; text-align: center; color: var(--jk-muted); }
.home-faq-contact a { color: var(--jk-brand); font-weight: 700; }

/* Offering cards: one shape for services, stores, providers and organizations.
   The cover keeps one ratio, title and summary reserve two lines each and the
   footer sits on the bottom edge, so a row of cards lines up exactly. */
.offer-grid, html .jk-grid.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; align-items: stretch; }
.offer-card {
  display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; position: relative;
  background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: var(--jk-radius-lg); box-shadow: var(--jk-shadow-xs);
  transition: box-shadow 180ms, transform 180ms, border-color 180ms;
}
.offer-cover {
  position: relative; display: block; flex: 0 0 auto; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--jk-brand-soft), #E8F0FF);
}
.offer-cover > img, .offer-cover > span {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; font-size: 0; color: transparent;
  transition: transform 300ms;
}
.offer-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1 1 auto; min-width: 0; }
.offer-provider { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.offer-avatar {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; overflow: hidden;
  border-radius: 50%; background: var(--jk-brand); color: #fff; font-weight: 800; font-size: .875rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--jk-border);
}
.offer-avatar > img, .offer-avatar > span[role="img"] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; font-size: 0; }
.offer-provider-text { display: grid; min-width: 0; line-height: 1.35; }
.offer-provider-text strong { font-size: .875rem; color: var(--jk-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-provider-text span { font-size: .75rem; color: var(--jk-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html .offer-card .offer-title {
  margin: 0; font-size: 1.0625rem; line-height: 1.5; min-height: 3em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html [dir="rtl"] .offer-card .offer-title { line-height: 1.6; min-height: 3.2em; }
.offer-card h3 a { color: var(--jk-ink); text-decoration: none; }
/* The whole card is one target for the primary destination. */
.offer-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 0; }
.offer-provider, .offer-footer-actions, .offer-meta, .offer-cover { position: relative; z-index: 1; }
.offer-summary {
  margin: 0; color: var(--jk-muted); font-size: .9375rem; line-height: 1.6; min-height: 3.2em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.offer-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-meta span { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 10px; border-radius: 999px; background: var(--jk-surface-soft); color: var(--jk-muted); font-size: .8125rem; font-weight: 600; line-height: 1.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-meta .offer-distance { background: #E6F4EC; color: var(--jk-status-success); }
.offer-address { margin: 0; color: var(--jk-subtle); font-size: .8125rem; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-footer { display: grid; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--jk-border); }
.offer-footer > [role="img"] { display: flex; align-items: center; gap: 6px; min-height: 20px; font-size: .8125rem; color: var(--jk-subtle); line-height: 1.4; }
.offer-footer > [role="img"] > span:first-child { display: inline-flex; }
.offer-footer > [role="img"] > span:first-child > span { font-size: 15px !important; line-height: 1; color: #C9CCD8; }
.offer-footer-actions { display: flex; align-items: center; gap: 8px; }
.offer-action {
  display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 8px 16px;
  border-radius: var(--jk-radius-sm); background: var(--jk-brand-soft); color: var(--jk-brand);
  font-weight: 700; font-size: .9375rem; line-height: 1.4; text-align: center; text-decoration: none;
}
.offer-save {
  display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--jk-border); border-radius: var(--jk-radius-sm); background: var(--jk-surface); color: var(--jk-brand);
}
.offer-save .jk-icon { width: 20px; height: 20px; }
.offer-details {
  display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--jk-border); border-radius: var(--jk-radius-sm); background: var(--jk-surface); color: var(--jk-ink);
  font-weight: 650; font-size: .875rem; text-decoration: none; white-space: nowrap;
}

.offer-grid > .jk-empty, .offer-grid > .jk-alert { grid-column: 1 / -1; }
.offer-grid > .jk-button { grid-column: 1 / -1; justify-self: center; }
.offer-skeleton { pointer-events: none; }
.offer-skeleton .offer-cover, .offer-skeleton-line {
  background: linear-gradient(100deg, #ECEAF6 30%, #F7F6FC 50%, #ECEAF6 70%); background-size: 200% 100%;
}
.offer-skeleton-line { display: block; height: 14px; border-radius: 999px; }
.offer-skeleton-line.short { width: 45%; height: 12px; }
.offer-skeleton-line.action { height: 44px; margin-top: 18px; border-radius: var(--jk-radius-sm); }
@media (prefers-reduced-motion: no-preference) {
  .offer-skeleton .offer-cover, .offer-skeleton-line { animation: jk-shimmer 1.4s ease-in-out infinite; }
}

/* Discover: one search bar, result tabs and a compact filter row. */
html .discover { gap: 20px; grid-template-columns: minmax(0, 1fr); }
.discover-head { display: grid; gap: 6px; }
html .discover-head h1, html .discover-head p { margin: 0; }
html .discover-head p { font-size: 1rem; }
.discover-search {
  position: relative; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 760px; padding: 6px;
  background: var(--jk-surface); border: 1px solid var(--jk-border-strong); border-radius: 14px; box-shadow: var(--jk-shadow-sm);
}
.discover-search:focus-within { border-color: var(--jk-brand); box-shadow: 0 0 0 4px var(--jk-brand-soft); }
.discover-search-icon { width: 20px; height: 20px; flex: 0 0 20px; margin-inline-start: 10px; color: var(--jk-subtle); }
html .discover-search input { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 8px 4px; border: 0; background: transparent; font-size: 1rem; }
html .discover-search input:focus { outline: none; }
.discover-search button {
  flex: 0 0 auto; min-height: 46px; padding: 8px 22px; border: 0; border-radius: 10px;
  background: var(--jk-brand); color: var(--jk-on-brand); font-weight: 700;
}
html .discover-tabs { width: fit-content; max-width: 100%; }
html .discover-tabs .jk-button { flex: 0 1 auto; min-width: 0; padding-inline: 16px; }
.discover-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
html .discover-filters > .jk-field { flex: 0 1 240px; }
html .discover-filters > .jk-field > span { font-size: .8125rem; color: var(--jk-muted); }
.discover-location { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-inline-start: auto; }
html .discover-location .jk-button { min-height: 46px; }

/* Remote images reserve their frame while loading. */
html .offer-cover > [data-image-state], html .cover-shell > [data-image-state], .store-product-media > [data-image-state] {
  display: inline-flex; align-items: center; justify-content: center; font-size: 0; color: transparent;
  background: linear-gradient(135deg, var(--jk-brand-soft), #E8F0FF);
}
html [data-image-state="loading"] { background: linear-gradient(100deg, #ECEAF6 30%, #F7F6FC 50%, #ECEAF6 70%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) {
  html [data-image-state="loading"] { animation: jk-shimmer 1.4s ease-in-out infinite; }
}
@keyframes jk-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- Catalog and public pages ---------- */
html .public-app-content .jk-content > .jk-row { align-items: flex-end; }
html .public-app-content .jk-content > .jk-row > .jk-field { flex: 1 1 280px; max-width: 560px; }
html .public-app-content .jk-content > .jk-row > .jk-field input { min-height: 48px; }
html .public-app-content .jk-content > .jk-row > .jk-button.primary { min-height: 48px; padding-inline: 24px; }
html .public-app-content .jk-content > .jk-field { max-width: 360px; }
html .public-app-content .jk-grid > .jk-panel > img:first-child:not(.jk-cover),
html .public-app-content .jk-grid > .jk-panel > [role="img"]:first-child { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
html .public-app-content .jk-grid > .jk-panel h2 a { color: var(--jk-ink); text-decoration: none; }
html .public-app-content .jk-content > h1 { margin: 0; }
html .public-app-content .jk-content > .jk-muted { margin: -12px 0 0; font-size: 1rem; }
html .public-app-content .jk-grid > .jk-panel h2, html .public-app-content .jk-grid > .jk-panel h3 { font-size: 1.0625rem; line-height: 1.45; }
html .joinable-page, html .public-profile, html .applicant-page { background: transparent; }
html .joinable-page .panel, html .applicant-page .card, html .public-profile .post, html .public-profile .profile-header, html .store-page article {
  background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: var(--jk-radius-lg); box-shadow: var(--jk-shadow-sm);
}
html .joinable-page .joinable-shell { max-width: calc(var(--jk-container) + 2 * var(--jk-gutter)); padding-inline: var(--jk-gutter); }
html .joinable-page .hero, html .applicant-page .opportunity-hero {
  border-radius: 24px; box-shadow: var(--jk-shadow-md);
  background: radial-gradient(40rem 20rem at 100% 0%, rgba(45, 108, 223, .45), transparent 60%), linear-gradient(135deg, #4B2FC2, #5B3FD0 60%, #3F4FD8);
}
html .joinable-page .hero h1, html .public-profile .identity h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.35; }
html .joinable-page .hero h1 { color: #fff; }
/* Service page: full-width cover with a compact identity bar, then the
   description beside a sticky action panel. */
html .joinable-page .joinable-shell { display: grid; gap: 20px; margin-block: clamp(16px, 3vw, 28px) clamp(32px, 5vw, 56px); }
html .joinable-page .cover-shell { position: relative; min-height: 0; overflow: hidden; border-radius: 24px; background: linear-gradient(135deg, var(--jk-brand-soft), #E8F0FF); box-shadow: var(--jk-shadow-sm); }
html .joinable-page .cover-shell > .hero-image { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; max-height: 440px; margin: 0; border-radius: 0; object-fit: cover; }
html .joinable-page .cover-identity {
  inset-inline: 16px; bottom: 16px; padding: 10px 12px; flex-wrap: nowrap; align-items: center;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--jk-shadow-md);
}
html .joinable-page .cover-identity .org-row { flex: 1 1 auto; min-width: 0; gap: 12px; margin-inline-end: auto; }
html .joinable-page .cover-identity .org-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html .joinable-page .cover-identity .org-avatar { width: 44px; height: 44px; flex: 0 0 44px; font-size: 1rem; }
html .joinable-page .cover-identity .open-badge { margin: 0; padding: 2px 10px; font-size: .75rem; white-space: nowrap; }
html .joinable-page .cover-identity .jk-button { flex: 0 0 auto; min-height: 42px; padding: 8px 14px; font-size: .875rem; white-space: nowrap; }
html .joinable-page .hero { min-height: 0; padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 10px; justify-items: start; }
html .joinable-page .hero .open-badge { margin: 0; }
html .joinable-page .hero h1 { margin: 0; }
html .joinable-page .hero p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 46rem; line-height: 1.75; }
html .joinable-page .hero [role="img"] { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .9); }
html .joinable-page .detail-grid { margin: 0; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); align-items: start; }
html .joinable-page .stack { gap: 20px; }
html .joinable-page .panel { padding: clamp(18px, 2.4vw, 26px); }
html .joinable-page .panel h2 { margin: 0 0 12px; font-size: 1.1875rem; }
html .joinable-page .panel p { margin: 0; line-height: 1.8; }
html .joinable-page .panel > p + p { margin-top: 10px; }
html .joinable-page details.panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; font-weight: 700; list-style: none; }
html .joinable-page details.panel > summary::-webkit-details-marker { display: none; }
html .joinable-page details.panel > summary::after { content: "+"; font-size: 1.375rem; line-height: 1; color: var(--jk-brand); }
html .joinable-page details.panel[open] > summary::after { content: "−"; }
html .joinable-page details.panel[open] > summary { margin-bottom: 14px; }
html .joinable-page details.panel > p.muted { margin-bottom: 14px; }
html .joinable-page .process-step:last-child { padding-bottom: 0; }
html .joinable-page .facts { gap: 12px; }
html .joinable-page .fact { display: grid; gap: 4px; align-content: start; padding: 14px 16px; background: var(--jk-surface-soft); border: 1px solid var(--jk-border); border-radius: var(--jk-radius-md); }
html .joinable-page .fact strong { margin: 0; }
html .joinable-page .fact p { margin: 0; color: var(--jk-muted); font-size: .875rem; }
html .joinable-page .apply-panel { top: calc(var(--jk-header-height) + 20px); }
html .joinable-page .apply-panel .panel { display: grid; gap: 12px; }
html .joinable-page .apply-panel .panel h2 { margin: 0; }
html .joinable-page .apply-link { margin: 4px 0 0; min-height: 50px; display: flex; align-items: center; justify-content: center; }
html .joinable-page .apply-link, html .public-profile .profile-action { border-radius: var(--jk-radius-sm); line-height: 1.6; font-weight: 700; }
html .joinable-page .apply-panel a:not(.apply-link) { color: var(--jk-brand); font-weight: 650; text-decoration: none; }
html .joinable-page .org-row { border-radius: var(--jk-radius-md); }
@media (max-width: 820px) {
  html .joinable-page .detail-grid { grid-template-columns: minmax(0, 1fr); }
  html .joinable-page .cover-shell { border-radius: 18px; }
  html .joinable-page .cover-shell > .hero-image { aspect-ratio: 16 / 10; }
  html .joinable-page .cover-identity { position: static; flex-wrap: wrap; margin: 0; border-radius: 0; box-shadow: none; background: var(--jk-surface); }
  html .joinable-page .cover-identity .org-row { flex-basis: 100%; }
  html .joinable-page .cover-identity .jk-button { flex: 1 1 auto; }
}
html .public-profile .profile-shell { max-width: calc(var(--jk-container) + 2 * var(--jk-gutter)); margin-inline: auto; padding: clamp(20px, 3vw, 32px) var(--jk-gutter); }
html .public-profile .profile-header { overflow: hidden; }
html .public-profile .feed { max-width: 760px; margin-inline: auto; }
html .applicant-page .question { background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: var(--jk-radius-md); padding: 20px; }
html .applicant-page .policy-card { background: var(--jk-surface-soft); border-color: var(--jk-border); border-radius: var(--jk-radius-md); }
html .applicant-page .submit-row { flex-wrap: wrap; }
html .applicant-page .timeline { padding-left: 0; border-left: 0; padding-inline-start: 16px; border-inline-start: 3px solid var(--jk-brand); }
html .store-page { display: grid; gap: 16px; align-content: start; padding-block: clamp(20px, 3.5vw, 40px) clamp(32px, 5vw, 56px); }
html .store-page > h1 { margin: 0; }
html .store-page > h2 { margin: 12px 0 0; }
html .store-page article { padding: 24px; margin: 0; display: grid; gap: 14px; }
html .store-page article > h2 { margin: 0; font-size: 1.1875rem; }
html .store-page button { color: var(--jk-brand); margin: 0; }
html .store-page button.primary { color: var(--jk-on-brand); }
html .store-page label { display: grid; gap: 6px; margin: 0; font-weight: 600; }
html .store-page label > span { display: inline-flex; align-items: center; gap: 8px; }
html .store-page label input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--jk-brand); }
.store-back { justify-self: start; color: var(--jk-brand); font-weight: 650; text-decoration: none; }
.store-intro { margin: -6px 0 0; color: var(--jk-muted); max-width: 46rem; }
.store-signin { display: grid; justify-items: center; gap: 8px; padding: clamp(32px, 6vw, 56px) 24px; text-align: center; background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: var(--jk-radius-lg); box-shadow: var(--jk-shadow-sm); }
html .store-signin h2, html .store-signin p { margin: 0; }
html .store-signin p { color: var(--jk-muted); max-width: 30rem; }
html .store-signin .jk-button { margin-top: 10px; color: var(--jk-on-brand); }
.store-toolbar { display: flex; justify-content: flex-end; }
.store-empty { margin: 0; padding: 24px; text-align: center; color: var(--jk-muted); background: var(--jk-surface); border: 1px dashed var(--jk-border-strong); border-radius: var(--jk-radius-lg); }
.store-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; align-items: stretch; }
html .store-page .store-product { display: flex; flex-direction: column; gap: 10px; padding: 0 0 18px; overflow: hidden; }
html .store-page .store-product > :not(.store-product-media) { margin-inline: 18px; }
.store-product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(135deg, var(--jk-brand-soft), #E8F0FF); }
.store-product-media > img, .store-product-media > span { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; font-size: 0; }
html .store-page .store-product h2 { margin-top: 6px; font-size: 1.0625rem; line-height: 1.5; }
.store-product-description { margin: 0; color: var(--jk-muted); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.store-product-price { margin: 0; color: var(--jk-ink); font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
html .store-page .store-product > label, html .store-page .store-product > .store-product-action { margin-top: auto; }
html .store-page .store-product-action { width: calc(100% - 36px); }
html .store-page .store-checkout { max-width: 640px; }
html .store-page .store-checkout > .jk-button { justify-self: start; }
html .store-page .store-order-row { justify-content: space-between; width: 100%; text-align: start; min-height: 52px; }

/* ---------- JOINKY Tickets: seat maps, checkout and admission ---------- */
.tk-map { display: grid; gap: 8px; min-width: 0; max-width: 100%; }
html .tickets-page > *, .tk-operator > *, .tk-checkout, .tk-chart-editor, .tk-order { min-width: 0; max-width: 100%; }
/* Large halls pan inside their own container; the page never scrolls sideways. */
.tk-map-scroll { inline-size: 100%; max-width: 100%; contain: inline-size; overflow: auto; overscroll-behavior: contain; padding: 12px; border: 1px solid var(--jk-border); border-radius: var(--jk-radius-md); background: var(--jk-surface-soft); }
.tk-map-canvas { display: grid; gap: 10px; margin-inline: auto; }
.tk-stage { padding: 8px 12px; border-radius: 999px 999px 14px 14px; background: var(--jk-ink); color: var(--jk-on-brand); font-weight: 700; text-align: center; letter-spacing: .02em; }
[dir="rtl"] .tk-stage { letter-spacing: 0; }
html .tk-seat-svg { display: block; max-width: none; height: auto; direction: ltr; }
.tk-row-label { font-size: .42px; fill: var(--jk-muted); font-weight: 700; }
.tk-seat { outline: none; }
.tk-seat.interactive { cursor: pointer; }
.tk-seat.disabled { cursor: not-allowed; }
.tk-seat.interactive:hover rect { filter: brightness(1.08); }
.tk-seat:focus-visible rect { stroke: var(--jk-brand); stroke-width: .16; }
.tk-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.tk-legend li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: .9375rem; }
html .tk-legend-swatch { flex: 0 0 18px; width: 18px; height: 18px; max-width: none; }
.tk-performance-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
html .tickets-page .tk-performance { display: grid; gap: 4px; justify-items: start; width: 100%; padding: 16px; text-align: start; color: var(--jk-ink); background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: var(--jk-radius-md); box-shadow: var(--jk-shadow-xs); }
html .tickets-page .tk-performance.active { border-color: var(--jk-brand); box-shadow: 0 0 0 2px var(--jk-brand-soft); }
.tk-price, .tk-total { font-weight: 800; font-variant-numeric: tabular-nums; }
.tk-total { margin: 0; font-size: 1.125rem; }
.tk-selection, .tk-order-seats { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tk-selection li, .tk-order-seats li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid var(--jk-border); border-radius: var(--jk-radius-sm); background: var(--jk-surface); }
.tk-hold { margin: 0; padding: 10px 14px; border-radius: var(--jk-radius-sm); background: #FFF3DF; color: var(--jk-status-warning); font-weight: 700; font-variant-numeric: tabular-nums; }
.tk-methods { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tk-methods legend { font-weight: 700; margin-bottom: 4px; }
.tk-ticket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tk-ticket-card { display: grid; gap: 6px; align-content: start; padding: 16px; border: 1px dashed var(--jk-border-strong); border-radius: var(--jk-radius-md); background: var(--jk-surface); }
html .tk-ticket-card h3, html .tk-ticket-card p { margin: 0; }
.tk-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tk-counts li { display: grid; gap: 2px; min-width: 88px; padding: 8px 12px; border-radius: var(--jk-radius-sm); background: var(--jk-surface-soft); }
.tk-zone-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: end; }
.tk-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
html .tk-swatch { width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 50%; border: 2px solid var(--jk-surface); box-shadow: 0 0 0 1px var(--jk-border-strong); }
html .tk-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--jk-ink); }
.tk-selection-tools { display: grid; gap: 12px; padding: 12px; border-radius: var(--jk-radius-md); background: var(--jk-brand-tint); }
.tk-order-row.attention { border-color: var(--jk-status-warning); }
.tk-order-row.focused { box-shadow: 0 0 0 3px var(--jk-brand-soft); border-color: var(--jk-brand); }
.tk-admission-result.success { border-inline-start: 4px solid var(--jk-status-success); }
.tk-admission-result.warning { border-inline-start: 4px solid var(--jk-status-warning); }
.tk-box-office { display: grid; gap: 12px; border-color: var(--jk-brand); background: var(--jk-brand-tint); }
html .tk-box-office h3, html .tk-box-office p { margin: 0; }
.tk-print-area { display: grid; gap: 12px; }
@media (max-width: 40rem) {
  .tk-zone-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ---------- Sign-in, registration, recovery and OAuth callback ---------- */
.auth-page {
  min-height: 100dvh; padding: 0 clamp(20px, 5vw, 80px) 32px;
  background: radial-gradient(50rem 30rem at 100% 0%, rgba(91, 63, 208, .10), transparent 60%), radial-gradient(40rem 26rem at 0% 100%, rgba(45, 108, 223, .08), transparent 60%), var(--jk-canvas);
}
.auth-header { max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.auth-brand { display: inline-flex; }
.auth-layout { max-width: 1140px; margin: 28px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.auth-intro { padding-block: 20px; min-width: 0; }
.auth-eyebrow { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--jk-brand-soft); color: var(--jk-brand); font-size: .8125rem; font-weight: 700; line-height: 1.6; letter-spacing: .04em; }
[dir="rtl"] .auth-eyebrow { letter-spacing: 0; }
.auth-intro h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); font-weight: 800; line-height: 1.2; white-space: pre-line; margin: 20px 0; letter-spacing: -.035em; }
[dir="rtl"] .auth-intro h2 { letter-spacing: 0; line-height: 1.45; }
.auth-intro > p { color: var(--jk-muted); font-size: 1.0625rem; line-height: 1.8; max-width: 28rem; }
.auth-features { display: grid; gap: 20px; margin-block: 32px; }
.auth-feature { display: flex; align-items: flex-start; gap: 14px; }
.auth-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: var(--jk-surface); color: var(--jk-brand); border: 1px solid var(--jk-border); box-shadow: var(--jk-shadow-xs); }
.auth-feature h3 { margin: 2px 0 4px; font-size: .9375rem; line-height: 1.6; font-weight: 700; }
.auth-feature p { color: var(--jk-muted); font-size: .875rem; line-height: 1.7; margin: 0; }
.auth-account-note { display: flex; align-items: center; gap: 10px; color: var(--jk-muted); font-size: .8125rem; line-height: 1.7; }
.auth-account-note .jk-icon { width: 18px; height: 18px; color: var(--jk-status-success); }
.auth-shell { min-width: 0; width: 100%; }
.auth-card { background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: 24px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--jk-shadow-lg); }
.auth-card h1 { font-size: 1.75rem; line-height: 1.4; margin: 6px 0 4px; letter-spacing: -.02em; }
[dir="rtl"] .auth-card h1 { letter-spacing: 0; }
.auth-description { color: var(--jk-muted); margin: 0 0 24px; font-size: .9375rem; line-height: 1.7; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px; border: 1px solid #747775; border-radius: var(--jk-radius-sm); background: #fff; color: #1f1f1f; font-family: 'Google Sans', Arial, sans-serif; font-weight: 500; font-size: .9375rem; line-height: 1.5; }
.auth-google img { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.auth-divider { display: flex; align-items: center; gap: 14px; color: var(--jk-subtle); font-size: .8125rem; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--jk-border); }
.auth-tabs { display: flex; flex-wrap: wrap; padding: 4px; border-radius: 12px; background: var(--jk-surface-soft); border: 1px solid var(--jk-border); gap: 4px; margin-bottom: 22px; }
.auth-tabs button { flex: 1 1 8rem; min-height: 42px; border: 0; border-radius: 9px; padding: 8px; color: var(--jk-muted); background: transparent; font-weight: 650; font-size: .9375rem; }
.auth-tabs .auth-tab-active { background: var(--jk-surface); color: var(--jk-brand); box-shadow: var(--jk-shadow-sm); }
.auth-form { display: grid; gap: 18px; }
.auth-form label { display: grid; gap: 6px; min-width: 0; color: var(--jk-ink); font-size: .875rem; font-weight: 650; }
.auth-form input { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--jk-border-strong); border-radius: var(--jk-radius-sm); padding: 12px 14px; background: var(--jk-surface); font-size: 1rem; font-weight: 400; }
.auth-form input:focus { outline: none; border-color: var(--jk-brand); box-shadow: 0 0 0 4px var(--jk-brand-soft); }
.auth-password { display: flex; align-items: center; gap: 8px; }
.auth-password-field { display: grid; gap: 6px; min-width: 0; }
.auth-password input { flex: 1; width: 0; }
.auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--jk-brand); border-radius: var(--jk-radius-sm); background: var(--jk-brand); color: var(--jk-on-brand); font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.6; box-shadow: 0 6px 18px rgba(91, 63, 208, .25); }
.auth-text-button { border: 0; background: transparent; color: var(--jk-brand); font-size: .875rem; font-weight: 650; padding: 8px 4px; }
.auth-forgot { display: block; margin: 14px auto 0; }
.auth-error, .auth-status { padding: 12px 14px; border-radius: var(--jk-radius-sm); font-size: .875rem; line-height: 1.7; margin: 0; }
.auth-error { background: #FCEBEA; color: var(--jk-status-error); }
.auth-status { background: #E6F4EC; color: var(--jk-status-success); }
.auth-provider-status { color: var(--jk-muted); font-size: .8125rem; margin-block: 16px; line-height: 1.7; }
.auth-provider-status p { margin: 0; }
.auth-back { display: block; text-align: center; color: var(--jk-brand); text-decoration: none; font-size: .875rem; font-weight: 650; padding: 12px; margin-block: 10px; }
.auth-policies nav { justify-content: center; gap: 4px 14px; }

/* ---------- Management shell ---------- */
html .jk-app { background: var(--jk-canvas); color: var(--jk-ink); }
html .jk-header {
  height: auto; min-height: var(--jk-header-height); padding: 10px var(--jk-gutter);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--jk-border);
}
html .jk-brand { display: inline-flex; }
html .jk-brand .jk-lockup img { width: 34px; height: 34px; object-fit: contain; }
html .jk-header .jk-button { min-height: 40px; padding: 8px 14px; }
html .jk-rail {
  top: var(--jk-header-height); width: var(--jk-rail-width); padding: 20px 14px;
  background: var(--jk-surface); border-inline-end: 1px solid var(--jk-border);
}
html .jk-nav-link {
  min-height: 46px; margin-bottom: 4px; padding: 8px 12px; border-radius: var(--jk-radius-sm);
  color: var(--jk-muted); font-size: .9375rem; font-weight: 600;
}
html .jk-nav-link.active { background: var(--jk-brand-soft); color: var(--jk-brand); box-shadow: none; }
html .jk-nav-link.active .jk-icon { color: var(--jk-brand); }
html .jk-main { margin-inline-start: var(--jk-rail-width); padding: clamp(24px, 3vw, 36px) var(--jk-gutter) 64px; }
/* Personal pages use the public customer navigation: header links on wide
   screens and the same bottom bar on phones, never a side rail. */
html .jk-app-personal .jk-main { margin-inline-start: 0; }
html .jk-app-personal .jk-content { max-width: var(--jk-container); }
html .jk-app-personal .jk-rail-mobile { display: none; }
html .jk-app-personal .jk-header { padding-inline: max(var(--jk-gutter), calc((100% - var(--jk-container)) / 2)); }
html .jk-header-links { display: flex; align-items: center; gap: 4px; margin-inline: auto 0; min-width: 0; }
html .jk-header-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: var(--jk-radius-sm);
  color: var(--jk-muted); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
html .jk-app .jk-header-link.active { color: var(--jk-brand); background: var(--jk-brand-soft); }
html .jk-content { max-width: 1240px; gap: 24px; }
html .jk-app h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.35; }
html .jk-app h2 { font-size: 1.25rem; line-height: 1.45; margin: 0 0 6px; }
html .jk-app h3 { font-size: 1.0625rem; }
html .jk-app p { line-height: 1.7; }
html .jk-hero {
  display: grid; gap: 12px; padding: clamp(22px, 3vw, 36px); border-radius: 24px; border: 1px solid var(--jk-border);
  background: radial-gradient(36rem 18rem at 100% 0%, rgba(91, 63, 208, .10), transparent 60%), var(--jk-surface);
  box-shadow: var(--jk-shadow-sm);
}
html .jk-hero p { color: var(--jk-muted); max-width: 48rem; margin: 0; }
html .jk-resource-panel .card { border-color: var(--jk-border); border-radius: var(--jk-radius-lg); box-shadow: var(--jk-shadow-sm); }
html .jk-resource-panel input, html .jk-resource-panel select, html .jk-resource-panel textarea { border-color: var(--jk-border-strong); border-radius: var(--jk-radius-sm); padding: 10px 14px; }
html .jk-resource-panel button { border-color: var(--jk-border-strong); border-radius: var(--jk-radius-sm); background: var(--jk-surface); color: var(--jk-brand); font-weight: 650; }
html .jk-chat-log { background: var(--jk-surface-soft); border-radius: var(--jk-radius-md); }
html .jk-bubble { border-color: var(--jk-border); border-radius: var(--jk-radius-md); }
html .jk-solution { border-color: var(--jk-border); border-radius: var(--jk-radius-md); background: var(--jk-surface); }
html .jk-condition { border-inline-start-color: var(--jk-brand-soft); }

/* ---------- Management components ---------- */
/* Actions keep their natural width instead of stretching across grid panels. */
html .jk-app :is(.jk-panel, .jk-stack, .jk-content, form, fieldset, article, section, .card) > :is(button, a).jk-button,
html .jk-app :is(.jk-panel, .jk-stack, .jk-content, form, fieldset, article, section, .card) > :is(button, a).jk-button.primary {
  justify-self: start; width: auto; min-width: 8.5rem;
}
html .jk-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
html .jk-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
html .jk-card-actions { margin-top: auto; padding-top: 4px; }
html .jk-card-actions .jk-button { min-width: 0; }
html .jk-between > h1, html .jk-between > h2 { margin: 0; }

/* Links inside the workspace read as brand actions, not raw browser links. */
html .jk-app a:not(.jk-button):not(.jk-nav-link):not(.jk-brand):not(.jk-link-card):not(.jk-nav-card):not(.jk-skip):not(.jk-header-link) {
  color: var(--jk-brand); font-weight: 650; text-decoration: none;
}
html .jk-app a:not(.jk-button):not(.jk-nav-link):not(.jk-brand):not(.jk-link-card):not(.jk-nav-card):not(.jk-skip):not(.jk-header-link):hover { text-decoration: underline; }

/* Checkboxes become compact selectable rows. */
html .jk-app .jk-check, html .jk-app label:has(> input[type="checkbox"]):not(.jk-field) {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; width: fit-content; max-width: 100%;
  min-height: 42px; padding: 8px 14px; border: 1px solid var(--jk-border); border-radius: var(--jk-radius-sm);
  background: var(--jk-surface); font-weight: 550; line-height: 1.5; cursor: pointer;
}
html .jk-app .jk-check:has(input:checked), html .jk-app label:has(> input[type="checkbox"]:checked):not(.jk-field) {
  border-color: #C9BEF5; background: var(--jk-brand-tint);
}
html .jk-app .jk-check:has(input:disabled) { cursor: not-allowed; opacity: .7; }
html .jk-app input[type="checkbox"], html .jk-app input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--jk-brand); flex: 0 0 auto; }
html .jk-app :is(.jk-check, label:has(> input[type="checkbox"])) + :is(.jk-check, label:has(> input[type="checkbox"])) { margin-top: -6px; }

/* Selects get one consistent chevron on the logical end. */
html .jk-app select, html .public-app select {
  -webkit-appearance: none; appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6378' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 14px center;
}
html [dir="rtl"] .jk-app select, html .jk-app[dir="rtl"] select, html [dir="rtl"] .public-app select, html .public-app[dir="rtl"] select { background-position: left 14px center; }

/* Notices, empty and loading states. */
html .jk-alert { padding: 12px 16px; border-radius: var(--jk-radius-md); background: var(--jk-brand-tint); color: #3D2C8D; border: 1px solid #E2DAFF; margin: 0; line-height: 1.7; }
html .jk-alert.error { background: #FDF0EF; color: var(--jk-status-error); border-color: #F4CDCA; }
html .jk-empty { display: grid; justify-items: center; gap: 6px; padding: clamp(36px, 6vw, 64px) 20px; background: var(--jk-surface); border: 1px dashed var(--jk-border-strong); border-radius: var(--jk-radius-lg); }
html .jk-empty h2 { margin: 6px 0 0; font-size: 1.125rem; }
html .jk-empty p { margin: 0; max-width: 32rem; }
html .jk-empty .jk-button { justify-self: center; margin-top: 10px; }
html .jk-empty-icon {
  width: 56px; height: 56px; margin: 0 0 4px; border-radius: 16px; font-size: 0; color: transparent;
  background: var(--jk-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B3FD0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l2.5-7h11L20 13'/%3E%3Cpath d='M4 13v5h16v-5h-5l-1.5 2h-3L9 13H4Z'/%3E%3C/svg%3E") center / 28px no-repeat;
}
html .jk-loading { display: grid; justify-items: center; gap: 12px; }
html .jk-spinner { width: 32px; height: 32px; border: 3px solid var(--jk-brand-soft); border-top-color: var(--jk-brand); border-radius: 50%; }
@keyframes jk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) { html .jk-spinner { animation: jk-spin .8s linear infinite; } }

/* Header account menu and avatars. */
html .jk-header .jk-menu summary { width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid var(--jk-surface); box-shadow: 0 0 0 1px var(--jk-border); background: var(--jk-brand-soft); justify-content: center; }
html .jk-header .jk-menu summary::-webkit-details-marker { display: none; }
html .jk-header .jk-menu summary :is(img, .jk-avatar, [role="img"]) { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
html .jk-menu-items { padding: 8px; gap: 2px; min-width: 240px; }
html .jk-menu-items .jk-button { justify-content: flex-start; border: 0; box-shadow: none; background: transparent; min-height: 42px; font-weight: 600; }
html .jk-menu-items .jk-button:hover { background: var(--jk-surface-soft); }
html .jk-avatar { border-radius: 50%; }

/* Dashboard statistics and navigation cards. */
html .jk-stat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
html .jk-stat-grid > .jk-panel { gap: 6px; }
html .jk-between > div { display: grid; gap: 6px; min-width: 0; }
html .jk-inline-link { justify-self: start; font-size: .9375rem; }
/* Profile triggers (avatar + name) read as identity rows, not boxed buttons. */
html .jk-app button.jk-button.jk-row { border: 0; box-shadow: none; background: transparent; padding: 0; min-height: 0; min-width: 0; justify-content: flex-start; color: inherit; }
html .jk-app button.jk-button.jk-row h3 { margin: 0; }
html .jk-app button.jk-button.jk-row:hover h3 { color: var(--jk-brand); }
html .jk-stat-grid > .jk-panel h2 { font-size: .9375rem; color: var(--jk-muted); font-weight: 650; }
html .jk-metric { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; }
html .jk-nav-card { position: relative; align-content: start; text-decoration: none; color: inherit; padding-inline-end: 52px; transition: border-color 160ms, box-shadow 160ms; }
html .jk-nav-card h3 { margin: 0; }
html .jk-nav-card::after {
  content: ''; position: absolute; inset-inline-end: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B3FD0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html [dir="rtl"] .jk-nav-card::after, html .jk-app[dir="rtl"] .jk-nav-card::after { transform: scaleX(-1); }

/* Personal account: identity header, form grid and shortcut cards. */
html .jk-account-identity { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--jk-border); }
html .jk-account-identity > :is(img, .jk-avatar, [role="img"]) { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--jk-brand-soft); font-size: 0; }
html .jk-account-identity > div { display: grid; gap: 2px; flex: 1 1 200px; min-width: 0; }
html .jk-account-identity strong { font-size: 1.125rem; }
html .jk-account-identity .jk-button { justify-self: auto; }
html .jk-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
html .jk-link-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px; min-height: 76px; border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-md); background: var(--jk-surface); color: var(--jk-ink); text-decoration: none;
  transition: border-color 160ms, box-shadow 160ms, background-color 160ms;
}
html .jk-link-card .jk-icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--jk-brand-soft); color: var(--jk-brand); }
html .jk-link-card > span { display: grid; gap: 2px; min-width: 0; }
html .jk-link-card strong { font-size: .9375rem; }
html .jk-link-card > span > span { color: var(--jk-muted); font-size: .8125rem; line-height: 1.5; }

/* Plans and capability cards. */
html .jk-plan-grid > .jk-panel { align-content: start; }
html .jk-capability-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
html .jk-capability {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px;
  background: var(--jk-surface); border: 1px solid var(--jk-border); border-radius: var(--jk-radius-md); box-shadow: var(--jk-shadow-xs);
}
html .jk-capability-head { display: flex; align-items: center; gap: 12px; }
html .jk-capability-title { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
html .jk-capability h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
html .jk-capability-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--jk-muted); font-size: .75rem; }
html .jk-capability-meta .jk-badge { padding: 1px 8px; font-size: .75rem; }
html .jk-capability p { margin: 0; color: var(--jk-muted); font-size: .875rem; line-height: 1.55; }
html .jk-capability .jk-card-actions { margin-top: 0; padding-top: 0; }
html .jk-capability .jk-card-actions .jk-button { min-height: 36px; padding: 6px 12px; font-size: .875rem; }
html .jk-switch {
  position: relative; flex: 0 0 auto; width: 46px; height: 28px; padding: 0; border: 0; border-radius: 999px;
  background: var(--jk-border-strong); transition: background 160ms;
}
html .jk-switch[aria-checked="true"] { background: var(--jk-brand); }
html .jk-switch-thumb {
  position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(36, 28, 79, .25); transition: inset-inline-start 160ms;
}
html .jk-switch[aria-checked="true"] .jk-switch-thumb { inset-inline-start: 21px; }
@media (max-width: 420px) {
  html .jk-capability-head { align-items: flex-start; }
}

/* Disclosure panels. */
html .jk-app details.jk-panel > summary, html .jk-app details > summary.jk-panel-summary { font-weight: 700; min-height: 0; }
html .jk-app details.jk-panel:not([open]) { padding-block: 16px; }

/* ---------- Interaction ---------- */
@media (hover: hover) {
  .auth-submit:hover:not(:disabled), html .jk-button.primary:hover:not(:disabled), .home-search button:hover,
  .home-business-action:hover, html .public-app-header .nav-link:not(.account-link):not(.sign-out-button):hover { background: var(--jk-brand-strong); border-color: var(--jk-brand-strong); }
  .auth-google:hover:not(:disabled), .auth-language:hover, html .jk-button:not(.primary):not(.danger):hover:not(:disabled) { background: var(--jk-surface-soft); border-color: var(--jk-border-strong); }
  html .jk-nav-link:hover, .public-header-links a:hover, html .jk-app .jk-header-link:hover { background: var(--jk-surface-soft); color: var(--jk-brand); text-decoration: none; }
  .home-quick a:hover { background: rgba(255, 255, 255, .22); }
  .home-see-all:hover { background: #E4DDFF; }
  .offer-action:hover { background: var(--jk-brand); color: var(--jk-on-brand); }
  .discover-search button:hover:not(:disabled) { background: var(--jk-brand-strong); }
  .offer-save:hover, .offer-details:hover { background: var(--jk-brand-tint); border-color: #CFC5F7; }
  .offer-card:hover { box-shadow: var(--jk-shadow-md); border-color: #D6D2EA; transform: translateY(-2px); }
  .offer-card:hover .offer-cover img { transform: scale(1.03); }
  .offer-card h3 a:hover { color: var(--jk-brand); }
  html .jk-grid > .jk-panel:hover { box-shadow: var(--jk-shadow-md); }
  html .jk-template-card:hover { border-color: var(--jk-border-strong); box-shadow: var(--jk-shadow-md); }
  html .jk-nav-card:hover, html .jk-link-card:hover { border-color: #CFC5F7; box-shadow: var(--jk-shadow-md); }
  html .jk-link-card:hover { background: var(--jk-brand-tint); }
  html .jk-app .jk-check:hover, html .jk-app label:has(> input[type="checkbox"]):not(.jk-field):hover { border-color: var(--jk-border-strong); }
}

/* ---------- Responsive ---------- */
@media (max-width: 75rem) {
  .public-search { flex-basis: 220px; }
  .public-header-links a, html .jk-header-link { padding-inline: 10px; }
}
@media (max-width: 62rem) {
  .public-header-links, html .jk-header-links { display: none; }
  html .jk-app-personal .jk-rail-mobile { display: grid; }
  .auth-layout { grid-template-columns: minmax(0, 480px); justify-content: center; margin-top: 8px; gap: 24px; }
  .auth-intro { display: none; }
  html .public-app { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  html .public-app-nav {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 80; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--jk-border); box-shadow: 0 -6px 24px rgba(28, 23, 64, .06);
  }
  html .public-app-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 4px 2px;
    border-radius: var(--jk-radius-sm); color: var(--jk-muted); font-size: .6875rem; font-weight: 600; text-align: center; text-decoration: none;
  }
  html .public-app-nav a span { font: inherit; line-height: 1.5; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  html .public-app-nav a[aria-current="page"] { color: var(--jk-brand); background: var(--jk-brand-soft); }
  html .jk-rail {
    top: auto; bottom: 0; inset-inline: 0; width: auto; height: auto; z-index: 60;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
    border-inline-end: 0; border-top: 1px solid var(--jk-border); border-radius: 0; overflow: visible; box-shadow: 0 -6px 24px rgba(28, 23, 64, .06);
  }
  html .jk-nav-link { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: .6875rem; padding: 4px 2px; margin: 0; min-height: 56px; text-align: center; }
  html .jk-main { margin-inline-start: 0; padding: 20px 16px max(110px, 7.5rem); }
  html .jk-header .jk-muted { display: none; }
  .home-business { justify-content: flex-start; }
}
@media (max-width: 42rem) {
  html:root { --jk-header-height: 64px; }
  .auth-page { padding-inline: 16px; }
  .auth-header { padding-block: 16px; }
  .auth-card { padding: 24px 20px; border-radius: 18px; }
  .auth-card h1 { font-size: 1.5rem; }
  .public-header-inner { flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; }
  .public-brand .jk-lockup img { width: 32px; height: 32px; }
  .public-brand .jk-lockup-name { font-size: 1.25rem; }
  .public-header-actions { margin-inline-start: auto; gap: 8px; }
  .public-search { order: 3; flex: 1 1 100%; max-width: none; }
  html .public-app-header .nav-link, html .public-app-header .auth-language { min-height: 38px; padding: 6px 12px; font-size: .875rem; }
  html .public-app-header .sign-out-button { display: none; }
  .home-search { flex-direction: column; padding: 8px; }
  .home-search button { width: 100%; }
  .home-quick a { font-size: .875rem; padding: 6px 12px; }
  .offer-grid { gap: 16px; }
  .home-business { border-radius: 20px; }
  .home-business-action { width: 100%; }
  html .jk-tabs .jk-button { flex: 1 1 calc(50% - 4px); }
  html .discover-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html .discover-tabs .jk-button { padding-inline: 6px; font-size: .875rem; }
  .discover-location { margin-inline-start: 0; width: 100%; }
  html .discover-location .jk-button { flex: 1 1 auto; }
  html .discover-filters > .jk-field { flex: 1 1 100%; }
  .discover-search button { padding-inline: 16px; }
}
@media (max-width: 36rem) {
  /* One card per row: nothing to align with, so no reserved blank lines. */
  html .offer-card .offer-title, html [dir="rtl"] .offer-card .offer-title, .offer-summary { min-height: 0; }
  .offer-summary.empty { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .jk-button, .jk-nav-link, .auth-submit, .auth-google, .jk-template-card, .public-app-nav a, .public-header-links a, .home-quick a, .offer-action, .home-see-all {
    transition: background-color 140ms, border-color 140ms, box-shadow 140ms, color 140ms;
  }
}
@media (prefers-reduced-motion: reduce) {
  .offer-card, .offer-cover img { transition: none; }
  .offer-card:hover { transform: none; }
  .offer-card:hover .offer-cover img { transform: none; }
}
@media print {
  .jk-header, .jk-rail, .public-app-header, .public-app-nav, .public-app-footer, .auth-header { display: none !important; }
  html .jk-main, html .public-app-content { margin: 0; padding: 0; }
  .jk-panel { box-shadow: none !important; break-inside: avoid; }
  /* Printing box-office tickets keeps only the ticket cards on paper. */
  body.tk-printing *:not(:has(.tk-print-area)):not(.tk-print-area):not(.tk-print-area *) { display: none !important; }
  body.tk-printing, body.tk-printing *:has(.tk-print-area) { margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: #FFFFFF !important; min-height: 0 !important; }
  body.tk-printing .tk-print-area { border: 0; padding: 0; break-inside: auto; }
  body.tk-printing .tk-print-hide { display: none !important; }
  body.tk-printing .tk-ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.tk-printing .tk-ticket-card { break-inside: avoid; border: 1px dashed #5E6378; color: #000000; background: #FFFFFF; }
}
