/* ==========================================================================
   EWIN CARD — «فاخر داكن» + Sky Light (Premium, Apple-style)
   --------------------------------------------------------------------------
   Approved direction 3: pure black #000 base, silver-white type, massive
   display typography, one idea per screen, hairline borders, flat dark
   surfaces — with a SIMPLE, SUBTLE sky-light aurora (deep sky blue →
   soft cyan → faint violet, very low opacity) as a calm glow behind the
   hero card and a faint wash at the top of the page. The page reads as
   pure black first; the light is an accent, never a nebula.
   All pre-existing class names are preserved — this file only restyles
   them. Functional behaviour lives in app.js; motion lives in galaxy.js.
   Reduced-motion + small screens automatically calm everything down.
   ========================================================================== */
:root {
  /* «فاخر داكن» palette — pure black base */
  --space-0: #000000;
  --space-1: #050505;
  --space-2: #0a0a0a;
  --space-3: #111111;
  --ink: #f5f5f7;
  --ink-soft: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --line: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .06);
  --card: #0a0a0a;
  --card-solid: #0a0a0a;
  --card-elev: #111111;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --electric: #22d3ee;
  --violet: #8b5cf6;
  --magenta: #e879f9;
  --silver: #c0c0c0;
  --red: #f87171;
  --amber: #fbbf24;
  --ok: #34d399;
  --radius: 18px;
  --radius-sm: 12px;
  /* Legacy variable names kept (same names, dark values) so older rules
     that reference them keep working without edits. */
  --green: #22d3ee;
  --green-dark: #0e7490;
  --green-deep: #000000;
  --gold: #c0c0c0;
  --bg: #000000;
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, .07), 0 10px 34px rgba(0, 0, 0, .55);
  --shadow-lift: 0 14px 40px rgba(0, 0, 0, .6), 0 0 24px rgba(34, 211, 238, .10);
  /* Type scale + section spacing (Apple-style: huge display, wide air) */
  --fs-display: clamp(2.4rem, 6vw, 3.8rem);
  --fs-h2: clamp(1.7rem, 3.2vw, 2.4rem);
  --fs-lead: 1.05rem;
  --section-pad: 4rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", "Inter", system-ui, "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  background: #000;
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
[dir="ltr"] body { font-family: "Inter", "Cairo", system-ui, "Segoe UI", Arial, sans-serif; }
.hidden { display: none !important; }
.center { text-align: center; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
h2 { color: #f5f5f7; }
p { margin: .35rem 0; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--cyan); }
input, select, textarea {
  font: inherit; width: 100%; padding: .6rem .75rem;
  border: 1px solid var(--line); border-radius: 12px;
  background: #0a0a0a; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(34, 211, 238, .65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .15);
  background: #111;
}
select option { background: #0a0a0a; color: var(--ink); }
input[type="color"] { padding: .2rem; height: 42px; }
input[type="date"] { color-scheme: dark; }
label { display: block; font-weight: 600; font-size: .92rem; margin: .6rem 0 .15rem; color: var(--ink-soft); }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: .8rem; margin-top: .8rem; background: #050505; }
legend { font-weight: 700; font-size: .9rem; padding: 0 .4rem; color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ---------- Sky light (approved addition): a SIMPLE, SUBTLE aurora —
   deep sky blue → soft cyan → faint violet, very low opacity, slow drift.
   Pure black stays the base; the light is a calm glow, never neon and
   never a busy nebula. One fixed wash at the top of the page, one soft
   glow behind the hero card. Off entirely under reduced motion. ---------- */
.sky-light {
  position: fixed; left: 50%; z-index: 0; pointer-events: none;
  width: min(1100px, 140vw); height: 340px;
  transform: translateX(-50%);
  background:
    radial-gradient(52% 100% at 30% 0%, rgba(56, 189, 248, .13), transparent 70%),
    radial-gradient(46% 100% at 62% 0%, rgba(34, 211, 238, .10), transparent 70%),
    radial-gradient(38% 90% at 85% 10%, rgba(139, 92, 246, .08), transparent 70%);
  filter: blur(28px);
  animation: skyDrift 60s ease-in-out infinite alternate;
}
.sky-light-top { top: -120px; }
@keyframes skyDrift {
  from { transform: translateX(-50%) translateY(0); opacity: .85; }
  to { transform: translateX(-50%) translateY(14px); opacity: 1; }
}
.sky-light-hero {
  position: absolute; inset: auto -10% -18% -10%; height: 320px; z-index: 0;
  background:
    radial-gradient(50% 100% at 50% 100%, rgba(56, 189, 248, .16), transparent 70%),
    radial-gradient(40% 90% at 65% 100%, rgba(34, 211, 238, .12), transparent 70%),
    radial-gradient(32% 80% at 35% 100%, rgba(139, 92, 246, .08), transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.landing-hero .hero-text, .landing-hero .hero-card { position: relative; z-index: 1; }

/* ---------- Starfield canvas + faint nebula blobs (fixed, behind everything)
   Kept, but calmed hard: the sky light is the only colour wash now. ---------- */
#galaxyCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.nebula {
  position: fixed; border-radius: 50%; filter: blur(90px);
  z-index: 0; pointer-events: none; opacity: .14;
  will-change: transform;
}
.nebula-n1 { width: 560px; height: 560px; top: -180px; inset-inline-end: -120px; background: radial-gradient(circle, rgba(56, 189, 248, .4), transparent 65%); animation: nebulaDrift 48s ease-in-out infinite alternate; }
.nebula-n2 { width: 480px; height: 480px; top: 38%; inset-inline-start: -180px; background: radial-gradient(circle, rgba(34, 211, 238, .3), transparent 65%); animation: nebulaDrift 56s ease-in-out infinite alternate-reverse; }
.nebula-n3 { width: 420px; height: 420px; bottom: -160px; inset-inline-end: 22%; background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 65%); animation: nebulaDrift 64s ease-in-out infinite alternate; }
@keyframes nebulaDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(30px, -26px, 0) scale(1.12); }
}
header, main, footer { position: relative; z-index: 1; }

/* ---------- Reveal-on-scroll + motion helpers (galaxy.js toggles .in) ----------
   Hidden state applies ONLY when JS is running (html.js) — if galaxy.js
   fails to load, nothing is ever invisible. A safety timer in galaxy.js
   also reveals everything visible within ~1s even if the observer misses. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .3, 1); will-change: opacity, transform; }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ---------- Brand band (sticky black header, hairline border) ---------- */
.brand-band {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; padding: .85rem 1rem .6rem;
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s ease, background .3s ease;
}
.brand-band.scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, .6); background: rgba(0, 0, 0, .94); }
.brand-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.brand-logo {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  flex: none; padding: 7px;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 18px rgba(34, 211, 238, .18), 0 6px 16px rgba(0, 0, 0, .4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand-logo:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 1px rgba(34, 211, 238, .55), 0 0 26px rgba(34, 211, 238, .35), 0 8px 20px rgba(0, 0, 0, .4); }
.brand-logo img, .auth-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text h1 { font-size: 1.35rem; margin: 0; background: none; -webkit-text-fill-color: #fff; color: #fff; }
.brand-text p { margin: 0; opacity: .85; font-size: .92rem; color: var(--ink-soft); }
.brand-actions { margin-inline-start: auto; display: flex; gap: .5rem; }
.glass-btn {
  background: #0a0a0a; color: #f5f5f7; border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px; padding: .42rem .95rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.glass-btn:hover { background: #1a1a1a; border-color: rgba(34, 211, 238, .55); transform: translateY(-1px); box-shadow: 0 0 16px rgba(34, 211, 238, .18); }
.tabs { max-width: 1100px; margin: .7rem auto 0; display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.tab {
  background: #0a0a0a; color: #a1a1aa; border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px; padding: .45rem .95rem; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tab:hover { background: #171717; color: #fff; transform: translateY(-1px); }
.tab.active {
  background: #171717;
  color: #fff; font-weight: 700; border-color: rgba(34, 211, 238, .6);
  box-shadow: 0 0 14px rgba(34, 211, 238, .18);
}

main { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.tabpage { animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
  border: 1px solid rgba(255, 255, 255, .14); background: #0a0a0a; color: var(--ink);
  border-radius: 10px; padding: .5rem 1.1rem; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(34, 211, 238, .5); box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 14px rgba(34, 211, 238, .14); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary {
  background: #1a1a1a;
  border-color: rgba(34, 211, 238, .55); color: #fff; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 6px 22px rgba(0, 0, 0, .5), 0 0 18px rgba(34, 211, 238, .12);
}
.btn.primary:hover { background: #222; border-color: rgba(34, 211, 238, .85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 10px 28px rgba(0, 0, 0, .55), 0 0 24px rgba(34, 211, 238, .2); }
.btn.danger { background: #0a0a0a; border-color: rgba(248, 113, 113, .5); color: #fca5a5; }
.btn.danger:hover { border-color: rgba(248, 113, 113, .85); box-shadow: 0 0 14px rgba(248, 113, 113, .25); }
.btn.small { padding: .3rem .8rem; font-size: .88rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 .6rem; }
.subhead { margin: 1.2rem 0 .5rem; }
.hint { color: var(--muted); font-size: .9rem; }
.msg { min-height: 1.2em; font-size: .92rem; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--red); }
.row { display: flex; gap: .5rem; } .row > * { flex: 1; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

/* ---------- Card base (shared by all cards): flat near-black, hairline border.
   Glass is gone — «فاخر داكن» is solid, calm, Apple-flat. ---------- */
.glass-card, .stat-card, .profile-card, .tool-card, .example-card,
.step-card, .feature-card, .price-card, .public-card, .usecase-card, .trust-item,
.problem-card, .recent-item, .card-item, .order-item {
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  position: relative;
  overflow: hidden;
}
/* Mouse-responsive glow (galaxy.js sets --mx / --my on pointermove) */
.glow-hover::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .08), transparent 65%);
  opacity: 0; transition: opacity .25s ease; z-index: 0;
}
.glow-hover:hover::before { opacity: 1; }
.glow-hover > * { position: relative; z-index: 1; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin: .4rem 0 1rem; }
.stat-card { padding: .85rem .95rem; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, .45); box-shadow: var(--shadow-lift); }
.stat-card .ico { font-size: 1.4rem; }
.stat-card .num {
  font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: #fff;
}
.stat-card .lbl { color: var(--muted); font-size: .88rem; }

/* ---------- Profile cards ---------- */
.profile-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.profile-card { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.profile-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .5); box-shadow: var(--shadow-lift); }
.theme-strip { height: 8px; background-size: cover; background-position: center; }
.profile-card .body { padding: .8rem .9rem .9rem; }
.avatar-ring {
  width: 72px; height: 72px; border-radius: 50%; padding: 3px;
  background: #111;
  border: 1px solid rgba(34, 211, 238, .4);
  margin-top: -34px; position: relative; overflow: hidden;
  box-shadow: 0 0 16px rgba(34, 211, 238, .2);
}
.avatar-ring img, .avatar-ring .initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar-ring .initials { display: grid; place-items: center; background: #1a1a1a; color: #fff; font-size: 1.5rem; font-weight: 800; }
.profile-card h3 { margin: .4rem 0 0; }
.role-pill {
  display: inline-block; background: #111; color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, .3);
  border-radius: 999px; padding: .1rem .7rem; font-size: .85rem; font-weight: 600; margin: .25rem 0;
}
.profile-card .meta { color: var(--muted); font-size: .88rem; }
.profile-card .actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.badge-expired { color: var(--red); font-weight: 700; font-size: .85rem; }
.badge-soon { color: var(--amber); font-weight: 700; font-size: .85rem; }
.badge-ok { color: var(--ok); font-size: .85rem; }

.recent-list, .card-list, .order-list { display: grid; gap: .5rem; }
.recent-item, .card-item, .order-item {
  border-radius: var(--radius-sm); padding: .65rem .85rem;
  display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: space-between;
  transition: border-color .2s ease, transform .2s ease;
}
.recent-item:hover, .card-item:hover, .order-item:hover { border-color: rgba(34, 211, 238, .4); transform: translateY(-1px); }
.empty { color: var(--muted); padding: 1rem; text-align: center; }

/* ---------- Tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; }
.tool-card { padding: 1.05rem; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tool-card:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .45); box-shadow: var(--shadow-lift); }
.tool-card.wide { grid-column: 1 / -1; }
.tool-card h3 { color: #fff; }
.guide li { margin: .45rem 0; color: var(--ink-soft); }
.qr-out { margin: .7rem 0; text-align: center; }
.qr-out img { max-width: 220px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: .5rem; box-shadow: 0 0 24px rgba(34, 211, 238, .14); }

/* ---------- Examples gallery ---------- */
.examples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.example-card { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.example-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .5); box-shadow: var(--shadow-lift); }
.example-hero { height: 120px; background-size: cover; background-position: center; position: relative; }
.example-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .6)); }
.example-hero .ex-tag {
  position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 1;
  background: rgba(0, 0, 0, .65); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px; padding: .1rem .6rem; font-size: .8rem;
}
.example-card .body { padding: .8rem .9rem; }
.example-card .actions { display: flex; gap: .4rem; margin-top: .6rem; flex-wrap: wrap; }

/* ---------- Theme scenes (profession photos, kept, now inside galaxy chrome) ---------- */
.scene {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: #000; color: #fff; isolation: isolate;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
}
.scene::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--scene-img); background-size: cover; background-position: center;
  animation: slowzoom 24s ease-in-out infinite alternate;
}
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .85));
}
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.scene .float-el { position: absolute; z-index: 0; font-size: 1.6rem; opacity: .9; animation: floaty 5s ease-in-out infinite; }
.scene .float-el.e2 { animation-delay: 1.2s; font-size: 1.2rem; }
.scene .float-el.e3 { animation-delay: 2.4s; font-size: 1.9rem; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.theme-preview { height: 90px; margin-top: .4rem; }

/* ---------- Public profile ---------- */
.public-hero { padding: 2.2rem 1rem 1.6rem; text-align: center; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.public-hero .avatar-ring { width: 110px; height: 110px; margin: 0; }
.public-hero h2 { font-size: 1.5rem; margin: .6rem 0 0; }
/* Premium profile header (Blinq / Mobilo pattern): the theme photo is a top
   COVER STRIP only — no floating emoji, no text on the photo. The avatar is
   a large ROUNDED SQUARE overlapping the cover's bottom edge at the start
   side, so the whole photo stays visible (no circular face crop). Identity
   and actions sit on clean black below the cover. */
.public-profile { max-width: 560px; margin: 0 auto; }
.public-cover { height: 190px; border-radius: 20px 20px 0 0; }
.public-identity { display: flex; gap: 1rem; align-items: flex-start; padding: 0 1.2rem; }
.public-id-text { min-width: 0; padding-top: .55rem; }
.public-id-text h2 { font-size: 1.6rem; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.public-id-text .public-meta { font-size: .92rem; color: var(--ink-soft); margin-top: .3rem; }
.public-avatar {
  width: 120px; height: 120px; flex: none; margin-top: -60px; position: relative;
  border-radius: 28px; overflow: hidden; background: #111;
  border: 2px solid rgba(34, 211, 238, .55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .6), 0 0 24px rgba(34, 211, 238, .18);
}
.public-avatar img, .public-avatar .initials { width: 100%; height: 100%; object-fit: cover; display: block; }
.public-avatar .initials { display: grid; place-items: center; background: #1a1a1a; color: #fff; font-size: 2rem; font-weight: 800; }
@media (max-width: 560px) {
  .public-cover { height: 150px; }
  .public-identity { flex-direction: column; gap: .6rem; padding: 0 1rem; }
  .public-avatar { width: 96px; height: 96px; border-radius: 24px; margin-top: -48px; }
  .public-id-text { padding-top: 0; }
  .public-id-text h2 { font-size: 1.4rem; }
  .contact-btns { gap: .7rem; }
  .contact-circle .cc-icon { width: 56px; height: 56px; }
  .contact-circle .cc-icon svg { width: 24px; height: 24px; }
}
.public-card { padding: 1.05rem; margin: .8rem 0; transition: border-color .2s ease, transform .2s ease; }
.public-card:hover { border-color: rgba(34, 211, 238, .35); }
.public-card h3 { color: #fff; }
.contact-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: .9rem 0; }
.contact-circle { display: flex; flex-direction: column; align-items: center; gap: .4rem; background: none; border: none; padding: 0; cursor: pointer; text-decoration: none; color: var(--ink); font: inherit; }
.contact-circle .cc-icon { width: 60px; height: 60px; border-radius: 50%; background: #0a0a0a; border: 1px solid rgba(255, 255, 255, .16); color: #22d3ee; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .45); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.contact-circle .cc-icon svg { width: 26px; height: 26px; display: block; }
.contact-circle .cc-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.contact-circle:hover .cc-icon, .contact-circle:focus-visible .cc-icon { transform: translateY(-2px); border-color: rgba(34, 211, 238, .65); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .5), 0 0 16px rgba(34, 211, 238, .18); }
.contact-circle.wa .cc-icon { border-color: rgba(34, 197, 94, .55); }
.contact-circle.wa:hover .cc-icon, .contact-circle.wa:focus-visible .cc-icon { border-color: rgba(34, 197, 94, .9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .5), 0 0 16px rgba(34, 197, 94, .25); }
/* Logo-only link tiles (public profile): square 64px tiles, logo only — no
   names, no hints, no URLs. Centered grid, 4 per row on mobile. */
.link-grid { display: grid; grid-template-columns: repeat(3, 64px); justify-content: center; gap: 10px; margin: .8rem 0; }
.link-group { margin: 1.1rem 0; }
.link-group-title { text-align: center; color: var(--muted); font-size: .95rem; font-weight: 700; margin: 0 0 .6rem; }
.link-tile {
  width: 64px; height: 64px; border-radius: 16px; background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, .12); display: grid; place-items: center;
  text-decoration: none; cursor: pointer; color: var(--ink);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.link-tile svg { width: 28px; height: 28px; display: block; }
.link-tile svg.wordmark { width: 46px; height: auto; }
.link-tile:hover, .link-tile:focus-visible { transform: translateY(-2px); border-color: rgba(34, 211, 238, .55); box-shadow: 0 8px 22px rgba(0, 0, 0, .5), 0 0 16px rgba(34, 211, 238, .12); }
.link-tile.wallet { cursor: pointer; }
/* Embedded map (public profile): real Google Maps embed, no API key. */
.map-card .map-embed { width: 100%; height: 220px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; margin: .6rem 0 .8rem; display: block; background: #111; }
@media (max-width: 560px) { .map-card .map-embed { height: 200px; } }
.service-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  background: #111; border: 1px solid rgba(34, 211, 238, .28);
  color: #a5f3fc; border-radius: 999px; padding: .25rem .8rem; font-size: .9rem;
}
.company-block { text-align: center; padding: 1.1rem; }
.company-block .phone { font-size: 1.15rem; font-weight: 800; direction: ltr; }
.company-block .phone a { color: var(--cyan); text-decoration: none; }
.request-btn { width: 100%; margin-top: .6rem; }

/* ---------- Dialogs ---------- */
.dialog {
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 1.15rem;
  max-width: 560px; width: calc(100vw - 2rem); max-height: 90vh; overflow: auto;
  background: #0a0a0a;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .85), 0 0 40px rgba(34, 211, 238, .1);
  animation: dialogIn .28s cubic-bezier(.22, .8, .3, 1);
}
@keyframes dialogIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog h3 { color: #fff; }
.dialog::backdrop { background: rgba(0, 0, 0, .75); }
.dialog-actions { display: flex; gap: .5rem; margin-top: 1rem; justify-content: flex-end; }
.dialog-actions.top { justify-content: flex-start; margin-top: 0; }
.preview-dialog { max-width: 480px; }
.link-row-field { display: flex; gap: .5rem; align-items: center; margin: .35rem 0; }
.link-row-field .lic { width: 38px; text-align: center; font-size: 1.2rem; flex: none; }
.link-row-field input { flex: 1; }

/* ---------- Footer ---------- */
.footer {
  text-align: center; padding: 1.6rem 1rem 2.2rem; color: var(--muted); font-size: .92rem;
  border-top: 1px solid var(--line-soft);
  background: #000;
}
.footer strong { color: #fff; }
.footer a { color: var(--cyan); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .brand-text h1 { font-size: 1.05rem; }
  .brand-logo { width: 44px; height: 44px; border-radius: 12px; padding: 5px; }
  .glass-btn { padding: .35rem .7rem; }
  .tabs { gap: .3rem; }
  .nebula-n1, .nebula-n2, .nebula-n3 { opacity: .1; }
}
@media (max-width: 640px) {
  .nebula { animation: none; }
  .sky-light { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene::before, .scene .float-el, .tabpage, .nebula, .dialog, .tap-anim .tap-waves::before, .tap-anim .tap-waves::after, .hero-tap, .loading, .sky-light { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card-float { animation: none !important; }
  .nfc-card-3d { transition: none !important; }
}

/* ---------- Auth (login / first-run setup) ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 2.5rem 1rem; }
.auth-card { max-width: 420px; width: 100%; text-align: center; padding: 1.6rem 1.4rem; }
.auth-card form { text-align: start; }
.auth-card label { display: block; margin: .6rem 0; font-weight: 600; }
.auth-card input { width: 100%; margin-top: .25rem; }
.auth-card .btn { width: 100%; margin-top: .8rem; }
.auth-logo {
  width: 72px; height: 72px; margin: 0 auto .6rem; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 9px;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 26px rgba(34, 211, 238, .25);
}
.owner-row { display: block; margin-top: .6rem; font-size: .9rem; }
.owner-row select { margin-inline-start: .3rem; }

/* ---------- Landing page (Ewin Card — «فاخر داكن» + sky light) ---------- */
.landing-hero {
  background: #000;
  color: #f5f5f7; border-radius: 24px;
  padding: 3.2rem 2rem 3rem; margin: .5rem 0 1rem;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem;
}
.landing-hero::after {
  content: ""; position: absolute; inset-inline: 12%; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .6), rgba(139, 92, 246, .5), transparent);
}
.hero-text { text-align: start; min-width: 0; }
.landing-wordmark { font-size: 1.05rem; font-weight: 800; letter-spacing: .34em; color: #a1a1aa; margin: 0 0 .4rem; }
.landing-wordmark span { color: #c0c0c0; }
.landing-tagline {
  font-size: clamp(2rem, 4.6vw, 3.2rem); margin: .2rem 0 .6rem; font-weight: 900; line-height: 1.25;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, #d4f6fd 55%, #67e8f9);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.landing-sub { color: #a1a1aa; max-width: 520px; margin: .4rem 0 1.5rem; font-size: 1.08rem; }
.landing-cta { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ----- Interactive physical card showcase (hero) ----- */
.hero-card { display: flex; justify-content: center; min-width: 0; }
.card-showcase { text-align: center; perspective: 1200px; }
.card-float { animation: cardFloat 6s ease-in-out infinite; }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.card-tilt { transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.nfc-card-3d {
  position: relative; width: min(250px, 68vw); aspect-ratio: 638 / 1013;
  margin: 0 auto; transform-style: preserve-3d; cursor: pointer;
  transition: transform .7s cubic-bezier(.22, .8, .3, 1);
  outline: none;
}
.nfc-card-3d:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; border-radius: 18px; }
.nfc-card-3d.flipped { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14), 0 0 44px rgba(34, 211, 238, .18);
  background: #0a0a0a;
}
.card-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-face.card-back { transform: rotateY(180deg); }
.card-hint { color: var(--muted); font-size: .88rem; margin: .9rem 0 .5rem; }
.flip-btn { border-radius: 999px; }
.btn.big { padding: .8rem 1.6rem; font-size: 1.05rem; }
.landing-hero .btn.big:not(.primary) { background: #111; color: #f5f5f7; border-color: rgba(255, 255, 255, .2); }
.landing-steps, .landing-features, .landing-pricing { margin: 1.8rem 0; }
.landing-steps h2, .landing-features h2, .landing-pricing h2 { text-align: center; }
.steps-grid, .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: .8rem; }
.step-card, .feature-card { padding: 1.1rem; text-align: center; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.step-card:hover, .feature-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .5); box-shadow: var(--shadow-lift); }
.step-num {
  width: 46px; height: 46px; margin: 0 auto .5rem; border-radius: 50%; display: grid; place-items: center;
  background: #111; color: var(--cyan); font-size: 1.3rem; font-weight: 900;
  border: 1px solid rgba(34, 211, 238, .45);
  box-shadow: 0 0 18px rgba(34, 211, 238, .18);
}
.step-card h3, .feature-card h3 { color: #fff; }
.step-card p, .feature-card p { color: var(--muted); }
.feature-card { font-size: 1.6rem; }
.feature-card h3 { font-size: 1rem; margin: .3rem 0; }
.feature-card p { font-size: .92rem; }
.landing-pricing { padding: 1.4rem 1.2rem; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: .8rem; }
.price-card { padding: 1.15rem; text-align: center; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.price-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .55); box-shadow: var(--shadow-lift); }
.price-card.featured {
  border: 1px solid rgba(34, 211, 238, .55);
  background: #0a0a0a;
  box-shadow: 0 0 30px rgba(34, 211, 238, .16), var(--shadow-glow);
}
.price-card h3 { font-size: 1.05rem; margin: .2rem 0 .5rem; color: #fff; }
.price-card .price { font-size: 1.1rem; margin: .2rem 0 .6rem; }
.price-card .price-now {
  font-size: 2.1rem; font-weight: 800; color: #fff;
}
.price-card .price-old { color: var(--faint); margin-inline-start: .4rem; }
.price-card p { font-size: .92rem; color: var(--muted); }
.landing-email { margin-top: .4rem; }
.landing-email a, .footer-email a { color: var(--cyan); }
.landing-phone { font-weight: 800; direction: ltr; color: #fff; }
.landing-powered { text-align: center; color: var(--muted); }
/* ---------- Landing design system: shared section primitives ----------
   Landing sections stay mostly transparent with generous whitespace —
   glass is reserved for interactive cards only. */
.eyebrow {
  color: var(--cyan); font-size: .8rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .4rem;
}
.lead { color: var(--muted); font-size: var(--fs-lead); }
.land-section {
  padding: var(--section-pad) 0;
  margin: 0;
  background: transparent;
  scroll-margin-top: 96px;
}
.land-section + .land-section { border-top: 1px solid var(--line-soft); }
.section-head-row { text-align: center; max-width: 660px; margin: 0 auto 1.5rem; }
.section-head-row h2 { font-size: var(--fs-h2); }
.section-head-row .lead { margin: .4rem 0 0; }
.ghost-btn {
  background: #111; color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, .2);
}
.ghost-btn:hover { background: #1a1a1a; border-color: rgba(34, 211, 238, .55); }
.loading { animation: loadingPulse 1.2s ease-in-out infinite; }
@keyframes loadingPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.tabpage { scroll-margin-top: 96px; }

/* Landing anchor nav */
.landing-nav {
  display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center;
  padding: .5rem 0 .2rem; margin: .2rem 0 .6rem;
}
.landing-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .92rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .42rem 1rem;
  background: #0a0a0a;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.landing-nav a:hover { color: #fff; border-color: rgba(34, 211, 238, .5); background: #111; }

/* Hero trust row */
.land-trust { margin-top: 1.1rem; color: var(--ink-soft); font-size: .92rem; }

/* Demo: phone frame + real QR */
.demo-grid { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 2rem; align-items: center; }
.demo-text h2 { font-size: var(--fs-h2); }
.demo-text .lead { margin: .5rem 0 1.2rem; }
.phone-frame {
  width: min(280px, 82vw); margin: 0 auto; padding: 14px;
  background: #050505; border: 1px solid rgba(255, 255, 255, .16); border-radius: 36px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .7), 0 0 40px rgba(34, 211, 238, .12);
}
.phone-frame img { width: 100%; display: block; border-radius: 22px; background: #fff; }
.phone-frame figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: .7rem; }
/* Decorative CSS-only NFC tap animation (aria-hidden, no JS) */
.tap-anim { display: flex; align-items: center; gap: .9rem; margin-top: 1.3rem; }
.tap-anim .tap-card {
  width: 54px; height: 34px; border-radius: 8px; flex: none;
  background: #111;
  border: 1px solid rgba(34, 211, 238, .5);
  box-shadow: 0 6px 16px rgba(34, 211, 238, .25);
}
.tap-anim .tap-waves { position: relative; width: 40px; height: 40px; flex: none; }
.tap-anim .tap-waves::before, .tap-anim .tap-waves::after {
  content: ""; position: absolute; inset: 0;
  border: 2px solid var(--cyan); border-radius: 50%;
  animation: tapWave 2s ease-out infinite;
}
.tap-anim .tap-waves::after { animation-delay: 1s; }
@keyframes tapWave { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.tap-anim .tap-phone { font-size: 1.6rem; }

/* Theme showcase (display only — no buttons, no click handlers) */
.theme-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.theme-chip-card {
  position: relative; min-height: 120px; border-radius: var(--radius);
  background-size: cover; background-position: center; overflow: hidden;
  display: flex; align-items: flex-end; gap: .45rem; padding: .8rem;
  border: 1px solid var(--line);
}
.theme-chip-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .8)); }
.theme-chip-card .theme-float, .theme-chip-card .theme-name { position: relative; z-index: 1; }
.theme-chip-card .theme-float { font-size: 1.15rem; }
.theme-chip-card .theme-name { color: #fff; font-weight: 800; }

/* Use cases + trust */
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.usecase-card { padding: 1.2rem; }
.usecase-card h3 { color: #fff; }
.usecase-card p { color: var(--muted); font-size: .95rem; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.trust-item { padding: 1.1rem; }
.trust-item h3 { color: #fff; font-size: 1rem; }
.trust-item p { color: var(--muted); font-size: .92rem; }

/* FAQ (native <details> — accessible, keyboard-native, no JS) */
.faq-list { display: grid; gap: .6rem; max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #0a0a0a; padding: 0 1rem;
}
.faq-item summary { cursor: pointer; font-weight: 700; padding: .85rem 0; color: #fff; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: inline-end; color: var(--cyan); font-weight: 800; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); margin: 0 0 .9rem; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta h2 { font-size: var(--fs-display); }
.final-cta .lead { max-width: 560px; margin: .5rem auto 0; }
.cta-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.3rem; }

/* Footer: 3 parts — brand / quick links / contact */
.footer-inner {
  max-width: 1100px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem; text-align: start;
}
.footer-links { display: flex; flex-direction: column; gap: .35rem; }
.footer-links strong { color: #fff; margin-bottom: .2rem; }
.footer-contact { display: flex; flex-direction: column; gap: .35rem; }
.footer-copy { text-align: center; margin: 1.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line-soft); }

@media (max-width: 760px) {
  .landing-hero { grid-template-columns: 1fr; padding: 2.6rem 1.2rem 2.4rem; gap: 1.6rem; }
  .hero-text { text-align: center; }
  .landing-sub { margin-inline: auto; }
  .landing-cta { justify-content: center; }
  .landing-tagline { font-size: 1.9rem; }
  .demo-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .demo-text { text-align: center; }
  .tap-anim { justify-content: center; }
}
@media (max-width: 560px) {
  .landing-hero { padding: 2.2rem 1rem 2rem; }
  .landing-tagline { font-size: 1.65rem; }
  .nfc-card-3d { width: min(230px, 66vw); }
  .land-section { padding: 2.6rem 0; }
  .landing-nav a { padding: .35rem .8rem; font-size: .88rem; }
  .land-trust { font-size: .88rem; }
}

/* ---------- Competitor-pattern rebuild (v4): hero tap composition,
   honest stats strip, Before/With problem section, product catalog ----------
   Patterns adopted from Mobilo (catalog + 4-step strip), V1CE (Before/With
   problem framing + one-time pricing), Blinq (warm benefit headlines +
   proof per claim), Touch (Built-for-Egypt feature framing). */
.link-btn { background: none; border: none; color: var(--cyan); text-decoration: underline; padding: .3rem 0; font-weight: 700; font-size: .92rem; }
.link-btn:hover { color: #a5f3fc; }
.hero-login-line { margin-top: .9rem; }
.hero-eyebrow { margin-bottom: .5rem; }

/* Hero visual: phone (real QR) behind the interactive card — the tap moment.
   Phone is decorative (aria-hidden in HTML); the same QR is fully usable
   in the #demo section. */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-phone {
  position: absolute; top: -6px; inset-inline-end: 0; z-index: 0;
  width: 138px; padding: 8px; border-radius: 22px; text-align: center;
  background: #050505; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7), 0 0 30px rgba(34, 211, 238, .12);
  transform: rotate(6deg);
}
.hero-phone img { width: 100%; display: block; border-radius: 12px; background: #fff; }
.hero-phone-cap { display: block; color: var(--muted); font-size: .68rem; margin-top: .4rem; line-height: 1.4; }
.hero-visual .card-showcase { position: relative; z-index: 1; }
.hero-tap {
  position: absolute; top: -12px; left: 50%; z-index: 2;
  width: 44px; height: 44px; margin-inline-start: -22px;
  border: 2px solid var(--cyan); border-radius: 50%;
  animation: tapWave 2s ease-out infinite; pointer-events: none;
}

/* Honest stats strip (Mobilo/Popl pattern) — real product facts only. */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 0; text-align: center; }
.stat-strip-item { display: flex; flex-direction: column; gap: .1rem; }
.stat-strip-num {
  font-size: 2.2rem; font-weight: 900; line-height: 1.1; color: #fff;
}
.stat-strip-item span:last-child { color: var(--muted); font-size: .9rem; }

/* Problem section (V1CE Before/With pattern): pain, then the fix. */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.problem-card { padding: 1.2rem; text-align: start; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.problem-card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .5); box-shadow: var(--shadow-lift); }
.problem-card h3 { color: #fff; font-size: 1.05rem; }
.problem-before { color: var(--muted); font-size: .95rem; }
.problem-after { color: var(--ink-soft); font-size: .95rem; }
.prob-x { color: var(--red); font-weight: 800; }
.prob-check { color: var(--ok); font-weight: 800; }

/* Product catalog (Mobilo pattern): real card photos, one-time prices,
   struck-through original, feature checklist, real CTA per product. */
.price-badge {
  display: inline-block; background: #22d3ee;
  color: #03252e; border-radius: 999px; padding: .15rem .8rem;
  font-size: .82rem; font-weight: 800; margin-bottom: .6rem;
}
.price-img {
  width: 150px; aspect-ratio: 638 / 1013; object-fit: contain; background: #000;
  border-radius: 14px; display: block; margin: 0 auto .8rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14), 0 0 30px rgba(34, 211, 238, .16);
}
.price-feats { list-style: none; margin: .7rem 0; padding: 0; text-align: start; display: grid; gap: .35rem; }
.price-feats li { color: var(--ink-soft); font-size: .92rem; padding-inline-start: 1.4rem; position: relative; }
.price-feats li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 800; }
.price-card .btn { margin-top: .7rem; }
.price-once { text-align: center; color: var(--cyan); font-weight: 700; margin-top: 1.1rem; }

@media (max-width: 760px) {
  .hero-phone, .hero-tap { display: none; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
}
