/* Mohammed Moghazi — personal site. Dark "observatory" theme: deep navy, gold and data colours. */
:root {
  --bg: #070b16; --bg-2: #0b1122; --panel: rgba(255, 255, 255, .035); --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
  --ink: #eef1f8; --ink-2: #b9c0d3; --muted: #7d859c;
  --gold: #e8c57a; --gold-2: #b8883a; --cyan: #62d6ff; --violet: #9b8cff; --mint: #5ee6a8; --rose: #ff8fb1;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ar: 'Readex Pro', 'Segoe UI', system-ui, sans-serif;
  --ar-display: 'Alexandria', 'Readex Pro', sans-serif;
  --r: 22px;
  --wrap: 1200px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
html { overflow-x: clip; }
body { font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[data-lang="ar"] body { font-family: var(--ar); }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(232, 197, 122, .35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; top: -60px; inset-inline-start: 12px; z-index: 99; background: var(--gold); color: #111; padding: 8px 12px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 10px; }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; }

/* ── nav ── */
.nav { position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 50; width: min(var(--wrap), calc(100% - 28px));
  display: flex; align-items: center; gap: 18px; padding: 10px 12px 10px 14px; border-radius: 18px;
  background: rgba(10, 15, 30, .55); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(8, 12, 24, .82); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mono { width: 38px; height: 38px; flex: none; }
.brand span { display: grid; line-height: 1.2; }
.brand b { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.links { display: flex; gap: 2px; margin-inline-start: auto; }
.links a { text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.links a:hover, .links a.on { color: var(--ink); background: var(--panel-2); }
.lang { font: 600 13.5px/1 var(--sans); color: var(--bg); background: linear-gradient(135deg, #f3d79a, #c9963f); border: 0; border-radius: 11px; padding: 10px 14px; cursor: pointer; }
[data-lang="en"] .lang { font-family: var(--ar); }
[data-lang="ar"] .lang { font-family: var(--sans); }

/* ── hero ── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate; }
#galaxy { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; cursor: grab; }
#galaxy:active { cursor: grabbing; }
.hero-glow { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 50% at 70% 45%, rgba(98, 214, 255, .10), transparent 70%),
  radial-gradient(45% 45% at 20% 70%, rgba(232, 197, 122, .10), transparent 70%),
  radial-gradient(80% 80% at 50% 120%, rgba(155, 140, 255, .14), transparent 70%), var(--bg); }
.hero-inner { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; align-items: center; pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(94, 230, 168, .18); animation: beat 2.4s infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 8px rgba(94, 230, 168, 0); } }
h1 { margin: 0; font: 400 clamp(44px, 6.3vw, 96px)/.98 var(--display); letter-spacing: -.035em; }
h1 .l1 { display: block; color: var(--ink); }
h1 .l2 { display: block; font-style: italic; background: linear-gradient(100deg, #fbe7b8 0%, #e8c57a 40%, #b8883a 75%, #f6dca0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
[data-lang="ar"] h1 { font-family: var(--ar-display); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; font-size: clamp(46px, 6.6vw, 98px); }
[data-lang="ar"] h1 .l2 { font-style: normal; }
.lead { max-width: 33em; margin: 26px 0 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.6; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn.gold { color: #120d04; background: linear-gradient(135deg, #f6dfa6, #d8a650); box-shadow: 0 10px 30px rgba(216, 166, 80, .28); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(216, 166, 80, .38); }
.btn.ghost { border: 1px solid var(--line-2); background: var(--panel); }
.btn.ghost:hover { background: var(--panel-2); transform: translateY(-2px); }
.galaxy-note { display: flex; align-items: center; gap: 10px; margin: 36px 0 0; font-size: 13px; color: var(--muted); max-width: 30em; }
.pulse { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }

.portrait { position: relative; margin: 0; justify-self: center; width: min(420px, 100%); aspect-ratio: 4 / 5; transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.portrait-ring { position: absolute; inset: -18px; border-radius: 36px; background: conic-gradient(from 210deg, rgba(232,197,122,.0), rgba(232,197,122,.65), rgba(98,214,255,.45), rgba(155,140,255,.4), rgba(232,197,122,0)); filter: blur(22px); opacity: .55; animation: spin 14s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.portrait-frame { position: absolute; inset: 0; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); background: linear-gradient(160deg, #1a2440, #0b1122); box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback { display: none; position: absolute; inset: 0; place-items: center; font: 300 120px/1 var(--display); color: rgba(232,197,122,.55); letter-spacing: -.04em;
  background: radial-gradient(70% 60% at 50% 35%, rgba(98,214,255,.16), transparent), linear-gradient(160deg, #18213b, #0a0f1f); }
.no-photo .portrait-fallback { display: grid; }
.no-photo img { display: none; }
.portrait figcaption { position: absolute; left: -26px; bottom: 26px; display: grid; gap: 8px; transform: translateZ(40px); }
[dir="rtl"] .portrait figcaption { left: auto; right: -26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 8px 13px; border-radius: 12px; font-size: 12.5px; font-weight: 500;
  background: rgba(10, 15, 30, .72); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip i.g { background: var(--gold); } .chip i.c { background: var(--cyan); } .chip i.p { background: var(--violet); }
.legend { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; width: min(900px, 92%); font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.scroll-cue { position: absolute; right: 28px; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ── numbers ── */
.numbers { position: relative; z-index: 1; width: min(var(--wrap), calc(100% - 40px)); margin: -10px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); overflow: hidden; }
.num { padding: 30px 26px; display: grid; gap: 6px; }
.num + .num { border-inline-start: 1px solid var(--line); }
.num b { font: 400 clamp(38px, 4.4vw, 56px)/1 var(--display); letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #c9cfe0); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: lining-nums tabular-nums; }
.num span { color: var(--muted); font-size: 14px; }

/* ── sections ── */
.section { position: relative; z-index: 1; width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; padding: clamp(90px, 12vw, 150px) 0 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.kicker { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
[data-lang="ar"] .kicker { letter-spacing: 0; font-size: 14px; }
h2 { margin: 0; font: 400 clamp(36px, 5vw, 64px)/1.04 var(--display); letter-spacing: -.025em; }
[data-lang="ar"] h2 { font-family: var(--ar-display); font-weight: 700; line-height: 1.35; letter-spacing: -.005em; font-size: clamp(32px, 4.4vw, 56px); }
[data-lang="ar"] body { font-weight: 300; line-height: 1.85; }
[data-lang="ar"] .lead, [data-lang="ar"] .sub, [data-lang="ar"] p { line-height: 1.9; }
[data-lang="ar"] b, [data-lang="ar"] strong, [data-lang="ar"] .btn { font-weight: 500; }
.sub { margin: 16px 0 0; color: var(--ink-2); font-size: 17px; }

/* research */
.research-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.thesis-card { position: relative; padding: 34px; border-radius: 26px; border: 1px solid var(--line-2); background:
  radial-gradient(120% 90% at 0% 0%, rgba(232,197,122,.12), transparent 55%), radial-gradient(100% 80% at 100% 100%, rgba(98,214,255,.10), transparent 60%), var(--bg-2);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); transform-style: preserve-3d; transition: transform .3s; }
.thesis-card .tag { display: inline-block; margin: 0 0 18px; padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--mint); background: rgba(94,230,168,.1); border: 1px solid rgba(94,230,168,.25); }
.thesis-card h3 { margin: 0 0 26px; font: 400 clamp(22px, 2.2vw, 28px)/1.3 var(--display); }
[data-lang="ar"] .thesis-card h3 { font-family: var(--ar-display); font-weight: 600; line-height: 1.7; font-size: clamp(19px, 1.9vw, 24px); }
.thesis-card dl { margin: 0; display: grid; gap: 14px; }
.thesis-card dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.thesis-card dt { color: var(--muted); font-size: 13.5px; }
.thesis-card dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.questions { display: grid; gap: 14px; }
.q { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, background .2s; }
.q:hover { border-color: rgba(232,197,122,.4); background: var(--panel-2); }
.qn { font: 400 30px/1 var(--display); color: var(--gold); }
.q p { margin: 0; font-size: 16.5px; color: var(--ink); }
.why { margin: 10px 0 0; padding: 18px 22px; border-inline-start: 2px solid var(--gold); color: var(--ink-2); font-size: 15px; background: linear-gradient(90deg, rgba(232,197,122,.08), transparent); border-radius: 4px; }
[dir="rtl"] .why { background: linear-gradient(270deg, rgba(232,197,122,.08), transparent); }

/* model */
.model-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: stretch; padding: 26px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 40%, rgba(98,214,255,.07), transparent), var(--bg-2); }
#modelSvg { width: 100%; height: auto; overflow: visible; }
#modelSvg .hp { fill: none; stroke: rgba(98,214,255,.55); stroke-width: 2.4; marker-end: url(#arr); color: rgba(98,214,255,.8); stroke-dasharray: 6 9; animation: flow 1.6s linear infinite; cursor: pointer; transition: stroke .2s, stroke-width .2s, opacity .2s; }
#modelSvg .hp.direct { stroke: rgba(232,197,122,.45); color: rgba(232,197,122,.75); stroke-dasharray: 2 8; }
#modelSvg .hp.main { stroke: rgba(155,140,255,.85); color: #9b8cff; stroke-width: 3.4; stroke-dasharray: 10 8; }
#modelSvg .hp.mod { stroke: rgba(94,230,168,.8); color: #5ee6a8; stroke-dasharray: 4 6; }
#modelSvg .hp:hover, #modelSvg .hp.on { stroke-width: 4.6; filter: url(#glow); }
#modelSvg.focus .hp:not(.on) { opacity: .18; }
@keyframes flow { to { stroke-dashoffset: -30; } }
#modelSvg .node rect { fill: url(#nodeG); stroke: var(--line-2); stroke-width: 1.2; }
#modelSvg .node text { fill: var(--ink); font: 600 16px var(--sans); text-anchor: middle; }
#modelSvg .node text.s { fill: var(--ink-2); font-weight: 400; font-size: 14px; }
[data-lang="ar"] #modelSvg .node text { font-family: var(--ar); }
#modelSvg .node.ct rect { stroke: rgba(98,214,255,.7); fill: rgba(98,214,255,.10); }
#modelSvg .node.ci rect { stroke: rgba(155,140,255,.8); fill: rgba(155,140,255,.12); }
#modelSvg .node.se rect { stroke: rgba(94,230,168,.7); fill: rgba(94,230,168,.09); }
#modelSvg .node.q rect { stroke: rgba(255,143,177,.5); }
#modelSvg .grp { fill: var(--muted); font: 600 12px var(--sans); text-anchor: middle; letter-spacing: .18em; text-transform: uppercase; }
[data-lang="ar"] #modelSvg .grp { font-family: var(--ar); letter-spacing: 0; font-size: 14px; }
.h-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.h-id { margin: 0; font: 400 46px/1 var(--display); color: var(--gold); }
.h-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); min-height: 7.2em; }
.h-legend { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.h-legend span { display: flex; align-items: center; gap: 10px; }
.h-legend i { width: 28px; height: 0; border-top: 2.5px dashed; }
.lg-ind { border-color: var(--cyan); } .lg-dir { border-color: var(--gold); border-top-style: dotted !important; } .lg-mod { border-color: var(--mint); }
.h-foot { margin: 0; font-size: 12.5px; color: var(--muted); }

/* evidence */
.ev-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.ev-card { margin: 0; padding: 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 18px; }
.ev-card.wide { grid-column: 1 / -1; }
.ev-card figcaption { color: var(--ink-2); font-size: 14.5px; }
.ev-card figcaption b { font: 400 26px/1 var(--display); color: var(--gold); margin-inline-end: 6px; }
.bars { position: relative; height: 260px; display: flex; align-items: flex-end; gap: 3px; padding-bottom: 26px; border-bottom: 1px solid var(--line); direction: ltr; }
.bar { position: relative; flex: 1; min-width: 4px; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--gold), rgba(232,197,122,.25)); height: 0; transition: height 1.1s cubic-bezier(.2,.8,.2,1); cursor: default; }
.bar.old { background: linear-gradient(180deg, rgba(155,140,255,.9), rgba(155,140,255,.2)); }
.bar.gap { background: rgba(255,255,255,.05); }
.bar:hover { filter: brightness(1.3); }
.bar .yl { position: absolute; top: 100%; left: 50%; translate: -50% 8px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.bars .era { position: absolute; top: 0; bottom: 26px; right: 0; width: 13%; border-radius: 10px; background: rgba(232,197,122,.06); border: 1px dashed rgba(232,197,122,.35); }
.bars .era span { position: absolute; top: 8px; left: 50%; translate: -50% 0; font-size: 11px; color: var(--gold); white-space: nowrap; }
.donut-wrap { position: relative; width: 220px; margin: 0 auto; }
#donut { width: 220px; height: 220px; rotate: -90deg; }
#donut circle { fill: none; stroke-width: 26; transition: stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1), opacity .2s; cursor: default; }
#donut circle:hover { opacity: .8; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c b { font: 400 44px/1 var(--display); }
.donut-c span { color: var(--muted); font-size: 13px; }
.donut-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 13.5px; color: var(--ink-2); }
.donut-l li { display: flex; align-items: center; gap: 8px; }
.donut-l i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.donut-l b { margin-inline-start: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.gap { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 26px; align-items: center; }
.gap-col { display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; }
.gap-col .big { font: 400 56px/1 var(--display); color: var(--violet); }
.gap-col .big.c { color: var(--gold); }
.gap-bar { display: flex; height: 22px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.05); }
.gap-bar span { width: 0; transition: width 1.3s cubic-bezier(.2,.8,.2,1); }
.gap-bar.in span { width: var(--w); }
.gap-bar .s1 { background: linear-gradient(90deg, #6b5ef0, #9b8cff); }
.gap-bar .s2 { background: linear-gradient(90deg, #d8a650, #f3d79a); box-shadow: 0 0 20px rgba(232,197,122,.6); }
.gap-bar .s3 { background: rgba(255,255,255,.12); }

/* products */
.prod-list { display: grid; gap: 28px; }
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 46px; align-items: center; padding: 34px; border-radius: 30px; border: 1px solid var(--line);
  background: radial-gradient(90% 120% at 100% 0%, var(--tint, rgba(98,214,255,.10)), transparent 60%), var(--bg-2); overflow: hidden; }
.prod:nth-child(even) .prod-media { order: -1; }
.prod-k { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, var(--gold)); }
[data-lang="ar"] .prod-k { letter-spacing: 0; font-size: 13.5px; }
.prod h3 { margin: 0 0 10px; font: 400 clamp(32px, 3.6vw, 46px)/1.05 var(--display); }
[data-lang="ar"] .prod h3 { font-family: var(--ar-display); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.prod .one { margin: 0 0 18px; color: var(--ink-2); font-size: 16.5px; }
.prod ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prod li { padding: 7px 12px; border-radius: 10px; font-size: 13px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); }
.prod-stats { display: flex; gap: 26px; margin-bottom: 24px; }
.prod-stats div { display: grid; }
.prod-stats b { font: 400 30px/1 var(--display); color: var(--accent, var(--gold)); }
.prod-stats span { font-size: 12.5px; color: var(--muted); }
.prod .btn { padding: 12px 18px; font-size: 14px; }
.prod-media { position: relative; perspective: 1400px; min-height: 340px; }
.browser { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0d1324; box-shadow: 0 40px 90px rgba(0,0,0,.55);
  transform: rotateY(-14deg) rotateX(6deg); transform-origin: center; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.prod:nth-child(even) .browser { transform: rotateY(14deg) rotateX(6deg); }
.prod:hover .browser { transform: rotateY(0) rotateX(0); }
.browser .bar-top { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #141b30; border-bottom: 1px solid var(--line); }
.browser .bar-top i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.browser .bar-top i:nth-child(2) { background: #febc2e; } .browser .bar-top i:nth-child(3) { background: #28c840; }
.browser .bar-top span { margin-inline-start: 12px; font-size: 11px; color: var(--muted); direction: ltr; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone { position: absolute; width: 27%; right: -2%; bottom: -24px; border-radius: 26px; padding: 7px; background: #05070d; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 60px rgba(0,0,0,.6);
  transform: translateZ(80px) rotateY(-8deg); transition: transform .6s; }
.prod:nth-child(even) .phone { right: auto; left: -2%; transform: translateZ(80px) rotateY(8deg); }
.prod:hover .phone { transform: translateZ(80px) translateY(-10px); }
.phone img { border-radius: 20px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.private { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 52px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
[dir="rtl"] .steps li:not(:last-child)::after { right: auto; left: -21px; background: linear-gradient(270deg, var(--gold), transparent); }
.sn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font: 400 22px/1 var(--display); color: #120d04; background: linear-gradient(135deg, #f6dfa6, #d8a650); margin-bottom: 20px; }
.steps h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* contact */
.contact { padding-bottom: 120px; }
.contact-card { position: relative; padding: clamp(36px, 6vw, 70px); border-radius: 32px; text-align: center; border: 1px solid rgba(232,197,122,.3); overflow: hidden;
  background: radial-gradient(70% 90% at 50% 0%, rgba(232,197,122,.16), transparent 60%), radial-gradient(60% 60% at 50% 120%, rgba(98,214,255,.12), transparent), var(--bg-2); }
.contact-card p { max-width: 38em; margin: 18px auto 0; color: var(--ink-2); font-size: 17px; }
.contact-card h2 { max-width: 16em; margin: 0 auto; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.contact-links a { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 14.5px; border: 1px solid var(--line-2); background: var(--panel); transition: background .2s, transform .2s; }
.contact-links a:hover { background: var(--panel-2); transform: translateY(-2px); }
.contact-links svg { width: 18px; height: 18px; }
.foot { position: relative; z-index: 1; width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 26px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* tooltip + reveal */
.tip { position: fixed; z-index: 80; pointer-events: none; padding: 7px 11px; border-radius: 9px; font-size: 12.5px; background: rgba(10,15,30,.92); border: 1px solid var(--line-2); color: var(--ink); white-space: nowrap; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.tilt { will-change: transform; }

/* ── responsive ── */
@media (max-width: 1020px) {
  .links { display: none; }
  .lang { margin-inline-start: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: start; }
  .portrait { width: min(340px, 82%); }
  .research-grid, .model-wrap, .ev-grid, .prod { grid-template-columns: 1fr; }
  .prod:nth-child(even) .prod-media { order: 0; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .num { border-inline-start: 0 !important; border-top: 1px solid var(--line); }
  .num:nth-child(-n+2) { border-top: 0; }
  .num:nth-child(even) { border-inline-start: 1px solid var(--line) !important; }
  .num:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .legend { display: none; }
}
@media (max-width: 560px) {
  .nav { top: 8px; padding: 8px 10px; }
  .brand small { display: none; }
  .hero { padding-top: 104px; }
  .portrait figcaption { left: 8px; bottom: 12px; } [dir="rtl"] .portrait figcaption { right: 8px; }
  .thesis-card { padding: 24px; } .thesis-card dl div { grid-template-columns: 1fr; gap: 2px; }
  .prod { padding: 22px; gap: 28px; } .prod-media { min-height: 0; }
  .phone { width: 30%; bottom: -14px; }
  .model-wrap { padding: 14px; }
  .bars { height: 200px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.prod-media.noimg .browser img { display: none; }
.prod-media.noimg .browser::after { content: ''; display: block; aspect-ratio: 16 / 10; background: radial-gradient(60% 60% at 50% 40%, var(--tint), transparent), repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 28px), #0d1324; }
/* soft shade behind the hero text so the galaxy never fights the words */
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 11, 22, .92) 0%, rgba(7, 11, 22, .72) 34%, rgba(7, 11, 22, 0) 62%); }
[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(7, 11, 22, .92) 0%, rgba(7, 11, 22, .72) 34%, rgba(7, 11, 22, 0) 62%); }
@media (max-width: 1020px) { .hero::after { background: linear-gradient(180deg, rgba(7, 11, 22, .85) 0%, rgba(7, 11, 22, .55) 45%, rgba(7, 11, 22, .2) 70%); } }
.hero-text h1, .hero-text .lead { text-shadow: 0 2px 24px rgba(7, 11, 22, .8); }

/* ── about ── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-text h2 { margin-bottom: 26px; }
.about-text p { margin: 0 0 16px; color: var(--ink-2); font-size: 16.5px; }
.about-text .about-lead { color: var(--ink); font-size: 19px; line-height: 1.65; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.about-tags span { padding: 8px 13px; border-radius: 11px; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); }
.journey { list-style: none; margin: 34px 0 0; padding: 0; position: relative; display: grid; gap: 18px; }
.journey::before { content: ''; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 39px; width: 2px; background: linear-gradient(180deg, rgba(155,140,255,.6), var(--gold)); }
.journey > li { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 18px; align-items: start; }
.journey .yr { position: relative; z-index: 1; display: grid; place-items: center; height: 44px; border-radius: 14px; font: 600 15px/1 var(--sans); color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); }
.journey > li.now .yr { color: #120d04; background: linear-gradient(135deg, #f6dfa6, #d8a650); border: 0; box-shadow: 0 0 0 6px rgba(232,197,122,.14); }
.journey > li > div { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.journey h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.journey p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--gold); background: rgba(232,197,122,.1); border: 1px solid rgba(232,197,122,.28); }
.journey > li.now .badge { color: var(--mint); background: rgba(94,230,168,.1); border-color: rgba(94,230,168,.28); }

/* ── publications ── */
.rstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 26px; }
.rs { padding: 22px 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); display: grid; gap: 6px; }
.rs b { font: 400 40px/1 var(--display); color: var(--ink); font-variant-numeric: lining-nums; }
.rs b { color: var(--gold); }
.rs span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.pubs { display: grid; gap: 14px; }
.pub { padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 8px; }
.pub-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.pub-k .pt { padding: 4px 9px; border-radius: 7px; font-weight: 600; color: var(--cyan); background: rgba(98,214,255,.09); }
.pub.thesis .pub-k .pt { color: var(--violet); background: rgba(155,140,255,.1); }
.pub-k .ps { padding: 4px 9px; border-radius: 7px; font-weight: 600; }
.pub-k .ps.inprogress { color: var(--mint); background: rgba(94,230,168,.1); } .pub-k .ps.completed { color: var(--gold); background: rgba(232,197,122,.1); }
.pub-k .py { margin-inline-start: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.pub h3 { margin: 0; font: 400 20px/1.4 var(--display); text-align: left; }
.pub h3 a { text-decoration: none; } .pub h3 a:hover { color: var(--gold); }
.pub .pa { margin: 0; font-size: 14px; color: var(--ink-2); text-align: left; }
.pub .pv { margin: 0; font-size: 14px; color: var(--muted); }
.pub-empty { margin: 0; padding: 22px 24px; border-radius: 20px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 15px; text-align: center; }

/* ── services ── */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.svc-grid .svc { grid-column: span 2; }
.svc-grid .svc:nth-child(4), .svc-grid .svc:nth-child(5) { grid-column: span 3; }
@media (max-width: 1020px) { .svc-grid { grid-template-columns: 1fr 1fr; } .svc-grid .svc, .svc-grid .svc:nth-child(4) { grid-column: span 1; } .svc-grid .svc:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } .svc-grid .svc:nth-child(5) { grid-column: auto; } }
.svc { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; transition: transform .3s, border-color .3s; }
.svc::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(232,197,122,.55), transparent 40%, rgba(98,214,255,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.svc:hover { transform: translateY(-4px); } .svc:hover::before { opacity: 1; }
.svc-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: var(--gold); background: rgba(232,197,122,.1); border: 1px solid rgba(232,197,122,.25); }
.svc-ic svg { width: 24px; height: 24px; }
.svc h3 { margin: 4px 0 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.svc p { margin: 0; color: var(--ink-2); font-size: 14.5px; flex: 1; }
.svc a { align-self: flex-start; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--gold); }
[dir="rtl"] .svc a span { display: inline-block; transform: scaleX(-1); }
.num.visitors b { background: linear-gradient(180deg, #a6f4cf, #5ee6a8); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 1020px) {
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) { .rstats { grid-template-columns: repeat(2, 1fr); } .journey > li { grid-template-columns: 64px minmax(0, 1fr); } .journey::before { inset-inline-start: 31px; } }

/* app icons, store badges, phone gallery, DOI line */
.prod h3 { display: flex; align-items: center; gap: 14px; }
.app-ic { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 8px 24px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); }
.prod-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 11px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; transition: transform .2s, border-color .2s; }
.store:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.45); }
.store svg { width: 22px; height: 22px; }
.store span { display: grid; line-height: 1.1; font-size: 15px; font-weight: 600; direction: ltr; text-align: left; }
.store small { font-size: 10px; font-weight: 400; opacity: .8; }
.prod-media.phones { display: flex; justify-content: center; align-items: flex-end; gap: 14px; perspective: 1400px; min-height: 0; }
.phone.solo { position: relative; right: auto; left: auto; bottom: auto; width: 31%; transform: none; transition: transform .5s; }
.phone.solo:nth-child(1) { transform: translateY(18px) rotate(-5deg); }
.phone.solo:nth-child(2) { transform: translateY(-14px); z-index: 1; width: 34%; }
.phone.solo:nth-child(3) { transform: translateY(18px) rotate(5deg); }
.prod:hover .phone.solo:nth-child(1) { transform: translateY(6px) rotate(-7deg); }
.prod:hover .phone.solo:nth-child(3) { transform: translateY(6px) rotate(7deg); }
.phone.solo img { aspect-ratio: 1206 / 2622; }
.pub .pd { margin: 0; font-size: 13px; text-align: left; color: var(--muted); }
.pub .pd a { color: var(--cyan); text-decoration: none; } .pub .pd a:hover { text-decoration: underline; }
.pub .pd i { font-style: normal; color: var(--gold); }
.pub .pa b { color: var(--ink); font-weight: 600; }
.pub.accepted .pub-k .pt { color: var(--gold); background: rgba(232,197,122,.1); }
.pub.published .pub-k .pt { color: var(--mint); background: rgba(94,230,168,.1); }

.pub.chapter .pub-k .pt { color: var(--rose); background: rgba(255,143,177,.1); }
.pub.conference .pub-k .pt { color: var(--cyan); background: rgba(98,214,255,.1); }
.pub-k .ps.first { color: #120d04; background: linear-gradient(135deg, #f6dfa6, #d8a650); }
.pub h3.ar { text-align: right; font-family: var(--ar-display); font-weight: 600; font-size: 19px; line-height: 1.6; }

.journey .badge + .badge { margin-inline-start: 6px; }
.badge.award { margin-top: 8px; color: #120d04; background: linear-gradient(135deg, #f6dfa6, #d8a650); border: 0; }
.journey li.work .yr { font-size: 13px; color: var(--cyan); border-color: rgba(98,214,255,.35); }
.duties { margin: 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 13.5px; display: grid; gap: 3px; }
.duties li::marker { color: var(--cyan); }
.journey .yr { direction: ltr; unicode-bidi: isolate; }
.duties li { display: list-item; }

/* ── portrait: the original studio photo in a 3D frame (tilt, moving light, layered depth) ── */
.portrait { transform-style: preserve-3d; --gx: 50%; --gy: 30%; --ga: 0; }
.portrait-ring { transform: translateZ(-60px) scale(1.04); }
.portrait-frame { transform: translateZ(0); border: 1px solid rgba(232,197,122,.35); box-shadow: 0 50px 100px rgba(0,0,0,.55), 0 0 0 8px rgba(255,255,255,.025), inset 0 1px 0 rgba(255,255,255,.12); }
.portrait-frame img { object-fit: cover; object-position: 22% 20%; transform: scale(1.06); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.portrait:hover .portrait-frame img { transform: scale(1.1) translate(calc((var(--gx) - 50%) * -.04), calc((var(--gy) - 50%) * -.04)); }
.portrait-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7,11,22,0) 55%, rgba(7,11,22,.55) 100%), radial-gradient(120% 90% at 50% 30%, transparent 60%, rgba(7,11,22,.35)); }
.portrait-glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: var(--ga); transition: opacity .4s;
  background: radial-gradient(60% 45% at var(--gx) var(--gy), rgba(255,255,255,.55), rgba(255,255,255,0) 70%); }
.portrait-edge { position: absolute; inset: 14px -14px -14px 14px; border-radius: 30px; border: 1px solid rgba(232,197,122,.45); transform: translateZ(-30px); pointer-events: none; }
[dir="rtl"] .portrait-edge { inset: 14px 14px -14px -14px; }
.portrait figcaption { z-index: 2; transform: translateZ(70px); }
.portrait:not(:hover) { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotateX(1.5deg) rotateY(-2deg); } }

@media (max-width: 560px) { .portrait figcaption { display: none; } .portrait { margin-top: 40px; } }

/* ── research profiles ── */
.profiles-label { margin: 34px auto 0 !important; font-size: 12px !important; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted) !important; }
[data-lang="ar"] .profiles-label { letter-spacing: 0; font-size: 14px !important; }
.profile-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; text-align: start; }
.pf { --c: var(--gold); position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; transition: transform .25s, border-color .25s, background .25s; }
.pf::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%); opacity: 0; transition: opacity .25s; }
.pf:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.pf:hover::before { opacity: 1; }
.pf-ic { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.pf-ic svg { width: 22px; height: 22px; }
.pf-t { position: relative; display: grid; min-width: 0; line-height: 1.3; }
.pf-t b { font-size: 14.5px; }
.pf-t small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pf-go { position: relative; margin-inline-start: auto; color: var(--muted); transition: color .25s, transform .25s; }
[dir="rtl"] .pf-go { transform: scaleX(-1); }
.pf:hover .pf-go { color: var(--c); }
.pf-orcid { --c: #a6ce39; } .pf-scopus { --c: #ff8200; } .pf-wos { --c: #9b8cff; } .pf-scholar { --c: #62a8ff; } .pf-researchgate { --c: #40d5bb; } .pf-linkedin { --c: #3d9be9; }

/* ── visitors ── */
.visits { padding-top: 0; }
.visits-card { position: relative; padding: clamp(28px, 5vw, 56px); border-radius: 32px; border: 1px solid var(--line-2); overflow: hidden;
  background: radial-gradient(80% 120% at 100% 0%, rgba(98,214,255,.10), transparent 55%), radial-gradient(70% 100% at 0% 100%, rgba(232,197,122,.08), transparent 55%), var(--bg-2); }
.visits-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px;
  mask-image: radial-gradient(80% 70% at 70% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 70% at 70% 20%, #000, transparent 75%); }
.visits-card > * { position: relative; z-index: 1; }
.visits-head h2 { margin: 0; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-inline-end: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94,230,168,.6); animation: live 2s infinite; vertical-align: middle; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(94,230,168,0); } 100% { box-shadow: 0 0 0 0 rgba(94,230,168,0); } }
.visits-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 30px; border-radius: 20px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.visits-stats div { padding: 20px 22px; background: rgba(7,11,22,.75); display: grid; gap: 4px; }
.visits-stats b { font: 400 clamp(30px, 4vw, 46px)/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.visits-stats div:first-child b { color: var(--gold); }
.visits-stats span { color: var(--muted); font-size: 13.5px; }
.visits-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 34px; }
.visits-list li { display: grid; grid-template-columns: 28px minmax(0, 12em) 1fr auto; align-items: center; gap: 12px; font-size: 14.5px; }
.vf { font-size: 22px; line-height: 1; }
.vn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.vb i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--gold)); transform-origin: left; animation: grow 1.1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
[dir="rtl"] .vb i { background: linear-gradient(-90deg, var(--cyan), var(--gold)); transform-origin: right; }
@keyframes grow { from { transform: scaleX(0); } }
.vc { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vc small { color: var(--muted); }
.visits-note { margin: 24px 0 0; color: var(--muted); font-size: 12.5px; }
.visits-note a { color: var(--muted); }

/* ── footer signature ── */
.made { display: inline-flex; align-items: center; gap: 8px; }
.heart svg { width: 15px; height: 15px; fill: var(--rose); display: block; filter: drop-shadow(0 0 6px rgba(255,143,177,.55)); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 28% { transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) { .heart svg, .live-dot, .vb i { animation: none; } }
@media (max-width: 760px) {
  .visits-stats { grid-template-columns: repeat(2, 1fr); }
  .visits-list { grid-template-columns: 1fr; }
}
.brand span { min-width: 0; }
.brand b { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .brand b { font-size: 13px; white-space: normal; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .visits-list li { grid-template-columns: 28px 1fr auto; grid-template-areas: "f n c" "f b b"; row-gap: 6px; }
  .visits-list .vf { grid-area: f; } .visits-list .vn { grid-area: n; } .visits-list .vc { grid-area: c; } .visits-list .vb { grid-area: b; height: 6px; }
}
.r-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); color: var(--muted); font-size: 13.5px; }
