/* ============================================
   SMARTPHONE DEVICE MOCKUP - LANDING PAGE
   Senior Developer Level CSS
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Device dimensions */
  --phone-width: 375px;
  --phone-height: 812px;
  --phone-radius: 50px;
  --phone-bezel: 12px;
  --screen-radius: 42px;

  /* Device colors */
  --phone-body: #1a1a1a;
  --phone-frame: linear-gradient(145deg, #2a2a2a, #0a0a0a);
  --phone-frame-highlight: rgba(255, 255, 255, 0.08);
  --phone-frame-shadow: rgba(0, 0, 0, 0.8);
  --phone-button-color: #2a2a2a;
  --phone-button-highlight: rgba(255, 255, 255, 0.1);

  /* Screen colors */
  --screen-bg: #000;
  --notch-bg: #000;

  /* UI Colors */
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: rgba(0, 0, 0, 0.3);

  /* App colors */
  --whatsapp: #25D366;
  --vodafone: #E60000;
  --maps: #4285F4;
  --gallery: linear-gradient(135deg, #FF6B6B, #FFE66D, #4ECDC4, #45B7D1, #96E6A1);
  --euro: #FFD700;
  --settings: #8E8E93;
  --safari: linear-gradient(135deg, #5AC8FA, #007AFF);
  --clock: #000;
  --weather: linear-gradient(135deg, #5AC8FA, #4CD964);
  --camera: #8E8E93;
  --music: linear-gradient(135deg, #FC3C44, #FF2D55);
  --calculator: #1C1C1E;
  --notes: #FFCC02;
  --calendar: #FF3B30;
  --mail: #5AC8FA;
  --phone-app: #4CD964;

  /* Animations */
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-ios: cubic-bezier(0.23, 1, 0.32, 1);

  /* Dock layout */
  --dock-height: 85px;
  --dock-bottom: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.desktop-video-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  filter: saturate(1.05) contrast(1.03);
  display: none;
}

.desktop-video-still {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  filter: saturate(1.05) contrast(1.03);
}

body.desktop-video-enabled .desktop-video-still {
  opacity: 0.42;
}

body.desktop-video-enabled::before {
  animation: none;
  opacity: 0.58;
}

/* --- Background Ambiance --- */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(120, 50, 180, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(50, 100, 200, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(200, 50, 100, 0.06) 0%, transparent 50%);
  animation: ambianceFloat 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes ambianceFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(2%, -1%) rotate(1deg);
  }

  66% {
    transform: translate(-1%, 2%) rotate(-1deg);
  }
}

/* --- Landing Container --- */
.landing-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* ============================================
   DEVICE MOCKUP - Physical Smartphone Body
   ============================================ */
.device-mockup {
  position: relative;
  width: var(--phone-width);
  height: var(--phone-height);
  transform: none;
  contain: layout paint;
  border-radius: calc(var(--phone-radius) + 2px);
  isolation: isolate;
}



/* --- Phone Outer Frame (Body) --- */
.phone-body {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--phone-frame);
  border-radius: var(--phone-radius);
  padding: var(--phone-bezel);
  box-shadow:
    /* Outer glow */
    0 0 60px rgba(120, 50, 180, 0.15),
    /* Main shadow */
    0 25px 80px rgba(0, 0, 0, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.6),
    /* Inner bevel highlight */
    inset 0 1px 1px var(--phone-frame-highlight),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3),
    /* Frame edge */
    0 0 0 1px rgba(60, 60, 60, 0.5);
  overflow: hidden;
  clip-path: inset(0 round var(--phone-radius));
}

/* Subtle metal frame effect */
.phone-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--phone-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 10;
}

/* Metal sheen effect */
.phone-body::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg,
      transparent 40%,
      rgba(255, 255, 255, 0.03) 45%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0.03) 55%,
      transparent 60%);
  pointer-events: none;
  z-index: 11;
  animation: metalSheen 8s ease-in-out infinite;
}

@keyframes metalSheen {

  0%,
  100% {
    transform: translate(-10%, -10%) rotate(0deg);
  }

  50% {
    transform: translate(10%, 10%) rotate(2deg);
  }
}

/* --- Physical Buttons --- */

/* Power Button (Right side) */
.btn-power {
  position: absolute;
  right: -3px;
  top: 180px;
  width: 3px;
  height: 70px;
  background: linear-gradient(to right, #333, #1a1a1a);
  border-radius: 0 3px 3px 0;
  z-index: 5;
  box-shadow:
    2px 0 4px rgba(0, 0, 0, 0.5),
    inset -1px 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-power:active {
  width: 2px;
  background: linear-gradient(to right, #222, #111);
}

/* Volume Up Button (Left side) */
.btn-volume-up {
  position: absolute;
  left: -3px;
  top: 160px;
  width: 3px;
  height: 40px;
  background: linear-gradient(to left, #333, #1a1a1a);
  border-radius: 3px 0 0 3px;
  z-index: 5;
  box-shadow:
    -2px 0 4px rgba(0, 0, 0, 0.5),
    inset 1px 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-volume-up:active {
  width: 2px;
}

/* Volume Down Button (Left side) */
.btn-volume-down {
  position: absolute;
  left: -3px;
  top: 210px;
  width: 3px;
  height: 40px;
  background: linear-gradient(to left, #333, #1a1a1a);
  border-radius: 3px 0 0 3px;
  z-index: 5;
  box-shadow:
    -2px 0 4px rgba(0, 0, 0, 0.5),
    inset 1px 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-volume-down:active {
  width: 2px;
}

/* Silent Switch (Left side, above volume) */
.btn-silent {
  position: absolute;
  left: -3px;
  top: 120px;
  width: 3px;
  height: 22px;
  background: linear-gradient(to left, #333, #1a1a1a);
  border-radius: 3px 0 0 3px;
  z-index: 5;
  box-shadow:
    -2px 0 4px rgba(0, 0, 0, 0.5),
    inset 1px 0 1px rgba(255, 255, 255, 0.1);
}

/* ============================================
   SCREEN
   ============================================ */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--screen-bg);
  border-radius: var(--screen-radius);
  overflow: hidden;
  z-index: 2;
  clip-path: inset(0 round var(--screen-radius));
}

/* --- Wallpaper --- */
.screen-wallpaper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/wallpaper.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: none;
}

/* --- Status Bar (Top) --- */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 25px 8px 25px;
  /* Symmetric padding on both sides */
  z-index: 100;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-left {
  display: flex;
  align-items: center;
}

.status-logo {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* Branding is ONLY visible on the Home Screen */
.status-bar.show-branding .status-logo {
  opacity: 1;
}

/* On light-themed apps (dark status bar mode), we make the text dark */
.status-bar.dark .status-logo {
  color: #000;
  text-shadow: none;
}

.status-time {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Dark mode for Status Bar */
.status-bar.dark {
  color: #000;
}

.status-bar.dark .status-icons svg,
.status-bar.dark .status-icons svg rect,
.status-bar.dark .status-icons svg path {
  fill: #000 !important;
  stroke: #000;
}

.status-bar.dark .battery-body {
  border-color: #000;
}

.status-bar.dark .battery-body::after {
  background: #000;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.status-icons svg {
  width: 18px;
  height: 12px;
  fill: #fff;
}

.battery-icon {
  display: flex;
  align-items: center;
  gap: 3px;
}

.battery-icon .battery-body {
  width: 25px;
  height: 12px;
  border: 1.5px solid #fff;
  border-radius: 3px;
  padding: 1.5px;
  position: relative;
}

.battery-icon .battery-body::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 5px;
  background: #fff;
  border-radius: 0 1px 1px 0;
}

.battery-icon .battery-level {
  width: 80%;
  height: 100%;
  background: #34C759;
  border-radius: 1px;
}

/* --- Dynamic Island / Notch --- */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 36px;
  background: #000;
  border-radius: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  transition: all 0.4s var(--transition-ios);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
}

.dynamic-island:hover {
  width: 140px;
  height: 38px;
  transition: all 0.3s var(--transition-bounce);
}

/* Camera lens */
.camera-lens {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #1a1a3e, #0a0a1a);
  border: 1.5px solid #1a1a2e;
  box-shadow:
    inset 0 0 3px rgba(0, 0, 200, 0.3),
    0 0 2px rgba(0, 0, 0, 0.5);
  position: relative;
}

.camera-lens::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 100, 255, 0.4), transparent);
}

/* Camera dot indicator */
.camera-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0a0a0a;
  margin-left: 8px;
  border: 0.5px solid rgba(50, 50, 50, 0.5);
}

/* ============================================
   HOME SCREEN - App Grid
   ============================================ */
.home-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 70px 20px calc(var(--dock-height) + var(--dock-bottom) + 22px + var(--safe-bottom));
  transition: none;
  will-change: transform, opacity;
}

/* Zoom-dive layer that wraps visual content for the dive effect */
.zoom-dive-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
  transition: none;
}

/* Lock screen date */
.home-date {
  text-align: center;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.home-clock {
  text-align: center;
  margin-bottom: 25px;
  font-size: 70px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -2px;
  line-height: 1;
}

/* --- App Grid --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 12px;
  padding: 0 4px;
  flex: 1;
  align-content: start;
}

/* --- App Icon --- */
.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--transition-bounce);
  text-decoration: none;
}

.app-icon:active {
  transform: scale(0.85);
}

.app-icon-img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: visible;
  transition: transform 0.3s var(--transition-ios), box-shadow 0.3s ease;
}

/* Icon shine overlay */
.app-icon-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

.app-icon-label {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Individual icon backgrounds */
.icon-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.icon-vodafone {
  background: linear-gradient(135deg, #E60000, #990000);
}

.icon-lebara {
  background: linear-gradient(135deg, #00adef, #007bb5);
}

.icon-maps {
  background: linear-gradient(135deg, #4285F4, #34A853);
}

.icon-gallery {
  background: var(--gallery);
}

.icon-euro {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.icon-safari {
  background: var(--safari);
}

.icon-shop-kiosk {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.32), transparent 45%),
    linear-gradient(145deg, #ff7a18 0%, #ff3d6e 48%, #6f3bff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow:
    0 5px 14px rgba(111, 59, 255, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.shop-kiosk-icon {
  font-size: 19px;
  color: #fff;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.shop-kiosk-text {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #1f2148;
  line-height: 1;
  background: #ffe45d;
  border-radius: 999px;
  padding: 2px 5px;
}

.icon-chrome {
  background: linear-gradient(135deg, #FFCE00, #EAEAEA 50%, #4285F4 50%, #34A853);
}

.icon-youtube {
  background: linear-gradient(135deg, #FF0000, #CC0000);
}

.icon-camera {
  background: linear-gradient(135deg, #8E8E93, #636366);
}

.icon-clock {
  background: linear-gradient(135deg, #1C1C1E, #3A3A3C);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.icon-weather {
  background: var(--weather);
}

.icon-facebook {
  background: linear-gradient(135deg, #1877F2, #0d5bbd);
}

.icon-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.icon-notes {
  background: linear-gradient(135deg, #FFCC02, #FF9500);
}

.icon-calendar {
  background: linear-gradient(135deg, #FF3B30, #FF2D55);
}

.icon-mail {
  background: linear-gradient(135deg, #5AC8FA, #007AFF);
}

.icon-phone-app {
  background: linear-gradient(135deg, #4CD964, #34C759);
}

.icon-settings {
  background: linear-gradient(135deg, #8E8E93, #636366);
}

.icon-inner-label {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  color: #1f2430;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 2px 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  background: #FF3B30;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 0 5px;
  z-index: 5;
  border: 2px solid rgba(0, 0, 0, 0.3);
  will-change: transform;
}

/* --- Dock (Bottom row) --- */
.dock {
  position: absolute;
  bottom: calc(var(--dock-bottom) + var(--safe-bottom));
  left: 16px;
  right: 16px;
  height: var(--dock-height);
  background: rgba(150, 150, 150, 0.2);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 0 15px;
  z-index: 15;
  border: 1px solid rgba(255, 255, 255, 0.1);
  will-change: transform, opacity;
}

.dock .app-icon-label {
  display: none;
}

/* ============================================
   APP VIEWS (Full-screen overlays inside phone)
   ============================================ */
.app-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.1);
  transition: opacity 0.3s ease 0.35s, transform 0.4s var(--transition-ios) 0.35s;
  border-radius: var(--screen-radius);
  overflow: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: transform, opacity;
  contain: paint;
}

.app-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

#appSettings {
  display: flex;
  flex-direction: column;
}

#appSettings .app-header {
  flex: 0 0 auto;
}

#appSettings .settings-content {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 120px !important;
}

/* On close, reverse: app fades out first, then home zooms back */
.app-view.closing {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.25s ease, transform 0.3s ease;
}

/* --- App Header --- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px 15px;
  position: relative;
  z-index: 5;
}

.app-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.app-header .close-btn {
  display: none;
  /* Using nav bar instead */
}

/* ============================================
   SHOP APP (COMING SOON)
   ============================================ */
.shop-app {
  background: linear-gradient(165deg, #071021 0%, #112647 45%, #1f3872 100%);
  color: #fff;
}

.shop-header {
  padding: 54px 20px 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.shop-brand-logo {
  width: 130px;
  max-width: 45%;
  height: auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 4px 8px;
}

.shop-header-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #082742;
  background: linear-gradient(135deg, #ffd449, #ff9f1a);
  border-radius: 999px;
  padding: 6px 10px;
}

.shop-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.shop-header p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.35;
}

.shop-content {
  padding: 16px 16px 96px;
  overflow-y: auto;
  height: calc(100% - 185px);
  -webkit-overflow-scrolling: touch;
}

.shop-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
}

.shop-hero-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.shop-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(to top, rgba(4, 8, 18, 0.92), rgba(4, 8, 18, 0.2));
}

.shop-hero-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #7bdfff;
  margin-bottom: 6px;
}

.shop-hero-overlay h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.shop-hero-overlay p {
  margin: 7px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shop-item-card {
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 118px;
}

.shop-item-card:last-child {
  grid-column: 1 / -1;
}

.shop-item-card ion-icon {
  font-size: 24px;
  color: #8ce4ff;
}

.shop-item-card h4 {
  margin: 6px 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.shop-item-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

/* ============================================
   VODAFONE TARIFAS APP
   ============================================ */
.vodafone-app {
  background: linear-gradient(180deg, #1a0000 0%, #0a0000 100%);
}

.vodafone-app .app-header {
  background: linear-gradient(180deg, #E60000 0%, #CC0000 100%);
  padding-bottom: 20px;
}

.vodafone-app .app-header h2 {
  color: #fff;
}

.vodafone-logo-header {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vodafone-content {
  padding: 20px;
  overflow-y: auto;
  height: calc(100% - 160px);
  -webkit-overflow-scrolling: touch;
}

.tarifa-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  padding-bottom: 52px;
  margin-bottom: 15px;
  transition: all 0.3s var(--transition-ios);
  position: relative;
  overflow: hidden;
}

.tarifa-card::after {
  content: '🛂 DNI / Pasaporte / NIE / TIE obligatorio para nueva SIM';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(35, 43, 59, 0.78);
  background: rgba(246, 249, 255, 0.85);
  border: 1px solid rgba(106, 129, 165, 0.2);
  border-radius: 10px;
  padding: 7px 9px;
}

.tarifa-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 0, 0, 0.15);
}

.tarifa-card.featured {
  border-color: #E60000;
  background: rgba(230, 0, 0, 0.1);
}

.tarifa-card.featured::before {
  content: '⭐ Más Popular';
  position: absolute;
  top: 12px;
  right: 12px;
  background: #E60000;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tarifa-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.tarifa-price {
  font-size: 32px;
  font-weight: 900;
  color: #E60000;
  margin-bottom: 12px;
  line-height: 1;
}

.tarifa-price span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.tarifa-features {
  list-style: none;
  margin-bottom: 15px;
}

.tarifa-features li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tarifa-features li::before {
  content: '✓';
  color: #E60000;
  font-weight: 700;
  font-size: 14px;
}

.tarifa-btn {
  width: 100%;
  padding: 12px;
  background: #E60000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.tarifa-btn:hover {
  background: #FF1A1A;
  transform: scale(1.02);
}

.tarifa-btn:active {
  transform: scale(0.98);
}

/* ============================================
   GOOGLE MAPS APP
   ============================================ */
.maps-app {
  background: #1a1a2e;
}

.maps-app .app-header {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
}

.maps-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 80px);
}

.maps-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.maps-search-bar {
  position: absolute;
  top: 60px;
  left: 15px;
  right: 15px;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.maps-search-bar svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.maps-search-bar span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   GALLERY APP
   ============================================ */
.gallery-app {
  background: #000;
}

.gallery-app .app-header {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
}

.gallery-tabs {
  display: flex;
  padding: 0 20px;
  gap: 2px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
}

.gallery-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.gallery-tab.active {
  color: #fff;
  border-bottom-color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px;
  overflow-y: auto;
  height: calc(100% - 180px);
  -webkit-overflow-scrolling: touch;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.gallery-item:active {
  transform: scale(0.95);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--transition-ios);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery lightbox */
.gallery-lightbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox img {
  max-width: 95%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 50px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  backdrop-filter: blur(10px);
}

.lightbox-delete {
  position: absolute;
  top: 50px;
  left: 15px;
  width: 36px;
  height: 36px;
  background: rgba(255, 59, 48, 0.8);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
}

.lightbox-delete:active {
  transform: scale(0.9);
}

/* ============================================
   NAVIGATION BAR (Bottom Home Indicator)
   ============================================ */
.nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0px;
  pointer-events: none;
}

/* ============================================
   NAVIGATION BAR (Hybrid Style)
   ============================================ */
.android-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 4px;
  gap: 4px;
  pointer-events: none;
}

.android-nav.in-app {
  pointer-events: auto;
}

.android-nav-content {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  padding: 0 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.android-nav.in-app .android-nav-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.android-nav-btn {
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 35px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.android-nav-btn:active {
  transform: scale(0.8);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
}

.ios-home-bar {
  width: 134px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Dark mode variations for hybrid bar */
.android-nav.dark .android-nav-btn {
  color: rgba(0, 0, 0, 0.6);
}

.android-nav.dark .android-nav-btn:active {
  background: rgba(0, 0, 0, 0.05);
}

.android-nav.dark .ios-home-bar {
  background: rgba(0, 0, 0, 0.4);
}


/* ============================================
   DIVE-INTO-ICON ZOOM ANIMATION
   The home screen scales up massively toward 
   the icon center, creating an infinite zoom effect.
   ============================================ */
@keyframes diveIntoIcon {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
    filter: none;
  }

  60% {
    opacity: 1;
    filter: blur(2px);
  }

  100% {
    transform: scale(25) translate(var(--dive-tx), var(--dive-ty));
    opacity: 0;
    filter: blur(8px);
  }
}

@keyframes diveOutFromIcon {
  0% {
    transform: scale(25) translate(var(--dive-tx), var(--dive-ty));
    opacity: 0;
    filter: blur(8px);
  }

  40% {
    opacity: 1;
    filter: blur(2px);
  }

  100% {
    transform: scale(1) translate(0, 0);
    opacity: 1;
    filter: none;
  }
}

.home-screen.dive-in {
  animation: diveIntoIcon 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.home-screen.dive-out {
  animation: diveOutFromIcon 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

/* Also animate the dock and wallpaper together */
.dock.dive-in {
  animation: diveIntoIcon 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.dock.dive-out {
  animation: diveOutFromIcon 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

.screen-wallpaper.dive-in {
  animation: diveIntoIcon 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.screen-wallpaper.dive-out {
  animation: diveOutFromIcon 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================
   SEARCH BAR ON HOME SCREEN
   ============================================ */
.search-bar-home {
  margin: 8px 0 15px;
  background: rgba(150, 150, 150, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-bar-home svg {
  width: 15px;
  height: 15px;
  fill: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.search-bar-home input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.search-bar-home input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   WELCOME INTRO OVERLAY
   ============================================ */
.welcome-intro {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 25% 18%, rgba(0, 197, 255, 0.25), transparent 45%),
    radial-gradient(circle at 78% 80%, rgba(0, 122, 255, 0.22), transparent 50%),
    rgba(3, 10, 24, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.welcome-intro.active {
  opacity: 1;
  pointer-events: auto;
}

.welcome-intro.closing {
  opacity: 0;
  pointer-events: none;
}

.welcome-intro-card {
  width: min(92%, 330px);
  border-radius: 20px;
  padding: 20px 16px 16px;
  background: linear-gradient(160deg, rgba(8, 20, 46, 0.92), rgba(9, 38, 88, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  animation: introCardIn 0.75s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.welcome-intro-logo-wrap {
  width: 100%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.welcome-intro-logo {
  width: 146px;
  max-width: 78%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.welcome-intro-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(196, 228, 255, 0.96);
}

.welcome-intro-text {
  margin: 0;
  color: rgba(241, 247, 255, 0.95);
  font-size: 14px;
  line-height: 1.45;
  text-wrap: balance;
}

.welcome-intro-text-en {
  margin-top: 10px;
  color: rgba(213, 233, 255, 0.92);
}

.welcome-intro-credit {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(202, 222, 251, 0.9);
  font-size: 12px;
  font-weight: 600;
}

.welcome-intro-seasoft {
  width: 74px;
  height: auto;
  display: block;
}

.welcome-intro-btn {
  margin-top: 16px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #05214b;
  background: linear-gradient(135deg, #7ad8ff, #d5f6ff);
  box-shadow: 0 8px 18px rgba(66, 201, 255, 0.38);
  cursor: pointer;
}

.welcome-intro-btn:active {
  transform: scale(0.98);
}

@keyframes introCardIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-results {
  display: none;
  margin: 0 0 12px;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(12, 18, 30, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.search-results.active {
  display: block;
}

.search-results-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(224, 236, 255, 0.88);
  background: rgba(42, 57, 88, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:active {
  background: rgba(255, 255, 255, 0.1);
}

.search-result-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.search-result-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.search-result-snippet {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
}

.search-result-empty {
  padding: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

/* ============================================
   PAGE DOTS
   ============================================ */
.page-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
}

.page-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.page-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ============================================
   ICON PULSE EFFECT ON HOVER
   ============================================ */

.app-icon-img::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.app-icon:hover .app-icon-img::before {
  animation: iconPulse 2s ease-in-out infinite;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .app-icon:hover .app-icon-img::before {
    animation: none;
    opacity: 0.35;
  }

  .app-view,
  .app-view.closing,
  .home-screen,
  .dock {
    transition: none !important;
  }
}

@keyframes iconPulse {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* ============================================
   WIDGET STYLE FOR CLOCK
   ============================================ */
.widget-clock {
  grid-column: span 2;
  grid-row: span 1;
}

.widget-clock .app-icon-img {
  width: 100%;
  height: 60px;
  border-radius: 18px;
  background: rgba(150, 150, 150, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 15px;
  gap: 10px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-clock .app-icon-img .widget-time {
  font-size: 28px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -1px;
}

.widget-clock .app-icon-img .widget-city {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large screens */
@media (min-width: 1200px) {
  :root {
    --phone-width: 410px;
    --phone-height: 888px;
    --phone-radius: 54px;
    --screen-radius: 46px;
  }

  .device-mockup {
    transform: none;
  }

  .landing-container {
    padding: 24px;
  }

}

@media (min-width: 1600px) {
  :root {
    --phone-width: 430px;
    --phone-height: 930px;
  }


}

/* Medium screens / tablets */
@media (max-width: 768px) {
  .desktop-video-bg,
  .desktop-video-still {
    display: none;
  }

  .device-mockup {
    transform: scale(0.75);
  }


}

/* Small screens - Makes the phone fill the viewport */
@media (max-width: 480px) {
  :root {
    --dock-bottom: 14px;
  }

  body {
    align-items: flex-start;
    overflow-y: auto;
  }

  .landing-container {
    padding: 0;
    min-height: auto;
  }

  .device-mockup {
    transform: scale(1);
    width: 100vw;
    height: 100vh;
    height: 100dvh;
  }



  .phone-body {
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .phone-body::before,
  .phone-body::after {
    display: none;
  }

  .phone-screen {
    border-radius: 0;
  }

  .btn-power,
  .btn-volume-up,
  .btn-volume-down,
  .btn-silent {
    display: none;
  }

  .app-view {
    border-radius: 0;
  }

  .screen-wallpaper {
    border-radius: 0;
  }

  :root {
    --phone-radius: 0px;
    --screen-radius: 0px;
  }
}

/* Very small height */
@media (max-height: 700px) and (max-width: 480px) {
  .home-clock {
    font-size: 50px;
    margin-bottom: 15px;
  }

  .app-grid {
    gap: 14px 10px;
  }

  .app-icon-img {
    width: 52px;
    height: 52px;
    font-size: 24px;
    border-radius: 12px;
  }

  .app-icon-label {
    font-size: 10px;
  }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Stagger animations for icons */
.app-icon:nth-child(1) {
  animation: scaleIn 0.4s 0.05s var(--transition-ios) both;
}

.app-icon:nth-child(2) {
  animation: scaleIn 0.4s 0.10s var(--transition-ios) both;
}

.app-icon:nth-child(3) {
  animation: scaleIn 0.4s 0.15s var(--transition-ios) both;
}

.app-icon:nth-child(4) {
  animation: scaleIn 0.4s 0.20s var(--transition-ios) both;
}

.app-icon:nth-child(5) {
  animation: scaleIn 0.4s 0.25s var(--transition-ios) both;
}

.app-icon:nth-child(6) {
  animation: scaleIn 0.4s 0.30s var(--transition-ios) both;
}

.app-icon:nth-child(7) {
  animation: scaleIn 0.4s 0.35s var(--transition-ios) both;
}

.app-icon:nth-child(8) {
  animation: scaleIn 0.4s 0.40s var(--transition-ios) both;
}

.app-icon:nth-child(9) {
  animation: scaleIn 0.4s 0.45s var(--transition-ios) both;
}

.app-icon:nth-child(10) {
  animation: scaleIn 0.4s 0.50s var(--transition-ios) both;
}

.app-icon:nth-child(11) {
  animation: scaleIn 0.4s 0.55s var(--transition-ios) both;
}

.app-icon:nth-child(12) {
  animation: scaleIn 0.4s 0.60s var(--transition-ios) both;
}

.app-icon:nth-child(13) {
  animation: scaleIn 0.4s 0.65s var(--transition-ios) both;
}

.app-icon:nth-child(14) {
  animation: scaleIn 0.4s 0.70s var(--transition-ios) both;
}

.app-icon:nth-child(15) {
  animation: scaleIn 0.4s 0.75s var(--transition-ios) both;
}

.app-icon:nth-child(16) {
  animation: scaleIn 0.4s 0.80s var(--transition-ios) both;
}

/* Scrollbar hide */
.vodafone-content::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar {
  display: none;
}

.vodafone-content,
.gallery-grid {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================
   LOADING SHIMMER FOR LAZY LOAD
   ============================================ */
.lazy-placeholder {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Image loaded state */
.gallery-item img.loaded {
  animation: fadeIn 0.5s ease;
}

/* ============================================
   SCREEN REFLECTIONS & DEPTH
   ============================================ */
.screen-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(155deg,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 40%,
      transparent 60%,
      rgba(255, 255, 255, 0.01) 100%);
  pointer-events: none;
  z-index: 300;
  border-radius: var(--screen-radius);
}

/* ============================================
   VODAFONE PROMO BANNER
   ============================================ */
.vodafone-promo {
  background: linear-gradient(135deg, #E60000, #990000);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vodafone-promo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: promoShine 3s ease-in-out infinite;
}

@keyframes promoShine {

  0%,
  100% {
    transform: translate(-30%, -30%);
  }

  50% {
    transform: translate(30%, 30%);
  }
}

.vodafone-promo h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
}

.vodafone-promo p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

/* ============================================
   CAMERA APP (NATIVE)
   ============================================ */
.camera-app {
  background: #000;
}

.camera-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.camera-ui-top {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.camera-ui-top ion-icon {
  font-size: 24px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  cursor: pointer;
}

.camera-modes {
  position: absolute;
  bottom: 140px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 10;
}

.camera-modes span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  cursor: pointer;
  letter-spacing: 1px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.camera-modes span:first-child {
  color: #FFD60A;
  /* Yellow active color for FOTO */
  opacity: 1;
}

.camera-ui-bottom {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  padding: 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.camera-gallery-preview {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  background-image: none;
  background-size: cover;
  background-position: center;
}

.camera-shutter-container {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
}

.camera-shutter {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.1s ease;
}

.camera-shutter-container:active .camera-shutter {
  transform: scale(0.85);
}

.camera-flip-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.camera-flip-btn ion-icon {
  font-size: 24px;
  color: #fff;
}

/* ============================================
   MAIL APP (RESEND)
   ============================================ */
.mail-app {
  background: #f2f2f7;
  /* iOS Light Gray */
  display: flex;
  flex-direction: column;
}

.mail-app .app-header {
  padding: 50px 20px 15px;
  background: #f2f2f7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mail-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #007AFF;
  /* iOS Blue */
}

.mail-app .app-header h2 {
  color: #000;
  font-size: 18px;
  font-weight: 700;
}

.mail-send-btn {
  background: none;
  border: none;
  color: #007AFF;
  font-size: 22px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.mail-send-btn:active {
  opacity: 0.5;
}

.mail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
}

.mail-field {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #efeff4;
  gap: 10px;
}

.mail-field label {
  color: #8e8e93;
  font-size: 15px;
  font-weight: 500;
  min-width: 60px;
}

.mail-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #000;
}

.mail-to-chip {
  background: #e5e5ea;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #000;
  font-weight: 500;
}

.mail-body-container {
  flex: 1;
  padding: 20px;
}

.mail-body-container textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 16px;
  color: #000;
  resize: none;
}

.mail-status {
  padding: 15px 20px;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

.mail-status.success {
  color: #34c759;
}

.mail-status.error {
  color: #ff3b30;
}

/* Loading Overlay */
.mail-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.mail-app.sending .mail-loading-overlay {
  opacity: 1;
  pointer-events: auto;
}

.mail-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(0, 122, 255, 0.2);
  border-top: 3px solid #007AFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.mail-loading-overlay span {
  color: #000;
  font-size: 15px;
  font-weight: 600;
}

/* ============================================
   CORPORATE CONTACT MODAL
   ============================================ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.contact-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(6px);
}

.contact-modal-card {
  position: relative;
  width: min(92vw, 560px);
  max-height: min(88vh, calc(var(--contact-vh, 100vh) - 32px));
  margin: 6vh auto;
  border-radius: 20px;
  background: linear-gradient(160deg, #ffffff 0%, #f4f7fb 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1d2432;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.contact-modal-close ion-icon {
  font-size: 20px;
}

.contact-modal-header {
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, #0f1f3b 0%, #173f73 100%);
  color: #fff;
}

.contact-modal-logo {
  width: 180px;
  max-width: 60%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.contact-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.contact-modal-header p {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.contact-modal-content {
  position: relative;
  padding: 20px 22px 24px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-field {
  margin-bottom: 0;
}

.contact-field label {
  display: block;
  margin-bottom: 6px;
  color: #23324c;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid #d8deea;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  color: #0f1627;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #2f65b8;
  box-shadow: 0 0 0 3px rgba(47, 101, 184, 0.15);
}

.contact-meta {
  margin: 2px 0 10px;
  font-size: 12px;
  color: #66748f;
}

.contact-modal-actions {
  padding: 10px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(18, 34, 62, 0.1);
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.72) 0%, rgba(244, 247, 251, 1) 40%);
}

.contact-send-btn {
  width: 100%;
  margin-top: 0;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #1a4e95 0%, #007aff 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(26, 78, 149, 0.28);
}

.contact-send-btn ion-icon {
  font-size: 18px;
}

.contact-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.contact-modal.sending .contact-loading-overlay {
  opacity: 1;
  pointer-events: auto;
}

.contact-loading-overlay span {
  color: #1d2432;
  font-weight: 700;
  font-size: 14px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 540px) {
  body.modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  .contact-modal {
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .contact-modal-backdrop {
    position: fixed;
  }

  .contact-modal-card {
    width: 100%;
    height: auto;
    min-height: 100%;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .contact-modal-header {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 14px;
    transition: padding 0.2s ease;
  }

  .contact-modal-card.keyboard-open .contact-modal-header {
    padding-top: calc(4px + env(safe-area-inset-top, 0px));
    padding-bottom: 4px;
  }

  .contact-modal-card.keyboard-open .contact-modal-logo,
  .contact-modal-card.keyboard-open .contact-modal-header p {
    display: none;
  }

  .contact-modal-card.keyboard-open .contact-modal-header h2 {
    font-size: 17px;
    margin: 0;
  }

  .contact-modal-content {
    padding: 14px 16px;
    gap: 10px;
    padding-bottom: 12px;
    overflow: visible;
    flex: 1 0 auto;
  }

  .contact-modal-actions {
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #f4f7fb;
  }

  .contact-field textarea {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-video-bg,
  .desktop-video-still {
    display: none;
  }
}