/* ==========================================================================
   AL-SIHR — Arabian / Maghrebi atmosphere layer
   Zellij geometry · Oud smoke · Gold filigree · Icon cards
   ========================================================================== */

:root {
  --arab-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='none' stroke='%23d4a017' stroke-opacity='0.09' stroke-width='0.8' d='M40 4 L76 40 L40 76 L4 40 Z M40 16 L64 40 L40 64 L16 40 Z M40 28 L52 40 L40 52 L28 40 Z'/%3E%3C/svg%3E");
  --arab-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath fill='none' stroke='%23d4a017' stroke-opacity='0.35' stroke-width='1.2' d='M8 32 Q8 8 60 8 Q112 8 112 32'/%3E%3Cpath fill='none' stroke='%23e11d48' stroke-opacity='0.2' stroke-width='0.8' d='M20 32 Q20 16 60 16 Q100 16 100 32'/%3E%3C/svg%3E");
}

/* ── Global atmosphere ── */
body.home-v2,
body.page-v2 {
  background-color: #030105;
  background-image:
    radial-gradient(ellipse 90% 55% at 100% 0%, rgba(159, 18, 57, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(212, 160, 23, 0.07), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(61, 10, 24, 0.15), transparent 70%),
    var(--arab-pattern),
    linear-gradient(180deg, #030105 0%, #0a0508 50%, #030105 100%);
  background-attachment: fixed, fixed, fixed, fixed, fixed;
}

body.home-v2::after,
body.page-v2::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  background:
    linear-gradient(90deg, rgba(3,1,5,0.65) 0%, transparent 12%, transparent 88%, rgba(3,1,5,0.65) 100%);
  mix-blend-mode: multiply;
}

/* Ornate section divider */
.v2-section-head::before,
.page-v2 .v2-page-hero .v2-pill::before {
  /* handled below */
}

.v2-section-head {
  position: relative;
  padding-top: 0.5rem;
}
.v2-section-head::after {
  content: "";
  display: block;
  width: min(220px, 55%);
  height: 28px;
  margin: 0.85rem 0 0;
  background: var(--arab-arch) center / contain no-repeat;
  opacity: 0.9;
}
.v2-section-head-center::after {
  margin-inline: auto;
}

/* Filigree frame utility */
.arab-frame {
  position: relative;
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(159, 18, 57, 0.15),
    inset 0 0 0 1px rgba(240, 215, 140, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.45);
}
.arab-frame::before,
.arab-frame::after {
  content: "✦";
  position: absolute;
  font-size: 0.65rem;
  color: rgba(212, 160, 23, 0.55);
  line-height: 1;
  z-index: 2;
}
.arab-frame::before { top: 10px; right: 12px; }
.arab-frame::after { bottom: 10px; left: 12px; }

/* ── Icon system (CSS geometric Maghrebi marks) ── */
.ico-arab {
  --ico-size: 48px;
  width: var(--ico-size);
  height: var(--ico-size);
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  background:
    linear-gradient(145deg, rgba(159, 18, 57, 0.45), rgba(12, 6, 10, 0.95));
  border: 1px solid rgba(212, 160, 23, 0.35);
  box-shadow:
    0 8px 24px rgba(159, 18, 57, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f0d78c;
  font-size: 1.25rem;
  line-height: 1;
}
.ico-arab::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  border: 1px dashed rgba(212, 160, 23, 0.2);
  pointer-events: none;
}
.ico-arab-lg { --ico-size: 64px; font-size: 1.55rem; border-radius: 20px; }
.ico-arab-sm { --ico-size: 36px; font-size: 0.95rem; border-radius: 12px; }

/* Symbol set via data-ico */
.ico-arab[data-ico="moon"]::before { content: "☾"; }
.ico-arab[data-ico="star"]::before { content: "✦"; }
.ico-arab[data-ico="seal"]::before { content: "۞"; }
.ico-arab[data-ico="flame"]::before { content: "✧"; }
.ico-arab[data-ico="eye"]::before { content: "◉"; }
.ico-arab[data-ico="link"]::before { content: "◈"; }
.ico-arab[data-ico="cut"]::before { content: "✂"; }
.ico-arab[data-ico="lock"]::before { content: "⚑"; }
.ico-arab[data-ico="msg"]::before { content: "✉"; }
.ico-arab[data-ico="check"]::before { content: "✓"; }
.ico-arab[data-ico="globe"]::before { content: "◎"; }
.ico-arab[data-ico="crown"]::before { content: "♛"; }
.ico-arab[data-ico="heart"]::before { content: "♡"; }
.ico-arab[data-ico="bolt"]::before { content: "⚡"; }
.ico-arab[data-ico="plus"]::before { content: "+"; }

/* ── Cards — Arabian luxury ── */
.card,
.page-v2 .card,
.pkg-card,
.v2-pkg-card,
.v2-step,
.v2-proof-item,
.faq details,
.v2-faq details {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(30, 12, 18, 0.92) 0%, rgba(12, 6, 10, 0.96) 100%);
  border: 1px solid rgba(212, 160, 23, 0.2);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(240, 215, 140, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.3s;
}
.card::before,
.pkg-card::before,
.v2-pkg-card::before,
.v2-step::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.7), rgba(225, 29, 72, 0.5), transparent);
  opacity: 0.85;
  pointer-events: none;
}
.card:hover,
.pkg-card:hover,
.v2-pkg-card:hover,
.v2-step:hover {
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(159, 18, 57, 0.12),
    inset 0 1px 0 rgba(240, 215, 140, 0.08);
}

.card {
  border-radius: 20px;
  padding: 1.35rem 1.25rem;
}
.card .ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
  color: #f0d78c;
  background: linear-gradient(145deg, rgba(159, 18, 57, 0.4), rgba(8, 4, 8, 0.9));
  border: 1px solid rgba(212, 160, 23, 0.3);
}
.card h3 {
  font-family: var(--font-d, "Noto Kufi Arabic", sans-serif);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.35rem;
}
.card .more {
  display: inline-flex;
  margin-top: 0.75rem;
  font-family: var(--font-d, "Noto Kufi Arabic", sans-serif);
  font-weight: 800;
  font-size: 0.88rem;
  color: #f0d78c;
}
.card .more::after { content: " ←"; opacity: 0.7; }

/* Spirit grid */
.arab-spirit-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .arab-spirit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .arab-spirit-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Icon card row */
.arab-icon-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.2rem;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(24, 10, 16, 0.95), rgba(8, 4, 8, 0.98));
  border: 1px solid rgba(212, 160, 23, 0.22);
  transition: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.arab-icon-card:hover {
  border-color: rgba(225, 29, 72, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}
.arab-icon-card h3 {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.3rem;
}
.arab-icon-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* Process steps with icons */
.v2-step {
  border-radius: 22px !important;
  padding: 1.75rem 1.15rem 1.5rem !important;
}
.v2-step .ico-arab {
  margin: 0 auto 1rem;
}
.v2-step-num {
  letter-spacing: 0.06em;
}

/* Proof strip icons */
.v2-proof {
  position: relative;
  overflow: hidden;
}
.v2-proof::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--arab-pattern);
  opacity: 0.5;
  pointer-events: none;
}
.v2-proof-item {
  border-radius: 18px !important;
  padding: 1.1rem 0.75rem 1rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.v2-proof-item .ico-arab {
  margin-bottom: 0.15rem;
}

/* Bento Arabian corners */
.v2-bento-card {
  border-radius: 24px !important;
  border-color: rgba(212, 160, 23, 0.22) !important;
}
.v2-bento-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(240, 215, 140, 0.08);
  pointer-events: none;
  z-index: 2;
}
.v2-bento-body span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 160, 23, 0.25);
}

/* Blog cards */
.blog-card {
  border-radius: 20px !important;
  border: 1px solid rgba(212, 160, 23, 0.16) !important;
  background: rgba(14, 8, 12, 0.95) !important;
}
.blog-card:hover {
  border-color: rgba(225, 29, 72, 0.4) !important;
}

/* Geo chips Arabian */
.v2-geo a {
  position: relative;
  background:
    linear-gradient(145deg, rgba(24, 10, 14, 0.95), rgba(10, 5, 8, 0.98)) !important;
  border-color: rgba(212, 160, 23, 0.25) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.v2-geo a:hover {
  box-shadow: 0 8px 28px rgba(159, 18, 57, 0.25);
}

/* Nav gold rim intensify */
.v2-nav-inner {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 160, 23, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Hero seal glow */
.v2-seal-img {
  box-shadow:
    0 0 0 1px rgba(212, 160, 23, 0.4),
    0 0 80px rgba(159, 18, 57, 0.4),
    0 0 120px rgba(212, 160, 23, 0.12),
    0 32px 64px rgba(0, 0, 0, 0.65) !important;
}

/* Marquee Arabian separators already ◆ — enhance track */
.v2-marquee {
  background:
    var(--arab-pattern),
    linear-gradient(90deg, #0a0408, #12080c 50%, #0a0408) !important;
  background-size: 80px 80px, auto !important;
}

/* Final CTA atmosphere */
.v2-final {
  background:
    var(--arab-pattern),
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(159, 18, 57, 0.4), transparent 60%),
    #030105 !important;
  background-size: 80px 80px, auto, auto !important;
}
.v2-final-inner {
  position: relative;
}
.v2-final-inner::before {
  content: "";
  display: block;
  width: min(280px, 70%);
  height: 32px;
  margin: 0 auto 1rem;
  background: var(--arab-arch) center / contain no-repeat;
}

/* Page hero ornament */
.v2-page-hero::after {
  content: "";
  display: block;
  width: min(200px, 50%);
  height: 24px;
  margin-top: 1rem;
  background: var(--arab-arch) center / contain no-repeat;
  opacity: 0.75;
}

/* Drawer Arabian */
.drawer {
  background:
    var(--arab-pattern),
    linear-gradient(180deg, rgba(8, 3, 6, 0.98), rgba(3, 1, 5, 0.99)) !important;
  background-size: 80px 80px, auto !important;
  border-left: 1px solid rgba(212, 160, 23, 0.15);
}

/* Buttons gold rim on primary */
.v2-btn-primary {
  position: relative;
  box-shadow:
    0 12px 40px rgba(225, 29, 72, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(212, 160, 23, 0.15) !important;
}

/* Scrollbar vibe */
@media (min-width: 900px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: #0a0508; }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9f1239, #3d0a18);
    border-radius: 999px;
    border: 2px solid #0a0508;
  }
}

/* ── Global sihr aggression strip + close (all pages) ── */
.sihr-strip {
  position: sticky;
  top: 0;
  z-index: 85;
  background: linear-gradient(90deg, #1a050c, #6b0f2a 40%, #3d0a18 70%, #1a050c);
  border-bottom: 1px solid rgba(212, 160, 23, 0.25);
  font-family: "Noto Kufi Arabic", sans-serif;
}
.sihr-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  padding: 0.55rem 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}
.sihr-strip .dot { color: rgba(240, 215, 140, 0.55); font-size: 0.55rem; }
.sihr-strip a {
  color: #f0d78c;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 160, 23, 0.35);
}
.sihr-strip a:hover { background: rgba(225, 29, 72, 0.35); color: #fff; }

.sihr-close {
  margin: 2.5rem auto 1rem;
  max-width: 820px;
}
.sihr-close-box {
  text-align: center;
  padding: clamp(1.75rem, 5vw, 2.75rem) 1.25rem;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(159, 18, 57, 0.35), transparent 60%),
    linear-gradient(165deg, rgba(24, 8, 14, 0.98), rgba(5, 2, 6, 0.99));
  border: 1px solid rgba(225, 29, 72, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(159, 18, 57, 0.12);
}
.sihr-close-kicker {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fb7185;
  margin-bottom: 0.65rem;
}
.sihr-close-box h2 {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}
.sihr-close-box > p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 32em;
  margin-inline: auto;
}

/* Push main content when strip exists — dock already handles bottom */
body.page-v2 { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
body.home-v2 { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* Floating WA — conversion god mode */
.fab-wa {
  position: fixed;
  z-index: 120;
  left: 1rem;
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.65rem 1.1rem 0.65rem 0.85rem;
  border-radius: 999px;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 900;
  font-size: 0.88rem;
  color: #fff !important;
  background: linear-gradient(145deg, #4ade80, #16a34a 55%, #128c7e);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 36px rgba(22, 163, 74, 0.45), 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: fab-breathe 2.4s ease-in-out infinite;
}
.fab-wa-pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: fab-ping 1.6s infinite;
}
.fab-wa:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.06);
}
@keyframes fab-breathe {
  0%, 100% { box-shadow: 0 12px 36px rgba(22, 163, 74, 0.4), 0 0 0 0 rgba(74, 222, 128, 0.35); }
  50% { box-shadow: 0 16px 44px rgba(22, 163, 74, 0.55), 0 0 0 10px rgba(74, 222, 128, 0); }
}
@keyframes fab-ping {
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { opacity: 0.85; }
}
@media (min-width: 900px) {
  .fab-wa { bottom: 1.5rem; left: 1.5rem; }
}
@media (max-width: 767px) {
  .fab-wa-txt { max-width: 7.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   FX LAYER — smoke · embers · shimmer · cursor glow · 3D tilt feel
   ========================================================================== */

/* Gold shimmer text */
.v2-h1-magh,
.v2-h1-sub,
.sihr-close-box h2 span {
  background-size: 200% auto !important;
  animation: gold-shine 5s linear infinite;
}
@keyframes gold-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Pill glow breathe */
.v2-pill {
  box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.25);
  animation: pill-glow 3s ease-in-out infinite;
}
@keyframes pill-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(225, 29, 72, 0.15), inset 0 0 12px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 0 28px rgba(225, 29, 72, 0.35), inset 0 0 12px rgba(0,0,0,0.2); }
}

/* Primary button shine sweep */
.v2-btn { position: relative; overflow: hidden; }
.v2-btn-primary::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine {
  0%, 20% { left: -60%; }
  60%, 100% { left: 140%; }
}

/* Hero FX layers */
.v2-hero { isolation: isolate; }
.fx-smoke,
.fx-embers,
.fx-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.fx-smoke {
  background:
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(80, 20, 30, 0.45), transparent 70%),
    radial-gradient(ellipse 35% 25% at 75% 70%, rgba(40, 10, 20, 0.4), transparent 65%),
    radial-gradient(ellipse 50% 20% at 50% 100%, rgba(20, 5, 10, 0.55), transparent 60%);
  animation: smoke-drift 12s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 0.55;
}
@keyframes smoke-drift {
  from { transform: translateY(0) scale(1); opacity: 0.4; }
  to { transform: translateY(-18px) scale(1.05); opacity: 0.65; }
}
.fx-embers {
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(240, 215, 140, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 30% 60%, rgba(251, 113, 133, 0.8), transparent),
    radial-gradient(1px 1px at 50% 30%, rgba(240, 215, 140, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 70% 50%, rgba(225, 29, 72, 0.75), transparent),
    radial-gradient(1px 1px at 85% 25%, rgba(240, 215, 140, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 20% 80%, rgba(251, 113, 133, 0.6), transparent),
    radial-gradient(1px 1px at 60% 75%, rgba(240, 215, 140, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 90% 85%, rgba(225, 29, 72, 0.65), transparent);
  background-size: 100% 100%;
  animation: embers-rise 8s linear infinite;
  opacity: 0.7;
}
@keyframes embers-rise {
  0% { transform: translateY(12px); opacity: 0.35; }
  50% { opacity: 0.85; }
  100% { transform: translateY(-28px); opacity: 0.25; }
}
.fx-vignette {
  z-index: 2;
  background: radial-gradient(ellipse 70% 70% at 50% 45%, transparent 30%, rgba(3,1,5,0.55) 100%);
}

/* Hero image slow ken burns */
.v2-hero-img {
  animation: ken-burns 22s ease-in-out infinite alternate;
}
@keyframes ken-burns {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.14) translate(-2%, 1%); }
}

/* Seal mystical aura */
.v2-seal-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 18, 57, 0.35), transparent 65%);
  filter: blur(20px);
  animation: aura-pulse 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes aura-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.95); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

/* Float cards glass shimmer */
.v2-float-card {
  backdrop-filter: blur(16px) saturate(1.2);
  animation: float-soft 5.5s ease-in-out infinite;
}
.v2-float-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: glass-sweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes glass-sweep {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}
.v2-float-b { animation-delay: 0.6s; }
.v2-float-c { animation-delay: 1.1s; }

/* Metrics glass pulse */
.v2-metrics div {
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.v2-metrics div:hover {
  border-color: rgba(212, 160, 23, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(159, 18, 57, 0.2);
}

/* Bento cursor spotlight (CSS only approx via hover) */
.v2-bento-card {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s, border-color 0.3s !important;
}
.v2-bento-card:hover {
  box-shadow:
    0 28px 60px rgba(0,0,0,0.55),
    0 0 50px rgba(159, 18, 57, 0.25),
    inset 0 0 40px rgba(212, 160, 23, 0.06) !important;
}
.v2-bento-shade {
  transition: opacity 0.4s;
}
.v2-bento-card:hover .v2-bento-shade {
  background: linear-gradient(0deg, rgba(3,1,5,0.88) 0%, rgba(3,1,5,0.25) 50%, rgba(159,18,57,0.15) 100%);
}

/* Icon arab rotate ring on hover */
.ico-arab {
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s;
}
.arab-icon-card:hover .ico-arab,
.v2-step:hover .ico-arab {
  transform: scale(1.08) rotate(-6deg);
  box-shadow:
    0 12px 32px rgba(159, 18, 57, 0.4),
    0 0 24px rgba(212, 160, 23, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Marquee dual glow */
.v2-marquee {
  position: relative;
}
.v2-marquee::before,
.v2-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.v2-marquee::before {
  right: 0;
  background: linear-gradient(90deg, transparent, #030105);
}
.v2-marquee::after {
  left: 0;
  background: linear-gradient(270deg, transparent, #030105);
}
.v2-marquee-track span {
  text-shadow: 0 0 20px rgba(212, 160, 23, 0.15);
}

/* Strip blood shimmer line */
.sihr-strip {
  position: relative;
  overflow: hidden;
}
.sihr-strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: strip-sweep 4.5s ease-in-out infinite;
}
@keyframes strip-sweep {
  0% { left: -40%; }
  100% { left: 120%; }
}

/* Close box breathing border */
.sihr-close-box {
  position: relative;
}
.sihr-close-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212,160,23,0.5), rgba(225,29,72,0.6), rgba(212,160,23,0.3));
  background-size: 200% 200%;
  animation: border-flow 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@keyframes border-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Nav glass stronger */
.v2-nav-inner {
  backdrop-filter: blur(18px) saturate(1.3);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.v2-nav-inner:hover {
  border-color: rgba(212, 160, 23, 0.4);
  box-shadow:
    0 16px 48px rgba(0,0,0,0.5),
    0 0 30px rgba(159, 18, 57, 0.12) !important;
}

/* Page hero blood orb */
.v2-page-hero::before {
  animation: orb-float 10s ease-in-out infinite alternate;
}
@keyframes orb-float {
  from { opacity: 0.7; transform: translateY(0); }
  to { opacity: 1; transform: translateY(12px); }
}

/* Dock glass */
.v2-dock {
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.45);
}
.v2-dock a {
  transition: transform 0.2s, filter 0.2s;
}
.v2-dock a:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.08);
}

/* Selection blood */
::selection {
  background: rgba(159, 18, 57, 0.55);
  color: #fff;
}

/* Noise flicker very subtle on body */
body.home-v2::before,
body.page-v2::before {
  animation: noise-shift 0.4s steps(2) infinite;
  opacity: 0.04;
}
@keyframes noise-shift {
  0% { transform: translate(0,0); }
  100% { transform: translate(-1%, 1%); }
}

/* Cursor glow follow — JS optional class on body */
body.fx-cursor {
  cursor: none;
}

/* Reduced motion kill switch */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .pkg-card:hover, .v2-pkg-card:hover,
  .v2-step:hover, .arab-icon-card:hover,
  .v2-dock a:hover, .fab-wa:hover { transform: none !important; }
  .v2-hero-img, .fx-smoke, .fx-embers, .v2-pill, .v2-h1-magh,
  .v2-h1-sub, .v2-float-card, .v2-seal-stage::before,
  .v2-btn-primary::before, .sihr-strip::after, .fab-wa,
  .sihr-close-box::before, body.home-v2::before, body.page-v2::before {
    animation: none !important;
  }
  .fx-smoke, .fx-embers { display: none; }
}
