/* غرفة زجاج: لوح سميك يُرى من حافته، ومصباح كهرماني للفعل فقط. */
body.crystal {
  --ink: #07080c;
  --ice: #f4f7fb;
  --mist: #d5deea;
  --lamp: #e7b56a;
  background: #07080c;
  color: var(--ice);
  color-scheme: dark;
  caret-color: var(--lamp);
}
body.crystal ::selection { background: #f0d7a8; color: #1c140c; }
body.crystal ::-webkit-scrollbar { width: 10px; height: 10px; }
body.crystal ::-webkit-scrollbar-track { background: #0c1018; }
body.crystal ::-webkit-scrollbar-thumb {
  background: linear-gradient(#f4e7cf, #b98a45);
  border-radius: 99px;
  border: 2px solid #0c1018;
}
body.crystal :focus-visible {
  outline: 2px solid #f0d7a8;
  outline-offset: 3px;
}

body.crystal .crystal-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  perspective: 1100px;
}
body.crystal .shard {
  position: absolute;
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.55), rgba(255,255,255,0.08) 38%, rgba(150,186,240,0.12) 70%, rgba(231,181,106,0.16));
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset -18px 0 24px rgba(255,255,255,0.08),
    24px 36px 60px rgba(0,0,0,0.4);
}
body.crystal .shard-a {
  width: min(30vw, 300px);
  height: min(62vh, 480px);
  top: 18vh;
  left: -2vw;
  transform: rotateY(28deg) rotateZ(-8deg);
}
body.crystal .shard-b {
  width: min(18vw, 190px);
  height: min(36vh, 280px);
  top: 22vh;
  right: -2vw;
  transform: rotateY(-24deg) rotateZ(8deg);
}
body.crystal .shard-c {
  width: min(46vw, 520px);
  height: 18px;
  left: 22vw;
  bottom: 16vh;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), rgba(231,181,106,0.85), transparent);
  transform: rotateX(68deg);
}
body.crystal .glass-chamber {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}
body.crystal .crystal-fallback { display: none; }
body.crystal .progressive-blur-top,
body.crystal .laser-beam-bg,
body.crystal .bg-gradient-radial { display: none !important; }
body.crystal nav,
body.crystal main,
body.crystal footer { position: relative; z-index: 2; }

body.crystal nav.glass-nav {
  position: sticky;
  top: 14px;
  width: min(1180px, calc(100% - 28px));
  margin: 14px auto 0;
  height: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.05) 28%, rgba(8,12,20,0.45)) !important;
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    0 18px 40px rgba(0,0,0,0.45);
}
body.crystal nav.glass-nav > div { height: 68px; }

body.crystal .glass-card,
body.crystal .bento-card,
body.crystal .glass-slab,
body.crystal footer,
body.crystal #userDropdownMenu,
body.crystal #pricing .rounded-3xl,
body.crystal #features .rounded-3xl {
  background: linear-gradient(165deg, rgba(255,255,255,0.2), rgba(255,255,255,0.04) 32%, rgba(8,12,20,0.42)) !important;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 -20px 40px rgba(255,255,255,0.03),
    0 26px 50px rgba(0,0,0,0.42);
  position: relative;
  overflow: hidden;
}
body.crystal .glass-card::after,
body.crystal .bento-card::after,
body.crystal .glass-slab::after {
  content: "";
  position: absolute;
  inset: -60% -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.28) 49%, transparent 56%);
  animation: crystalSweep 8.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes crystalSweep {
  0%, 40% { transform: translateX(-18%) rotate(8deg); }
  100% { transform: translateX(18%) rotate(8deg); }
}
body.crystal .bento-card::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent 36%);
}

body.crystal .glass-float { perspective: 1600px; }
body.crystal .glass-float > .glass-slab {
  transform: rotateY(14deg) rotateX(8deg) translateZ(24px);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-width: 1px;
}

body.crystal [class*="from-cyan-"],
body.crystal [class*="from-sky-"],
body.crystal .bg-amber-200 {
  background-image: linear-gradient(180deg, #fff8ec, #e7b56a) !important;
  background-color: #e7b56a !important;
  color: #1c140c !important;
  border-color: rgba(255, 244, 220, 0.9) !important;
  box-shadow: inset 0 1px 0 #fffaf1, 0 12px 26px rgba(231, 181, 106, 0.35) !important;
}
body.crystal .text-cyan-400,
body.crystal .text-cyan-300,
body.crystal .text-sky-400 { color: #e7eef8 !important; }
body.crystal .text-slate-300,
body.crystal .text-slate-400 { color: var(--mist) !important; }
body.crystal .font-en { font-family: Literata, Cairo, serif; }
body.crystal h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
body.crystal h2 { letter-spacing: -0.03em; text-wrap: balance; }

body.crystal input,
body.crystal textarea,
body.crystal select {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  color: var(--ice) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
body.crystal input::placeholder,
body.crystal textarea::placeholder { color: #c5d2e4; }
body.crystal #heroPriceSingle,
body.crystal #heroPriceDual { color: #fff6e4 !important; }

@media (max-width: 900px) {
  body.crystal nav.glass-nav { top: 8px; width: calc(100% - 16px); }
  body.crystal .glass-float > .glass-slab { transform: none; }
  body.crystal .shard-a { left: -28vw; opacity: 0.55; }
  body.crystal .shard-b { right: -28vw; opacity: 0.55; }
  body.crystal .shard-c { display: none; }
}
body.crystal.admin-desk h1 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.25;
  text-shadow: none;
}
body.crystal.admin-desk header.glass-nav {
  top: 10px;
  width: min(1280px, calc(100% - 20px));
  margin: 10px auto 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05) 30%, rgba(8,12,20,0.55)) !important;
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 18px 40px rgba(0,0,0,0.45);
}
body.crystal.admin-desk .glass-panel {
  background: linear-gradient(165deg, rgba(255,255,255,0.14), rgba(8,12,20,0.78) 46%) !important;
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border: 1px solid rgba(255,255,255,0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 18px 36px rgba(0,0,0,0.38);
}
body.crystal.admin-desk #adminPinGate {
  background: rgba(7, 8, 12, 0.78);
}
body.crystal.admin-desk button[class*="from-purple-"],
body.crystal.admin-desk button[class*="from-indigo-"],
body.crystal.admin-desk a[class*="from-purple-"] {
  background-image: linear-gradient(180deg, #fff8ec, #e7b56a) !important;
  background-color: #e7b56a !important;
  color: #1c140c !important;
  border-color: rgba(255, 244, 220, 0.9) !important;
  box-shadow: inset 0 1px 0 #fffaf1, 0 12px 26px rgba(231, 181, 106, 0.32) !important;
}
body.crystal.admin-desk .shard-a { left: -10vw; opacity: 0.42; }
body.crystal.admin-desk .shard-b { right: -10vw; opacity: 0.42; }
body.crystal.admin-desk .shard-c { opacity: 0.55; }
body.crystal.admin-desk table { color: var(--ice); }
@media (max-width: 900px) {
  body.crystal.admin-desk header.glass-nav { top: 8px; width: calc(100% - 16px); }
  body.crystal.admin-desk .shard-a { left: -36vw; opacity: 0.35; }
  body.crystal.admin-desk .shard-b { right: -36vw; opacity: 0.35; }
  body.crystal.admin-desk .shard-c { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.crystal .glass-card::after,
  body.crystal .bento-card::after,
  body.crystal .glass-slab::after { animation: none; }
  body.crystal .glass-float > .glass-slab { transition: none; }
}
