/* ==========================================================================
   Civil Portfolio — public design system
   Navy / concrete grey / restrained construction orange.
   Logical properties throughout so Arabic (RTL) mirrors automatically.
   Theme tokens (--c-primary, --c-accent, --c-surface, --c-text, --radius,
   --font-*) are injected from the admin settings.
   ========================================================================== */

:root {
  --c-primary: #12233f;
  --c-accent: #e2711d;
  --c-surface: #f4f5f7;
  --c-text: #1b2430;
  --radius: 10px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: var(--font-body);
  --font-mono: ui-monospace, "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;

  --c-bg: #ffffff;
  --c-muted: #5b6676;
  --c-line: #dde1e7;
  --c-line-strong: #c3c9d2;
  --c-card: #ffffff;
  --c-primary-ink: #ffffff;
  --c-accent-ink: #1b1206;
  --c-accent-soft: color-mix(in srgb, var(--c-accent) 12%, transparent);
  --c-primary-soft: color-mix(in srgb, var(--c-primary) 7%, transparent);
  --c-success: #1f7a4d;
  --c-danger: #b42318;
  --c-warning: #9a5b00;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 6px 24px -8px rgba(16, 24, 40, .18);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

[data-theme="dark"] {
  --c-bg: #0d1726;
  --c-surface: #111e31;
  --c-card: #14233a;
  --c-text: #e6eaf0;
  --c-muted: #a3adbb;
  --c-line: #23344d;
  --c-line-strong: #2f4463;
  --c-primary-soft: rgba(255, 255, 255, .04);
  --shadow-md: 0 8px 28px -10px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --c-bg: #0d1726; --c-surface: #111e31; --c-card: #14233a; --c-text: #e6eaf0; --c-muted: #a3adbb;
    --c-line: #23344d; --c-line-strong: #2f4463; --c-primary-soft: rgba(255,255,255,.04);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font: 16px/1.65 var(--font-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: "Segoe UI", "Noto Sans Arabic", "Noto Kufi Arabic", Tahoma, var(--font-body); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -48px; background: var(--c-accent); color: var(--c-accent-ink); padding: 8px 14px; z-index: 100; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--c-line);
}
.site-header.is-static { position: relative; }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-family: var(--font-heading); color: var(--c-primary); }
[data-theme="dark"] .brand { color: var(--c-text); }
.brand img { max-height: 40px; width: auto; }
.brand .mark { width: 34px; height: 34px; border-radius: 8px; background: var(--c-primary); color: #fff; display: grid; place-items: center; position: relative; overflow: hidden; }
.brand .mark::after { content: ""; position: absolute; inset-inline-end: 0; bottom: 0; width: 12px; height: 12px; background: var(--c-accent); }
.brand small { display: block; font-weight: 500; font-size: .74rem; color: var(--c-muted); letter-spacing: .02em; }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 550; font-size: .95rem; color: var(--c-text); }
.nav a:hover { background: var(--c-primary-soft); color: var(--c-text); }
.nav a[aria-current="page"] { color: var(--c-primary); box-shadow: inset 0 -2px 0 var(--c-accent); border-radius: 0; }
[data-theme="dark"] .nav a[aria-current="page"] { color: #fff; }
.nav li { position: relative; }
.nav .sub { display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow-md); flex-direction: column; align-items: stretch; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: flex; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.lang-switch { display: flex; border: 1px solid var(--c-line); border-radius: 999px; padding: 2px; }
.lang-switch a { padding: 3px 9px; border-radius: 999px; text-decoration: none; font-size: .8rem; font-weight: 650; color: var(--c-muted); text-transform: uppercase; }
.lang-switch a[aria-current="true"] { background: var(--c-primary); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--c-line); background: transparent; color: var(--c-text); cursor: pointer; }
.icon-btn:hover { border-color: var(--c-line-strong); }
.menu-toggle { display: none; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--c-bg); border-bottom: 1px solid var(--c-line); max-height: calc(100vh - var(--header-h)); overflow: auto; display: none; margin: 0; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding-inline-start: 16px; }
  .header-tools { margin-inline-start: auto; }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius);
  font-weight: 650; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  background: var(--c-primary); color: var(--c-primary-ink); transition: transform .15s ease, box-shadow .15s ease, background .15s;
  line-height: 1.2; font-family: inherit;
}
.btn:hover { color: var(--c-primary-ink); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-accent { background: var(--c-accent); color: var(--c-accent-ink); }
.btn-accent:hover { color: var(--c-accent-ink); }
.btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-line-strong); }
.btn-ghost:hover { color: var(--c-text); border-color: var(--c-text); }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; text-decoration: none; color: var(--c-primary); }
[data-theme="dark"] .link-arrow { color: var(--c-accent); }
.link-arrow:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link-arrow .icon { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(3px); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--c-primary); color: #fff; }
.hero::before {
  /* blueprint grid */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(115deg, transparent 10%, #000 65%);
}
.hero .inner { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 6vw, 72px); align-items: center; padding-block: clamp(56px, 9vw, 112px); }
.hero.is-centered .inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero.is-centered .hero-actions { justify-content: center; }
.hero .eyebrow { color: #ffd2ad; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero .role { font-size: clamp(1.1rem, 1.9vw, 1.35rem); font-weight: 600; color: #fff; margin-bottom: .8em; }
.hero .lead { color: rgba(255,255,255,.82); max-width: 62ch; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero-figure { position: relative; justify-self: center; width: min(360px, 100%); }
.hero-figure .frame { aspect-ratio: 4/5; border-radius: calc(var(--radius) * 1.6); overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.hero-figure .placeholder .icon { width: 96px; height: 96px; stroke-width: 1.2; }
.hero-figure .tag { position: absolute; inset-inline-start: -14px; bottom: 26px; background: var(--c-accent); color: var(--c-accent-ink); font-weight: 700; padding: 8px 14px; border-radius: 8px; font-size: .85rem; box-shadow: var(--shadow-md); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); font-size: .92rem; }
.hero-facts span { display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 820px) { .hero .inner { grid-template-columns: 1fr; } .hero-figure { width: min(260px, 70%); order: -1; } .hero-figure:has(.placeholder) { display: none; } }

.page-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding-block: clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 220px; height: 220px; border: 1px dashed var(--c-line-strong); border-radius: 50%; opacity: .7; }
.page-hero .lead { color: var(--c-muted); max-width: 70ch; font-size: 1.08rem; margin: 0; }
.breadcrumbs { font-size: .85rem; color: var(--c-muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 12px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section.alt { background: var(--c-surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head p { color: var(--c-muted); max-width: 62ch; margin: 0; }
.section-index { font-family: var(--font-mono); font-size: .8rem; color: var(--c-muted); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }

.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; }
.card:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-md); }
.card .media { aspect-ratio: 16/10; background: var(--c-surface); overflow: hidden; position: relative; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .media img { transform: scale(1.03); }
.card .media .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--c-line-strong);
  background: repeating-linear-gradient(45deg, transparent 0 14px, var(--c-primary-soft) 14px 15px); }
.card .media .ph .icon { width: 54px; height: 54px; stroke-width: 1.3; }
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.12rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--c-muted); margin: 0; font-size: .95rem; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--c-muted); margin-top: auto; padding-top: 10px; }
.card .meta span { display: inline-flex; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 650; background: var(--c-accent-soft); color: color-mix(in srgb, var(--c-accent) 75%, var(--c-text)); align-self: flex-start; }
.chip.neutral { background: var(--c-primary-soft); color: var(--c-text); }

.service-card { padding: 24px; gap: 12px; }
.service-card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--c-primary); color: #fff; position: relative; }
.service-card .ico::after { content: ""; position: absolute; inset-inline-end: -4px; top: -4px; width: 10px; height: 10px; border-radius: 2px; background: var(--c-accent); }

.skill { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-card); }
.skill .ico { color: var(--c-accent); margin-top: 2px; }
.skill h3 { font-size: 1rem; margin: 0 0 2px; }
.skill small { color: var(--c-muted); }
.meter { height: 5px; background: var(--c-line); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); border-radius: 99px; }

/* timeline */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.timeline li { position: relative; padding-inline-start: 46px; padding-bottom: 34px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 6px; width: 16px; height: 16px; border-radius: 4px; background: var(--c-bg); border: 3px solid var(--c-accent); transform: rotate(45deg); }
.timeline .when { font-family: var(--font-mono); font-size: .82rem; color: var(--c-muted); }
.timeline h3 { margin: 2px 0 2px; }
.timeline .org { font-weight: 600; color: var(--c-primary); }
[data-theme="dark"] .timeline .org { color: var(--c-accent); }
.timeline ul.points { margin: 10px 0 0; padding-inline-start: 18px; color: var(--c-muted); }

.calc-list { display: grid; gap: 10px; }
.calc-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; background: var(--c-card); }
.calc-link:hover { border-color: var(--c-accent); color: inherit; }
.calc-link .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--c-accent-soft); color: var(--c-accent); display: grid; place-items: center; flex: none; }
.calc-link strong { display: block; }
.calc-link small { color: var(--c-muted); }
.calc-link .chev { margin-inline-start: auto; color: var(--c-muted); }
[dir="rtl"] .calc-link .chev { transform: scaleX(-1); }

.quote-card { padding: 26px; gap: 14px; }
.quote-card blockquote { margin: 0; font-size: 1.04rem; }
.quote-card .who { display: flex; gap: 12px; align-items: center; font-size: .9rem; }
.quote-card .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.cta-band { background: var(--c-primary); color: #fff; border-radius: calc(var(--radius) * 1.6); padding: clamp(28px, 5vw, 56px); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 38%; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 16px, transparent 16px 32px); }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-band > * { position: relative; }

/* ---------------------------------------------------------------- content */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 920px) { .layout-2 { grid-template-columns: 1fr; } }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin-block: 1em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-inline-start: 4px solid var(--c-accent); color: var(--c-muted); }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 8px 10px; text-align: start; }
.prose code { font-family: var(--font-mono); background: var(--c-surface); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--c-surface); padding: 14px; border-radius: var(--radius); overflow: auto; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.aside-card { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; background: var(--c-card); position: sticky; top: calc(var(--header-h) + 18px); }
.aside-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); margin-bottom: 12px; }

/* engineering title block (cartouche) */
.title-block { border: 2px solid var(--c-text); border-radius: 2px; font-size: .9rem; background: var(--c-card); }
.title-block .tb-head { background: var(--c-text); color: var(--c-bg); padding: 8px 12px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; }
.title-block dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.title-block dt, .title-block dd { margin: 0; padding: 9px 12px; border-top: 1px solid var(--c-line-strong); }
.title-block dt { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); border-inline-end: 1px solid var(--c-line-strong); }
.title-block dd { font-weight: 600; }
[dir="rtl"] .title-block dt { letter-spacing: 0; }

.qty-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.qty-table th, .qty-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: start; }
.qty-table td.num, .qty-table th.num { text-align: end; font-family: var(--font-mono); white-space: nowrap; }
.qty-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); border-bottom: 2px solid var(--c-line-strong); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); }
.gallery a { display: block; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: .82rem; padding: 8px 10px; color: var(--c-muted); }
.phase-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-size: 1rem; }
.phase-title::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

.lightbox { position: fixed; inset: 0; background: rgba(5, 10, 20, .92); display: none; place-items: center; z-index: 200; padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 6px; }
.lightbox .cap { color: #dfe5ee; text-align: center; margin-top: 10px; font-size: .9rem; }
.lightbox button { position: absolute; top: 16px; inset-inline-end: 16px; background: rgba(255,255,255,.12); color: #fff; border: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; align-items: center; }
.filters a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--c-line); text-decoration: none; font-size: .88rem; font-weight: 600; }
.filters a[aria-current="true"] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.search-inline { display: flex; gap: 8px; margin-inline-start: auto; }
.search-inline input { min-width: 220px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: 8px; text-decoration: none; font-weight: 600; padding: 0 10px; }
.pagination [aria-current="page"] { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.empty { text-align: center; padding: 48px 16px; color: var(--c-muted); border: 1px dashed var(--c-line-strong); border-radius: var(--radius); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .unit { color: var(--c-muted); font-weight: 500; font-family: var(--font-mono); font-size: .8rem; }
input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--c-line-strong); border-radius: calc(var(--radius) * .8);
  background: var(--c-card); color: var(--c-text); font: inherit; font-size: 1rem;
}
textarea { min-height: 140px; resize: vertical; }
textarea.mono { font-family: var(--font-mono); font-size: .9rem; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--c-danger); }
.field-error { color: var(--c-danger); font-size: .86rem; margin-top: 5px; }
.help { color: var(--c-muted); font-size: .85rem; margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--c-primary); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius); border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: color-mix(in srgb, var(--c-success) 9%, transparent); border-color: color-mix(in srgb, var(--c-success) 35%, transparent); }
.alert-error { background: color-mix(in srgb, var(--c-danger) 8%, transparent); border-color: color-mix(in srgb, var(--c-danger) 35%, transparent); }
.alert-warning { background: color-mix(in srgb, var(--c-warning) 10%, transparent); border-color: color-mix(in srgb, var(--c-warning) 35%, transparent); }
.alert-info { background: var(--c-primary-soft); border-color: var(--c-line-strong); }

/* ---------------------------------------------------------------- calculators */
.calc-shell { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (max-width: 960px) { .calc-shell { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-card); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.1rem; display: flex; gap: 10px; align-items: center; }
.formula { font-family: var(--font-mono); background: var(--c-surface); border-inline-start: 3px solid var(--c-primary); padding: 10px 14px; border-radius: 4px; font-size: .9rem; margin: 6px 0; direction: ltr; text-align: left; overflow-x: auto; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.result { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; background: var(--c-card); }
.result.primary { border-color: var(--c-accent); background: var(--c-accent-soft); }
.result .label { font-size: .82rem; color: var(--c-muted); }
.result .value { font-family: var(--font-mono); font-size: 1.45rem; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.result .value small { font-size: .85rem; font-weight: 500; color: var(--c-muted); margin-inline-start: 4px; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--c-line); align-items: baseline; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); color: var(--c-accent); font-size: .85rem; }
.steps .expr { font-family: var(--font-mono); font-size: .85rem; color: var(--c-muted); direction: ltr; unicode-bidi: isolate; display: block; }
.steps .val { font-family: var(--font-mono); font-weight: 650; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.disclaimer { font-size: .88rem; color: var(--c-muted); display: flex; gap: 10px; margin-top: 18px; }
.meta-line { font-size: .82rem; color: var(--c-muted); font-family: var(--font-mono); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #0b1626; color: #c8d1dd; margin-top: 0; padding-top: 56px; font-size: .94rem; }
.site-footer a { color: #e7ecf3; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #8995a6; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8995a6; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); }

.cookie-banner { position: fixed; inset-inline: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; background: var(--c-card); color: var(--c-text); border: 1px solid var(--c-line-strong); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-md); z-index: 80; display: none; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: .9rem; margin-bottom: 12px; }
.cookie-banner .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.preview-banner { background: var(--c-warning); color: #fff; text-align: center; padding: 8px; font-weight: 700; font-size: .9rem; }

/* ---------------------------------------------------------------- error pages */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.error-page .code { font-family: var(--font-mono); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--c-primary); line-height: 1; }
.error-page pre { text-align: start; max-width: 90vw; overflow: auto; font-size: .78rem; background: var(--c-surface); padding: 12px; border-radius: 8px; }

/* ---------------------------------------------------------------- motion & print */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .cookie-banner, .no-print, .hero-actions, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero { background: none; border: 0; padding: 0 0 10px; }
  .page-hero::after { display: none; }
  .calc-shell { grid-template-columns: 1fr; }
  .panel, .result { break-inside: avoid; border-color: #999; }
  .result.primary { background: #f3f3f3; }
  a { text-decoration: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ---------------------------------------------------------------- small utilities */
.plain-list, .facts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.plain-list a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts .icon { color: var(--c-accent); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.project-cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); }
.project-cover img { width: 100%; }
.table-scroll { overflow-x: auto; margin-top: 14px; position: relative; }
.footer-brand { color: #fff; margin-bottom: 12px; }
.footer-tagline { color: #9aa6b6; }
.about-photo { margin: -20px -20px 18px; border-bottom: 1px solid var(--c-line); }
.about-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.socials.dark a { border-color: var(--c-line); color: var(--c-text); }
.calc-note { margin-bottom: 26px; }
.aside-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.exp-photo { margin-top: 12px; max-width: 360px; border-radius: var(--radius); overflow: hidden; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.intro { margin-bottom: 30px; }
.empty-result { text-align: center; color: var(--c-muted); }
.alert .icon { margin-top: 3px; }
.card .ico { color: var(--c-accent); }
.quote-card .ico { width: 28px; }

/* ---------------------------------------------------------------- shop */
.product-card .price-line { align-items: baseline; gap: 10px; }
.product-card .price, .buy-box .price strong { font-size: 1.15rem; color: var(--c-text); }
.buy-box .price { margin: 0 0 6px; }
.buy-box .price strong { font-size: 1.7rem; }
.pay-methods { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pay-option { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--c-line); border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.pay-option:has(input:checked) { border-color: var(--c-accent); background: var(--c-accent-soft); }
.pay-option input { margin: 0; }
details.terms { margin-bottom: 8px; font-size: .9rem; }
details.terms summary { cursor: pointer; color: var(--c-muted); }
code.license { font-size: 1.05rem; padding: 4px 10px; border-radius: 6px; background: var(--c-surface); border: 1px solid var(--c-line); letter-spacing: .04em; user-select: all; }
.pay-instructions { border: 1px dashed var(--c-line-strong); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0 18px; }

/* page header with cover image (Admin › Pages › Couverture) */
.page-hero.has-media::after { display: none; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow-md); aspect-ratio: 16 / 10; background: var(--c-card); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { aspect-ratio: 16 / 10; }
}
@media print { .page-hero-media { display: none; } }

/* ---------------------------------------------------------------- article comments */
.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.comments h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; margin: 0 0 18px; }
.comments h2 .muted { font-weight: 400; font-size: 1rem; }
.comment-list { display: grid; gap: 14px; margin-bottom: 26px; }
.comment { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-card); }
.comment.is-reply { margin-inline-start: clamp(20px, 6vw, 56px); background: var(--c-surface); }
.comment.is-author { border-inline-start: 3px solid var(--c-accent); }
.comment-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--c-surface); border: 1px solid var(--c-line-strong); color: var(--c-muted); }
.comment.is-author .comment-avatar { background: var(--c-accent); color: #fff; border-color: transparent; }
.comment-main { min-width: 0; flex: 1; }
.comment-meta { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .92rem; }
.comment-meta time { color: var(--c-muted); font-size: .85rem; }
.comment-body { overflow-wrap: anywhere; line-height: 1.65; }
.comment-form h3 { margin-top: 0; }

/* ---------------------------------------------------------------- customer account */
.alert-warning { background: color-mix(in srgb, var(--c-warning) 9%, transparent); border-color: color-mix(in srgb, var(--c-warning) 35%, transparent); }
.account-guest { max-width: 520px; }
.account-guest .panel { margin-bottom: 16px; }
.account-switch { text-align: center; color: var(--c-muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.account-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-shell > * { min-width: 0; }
.account-nav { position: sticky; top: 96px; display: grid; gap: 14px; }
.account-nav > *, .account-nav nav { min-width: 0; }
.account-nav ul { list-style: none; margin: 0; padding: 6px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-card); display: grid; gap: 2px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: inherit; font-weight: 500; }
.account-nav a:hover { background: var(--c-surface); }
.account-nav a[aria-current="page"] { background: var(--c-surface); color: var(--c-accent); font-weight: 700; }
.account-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.account-main > * { min-width: 0; }
.account-main .panel { margin: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-title h2 { margin: 0; font-size: 1.15rem; }
.h4 { font-size: 1.1rem; margin: 0 0 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-card { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-card); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.stat-card:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-md); }
.stat-card .icon { color: var(--c-accent); }
.stat-card strong { font-size: 1.6rem; line-height: 1.1; }
.stat-card span { color: var(--c-muted); font-size: .9rem; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--c-surface); color: var(--c-muted); white-space: nowrap; }
.status-paid { background: color-mix(in srgb, var(--c-success) 12%, transparent); color: var(--c-success); }
.status-pending, .status-awaiting_review { background: color-mix(in srgb, var(--c-warning) 12%, transparent); color: var(--c-warning); }
.status-refunded, .status-cancelled { background: color-mix(in srgb, var(--c-danger) 9%, transparent); color: var(--c-danger); }
.license-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 10px; }
.license-key code { font-size: 1.05rem; padding: 8px 12px; border: 1px dashed var(--c-line-strong); border-radius: 8px; background: var(--c-surface); letter-spacing: .04em; overflow-wrap: anywhere; }
.download-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.download-row .muted { margin: 0; }
.download-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--c-accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.header-account { position: relative; }
.header-account .avatar-mini { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: #fff; font-size: .78rem; font-weight: 700; }
@media (max-width: 860px) {
  .account-shell { grid-template-columns: minmax(0, 1fr); }
  .account-nav { position: static; }
  .account-nav ul { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; max-width: 100%; }
  .account-nav { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .header-tools { gap: 4px; }
  .header-tools .icon-btn { width: 36px; height: 36px; }
  .lang-switch a { padding: 3px 7px; }
  .brand { min-width: 0; }
}
.qty-table code { white-space: nowrap; }
.device-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.device-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); }
.device-list li > .icon { color: var(--c-accent); flex: 0 0 auto; }
.device-info { display: grid; min-width: 0; flex: 1; }
.device-info .muted { font-size: .85rem; overflow-wrap: anywhere; }

/* product screenshots (phone portrait): horizontal strip with snap */
.gallery-screens { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-bottom: 1.5rem; overscroll-behavior-x: contain; }
.gallery-screens figure { flex: 0 0 clamp(140px, 22%, 190px); scroll-snap-align: start; }
.gallery-screens a { aspect-ratio: 9/19.5; background: #0b1220; }
.gallery-screens img { object-fit: contain; }
.gallery-screens:focus-visible { outline: 2px solid var(--c-accent, #e8892b); outline-offset: 4px; }
@media (max-width: 560px) { .gallery-screens figure { flex-basis: 44%; } }

/* phone apps: portrait shots inside a slim phone bezel */
.screens-phone figure { border-radius: 22px; border: 0; padding: 5px; background: #0b1220; box-shadow: 0 6px 18px rgba(11, 18, 32, .18); }
.screens-phone figure a { border-radius: 17px; overflow: hidden; }
.screens-phone figcaption { color: #cbd5e1; text-align: center; }
.screens-phone figure.is-wide { flex-basis: clamp(260px, 46%, 400px); }
.screens-phone figure.is-wide a { aspect-ratio: 19.5/9; }

/* computer apps: wide shots inside a window frame with a title bar */
.screens-desktop { gap: 16px; }
.screens-desktop figure { flex: 0 0 min(640px, 88%); border-radius: 10px; border: 1px solid var(--c-line); background: var(--c-surface); box-shadow: 0 8px 22px rgba(11, 18, 32, .12); }
.screens-desktop figure::before { content: ""; display: block; height: 22px; border-bottom: 1px solid var(--c-line);
  background: radial-gradient(circle at 12px 11px, #f26b5b 4px, transparent 4.5px), radial-gradient(circle at 26px 11px, #f5bf4f 4px, transparent 4.5px), radial-gradient(circle at 40px 11px, #5ccb6a 4px, transparent 4.5px), var(--c-surface-2, rgba(127, 127, 127, .08)); }
.screens-desktop a { aspect-ratio: 19/10; background: #fff; }
.screens-desktop img { object-fit: contain; object-position: top center; }
.screens-desktop figure.is-tall { flex-basis: clamp(150px, 24%, 220px); }
.screens-desktop figure.is-tall a { aspect-ratio: 9/16; }
@media (max-width: 560px) { .screens-desktop figure { flex-basis: 90%; } .screens-desktop figure.is-tall { flex-basis: 48%; } }

/* indicative prices in other currencies */
.fx-box { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 14px; background: var(--c-surface); }
.fx-title { margin: 0 0 6px; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.fx-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: .92rem; }
.fx-list li { display: flex; justify-content: space-between; gap: 8px; }
.fx-code { color: var(--c-muted); font-weight: 600; }
.fx-box .help { margin: 0; font-size: .78rem; }
.fx-line { margin: 4px 0 0; font-size: .78rem; color: var(--c-muted); }

/* offline activation code (long signed string) */
.activation-box { border: 1px dashed var(--c-line); border-radius: var(--radius); padding: 10px 12px; margin: 10px 0 14px; }
.activation-box .label { margin: 0 0 6px; font-weight: 600; }
.license-key code.activation-code, .activation-code { word-break: break-all; white-space: normal; font-size: .8rem; letter-spacing: 0; }

/* free products for signed-in customers */
.free-box { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 14px; background: var(--c-surface); }
.free-box .label { margin: 0 0 8px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.free-box .btn + .btn { margin-inline-start: 6px; }

/* ==========================================================================
   Design v2 — colour presets (atelier | hydro | chantier | custom),
   refreshed components, forms and motion. Overrides the base rules above.
   ========================================================================== */
:root {
  --c-footer: color-mix(in srgb, var(--c-primary) 70%, #000);
  --c-btn: var(--c-primary);
  --c-btn-ink: var(--c-primary-ink, #fff);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --shadow-lg: 0 18px 40px -18px color-mix(in srgb, var(--c-primary) 45%, transparent);
  --ring: 0 0 0 4px color-mix(in srgb, var(--c-accent) 24%, transparent);
}
[data-theme="dark"] {
  --c-bg: color-mix(in srgb, var(--c-primary) 30%, #070a10);
  --c-surface: color-mix(in srgb, var(--c-primary) 38%, #0b0f17);
  --c-card: color-mix(in srgb, var(--c-primary) 42%, #111621);
  --c-btn: color-mix(in srgb, var(--c-primary) 55%, #6b7a90);
  --c-btn-ink: #fff;
}
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --c-bg: color-mix(in srgb, var(--c-primary) 30%, #070a10);
    --c-surface: color-mix(in srgb, var(--c-primary) 38%, #0b0f17);
    --c-card: color-mix(in srgb, var(--c-primary) 42%, #111621);
    --c-btn: color-mix(in srgb, var(--c-primary) 55%, #6b7a90);
    --c-btn-ink: #fff;
  }
}

/* ---------------------------------------------------------------- header */
.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .35); background: color-mix(in srgb, var(--c-bg) 96%, transparent); }
.brand > span:not(.mark) { min-width: 0; max-width: 220px; }
.brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .mark { background: linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 70%, var(--c-accent))); color: var(--c-primary-ink, #fff); }
.nav a { position: relative; transition: color .2s, background .2s; }
.nav a[aria-current="page"] { box-shadow: none; color: var(--c-primary); }
.nav a[aria-current="page"]::after, .nav > ul > li > a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: center; transition: transform .25s var(--ease-out);
}
.nav a[aria-current="page"]::after, .nav > ul > li > a:hover::after { transform: scaleX(1); }
.lang-switch a[aria-current="true"] { background: var(--c-btn); color: var(--c-btn-ink); }

/* ---------------------------------------------------------------- buttons */
.btn { background: var(--c-btn); color: var(--c-btn-ink); border-radius: calc(var(--radius) * .9); padding: 12px 20px; letter-spacing: .01em;
  transition: transform .18s var(--ease-out), box-shadow .18s, background .18s, border-color .18s; }
.btn:hover { color: var(--c-btn-ink); background: color-mix(in srgb, var(--c-btn) 88%, #fff); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--c-accent); color: var(--c-accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--c-accent) 88%, #fff); color: var(--c-accent-ink);
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--c-accent) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--c-text); border: 1.5px solid var(--c-line-strong); }
.btn-ghost:hover { background: var(--c-primary-soft); color: var(--c-text); border-color: var(--c-text); box-shadow: none; }
.btn .icon { transition: transform .2s var(--ease-out); }
.btn:hover .icon { transform: translateX(2px); }
[dir="rtl"] .btn:hover .icon { transform: translateX(-2px); }

/* ---------------------------------------------------------------- hero */
.hero { background:
  radial-gradient(900px 480px at 85% 10%, color-mix(in srgb, var(--c-accent) 22%, transparent), transparent 60%),
  radial-gradient(700px 420px at 0% 100%, color-mix(in srgb, #ffffff 7%, transparent), transparent 70%),
  var(--c-primary); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); letter-spacing: -.02em; }
.hero .eyebrow { color: color-mix(in srgb, var(--c-accent) 65%, #fff); }
.hero .role { color: color-mix(in srgb, #fff 92%, var(--c-accent)); }
.hero-figure .frame { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero-figure .tag { color: var(--c-accent-ink); }
[data-preset="hydro"] .hero::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' viewBox='0 0 160 40'%3E%3Cpath d='M0 20 Q20 0 40 20 T80 20 T120 20 T160 20' fill='none' stroke='white' stroke-opacity='.55' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 160px 40px; opacity: .16;
}
[data-preset="chantier"] .hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--c-accent) 0 18px, #16181d 18px 36px);
}
[data-motion="medium"] .hero::before { animation: cp-drift 40s linear infinite; }
@keyframes cp-drift { from { background-position: 0 0, 0 0, 0 0, 0 0; } to { background-position: 120px 120px, 120px 120px, 24px 24px, 24px 24px; } }
[data-preset="hydro"][data-motion="medium"] .hero::before { animation: cp-wave 18s linear infinite; }
@keyframes cp-wave { from { background-position: 0 0; } to { background-position: 160px 0; } }

.page-hero { background:
  linear-gradient(180deg, color-mix(in srgb, var(--c-primary) 5%, var(--c-surface)), var(--c-surface)); }
.page-hero::after { border-color: color-mix(in srgb, var(--c-accent) 45%, transparent); border-style: dashed; }
[data-preset="chantier"] .page-hero { border-bottom: 0; box-shadow: inset 0 -6px 0 var(--c-accent); }

/* ---------------------------------------------------------------- section titles */
.section-head h2 { position: relative; padding-bottom: 12px; }
.section-head h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 20%, transparent)); }
[dir="rtl"] .section-head h2::after { background: linear-gradient(-90deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 20%, transparent)); }
.section.alt { background: linear-gradient(180deg, var(--c-surface), color-mix(in srgb, var(--c-surface) 60%, var(--c-bg))); }

/* ---------------------------------------------------------------- cards */
.card { border-radius: calc(var(--radius) * 1.2); transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); z-index: 2; }
[dir="rtl"] .card::before { transform-origin: right; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c-accent) 40%, var(--c-line)); }
.card:hover::before { transform: scaleX(1); }
.service-card .ico { background: linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 65%, var(--c-accent))); color: var(--c-primary-ink, #fff); transition: transform .3s var(--ease-out); }
.service-card:hover .ico { transform: rotate(-6deg) scale(1.06); }
.skill { transition: border-color .2s, transform .2s var(--ease-out); }
.skill:hover { border-color: var(--c-accent); transform: translateY(-2px); }
.calc-link { transition: border-color .2s, transform .2s var(--ease-out), box-shadow .2s; }
.calc-link:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
[dir="rtl"] .calc-link:hover { transform: translateX(-3px); }
.chip { color: color-mix(in srgb, var(--c-accent) 55%, var(--c-text)); }
.timeline li::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 18%, transparent); }
.cta-band { background:
  radial-gradient(600px 300px at 100% 0, color-mix(in srgb, var(--c-accent) 30%, transparent), transparent 70%), var(--c-primary);
  box-shadow: var(--shadow-lg); }
.stat-card strong { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- forms */
.form { gap: 18px; }
.field label, .field .label { font-weight: 650; font-size: .9rem; margin-bottom: 7px; color: var(--c-text); }
.field label .req, .req { color: var(--c-accent); margin-inline-start: 2px; }
input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], input[type="tel"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--c-line-strong); border-radius: calc(var(--radius) * .9);
  background: var(--c-card); color: var(--c-text); font: inherit; font-size: 1rem;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--c-muted) 75%, transparent); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--c-text) 45%, var(--c-line-strong)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: var(--ring); background: var(--c-card); }
input[readonly] { background: var(--c-surface); color: var(--c-muted); }
select { appearance: none; -webkit-appearance: none; padding-inline-end: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237b8594' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
[dir="rtl"] select { background-position: left 16px center; }
textarea { min-height: 150px; line-height: 1.6; }
input[type="file"] { font: inherit; font-size: .9rem; color: var(--c-muted); max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 650; margin-inline-end: 12px; padding: 9px 14px; border-radius: calc(var(--radius) * .8);
  border: 1.5px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-text); cursor: pointer; transition: border-color .18s; }
input[type="file"]::file-selector-button:hover { border-color: var(--c-accent); }
.check input, input[type="radio"], input[type="checkbox"] { accent-color: var(--c-accent); }
.check { padding: 2px 0; cursor: pointer; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--c-danger); background: color-mix(in srgb, var(--c-danger) 4%, var(--c-card)); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-danger) 18%, transparent); }
.field-error { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.field-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c-danger); color: #fff; font-size: .7rem; font-weight: 800; }
fieldset { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; }
legend { font-weight: 650; padding: 0 6px; }
.alert { border-radius: calc(var(--radius) * 1.1); border-width: 1px; border-inline-start-width: 4px; }
.alert-success { border-inline-start-color: var(--c-success); }
.alert-error { border-inline-start-color: var(--c-danger); }
.alert-warning { border-inline-start-color: var(--c-warning); }
.panel { border-radius: calc(var(--radius) * 1.2); box-shadow: var(--shadow-sm); }
.form .btn[type="submit"], .form button.btn:last-of-type { min-height: 48px; justify-content: center; }
@media (max-width: 640px) { .form .btn[type="submit"] { width: 100%; } }
.pay-option { border-width: 1.5px; transition: border-color .18s, background .18s; }
.pay-option:hover { border-color: color-mix(in srgb, var(--c-accent) 60%, var(--c-line)); }
.buy-box { box-shadow: var(--shadow-md); border-radius: calc(var(--radius) * 1.3); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--c-footer); position: relative; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c-accent), transparent 70%); }
[data-preset="chantier"] .site-footer::before { height: 8px; background: repeating-linear-gradient(-45deg, var(--c-accent) 0 16px, transparent 16px 32px); }
.socials a { transition: border-color .2s, transform .2s var(--ease-out), color .2s; }
.socials a:hover { border-color: var(--c-accent); transform: translateY(-2px); }

/* ---------------------------------------------------------------- motion */
.js[data-motion="medium"] .reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transform: translateY(22px); }
.js[data-motion="medium"] .reveal.is-in { transform: none; }
.js[data-motion="minimal"] .reveal { opacity: 1; transform: none; transition: none; }
[data-motion="minimal"] .card:hover, [data-motion="minimal"] .skill:hover, [data-motion="minimal"] .calc-link:hover, [data-motion="minimal"] .btn:hover { transform: none; }
.to-top { position: fixed; inset-inline-end: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; z-index: 60;
  background: var(--c-accent); color: var(--c-accent-ink); border: 0; cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease-out); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--c-accent); z-index: 70; pointer-events: none; }
[dir="rtl"] .scroll-progress { transform-origin: right; }
[data-motion="minimal"] .scroll-progress { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none !important; }
  .card:hover, .skill:hover, .calc-link:hover, .btn:hover { transform: none; }
}
@media print { .to-top, .scroll-progress { display: none !important; } }
/* header fit: long menus stay on one line down to 1100px, then the burger menu takes over */
.site-header .bar { gap: 14px; }
.brand > span:not(.mark) { max-width: 180px; }
.nav a { padding: 8px 9px; font-size: .92rem; }
.nav a[aria-current="page"]::after, .nav > ul > li > a::after { inset-inline: 9px; }
@media (max-width: 1100px) and (min-width: 981px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--c-bg); border-bottom: 1px solid var(--c-line); max-height: calc(100vh - var(--header-h)); overflow: auto; display: none; margin: 0; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding-inline-start: 16px; }
  .header-tools { margin-inline-start: auto; }
}
/* the header may use a little more width than the page content so that longer menus stay on one line */
.site-header .bar.container { max-width: max(var(--container), 1320px); }
/* menu too long for one line (measured by site.js): burger menu at any width */
.site-header.is-compact-nav .menu-toggle { display: inline-grid; }
.site-header.is-compact-nav .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--c-bg); border-bottom: 1px solid var(--c-line); max-height: calc(100vh - var(--header-h)); overflow: auto; display: none; margin: 0; }
.site-header.is-compact-nav .nav.is-open { display: block; }
.site-header.is-compact-nav .nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; }
.site-header.is-compact-nav .nav a { padding: 12px; font-size: 1.05rem; }
.site-header.is-compact-nav .nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding-inline-start: 16px; }
.site-header.is-compact-nav .header-tools { margin-inline-start: auto; }
/* dark mode must win over the theme tokens injected on :root (higher specificity) */
html[data-theme="dark"] {
  --c-bg: color-mix(in srgb, var(--c-primary) 30%, #070a10);
  --c-surface: color-mix(in srgb, var(--c-primary) 38%, #0b0f17);
  --c-card: color-mix(in srgb, var(--c-primary) 42%, #111621);
  --c-text: #e6eaf0; --c-muted: #a3adbb; --c-line: #263449; --c-line-strong: #334560;
  --c-primary-soft: rgba(255, 255, 255, .05);
  --c-btn: color-mix(in srgb, var(--c-primary) 55%, #6b7a90); --c-btn-ink: #fff;
  --shadow-md: 0 8px 28px -10px rgba(0, 0, 0, .6);
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --c-bg: color-mix(in srgb, var(--c-primary) 30%, #070a10);
    --c-surface: color-mix(in srgb, var(--c-primary) 38%, #0b0f17);
    --c-card: color-mix(in srgb, var(--c-primary) 42%, #111621);
    --c-text: #e6eaf0; --c-muted: #a3adbb; --c-line: #263449; --c-line-strong: #334560;
    --c-primary-soft: rgba(255, 255, 255, .05);
    --c-btn: color-mix(in srgb, var(--c-primary) 55%, #6b7a90); --c-btn-ink: #fff;
  }
}
html[data-theme="dark"] .nav a[aria-current="page"], html[data-theme="dark"] .link-arrow { color: var(--c-text); }
html[data-theme="dark"] .card .media .ph { color: var(--c-line-strong); }
/* in-place navigation: loading bar */
.nav-loader { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; z-index: 80; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent); background-size: 40% 100%; background-repeat: no-repeat;
  opacity: 0; transition: opacity .2s; }
.nav-loader.is-loading { opacity: 1; animation: cp-load 1s ease-in-out infinite; }
@keyframes cp-load { from { background-position: -40% 0; } to { background-position: 140% 0; } }
#main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .nav-loader.is-loading { animation: none; background: var(--c-accent); } }

/* ---------------------------------------------------------------- scrollbars
   Chromium/Edge/Safari: ::-webkit-scrollbar (rounded thumb with an inset gap).
   Firefox: scrollbar-color / scrollbar-width, applied only where the webkit
   pseudo-elements are unknown (Chrome 121+ would otherwise drop the custom look). */
:root {
  --sb-track: color-mix(in srgb, var(--c-surface) 70%, var(--c-bg));
  --sb-thumb: color-mix(in srgb, var(--c-primary) 34%, transparent);
  --sb-thumb-hover: color-mix(in srgb, var(--c-accent) 80%, var(--c-text));
  --sb-thumb-active: var(--c-accent);
  scrollbar-gutter: stable; /* no sideways jump when a page with/without scroll is swapped in */
}
[data-theme="dark"] { --sb-thumb: color-mix(in srgb, var(--c-text) 26%, transparent); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] { --sb-thumb: color-mix(in srgb, var(--c-text) 26%, transparent); } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: var(--sb-thumb); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box; min-height: 36px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-hover); }
::-webkit-scrollbar-thumb:active { background-color: var(--sb-thumb-active); }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* page scrollbar: a little wider, on a soft track */
html::-webkit-scrollbar { width: 13px; height: 13px; }
html::-webkit-scrollbar-track { background: var(--sb-track); border-inline-start: 1px solid var(--c-line); }
html::-webkit-scrollbar-thumb { border-width: 3px; min-height: 48px; }
/* horizontal strips (screenshots, tables, chips): slim, accent tinted */
.gallery-screens::-webkit-scrollbar, .table-scroll::-webkit-scrollbar, .formula::-webkit-scrollbar, .account-nav ul::-webkit-scrollbar, pre::-webkit-scrollbar { height: 8px; }
.gallery-screens::-webkit-scrollbar-track { background: color-mix(in srgb, var(--c-line) 55%, transparent); border-radius: 999px; margin-inline: 2px; }
.gallery-screens::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--c-accent) 70%, transparent); border-width: 1px; }
.gallery-screens::-webkit-scrollbar-thumb:hover { background-color: var(--c-accent); }
/* mobile menu panel */
.nav::-webkit-scrollbar { width: 6px; }

@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--sb-thumb) var(--sb-track); }
  body * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
  .gallery-screens { scrollbar-color: color-mix(in srgb, var(--c-accent) 70%, transparent) color-mix(in srgb, var(--c-line) 55%, transparent); }
}

/* ---------------------------------------------------------------- notifications bell (header) */
.bell { position: relative; }
.bell-btn { position: relative; }
.bell-count { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--c-accent); color: var(--c-accent-ink, #1b1206); font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--c-bg); }
.bell-btn.ring .icon { animation: bell-ring .9s ease; transform-origin: 50% 2px; }
@keyframes bell-ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
html[data-motion="minimal"] .bell-btn.ring .icon { animation: none; }
.bell-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: -8px; width: min(380px, calc(100vw - 24px)); background: var(--c-card); border: 1px solid var(--c-line); border-radius: 14px; box-shadow: var(--shadow-lg, 0 18px 40px -18px rgba(0,0,0,.35)); z-index: 80; overflow: hidden; }
.bell-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--c-line); }
.bell-head .link-btn { font-size: .8rem; }
.bell-list { list-style: none; margin: 0; padding: 4px; max-height: min(420px, 60vh); overflow-y: auto; }
.bell-item > a, .bell-item > div { display: flex; gap: 10px; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.bell-item > a:hover { background: var(--c-surface); }
.bell-item.unread > a, .bell-item.unread > div { background: var(--c-accent-soft); }
.bell-dot { flex: 0 0 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--c-line-strong); }
.bell-item.unread .bell-dot { background: var(--c-accent); }
.bell-text { display: grid; gap: 2px; min-width: 0; }
.bell-text strong { font-size: .9rem; }
.bell-body { font-size: .82rem; color: var(--c-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bell-text small { font-size: .74rem; color: var(--c-muted); }
.bell-empty { padding: 26px 12px; text-align: center; color: var(--c-muted); font-size: .9rem; }
.bell-foot { display: block; padding: 11px; text-align: center; border-top: 1px solid var(--c-line); font-weight: 600; font-size: .88rem; text-decoration: none; }

/* category colours (bell dots, lists, timelines) */
.cat-orders { --cat: #2563eb; } .cat-licenses { --cat: #7c3aed; } .cat-security { --cat: #dc2626; } .cat-updates { --cat: #059669; } .cat-account { --cat: #d97706; }

/* ---------------------------------------------------------------- customer area v2 */
.account-nav a span:first-of-type { flex: 1; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-accent); color: var(--c-accent-ink, #1b1206); font-size: .72rem; font-weight: 800; }
.dash-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 9%, var(--c-card)), var(--c-card) 60%); }
.dash-hello { display: flex; gap: 16px; align-items: center; min-width: 0; }
.dash-hello h2 { margin: 0 0 4px; font-size: 1.3rem; }
.dash-hello p { margin: 0; font-size: .88rem; }
.avatar-lg { flex: 0 0 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; background: var(--c-primary); color: var(--c-primary-ink, #fff); box-shadow: 0 8px 20px -10px var(--c-primary); }
.dash-progress { display: flex; gap: 14px; align-items: center; }
.ring { position: relative; width: 64px; height: 64px; flex: 0 0 64px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.6; }
.ring-bg { stroke: var(--c-line); }
.ring-fg { stroke: var(--c-accent); stroke-linecap: round; transition: stroke-dasharray .6s var(--ease-out, ease); }
.ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: .9rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .84rem; }
.check-list li { display: flex; gap: 6px; align-items: center; color: var(--c-muted); }
.check-list li.ok { color: var(--c-success); }
.check-list .icon { width: 15px; height: 15px; }
.stat-card small { display: block; font-size: .74rem; color: var(--c-muted); margin-top: 2px; }
.stat-card strong small { font-size: .9rem; color: var(--c-muted); }
.stat-card.has-new { border-color: color-mix(in srgb, var(--c-accent) 55%, var(--c-line)); }
.mini-bar meter { width: 100%; height: 6px; margin-top: 6px; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; margin: 18px 0; }
.dash-cols .panel + .panel { margin-top: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-title h2 { margin: 0; }
.product-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.product-mini li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--c-line); border-radius: 12px; }
.product-mini strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-mini small { display: block; }
.pm-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); }
html[data-theme="dark"] .pm-ico { color: var(--c-accent); }
.badge-new { display: inline-flex; gap: 4px; align-items: center; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--c-success) 14%, transparent); color: var(--c-success); }
.badge-new .icon { width: 13px; height: 13px; }
.timeline-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.timeline-mini li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 8px 6px; border-radius: 10px; position: relative; }
.timeline-mini li.unread { background: var(--c-accent-soft); }
.timeline-mini li div { display: grid; min-width: 0; }
.timeline-mini a, .timeline-mini strong { font-weight: 600; text-decoration: none; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--cat, var(--c-primary)) 13%, transparent); color: var(--cat, var(--c-primary)); }
.tl-dot .icon { width: 16px; height: 16px; }
.empty-mini { text-align: center; padding: 18px 8px; color: var(--c-muted); display: grid; justify-items: center; gap: 6px; }
.empty-mini .icon { width: 28px; height: 28px; opacity: .5; }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.quick-actions a { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-card); color: inherit; text-decoration: none; font-weight: 600; transition: border-color .2s, transform .2s; }
.quick-actions a:hover { border-color: var(--c-accent); transform: translateY(-1px); }
.quick-actions .icon { color: var(--c-accent); }
.row-actions { white-space: nowrap; }
.row-actions .btn + .btn { margin-inline-start: 4px; }
.sr-only-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* notifications page */
.notif-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); gap: 2px; }
.seg a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--c-muted); font-weight: 600; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.seg a[aria-current="page"] { background: var(--c-card); color: var(--c-text); box-shadow: var(--shadow-sm); }
.chips-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-nav .chip { text-decoration: none; background: var(--c-surface); color: var(--c-muted); border: 1px solid var(--c-line); }
.chips-nav .chip.is-active { background: color-mix(in srgb, var(--cat, var(--c-accent)) 14%, transparent); color: var(--cat, var(--c-accent)); border-color: color-mix(in srgb, var(--cat, var(--c-accent)) 40%, transparent); }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 14px 10px; border-bottom: 1px solid var(--c-line); align-items: start; }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: linear-gradient(90deg, var(--c-accent-soft), transparent 70%); }
[dir="rtl"] .notif-item.unread { background: linear-gradient(270deg, var(--c-accent-soft), transparent 70%); }
.notif-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--cat, var(--c-primary)) 13%, transparent); color: var(--cat, var(--c-primary)); }
.notif-text p { margin: 2px 0 4px; color: var(--c-muted); font-size: .9rem; }
.notif-title { font-weight: 700; text-decoration: none; }
.notif-item.unread .notif-title::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); margin-inline-end: 6px; vertical-align: 2px; }
.notif-actions { display: flex; gap: 4px; }
.notif-actions .icon-btn { width: 34px; height: 34px; }
.pref-grid { display: grid; gap: 8px; }
.pref-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--c-line); border-radius: 12px; cursor: pointer; }
.pref-row.locked { opacity: .8; cursor: default; }
.pref-row span { display: grid; gap: 2px; }
.pref-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-accent); }
/* security page */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.sec-grid .panel + .panel { margin-top: 0; }
.sec-card h2 { margin-top: 0; }
.ok-text { color: var(--c-success); display: flex; gap: 6px; align-items: center; }
.warn-text { color: var(--c-warning); display: flex; gap: 6px; align-items: center; }
.qty-table tr.current td { background: var(--c-accent-soft); }
/* contact form extras */
.contact-intro { margin: 0 0 16px; font-size: 1.02rem; color: var(--c-muted); }
.opt { color: var(--c-muted); font-weight: 400; font-size: .85em; }
@media (max-width: 1000px) {
  .dash-cols, .sec-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-progress { justify-content: flex-start; }
  .notif-item { grid-template-columns: 34px minmax(0, 1fr); }
  .notif-actions { grid-column: 2; }
  .bell-panel { position: fixed; top: calc(var(--header-h) + 6px); inset-inline: 12px; width: auto; }
}

.stat-card { align-content: start; }
.stat-card strong small { display: inline; font-size: .9rem; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.row-actions .btn + .btn { margin: 0; }
.row-actions .btn .icon { margin: 0; }

/* ---------------------------------------------------------------- customer area menu v2 (grouped sidebar / mobile tab bar) */
.account-nav { gap: 0; padding: 8px; border: 1px solid var(--c-line); border-radius: calc(var(--radius) + 4px); background: var(--c-card); box-shadow: var(--shadow-sm); }
.account-nav ul { border: 0; padding: 0; background: none; gap: 2px; }
.acc-user { display: flex; gap: 10px; align-items: center; padding: 10px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--c-line); min-width: 0; }
.acc-user > div { display: grid; min-width: 0; }
.acc-user strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-user small { font-size: .76rem; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-avatar { flex: 0 0 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--c-primary); color: var(--c-primary-ink, #fff); }
.acc-group { margin: 12px 10px 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); }
[dir="rtl"] .acc-group { letter-spacing: 0; font-size: .76rem; }
.account-nav a, .acc-logout { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: inherit; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: start; transition: background .15s, color .15s; }
.account-nav a .icon, .acc-logout .icon { width: 18px; height: 18px; flex: 0 0 18px; color: var(--c-muted); transition: color .15s; }
.acc-label { flex: 1; min-width: 0; }
.account-nav a:hover, .acc-logout:hover { background: var(--c-surface); }
.account-nav a:hover .icon { color: var(--c-text); }
.account-nav a[aria-current="page"] { background: var(--c-accent-soft); color: color-mix(in srgb, var(--c-accent) 80%, var(--c-text)); font-weight: 700; }
.account-nav a[aria-current="page"] .icon { color: var(--c-accent); }
.account-nav a[aria-current="page"]::before { content: ""; position: absolute; inset-inline-start: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--c-accent); }
.acc-extra { margin-top: 10px !important; padding-top: 8px !important; border-top: 1px solid var(--c-line) !important; }
.acc-extra a .icon:last-child { width: 14px; height: 14px; flex-basis: 14px; opacity: .6; }
.acc-extra form { margin: 0; }
.acc-logout { color: var(--c-danger); }
.acc-logout .icon { color: currentColor; }
.acc-logout:hover { background: color-mix(in srgb, var(--c-danger) 8%, transparent); }
.account-nav .nav-count { flex: 0 0 auto; }
@media (max-width: 860px) {
  .account-nav { position: sticky; top: calc(var(--header-h) - 1px); z-index: 30; padding: 6px; margin: 0 calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; box-shadow: 0 6px 16px -14px rgba(0,0,0,.4); }
  .acc-user, .acc-group { display: none; }
  .acc-menu { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
  .acc-menu::-webkit-scrollbar { display: none; }
  .acc-menu ul, .acc-extra { display: contents !important; }
  .acc-menu li { flex: 0 0 auto; scroll-snap-align: center; list-style: none; }
  .account-nav a, .acc-logout { width: auto; padding: 8px 12px; border: 1px solid var(--c-line); border-radius: 999px; white-space: nowrap; font-size: .88rem; background: var(--c-card); }
  .account-nav a[aria-current="page"] { border-color: color-mix(in srgb, var(--c-accent) 45%, transparent); }
  .account-nav a[aria-current="page"]::before { display: none; }
  .acc-extra a .icon:last-child { display: none; }
  .acc-logout { border-color: color-mix(in srgb, var(--c-danger) 30%, transparent); }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) { .acc-menu { scroll-behavior: smooth; } }
@media (max-width: 1100px) {
  .dash-hero { grid-template-columns: 1fr; }
  .account-main .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1101px) { .account-main .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* account menu stays in view while scrolling (desktop): sticky, never taller than the window */
@media (min-width: 861px) {
  .account-shell { align-items: start; }
  .account-nav { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); max-height: calc(100dvh - var(--header-h) - 32px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .site-header.is-static ~ main .account-nav, html:has(.site-header.is-static) .account-nav { top: 16px; max-height: calc(100vh - 32px); }
}
@media (min-width: 861px) and (max-height: 780px) {
  .acc-user { padding: 6px 6px 10px; }
  .acc-avatar { flex-basis: 32px; height: 32px; border-radius: 9px; }
  .acc-group { margin: 8px 10px 2px; }
  .account-nav a, .acc-logout { padding: 7px 10px; }
  .acc-extra { margin-top: 6px !important; padding-top: 6px !important; }
}
@media (min-width: 861px) and (max-height: 620px) { .acc-user { display: none; } }
/* order actions stay a real table cell (borders aligned with the row) */
td.row-actions { display: table-cell; white-space: nowrap; text-align: end; vertical-align: middle; }
td.row-actions .btn { vertical-align: middle; }
td.row-actions .btn + .btn { margin-inline-start: 4px; }

/* account menu scrollbar: slim, rounded, accent on hover (scrollbar-width must stay unset in Chromium) */
.account-nav::-webkit-scrollbar, .bell-list::-webkit-scrollbar { width: 6px; }
.account-nav::-webkit-scrollbar-track, .bell-list::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.account-nav::-webkit-scrollbar-thumb, .bell-list::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--c-text) 18%, transparent); border: 0; border-radius: 999px; min-height: 30px; }
.account-nav:hover::-webkit-scrollbar-thumb, .bell-list:hover::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--c-accent) 70%, transparent); }
.account-nav::-webkit-scrollbar-thumb:active { background-color: var(--c-accent); }
@supports not selector(::-webkit-scrollbar) {
  .account-nav, .bell-list { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--c-text) 22%, transparent) transparent; }
}

/* ---------------------------------------------------------------- subscriptions */
.pay-option[hidden], .plan-option[hidden] { display: none; }
.plan-price .per { font-size: .95rem; color: var(--c-muted); font-weight: 600; }
.plan-picker { display: grid; gap: 8px; border: 0; padding: 0; margin-inline: 0; }
.plan-option { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: var(--radius); cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s; }
.plan-option:hover { border-color: color-mix(in srgb, var(--c-accent) 60%, var(--c-line)); }
.plan-option:has(input:checked) { border-color: var(--c-accent); background: var(--c-accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 14%, transparent); }
.plan-option:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.plan-option input { margin: 4px 0 0; accent-color: var(--c-accent); }
.plan-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.plan-name { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.plan-save { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c-success) 14%, transparent); color: var(--c-success); }
.plan-cost { font-size: .95rem; }
.plan-cost strong { font-size: 1.15rem; }
.plan-cost small, .plan-note { color: var(--c-muted); font-size: .8rem; }
.trial-box { border: 1.5px dashed color-mix(in srgb, var(--c-accent) 55%, var(--c-line)); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; background: color-mix(in srgb, var(--c-accent) 5%, transparent); }
.trial-title { font-weight: 700; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.trial-box p { margin: 0 0 8px; }
.trial-form { display: grid; gap: 8px; justify-items: start; }
.renew-note { margin-bottom: 12px; }
.plan-from { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.plan-from .icon { width: 16px; height: 16px; color: var(--c-accent); }
.status-trial { background: color-mix(in srgb, var(--c-accent) 12%, transparent); color: var(--c-accent); }

.sub-list { display: grid; gap: 16px; }
.sub-card { display: grid; gap: 14px; }
.sub-head { display: flex; align-items: flex-start; gap: 12px; }
.sub-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent); }
.sub-expired .sub-ic, .sub-cancelled .sub-ic { background: var(--c-surface); color: var(--c-muted); }
.sub-title { flex: 1; min-width: 0; }
.sub-title h2 { font-size: 1.1rem; margin: 0 0 2px; }
.sub-title p { margin: 0; }
.sub-period { display: grid; gap: 8px; }
.sub-dates { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: .9rem; }
.sub-bar { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--c-surface); }
.sub-bar::-webkit-progress-bar { background: var(--c-surface); border-radius: 999px; }
.sub-bar::-webkit-progress-value { background: linear-gradient(90deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 65%, var(--c-primary))); border-radius: 999px; }
.sub-bar::-moz-progress-bar { background: var(--c-accent); border-radius: 999px; }
.sub-past_due .sub-bar::-webkit-progress-value { background: var(--c-warning); }
.sub-past_due .sub-bar::-moz-progress-bar { background: var(--c-warning); }
.sub-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 12px; border-radius: var(--radius); background: var(--c-surface); }
.sub-meta dt { font-size: .75rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.sub-meta dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-actions form { margin: 0; }
.sub-empty { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 32px 20px; }
.sub-empty-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent); }

/* ---------------------------------------------------------------- downloads per platform */
.pf-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 18px 0 10px; }
.pf-downloads { display: grid; gap: 10px; margin: 0 0 14px; }
.pf-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg, #fff); transition: border-color .18s, box-shadow .18s; }
.pf-item:hover { border-color: color-mix(in srgb, var(--c-accent) 45%, var(--c-line)); }
.pf-item.is-recommended { border-color: var(--c-accent); background: var(--c-accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 12%, transparent); }
.pf-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--c-surface); color: var(--c-primary); }
.pf-item.is-recommended .pf-ic { background: var(--c-accent); color: #fff; }
.pf-body { min-width: 0; }
.pf-body p { margin: 0; }
.pf-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-badge { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--c-accent); color: #fff; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 4px; font-size: .8rem; margin-top: 4px !important; }
.pf-meta span { padding: 1px 8px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); }
.pf-item.is-recommended .pf-meta span { background: color-mix(in srgb, #fff 70%, transparent); }
.pf-count { font-size: .78rem; margin-top: 2px !important; }
.pf-blocked { font-size: .85rem; }
@media (max-width: 560px) {
  .pf-item { grid-template-columns: auto 1fr; }
  .pf-action { grid-column: 1 / -1; }
  .pf-action .btn { width: 100%; justify-content: center; }
}
.pf-available { margin: 6px 0 12px; }
.pf-available .label { margin: 0 0 6px; font-size: .82rem; color: var(--c-muted); }
.pf-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); font-size: .82rem; font-weight: 600; }
.pf-chips .icon { width: 15px; height: 15px; color: var(--c-accent); }
.download-block .panel-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }

/* ---------------------------------------------------------------- company space */
.cs-card { display: grid; gap: 14px; }
.cs-steps ol { margin: 6px 0 8px; padding-inline-start: 20px; display: grid; gap: 8px; }
.cs-keys { margin-top: 8px; }
.cs-keys dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-keys code { overflow-wrap: anywhere; }
.cs-form { display: grid; gap: 12px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; }
.cs-mode { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.cs-mode select { max-width: 360px; }
.cs-new[hidden] { display: none; }
.pf-warning { font-size: .82rem; margin: 6px 0 0; }

/* page display options: compact header, one item per row */
.page-hero.is-compact { padding-block: clamp(18px, 3vw, 28px); }
.page-hero.is-compact::after { display: none; }
.page-hero.is-compact h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-block: 4px 0; }
.grid-1 { grid-template-columns: 1fr; }
.grid.is-list > .card { display: grid; grid-template-columns: minmax(160px, 280px) 1fr; align-items: stretch; }
.grid.is-list > .card > .media { height: 100%; }
.grid.is-list > .card:not(:has(> .media)) { display: block; }
@media (max-width: 640px) { .grid.is-list > .card { grid-template-columns: 1fr; } }
.prose.intro { margin-bottom: 24px; }

/* page title placement, alignment and size (Admin › Pages › Display) */
.page-title-inline { padding-top: clamp(22px, 4vw, 40px); }
.page-title-inline h1 { margin: 0; }
.page-title-inline + .section, .page-title-inline + section { padding-top: clamp(16px, 2.5vw, 28px); }
.page-title.title-medium { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.page-title.title-small { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.page-title.is-center, .page-hero.is-center .page-hero-text { text-align: center; }
.page-hero.is-center .page-hero-text { margin-inline: auto; }
.page-hero.is-center .breadcrumbs { justify-content: center; }
.page-hero.is-center .lead { margin-inline: auto; }

/* ---------- Currencies: visitor's currency first, payment currency, currency menu (v2026-11-08) ---------- */
.pay-line { display: block; margin: 2px 0 8px; font-size: .82rem; color: var(--c-muted); }
.product-card .pay-line { flex-basis: 100%; margin: 0; }
.currency-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-size: .85rem; }
.currency-switch label { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); }
.currency-switch select { max-inline-size: 100%; min-inline-size: 0; flex: 1 1 200px; padding: 6px 8px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); color: inherit; font: inherit; }
.filters .currency-switch { margin: 0; margin-inline-start: auto; }
.geo-credit { font-size: .72rem; color: var(--c-muted); }
.currency-switch select { max-inline-size: 380px; }
.buy-box .currency-switch { flex-direction: column; align-items: stretch; gap: 4px; }
.buy-box .currency-switch select { max-inline-size: none; flex: 0 0 auto; inline-size: 100%; }

/* ------------------------------------------------------------ courses, lessons & references */
.access-chip { display: inline-flex; align-items: center; gap: 4px; }
.access-chip .icon { width: 14px; height: 14px; }
.access-chip.is-free { background: color-mix(in srgb, var(--c-success) 12%, transparent); color: var(--c-success); }
.access-chip.is-account { background: var(--c-primary-soft); color: var(--c-primary); }
.access-chip.is-paid { background: var(--c-accent-soft); color: var(--c-warning); }
[data-theme="dark"] .access-chip.is-account { color: var(--c-text); }
.course-card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.learn-more-link { margin-top: 28px; }

.lesson-list { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.lesson-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--c-line); background: var(--c-card); }
.lesson-list li:first-child { border-top: 0; }
.lesson-list .lesson-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .9rem; background: var(--c-primary-soft); color: var(--c-primary); }
[data-theme="dark"] .lesson-list .lesson-num { color: var(--c-text); }
.lesson-list .lesson-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lesson-list .lesson-main a { font-weight: 600; }
.lesson-list .lesson-main .muted { font-size: .9rem; }
.lesson-list .lesson-meta { display: inline-flex; align-items: center; gap: 10px; color: var(--c-muted); font-size: .88rem; white-space: nowrap; }
.lesson-list li.is-locked .lesson-main a { color: var(--c-muted); }
@media (max-width: 560px) {
  .lesson-list li { grid-template-columns: 30px 1fr; }
  .lesson-list .lesson-meta { grid-column: 2; white-space: normal; flex-wrap: wrap; }
}

.lesson-toc { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: .95rem; }
.lesson-toc li.is-current > a { font-weight: 700; color: var(--c-accent); }
.lesson-toc li.is-locked > a { color: var(--c-muted); }
.lesson-toc .icon { width: 13px; height: 13px; vertical-align: -1px; color: var(--c-muted); }
.lesson-progress { margin: 0 0 22px; }

.video-frame { position: relative; aspect-ratio: 16 / 9; margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lesson-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.lesson-nav .btn { max-width: 100%; text-align: start; }
.lesson-nav .btn span { display: flex; flex-direction: column; min-width: 0; }
.lesson-nav .btn small { font-weight: 400; opacity: .8; font-size: .78rem; }
[dir="rtl"] .lesson-nav .icon { transform: scaleX(-1); }

.gate-box { display: flex; gap: 16px; align-items: flex-start; padding: 20px; margin: 8px 0 20px; border: 1px dashed var(--c-line-strong); border-radius: var(--radius); background: var(--c-surface); }
.gate-box .gate-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-accent); }
.gate-box h2 { margin: 0 0 6px; }
.gate-box p { margin: 0 0 10px; }
.gate-box .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.aside-card .gate-box { flex-direction: column; padding: 16px; }

.file-list { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 8px; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-card); }
.file-list a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; word-break: break-word; }
.file-list .muted { font-size: .85rem; margin-inline-start: auto; }

.ref-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.ref-item { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-card); }
.ref-list.compact .ref-item { padding: 12px; }
.ref-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--c-primary-soft); color: var(--c-primary); }
[data-theme="dark"] .ref-ic { color: var(--c-text); }
.ref-body p { margin: 0 0 6px; }
.ref-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ref-code { font-family: var(--font-mono); font-size: .9rem; color: var(--c-muted); }
.ref-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.ref-actions .btn .muted { font-weight: 400; font-size: .8rem; }

.quiz { margin: 32px 0; padding: 20px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.quiz > h2 { margin-top: 0; }
.quiz-q { border: 0; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--c-line); }
.quiz-q legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.quiz-n { color: var(--c-accent); }
.quiz-opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; margin: 4px 0; border: 1px solid transparent; border-radius: 8px; cursor: pointer; background: var(--c-card); }
.quiz-opt input { margin-top: 4px; flex: none; }
.quiz-opt.is-right { border-color: var(--c-success); background: color-mix(in srgb, var(--c-success) 10%, var(--c-card)); }
.quiz-opt.is-wrong { border-color: var(--c-danger); background: color-mix(in srgb, var(--c-danger) 10%, var(--c-card)); }
.quiz-feedback { margin: 8px 0 0; font-weight: 600; }
.quiz-q.is-ok .quiz-feedback { color: var(--c-success); }
.quiz-q.is-ko .quiz-feedback { color: var(--c-danger); }
.quiz-explain { margin: 6px 0 0; color: var(--c-muted); }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.quiz-score { font-weight: 700; }
.course-objectives { font-size: 1rem; gap: 6px; margin-bottom: 20px; }
.course-objectives li { display: flex; gap: 8px; }
.course-objectives li::before { content: "✓"; color: var(--c-success); font-weight: 700; }
.quiz [hidden], .lesson-layout [hidden] { display: none !important; }
.access-chip.is-member { background: color-mix(in srgb, var(--c-primary) 12%, transparent); color: var(--c-primary); }
[data-theme="dark"] .access-chip.is-member { color: var(--c-text); }

/* ------------------------------------------------------------ work site home (WorkHubWork) */
.wh-hero { position: relative; overflow: hidden; color: #fff; padding-block: clamp(48px, 8vw, 96px);
  background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, #14b8a6 26%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--c-primary) 92%, #000) 0%, var(--c-primary) 55%, color-mix(in srgb, var(--c-primary) 70%, #0b3b4a) 100%); }
.wh-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; }
.wh-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.wh-hero-grid.no-visual { grid-template-columns: minmax(0, 760px); }
.wh-hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -.01em; }
.wh-hero .eyebrow { color: #5eead4; }
.wh-lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.84); max-width: 58ch; margin: 0; }
.wh-hero-note { margin: 18px 0 0; color: rgba(255,255,255,.82); display: flex; gap: 8px; align-items: center; font-size: .95rem; }
.wh-hero-note .icon { color: #5eead4; }
.wh-btn-light { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }
.wh-btn-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
.wh-hero-visual { margin: 0; border-radius: 14px; overflow: hidden; background: #0b1220; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.wh-hero-visual img { display: block; width: 100%; height: auto; }
.wh-hero-visual figcaption { padding: 10px 14px; font-size: .82rem; color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); }
.wh-window { display: flex; gap: 6px; padding: 10px 12px; background: rgba(255,255,255,.06); }
.wh-window span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.wh-window span:first-child { background: #f87171; } .wh-window span:nth-child(2) { background: #fbbf24; } .wh-window span:nth-child(3) { background: #34d399; }
@media (max-width: 900px) { .wh-hero-grid { grid-template-columns: 1fr; } }

.wh-alt { background: var(--c-surface); }
.wh-center { text-align: center; margin-top: 32px; }
.wh-ic { width: 46px; height: 46px; border-radius: 12px; display: inline-grid; place-items: center; flex: none;
  background: color-mix(in srgb, #14b8a6 14%, transparent); color: color-mix(in srgb, #0f766e 85%, var(--c-text)); }
[data-theme="dark"] .wh-ic { color: #5eead4; }

.wh-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.wh-featured h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 12px 0 10px; }
.wh-lead-dark { color: var(--c-muted); font-size: 1.05rem; margin: 0 0 18px; }
.wh-checks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.wh-checks li { display: flex; gap: 10px; align-items: flex-start; }
.wh-checks .icon { color: var(--c-success); flex: none; margin-top: 3px; }
.wh-req { display: flex; gap: 10px; color: var(--c-muted); font-size: .92rem; margin: 0; }
.wh-req .icon { flex: none; margin-top: 3px; }
.wh-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wh-shot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--c-line); background: var(--c-card); text-decoration: none; color: var(--c-muted); transition: transform .2s var(--ease-out, ease), box-shadow .2s; }
.wh-shot:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.wh-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.wh-shot span { display: block; padding: 8px 10px; font-size: .8rem; line-height: 1.35; }
@media (max-width: 900px) { .wh-featured { grid-template-columns: 1fr; } }

.wh-pricing { margin-top: clamp(32px, 5vw, 56px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--c-line); border-radius: calc(var(--radius) * 1.4); background: var(--c-card); scroll-margin-top: calc(var(--header-h) + 16px); }
.wh-pricing h3 { margin: 0 0 18px; display: flex; gap: 8px; align-items: center; }
.wh-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 12px; }
.wh-plan { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.wh-plan.is-default { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.wh-plan p { margin: 0; }
.wh-plan-name { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wh-plan-price strong { font-size: 1.5rem; }
.wh-plan-price span { color: var(--c-muted); }
.wh-plan .btn { margin-top: auto; }

.wh-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.wh-cards-1, .wh-cards-2 { max-width: 760px; }
.wh-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: calc(var(--radius) * 1.3); background: var(--c-card); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); transition: transform .2s var(--ease-out, ease), box-shadow .2s, border-color .2s; }
.wh-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, #14b8a6 45%, var(--c-line)); color: var(--c-text); }
.wh-card h3, .wh-card p { margin: 0; }
.wh-card p { color: var(--c-muted); font-size: .95rem; flex: 1; }

.wh-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px 28px; }
.wh-benefit { display: flex; gap: 14px; align-items: flex-start; }
.wh-benefit h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.wh-benefit p { margin: 0; color: var(--c-muted); font-size: .95rem; }

.wh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: none; }
.wh-steps li { position: relative; padding: 24px; border-radius: calc(var(--radius) * 1.3); background: var(--c-card); border: 1px solid var(--c-line); }
.wh-steps h3 { margin: 12px 0 6px; font-size: 1.08rem; }
.wh-steps p { margin: 0; color: var(--c-muted); font-size: .95rem; }
.wh-step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--c-primary); color: var(--c-primary-ink, #fff); }

.wh-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; scroll-margin-top: calc(var(--header-h) + 16px); }
#services { scroll-margin-top: var(--header-h); }
.wh-service { padding: 22px; border-radius: calc(var(--radius) * 1.3); background: var(--c-card); border: 1px solid var(--c-line); }
.wh-service h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.wh-service p { margin: 0; color: var(--c-muted); font-size: .93rem; }

.header-account.has-label { width: auto; padding-inline: 10px; gap: 6px; display: inline-flex; align-items: center; }
.header-account-label { font-size: .85rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 1250px) { .header-account-label { display: none; } .header-account.has-label { padding-inline: 0; width: 40px; justify-content: center; } }

.empty-rich { text-align: center; }
.empty-rich p { margin: 0 0 10px; }
.site-footer .cols:has(> div:nth-child(4)) { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 980px) { .site-footer .cols:has(> div:nth-child(4)) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols:has(> div:nth-child(4)) { grid-template-columns: 1fr; } }

/* logo for the dark theme (Settings › Branding), shown instead of the normal logo */
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
[data-theme="dark"] .brand .logo-light { display: none; }

/* header menus: language (globe) and customer account */
.hdr-menu { position: relative; }
.hdr-menu > summary { list-style: none; cursor: pointer; gap: 4px; }
.hdr-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary { width: auto; padding-inline: 9px; display: inline-flex; align-items: center; }
.hdr-code { font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.hdr-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 210px; max-width: min(300px, 92vw);
  margin: 0; padding: 6px; list-style: none; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.hdr-pop a, .hdr-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none;
  color: var(--c-text); text-decoration: none; font: inherit; font-size: .93rem; text-align: start; cursor: pointer; }
.hdr-pop a:hover, .hdr-pop button:hover, .hdr-pop a:focus-visible, .hdr-pop button:focus-visible { background: var(--c-primary-soft); }
.hdr-pop a[aria-current="true"] { font-weight: 700; color: var(--c-accent); }
.hdr-pop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--c-line); }
.hdr-who { margin: 2px 10px 6px; font-size: .8rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-pop .icon { width: 17px; height: 17px; flex: none; }

/* ------------------------------------------------------------ pricing */
.pr-product { margin-bottom: 40px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--c-line); border-radius: calc(var(--radius) * 1.4); background: var(--c-card); }
.pr-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.pr-head h2 { margin: 0 0 6px; }
.pr-head p { margin: 0; max-width: 70ch; }
.pr-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); }
.pr-toggle button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--c-muted); }
.pr-toggle button[aria-pressed="true"] { background: var(--c-primary); color: var(--c-primary-ink, #fff); }
.pr-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
[data-billing="month"] .pr-plan[data-group="year"], [data-billing="year"] .pr-plan[data-group="month"] { display: none; }
.pr-plan { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pr-plan.is-default { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.pr-plan p { margin: 0; }
.pr-plan-name { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pr-price strong { font-size: 1.7rem; }
.pr-price span { color: var(--c-muted); }
.pr-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: var(--c-muted); }
.pr-notes li { display: flex; gap: 8px; align-items: flex-start; }
.pr-notes .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.pr-plan .btn { margin-top: auto; }
.pr-meta { margin-top: 18px; display: grid; gap: 10px; }
.pr-meta p { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pr-features summary { cursor: pointer; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.pr-features .wh-checks { margin-top: 12px; }
.pr-compare, .pr-others, .pr-conditions, .sp-faq, .sp-changelog { margin-block: 40px; }
.pr-table { width: 100%; border-collapse: collapse; }
.pr-table th, .pr-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: start; vertical-align: top; }
.pr-table thead th { font-size: .95rem; }

/* ------------------------------------------------------------ FAQ accordion */
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-card); }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; font-weight: 600; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .icon { flex: none; transition: transform .2s; }
.faq-item[open] > summary .icon { transform: rotate(180deg); }
.faq-a { padding: 0 16px 14px; color: var(--c-muted); }
.faq-a p { margin: 0 0 8px; }

/* ------------------------------------------------------------ support centre */
.sp-search { display: flex; gap: 10px; margin-bottom: 28px; max-width: 640px; }
.sp-search input { flex: 1; min-width: 0; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 28px; }
.sp-block { padding: 20px; border: 1px solid var(--c-line); border-radius: calc(var(--radius) * 1.3); background: var(--c-card); }
.sp-block h2 { display: flex; gap: 10px; align-items: center; margin-top: 0; }
.sp-block .wh-ic { width: 38px; height: 38px; border-radius: 10px; }
.sp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sp-list-wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.sp-item a { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--c-text); }
.sp-item a:hover { background: var(--c-primary-soft); }
.sp-item .icon { flex: none; margin-top: 3px; color: var(--c-muted); }
.sp-item span { display: flex; flex-direction: column; gap: 2px; }
.sp-item small { color: var(--c-muted); font-size: .85rem; }
.sp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sp-action { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: calc(var(--radius) * 1.3); border: 1px solid var(--c-line); background: var(--c-surface); text-decoration: none; color: var(--c-text); transition: border-color .2s, box-shadow .2s; }
.sp-action:hover { border-color: color-mix(in srgb, #14b8a6 45%, var(--c-line)); box-shadow: var(--shadow-md); color: var(--c-text); }
.sp-action span:last-child { display: flex; flex-direction: column; gap: 4px; }
.sp-action small { color: var(--c-muted); font-size: .88rem; }
.sp-helpful { margin-top: 36px; padding: 18px; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-line); }
.sp-helpful p { margin: 0 0 8px; }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cl-list.compact { gap: 8px; }
.cl-item { padding: 18px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-card); }
.cl-head { margin: 0 0 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.cl-ver { font-family: var(--font-mono); font-weight: 700; font-size: .85rem; padding: 2px 8px; border-radius: 6px; background: var(--c-primary-soft); }

/* ------------------------------------------------------------ support tickets */
.tk-table { width: 100%; border-collapse: collapse; }
.tk-table th, .tk-table td { padding: 10px; border-bottom: 1px solid var(--c-line); text-align: start; vertical-align: top; }
.tk-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--c-primary-soft); }
.tk-open, .tk-customer_reply { background: var(--c-accent-soft); color: var(--c-warning); }
.tk-answered { background: color-mix(in srgb, var(--c-success) 14%, transparent); color: var(--c-success); }
.tk-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.tk-head h2 { margin: 0 0 4px; }
.tk-thread { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.tk-msg { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-card); }
.tk-from-admin { background: color-mix(in srgb, #14b8a6 7%, var(--c-card)); border-color: color-mix(in srgb, #14b8a6 30%, var(--c-line)); }
.tk-who { margin: 0 0 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.tk-body p { margin: 0 0 8px; }
.tk-file { margin: 8px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tk-close { margin-top: 12px; }
.wh-faq { max-width: 880px; }
.tl-facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tl-fact { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); border: 1px solid var(--c-line); background: var(--c-card); text-decoration: none; color: var(--c-text); height: 100%; }
a.tl-fact:hover { border-color: color-mix(in srgb, #14b8a6 45%, var(--c-line)); color: var(--c-text); }
.tl-fact > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.tl-facts small { color: var(--c-muted); font-size: .86rem; }
.tl-facts .wh-ic { width: 38px; height: 38px; border-radius: 10px; }

/* ==========================================================================
   Style "studio" — clean product design for apps and services
   (html[data-style="studio"], chosen per site in Admin → Settings → Theme).
   Colours keep coming from the theme tokens (primary, accent, surface, text),
   so every preset or custom colour works with this layout.
   ========================================================================== */
html[data-style="studio"] {
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --r-card: 22px;
  --r-pill: 980px;
  --c-bg: #ffffff;
  --c-card: #ffffff;
  --c-muted: #6e6e73;
  --c-line: #e5e5ea;
  --c-line-strong: #d2d2d7;
  --c-primary-soft: color-mix(in srgb, var(--c-text) 5%, transparent);
  --c-accent-soft: color-mix(in srgb, var(--c-accent) 10%, transparent);
  --c-footer: var(--c-surface);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, .06);
  --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, .14);
  --ring: 0 0 0 4px color-mix(in srgb, var(--c-accent) 26%, transparent);
  --ease-out: cubic-bezier(.25, .1, .25, 1);
  --header-h: 56px;
  --container: 1120px;
}
html[data-style="studio"][data-theme="dark"] {
  --c-bg: #000000; --c-surface: #161617; --c-card: #1c1c1e; --c-text: #f5f5f7; --c-muted: #a1a1a6;
  --c-line: #2c2c2e; --c-line-strong: #3a3a3c; --c-primary-soft: rgba(255, 255, 255, .06);
  --c-footer: #161617; --c-btn: #f5f5f7; --c-btn-ink: #1d1d1f;
  --shadow-md: 0 4px 24px rgba(0, 0, 0, .5); --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, .7);
}
@media (prefers-color-scheme: dark) {
  html[data-style="studio"][data-theme="auto"] {
    --c-bg: #000000; --c-surface: #161617; --c-card: #1c1c1e; --c-text: #f5f5f7; --c-muted: #a1a1a6;
    --c-line: #2c2c2e; --c-line-strong: #3a3a3c; --c-primary-soft: rgba(255, 255, 255, .06);
    --c-footer: #161617; --c-btn: #f5f5f7; --c-btn-ink: #1d1d1f;
    --shadow-md: 0 4px 24px rgba(0, 0, 0, .5); --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, .7);
  }
}
html[data-style="studio"] body { font-size: 17px; line-height: 1.53; letter-spacing: -.011em; }
html[dir="rtl"][data-style="studio"] body { font-family: -apple-system, BlinkMacSystemFont, "SF Arabic", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif; letter-spacing: 0; line-height: 1.75; }
html[data-style="studio"] h1, html[data-style="studio"] h2, html[data-style="studio"] h3 { letter-spacing: -.025em; color: var(--c-text); }
html[dir="rtl"][data-style="studio"] :is(h1, h2, h3) { letter-spacing: 0; }
html[data-style="studio"] h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 700; line-height: 1.06; }
html[data-style="studio"] h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.1; }
html[data-style="studio"] h3 { font-size: 1.18rem; font-weight: 600; line-height: 1.25; }
html[data-style="studio"] a:hover { color: var(--c-accent); }
html[data-style="studio"] :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 8px; }

/* header: frosted glass bar */
html[data-style="studio"] .site-header { background: color-mix(in srgb, var(--c-bg) 72%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--c-line) 70%, transparent); }
html[data-style="studio"] .site-header.is-scrolled { box-shadow: none; background: color-mix(in srgb, var(--c-bg) 80%, transparent); }
html[data-style="studio"] .brand { color: var(--c-text); font-weight: 650; letter-spacing: -.02em; }
html[data-style="studio"] .brand .mark { border-radius: 9px; background: var(--c-text); color: var(--c-bg); }
html[data-style="studio"] .brand .mark::after { display: none; }
html[data-style="studio"] .nav a { font-size: .86rem; font-weight: 450; color: color-mix(in srgb, var(--c-text) 82%, transparent); border-radius: 999px; padding: 6px 11px; }
html[data-style="studio"] .nav a:hover { background: transparent; color: var(--c-text); }
html[data-style="studio"] .nav a[aria-current="page"] { color: var(--c-text); box-shadow: none; font-weight: 600; border-radius: 999px; }
html[data-style="studio"] .nav a[aria-current="page"]::after, html[data-style="studio"] .nav > ul > li > a::after { display: none; }
html[data-style="studio"] .nav .sub { border-radius: 16px; border-color: var(--c-line); padding: 8px; background: color-mix(in srgb, var(--c-card) 92%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow-lg); }
html[data-style="studio"] .nav .sub a { border-radius: 10px; padding: 9px 12px; }
html[data-style="studio"] .nav .sub a:hover { background: var(--c-primary-soft); }
html[data-style="studio"] .icon-btn { border: 0; border-radius: 999px; width: 36px; height: 36px; color: color-mix(in srgb, var(--c-text) 82%, transparent); }
html[data-style="studio"] .icon-btn:hover { background: var(--c-primary-soft); color: var(--c-text); }
html[data-style="studio"] .hdr-pop { border-radius: 16px; box-shadow: var(--shadow-lg); }
html[data-style="studio"] .hdr-pop a[aria-current="true"] { color: var(--c-accent); }
html[data-style="studio"] .nav-loader, html[data-style="studio"] .scroll-progress { background-color: var(--c-accent); }
html[data-style="studio"] .site-header .nav.is-open, html[data-style="studio"] .site-header.is-compact-nav .nav.is-open { background: color-mix(in srgb, var(--c-bg) 96%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }

/* buttons: pills in the accent colour */
html[data-style="studio"] .btn { border-radius: var(--r-pill); padding: 11px 22px; font-weight: 500; font-size: .98rem; letter-spacing: -.01em;
  background: var(--c-text); color: var(--c-bg); border: 1px solid transparent; box-shadow: none; transform: none; }
html[data-style="studio"] .btn:hover { color: var(--c-bg); background: color-mix(in srgb, var(--c-text) 86%, var(--c-bg)); box-shadow: none; transform: none; }
html[data-style="studio"] .btn-accent, html[data-style="studio"] .btn-accent:hover { background: var(--c-accent); color: var(--c-accent-ink); }
html[data-style="studio"] .btn-accent:hover { background: color-mix(in srgb, var(--c-accent) 88%, #000); }
html[data-style="studio"] .btn-ghost { background: transparent; color: var(--c-accent); border: 1px solid var(--c-accent); }
html[data-style="studio"] .btn-ghost:hover { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
html[data-style="studio"] .btn-sm { padding: 6px 15px; font-size: .86rem; }
html[data-style="studio"] .btn .icon, html[data-style="studio"] .btn:hover .icon { transform: none; }
html[data-style="studio"] .link-arrow { color: var(--c-accent); font-weight: 500; }
html[data-style="studio"] .link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* heroes: light, centred, large type */
html[data-style="studio"] .hero, html[data-style="studio"] .wh-hero { background: var(--c-bg); color: var(--c-text); }
html[data-style="studio"] .hero::before, html[data-style="studio"] .hero::after, html[data-style="studio"] .wh-hero::after { display: none; }
html[data-style="studio"] .wh-hero { padding-block: clamp(56px, 10vw, 120px) clamp(40px, 7vw, 88px);
  background: radial-gradient(900px 420px at 50% -10%, color-mix(in srgb, var(--c-accent) 9%, transparent), transparent 70%), var(--c-bg); }
html[data-style="studio"] .wh-hero h1, html[data-style="studio"] .hero h1 { color: var(--c-text); font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: -.035em; }
html[dir="rtl"][data-style="studio"] .wh-hero h1 { letter-spacing: 0; line-height: 1.25; }
html[data-style="studio"] .wh-lead, html[data-style="studio"] .hero .lead { color: var(--c-muted); font-size: clamp(1.1rem, 1.8vw, 1.36rem); line-height: 1.45; }
html[data-style="studio"] .hero .role { color: var(--c-text); }
html[data-style="studio"] .wh-hero .eyebrow, html[data-style="studio"] .hero .eyebrow { color: var(--c-accent); }
html[data-style="studio"] .wh-hero-note { color: var(--c-muted); }
html[data-style="studio"] .wh-hero-note .icon { color: var(--c-success); }
html[data-style="studio"] .wh-btn-light, html[data-style="studio"] .hero .btn-ghost { color: var(--c-accent); border-color: var(--c-accent); background: transparent; }
html[data-style="studio"] .wh-btn-light:hover, html[data-style="studio"] .hero .btn-ghost:hover { color: var(--c-accent-ink); background: var(--c-accent); border-color: var(--c-accent); }
html[data-style="studio"] .wh-hero-visual { border-radius: var(--r-card); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-lg); }
html[data-style="studio"] .wh-hero-visual figcaption { color: var(--c-muted); background: var(--c-surface); }
html[data-style="studio"] .wh-window { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
html[data-style="studio"] .hero-facts { border-top-color: var(--c-line); color: var(--c-muted); }
html[data-style="studio"] .page-hero { background: var(--c-bg); border-bottom: 0; padding-block: clamp(44px, 8vw, 96px) clamp(20px, 4vw, 40px); text-align: center; }
html[data-style="studio"] .page-hero::after { display: none; }
html[data-style="studio"] .page-hero .lead { margin-inline: auto; font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
html[data-style="studio"] .page-hero .breadcrumbs { justify-content: center; }
html[data-style="studio"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; font-weight: 600; }
html[data-style="studio"] .eyebrow::before { display: none; }

/* sections */
html[data-style="studio"] .section { padding-block: clamp(56px, 9vw, 112px); }
html[data-style="studio"] .section.alt, html[data-style="studio"] .wh-alt { background: var(--c-surface); }
html[data-style="studio"] .section-head h2 { padding-bottom: 0; }
html[data-style="studio"] .section-head h2::after { display: none; }
html[data-style="studio"] .section-head p { font-size: 1.08rem; }

/* cards: big radius, no borders on grey, soft shadow on white */
html[data-style="studio"] :is(.card, .wh-card, .wh-service, .wh-steps li, .sp-block, .sp-action, .pr-product, .pr-plan, .wh-plan, .wh-pricing, .panel, .tl-fact, .tk-msg, .free-box, .buy-box) {
  border-radius: var(--r-card); border-color: var(--c-line); box-shadow: none; }
html[data-style="studio"] .card::before { display: none; }
html[data-style="studio"] :is(.card, .wh-card, .sp-action, .wh-shot):hover { transform: scale(1.012); box-shadow: var(--shadow-lg); border-color: var(--c-line); }
html[data-style="studio"] :is(.section.alt, .wh-alt) :is(.card, .wh-card, .wh-service, .wh-steps li, .sp-block, .pr-plan, .wh-plan) { border-color: transparent; }
html[data-style="studio"] .card .media { background: var(--c-surface); }
html[data-style="studio"] .card .media .ph { background: var(--c-surface); }
html[data-style="studio"] .card .body { padding: 24px 24px 26px; }
html[data-style="studio"] .wh-ic { border-radius: 12px; background: var(--c-accent-soft); color: var(--c-accent); }
html[data-style="studio"][data-theme="dark"] .wh-ic { color: var(--c-accent); }
html[data-style="studio"] .wh-step-n { background: var(--c-text); color: var(--c-bg); }
html[data-style="studio"] .service-card .ico { background: var(--c-accent-soft); color: var(--c-accent); }
html[data-style="studio"] .wh-shot { border-radius: 14px; }
html[data-style="studio"] .wh-plan.is-default, html[data-style="studio"] .pr-plan.is-default { border: 2px solid var(--c-accent); box-shadow: none; }
html[data-style="studio"] .pr-price strong, html[data-style="studio"] .wh-plan-price strong { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
html[data-style="studio"] .pr-toggle { background: var(--c-surface); border: 0; }
html[data-style="studio"] .pr-toggle button[aria-pressed="true"] { background: var(--c-card); color: var(--c-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
html[data-style="studio"] .tk-from-admin { background: var(--c-accent-soft); border-color: transparent; }
html[data-style="studio"] .sp-action:hover { border-color: var(--c-line); }
html[data-style="studio"] .cta-band { background: var(--c-surface); color: var(--c-text); border-radius: 28px; box-shadow: none; }
html[data-style="studio"] .cta-band::before { display: none; }
html[data-style="studio"] .cta-band h2 { color: var(--c-text); }
html[data-style="studio"] .cta-band p { color: var(--c-muted); }

/* chips, filters, pagination */
html[data-style="studio"] .chip { background: var(--c-primary-soft); color: var(--c-muted); font-weight: 600; }
html[data-style="studio"] .chip:not(.neutral) { background: var(--c-accent-soft); color: var(--c-accent); }
html[data-style="studio"] .filters a, html[data-style="studio"] .chips-nav .chip { border: 0; background: var(--c-surface); color: var(--c-text); font-weight: 500; padding: 7px 16px; }
html[data-style="studio"] .filters a[aria-current="true"], html[data-style="studio"] .chips-nav .chip.is-active { background: var(--c-text); color: var(--c-bg); }
html[data-style="studio"] .pagination a, html[data-style="studio"] .pagination span { border-radius: 999px; border-color: transparent; background: var(--c-surface); }
html[data-style="studio"] .pagination [aria-current="page"] { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
html[data-style="studio"] .empty { border-style: solid; border-color: var(--c-line); border-radius: var(--r-card); background: var(--c-surface); }

/* forms */
html[data-style="studio"] :is(input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="url"], input[type="tel"], input[type="password"], input[type="date"], select, textarea) {
  border: 1px solid var(--c-line-strong); border-radius: 12px; background: var(--c-card); min-height: 46px; }
html[data-style="studio"] :is(input, select, textarea):hover { border-color: color-mix(in srgb, var(--c-text) 30%, var(--c-line-strong)); }
html[data-style="studio"] :is(input, select, textarea):focus { border-color: var(--c-accent); box-shadow: var(--ring); }
html[data-style="studio"] input[type="file"]::file-selector-button { border-radius: 999px; border: 0; background: var(--c-surface); padding: 8px 16px; }
html[data-style="studio"] fieldset { border-radius: 16px; }
html[data-style="studio"] .alert { border-radius: 14px; border-inline-start-width: 1px; }
html[data-style="studio"] .lang-switch a[aria-current="true"] { background: var(--c-text); color: var(--c-bg); }
html[data-style="studio"] .formula { border-inline-start-color: var(--c-accent); border-radius: 10px; }
html[data-style="studio"] .result.primary { border-color: transparent; }

/* footer: light, tokens only */
html[data-style="studio"] .site-footer { background: var(--c-footer); color: var(--c-muted); font-size: .82rem; padding-top: 44px; border-top: 1px solid var(--c-line); }
html[data-style="studio"] .site-footer::before { display: none; }
html[data-style="studio"] .site-footer a { color: color-mix(in srgb, var(--c-text) 80%, transparent); }
html[data-style="studio"] .site-footer a:hover { color: var(--c-text); text-decoration: underline; }
html[data-style="studio"] .site-footer h2 { color: var(--c-text); font-size: .82rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
html[data-style="studio"] .site-footer .bottom { border-top-color: var(--c-line); color: var(--c-muted); }
html[data-style="studio"] .site-footer .brand, html[data-style="studio"] .site-footer .brand small { color: var(--c-text); }
html[data-style="studio"] .socials a { border-color: var(--c-line); border-radius: 999px; }
html[data-style="studio"] .to-top { background: var(--c-text); color: var(--c-bg); }
html[data-style="studio"] .cookie-banner { border-radius: 18px; border-color: var(--c-line); box-shadow: var(--shadow-lg); }
html[data-style="studio"][data-motion="medium"] .reveal { transition-duration: .9s; }
@media (prefers-reduced-motion: reduce) { html[data-style="studio"] :is(.card, .wh-card, .sp-action, .wh-shot):hover { transform: none; } }
html[data-style="studio"] .footer-brand { color: var(--c-text); }
html[data-style="studio"] .footer-tagline { color: var(--c-muted); }
html[data-style="studio"] .footer-brand .mark { background: var(--c-text); color: var(--c-bg); }
html[data-style="studio"] .header-account.has-label { width: auto; padding-inline: 12px; font-weight: 500; }
@media (max-width: 1250px) { html[data-style="studio"] .header-account.has-label { width: 36px; padding-inline: 0; } }
