/* ==========================================================================
   YOUNI DIGITAL SOLUTIONS - FUTURISTIC MASTERMIND DESIGN SYSTEM (CSS)
   ========================================================================== */

:root {
  /* Brand Color Tokens (Emerald Cyber Green) */
  --bg-dark: #030d0a;
  --bg-dark-alt: #061712;
  --bg-card: rgba(8, 28, 22, 0.65);
  --bg-card-hover: rgba(12, 42, 33, 0.85);
  --glass-border: rgba(0, 255, 136, 0.2);
  --glass-border-hover: rgba(0, 255, 136, 0.55);

  /* Glowing Accents - Emerald & Cyber Green Primary */
  --cyan: #00ff88;              /* Main Cyber Emerald */
  --cyan-glow: rgba(0, 255, 136, 0.45);
  --purple: #00d68f;            /* Vibrant Mint */
  --purple-glow: rgba(0, 214, 143, 0.45);
  --emerald: #10b981;           /* Deep Emerald */
  --emerald-glow: rgba(16, 185, 129, 0.45);
  --amber: #34d399;             /* Bright Neon Mint */
  --amber-glow: rgba(52, 211, 153, 0.45);
  --pink: #059669;

  /* Typography */
  --text-main: #f0fdf4;
  --text-muted: #94a3b8;
  --text-dim: #5eead4;

  /* Fonts */
  --font-ar: 'Cairo', system-ui, sans-serif;
  --font-en: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & FX */
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ar);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body.lang-en {
  font-family: var(--font-en);
  direction: ltr;
}

/* Canvas Background & Grid Overlay */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

.page-view {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.page-view.active {
  display: block;
  opacity: 1;
}
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

.gradient-text {
  background: linear-gradient(135deg, #00ff88 0%, #10b981 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-amber {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-text {
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

/* Glassmorphic Components */
.glass-panel {
  background: rgba(6, 22, 17, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 243, 255, 0.15);
}

/* Buttons System */
.glow-btn, a.glow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  background: #ffffff;
  color: #030d0a !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glow-btn:hover, a.glow-btn:hover {
  background: #00ff88;
  color: #030d0a !important;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
  transform: translateY(-2px);
}

.glow-btn.lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.glow-btn.small {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 20px;
}

.glow-btn.primary-glow {
  background: linear-gradient(135deg, #00ff88 0%, #059669 100%);
  color: #030d0a !important;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(0, 255, 136, 0.5);
}

.glow-btn.primary-glow:hover {
  background: linear-gradient(135deg, #00ff88 0%, #10b981 100%);
  color: #030d0a !important;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.8), 0 0 25px rgba(16, 185, 129, 0.8);
  transform: translateY(-2px);
}

.glow-btn.whatsapp-glow {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.glow-btn.whatsapp-glow:hover {
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.7);
  transform: translateY(-2px);
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.glass-btn:hover {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.glass-btn.highlight {
  border-color: var(--amber);
  color: var(--amber);
}

.glass-btn.highlight:hover {
  background: rgba(255, 170, 0, 0.15);
  box-shadow: 0 0 20px var(--amber-glow);
}

.glass-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(13, 21, 46, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.glass-btn-icon:hover {
  background: var(--cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--cyan);
}

.ambient-controls {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 99;
}

body.lang-en .ambient-controls {
  left: auto;
  right: 2rem;
}

/* NAVIGATION HEADER */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-fast);
}

.main-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(4, 7, 17, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-core {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 0%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.core-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
}

.core-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}

.brand-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cyan);
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: var(--transition-fast);
}

body.lang-en .nav-link::after {
  right: auto;
  left: 0;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: rgba(4, 7, 17, 0.97);
  backdrop-filter: blur(20px);
  z-index: 2000;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s ease;
  border-left: 1px solid var(--glass-border);
}

body.lang-en .mobile-drawer {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid var(--glass-border);
  transition: left 0.4s ease;
}

.mobile-drawer.open {
  right: 0;
}

body.lang-en .mobile-drawer.open {
  left: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.mobile-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
}

/* HERO SECTION & MASTERMIND CORE */
.hero-section {
  padding-top: 140px;
  padding-bottom: 60px;
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.25);
  margin-bottom: 1.5rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-orbit-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.orbit-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

.orbit-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.node-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-family: var(--font-ar);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.node-chip:hover, .node-chip.active {
  background: rgba(0, 243, 255, 0.15);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 15px var(--cyan-glow);
}

/* Mastermind 3D Core Visual */
.mastermind-core-wrapper {
  position: relative;
  width: 420px;
  height: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(0, 243, 255, 0.25);
}

.hologram-ring.outer {
  width: 380px;
  height: 380px;
  animation: rotate-cw 30s linear infinite;
  border-color: rgba(0, 243, 255, 0.2);
}

.hologram-ring.middle {
  width: 280px;
  height: 280px;
  animation: rotate-ccw 20s linear infinite;
  border-color: rgba(112, 0, 255, 0.3);
}

.hologram-ring.inner {
  width: 180px;
  height: 180px;
  animation: rotate-cw 12s linear infinite;
  border-color: rgba(0, 255, 170, 0.4);
}

@keyframes rotate-cw { 100% { transform: rotate(360deg); } }
@keyframes rotate-ccw { 100% { transform: rotate(-360deg); } }

/* SVG Energy Laser Beams to 4 Cards */
.core-energy-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  pointer-events: none;
  z-index: 3;
}

.pulse-line {
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: 0.65;
  animation: dash-flow 1.5s linear infinite;
}

@keyframes dash-flow {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}

.energy-particle {
  fill: var(--cyan);
  filter: drop-shadow(0 0 10px var(--cyan));
}

.particle-tl { animation: travel-tl 1.8s ease-in-out infinite; }
.particle-tr { animation: travel-tr 1.8s ease-in-out infinite; }
.particle-bl { animation: travel-bl 1.8s ease-in-out infinite; }
.particle-br { animation: travel-br 1.8s ease-in-out infinite; }

@keyframes travel-tl {
  0% { cx: 210px; cy: 210px; r: 2px; opacity: 0; }
  25% { opacity: 1; r: 6px; }
  100% { cx: 70px; cy: 70px; r: 2px; opacity: 0; }
}

@keyframes travel-tr {
  0% { cx: 210px; cy: 210px; r: 2px; opacity: 0; }
  25% { opacity: 1; r: 6px; }
  100% { cx: 350px; cy: 70px; r: 2px; opacity: 0; }
}

@keyframes travel-bl {
  0% { cx: 210px; cy: 210px; r: 2px; opacity: 0; }
  25% { opacity: 1; r: 6px; }
  100% { cx: 70px; cy: 350px; r: 2px; opacity: 0; }
}

@keyframes travel-br {
  0% { cx: 210px; cy: 210px; r: 2px; opacity: 0; }
  25% { opacity: 1; r: 6px; }
  100% { cx: 350px; cy: 350px; r: 2px; opacity: 0; }
}

/* MASTERMIND HEARTBEAT ORB */
.mastermind-heart-orb {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.35) 0%, rgba(5, 150, 105, 0.15) 50%, rgba(3, 13, 10, 0.95) 100%);
  border: 2px solid var(--cyan);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  animation: mastermind-heartbeat 1.8s ease-in-out infinite;
}

@keyframes mastermind-heartbeat {
  0% { transform: scale(1); box-shadow: 0 0 35px rgba(0, 255, 136, 0.5), inset 0 0 20px rgba(0, 255, 136, 0.3); }
  14% { transform: scale(1.08); box-shadow: 0 0 70px rgba(0, 255, 136, 0.95), inset 0 0 35px rgba(0, 255, 136, 0.6); }
  28% { transform: scale(1); box-shadow: 0 0 40px rgba(0, 255, 136, 0.6), inset 0 0 20px rgba(0, 255, 136, 0.4); }
  42% { transform: scale(1.05); box-shadow: 0 0 60px rgba(0, 255, 136, 0.85), inset 0 0 30px rgba(0, 255, 136, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 35px rgba(0, 255, 136, 0.5), inset 0 0 20px rgba(0, 255, 136, 0.3); }
  100% { transform: scale(1); box-shadow: 0 0 35px rgba(0, 255, 136, 0.5), inset 0 0 20px rgba(0, 255, 136, 0.3); }
}

.heartbeat-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  pointer-events: none;
  animation: heartbeat-wave 1.8s ease-out infinite;
}

.heartbeat-ring.ring-delay {
  animation-delay: 0.9s;
}

@keyframes heartbeat-wave {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* CIRCULAR LOGO SHIELD & DYNAMIC LOGO ICON MOTION */
.logo-shield-container {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px var(--cyan), inset 0 0 6px var(--cyan);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: var(--transition-fast);
  animation: logo-shield-pulse 1.8s ease-in-out infinite;
}

@keyframes logo-shield-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 30px var(--cyan); }
  14% { transform: scale(1.15) rotate(5deg); box-shadow: 0 0 65px var(--cyan), 0 0 90px rgba(0, 255, 136, 0.9); }
  28% { transform: scale(0.96) rotate(-3deg); box-shadow: 0 0 35px var(--cyan); }
  42% { transform: scale(1.1) rotate(-5deg); box-shadow: 0 0 55px var(--cyan); }
  70% { transform: scale(1) rotate(0deg); box-shadow: 0 0 30px var(--cyan); }
}

.logo-scan-beam {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 136, 0.6) 50%, transparent 100%);
  pointer-events: none;
  z-index: 4;
  animation: scan-laser 2s linear infinite;
}

@keyframes scan-laser {
  0% { top: -50%; }
  100% { top: 130%; }
}

.ys-heart-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: ys-icon-inner-motion 1.8s ease-in-out infinite;
}

@keyframes ys-icon-inner-motion {
  0%, 100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
  }
  14% {
    transform: scale(1.22) translateY(-4px) rotate(6deg);
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 1)) contrast(1.25);
  }
  28% {
    transform: scale(0.94) translateY(0);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.6));
  }
  42% {
    transform: scale(1.14) translateY(-3px) rotate(-6deg);
    filter: drop-shadow(0 0 25px rgba(0, 255, 136, 0.95));
  }
  70% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.6));
  }
}

.orb-status-text {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-top: 0.4rem;
  text-shadow: 0 0 10px var(--cyan);
}

/* REACTIVE CARDS PULSE IN SYNC WITH HEARTBEAT */
.orbit-card {
  animation: card-heart-pulse 1.8s ease-in-out infinite;
}

#hero-card-1 { animation-delay: 0.1s; }
#hero-card-2 { animation-delay: 0.2s; }
#hero-card-3 { animation-delay: 0.3s; }
#hero-card-4 { animation-delay: 0.4s; }

@keyframes card-heart-pulse {
  0%, 70%, 100% { transform: scale(1); border-color: var(--glass-border); box-shadow: 0 8px 25px rgba(0,0,0,0.5); }
  25% { transform: scale(1.05); border-color: var(--cyan); box-shadow: 0 0 30px rgba(0, 255, 136, 0.4); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.orb-text {
  text-align: center;
  color: #fff;
  z-index: 2;
}

.orb-brand {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 1.2rem;
  display: block;
  letter-spacing: 2px;
}

.orb-status {
  font-size: 0.55rem;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 1px;
}

.orbit-card {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 180px;
  z-index: 12;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.card-icon.cyan { background: rgba(0, 243, 255, 0.15); color: var(--cyan); }
.card-icon.purple { background: rgba(112, 0, 255, 0.2); color: #a855f7; }
.card-icon.emerald { background: rgba(0, 255, 170, 0.15); color: var(--emerald); }
.card-icon.amber { background: rgba(255, 170, 0, 0.15); color: var(--amber); }

.card-info h4, .card-info .kt { font-size: 0.85rem; font-weight: 700; color: #fff; }
.card-info p { font-size: 0.7rem; color: var(--text-muted); }

.card-top-left { top: 20px; right: -20px; }
.card-top-right { top: 20px; left: -20px; }
.card-bottom-left { bottom: 20px; right: -20px; }
.card-bottom-right { bottom: 20px; left: -20px; }

/* Metrics Bar */
.hero-metrics {
  margin-top: 3rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: space-around;
  padding: 1.5rem 2rem;
}

.metric-item {
  text-align: center;
}

.metric-number {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
}

.metric-unit {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
}

.metric-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* SECTIONS COMMON STYLING */
.section-padding {
  padding: 6rem 0;
}

.dark-bg-alt {
  background: var(--bg-dark-alt);
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.2);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-badge.amber-badge {
  background: rgba(255, 170, 0, 0.08);
  border-color: rgba(255, 170, 0, 0.3);
  color: var(--amber);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card.highlight-border {
  border-color: rgba(255, 170, 0, 0.5);
  box-shadow: 0 0 25px rgba(255, 170, 0, 0.15);
}

.badge-corner {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--amber) 0%, #ff5500 100%);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
}

body.lang-en .badge-corner {
  left: auto;
  right: 15px;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-icon.cyan { background: rgba(0, 243, 255, 0.15); color: var(--cyan); }
.service-icon.purple { background: rgba(112, 0, 255, 0.2); color: #a855f7; }
.service-icon.emerald { background: rgba(0, 255, 170, 0.15); color: var(--emerald); }
.service-icon.amber { background: rgba(255, 170, 0, 0.15); color: var(--amber); }

.service-tag {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.service-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.text-cyan { color: var(--cyan); }
.text-purple { color: #a855f7; }
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }

/* LIVE AI CHATBOT SIMULATOR SECTION */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.align-center {
  align-items: center;
}

.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.ai-feat-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 170, 0, 0.12);
  border: 1px solid rgba(255, 170, 0, 0.3);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ai-feat-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.ai-feat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Chat Simulator Widget */
.ai-chat-simulator {
  display: flex;
  flex-direction: column;
  height: 520px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 170, 0, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.chat-header {
  padding: 1rem 1.25rem;
  background: rgba(4, 7, 17, 0.85);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber) 0%, #ff5500 100%);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
}

.bot-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid #000;
}

.bot-info h4, .bot-info .kt { font-size: 0.95rem; font-weight: 700; color: #fff; }
.bot-info p { font-size: 0.75rem; color: var(--emerald); }

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--amber);
}

.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(3, 6, 15, 0.5);
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.message.bot-msg {
  align-self: flex-start;
}

.message.user-msg {
  align-self: flex-end;
}

.msg-bubble {
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.bot-msg .msg-bubble {
  background: rgba(255, 170, 0, 0.12);
  border: 1px solid rgba(255, 170, 0, 0.25);
  color: #fff;
  border-top-right-radius: 2px;
}

.user-msg .msg-bubble {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #fff;
  border-top-left-radius: 2px;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.chat-quick-prompts {
  padding: 0.6rem 1rem;
  background: rgba(4, 7, 17, 0.7);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.prompt-title {
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.quick-prompt-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.3rem 0.75rem;
  border-radius: 14px;
  font-family: var(--font-ar);
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-prompt-btn:hover {
  background: rgba(255, 170, 0, 0.2);
  border-color: var(--amber);
  color: var(--amber);
}

.chat-input-bar {
  display: flex;
  padding: 0.75rem;
  background: rgba(4, 7, 17, 0.95);
  border-top: 1px solid var(--glass-border);
  gap: 0.5rem;
}

.chat-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 0.6rem 1.1rem;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 0.9rem;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--amber);
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px var(--amber);
}

/* CALCULATOR SECTION */
.calculator-wrapper {
  padding: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(0, 243, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 243, 255, 0.3);
}

.step-title h3 {
  font-size: 1.2rem;
  color: #fff;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.calc-card-option input {
  display: none;
}

.option-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
  height: 100%;
}

.option-content i {
  font-size: 1.8rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  display: block;
}

.option-content h4, .option-content .kt {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.option-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-card-option input:checked + .option-content {
  background: rgba(0, 243, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.calc-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.calc-check-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.calc-check-card:hover {
  border-color: var(--glass-border-hover);
}

.calc-check-card input:checked + span {
  color: var(--cyan);
  font-weight: 700;
}

.calc-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-pill input { display: none; }

.radio-pill span {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.radio-pill input:checked + span {
  background: rgba(112, 0, 255, 0.25);
  border-color: #a855f7;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 15px var(--purple-glow);
}

.calc-summary-box {
  background: rgba(4, 7, 17, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.summary-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.summary-item .lbl {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.summary-item .val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.highlight-val {
  color: var(--cyan) !important;
}

.summary-actions {
  display: flex;
  justify-content: center;
}

/* WHY YOUNI & PIPELINE */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: right;
}

body.lang-en .feature-card { text-align: left; }

.feat-badge-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feat-badge-icon.cyan { background: rgba(0, 243, 255, 0.15); color: var(--cyan); }
.feat-badge-icon.purple { background: rgba(112, 0, 255, 0.2); color: #a855f7; }
.feat-badge-icon.emerald { background: rgba(0, 255, 170, 0.15); color: var(--emerald); }
.feat-badge-icon.amber { background: rgba(255, 170, 0, 0.15); color: var(--amber); }

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Pipeline Roadmap */
.sub-title { font-size: 1.8rem; font-weight: 800; color: #fff; }
.sub-desc { font-size: 1rem; color: var(--text-muted); }

.pipeline-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.pipe-step {
  flex: 1;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
}

.pipe-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--cyan);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.pipe-step h4 { font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.pipe-step p { font-size: 0.85rem; color: var(--text-muted); }

.pipe-arrow {
  color: var(--cyan);
  font-size: 1.5rem;
  opacity: 0.5;
}

body.lang-en .pipe-arrow {
  transform: rotate(180deg);
}

/* PORTFOLIO SHOWCASE */
.portfolio-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  font-family: var(--font-ar);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(0, 243, 255, 0.15);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  padding: 0;
  overflow: hidden;
}

.portfolio-thumb {
  height: 180px;
  background: linear-gradient(135deg, #09132e 0%, #170b30 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-thumb.ai-thumb {
  background: linear-gradient(135deg, #2b1704 0%, #170b30 100%);
}

.portfolio-thumb.web-thumb {
  background: linear-gradient(135deg, #041f2b 0%, #061026 100%);
}

.portfolio-thumb.erp-thumb {
  background: linear-gradient(135deg, #072b1d 0%, #061026 100%);
}

.thumb-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.2);
}

.thumb-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 243, 255, 0.2);
  border: 1px solid var(--cyan);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;

}

body.lang-en .thumb-badge {
  right: auto;
  left: 15px;
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-info h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255,255,255,0.06);
  color: var(--cyan);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* FAQ ACCORDION */
.faq-item {
  margin-bottom: 1rem;
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

body.lang-en .faq-question { text-align: left; }

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--cyan);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CONTACT SECTION & FORM */
.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
}

.c-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

.whatsapp-bg { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.email-bg { background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%); }
.location-bg { background: linear-gradient(135deg, var(--amber) 0%, #ff5500 100%); }

.contact-card h4, .contact-card .kt { font-size: 0.95rem; color: #fff; margin-bottom: 0.2rem; }
.c-link { color: var(--cyan); text-decoration: none; font-weight: 700; font-family: var(--font-en); }
.c-text { font-size: 0.85rem; color: var(--text-muted); }

/* Form */
.contact-form-wrapper {
  padding: 2.5rem;
}

.form-title { font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.form-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.form-group select option {
  background: #080d21;
  color: #fff;
}

.full-width { width: 100%; }

/* FOOTER */
.main-footer {
  background: #02040a;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1.25rem;
}

.footer-links-col h4, .footer-contact-col h4, .footer-links-col h3, .footer-contact-col h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--cyan);
}

.footer-contact-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-col a {
  color: var(--text-main);
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 15px var(--cyan);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-sub-links {
  display: flex;
  gap: 0.75rem;
}

.footer-sub-links a {
  color: var(--text-dim);
  text-decoration: none;
}

/* FLOATING BUTTON */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
  z-index: 1000;
  text-decoration: none;
  transition: var(--transition-fast);
}

body.lang-en .floating-whatsapp-btn {
  right: auto;
  left: 2rem;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.9);
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 4, 10, 0.88);
  backdrop-filter: blur(20px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 650px;
  position: relative;
  padding: 2.5rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
}

body.lang-en .modal-close {
  left: auto;
  right: 20px;
}

.modal-close:hover { color: #fff; }

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .grid-2-cols {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .metric-divider { display: none; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .container { padding: 0 1.15rem; }

  /* ---- HEADER ---- */
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; font-size: 1.4rem; }
  .main-header { padding: 0.85rem 0; }
  .main-header.scrolled { padding: 0.65rem 0; }
  .header-actions { gap: 0.5rem; }
  /* keep the quote button on one compact line so it never wraps */
  .header-actions .glow-btn { padding: 0.5rem 0.9rem; font-size: 0.78rem; gap: 0.4rem; white-space: nowrap; }
  /* homepage has a hamburger + drawer CTA → drop the redundant header quote button */
  .header-actions:has(.mobile-menu-btn) .glow-btn { display: none; }
  #lang-toggle, .glass-btn.small { padding: 0.5rem 0.85rem; font-size: 0.8rem; gap: 0.4rem; }
  .brand-name { font-size: 1.1rem; letter-spacing: 1px; }
  .brand-tag { font-size: 0.52rem; letter-spacing: 1px; }
  .logo-core { width: 34px; height: 34px; }
  .brand-logo { gap: 0.6rem; }

  /* ---- HERO ---- */
  .hero-section { padding-top: 105px; padding-bottom: 40px; min-height: auto; }
  .hero-container { gap: 2.25rem; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .hero-subtitle { font-size: 1rem; line-height: 1.7; }
  .hero-buttons { justify-content: center; gap: 0.75rem; }
  .hero-orbit-selector { align-items: center; }
  .orbit-nodes { justify-content: center; }
  .mastermind-core-wrapper { width: 300px; height: 300px; }

  /* ---- METRICS / STATS ---- */
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; padding: 1.25rem 1rem; }
  .metric-divider { display: none; }
  .metric-number { font-size: 1.8rem; }
  .metric-unit { font-size: 1.5rem; }

  /* ---- SECTIONS / HEADINGS ---- */
  .section-padding { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.25rem; }
  .section-title { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .section-desc { font-size: 0.98rem; }

  /* ---- GRIDS: force single column, kill min-width overflow ---- */
  .services-grid,
  .portfolio-grid,
  .calc-options-grid,
  .calc-checkbox-grid,
  .features-grid,
  .grid-2-cols { grid-template-columns: 1fr; }

  /* ---- SERVICES ---- */
  .service-card { padding: 1.5rem; }

  /* ---- AI DEMO / CHAT ---- */
  .ai-chat-simulator { width: 100%; }
  .chat-messages { max-height: 340px; }

  /* ---- CALCULATOR ---- */
  .calculator-wrapper { padding: 1.5rem 1.25rem; }
  .calc-options-row { gap: 0.6rem; }

  /* ---- PORTFOLIO ---- */
  .portfolio-filter-tabs { gap: 0.5rem; margin-bottom: 2rem; }
  .filter-btn { padding: 0.5rem 1rem; font-size: 0.82rem; }

  /* ---- CONTACT / FORM ---- */
  .contact-form-wrapper { padding: 1.5rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }

  /* ---- FOOTER ---- */
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .brand-tag { display: none; }
  .hero-title { font-size: clamp(1.6rem, 8.5vw, 2rem); }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .glow-btn,
  .hero-buttons .glass-btn { width: 100%; }
  .mastermind-core-wrapper { width: 260px; height: 260px; }
  .metric-number { font-size: 1.55rem; }
  .metric-unit { font-size: 1.3rem; }
  .metric-label { font-size: 0.72rem; }
  .section-title { font-size: 1.55rem; }
  .contact-card { padding: 1rem; gap: 0.9rem; }
  .glow-btn.full-width, .glow-btn.whatsapp-glow.full-width { font-size: 0.82rem; padding: 0.8rem 1rem; }
}

/* SERVICE PAGES & HYPER COMPARISON MATRIX TABLE STYLING */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 20px;
  border: 1px solid var(--neon-emerald);
  background: var(--bg-card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 136, 0.15);
}

.hyper-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: right;
  font-family: var(--font-ar);
}

.hyper-comparison-table th {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.18) 0%, rgba(5, 150, 105, 0.08) 100%);
  color: var(--neon-emerald);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 1.2rem 1.4rem;
  border-bottom: 2px solid var(--neon-emerald);
  white-space: nowrap;
}

.hyper-comparison-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  vertical-align: middle;
}

.hyper-comparison-table tr:last-child td {
  border-bottom: none;
}

.hyper-comparison-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.hyper-comparison-table tr:hover {
  background: rgba(0, 255, 136, 0.05);
}

.hyper-comparison-table th.col-highlight,
.hyper-comparison-table td.col-highlight {
  background: rgba(0, 255, 136, 0.12);
  border-left: 1px solid rgba(0, 255, 136, 0.3);
  border-right: 1px solid rgba(0, 255, 136, 0.3);
}

.hyper-comparison-table td.col-highlight {
  color: var(--neon-emerald);
  font-weight: 700;
}

.badge-check-emerald {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--neon-emerald);
  font-weight: 700;
}

.badge-check-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd700;
  font-weight: 800;
}

/* Service Page Specific Helpers */
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }
.max-w-1000 { max-width: 1000px; }
.max-w-1100 { max-width: 1100px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.justify-center { justify-content: center; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.85rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.text-emerald { color: var(--neon-emerald); }
.text-cyan { color: var(--neon-cyan); }
.text-gold { color: #ffd700; }
.text-white { color: #ffffff; }

.service-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hologram-ring.outer { width: 280px; height: 280px; }
  .hologram-ring.middle { width: 210px; height: 210px; }
  .hologram-ring.inner { width: 140px; height: 140px; }
  
  .orbit-card {
    display: none;
  }
}

/* ===== Long-form Arabic SEO guide (service pages) — hidden in EN mode ===== */
.ar-only { display: block; }
body.lang-en .ar-only { display: none !important; }
.service-article h2, .service-article h3 { text-align: right; }
.hyper-comparison-table td, .hyper-comparison-table th { text-align: right; }

/* Hero mastermind center logo — big (header shield stays 40px) */
.mastermind-heart-orb .logo-shield-container {
  width: 110px;
  height: 110px;
  padding: 6px;
  border-width: 3px;
  box-shadow: 0 0 35px var(--cyan), inset 0 0 15px var(--cyan);
}

/* Missing utility classes (used by content, were undefined) */
.p-4{padding:1.25rem}
.p-6{padding:1.75rem}
.text-4xl{font-size:2.25rem;line-height:1.1}
.text-right{text-align:right}
.text-left{text-align:left}
.mb-2{margin-bottom:.5rem}
.mb-3{margin-bottom:.75rem}
.mb-4{margin-bottom:1rem}
.mt-2{margin-top:.5rem}
.mt-3{margin-top:.75rem}

/* ===== Missing utility classes (Tailwind-style) — fix broken layouts ===== */
.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}
.inline-block{display:inline-block}.block{display:block}
.align-center{align-items:center}.justify-center{justify-content:center}
.gap-2{gap:.5rem}.gap-3{gap:.85rem}
.w-full{width:100%}
.p-3{padding:.95rem}
.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-top:.3rem;padding-bottom:.3rem}
.mb-1{margin-bottom:.25rem}.mb-5{margin-bottom:1.5rem}
.rounded{border-radius:.6rem}
.border{border:1px solid var(--glass-border)}
.border-slate-700{border-color:rgba(71,85,105,.5)}
.text-xs{font-size:.75rem}
.text-muted{color:var(--text-muted)}
.bg-slate-900{background:rgba(15,23,42,.55)}
.hover-glow{transition:var(--transition-fast)}
.hover-glow:hover{box-shadow:0 0 22px var(--cyan-glow);transform:translateY(-3px);border-color:var(--cyan)}
.ambient-controls{display:none!important}

/* ===== Component fixes ===== */
.contact-info-col{display:flex;flex-direction:column;gap:1.1rem}
.contact-info-col .glass-card{display:flex;align-items:center;gap:1rem;padding:1.1rem 1.25rem}
.ai-cta-row{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;margin-top:1.5rem}
.chat-input-row{display:flex;gap:.5rem;align-items:center}
.prompt-chip{background:rgba(255,255,255,.05);border:1px solid var(--glass-border);color:var(--text-muted);padding:.4rem .85rem;border-radius:16px;font-size:.8rem;cursor:pointer;transition:var(--transition-fast);white-space:nowrap}
.prompt-chip:hover{border-color:var(--cyan);color:#fff}

/* ===== Footer — elegant redesign ===== */
.main-footer{border-top:1px solid var(--glass-border);background:linear-gradient(180deg,rgba(6,22,17,.35) 0%,rgba(4,7,17,.92) 100%);padding-top:3.5rem;margin-top:2rem}
.footer-top{gap:2.5rem;padding-bottom:2.5rem}
.footer-brand .footer-desc{color:var(--text-muted);line-height:1.9;margin-top:1rem;font-size:.92rem;max-width:340px}
.footer-links-col h3,.footer-contact-col h3{font-size:1.05rem;color:#fff;margin-bottom:1.1rem;position:relative;padding-bottom:.6rem}
.footer-links-col h3::after,.footer-contact-col h3::after{content:"";position:absolute;bottom:0;right:0;width:32px;height:2px;background:var(--cyan);box-shadow:0 0 8px var(--cyan)}
body.lang-en .footer-links-col h3::after,body.lang-en .footer-contact-col h3::after{right:auto;left:0}
.footer-links-col ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:.7rem}
.footer-links-col a{color:var(--text-muted);text-decoration:none;transition:var(--transition-fast);display:inline-block}
.footer-links-col a:hover{color:var(--cyan);transform:translateX(-4px)}
body.lang-en .footer-links-col a:hover{transform:translateX(4px)}
.footer-contact-col p{display:flex;align-items:center;gap:.6rem;color:var(--text-muted);margin-bottom:.8rem}
.footer-contact-col i{color:var(--cyan)}
.footer-bottom{border-top:1px solid var(--glass-border);padding:1.4rem 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.8rem}
.footer-powered{font-size:.82rem;color:var(--text-dim);display:inline-flex;align-items:center;gap:.4rem}
.footer-powered b{color:var(--cyan);font-weight:800;letter-spacing:.5px}

/* ===== Remaining component classes ===== */
.faq-accordion{display:flex;flex-direction:column;gap:1rem}
.drawer-footer{margin-top:auto;padding-top:1.5rem}
.calc-step{margin-bottom:1.75rem}
.modal-body{padding:1.6rem}
.c-info-list{display:flex;flex-direction:column;gap:1rem}
.ai-demo-text{line-height:1.9}
.chat-send-btn{background:linear-gradient(135deg,#00ff88,#059669);border:none;color:#04070f;width:42px;height:42px;border-radius:12px;cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:var(--transition-fast)}
.chat-send-btn:hover{box-shadow:0 0 16px var(--cyan-glow)}

/* ===== "Powered by Youne" — LTR + elegant ===== */
.footer-powered{direction:ltr;unicode-bidi:isolate;font-size:.82rem;color:var(--text-dim);display:inline-flex;align-items:center;gap:.4rem;letter-spacing:.3px;opacity:.9}
.footer-powered::before{content:"\26A1";color:var(--cyan);font-size:.9rem}
.footer-powered b{background:linear-gradient(135deg,var(--cyan) 0%,#00ff88 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;font-weight:900;letter-spacing:.5px}

/* Prevent any accidental horizontal scroll site-wide */
html,body{overflow-x:hidden;max-width:100%}

/* ===== Premium mobile drawer ===== */
.mobile-drawer{width:min(86vw,338px);background:linear-gradient(160deg,#08120e 0%,#04070f 62%);border-left:1px solid rgba(20,184,166,.25);box-shadow:-22px 0 60px rgba(0,0,0,.65);padding:1.5rem 1.35rem;display:flex;flex-direction:column;justify-content:flex-start}
body.lang-en .mobile-drawer{border-left:none;border-right:1px solid rgba(20,184,166,.25)}
.drawer-header{padding-bottom:1.1rem;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:.4rem}
.drawer-header .brand-name{font-size:1.15rem}
.close-btn{width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:#fff;font-size:1.35rem;line-height:1;display:grid;place-items:center;cursor:pointer;transition:var(--transition-fast)}
.close-btn:hover{background:rgba(255,90,90,.15);border-color:#ff6b6b;color:#ff6b6b;transform:rotate(90deg)}
.drawer-links{display:flex;flex-direction:column;gap:.3rem;margin-top:1.1rem}
.mobile-link{font-size:1.02rem;font-weight:700;color:var(--text-muted);text-decoration:none;padding:.82rem 1rem;border-radius:12px;display:flex;align-items:center;justify-content:space-between;transition:var(--transition-fast);position:relative}
.mobile-link::after{content:"\2039";font-size:1.1rem;color:var(--cyan);opacity:0;transform:translateX(6px);transition:var(--transition-fast)}
body.lang-en .mobile-link::after{content:"\203A";transform:translateX(-6px)}
.mobile-link:hover,.mobile-link.active{background:linear-gradient(90deg,rgba(20,184,166,.14),transparent);color:#fff}
.mobile-link:hover::after,.mobile-link.active::after{opacity:1;transform:translateX(0)}
.mobile-link.active{box-shadow:inset -2px 0 0 var(--cyan)}
body.lang-en .mobile-link.active{box-shadow:inset 2px 0 0 var(--cyan)}
.mobile-drawer.open .mobile-link{animation:drawer-link-in .45s both}
.mobile-drawer.open .mobile-link:nth-child(1){animation-delay:.04s}
.mobile-drawer.open .mobile-link:nth-child(2){animation-delay:.08s}
.mobile-drawer.open .mobile-link:nth-child(3){animation-delay:.12s}
.mobile-drawer.open .mobile-link:nth-child(4){animation-delay:.16s}
.mobile-drawer.open .mobile-link:nth-child(5){animation-delay:.20s}
.mobile-drawer.open .mobile-link:nth-child(6){animation-delay:.24s}
.mobile-drawer.open .mobile-link:nth-child(7){animation-delay:.28s}
.mobile-drawer.open .mobile-link:nth-child(8){animation-delay:.32s}
@keyframes drawer-link-in{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
.drawer-footer{border-top:1px solid rgba(255,255,255,.08);margin-top:1.2rem;padding-top:1.25rem;display:flex;flex-direction:column;gap:1rem}
.drawer-footer .glow-btn{font-size:.88rem;white-space:nowrap;padding:.85rem 1rem;width:100%}
.drawer-contact{display:flex;flex-direction:column;gap:.6rem}
.drawer-contact a{color:var(--text-muted);text-decoration:none;display:flex;align-items:center;gap:.6rem;font-size:.82rem;direction:ltr;justify-content:flex-end}
body.lang-en .drawer-contact a{justify-content:flex-start}
.drawer-contact i{color:var(--cyan);width:16px;text-align:center}

/* drawer header brand with logo */
.drawer-header .brand-logo{display:flex;align-items:center;gap:.7rem}
.drawer-header .logo-shield-container{width:38px;height:38px}
.drawer-header .brand-name{font-size:1.15rem;letter-spacing:1.5px}
.drawer-header .brand-tag{font-size:.55rem;color:var(--cyan);letter-spacing:2px}

/* ===== Partners section ===== */
.partners-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;max-width:920px;margin:0 auto}
.partner-card{display:flex;align-items:center;justify-content:center;padding:2.2rem 1.5rem;background:rgba(13,21,46,.45);border:1px solid var(--glass-border);border-radius:18px;transition:var(--transition-fast);min-height:150px}
.partner-card img{max-width:100%;max-height:78px;object-fit:contain;filter:grayscale(35%);opacity:.82;transition:var(--transition-fast)}
.partner-card:hover{border-color:var(--cyan);box-shadow:0 0 26px var(--cyan-glow);transform:translateY(-5px);background:rgba(20,184,166,.06)}
.partner-card:hover img{filter:none;opacity:1}
@media(max-width:640px){.partners-grid{grid-template-columns:1fr;gap:1rem}.partner-card{min-height:120px;padding:1.6rem}}

/* ===== Our own SaaS platforms ===== */
.platforms-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;max-width:1040px;margin:0 auto}
.platform-card{position:relative;display:flex;flex-direction:column;height:100%;padding-top:2.4rem}
.platform-owned{position:absolute;top:1rem;inset-inline-end:1rem;display:inline-flex;align-items:center;gap:.4rem;font-family:var(--font-en);font-size:.68rem;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--emerald);background:rgba(0,255,170,.1);border:1px solid rgba(0,255,170,.25);padding:.32rem .7rem;border-radius:999px}
.platform-features{list-style:none;margin:1.1rem 0 1.6rem;padding:0;display:flex;flex-direction:column;gap:.65rem}
.platform-features li{display:flex;align-items:center;gap:.6rem;font-size:.92rem;color:var(--text-soft,#c7d0e0)}
.platform-features li i{flex:0 0 auto;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:.7rem;color:var(--cyan);background:rgba(20,184,166,.14);border-radius:6px}
.platform-card .glow-btn{margin-top:auto;align-self:flex-start}
@media(max-width:760px){.platforms-grid{grid-template-columns:1fr;gap:1.4rem}}

/* ===== Platforms standalone page ===== */
.platforms-quicknav{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap}
.platform-detail{gap:3rem}
.platform-detail.reverse{direction:ltr}
.platform-detail.reverse>*{direction:rtl}
.platform-detail-text .platform-features{margin:1.3rem 0}
.platform-usecases{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;margin:0 0 1.6rem}
.platform-usecases .uc-title{font-weight:700;color:var(--text-dim);margin-inline-end:.3rem}
.uc-chip{font-size:.82rem;padding:.32rem .8rem;border-radius:999px;background:rgba(20,184,166,.1);border:1px solid rgba(20,184,166,.28);color:var(--cyan)}
.platform-mock{padding:1.4rem}
.mock-head{display:flex;align-items:center;gap:.8rem;margin-bottom:1.2rem}
.mock-head .mock-title{font-family:var(--font-en);font-weight:800;font-size:1.05rem;color:#fff}
.mock-head .mock-sub{font-size:.78rem;color:var(--text-dim)}
.mock-live{margin-inline-start:auto;display:inline-flex;align-items:center;gap:.4rem;font-size:.72rem;font-weight:700;color:var(--emerald)}
.mock-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem;margin-bottom:1rem}
.mock-stat{background:rgba(13,21,46,.55);border:1px solid var(--glass-border);border-radius:12px;padding:.9rem}
.mock-stat .ms-num{font-family:var(--font-en);font-weight:800;font-size:1.35rem;color:var(--cyan);line-height:1}
.mock-stat .ms-lbl{font-size:.75rem;color:var(--text-dim);margin-top:.35rem}
.mock-chat{display:flex;flex-direction:column;gap:.55rem;margin-top:.4rem}
.mc-bubble{max-width:85%;padding:.6rem .85rem;border-radius:14px;font-size:.85rem;line-height:1.5}
.mc-bubble.in{align-self:flex-start;background:rgba(255,255,255,.07);border:1px solid var(--glass-border);border-bottom-inline-start-radius:4px}
.mc-bubble.out{align-self:flex-end;background:rgba(20,184,166,.16);border:1px solid rgba(20,184,166,.3);border-bottom-inline-end-radius:4px}
.mock-qr{display:flex;justify-content:center;margin:.2rem 0 1.1rem}
.qr-art{width:120px;height:120px;border-radius:12px;background:
  linear-gradient(#0a0e14 0 0) padding-box,#fff;padding:10px;
  background-image:
   repeating-linear-gradient(90deg,#0a0e14 0 8px,transparent 8px 16px),
   repeating-linear-gradient(0deg,#0a0e14 0 8px,transparent 8px 16px);
  background-size:16px 16px;background-color:#fff;border:6px solid #fff;box-shadow:0 0 24px var(--cyan-glow)}
.cta-band{padding:3rem 2rem}
.cta-band .section-title{margin-bottom:.6rem}
@media(max-width:900px){.platform-detail{gap:2rem}.platform-detail.reverse{direction:rtl}}
@media(max-width:640px){.mock-stats{grid-template-columns:repeat(2,1fr)}.cta-band{padding:2rem 1.2rem}}

/* ===== Portfolio / work cards on service pages ===== */
.work-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:2.5rem}
.work-card{display:block;background:rgba(13,21,46,.45);border:1px solid var(--glass-border);border-radius:16px;overflow:hidden;text-decoration:none;transition:var(--transition-fast)}
.work-card:hover{border-color:var(--cyan);box-shadow:0 12px 40px rgba(0,0,0,.5),0 0 22px var(--cyan-glow);transform:translateY(-6px)}
.work-thumb{aspect-ratio:4/3;overflow:hidden;background:#0a0e14}
.work-thumb img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .5s}
.work-card:hover .work-thumb img{transform:scale(1.06)}
.work-info{padding:1.1rem 1.25rem;text-align:right}
.work-tag{font-size:.72rem;color:var(--cyan);font-weight:800;background:rgba(20,184,166,.1);padding:.28rem .75rem;border-radius:12px;display:inline-block;margin-bottom:.65rem}
.work-info h3{color:#fff;font-size:1.12rem;margin:0 0 .55rem}
.work-visit{color:var(--text-muted);font-size:.85rem;font-weight:700;display:inline-flex;align-items:center;gap:.45rem;transition:var(--transition-fast)}
.work-card:hover .work-visit{color:var(--cyan)}
@media(max-width:768px){.work-grid{grid-template-columns:1fr}}

/* footer legal links */
.footer-legal{display:inline-flex;gap:.5rem;font-size:.8rem;color:var(--text-dim)}
.footer-legal a{color:var(--text-muted);text-decoration:none;transition:var(--transition-fast)}
.footer-legal a:hover{color:var(--cyan)}

/* ===== Powered-by hex badge ===== */
.hex-badge{display:inline-flex;align-items:stretch;border-radius:8px;overflow:hidden;font-family:var(--font-en);font-size:.7rem;font-weight:800;letter-spacing:.6px;text-decoration:none;line-height:1;border:1px solid rgba(20,184,166,.35);box-shadow:0 0 14px rgba(20,184,166,.12);transition:var(--transition-fast);direction:ltr;unicode-bidi:isolate}
.hex-badge .badge-left{background:rgba(13,21,46,.75);color:var(--text-dim);padding:.5rem .7rem;display:inline-flex;align-items:center}
.hex-badge .badge-right{background:linear-gradient(135deg,var(--cyan) 0%,#00ff88 100%);color:#04121a;padding:.5rem .75rem;display:inline-flex;align-items:center;gap:.35rem;font-weight:900}
.hex-badge .badge-right i{font-size:.78rem}
.hex-badge:hover{box-shadow:0 0 22px rgba(20,184,166,.4);transform:translateY(-2px);border-color:var(--cyan)}

/* ===== Custom 404 page ===== */
.error-404-section{min-height:70vh;display:flex;align-items:center}
.error-404-code{font-family:var(--font-en);font-weight:900;font-size:clamp(5rem,20vw,11rem);line-height:.9;letter-spacing:-2px}
.error-404-icon{font-size:2.4rem;color:var(--cyan);margin-top:.5rem;opacity:.8}
.error-404-actions{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;margin-top:2.2rem}
.error-404-links{margin-top:2.4rem;display:flex;flex-wrap:wrap;gap:.9rem;justify-content:center;align-items:center;font-size:.9rem}
.error-404-links .error-links-title{color:var(--text-dim);font-weight:700}
.error-404-links a{color:var(--text-muted);text-decoration:none;transition:var(--transition-fast);border-bottom:1px solid transparent}
.error-404-links a:hover{color:var(--cyan);border-bottom-color:var(--cyan)}

/* ===== No-flash language preload: hide page until saved language is applied ===== */
html.youne-lang-preload{background:#04070f}
html.youne-lang-preload body{visibility:hidden!important}
