@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-tech: 'Space Grotesk', monospace, sans-serif;
  
  --bg-pitch: #040406;
  --bg-primary: #07070b;
  --bg-secondary: #0d0d14;
  --bg-surface: #12121c;
  --bg-card: rgba(13, 13, 20, 0.85);
  
  --color-yellow: #FFE600;
  --color-yellow-bright: #FFF066;
  --color-yellow-amber: #FACC15;
  --color-yellow-dark: #EAB308;
  --color-yellow-gold: #CA8A04;
  
  --yellow-glow: 0 0 25px rgba(255, 230, 0, 0.35);
  --yellow-glow-strong: 0 0 45px rgba(255, 230, 0, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-yellow-subtle: rgba(255, 230, 0, 0.2);
  --border-yellow-hover: rgba(255, 230, 0, 0.65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection inside form inputs and textareas */
input, textarea, select, [contenteditable="true"], .allow-select {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Disable image dragging and saving interactions */
img, svg, video, canvas {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-pitch);
  color: #f4f4f5;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-pitch);
  color: #ffffff;
  width: 100%;
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
}

button, a, input, select, textarea, label {
  touch-action: manipulation;
}

/* Background Cyber Grid & Noise */
.cyber-grid-bg {
  background-image: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #040406;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-yellow);
}

/* Typography Classes */
.font-heading {
  font-family: var(--font-heading);
}

.font-tech {
  font-family: var(--font-tech);
}

/* Text Gradients & Glows */
.gradient-text-yellow {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF59D 25%, #FFE600 65%, #FACC15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #FFFBEB 0%, #FDE047 40%, #F59E0B 75%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphic Navbar & Cards */
.glass-nav {
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-yellow-subtle);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-yellow-hover);
  box-shadow: 0 20px 45px -10px rgba(255, 230, 0, 0.15), 0 0 25px rgba(255, 230, 0, 0.08);
  transform: translateY(-4px);
}

/* Bento Grid Card Styling */
.bento-card {
  background: linear-gradient(145deg, rgba(18, 18, 26, 0.9), rgba(8, 8, 12, 0.95));
  border: 1px solid var(--border-yellow-subtle);
  backdrop-filter: blur(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  border-color: var(--color-yellow);
  box-shadow: 0 15px 40px -10px rgba(255, 230, 0, 0.2);
  transform: translateY(-3px);
}

/* Buttons */
.btn-yellow-glow {
  background: linear-gradient(135deg, #FFE600 0%, #FACC15 50%, #EAB308 100%);
  color: #040406;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255, 230, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 20;
  cursor: pointer;
  pointer-events: auto !important;
}

.btn-yellow-glow:hover {
  box-shadow: 0 6px 30px rgba(255, 230, 0, 0.65);
  transform: translateY(-2px);
  background: linear-gradient(135deg, #FFF066 0%, #FFE600 100%);
}

.btn-dark-outline {
  background: rgba(18, 18, 24, 0.8);
  border: 1px solid var(--border-yellow-subtle);
  color: #f4f4f5;
  transition: all 0.3s ease;
  position: relative;
  z-index: 20;
  cursor: pointer;
  pointer-events: auto !important;
}

.btn-dark-outline:hover {
  background: rgba(28, 28, 38, 0.95);
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  box-shadow: 0 0 20px rgba(255, 230, 0, 0.2);
}

.btn-glow-whatsapp {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
  color: #ffffff;
  font-weight: 800;
  transition: all 0.3s ease;
  position: relative;
  z-index: 20;
  cursor: pointer;
  pointer-events: auto !important;
}

.btn-glow-whatsapp:hover {
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.55);
  transform: translateY(-2px);
}

/* NFC Pulsing Waves (Yellow) */
.nfc-wave-yellow {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--color-yellow);
  opacity: 0;
  animation: yellowNfcPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nfc-wave-yellow:nth-child(1) { animation-delay: 0s; }
.nfc-wave-yellow:nth-child(2) { animation-delay: 0.8s; }
.nfc-wave-yellow:nth-child(3) { animation-delay: 1.6s; }

@keyframes yellowNfcPulse {
  0% { transform: scale(0.2); opacity: 0.95; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* 3D Card Studio Styles */
.perspective-1000 {
  perspective: 1000px;
}

.transform-style-3d {
  transform-style: preserve-3d;
}

.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rotate-y-180 {
  transform: rotateY(180deg);
}

.card-preview-container {
  width: 100%;
  max-width: 440px;
  height: 270px;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Card & Plaque Material Themes */
.card-theme-black, .plaque-theme-google {
  background: #ffffff;
  border: 1.5px solid #E2E8F0;
  color: #0f172a;
}

.card-theme-gold, .plaque-theme-instagram {
  background: #ffffff;
  border: 1.5px solid #E2E8F0;
  color: #0f172a;
}

.card-theme-carbon {
  background-color: #0c0c0e;
  background-image: 
    radial-gradient(#27272a 15%, transparent 16%), 
    radial-gradient(#18181b 15%, transparent 16%);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  border: 2px solid #FFE600;
  color: #ffffff;
}

.plaque-shadow {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 230, 0, 0.12);
}

/* ==========================================================
   ADVANCED CYBER EFFECTS & MODERN INTERACTIVE ANIMATIONS
   ========================================================== */

/* 1. Interactive Spotlight Cards (Mouse Following Radial Aura) */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    650px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 230, 0, 0.14),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none !important;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* 2. Interactive 3D Tilt Card */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.tilt-card .tilt-inner {
  position: relative;
  z-index: 2;
}

.tilt-card button,
.tilt-card a,
.tilt-card input,
.tilt-card select {
  position: relative;
  z-index: 25;
  pointer-events: auto !important;
}

/* 3. Button Laser Shine / Shimmer Sweep */
.btn-yellow-glow {
  position: relative;
  overflow: hidden;
}

.btn-yellow-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: laserShineSweep 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes laserShineSweep {
  0% { left: -75%; opacity: 0; }
  20% { opacity: 0.85; }
  45% { left: 140%; opacity: 0; }
  100% { left: 140%; opacity: 0; }
}

/* 4. Concentric Radar Rings for NFC Showcase */
.radar-ring-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  pointer-events: none;
  z-index: 0;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 230, 0, 0.35);
  opacity: 0;
  animation: radarPulse 3s infinite cubic-bezier(0.1, 0.7, 0.1, 1);
}

.radar-ring:nth-child(1) { animation-delay: 0s; }
.radar-ring:nth-child(2) { animation-delay: 1s; }
.radar-ring:nth-child(3) { animation-delay: 2s; }

@keyframes radarPulse {
  0% {
    transform: scale(0.35);
    opacity: 0.95;
    border-color: rgba(255, 230, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 230, 0, 0.5);
  }
  70% {
    opacity: 0.3;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
    border-color: rgba(255, 230, 0, 0);
  }
}

/* 5. Gradient Border Beam Effect */
.border-beam-card {
  position: relative;
  background: rgba(10, 10, 15, 0.9);
  border-radius: 24px;
}

.border-beam-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--beam-angle, 0deg),
    transparent 0deg,
    #FFE600 60deg,
    #FFF066 90deg,
    #FFE600 120deg,
    transparent 180deg
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  animation: rotateBeam 6s linear infinite;
  pointer-events: none;
}

@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBeam {
  to { --beam-angle: 360deg; }
}

/* 6. Scroll-Driven Reveal Classes */
.reveal-init {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.reveal-zoom {
  transform: scale(0.92);
}

.reveal-init.reveal-left {
  transform: translateX(-40px);
}

.reveal-init.reveal-right {
  transform: translateX(40px);
}

.reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) translateX(0) !important;
}

/* 8. Pulsing Neon Cyber Grid */
.cyber-grid-pulse {
  background-image: none;
}

/* 9. Background Interactive Particle Canvas */
#cyber-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Phone Mockup Frame */
.phone-mockup-black {
  width: 300px;
  height: 590px;
  background: #000000;
  border-radius: 46px;
  border: 8px solid #1c1c24;
  position: relative;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 230, 0, 0.15);
  overflow: hidden;
}

.phone-dynamic-island {
  width: 96px;
  height: 24px;
  background: #000000;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  z-index: 30;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  background: #09090d;
  position: relative;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

/* Tap Animation */
@keyframes tapPhoneDrop {
  0% { transform: translateY(60px) scale(0.95); opacity: 0.7; }
  50% { transform: translateY(-15px) scale(1.03); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}

.animate-tap-phone {
  animation: tapPhoneDrop 1.4s ease-out forwards;
}

/* Float Glow Animation */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

.animate-float-yellow {
  animation: floatGentle 4.5s ease-in-out infinite;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 14, 20, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-yellow);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 230, 0, 0.25);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 380px;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal Backdrops */
.modal-backdrop {
  background: rgba(2, 2, 4, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Slider Controls */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #27272a;
  border-radius: 3px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFE600;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.8);
  border: 2px solid #000000;
}

/* ==========================================================
   ANIMATED FAQ ACCORDION (SMOOTH HEIGHT & GLOW TRANSITION)
   ========================================================== */
.faq-item {
  transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.35s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active {
  border-color: rgba(255, 230, 0, 0.6) !important;
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 230, 0, 0.12);
  background: rgba(16, 16, 24, 0.95) !important;
  transform: translateY(-2px);
}

.faq-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-collapse.open {
  grid-template-rows: 1fr;
}

.faq-collapse-inner {
  overflow: hidden;
}

.faq-content-body {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease 0.08s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.faq-collapse.open .faq-content-body {
  opacity: 1;
  transform: translateY(0);
}

.faq-icon-wrapper {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-item.active .faq-icon-wrapper {
  background-color: #FFE600;
  border-color: #FFE600;
}

.faq-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #040406;
}

/* ==========================================================
   PERSISTENT TOP-RIGHT FLOATING CART BUTTON (ALWAYS VISIBLE)
   ========================================================== */
.floating-cart-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 48;
  background: rgba(8, 8, 14, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 230, 0, 0.45);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.9), 0 0 22px rgba(255, 230, 0, 0.28);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto !important;
  cursor: pointer;
}

@media (min-width: 640px) {
  .floating-cart-btn {
    top: 18px;
    right: 24px;
  }
}

.floating-cart-btn:hover {
  border-color: var(--color-yellow);
  background: rgba(16, 16, 26, 0.98);
  box-shadow: 0 14px 40px -5px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 230, 0, 0.6);
  transform: translateY(-2px) scale(1.04);
}

.floating-cart-btn:active {
  transform: translateY(0) scale(0.96);
}

/* ==========================================================
   FLYING NFC TO CART ANIMATIONS & IMPACT EFFECTS
   ========================================================== */
.flying-nfc-item {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 20, 32, 0.96), rgba(8, 8, 14, 0.98));
  border: 2px solid #FFE600;
  box-shadow: 0 0 25px rgba(255, 230, 0, 0.85), 0 12px 35px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  will-change: transform, opacity;
}

.flying-nfc-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.flying-nfc-item .flying-nfc-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #FFE600;
  color: #040406;
  border-radius: 6px;
  padding: 2.5px;
  box-shadow: 0 0 10px #FFE600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sparkle trail elements */
.flying-sparkle {
  position: fixed;
  z-index: 99998;
  pointer-events: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFE600;
  box-shadow: 0 0 12px #FFE600, 0 0 24px #FFE600;
  animation: sparkle-fade 0.45s ease-out forwards;
}

@keyframes sparkle-fade {
  0% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.1);
    opacity: 0;
  }
}

/* Cart Button Impact Bounce */
@keyframes cart-bounce-shock {
  0% {
    transform: scale(1) rotate(0deg);
  }
  20% {
    transform: scale(1.28) rotate(-10deg);
    border-color: #FFE600;
    box-shadow: 0 0 45px rgba(255, 230, 0, 0.95), 0 0 90px rgba(255, 230, 0, 0.6);
  }
  45% {
    transform: scale(0.92) rotate(8deg);
  }
  70% {
    transform: scale(1.12) rotate(-4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.cart-impact-active {
  animation: cart-bounce-shock 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Shockwave ring expanding from cart button */
.cart-shockwave {
  position: fixed;
  z-index: 47;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid #FFE600;
  box-shadow: 0 0 20px #FFE600, inset 0 0 15px #FFE600;
  animation: shockwave-expand 0.6s ease-out forwards;
}

@keyframes shockwave-expand {
  0% {
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    opacity: 1;
    transform: scale(0.5);
  }
  100% {
    width: 130px;
    height: 130px;
    margin-left: -65px;
    margin-top: -65px;
    opacity: 0;
    transform: scale(1.3);
  }
}

/* Cart Badge Pop Animation */
@keyframes badge-pop {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.65);
    background-color: #FFF;
    color: #000;
    box-shadow: 0 0 20px #FFE600;
  }
  100% {
    transform: scale(1);
    background-color: #FFE600;
    color: #000;
  }
}

.badge-pop-active {
  animation: badge-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* ============================================================ */
/* Morphema Floating Badge (Bottom-Left)                        */
/* ============================================================ */
.morphema-floating-badge {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.morphema-floating-badge:hover {
  transform: translateY(-3px);
}

.morphema-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(255, 85, 0, 0.45));
}

.morphema-floating-badge:hover .morphema-logo-img {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 22px rgba(255, 85, 0, 0.75));
}

.morphema-text {
  display: flex;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 1px;
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  margin-left: 0;
  transition: margin 0.3s ease;
  line-height: 1;
}

.morphema-floating-badge:hover .morphema-text {
  margin-left: 10px;
}

.morphema-text span {
  opacity: 0;
  max-width: 0;
  transform: translateX(-10px);
  transition: opacity 0.25s ease, 
              max-width 0.28s ease, 
              transform 0.25s ease;
  transition-delay: calc((8 - var(--i)) * 0.035s); /* Harf harf geri yok olma (8 -> 1) */
  display: inline-block;
  overflow: hidden;
  color: #FF5500;
  text-shadow: 0 0 16px rgba(255, 85, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.morphema-floating-badge:hover .morphema-text span {
  opacity: 1;
  max-width: 28px;
  transform: translateX(0);
  transition-delay: calc(var(--i) * 0.045s); /* Harf harf çıkma (1 -> 8) */
}

@media (max-width: 640px) {
  .morphema-floating-badge {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: calc(14px + env(safe-area-inset-left, 0px));
  }
  .morphema-logo-img {
    width: 48px;
    height: 48px;
  }
  .morphema-text {
    font-size: 1.15rem;
  }
}

/* ============================================================ */
/* Comprehensive iOS, Android & Mobile Viewport Engine          */
/* ============================================================ */

/* 1. iOS Safari Auto-Zoom Prevention on Input Focus */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* 2. iOS Safe Area Insets (Notch, Dynamic Island & Home Bar) */
.glass-nav {
  padding-top: env(safe-area-inset-top, 0px);
}

.floating-cart-btn {
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: calc(14px + env(safe-area-inset-right, 0px));
}

@media (min-width: 640px) {
  .floating-cart-btn {
    top: calc(18px + env(safe-area-inset-top, 0px));
    right: calc(24px + env(safe-area-inset-right, 0px));
  }
}

.morphema-floating-badge {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: calc(16px + env(safe-area-inset-left, 0px));
}

/* 3. Cart Drawer & Modal Mobile Full-Height & Smooth Inertial Scrolling */
#cart-drawer {
  height: 100vh;
  height: 100dvh;
  padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-backdrop,
#product-modal,
#site-confirm-modal {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* 4. Touch Device Optimization for Card Preview & Small Screens */
@media (max-width: 640px) {
  .card-preview-container {
    max-width: 270px !important;
    height: 270px !important;
  }

  .perspective-1000 {
    perspective: none !important;
  }

  /* Minimum 44px touch targets */
  button, 
  .btn-yellow-glow, 
  .btn-dark-outline,
  .plaque-select-btn {
    min-height: 44px;
  }
}

/* 5. Extra Small Screen Fixes (< 360px - e.g. iPhone SE / Galaxy Fold) */
@media (max-width: 360px) {
  .card-preview-container {
    max-width: 240px !important;
    height: 240px !important;
  }
  
  .morphema-logo-img {
    width: 40px;
    height: 40px;
  }

  .morphema-text {
    font-size: 1rem;
  }
}

