/* =========================================================================
   Aumnia Digital Card — Umnia Alkhair
   Burgundy / gold / white premium theme · mobile-first · RTL + LTR
   ========================================================================= */

/* El Messiri — the Aumnia app font (copied from the Aumnia customer app assets; SIL Open Font License) */
@font-face {
  font-family: "El Messiri";
  src: url("../fonts/ElMessiri-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --maroon-950: #2E0710;
  --maroon-900: #3F0A14;
  --maroon-800: #4A0D17;
  --maroon-700: #5E111E;
  --maroon-600: #6E1423;
  --maroon-500: #8C1C2E;
  --maroon-100: #F6E9EB;
  --maroon-50:  #FBF4F5;

  --gold-700: #8A6A24;
  --gold-600: #9C7A2E;
  --gold-500: #C9A14A;
  --gold-400: #D9B866;
  --gold-300: #E6CC85;
  --gold-100: #F7EFD9;
  --gold-grad: linear-gradient(135deg, #F3DFA2 0%, #C9A14A 45%, #9C7A2E 75%, #E6CC85 100%);

  --white: #FFFFFF;
  --cream: #FBF8F4;
  --ink: #2A1A1D;
  --ink-2: #4B3B3E;
  --muted: #7D6D70;
  --line: #EEE4DE;

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(74, 13, 23, .06), 0 2px 8px rgba(74, 13, 23, .05);
  --shadow: 0 10px 30px -12px rgba(74, 13, 23, .22), 0 2px 6px rgba(74, 13, 23, .06);
  --shadow-lg: 0 40px 80px -30px rgba(46, 7, 16, .45), 0 12px 30px -16px rgba(46, 7, 16, .25);

  --font-ar: "El Messiri", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-en: "El Messiri", "Segoe UI", system-ui, Arial, sans-serif;
  --font-display-en: "El Messiri", "Segoe UI", Georgia, serif;

  --card-w: 480px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --bar-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
bdi { unicode-bidi: isolate; }
.ic { width: 22px; height: 22px; flex: none; }

:focus-visible { outline: 2.5px solid var(--gold-500); outline-offset: 3px; border-radius: 10px; }

/* ---------- page / shell ---------- */
.page-bg { display: none; }
.card-shell { width: 100%; }
.card {
  position: relative;
  width: 100%;
  max-width: var(--card-w);
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 12px);
  transition: opacity .18s ease, filter .18s ease;
}
.card.switching { opacity: 0; filter: blur(4px); }

@media (min-width: 560px) {
  body { background: #F5EEE8; }
  .page-bg {
    display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(60vw 50vh at 85% -10%, rgba(110, 20, 35, .20), transparent 70%),
      radial-gradient(50vw 50vh at 0% 110%, rgba(201, 161, 74, .22), transparent 70%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%236E1423' stroke-width='.7' opacity='.10'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
  }
  .card-shell { position: relative; z-index: 1; padding: 40px 16px 48px; }
  .card {
    min-height: auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    padding-bottom: 8px;
  }
}

/* ---------- skeleton ---------- */
.skeleton { padding: 0 0 24px; }
.sk-hero { height: 300px; background: linear-gradient(160deg, var(--maroon-600), var(--maroon-800)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 0 0 32px 32px; }
.sk-logo { width: 104px; height: 104px; border-radius: 50%; background: rgba(255,255,255,.15); }
.sk-line { height: 12px; border-radius: 6px; background: rgba(255,255,255,.18); }
.sk-card .sk-line { background: var(--line); }
.w70 { width: 70%; } .w50 { width: 50%; } .w40 { width: 40%; } .w30 { width: 30%; }
.sk-card { margin: -36px 16px 0; padding: 22px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: grid; gap: 12px; justify-items: center; }
.sk-row { width: 100%; height: 64px; border-radius: 14px; background: var(--cream); }
.skeleton span { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.load-error { padding: 80px 24px; text-align: center; display: grid; gap: 18px; justify-items: center; color: var(--ink-2); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  text-align: center;
  padding: calc(14px + env(safe-area-inset-top)) 20px 104px;
  background: linear-gradient(165deg, var(--maroon-500) 0%, var(--maroon-600) 38%, var(--maroon-800) 78%, var(--maroon-900) 100%);
  border-radius: 0 0 36px 36px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__pattern {
  position: absolute; inset: -40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23E6CC85' stroke-width='.8'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l7 7M56 0l-7 7M0 56l7-7M56 56l-7-7'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .16;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  animation: drift 60s linear infinite;
}
@keyframes drift { to { transform: translate3d(56px, 56px, 0); } }
.hero__glow {
  position: absolute; width: 380px; height: 380px; inset-inline-end: -160px; top: -170px;
  background: radial-gradient(circle, rgba(230, 204, 133, .38), transparent 65%);
  filter: blur(4px);
}
.hero::after { /* gold hairline at the bottom curve */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: .8;
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.brand-chip {
  font-family: var(--font-display-en);
  letter-spacing: .32em; font-size: 12px; font-weight: 600;
  padding: 6px 12px 6px 14px; border-radius: 999px;
  color: var(--gold-300);
  border: 1px solid rgba(230, 204, 133, .35);
  background: rgba(0, 0, 0, .12);
  direction: ltr;
}
.lang-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.lang-btn .ic { width: 18px; height: 18px; color: var(--gold-300); }
.lang-btn[lang="ar"] span { font-family: var(--font-ar); }
.lang-btn:hover { background: rgba(255, 255, 255, .18); border-color: var(--gold-300); }
.lang-btn:active { transform: scale(.96); }

/* logo / emblem */
.hero__logo { display: grid; place-items: center; margin: 4px auto 18px; }
.emblem, .logo-frame {
  position: relative;
  width: 112px; height: 112px; border-radius: 50%;
  background: #fff;
  /* thin gold ring, same as the director photo's gold line (no thick white ring) */
  box-shadow: 0 0 0 2px var(--gold-400), 0 18px 40px -12px rgba(0, 0, 0, .55);
}
.logo-frame { display: block; overflow: hidden; }
/* framing (focal point + zoom) comes from card data as an inline style; the file itself is never cropped */
.logo-img, .avatar__img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.emblem { display: grid; place-items: center; }
.emblem__star { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); fill: none; stroke: var(--gold-500); stroke-width: 1.4; animation: spin 48s linear infinite; }
.emblem__star circle { stroke: var(--gold-300); stroke-width: 1; }
.emblem__mark {
  position: relative;
  font-family: var(--font-ar);
  font-size: 50px; font-weight: 700; line-height: 1;
  color: var(--maroon-600);
  transform: translateY(4px);
  text-shadow: 0 1px 0 #fff;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__name {
  font-size: clamp(19px, 5.4vw, 23px);
  font-weight: 700;
  line-height: 1.55;
  max-width: 24ch;
  margin: 0 auto;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}
html[lang="en"] .hero__name { font-family: var(--font-display-en); font-size: clamp(28px, 8vw, 34px); letter-spacing: .01em; line-height: 1.2; }
.hero__activity {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 14px;
  color: var(--gold-300);
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
html[lang="en"] .hero__activity { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.hero__line { flex: 0 0 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400)); }
.hero__line:last-child { transform: scaleX(-1); }

/* company location line under the activity */
.hero__locwrap { display: flex; justify-content: center; margin: 10px auto 0; max-width: 34ch; }
.hero__loc {
  display: inline-flex; align-items: flex-start; justify-content: center; gap: 6px;
  padding: 3px 8px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.6;
  color: rgba(255, 255, 255, .86); text-decoration: none; text-align: center;
  text-wrap: balance; overflow-wrap: anywhere;
  transition: color .25s, background .25s;
}
.hero__loc:hover, .hero__loc:focus-visible { color: #fff; background: rgba(255, 255, 255, .08); }
.hero__locpin { flex: none; display: inline-grid; margin-top: 2px; }
.hero__locpin .ic { width: 15px; height: 15px; color: var(--gold-300); stroke-width: 2; }
html[lang="en"] .hero__loc { font-size: 12px; letter-spacing: .01em; }

/* =========================================================================
   BODY / PANELS
   ========================================================================= */
.body { position: relative; padding: 0 16px 8px; margin-top: -40px; display: grid; gap: 16px; }

.profile {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0 18px 18px;
  text-align: center;
  border: 1px solid rgba(201, 161, 74, .22);
}
.avatar {
  width: 92px; height: 92px; margin: -46px auto 10px; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-100), #fff);
  display: grid; place-items: center;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold-400), var(--shadow);
  overflow: hidden;
}
.avatar__ph .ic { width: 46px; height: 46px; color: var(--maroon-500); opacity: .75; stroke-width: 1.3; }
.profile__name { font-size: 20px; font-weight: 700; color: var(--maroon-700); }
html[lang="en"] .profile__name { font-family: var(--font-display-en); font-size: 22px; }
.profile__title { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--gold-600); }
.profile__org { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.profile__org .ic { width: 16px; height: 16px; }

.ph {
  color: var(--muted);
  font-style: normal; font-weight: 600;
  border-bottom: 1.5px dashed var(--gold-400);
  padding-bottom: 1px;
}

/* quick actions */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.qa {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; gap: 7px;
  padding: 12px 4px 10px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s;
}
.qa__icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(150deg, var(--maroon-500), var(--maroon-800));
  box-shadow: 0 8px 16px -8px rgba(110, 20, 35, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .4s var(--ease-spring);
}
.qa--wa .qa__icon .ic { width: 24px; height: 24px; }
.qa__label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.qa:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-300); background: #fff; }
.qa:hover .qa__icon { transform: scale(1.07) rotate(-4deg); }
.qa:active { transform: translateY(0) scale(.97); }

/* Unconfigured actions keep their full colours; they just don't navigate (handled in JS). */
.is-pending { cursor: default; }

.panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 20px 18px;
}
.panel__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; color: var(--maroon-700);
  margin-bottom: 14px;
}
html[lang="en"] .panel__title { font-family: var(--font-display-en); font-size: 19px; letter-spacing: .01em; }
.panel__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-300), transparent); margin-inline-start: 4px; }
html[dir="rtl"] .panel__title::after { background: linear-gradient(270deg, var(--gold-300), transparent); }
.panel__icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--gold-700);
}
.panel__icon .ic { width: 19px; height: 19px; }
.panel__lead { display: grid; gap: 2px; margin-bottom: 14px; }
.panel__lead strong { color: var(--ink); font-size: 15.5px; }
.panel__lead span { color: var(--muted); font-size: 13.5px; }

/* about */
.about__text { color: var(--ink-2); font-size: 15px; line-height: 1.95; text-align: justify; text-justify: inter-word; }
html[lang="en"] .about__text { line-height: 1.7; text-align: start; }

/* social row (same tiles as the quick actions) */
.social { margin: 0; }
.soc .qa__icon { overflow: hidden; background: none; box-shadow: 0 8px 16px -9px rgba(0, 0, 0, .55); }
.soc .qa__icon .ic { width: 100%; height: 100%; }

/* contact rows */
.rows { display: grid; gap: 8px; }
.row {
  position: relative; overflow: hidden;
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px;
  background: var(--cream);
  border: 1px solid transparent;
  text-align: start;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.row:hover { background: #fff; border-color: var(--gold-300); transform: translateX(var(--nudge, 3px)); }
html[dir="rtl"] .row:hover { --nudge: -3px; }
.row__icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: #fff; color: var(--maroon-600);
  box-shadow: var(--shadow-sm);
}
.row__icon .ic { width: 20px; height: 20px; }
.row__body { display: grid; min-width: 0; flex: 1; }
.row__label { font-size: 12px; color: var(--muted); font-weight: 600; }
.row__value { font-size: 15px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__go { color: var(--gold-600); flex: none; }
.row__go .ic { width: 18px; height: 18px; }
.badge-pending {
  font-size: 11px; font-weight: 700; color: var(--gold-700);
  background: var(--gold-100); border: 1px dashed var(--gold-400);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

.address { margin-top: 4px; padding: 12px; border-radius: 16px; background: var(--cream); display: grid; gap: 12px; }
.address__head { display: flex; align-items: center; gap: 12px; }
.address__head .row__value { white-space: normal; overflow: visible; line-height: 1.6; }
.address__map {
  position: relative; height: 112px; border-radius: 12px; overflow: hidden;
  background:
    linear-gradient(rgba(110, 20, 35, .06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(110, 20, 35, .06) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120px 70px at 30% 70%, rgba(201, 161, 74, .22), transparent 70%),
    linear-gradient(160deg, #FFFDF9, #F4ECE2);
  border: 1px solid var(--line);
}
.address__map::before, .address__map::after { /* stylised roads */
  content: ""; position: absolute; background: rgba(255, 255, 255, .95); box-shadow: 0 0 0 1px rgba(201, 161, 74, .25);
}
.address__map::before { height: 9px; left: -10%; right: -10%; top: 58%; transform: rotate(-8deg); }
.address__map::after { width: 9px; top: -10%; bottom: -10%; left: 62%; transform: rotate(14deg); }
.address__pin { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -88%); color: var(--maroon-600); animation: bob 2.6s var(--ease) infinite; }
.address__pin .ic { width: 34px; height: 34px; fill: var(--maroon-600); stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 6px 6px rgba(74, 13, 23, .35)); }
.address__pulse { position: absolute; left: 50%; top: 50%; z-index: 1; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(110, 20, 35, .35); animation: ping 2.6s ease-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -100%); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.address__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 16px; border-radius: 14px;
  font-size: 14.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap;
}
.btn .ic { width: 19px; height: 19px; }
.btn:active { transform: scale(.97); }
.btn--maroon { color: #fff; background: linear-gradient(150deg, var(--maroon-500), var(--maroon-800)); box-shadow: 0 10px 20px -10px rgba(110, 20, 35, .8), inset 0 1px 0 rgba(255,255,255,.15); }
.btn--maroon:hover { box-shadow: 0 14px 26px -10px rgba(110, 20, 35, .9); }
.btn--gold { color: var(--maroon-900); background: var(--gold-grad); background-size: 200% 200%; box-shadow: 0 10px 22px -10px rgba(156, 122, 46, .9), inset 0 1px 0 rgba(255,255,255,.5); animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 100%; } }
.btn--ghost { color: var(--maroon-600); background: #fff; border-color: var(--gold-300); }
.btn--ghost:hover { border-color: var(--gold-500); background: var(--gold-100); }

/* services */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc {
  position: relative; overflow: hidden;
  padding: 14px 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--cream));
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.svc::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: var(--origin, left);
  transition: transform .45s var(--ease);
}
html[dir="rtl"] .svc::before { --origin: right; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.svc:hover::before { transform: scaleX(1); }
.svc__icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--gold-300);
  background: linear-gradient(150deg, var(--maroon-500), var(--maroon-800));
  margin-bottom: 10px;
  box-shadow: 0 8px 14px -8px rgba(110, 20, 35, .7);
}
.svc__icon .ic { width: 21px; height: 21px; }
.svc__title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.svc__text { margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* stores */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.store {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 9px 12px; border-radius: 14px;
  color: #fff; background: #111;
  border: 1px solid #2b2b2b;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  direction: ltr;
}
.store:hover { transform: translateY(-2px); background: #000; box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .8); }
.store .ic { flex: none; width: 34px; height: 34px; }
.store .ic-store--gp { width: 31px; height: 34px; }
.store .ic-store--apple { width: 32px; height: 32px; margin-top: -3px; color: #fff; }
.store__txt { display: grid; line-height: 1.15; text-align: left; }
.store__txt small { font-size: 10px; letter-spacing: .04em; opacity: .85; font-family: var(--font-ar); }
.store__txt b { font-size: 16px; font-weight: 600; letter-spacing: .01em; font-family: var(--font-en); white-space: nowrap; }
html[dir="rtl"] .store__txt { text-align: right; }
.panel--apps { background: linear-gradient(160deg, #fff 55%, var(--gold-100)); }

/* QR */
.qr { display: grid; justify-items: center; text-align: center; gap: 6px; }
.qr__frame { position: relative; padding: 16px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); margin: 4px 0 8px; }
.qr__code { width: 196px; height: 196px; }
.qr__code svg { width: 100%; height: 100%; }
.qr__corner { position: absolute; width: 24px; height: 24px; border: 3px solid var(--gold-500); }
.qr__corner.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.qr__corner.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.qr__corner.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.qr__corner.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.qr__hint { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.qr__url { font-family: var(--font-en); font-size: 15px; font-weight: 700; color: var(--maroon-600); letter-spacing: .02em; }
.qr__notice {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: var(--gold-700); background: var(--gold-100); border: 1px dashed var(--gold-400);
}
.qr__notice .ic { width: 15px; height: 15px; }
.qr__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 10px; }

/* footer */
.foot { text-align: center; padding: 18px 0 6px; color: var(--muted); font-size: 12.5px; display: grid; gap: 4px; justify-items: center; }
.foot__mark .emblem { width: 44px; height: 44px; box-shadow: none; }
.foot__mark .emblem::before { inset: -2px; padding: 2px; }
.foot__mark .emblem__star { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
.foot__mark .emblem__mark { font-size: 20px; transform: translateY(2px); }
.foot__mark .logo-frame { width: 44px; height: 44px; box-shadow: 0 0 0 1px var(--gold-300); }
.foot__mark { margin-bottom: 6px; }
.foot__url { font-family: var(--font-en); letter-spacing: .06em; color: var(--gold-600); font-weight: 600; }

/* sticky action bar */
.actionbar {
  position: fixed; z-index: 30;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--card-w);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid rgba(201, 161, 74, .3);
  box-shadow: 0 -10px 30px -18px rgba(74, 13, 23, .4);
  animation: barIn .7s .5s var(--ease) both;
}
.actionbar .btn { min-height: 52px; font-size: 15px; }
@keyframes barIn { from { transform: translate(-50%, 110%); } }
@media (min-width: 560px) {
  .actionbar { bottom: 18px; border-radius: 22px; border: 1px solid rgba(201, 161, 74, .35); max-width: calc(var(--card-w) - 24px); padding: 10px; }
  .card { padding-bottom: 96px; }
}

/* toast */
.toast {
  position: fixed; z-index: 40; left: 50%; bottom: calc(var(--bar-h) + 22px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 11px 16px; border-radius: 14px;
  background: var(--maroon-900); color: #fff;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 30px -12px rgba(46, 7, 16, .6);
  border: 1px solid rgba(230, 204, 133, .35);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast .ic { width: 18px; height: 18px; color: var(--gold-300); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 560px) { .toast { bottom: 110px; } }

/* ripple */
.btn-fx { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(230, 204, 133, .45), rgba(230, 204, 133, 0) 70%);
  transform: scale(0); animation: ripple .65s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* =========================================================================
   MOTION
   ========================================================================= */
.ready .hero__logo { animation: popIn .9s var(--ease-spring) both; }
.ready .hero__name { animation: fadeUp .8s .15s var(--ease) both; }
.ready .hero__activity { animation: fadeUp .8s .28s var(--ease) both; }
.ready .hero__locwrap { animation: fadeUp .8s .38s var(--ease) both; }
.ready .topbar { animation: fadeIn .8s .1s ease both; }
@keyframes popIn { from { opacity: 0; transform: scale(.6) rotate(-12deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes fadeIn { from { opacity: 0; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in .svc { animation: fadeUp .6s calc(var(--i, 0) * 70ms + 120ms) var(--ease) both; }
.profile.reveal { transition-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   RESPONSIVE TWEAKS
   ========================================================================= */
@media (max-width: 360px) {
  .body { padding-inline: 12px; }
  .quick { gap: 6px; }
  .qa__icon { width: 42px; height: 42px; }
  .qa__label { font-size: 11.5px; }
  .svc-grid { grid-template-columns: 1fr; }
  .stores, .address__actions, .qr__actions { grid-template-columns: 1fr; }
  .actionbar .btn { font-size: 14px; padding-inline: 10px; }
}

@media print {
  .actionbar, .toast, .lang-btn, .page-bg { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}
