/* =========================================================
   INJAZ DIGITAL VCARD - OFFICIAL PRODUCTION STYLESHEET
   100% Visual Parity with Injaz Card Studio Preview
   Compatible with Hostinger, cPanel, Nginx, Apache
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;600;700;800&family=Almarai:wght@400;700;800&family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@400;600;700;800;900&family=Cinzel:wght@500;700;800&family=IBM+Plex+Sans+Arabic:wght@400;600;700&family=Inter:wght@300;400;500;600;700;800&family=Marhey:wght@500;700&family=Noto+Kufi+Arabic:wght@400;600;700;800&family=Noto+Sans+Arabic:wght@400;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Readex+Pro:wght@400;600;700&family=Syne:wght@600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #0d1527 0%, #050811 50%, #020408 100%);
  color: #f1f5f9;
  font-family: 'Syne', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
  perspective: 1600px;
}

/* Atmospheric Ambient Glow */
.ambient-glow-1 {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

.ambient-glow-2 {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
  bottom: 10%;
  right: 20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(70px);
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 3D Flip Card Stage */
.scene {
  width: 100%;
  aspect-ratio: 340 / 520;
  perspective: 1600px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.card-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.34, 1.35, 0.64, 1);
}

.card-wrapper.is-flipped {
  transform: rotateY(180deg);
}

/* Face pointer-event safety: ensures invisible face never blocks interactive buttons or links */
.card-wrapper:not(.is-flipped) .card-front {
  pointer-events: auto !important;
  z-index: 2 !important;
}
.card-wrapper:not(.is-flipped) .card-back {
  pointer-events: none !important;
  z-index: 0 !important;
}
.card-wrapper.is-flipped .card-front {
  pointer-events: none !important;
  z-index: 0 !important;
}
.card-wrapper.is-flipped .card-back {
  pointer-events: auto !important;
  z-index: 2 !important;
}

.card-face a,
.card-face button,
.card-face iframe {
  pointer-events: auto !important;
}

/* Card Action Buttons */
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  font-family: inherit;
}

.card-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.card-btn.primary-save {
  background: linear-gradient(135deg, #ff7b00, #4f46e5);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.card-btn.primary-save:hover {
  background: linear-gradient(135deg, #ff7b00, #4338ca);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.social-circle-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Flip hint pill below the card */
.flip-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.flip-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: scale(1.03);
}

/* Bottom action bar */
.bottom-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.save-contact-big-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  font-family: inherit;
}

.save-contact-big-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.6);
  background: linear-gradient(135deg, #0369a1 0%, #4338ca 100%);
}

.share-quick-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quick-circle-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(14, 20, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.quick-circle-action:hover {
  background: rgba(24, 34, 60, 0.95);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.3);
}

.footer-badge-wrapper {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}
