/* OBIC — professional corporate site */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #0b1f3a;
  --navy-2: #122a4a;
  --blue: #1a6dff;
  --blue-deep: #0b4fd6;
  --blue-soft: #e8f1ff;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d8e0ec;
  --font: "Sora", "Noto Sans Arabic", system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(245, 247, 251, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--navy);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang {
  display: flex;
  margin-inline-end: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.lang button {
  padding: 0.4rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.lang button.is-on {
  background: var(--navy);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: #b6c3d6;
  background: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: var(--blue-soft);
}

.btn-text {
  min-height: auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
}

.btn-text:hover {
  color: #fff;
  border-bottom-color: #fff;
  transform: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  background: #fff;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--navy);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: heroSlow 28s var(--ease) infinite alternate;
}

@keyframes heroSlow {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-1%, -1%);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.72) 42%, rgba(11, 31, 58, 0.35) 70%, rgba(11, 31, 58, 0.55) 100%),
    linear-gradient(180deg, transparent 40%, rgba(11, 31, 58, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4.5rem;
  max-width: 38rem;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.hero-brand span {
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero .lead {
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 34ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.trust {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 1.1rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

[dir="rtl"] .trust-inner {
  letter-spacing: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.trust-inner strong {
  color: var(--navy);
  font-weight: 600;
}

/* ——— Branches (Form2 org) ——— */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem 1rem;
}

.branch-item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.branch-item strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.branch-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

[dir="rtl"] .branch-item strong {
  letter-spacing: 0;
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 36ch;
  font-size: 0.98rem;
}

.eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Services — light photo cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.service-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.service-card h3,
.service-card p,
.service-card .go {
  margin-inline: 1.15rem;
}

.service-card h3 {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #1f2937;
}

.service-card p {
  margin-bottom: 0;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1.45;
  flex: 1;
}

.service-card .go {
  margin-top: 0.85rem;
  margin-bottom: 1.15rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: #111;
}

/* About */
.about {
  background: #fff;
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.about-copy p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 38ch;
}

.about-panel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
  background: var(--navy);
}

.about-panel img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  opacity: 0.55;
}

.about-panel .panel-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(11, 31, 58, 0.92));
}

.about-panel .panel-copy strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.about-panel .panel-copy span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* App launch — 3D phone stage */
.app-stage {
  position: relative;
  padding: 3rem 0 5.5rem;
  overflow: hidden;
}

.app-stage-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 78% 42%, rgba(26, 109, 255, 0.18), transparent 62%),
    radial-gradient(ellipse 40% 45% at 12% 70%, rgba(11, 31, 58, 0.08), transparent 58%),
    linear-gradient(165deg, #e8eef8 0%, #f5f7fb 48%, #eef2f8 100%);
  pointer-events: none;
}

.app-stage-bg::after {
  content: "";
  position: absolute;
  inset: 12% 8% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 109, 255, 0.25), transparent);
}

.app-stage-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem 3.25rem;
  align-items: center;
}

.app-stage-copy {
  padding: 1.75rem 1.85rem 1.65rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 224, 236, 0.9);
  box-shadow: 0 24px 50px rgba(11, 31, 58, 0.07);
  backdrop-filter: blur(14px);
}

.app-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.app-kicker img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(26, 109, 255, 0.2);
}

.app-kicker .eyebrow {
  margin: 0;
}

.app-stage-copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1.12;
}

[dir="rtl"] .app-stage-copy h2 {
  letter-spacing: 0;
  line-height: 1.25;
}

.app-stage-copy > p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 34rem;
  line-height: 1.65;
}

.app-points {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.app-points li {
  position: relative;
  padding-inline-start: 1.35rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 550;
}

.app-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.4rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.15);
}

.app-screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: #eef2f8;
  width: fit-content;
  max-width: 100%;
}

.app-screen-tabs button {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.app-screen-tabs button:hover {
  color: var(--navy);
}

.app-screen-tabs button.is-on {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(11, 31, 58, 0.1);
}

.app-stage-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8f1ff, #dbe8ff);
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.app-platforms span {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.phone-orbit {
  position: relative;
  height: 540px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.phone-glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 109, 255, 0.28), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: glow-breathe 5.5s ease-in-out infinite;
}

.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 242px;
  transform-style: preserve-3d;
}

.phone-shell {
  position: relative;
  height: 492px;
  border-radius: 38px;
  background: linear-gradient(155deg, #2a3448 0%, #0d1422 45%, #1a2333 100%);
  padding: 11px;
  box-shadow:
    0 40px 70px rgba(11, 31, 58, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.phone-shine {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 38px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 38%, transparent 62%, rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.phone-notch {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 5;
  width: 92px;
  height: 22px;
  margin-left: -46px;
  border-radius: 999px;
  background: #070b14;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  background: #eaf0f8;
}

.phone-home {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 5;
  width: 96px;
  height: 4px;
  margin-left: -48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.phone-front {
  z-index: 5;
  margin-left: -121px;
  margin-top: -255px;
  animation: phone-float 5.5s ease-in-out infinite;
  transition: transform 0.15s ease-out;
}

.phone-back {
  z-index: 2;
  opacity: 0.9;
  filter: saturate(0.9) brightness(0.96);
}

.phone-left {
  margin-left: -292px;
  margin-top: -225px;
  transform: translateZ(-90px) rotateY(30deg) rotateX(7deg) scale(0.84);
  animation: phone-drift-left 7s ease-in-out infinite;
}

.phone-right {
  margin-left: 48px;
  margin-top: -215px;
  transform: translateZ(-90px) rotateY(-30deg) rotateX(7deg) scale(0.84);
  animation: phone-drift-right 6.5s ease-in-out infinite;
}

.phone-shadow {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 240px;
  height: 30px;
  margin-left: -120px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(11, 31, 58, 0.32), transparent 70%);
  filter: blur(8px);
  animation: shadow-pulse 5.5s ease-in-out infinite;
}

.phone-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 550;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes phone-drift-left {
  0%, 100% { transform: translateZ(-90px) rotateY(30deg) rotateX(7deg) scale(0.84) translateY(0); }
  50% { transform: translateZ(-90px) rotateY(30deg) rotateX(7deg) scale(0.84) translateY(10px); }
}

@keyframes phone-drift-right {
  0%, 100% { transform: translateZ(-90px) rotateY(-30deg) rotateX(7deg) scale(0.84) translateY(0); }
  50% { transform: translateZ(-90px) rotateY(-30deg) rotateX(7deg) scale(0.84) translateY(-8px); }
}

@keyframes shadow-pulse {
  0%, 100% { transform: scaleX(1); opacity: 0.85; }
  50% { transform: scaleX(0.88); opacity: 0.55; }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* Mini app UIs */
.phone-screen > [data-ui] {
  position: absolute;
  inset: 0;
  padding: 42px 14px 24px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.phone-screen > [data-ui].is-show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ui-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: #0b1f3a;
  font-size: 0.78rem;
  font-weight: 700;
}

.ui-top img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.ui-bell {
  margin-inline-start: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fa5151;
  box-shadow: 0 0 0 4px rgba(250, 81, 81, 0.18);
}

.ui-hello {
  margin: 0 0 0.85rem;
  color: #64748b;
  font-size: 0.72rem;
}

.ui-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem 0.35rem;
  margin-bottom: 0.9rem;
}

.ui-icons span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-align: center;
}

.ui-icons i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent);
  position: relative;
}

.ui-icons i::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 4px;
  background: var(--c);
  opacity: 0.9;
}

.ui-icons b {
  font-size: 0.55rem;
  font-weight: 650;
  color: #334155;
  max-width: 4.2em;
  line-height: 1.15;
}

.ui-banner {
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a6dff, #0b4fd6);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ui-card {
  margin-bottom: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d8e0ec;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.ui-card.muted {
  opacity: 0.88;
}

.ui-card em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  color: #1a6dff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ui-card em.ok {
  color: #059669;
}

.ui-card b {
  font-size: 0.72rem;
  color: #0b1f3a;
}

.ui-card span {
  font-size: 0.6rem;
  color: #64748b;
}

.ui-bubble {
  max-width: 82%;
  margin-bottom: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  font-size: 0.62rem;
  line-height: 1.4;
}

.ui-bubble.them {
  background: #fff;
  border: 1px solid #d8e0ec;
  color: #0f172a;
  border-bottom-inline-start-radius: 4px;
}

.ui-bubble.me {
  margin-inline-start: auto;
  background: #1a6dff;
  color: #fff;
  border-bottom-inline-end-radius: 4px;
}

.ui-compose {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8e0ec;
  color: #94a3b8;
  font-size: 0.62rem;
}

.phone-ui-orders,
.phone-ui-chat {
  background:
    linear-gradient(180deg, #eaf0f8 0%, #dfe8f4 100%);
}

.phone-ui-orders::before,
.phone-ui-chat::before {
  content: "";
  position: absolute;
  inset: 48px 14px 28px;
  border-radius: 16px;
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 54px no-repeat,
    linear-gradient(#fff, #fff) 0 70px / 100% 72px no-repeat,
    linear-gradient(#fff, #fff) 0 158px / 100% 72px no-repeat;
  box-shadow: 0 0 0 1px #d8e0ec;
  opacity: 0.95;
}

.phone-ui-chat::before {
  background:
    linear-gradient(#fff, #fff) 0 0 / 70% 36px no-repeat,
    linear-gradient(#1a6dff, #1a6dff) 30% 52px / 70% 36px no-repeat,
    linear-gradient(#fff, #fff) 0 104px / 65% 42px no-repeat;
}

@media (max-width: 960px) {
  .app-stage-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .phone-orbit {
    height: 460px;
    order: -1;
  }

  .phone-left {
    margin-left: -230px;
  }

  .phone-right {
    margin-left: 10px;
  }
}

@media (max-width: 560px) {
  .phone {
    width: 210px;
  }

  .phone-shell {
    height: 430px;
  }

  .phone-front {
    margin-left: -105px;
    margin-top: -225px;
  }

  .phone-left,
  .phone-right {
    display: none;
  }

  .phone-orbit {
    height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-front,
  .phone-left,
  .phone-right,
  .phone-shadow {
    animation: none;
  }
}

/* CTA band */
.cta-band {
  padding: 4.5rem 0 2rem;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 2.75rem;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
}

.cta-inner h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  max-width: 36ch;
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Forms / pages */
.page-hero {
  padding: 4rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.legal {
  max-width: 42rem;
  padding-bottom: 4rem;
}

.legal h2 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal ul {
  margin: 0.4rem 0 0;
  padding-inline-start: 1.15rem;
}

.legal-meta {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-legal {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.auth-legal a {
  color: var(--blue);
  font-weight: 650;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
  max-width: 480px;
  margin-bottom: 4rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.12);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.listing-empty {
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  color: var(--muted);
}

.listing-empty strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.68);
  padding: 3.5rem 0 1.75rem;
}

.footer .brand {
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer p,
.footer a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 1.1rem 1.5rem 1.4rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    gap: 1rem;
  }

  .nav-links a.is-active::after {
    display: none;
  }

  .cta-inner {
    padding: 1.75rem;
  }
}

@media (max-width: 560px) {
  .lang {
    display: flex;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-content {
    padding-bottom: 3rem;
  }

  .nav-actions .btn-ghost {
    display: none;
  }
}

[dir="rtl"] body {
  font-family: "Noto Sans Arabic", var(--font);
}

[dir="rtl"] .nav-links a.is-active::after {
  left: 0;
  right: 0;
}

/* ——— Auth (login / register) ——— */
.auth-page {
  background: var(--bg);
  min-height: 100vh;
}

.auth-main {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: calc(100svh - var(--nav-h));
}

.auth-aside {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.auth-aside > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.auth-aside-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(11, 31, 58, 0.92));
}

.auth-aside-copy img {
  border-radius: 12px;
  margin-bottom: 1rem;
}

.auth-aside-copy .brand-word {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-aside-copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 28ch;
  line-height: 1.5;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg);
}

.auth-panel-inner {
  width: min(100%, 400px);
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 1.5rem;
}

.auth-panel-inner h1 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.auth-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 1.35rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.auth-tabs button {
  padding: 0.65rem 0.5rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.auth-tabs button.is-on {
  background: var(--navy);
  color: #fff;
}

.auth-form .field {
  margin-bottom: 1rem;
}

.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
}

.auth-row a {
  color: var(--blue);
  font-weight: 600;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  cursor: pointer;
}

.phone-row {
  display: flex;
  gap: 0.5rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.phone-row select {
  width: 110px;
  flex-shrink: 0;
  padding: 0.85rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.phone-row input {
  flex: 1;
}

.auth-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.85rem;
}

.auth-footer-note {
  margin: 1.5rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-footer-note a {
  color: var(--blue);
  font-weight: 600;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .auth-mobile-brand {
    display: inline-flex;
  }

  .auth-main {
    min-height: auto;
  }
}

/* ——— Category listing ——— */
.page-services {
  background: #f4f5f7;
}

.cat-hero {
  padding: 1.5rem 0 0.5rem;
  background: transparent;
  border-bottom: 0;
}

.svc-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.svc-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  color: #4b5563;
  line-height: 1.05;
}

.svc-hero .lead {
  max-width: 34rem;
  color: #9ca3af;
  font-size: 1rem;
}

.svc-hero-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--blue);
  font-weight: 500;
}

.cat-hero-row {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
}

.cat-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-hero h1,
.svc-hero h1 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  color: #4b5563;
  line-height: 1.05;
}

.cat-hero .lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.cat-form {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 1.4rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cat-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.cat-form input {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

@media (max-width: 800px) {
  .cat-form {
    grid-template-columns: 1fr;
  }
}

.cat-section {
  padding-top: 1.5rem;
}

.svc-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.svc-switch a {
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 0;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
}

.svc-switch a.is-on,
.svc-switch a:hover {
  background: #111;
  color: #fff;
}

.svc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.svc-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.svc-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.svc-card > div:first-of-type,
.svc-card-foot {
  margin-inline: 1.1rem;
}

.svc-card > div:first-of-type {
  padding-top: 0.95rem;
}

.svc-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.svc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.svc-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 0;
}

.svc-card-foot strong {
  font-size: 0.92rem;
  color: var(--navy);
}

.svc-card-foot span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 650;
}

.svc-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0.7rem;
  background: #fff;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}

.svc-detail-photo {
  min-height: 280px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
}

.svc-detail-copy {
  padding: 1.1rem 1.1rem 1rem 0.3rem;
}

.svc-detail[hidden] {
  display: none;
}

.svc-back {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 650;
}

.svc-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.svc-detail h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}

.svc-detail > p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.55;
}

.svc-included {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.svc-included li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.svc-included strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}

.svc-included span {
  color: var(--muted);
  font-size: 0.84rem;
}

.svc-detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  padding-top: 1rem;
}

.svc-detail-foot strong {
  font-size: 1.05rem;
  color: var(--navy);
}

.cat-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.cat-side {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cat-side h2 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cat-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cat-nav-link {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.cat-nav-link:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.cat-nav-link.is-on {
  background: var(--navy);
  color: #fff;
}

.cat-toolbar {
  margin-bottom: 1rem;
}

.cat-count {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.cat-status {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cat-status strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.cat-status p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 100%;
  transition: border-color 0.2s, transform 0.25s var(--ease);
}

.product-card:hover {
  border-color: #b8c9e4;
  transform: translateY(-2px);
}

.product-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #e8eef6;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
}

.product-ph svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1rem 1.1rem;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--navy);
}

.product-body h3 a:hover {
  color: var(--blue);
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  border-radius: 8px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .cat-layout {
    grid-template-columns: 1fr;
  }

  .cat-side {
    position: static;
  }

  .cat-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .service-grid,
  .svc-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .svc-hero,
  .svc-detail {
    grid-template-columns: 1fr;
  }

  .svc-hero-photo img,
  .svc-detail-photo {
    height: 200px;
    min-height: 200px;
  }

  .svc-detail-copy {
    padding: 0.2rem 0.7rem 0.9rem;
  }
}

@media (max-width: 560px) {
  .cat-hero-row {
    flex-direction: column;
  }

  .cat-nav,
  .service-grid,
  .svc-list,
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Account hub ——— */
.account-main {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - var(--nav-h));
}

.account-loading {
  color: var(--muted);
  margin: 2rem 0;
}

.account-guest {
  max-width: 420px;
  margin: 3rem auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.5rem;
}

.account-guest-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.account-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.account-kicker {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.account-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.account-hero .lead {
  margin: 0;
  color: var(--muted);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.account-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.2rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.account-card:hover {
  border-color: #b7c9ea;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08);
}

.account-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.account-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.account-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.4rem;
}

.account-details h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.account-details dl {
  margin: 0 0 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.account-details dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: flex-start;
}

.account-details dt {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 0 0 auto;
  min-width: 4.5rem;
}

.account-details dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
  flex: 0 1 auto;
  max-width: 100%;
}

/* Keep +country phone / emails readable in Arabic RTL */
.ltr-text,
#account-phone,
#account-email {
  direction: ltr;
  unicode-bidi: isolate;
}

.auth-error.auth-ok {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

@media (max-width: 720px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-hero {
    align-items: flex-start;
  }

  .account-details dl > div {
    flex-direction: column;
    gap: 0.15rem;
  }

  .account-details dt {
    flex-basis: auto;
  }
}

/* ——— Profile (OBIC front) ——— */
.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.profile-back:hover {
  color: var(--blue);
}

.profile-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(26, 109, 255, 0.35), transparent 55%),
    radial-gradient(90% 120% at 90% 20%, rgba(125, 211, 252, 0.22), transparent 50%),
    linear-gradient(135deg, #0b1f3a 0%, #122a4a 48%, #0b4fd6 120%);
  color: #fff;
  box-shadow:
    0 18px 40px rgba(11, 31, 58, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.profile-hero-glow {
  position: absolute;
  inset: -40% auto auto 40%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.profile-hero-inner {
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.6rem 1.5rem 1.7rem;
}

.profile-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  background: linear-gradient(160deg, #1a6dff, #0b1f3a);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
}

.profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar img[hidden] {
  display: none !important;
}

.profile-avatar.has-photo #profile-avatar-initials {
  display: none;
}

.profile-photo-btn {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
}

.profile-photo-btn:hover {
  color: var(--blue);
}

.profile-hero-copy h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.profile-hero-copy .lead {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.78);
}

.profile-hero .account-kicker {
  color: rgba(255, 255, 255, 0.7);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-badge.is-status {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(110, 231, 183, 0.45);
}

.profile-flash {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.profile-flash.is-ok {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.profile-flash.is-err {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.profile-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.profile-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.55rem;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.05);
}

.profile-tabs button {
  text-align: start;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.profile-tabs button:hover {
  color: var(--navy);
  background: var(--blue-soft);
}

.profile-tabs button.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 8px 18px rgba(26, 109, 255, 0.28);
}

.profile-panels {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.06);
  min-height: 360px;
}

.profile-pane h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.profile-form {
  display: grid;
  gap: 0.85rem;
  max-width: 520px;
}

.profile-form .field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.profile-form input,
.profile-form textarea,
.profile-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus {
  outline: 2px solid rgba(26, 109, 255, 0.25);
  border-color: var(--blue);
}

.profile-status-card {
  background: var(--blue-soft);
  border: 1px solid #c9dbff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.1rem;
}

.profile-status-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.profile-status-card p {
  margin: 0;
  color: var(--muted);
}

.profile-danger {
  border: 1px solid #fecaca;
  background: #fff7f7;
  border-radius: 14px;
  padding: 1rem 1.1rem 1.15rem;
}

.profile-danger h3 {
  margin: 0 0 0.35rem;
  color: #991b1b;
  font-size: 1rem;
}

.profile-danger p {
  margin: 0 0 0.85rem;
  color: #7f1d1d;
  font-size: 0.92rem;
}

.profile-danger-btn {
  margin-bottom: 0.85rem;
}

.profile-danger-submit {
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
}

.profile-danger-submit:hover {
  background: #b91c1c;
}

@media (max-width: 860px) {
  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-tabs {
    flex-direction: row;
    overflow-x: auto;
  }

  .profile-tabs button {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .profile-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Orders + Chat hubs ——— */
.hub-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hub-hero h1 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.hub-hero .lead {
  margin: 0;
  color: var(--muted);
}

.orders-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.orders-filters button {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
}

.orders-filters button.is-on {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 8px 18px rgba(26, 109, 255, 0.25);
}

.orders-list {
  display: grid;
  gap: 0.85rem;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1.15rem;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.05);
}

.order-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.order-date {
  color: var(--muted);
  font-size: 0.88rem;
  margin-inline-start: 0.45rem;
}

.order-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.order-summary {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.order-badge {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #e2e8f0;
  color: #334155;
}

.order-badge.is-pending {
  background: #fef3c7;
  color: #92400e;
}
.order-badge.is-confirmed {
  background: #d1fae5;
  color: #065f46;
}
.order-badge.is-completed {
  background: #dbeafe;
  color: #1e40af;
}
.order-badge.is-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.orders-empty,
.chat-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.chat-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 480px;
}

.chat-sidebar-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.chat-threads {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  overflow-y: auto;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  text-align: start;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.chat-thread strong {
  font-size: 0.92rem;
}

.chat-thread span {
  font-size: 0.78rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-thread:hover {
  background: #f1f5f9;
}

.chat-thread.is-on {
  background: rgba(26, 109, 255, 0.1);
  border-color: rgba(26, 109, 255, 0.25);
}

.chat-browse {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.chat-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.06);
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-height: 480px;
}

@media (max-width: 820px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .chat-sidebar {
    min-height: 0;
  }
  .chat-threads {
    max-height: 180px;
  }
}

.chat-stream {
  padding: 1.1rem 1.15rem;
  overflow-y: auto;
  max-height: 52vh;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(26, 109, 255, 0.06), transparent 55%),
    #f8fafc;
}

.chat-bubble {
  max-width: min(78%, 440px);
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 6px;
  padding: 0.7rem 0.85rem 0.55rem;
  box-shadow: 0 6px 16px rgba(11, 31, 58, 0.05);
}

.chat-bubble.is-me {
  align-self: flex-end;
  background: linear-gradient(145deg, #1a6dff, #0b4fd6);
  color: #fff;
  border-color: transparent;
  border-radius: 16px 16px 6px 16px;
}

.chat-who {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 0.2rem;
}

.chat-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.chat-time {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  opacity: 0.65;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  padding: 0.85rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-compose input {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font: inherit;
}

.chat-compose input:focus {
  outline: 2px solid rgba(26, 109, 255, 0.25);
  border-color: var(--blue);
}

#chat-error {
  margin: 0 0.85rem 0.85rem;
}
