/* ==========================================================================
   NÉON MEDIA — Crystal Glass Layer
   طبقة «الزجاج الكريستالي» فوق التصميم الأساسي:
   شفافية أعمق + ضبابية + انعكاسات ضوئية + حدود مضيئة.
   لا تُغيّر أي أبعاد أو تخطيط — فقط المظهر.
   ========================================================================== */

:root {
  --gx-blur: 18px;
  --gx-blur-strong: 26px;
  --gx-sat: 170%;
  --gx-tint: rgba(255, 255, 255, 0.055);
  --gx-tint-2: rgba(255, 255, 255, 0.015);
  --gx-accent-tint: rgba(var(--accent-rgb), 0.07);
  --gx-border: rgba(255, 255, 255, 0.14);
  --gx-border-soft: rgba(255, 255, 255, 0.08);
  --gx-specular: rgba(255, 255, 255, 0.32);
  --gx-shadow:
    0 22px 55px rgba(0, 0, 0, 0.42),
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  --gx-shadow-hover:
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(var(--accent-rgb), 0.16),
    0 0 46px rgba(var(--accent-rgb), 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --gx-panel:
    linear-gradient(152deg, var(--gx-tint) 0%, var(--gx-tint-2) 38%, var(--gx-accent-tint) 100%);
}

html[data-theme='light'] {
  --gx-tint: rgba(255, 255, 255, 0.62);
  --gx-tint-2: rgba(255, 255, 255, 0.34);
  --gx-accent-tint: rgba(var(--accent-rgb), 0.08);
  --gx-border: rgba(16, 32, 64, 0.14);
  --gx-border-soft: rgba(16, 32, 64, 0.09);
  --gx-specular: rgba(255, 255, 255, 0.9);
  --gx-shadow:
    0 20px 45px rgba(24, 44, 84, 0.14),
    0 2px 8px rgba(24, 44, 84, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --gx-shadow-hover:
    0 28px 60px rgba(24, 44, 84, 0.18),
    0 0 0 1px rgba(var(--accent-rgb), 0.22),
    0 0 40px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --gx-panel:
    linear-gradient(152deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.5) 45%, rgba(var(--accent-rgb), 0.10) 100%);
}

/* ---------------------------- Shared glass ------------------------------- */
.glass,
.card-neon,
.cv-card,
.contact-panel,
.contact-form-card,
.contact-method,
.hours-list li,
.map-cta,
.audience-chip,
.service-card,
.package-card,
.work-card,
.testimonial-card,
.payment-card,
.accordion-item,
.about-value,
.client-logo,
.process-step,
.login-card,
.notif-panel,
.chatbot-panel,
.chat-float,
.cart-fab,
.order-summary {
  background: var(--gx-panel), var(--surface);
  border-color: var(--gx-border);
  box-shadow: var(--gx-shadow);
  -webkit-backdrop-filter: blur(var(--gx-blur)) saturate(var(--gx-sat));
  backdrop-filter: blur(var(--gx-blur)) saturate(var(--gx-sat));
}

.service-card,
.package-card,
.work-card,
.testimonial-card,
.payment-card,
.contact-method,
.audience-chip,
.accordion-item,
.contact-panel,
.contact-form-card,
.cv-card,
.login-card {
  transition:
    transform 0.4s var(--ease, ease),
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.contact-panel,
.accordion-item {
  position: relative;
}

/* Hairline specular highlight along the top edge of every glass card */
.service-card::after,
.package-card::after,
.testimonial-card::after,
.payment-card::after,
.contact-panel::after,
.contact-form-card::after,
.cv-card::after,
.accordion-item::after {
  content: '';
  position: absolute;
  inset-inline: 12%;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gx-specular), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.service-card:hover,
.package-card:hover,
.work-card:hover,
.contact-method:hover,
.audience-chip:hover,
.testimonial-card:hover,
.payment-card:hover {
  border-color: rgba(var(--accent-rgb), 0.32);
  box-shadow: var(--gx-shadow-hover);
}

/* ------------------------------ Header ----------------------------------- */
.site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 6, 12, 0.72), rgba(4, 6, 12, 0.42));
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid var(--gx-border-soft);
  pointer-events: none;
}
html[data-theme='light'] .site-header::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58));
}
.site-header.is-scrolled::before {
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.9), rgba(4, 6, 12, 0.74));
}
html[data-theme='light'] .site-header.is-scrolled::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8));
}

/* Crystal pill buttons */
.nav-whatsapp,
.icon-btn,
.btn-ghost,
.btn-soft,
.btn-outline-neon {
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn-neon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    0 10px 30px rgba(var(--accent-rgb), 0.32);
}

/* --------------------------- Panels & modal ------------------------------ */
.modal-content {
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.08), transparent 40%),
    rgba(7, 12, 22, 0.78);
  border: 1px solid var(--gx-border);
  box-shadow:
    0 50px 140px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 90px rgba(var(--accent-rgb), 0.08);
  -webkit-backdrop-filter: blur(var(--gx-blur-strong)) saturate(var(--gx-sat));
  backdrop-filter: blur(var(--gx-blur-strong)) saturate(var(--gx-sat));
}
html[data-theme='light'] .modal-content {
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.8);
}

.mobile-menu {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 45%),
    rgba(5, 8, 16, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
}
html[data-theme='light'] .mobile-menu {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76));
}

/* ------------------------------ Fields ----------------------------------- */
.form-control,
.form-select,
.form-check-input {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: var(--gx-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html[data-theme='light'] .form-control,
html[data-theme='light'] .form-select {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62));
}

/* --------------------------- Section glow -------------------------------- */
.section-head h2,
.page-hero h1 {
  text-shadow: 0 0 34px rgba(var(--accent-rgb), 0.16);
}

/* Social + chips */
.social-btn,
.pay-mini-btn,
.cart-qty {
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Chatbot / notification bubbles */
.notif-panel,
.chatbot-panel {
  border: 1px solid var(--gx-border);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Floating cart button keeps a strong crystal look */
.cart-fab {
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 34px rgba(var(--accent-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ----------------------------- Admin panel ------------------------------- */
.admin-topbar,
.admin-sidebar,
.admin-card,
.stat-card,
.data-row,
.admin-panel,
.view-head {
  -webkit-backdrop-filter: blur(var(--gx-blur)) saturate(var(--gx-sat));
  backdrop-filter: blur(var(--gx-blur)) saturate(var(--gx-sat));
}
.admin-topbar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(6, 10, 19, 0.8);
  border-bottom: 1px solid var(--gx-border-soft);
}
html[data-theme='light'] .admin-topbar {
  background: rgba(255, 255, 255, 0.86);
}
.admin-sidebar {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), transparent 46%),
    rgba(6, 10, 19, 0.72);
  border-inline-end: 1px solid var(--gx-border-soft);
}
html[data-theme='light'] .admin-sidebar {
  background: rgba(255, 255, 255, 0.82);
}
.admin-card,
.stat-card,
.data-row {
  background: var(--gx-panel), var(--surface);
  border-color: var(--gx-border);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* --------------------------- Reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .package-card,
  .work-card,
  .testimonial-card,
  .payment-card,
  .contact-method,
  .audience-chip {
    transition: none;
  }
}


/* ==========================================================================
   إخفاء شارة «Powered by Netlify» (إن ظهرت)
   ========================================================================== */
#nl-badge-frame,
iframe[title*="Powered by Netlify"],
iframe[aria-label*="Powered by Netlify"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
