/* ════════════════════════════════════════════════════════════
   ZynDesk "Nile" layer — makes the platform match the marketing
   site: light sidebar with the ZynDesk logo, two-tone icons,
   rounded soft cards, the redesigned workspace home and motion.
   Loaded after style.css; colours come from its (Nile) tokens.
   ════════════════════════════════════════════════════════════ */

:root { --side-ink: 8,46,51; --nd-radius: 18px; }
[data-theme="dark"] { --side-ink: 228,243,240; }

/* ── Two-tone icons (same family as the website) ── */
.zd-duo { --ic1: var(--gold); --ic2: var(--pomegranate); }
.zd-duo-alt { --ic1: var(--pomegranate); --ic2: var(--gold); }
.zd-duo .f { fill: var(--ic1); opacity: .2; }
.zd-duo .s { fill: none; stroke: var(--ic1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zd-duo .a { fill: none; stroke: var(--ic2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.ico.zd-duo { display: inline-block; flex-shrink: 0; }

/* ── Brand: real ZynDesk logo ── */
.s-logo-mark, .login-logo-mark { background: none !important; box-shadow: none !important; padding: 0; overflow: visible; }
.s-logo-mark img, .login-logo-mark img, .zd-logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; filter: drop-shadow(0 4px 10px rgba(var(--accent-rgb), .25)); }
.s-logo-mark { width: 36px; height: 36px; }
.login-logo-mark { width: 52px; height: 52px; }
.s-logo-mark.has-logo img { border-radius: 8px; filter: none; }
.s-brand-name { color: var(--gold) !important; font-size: 1.05rem !important; font-weight: 800 !important; letter-spacing: .2px !important; }
.s-brand-tag { color: rgba(var(--side-ink), .5) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: .68rem !important; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Sidebar: light surface in light mode, deep Nile in dark ── */
.sidebar { background: var(--surface) !important; border-inline-end: 1px solid var(--border) !important; box-shadow: 0 0 40px -20px rgba(var(--side-ink), .25); }
[data-theme="dark"] .sidebar { background: var(--bg-2) !important; }
.sidebar-brand, .sidebar-user { border-color: var(--border) !important; }
.s-search-btn { background: var(--surface-2) !important; border-color: var(--border) !important; color: rgba(var(--side-ink), .5) !important; }
.s-search-btn:hover { border-color: var(--border-gold) !important; color: var(--gold-fg) !important; }
.s-search-kbd { background: var(--surface) !important; border-color: var(--border) !important; color: rgba(var(--side-ink), .45) !important; }
.s-nav-scroll { scrollbar-color: rgba(var(--side-ink), .12) transparent !important; }
.s-nav-scroll::-webkit-scrollbar-thumb { background: rgba(var(--side-ink), .12) !important; }
.nav-group { color: rgba(var(--side-ink), .42) !important; font-size: .64rem !important; letter-spacing: .3px !important; text-transform: none !important; font-weight: 700 !important; }
#nav a, #nav-pinned-items a, #nav-favorites-items a, #nav-recent-items a {
  color: rgba(var(--side-ink), .72) !important; padding: 9px 12px !important; border-radius: 12px !important; font-size: .86rem !important; gap: 11px !important;
}
#nav a .nav-ico, #nav-pinned-items a .nav-ico, #nav-favorites-items a .nav-ico { width: 20px !important; opacity: 1 !important; display: inline-flex; align-items: center; justify-content: center; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
#nav a:hover, #nav-pinned-items a:hover, #nav-favorites-items a:hover { background: var(--surface-3) !important; color: rgb(var(--side-ink)) !important; }
#nav a:hover .nav-ico { transform: rotate(-8deg) scale(1.12); }
#nav a.active, #nav-pinned-items a.active, #nav-favorites-items a.active {
  background: var(--gold-a12) !important; color: var(--gold-fg) !important; font-weight: 700 !important;
}
[data-theme="dark"] #nav a.active { color: var(--gold) !important; }
#nav a.active::before { inset-inline-start: auto !important; inset-inline-end: 0; width: 3px !important; border-radius: 3px !important; box-shadow: none !important; }
.nav-badge { background: var(--pomegranate) !important; color: #fff !important; min-width: 20px !important; height: 18px !important; font-size: .62rem !important; padding: 0 6px !important; }
.nav-badge.gold { background: var(--pomegranate) !important; color: #fff !important; }
.nav-badge.amber { background: var(--saffron) !important; color: #fff !important; }
.side-user-info #user-name { color: rgb(var(--side-ink)) !important; }
.sidebar .link-btn, .s-collapse-btn { color: rgba(var(--side-ink), .5) !important; }
.sidebar .link-btn:hover, .s-collapse-btn:hover { color: var(--gold) !important; }
.s-collapse-btn:hover { background: var(--surface-3) !important; }
.sidebar.collapsed #nav a:hover::after { background: var(--navy) !important; color: #fff !important; }

/* ── Topbar ── */
.topbar { background: color-mix(in srgb, var(--surface) 85%, transparent) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border) !important; }
.topbar-search-btn { border-radius: 12px !important; padding: 7px 12px !important; min-width: 220px; justify-content: flex-start; gap: 8px; background: var(--surface-2) !important; }
.topbar-search-btn span { flex: 1; text-align: start; }
.topbar-search-btn kbd { font-family: var(--font-en) !important; }
.icon-btn { border-radius: 12px !important; }
.avatar { background: var(--grad) !important; color: var(--on-gold) !important; }

/* ── Surfaces: rounder, softer ── */
.card { border-radius: var(--nd-radius) !important; box-shadow: 0 1px 2px rgba(var(--side-ink), .04), 0 12px 32px -22px rgba(var(--side-ink), .35) !important; }
.stat { border-radius: var(--nd-radius) !important; transition: transform .3s cubic-bezier(.3,1.5,.5,1), box-shadow .3s !important; }
.stat:hover { transform: translateY(-3px); }
.stat-ico { border-radius: 14px !important; }
.btn { border-radius: 12px !important; }
.btn-primary { background: var(--grad) !important; color: var(--on-gold) !important; box-shadow: 0 8px 20px -10px rgba(var(--accent-rgb), .8) !important; position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset-block: 0; width: 40%; inset-inline-start: -50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: inset-inline-start .6s; pointer-events: none; }
.btn-primary:hover::after { inset-inline-start: 130%; }
.toast { border-radius: 14px !important; }

/* ── Login screen ── */
.login-side::before { background: radial-gradient(circle, rgba(var(--accent-rgb), .22), transparent 65%) !important; animation: nd-drift 16s ease-in-out infinite alternate; }
.login-side::after { background: radial-gradient(circle, color-mix(in srgb, var(--saffron) 22%, transparent), transparent 65%) !important; animation: nd-drift 20s ease-in-out infinite alternate-reverse; }
@keyframes nd-drift { to { transform: translate(60px, 40px) scale(1.15); } }
.login-brand-name { color: var(--gold-light) !important; }
.login-hero h1 span { background: linear-gradient(90deg, var(--gold-light), var(--saffron), var(--gold-light)) !important; background-size: 200% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; animation: nd-flow 6s linear infinite; }
@keyframes nd-flow { to { background-position: 200% 0; } }
.feat-icon { background: rgba(255,255,255,.06) !important; border-color: rgba(255,255,255,.1) !important; width: 40px !important; height: 40px !important; border-radius: 12px !important; }
.feat-icon .zd-duo { --ic1: #4FD6CE; --ic2: #FF8A92; }

/* ══ Workspace home ══ */
.nd-hero { margin-bottom: 22px; }
.nd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.nd-greet { font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -.3px; line-height: 1.3; }
.nd-wave { display: inline-block; transform-origin: 70% 70%; animation: nd-wave 2.2s ease-in-out 1; }
@keyframes nd-wave { 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } 50% { transform: none; } }
.nd-sub { margin-top: 4px; color: var(--text-3); font-size: .9rem; }
.nd-sub b { color: var(--text); }
.nd-red { color: var(--pomegranate) !important; }
.nd-actions { display: flex; gap: 8px; }

.nd-kpis { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
@media (max-width: 1100px) { .nd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nd-kpis { grid-template-columns: 1fr; } }
.nd-kpi { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--nd-radius); padding: 16px 18px 14px;
  box-shadow: 0 12px 32px -24px rgba(var(--side-ink), .45); transition: transform .3s cubic-bezier(.3,1.5,.5,1), border-color .3s; animation: nd-rise .6s cubic-bezier(.2,.8,.2,1) both; }
.nd-kpis .nd-kpi:nth-child(2) { animation-delay: .07s; } .nd-kpis .nd-kpi:nth-child(3) { animation-delay: .14s; } .nd-kpis .nd-kpi:nth-child(4) { animation-delay: .21s; }
.nd-kpi[role="button"] { cursor: pointer; }
.nd-kpi:hover { transform: translateY(-4px); border-color: var(--border-gold); }
.nd-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.nd-kpi-label { font-size: .8rem; color: var(--text-3); font-weight: 600; }
.nd-tile { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-a12); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.nd-kpi:hover .nd-tile { transform: rotate(-8deg) scale(1.1); }
.nd-kpi-val { font-family: var(--font-en); font-size: 1.85rem; font-weight: 800; color: var(--text); letter-spacing: -.5px; line-height: 1.1; direction: ltr; text-align: end; font-variant-numeric: tabular-nums; }
.nd-kpi-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 22px; font-size: .74rem; }
.nd-muted { color: var(--text-3); font-size: .74rem; }
.nd-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.nd-chip.ok { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.nd-chip.bad { background: color-mix(in srgb, var(--pomegranate) 15%, transparent); color: var(--pomegranate); }
.nd-chip.warn { background: color-mix(in srgb, var(--saffron) 18%, transparent); color: var(--amber-mid); }
[data-theme="dark"] .nd-chip.warn { color: var(--saffron); }
.nd-spark { display: block; width: 100%; height: 34px; margin-top: 8px; overflow: visible; }
.nd-spark .ln { fill: none; stroke: var(--gold); stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: nd-draw 1.4s .3s cubic-bezier(.2,.8,.2,1) forwards; }
.nd-spark .ar { fill: rgba(var(--accent-rgb), .12); opacity: 0; animation: nd-fade .8s .9s forwards; }
@keyframes nd-draw { to { stroke-dashoffset: 0; } }
@keyframes nd-fade { to { opacity: 1; } }
.nd-meter { height: 8px; border-radius: 999px; background: rgba(var(--side-ink), .08); margin-top: 18px; overflow: hidden; }
.nd-meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--glow-1)); transform-origin: right; animation: nd-grow-x 1.1s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes nd-grow-x { from { transform: scaleX(0); } }

.nd-row { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; }
@media (max-width: 1000px) { .nd-row { grid-template-columns: 1fr; } }
.nd-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--nd-radius); padding: 18px 20px; box-shadow: 0 12px 32px -24px rgba(var(--side-ink), .45); animation: nd-rise .6s .25s cubic-bezier(.2,.8,.2,1) both; }
.nd-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nd-card-head h3 { font-size: .95rem; font-weight: 700; color: var(--text); }
@keyframes nd-rise { from { opacity: 0; transform: translateY(18px); } }

.nd-bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 18px; }
.nd-bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.nd-bar i { display: block; width: 100%; max-width: 44px; height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(to top, var(--gold), var(--glow-1)); transform-origin: bottom;
  animation: nd-grow-y 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--d)); transition: filter .2s; }
.nd-bar i.alt { background: linear-gradient(to top, var(--saffron), var(--pomegranate)); }
.nd-bar:hover i { filter: brightness(1.12) saturate(1.1); }
@keyframes nd-grow-y { from { transform: scaleY(0); } }
.nd-bar-val { font-family: var(--font-en); font-size: .7rem; font-weight: 700; color: var(--text-2); opacity: 0; animation: nd-fade .5s forwards; animation-delay: calc(1s + var(--d, 0s)); }
.nd-bar-lbl { font-size: .7rem; color: var(--text-3); white-space: nowrap; }
.nd-empty { height: 190px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--text-3); font-size: .82rem; text-align: center; }

.nd-donut-wrap { display: flex; align-items: center; gap: 18px; justify-content: center; flex-wrap: wrap; min-height: 190px; }
.nd-donut { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
.nd-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.nd-track { fill: none; stroke: rgba(var(--side-ink), .08); stroke-width: 11; }
.nd-seg { fill: none; stroke-width: 11; stroke-linecap: round; stroke-dasharray: 0 var(--C); stroke-dashoffset: var(--off);
  animation: nd-arc 1.1s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.4s + var(--d)); }
@keyframes nd-arc { to { stroke-dasharray: var(--len) var(--C); } }
.nd-seg.s1 { stroke: var(--green); } .nd-seg.s2 { stroke: var(--saffron); } .nd-seg.s3 { stroke: var(--pomegranate); }
.nd-donut-c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.nd-donut-c b { font-family: var(--font-en); font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1; }
.nd-donut-c small { color: var(--text-3); font-size: .72rem; margin-top: 4px; }
.nd-legend { list-style: none; display: grid; gap: 10px; font-size: .82rem; min-width: 140px; }
.nd-legend li { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.nd-legend li b { margin-inline-start: auto; color: var(--text); font-family: var(--font-en); }
.nd-legend i { width: 10px; height: 10px; border-radius: 50%; }
.nd-legend i.s1 { background: var(--green); } .nd-legend i.s2 { background: var(--saffron); } .nd-legend i.s3 { background: var(--pomegranate); }

@media (prefers-reduced-motion: reduce) {
  .nd-kpi, .nd-card, .nd-spark .ln, .nd-spark .ar, .nd-meter i, .nd-bar i, .nd-bar-val, .nd-seg, .nd-wave, .login-side::before, .login-side::after, .login-hero h1 span { animation: none !important; }
  .nd-spark .ln { stroke-dashoffset: 0; } .nd-spark .ar, .nd-bar-val { opacity: 1; }
  .nd-seg { stroke-dasharray: var(--len) var(--C); }
}

/* ══ Login v2: live product stage ══ */
.login-side { padding: 48px 64px !important; justify-content: center; }
.login-brand { margin-bottom: 36px !important; }
.login-hero h1 { font-size: 2.6rem !important; }
.login-hero p { margin-bottom: 26px !important; }
.login-side > * { position: relative; z-index: 1; }
.login-side .nl-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.nl-stage { position: relative; height: 250px; max-width: 520px; margin-bottom: 26px; }
.nl-orbit { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px; border-radius: 50%; border: 1px dashed rgba(79,214,206,.18); animation: nl-spin 50s linear infinite; }
.nl-orbit span { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px);
  transform: rotate(var(--a)) translateY(-150px) rotate(calc(var(--a) * -1)); }
.nl-orbit span > svg { animation: nl-spin 50s linear infinite reverse; }
.nl-orbit .zd-duo, .nl-card .zd-duo { --ic1: #4FD6CE; --ic2: #FF8A92; }
@keyframes nl-spin { to { rotate: 360deg; } }

.nl-card { position: absolute; border-radius: 18px; padding: 14px 16px; color: rgba(255,255,255,.92);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7);
  animation: nl-float 7s ease-in-out infinite; }
.nl-par { translate: calc(var(--px, 0) * var(--d)) calc(var(--py, 0) * var(--d)); transition: translate .5s cubic-bezier(.2,.8,.2,1); }
@keyframes nl-float { 50% { transform: translateY(-10px); } }
.nl-kpi { inset-inline-end: 0; top: 18px; width: 250px; }
.nl-row { display: flex; align-items: center; gap: 10px; }
.nl-tile { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(79,214,206,.14); }
.nl-lbl { font-size: .75rem; color: rgba(255,255,255,.6); }
.nl-num { margin-top: 8px; font: 800 1.6rem/1 var(--font-en); letter-spacing: -.5px; direction: ltr; text-align: end; }
.nl-num em { font-style: normal; font-size: .7rem; font-weight: 700; color: #43D99A; background: rgba(67,217,154,.14); padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-inline-end: 6px; }
.nl-spark { display: block; width: 100%; height: 34px; margin-top: 8px; overflow: visible; }
.nl-spark .ln { fill: none; stroke: #4FD6CE; stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: nl-draw 2.4s .6s cubic-bezier(.2,.8,.2,1) forwards; }
.nl-spark .ar { fill: rgba(79,214,206,.16); }
@keyframes nl-draw { to { stroke-dashoffset: 0; } }

.nl-due { inset-inline-start: 10px; top: 4px; display: flex; align-items: center; gap: 12px; animation-delay: -2.5s; }
.nl-due b { display: block; font-size: .82rem; margin-bottom: 4px; }
.nl-chip { font-size: .68rem; font-weight: 700; color: #FF8A92; background: rgba(255,107,117,.16); padding: 2px 9px; border-radius: 999px; }
.nl-ring { width: 44px; height: 44px; transform: rotate(-90deg); }
.nl-ring circle { fill: none; stroke-width: 4.5; }
.nl-ring .bg { stroke: rgba(255,255,255,.1); }
.nl-ring .fg { stroke: #FF6B75; stroke-linecap: round; stroke-dasharray: 0 100; animation: nl-ring 1.6s .8s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes nl-ring { to { stroke-dasharray: 78 100; } }

.nl-bars { inset-inline-start: 60px; bottom: 16px; width: 170px; height: 92px; display: flex; align-items: flex-end; gap: 7px; animation-delay: -4.5s; }
.nl-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, #0B8C8C, #4FD6CE); transform-origin: bottom; animation: nl-bar 4s ease-in-out infinite; }
.nl-bars i:nth-child(even) { background: linear-gradient(to top, #E39A12, #FF6B75); animation-delay: .3s; }
.nl-bars i:nth-child(3n) { animation-delay: .6s; }
@keyframes nl-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }

.nl-toast { position: absolute; inset-inline-end: 24px; bottom: -6px; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: .78rem;
  background: rgba(255,255,255,.95); color: #082E33; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); animation: nl-toast 7s cubic-bezier(.2,.8,.2,1) 1.5s infinite both; }
.nl-toast span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #0E9F6E; color: #fff; font-size: .7rem; font-weight: 900; }
@keyframes nl-toast { 0% { opacity: 0; transform: translateY(16px) scale(.95); } 8%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-8px); } }

/* features → compact two-column chips */
.login-features { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px !important; max-width: 560px; }
.login-features .feat-item { gap: 10px !important; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); transition: background .25s, border-color .25s, transform .25s; }
.login-features .feat-item:hover { background: rgba(255,255,255,.07); border-color: rgba(79,214,206,.3); transform: translateY(-2px); }
.login-features .feat-text { font-size: .76rem !important; line-height: 1.55 !important; }
.login-features .feat-icon { width: 34px !important; height: 34px !important; }

/* form side: soft aurora + focus glow */
.login-card { overflow: hidden; }
.login-card::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; inset-block-start: -220px; inset-inline-end: -160px; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .16), transparent 65%); }
.login-card::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad-nile); }
.login-card > * { position: relative; }
.login-card input:focus { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14) !important; border-color: var(--gold) !important; }
.login-card-header h2 { font-size: 1.75rem !important; font-weight: 800 !important; }

@media (max-height: 760px) { .nl-stage { height: 210px; } .login-hero h1 { font-size: 2.2rem !important; } .login-brand { margin-bottom: 24px !important; } }
@media (prefers-reduced-motion: reduce) {
  .nl-orbit, .nl-orbit span > svg, .nl-card, .nl-bars i, .nl-toast, .nl-spark .ln, .nl-ring .fg { animation: none !important; }
  .nl-spark .ln { stroke-dashoffset: 0; } .nl-ring .fg { stroke-dasharray: 78 100; } .nl-toast { opacity: 1; }
}

/* OTP screen: the resend link inherited the sidebar's white-on-dark link colour
   and was invisible on the white card */
#otp-resend-btn { color: var(--gold) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-top: 2px; }
#otp-resend-btn:disabled { color: var(--muted) !important; text-decoration: none; cursor: default; }
#otp-resend-countdown { font-family: var(--font-en); margin-inline-start: 4px; }

/* ════════════════════════════════════════════════════════════
   Website look for every screen
   ════════════════════════════════════════════════════════════ */

/* icons that replace emoji */
.nd-emo { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.24em; flex-shrink: 0; }
.nd-t-ok   { --ic1: var(--green); --ic2: var(--green); }
.nd-t-bad  { --ic1: var(--pomegranate); --ic2: var(--pomegranate); }
.nd-t-warn { --ic1: var(--saffron); --ic2: var(--pomegranate); }
.nd-t-muted { --ic1: var(--muted); --ic2: var(--muted); }
.nd-t-empty .f { opacity: 0 !important; }
.btn .nd-emo, .badge .nd-emo { width: 1.1em; height: 1.1em; }
.btn-primary .nd-emo, .btn-danger .nd-emo { --ic1: currentColor; --ic2: currentColor; }
.btn-primary .nd-emo .f, .btn-danger .nd-emo .f { opacity: .25; }

/* page background: soft Nile aurora like the website hero */
.main { background:
  radial-gradient(ellipse 60% 40% at 85% -10%, rgba(var(--accent-rgb), .10), transparent 70%),
  radial-gradient(ellipse 45% 35% at 5% 0%, color-mix(in srgb, var(--saffron) 8%, transparent), transparent 70%),
  var(--bg) !important; }
#view { padding: 26px 30px !important; }
#view > * { animation: nd-rise .5s cubic-bezier(.2,.8,.2,1) both; }
#view > *:nth-child(2) { animation-delay: .05s; } #view > *:nth-child(3) { animation-delay: .1s; } #view > *:nth-child(4) { animation-delay: .15s; } #view > *:nth-child(n+5) { animation-delay: .2s; }

/* page headings: website section-title style */
.view-header { margin-bottom: 20px !important; }
.view-title { font-size: 1.55rem !important; font-weight: 800 !important; color: var(--text) !important; letter-spacing: -.3px; }
.view-subtitle { color: var(--text-3) !important; font-size: .88rem !important; margin-top: 4px; }
.topbar h2, #page-title { font-weight: 800 !important; font-size: 1.05rem !important; }

/* cards: rounded, soft, title with icon tile */
.card { border-radius: 20px !important; padding: 20px 22px !important; transition: border-color .25s, box-shadow .25s; }
.card:hover { border-color: rgba(var(--accent-rgb), .28); }
.card h3 { font-size: .98rem !important; font-weight: 800 !important; border-bottom-color: var(--border) !important; }
.card h3 > svg.ico { width: 34px !important; height: 34px !important; padding: 7px; border-radius: 11px; background: var(--gold-a12); flex-shrink: 0; }

/* stat tiles → website KPI cards */
.stats { gap: 16px !important; }
.stat { border-radius: 20px !important; padding: 18px !important; border: 1px solid var(--border) !important; background: var(--surface) !important;
  box-shadow: 0 12px 32px -24px rgba(var(--side-ink), .45) !important; overflow: hidden; position: relative; }
.stat::after { display: none !important; }
.stat:hover { border-color: rgba(var(--accent-rgb), .35) !important; }
.stat-ico { width: 44px !important; height: 44px !important; border-radius: 14px !important; display: grid !important; place-items: center; background: var(--gold-a12) !important; transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.stat:hover .stat-ico { transform: rotate(-8deg) scale(1.1); }
.stat-ico svg { width: 24px !important; height: 24px !important; }
.stat .i-green { background: color-mix(in srgb, var(--green) 14%, transparent) !important; }
.stat .i-amber { background: color-mix(in srgb, var(--saffron) 16%, transparent) !important; }
.stat .i-red   { background: color-mix(in srgb, var(--pomegranate) 14%, transparent) !important; }
.stat .num { font-weight: 800 !important; font-size: 1.9rem !important; letter-spacing: -.5px !important; }

/* chips (badges) like the website */
.badge { border-radius: 999px !important; padding: 3px 11px !important; font-weight: 700 !important; font-size: .72rem !important; border: 0 !important; }
.b-green { background: color-mix(in srgb, var(--green) 15%, transparent) !important; color: var(--green) !important; }
.b-amber { background: color-mix(in srgb, var(--saffron) 18%, transparent) !important; color: var(--amber-mid) !important; }
[data-theme="dark"] .b-amber { color: var(--saffron) !important; }
.b-red   { background: color-mix(in srgb, var(--pomegranate) 15%, transparent) !important; color: var(--pomegranate) !important; }
.b-blue  { background: var(--gold-a12) !important; color: var(--gold-fg) !important; }
[data-theme="dark"] .b-blue { color: var(--gold) !important; }
.b-gray  { background: rgba(var(--side-ink), .07) !important; color: var(--text-2) !important; }

/* buttons */
.btn { border-radius: 12px !important; font-weight: 700 !important; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s !important; }
.btn:active { transform: scale(.97); }
.btn-ghost, .btn-light { background: var(--surface) !important; border: 1px solid var(--border-2) !important; color: var(--text-2) !important; }
.btn-ghost:hover, .btn-light:hover { border-color: var(--gold) !important; color: var(--gold-fg) !important; background: var(--gold-a8) !important; }
[data-theme="dark"] .btn-ghost:hover, [data-theme="dark"] .btn-light:hover { color: var(--gold) !important; }
.btn-danger { background: linear-gradient(135deg, var(--pomegranate), color-mix(in srgb, var(--pomegranate) 75%, var(--saffron))) !important; color: #fff !important; border: 0 !important; }

/* inputs */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input[type="tel"], input:not([type]), input[type="search"], input[type="url"], select, textarea, .form-control, .form-input {
  border-radius: 12px !important; border-color: var(--border-2) !important; background: var(--surface) !important; transition: border-color .2s, box-shadow .2s !important; }
input:focus, select:focus, textarea:focus, .form-control:focus, .form-input:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14) !important; }
.field-label, label { color: var(--text-2) !important; font-weight: 600 !important; }

/* toolbar / filters */
.toolbar input, .toolbar select, .filter-bar input, .filter-bar select { border-radius: 12px !important; }

/* tables */
table { border-collapse: separate !important; border-spacing: 0; }
.data-table, .card table { border-radius: 16px; overflow: hidden; }
thead th { background: var(--surface-2) !important; color: var(--text-3) !important; font-weight: 700 !important; font-size: .72rem !important; border-bottom: 1px solid var(--border) !important; padding: 12px 14px !important; }
tbody td { border-bottom: 1px solid var(--border) !important; padding: 12px 14px !important; }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: var(--gold-a8) !important; }
tbody tr:last-child td { border-bottom: 0 !important; }

/* segmented tabs with a teal active pill */
.tabs { background: var(--surface) !important; border: 1px solid var(--border) !important; border-radius: 999px !important; padding: 4px !important; display: inline-flex !important; box-shadow: 0 10px 26px -20px rgba(var(--side-ink), .5); max-width: 100%; overflow-x: auto; }
.tab-btn { border-radius: 999px !important; font-weight: 700 !important; padding: 8px 16px !important; white-space: nowrap; }
.tab-btn.active { background: var(--grad) !important; color: var(--on-gold) !important; box-shadow: 0 8px 18px -8px rgba(var(--accent-rgb), .7) !important; }
.tab-btn.active .tab-count { background: rgba(255,255,255,.25) !important; color: inherit !important; }

/* modals: blurred backdrop, big rounded sheet, spring in */
.modal { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(4,19,21,.45) !important; }
.modal-box { border-radius: 24px !important; border: 1px solid var(--border) !important; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45) !important; animation: nd-sheet .35s cubic-bezier(.2,.9,.3,1.2) both; overflow: hidden; }
@keyframes nd-sheet { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-head { border-bottom-color: var(--border) !important; position: relative; }
.modal-head::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad-nile); }
.modal-head h3 { font-weight: 800 !important; font-size: 1.02rem !important; }
.modal-x { border-radius: 10px !important; }

/* empty states */
.empty, .empty-state { padding: 40px 20px !important; text-align: center; color: var(--text-3) !important; }
.empty-icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; display: grid !important; place-items: center; background: var(--gold-a12); font-size: 2rem; }
.empty-icon .nd-emo { width: 38px; height: 38px; }

/* loading spinner in the brand colours */
.spinner { border-color: rgba(var(--accent-rgb), .18) !important; border-top-color: var(--gold) !important; }

/* info grids (profile pages) */
.info-item { border-radius: 14px !important; }
.info-label { color: var(--text-3) !important; font-weight: 600 !important; }
.info-value { color: var(--text) !important; font-weight: 600 !important; }

/* toasts like the website success card */
.toast { background: var(--navy) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.08) !important; box-shadow: 0 18px 40px -14px rgba(0,0,0,.55) !important; animation: nd-toast .4s cubic-bezier(.2,.9,.3,1.2) both; }
[data-theme="dark"] .toast { background: #E4F3F0 !important; color: #082E33 !important; }
@keyframes nd-toast { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* nav pin/fav action buttons now hold icons */
.nav-action-btn .nd-emo { width: 13px; height: 13px; }

@media (prefers-reduced-motion: reduce) {
  #view > *, .modal-box, .toast { animation: none !important; }
}
/* icons sitting on a filled brand surface */
[style*="background:var(--grad)"] .nd-emo, .avatar .nd-emo, .tab-btn.active .nd-emo { --ic1: var(--on-gold) !important; --ic2: var(--on-gold) !important; }

/* ════════════════════════════════════════════════════════════
   Wow layer
   ════════════════════════════════════════════════════════════ */
@property --nd-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes nd-ang { to { --nd-ang: 360deg; } }
@keyframes nd-spin { to { rotate: 360deg; } }
@keyframes nd-floaty { 50% { transform: translateY(-9px); } }

/* ── Welcome banner (website hero on the home page) ── */
.nd-banner { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: center;
  border-radius: 26px; padding: 30px 32px; margin-bottom: 20px; color: #fff;
  background: linear-gradient(135deg, #041315 0%, #073235 45%, #0B4A4C 100%);
  box-shadow: 0 30px 60px -30px rgba(4,19,21,.75); animation: nd-rise .6s cubic-bezier(.2,.8,.2,1) both; }
@media (max-width: 1000px) { .nd-banner { grid-template-columns: 1fr; } .nd-banner-stage { display: none; } }
.nd-banner-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.nd-banner-fx::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to left, #000, transparent 75%); }
.nd-banner-fx i { position: absolute; border-radius: 50%; filter: blur(60px); animation: nd-drift 16s ease-in-out infinite alternate; }
.nd-banner-fx i:nth-child(1) { width: 340px; height: 340px; background: #13B5B0; opacity: .45; top: -140px; inset-inline-start: -60px; }
.nd-banner-fx i:nth-child(2) { width: 260px; height: 260px; background: #E39A12; opacity: .28; bottom: -140px; inset-inline-start: 38%; animation-delay: -5s; }
.nd-banner-fx i:nth-child(3) { width: 200px; height: 200px; background: #E8505B; opacity: .25; top: 20%; inset-inline-end: -60px; animation-delay: -9s; }
.nd-banner .nd-greet { color: #fff; font-size: 1.9rem; margin-top: 10px; }
.nd-name { background: linear-gradient(90deg, #4FD6CE, #F5B53A, #4FD6CE); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nd-flow 6s linear infinite; }
.nd-banner .nd-sub { color: rgba(255,255,255,.72); font-size: .95rem; }
.nd-banner .nd-sub b { color: #fff; }
.nd-banner .nd-red { color: #FF8A92 !important; }
.nd-date { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.75); padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.nd-banner .zd-duo { --ic1: #4FD6CE; --ic2: #FF8A92; }
.nd-banner .nd-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.nd-banner .nd-cta { background: linear-gradient(135deg, #27C2B9, #4FD6CE) !important; color: #03201E !important; padding: 9px 18px !important; box-shadow: 0 12px 28px -10px rgba(39,194,185,.8) !important; }
.nd-banner .nd-cta .zd-duo { --ic1: #03201E; --ic2: #03201E; }
.nd-banner .nd-ghost { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.18) !important; color: #fff !important; padding: 9px 18px !important; }
.nd-banner .nd-ghost:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; }
.nd-banner .btn { display: inline-flex; align-items: center; gap: 7px; }

.nd-banner-stage { position: relative; height: 210px; }
.nd-orbit { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px; border-radius: 50%; border: 1px dashed rgba(79,214,206,.25); animation: nd-spin 40s linear infinite; }
.nd-orbit span { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transform: rotate(var(--a)) translateY(-110px) rotate(calc(var(--a) * -1)); }
.nd-orbit span > svg { animation: nd-spin 40s linear infinite reverse; }
.nd-banner-logo { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px; filter: drop-shadow(0 0 22px rgba(245,181,58,.45)); animation: nd-floaty 5s ease-in-out infinite; }
.nd-glass { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; color: #fff; font-size: .78rem;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); animation: nd-floaty 6s ease-in-out infinite; }
.nd-glass b { display: block; font-weight: 700; }
.nd-glass small { display: block; color: rgba(255,255,255,.6); font-size: .7rem; }
.nd-glass em { display: inline-block; margin-top: 4px; font-style: normal; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.nd-glass em.bad { color: #FF8A92; background: rgba(255,107,117,.18); } .nd-glass em.warn { color: #F5B53A; background: rgba(245,181,58,.18); } .nd-glass em.ok { color: #43D99A; background: rgba(67,217,154,.18); }
.nd-g1 { top: 0; inset-inline-end: 0; animation-delay: -1s; }
.nd-g2 { bottom: 4px; inset-inline-start: 0; flex-direction: column; align-items: flex-start; gap: 2px; animation-delay: -3s; }
.nd-g2 b { font-family: var(--font-en); font-size: 1.25rem; }
.nd-g2 i { font-style: normal; font-size: .7rem; opacity: .7; }
.nd-g3 { bottom: 0; inset-inline-end: 6%; animation-delay: -4.5s; }
.nd-g3 b { display: inline; font-family: var(--font-en); }
.nd-ring { --p: 50; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(#FF6B75 calc(var(--p) * 1%), rgba(255,255,255,.12) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }

/* ── Every page header becomes a banner with its icon ── */
.view-header.nd-vh { position: relative; overflow: hidden; isolation: isolate; align-items: center !important; gap: 14px !important;
  padding: 20px 22px; border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(120deg, var(--surface) 0%, var(--surface) 55%, var(--gold-a8) 100%);
  box-shadow: 0 14px 34px -26px rgba(var(--side-ink), .5); }
.view-header.nd-vh::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%; inset-block-start: -150px; inset-inline-end: -80px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .22), transparent 65%); animation: nd-drift 14s ease-in-out infinite alternate; }
.view-header.nd-vh::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--grad-nile); opacity: .85; }
.view-header.nd-vh > div:not(.view-actions):not([class]) { flex: 1; min-width: 0; }
.nd-vh-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--gold-a12); border: 1px solid rgba(var(--accent-rgb), .2); box-shadow: 0 10px 24px -14px rgba(var(--accent-rgb), .8); animation: nd-pop .6s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes nd-pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
@media (max-width: 760px) { .view-header.nd-vh { flex-direction: row !important; flex-wrap: wrap; } }

/* ── Spotlight under the cursor + animated gradient border on hover ── */
.card, .stat, .nd-kpi, .nd-card { position: relative; isolation: isolate; }
.card::before, .stat::before, .nd-kpi::before, .nd-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .12), transparent 70%); }
.card:hover::before, .stat:hover::before, .nd-kpi:hover::before, .nd-card:hover::before { opacity: 1; }
.nd-kpi, .stat { border: 1px solid transparent !important;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--border), var(--border)) border-box !important; }
.nd-kpi:hover, .stat:hover {
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              conic-gradient(from var(--nd-ang), var(--gold), var(--saffron), var(--pomegranate), var(--glow-1), var(--gold)) border-box !important;
  box-shadow: 0 20px 40px -24px rgba(var(--accent-rgb), .55) !important; }
/* the border angle always turns, so hovering never restarts the entrance animation */
.nd-kpi { animation: nd-rise .6s cubic-bezier(.2,.8,.2,1) both, nd-ang 3s linear infinite; }
.nd-kpis .nd-kpi:nth-child(2) { animation-delay: .07s, 0s; } .nd-kpis .nd-kpi:nth-child(3) { animation-delay: .14s, 0s; } .nd-kpis .nd-kpi:nth-child(4) { animation-delay: .21s, 0s; }
.stat { animation: nd-ang 3s linear infinite; }

/* soft light that follows the mouse across the page */
#nd-glow { position: fixed; z-index: 0; left: 0; top: 0; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .07), transparent 65%);
  transform: translate(calc(var(--cx, -999px) - 50%), calc(var(--cy, -999px) - 50%)); }
.main { position: relative; z-index: 1; }
@media (hover: none) { #nd-glow { display: none; } }

/* ripple */
.nd-ripple { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .25; transform: scale(0); animation: nd-ripple .6s ease-out forwards; }
@keyframes nd-ripple { to { transform: scale(2.4); opacity: 0; } }

/* ── Sidebar: glowing active item, living logo ── */
#nav a.active { background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .16)) !important; box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .18); }
html[dir="rtl"] #nav a.active { background: linear-gradient(270deg, transparent, rgba(var(--accent-rgb), .16)) !important; }
#nav a.active .nav-ico { width: 28px !important; height: 28px; border-radius: 9px; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(var(--accent-rgb), .9); }
#nav a.active .nav-ico .zd-duo { --ic1: var(--on-gold); --ic2: var(--on-gold); }
#nav a.active::before { background: var(--grad-nile) !important; width: 3px !important; }
#nav a { transition: background .2s, color .2s, padding .2s !important; }
#nav a:hover { padding-inline-start: 16px !important; }
.s-logo-mark img { animation: nd-logo-glow 4s ease-in-out infinite; }
@keyframes nd-logo-glow { 50% { filter: drop-shadow(0 0 10px rgba(245,181,58,.55)); } }

/* ── Command palette (Ctrl+K) ── */
.cmd-box { border-radius: 24px !important; border: 1px solid var(--border) !important; max-width: 640px !important; box-shadow: 0 40px 90px -30px rgba(4,19,21,.6) !important; }
.cmd-box::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad-nile); }
.cmd-input-wrap { padding: 18px 20px !important; }
#cmd-input { font-size: 1.05rem !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.cmd-search-ico { color: var(--gold) !important; }
.cmd-item { margin: 2px 8px; border-radius: 14px; padding: 10px 12px !important; }
.cmd-item:hover, .cmd-item.focused { background: var(--gold-a12) !important; }
.cmd-item-ico { width: 36px !important; height: 36px !important; border-radius: 11px !important; background: var(--gold-a12) !important; }
.cmd-item.focused .cmd-item-arrow { color: var(--gold) !important; transform: translateX(-3px); transition: transform .2s; }
.cmd-section-label { font-weight: 800 !important; letter-spacing: 0 !important; text-transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .nd-banner, .nd-banner-fx i, .nd-name, .nd-orbit, .nd-orbit span > svg, .nd-banner-logo, .nd-glass, .nd-vh-tile, .view-header.nd-vh::before,
  .nd-kpi:hover, .stat:hover, .s-logo-mark img { animation: none !important; }
}

/* ── Language switch (AR / EN) ───────────────────────────── */
.zd-lang-btn{display:inline-flex;align-items:center;gap:4px;width:auto!important;padding:0 10px!important;font-weight:700;font-size:12.5px;letter-spacing:.02em}
.zd-lang-btn span{font-family:'IBM Plex Sans Arabic','Inter',sans-serif;line-height:1}
.zd-lang-fab{position:fixed;top:16px;inset-inline-end:16px;z-index:9999;display:inline-flex;align-items:center;gap:6px;
  padding:8px 14px;border-radius:999px;border:1px solid rgba(var(--accent-rgb),.35);
  background:color-mix(in srgb,var(--surface,#fff) 82%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  color:var(--gold);font:700 13px/1 'IBM Plex Sans Arabic','Inter',sans-serif;cursor:pointer;
  box-shadow:0 6px 22px -8px rgba(var(--accent-rgb),.45);transition:transform .18s ease,box-shadow .18s ease,background .18s}
.zd-lang-fab:hover{transform:translateY(-1px);box-shadow:0 10px 26px -8px rgba(var(--accent-rgb),.6);background:rgba(var(--accent-rgb),.12)}
.zd-lang-fab[hidden]{display:none}
.zd-theme-fab{inset-inline-end:84px;padding:8px 11px}
@media print{.zd-lang-fab{display:none}}

/* English (LTR) tweaks */
html.zd-en body{font-family:'Inter','IBM Plex Sans Arabic',system-ui,sans-serif}
html.zd-en th,html.zd-en td{text-align:start}
html.zd-en .nd-kpi,html.zd-en .nd-vh,html.zd-en .card{text-align:start}
html.zd-en .nd-kpi-val,html.zd-en .nl-num{text-align:start}

/* ══ Sign-up screen v2 ═══════════════════════════════════════ */
#signup-screen { background: var(--bg) !important; }
.su-wrap { display: grid; grid-template-columns: minmax(360px, 440px) 1fr; width: 100%; min-height: 100vh; }

/* brand side */
.su-side { position: sticky; top: 0; height: 100vh; align-self: start; overflow: hidden; background: var(--grad-full); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 48px 44px; }
.su-side::before, .su-side::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.su-side::before { width: 520px; height: 520px; inset-block-start: -180px; inset-inline-end: -220px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .30), transparent 65%); animation: nd-drift 16s ease-in-out infinite alternate; }
.su-side::after { width: 420px; height: 420px; inset-block-end: -200px; inset-inline-start: -160px;
  background: radial-gradient(circle, color-mix(in srgb, var(--saffron) 24%, transparent), transparent 65%); animation: nd-drift 20s ease-in-out infinite alternate-reverse; }
.su-side > * { position: relative; z-index: 1; }
.su-side .nl-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%); }
.su-brand { display: flex; align-items: center; gap: 12px; }
.su-brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(227,154,18,.35)); }
.su-brand b { display: block; font: 800 1.3rem/1.1 var(--font-en); color: var(--gold-light); letter-spacing: -.4px; }
.su-brand small { display: block; font: 600 .6rem/1.6 var(--font-en); letter-spacing: .22em; color: rgba(255,255,255,.45); }
.su-hero h1 { font-size: 2rem; line-height: 1.3; font-weight: 800; color: #fff; letter-spacing: -.5px; margin: 0 0 12px; }
.su-hero h1 span { background: linear-gradient(90deg, var(--gold-light), var(--saffron), var(--gold-light)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: nd-flow 6s linear infinite; }
.su-hero p { color: rgba(255,255,255,.62); font-size: .92rem; line-height: 1.8; margin: 0; max-width: 34ch; }

.su-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.su-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; position: relative; opacity: .55; transition: opacity .3s; }
.su-steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 15px; top: 44px; bottom: -6px; width: 2px;
  background: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.06)); }
.su-steps li.on { opacity: 1; }
.su-steps i { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 .85rem var(--font-en); font-style: normal;
  border: 1.5px solid rgba(255,255,255,.28); color: rgba(255,255,255,.8); background: rgba(255,255,255,.04); }
.su-steps li.on i { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 5px rgba(var(--accent-rgb),.22), 0 8px 20px -6px rgba(var(--accent-rgb),.8); }
.su-steps b { display: block; font-size: .95rem; color: #fff; }
.su-steps span { display: block; font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 2px; }

.su-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.su-perks li { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.82); line-height: 1.45;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.su-perk-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--accent-rgb),.18); }
.su-perk-ic svg { width: 18px; height: 18px; }

.su-trust { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); }
.su-avatars { display: flex; }
.su-avatars i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .8rem;
  color: #fff; border: 2px solid #062A2E; margin-inline-start: -8px; background: var(--grad); }
.su-avatars i:first-child { margin-inline-start: 0; }
.su-avatars i:nth-child(2) { background: linear-gradient(135deg, var(--saffron), #F2B544); }
.su-avatars i:nth-child(3) { background: linear-gradient(135deg, var(--pomegranate), #F07A82); }
.su-avatars i:nth-child(4) { background: rgba(255,255,255,.14); font-family: var(--font-en); }
.su-trust b { display: block; font: 800 .95rem var(--font-en); color: #fff; }
.su-trust span { display: block; font-size: .76rem; color: rgba(255,255,255,.55); }

/* form side */
.su-main { position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 48px 32px 64px; overflow: hidden;
  background: radial-gradient(900px 500px at 85% -10%, rgba(var(--accent-rgb),.10), transparent 60%),
              radial-gradient(700px 400px at 0% 110%, color-mix(in srgb, var(--saffron) 8%, transparent), transparent 60%), var(--bg); }
.su-card { position: relative; width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 40px 40px 28px; box-shadow: var(--sh-xl); overflow: hidden; animation: nd-rise .6s cubic-bezier(.2,.8,.2,1) both; }
.su-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--grad-nile); }
.su-head { margin-bottom: 26px; }
.su-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  color: var(--gold-fg); background: var(--gold-a12); border: 1px solid var(--border-gold); margin-bottom: 14px; }
[data-theme="dark"] .su-pill { color: var(--gold-light); }
.su-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.6); animation: su-ping 1.8s infinite; }
@keyframes su-ping { 70% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb),0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0); } }
.su-head h2 { font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -.5px; margin: 0 0 6px; }

.su-sec { padding: 20px 0; border-top: 1px dashed var(--border); }
.su-sec:first-of-type { border-top: 0; padding-top: 0; }
.su-sec-title { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.su-sec-title i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 800 .75rem var(--font-en); font-style: normal;
  color: var(--on-gold); background: var(--grad); box-shadow: var(--sh-gold); }
.su-sec-title em, .su-field em, .su-terms em { color: var(--pomegranate); font-style: normal; }

.su-products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.su-product { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 16px; cursor: pointer; border-radius: 16px;
  border: 1.5px solid var(--border); background: var(--surface-2); transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.su-product:hover { transform: translateY(-2px); border-color: var(--border-gold); box-shadow: var(--sh-md); }
.su-product input { position: absolute; opacity: 0; pointer-events: none; }
.su-product-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); transition: .2s; }
.su-product-ic svg { width: 24px; height: 24px; }
.su-product-txt b { display: block; font-size: .9rem; color: var(--text); margin-bottom: 4px; }
.su-product-txt small { display: block; font-size: .76rem; color: var(--text-3); line-height: 1.6; }
.su-check { position: absolute; top: 12px; inset-inline-end: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-2); background: var(--surface); transition: .2s; }
.su-product:has(input:checked) { border-color: var(--gold); background: var(--gold-a8); box-shadow: 0 0 0 4px var(--gold-a12); }
.su-product:has(input:checked) .su-product-ic { background: var(--gold-a12); border-color: var(--border-gold); }
.su-product:has(input:checked) .su-check, .su-plan.is-sel .su-plan-check { border-color: var(--gold); background: var(--gold)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.su-product:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.su-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.su-field { display: block; margin: 0; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.su-field.full { grid-column: 1 / -1; }
.su-field > span:first-child { display: block; margin-bottom: 7px; }
.su-input { position: relative; display: flex; align-items: center; }
.su-input > svg { position: absolute; inset-inline-start: 13px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .2s; }
.su-input input, .su-input select { width: 100%; height: 46px; padding-inline-start: 40px !important; border-radius: 12px !important;
  border: 1.5px solid var(--border) !important; background: var(--surface-2) !important; color: var(--text); font-size: .9rem;
  transition: border-color .2s, box-shadow .2s, background .2s; }
.su-input input:hover, .su-input select:hover { border-color: var(--border-2) !important; }
.su-input input:focus, .su-input select:focus { outline: none; border-color: var(--gold) !important; background: var(--surface) !important; box-shadow: var(--ring); }
.su-input:focus-within > svg { stroke: var(--gold); }
.su-input .pwd-toggle-btn { inset-inline-end: 8px; }
.su-strength { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.su-strength i { flex: 1; height: 4px; border-radius: 4px; background: var(--border); transition: background .3s; }
.su-strength b { min-width: 44px; font-size: .72rem; font-weight: 700; text-align: end; color: var(--muted); }
.su-strength[data-s="1"] i:nth-child(-n+1) { background: var(--pomegranate); }
.su-strength[data-s="2"] i:nth-child(-n+2) { background: var(--saffron); }
.su-strength[data-s="3"] i:nth-child(-n+3) { background: var(--gold-light); }
.su-strength[data-s="4"] i { background: var(--green); }
.su-strength[data-s="1"] b { color: var(--pomegranate); } .su-strength[data-s="2"] b { color: var(--saffron); }
.su-strength[data-s="3"] b { color: var(--gold); } .su-strength[data-s="4"] b { color: var(--green); }

.su-loading { color: var(--muted); font-size: .8rem; padding: 6px 0; }
.su-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.su-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface-2); transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.su-plan:hover { transform: translateY(-2px); border-color: var(--border-gold); box-shadow: var(--sh-md); }
.su-plan:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.su-plan.is-sel { border-color: var(--gold); background: var(--gold-a8); box-shadow: 0 0 0 4px var(--gold-a12); }
.su-plan.is-pop:not(.is-sel) { border-color: var(--border-gold); }
.su-plan-check { position: absolute; top: 12px; inset-inline-end: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-2); background: var(--surface); transition: .2s; }
.su-badge { align-self: flex-start; font-size: .64rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; color: var(--on-gold); background: var(--grad); }
.su-badge-free { background: var(--green-soft); color: var(--green-mid); }
.su-badge-muted { background: var(--gray-soft); color: var(--text-3); }
.su-plan-name { font-size: .88rem; color: var(--text); padding-inline-end: 22px; }
.su-plan-price { font-size: .78rem; color: var(--text-3); }
.su-plan-price strong { font: 800 1.25rem/1 var(--font-en); color: var(--text); letter-spacing: -.4px; }
.su-plan-price small { font-size: .72rem; margin-inline-start: 2px; }
.su-plan-note { font-size: .76rem; color: var(--text-3); }

.su-terms { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; margin: 6px 0 16px; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .86rem; line-height: 1.6; color: var(--text-2); }
.su-terms input { margin: 3px 0 0 !important; flex: none; width: 17px !important; height: 17px !important; padding: 0 !important; accent-color: var(--gold); cursor: pointer; }
.su-terms a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.su-submit { display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 14px !important;
  font-size: 1rem !important; position: relative; overflow: hidden; }
.su-submit svg { transition: transform .2s; }
.su-submit:hover svg { transform: translateX(-4px); }
html[dir="ltr"] .su-submit svg { transform: scaleX(-1); }
html[dir="ltr"] .su-submit:hover svg { transform: scaleX(-1) translateX(-4px); }
.su-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: .74rem; color: var(--muted); }
.su-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--text-3); }

/* OTP icon */
.su-otp-ic { width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 20px; display: grid; place-items: center;
  background: var(--gold-a12); border: 1px solid var(--border-gold); box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb),.6); }
.su-otp-ic svg { width: 34px; height: 34px; }

@media (max-width: 1080px) {
  .su-wrap { grid-template-columns: 1fr; }
  .su-side { position: relative; height: auto; padding: 32px 24px; gap: 20px; }
  .su-steps, .su-trust, .su-hero p { display: none; }
  .su-hero h1 { font-size: 1.5rem; margin: 0; }
}
@media (max-width: 640px) {
  .su-main { padding: 20px 12px 40px; }
  .su-card { padding: 28px 18px 20px; border-radius: 18px; }
  .su-products, .su-grid { grid-template-columns: 1fr; }
  .su-perks li { padding: 8px; font-size: .74rem; gap: 8px; }
  .su-perk-ic { width: 26px; height: 26px; }
  .su-plans { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .su-side::before, .su-side::after, .su-hero h1 span, .su-dot, .su-card { animation: none !important; } }

/* ERP module code next to the menu label (FIN, BUD, …) */
.nav-code { font-size: .6rem; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; flex: none;
  color: var(--teal, #0B8C8C); background: rgba(11,140,140,.1); font-family: Inter, system-ui, sans-serif; direction: ltr; }
#nav a.active .nav-code { background: rgba(255,255,255,.22); color: inherit; }

/* Platform admin: sub-items under "المستأجرون" */
#pa-nav a.pa-nav-sub { font-size: .8rem; padding-inline-start: 34px; opacity: .85; }
#pa-nav a.pa-nav-sub.active { opacity: 1; }
