/* ==========================================================================
   IMI-TOUCH & EAZY PASSPORT - OFFICIAL MODERN MOBILE UI
   High-End Indonesian Immigration Design System
   ========================================================================== */

:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Color Palette */
  --bg-dark-900: #050a14;
  --bg-dark-800: #0a1324;
  --bg-dark-700: #0f1e38;
  --bg-glass-card: rgba(16, 29, 54, 0.75);
  --bg-glass-card-hover: rgba(23, 41, 76, 0.85);
  --bg-glass-subtle: rgba(255, 255, 255, 0.05);

  --color-gold-400: #ffd166;
  --color-gold-500: #f59e0b;
  --color-gold-600: #d97706;
  --color-gold-glow: rgba(245, 158, 11, 0.35);

  --color-cyan-400: #38bdf8;
  --color-cyan-500: #0284c7;
  --color-cyan-600: #0369a1;
  --color-cyan-glow: rgba(56, 189, 248, 0.35);

  --color-navy-blue: #133e87;
  --color-navy-dark: #001f3f;

  --text-pure: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-light: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(255, 209, 102, 0.6);
  --border-cyan-focus: rgba(56, 189, 248, 0.6);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
  --shadow-glow-gold: 0 0 35px -5px rgba(245, 158, 11, 0.4);
  --shadow-glow-cyan: 0 0 35px -5px rgba(56, 189, 248, 0.4);

  --phone-width: 412px;
  --phone-height: 870px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.18s ease-out;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  font-family: var(--font-primary);
  background-color: var(--bg-dark-900);
  color: var(--text-primary);
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ==========================================================================
   Dynamic Ambient Background
   ========================================================================== */
.bg-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.glow-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #0e3d74 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.glow-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
  top: 30%;
  right: -80px;
  animation-duration: 14s;
  animation-delay: -3s;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  bottom: -100px;
  left: 20%;
  animation-duration: 20s;
  animation-delay: -7s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
  100% { transform: translate(-20px, -30px) scale(0.95); }
}

@keyframes pulseGuide {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-card); }
  50% { transform: scale(1.02); box-shadow: 0 0 25px rgba(245, 158, 11, 0.5); }
}

.grid-pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ==========================================================================
/* ==========================================================================
   Desktop Controls (Auto-responsive: Hidden)
   ========================================================================== */
.desktop-controls {
  display: none !important;
}

/* ==========================================================================
   Responsive Viewport Container (Automatic on all screen sizes)
   ========================================================================== */
.mobile-viewport {
  position: relative;
  z-index: 10;
  width: 100% !important;
  max-width: 920px !important;
  height: auto !important;
  max-height: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ==========================================================================
   Phone Bezel Elements: Notch & Status Bar
   ========================================================================== */
/* ==========================================================================
   Main App Screen (Scrollable & Edge-to-Edge)
   ========================================================================== */
.app-screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 18px 24px;
  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.app-screen::-webkit-scrollbar {
  width: 4px;
}

.app-screen::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* ==========================================================================
   Header: App Logo (Top Left) & Mascot (Top Right)
   ========================================================================== */
.app-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px 8px;
  position: relative;
  z-index: 20;
}

/* Logo Top-Left */
.header-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.header-logo-wrapper:hover {
  transform: translateY(-1px);
}

.logo-glass-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.app-logo-img {
  height: 46px;
  width: auto;
  max-width: 108px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.header-logo-wrapper:hover .app-logo-img {
  transform: scale(1.04);
}

.logo-caption {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dept-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--color-gold-400);
  line-height: 1.2;
}

.sub-dept {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Hero Mascot Component (Centered with Speech Bubble Above) */
.hero-mascot-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 16px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.hero-mascot-bubble {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 29, 54, 0.95), rgba(9, 18, 36, 0.95));
  border: 1.5px solid #f59e0b;
  border-radius: 18px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 158, 11, 0.25);
  margin-bottom: 12px;
  max-width: 440px;
  line-height: 1.4;
  transition: all 0.25s ease;
}

.hero-mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 7px 0 7px;
  border-style: solid;
  border-color: #f59e0b transparent transparent transparent;
}

.hero-mascot-ring {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(59, 130, 246, 0.5));
  padding: 4px;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-mascot-container:hover .hero-mascot-ring {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.6);
}

.hero-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #0f172a;
  display: block;
}

.hero-mascot-online {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  border: 3px solid #07090e;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

/* Mascot Top-Right */
.header-mascot-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.mascot-avatar-ring {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--color-gold-400), #e2930a, var(--color-cyan-400));
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
  animation: mascotPulse 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes mascotPulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.65), 0 0 10px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
  }
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-mascot-wrapper:hover .mascot-img {
  transform: scale(1.12) rotate(-4deg);
}

.mascot-badge-online {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid #0a1324;
  border-radius: 50%;
}

.mascot-speech-bubble {
  position: absolute;
  top: 66px;
  right: 0;
  width: 180px;
  background: linear-gradient(135deg, rgba(16, 29, 54, 0.95), rgba(9, 18, 36, 0.95));
  border: 1px solid var(--color-gold-400);
  border-radius: 14px 4px 14px 14px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-pure);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.92);
  transition: var(--transition-smooth);
  z-index: 30;
}

.mascot-speech-bubble::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 22px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-gold-400);
}

.header-mascot-wrapper:hover .mascot-speech-bubble,
.header-mascot-wrapper.active-bubble .mascot-speech-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   Welcome / Hero Section
   ========================================================================== */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.hero-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-gold-400);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-pure);
  letter-spacing: -0.4px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--color-gold-400) 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   Services Section (Side-by-Side: EAZY PASSPORT & IMI-TOUCH)
   ========================================================================== */
.services-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 2px;
}

.services-container.side-by-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.service-card {
  position: relative;
  width: 100%;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: all 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  overflow: hidden;
  user-select: none;
  min-height: 205px;
}

.service-card .card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.service-card .card-border-gradient {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* EAZY PASSPORT Spec (WNI) */
.service-eazy .card-glow {
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.25), transparent 75%);
}

.service-eazy .card-border-gradient {
  background: linear-gradient(135deg, var(--color-gold-400), rgba(245, 158, 11, 0.2), rgba(255, 255, 255, 0.4));
}

/* IMI-TOUCH Spec (Foreigners) */
.service-touch .card-glow {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.25), transparent 75%);
}

.service-touch .card-border-gradient {
  background: linear-gradient(135deg, var(--color-cyan-400), rgba(2, 132, 199, 0.2), rgba(255, 255, 255, 0.4));
}

/* Card Hover & Selected Active States */
.service-card:hover {
  transform: translateY(-2px);
  background: var(--bg-glass-card-hover);
  box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.55);
}

.service-card:hover .card-glow,
.service-card:hover .card-border-gradient {
  opacity: 0.7;
}

.service-card:active {
  transform: scale(0.985);
}

.service-card:focus-visible {
  outline: 2px solid var(--color-gold-400);
  outline-offset: 2px;
}

.service-touch:focus-visible {
  outline-color: var(--color-cyan-400);
}

/* Selected State */
.service-card.selected {
  background: linear-gradient(145deg, rgba(17, 34, 64, 0.95), rgba(11, 23, 44, 0.95));
  border-color: transparent;
}

.service-eazy.selected {
  box-shadow: 0 0 25px -4px rgba(245, 158, 11, 0.5), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.service-eazy.selected .card-glow,
.service-eazy.selected .card-border-gradient {
  opacity: 1;
}

.service-touch.selected {
  box-shadow: 0 0 25px -4px rgba(56, 189, 248, 0.5), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.service-touch.selected .card-glow,
.service-touch.selected .card-border-gradient {
  opacity: 1;
}

/* Card Meta Top */
.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 7px;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.18);
  color: var(--color-gold-400);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-cyan {
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-cyan-400);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.selection-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: var(--transition-fast);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.service-card.selected .selection-checkbox {
  border-color: transparent;
  color: #000000;
}

.service-eazy.selected .selection-checkbox {
  background: var(--color-gold-400);
  box-shadow: 0 0 10px var(--color-gold-400);
}

.service-touch.selected .selection-checkbox {
  background: var(--color-cyan-400);
  box-shadow: 0 0 10px var(--color-cyan-400);
}

/* Compact Card Body (for side-by-side columns) */
.card-body-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.indo-emblem-icon {
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(3deg);
}

.icon-eazy {
  background: linear-gradient(135deg, #2e1d05, #4d3305);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  color: var(--color-gold-400);
  box-shadow: inset 0 0 14px rgba(245, 158, 11, 0.3), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.icon-touch {
  background: linear-gradient(135deg, #071f30, #0a3a60);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  color: var(--color-cyan-400);
  font-size: 27px;
  box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.3), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.service-info-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.service-info-compact .service-name {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: var(--text-pure);
  line-height: 1.2;
}

.service-target-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  width: fit-content;
  line-height: 1.25;
}

.service-target-tag.citizen {
  background: rgba(245, 158, 11, 0.18);
  color: #fed7aa;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.service-target-tag.foreigner {
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15);
}

.service-eazy .feature-tag {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.2);
}

.service-eazy .feature-tag i {
  font-size: 9px;
  color: var(--color-gold-400);
  flex-shrink: 0;
}

.service-touch .feature-tag {
  background: rgba(56, 189, 248, 0.07);
  border-color: rgba(56, 189, 248, 0.2);
}

.service-touch .feature-tag i {
  font-size: 9px;
  color: var(--color-cyan-400);
  flex-shrink: 0;
}

/* Card Action Bar (Bottom of card) */
.card-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  width: 100%;
}

.card-arrow {
  transition: transform 0.25s ease;
  font-size: 10px;
}

.service-card:hover .card-action-bar,
.service-card.selected .card-action-bar {
  color: var(--text-pure);
}

.service-card:hover .card-arrow,
.service-card.selected .card-arrow {
  transform: translateX(3px);
}

.service-eazy.selected .card-action-bar {
  color: var(--color-gold-400);
}

.service-touch.selected .card-action-bar {
  color: var(--color-cyan-400);
}

.service-touch.selected .card-action-bar {
  color: var(--color-cyan-400);
}

/* ==========================================================================
   English Action Button / Prompt Section
   (Di Bawah Tombol dengan Tulisan Bahasa Inggris)
   ========================================================================== */
.cta-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.selection-indicator-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  padding: 2px 8px;
  transition: var(--transition-fast);
}

.selection-indicator-text.has-selection {
  color: var(--color-gold-400);
}

/* Primary English Action Button */
.btn-primary-english {
  position: relative;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, #133e87 0%, #1d4ed8 50%, #2563eb 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 
    0 10px 25px -3px rgba(29, 78, 216, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-english:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 14px 30px -3px rgba(37, 99, 235, 0.55),
    0 0 20px rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
}

.btn-primary-english:active {
  transform: scale(0.98);
}

/* Shimmer Sweep Animation */
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: sweepShimmer 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes sweepShimmer {
  0% { left: -100%; }
  35%, 100% { left: 160%; }
}

.btn-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.btn-primary-english:hover .btn-icon {
  transform: translateX(4px);
}

.btn-text {
  flex: 1;
  text-align: center;
  font-size: 14.5px;
  text-transform: uppercase;
}

.btn-pill-sub {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0;
  text-transform: none;
}

/* State when EAZY PASSPORT is selected */
.btn-primary-english.state-eazy {
  background: linear-gradient(135deg, #92400e 0%, #b45309 40%, #f59e0b 100%);
  box-shadow: 0 10px 30px -4px rgba(245, 158, 11, 0.5);
}

/* State when IMI-TOUCH is selected */
.btn-primary-english.state-touch {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 40%, #38bdf8 100%);
  box-shadow: 0 10px 30px -4px rgba(56, 189, 248, 0.5);
}

.english-instruction-hint {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Footer: Mascot Besurek Values
   ========================================================================== */
.app-footer {
  margin-top: auto;
  padding-top: 6px;
}

.slogan-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.slogan-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--color-gold-400);
}

.slogan-items {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.slogan-items strong {
  color: var(--color-gold-400);
}

.s-dot {
  color: rgba(255, 255, 255, 0.2);
  font-size: 8px;
}

/* ==========================================================================
   Interactive Detail Modal / Bottom Sheet
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-sheet {
  width: 100%;
  max-width: var(--phone-width);
  background: linear-gradient(180deg, #0f1d33 0%, #08101d 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px 28px 0 0;
  padding: 16px 20px 28px;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.75);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-drag-handle {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  margin: 0 auto 16px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-pure);
}

.modal-header {
  margin-bottom: 16px;
}

.modal-service-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.modal-service-badge.eazy {
  background: rgba(245, 158, 11, 0.18);
  color: var(--color-gold-400);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.modal-service-badge.touch {
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-cyan-400);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Modal Injected Body */
.modal-content-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.modal-info-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.modal-info-box h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold-400);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-primary);
}

.modal-req-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-req-list li i {
  color: #10b981;
  font-size: 11px;
}

.modal-footer-actions {
  display: flex;
  gap: 10px;
}

.btn-modal-primary {
  flex: 2;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--color-gold-500), var(--color-gold-600));
  color: #000;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: var(--transition-fast);
}

.btn-modal-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-modal-secondary {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-modal-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-pure);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  background: rgba(15, 30, 55, 0.95);
  border: 1px solid var(--color-gold-400);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.35);
  backdrop-filter: blur(12px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification i {
  color: #10b981;
  font-size: 15px;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 380px) {
  .services-container.side-by-side {
    gap: 8px;
  }
  .service-card {
    padding: 12px 10px;
    min-height: 195px;
  }
  .service-icon-box {
    width: 52px;
    height: 52px;
  }
  .indo-emblem-icon {
    font-size: 28px;
  }
  .icon-touch i {
    font-size: 23px;
  }
  .service-info-compact .service-name {
    font-size: 16px;
  }
  .service-target-tag {
    font-size: 11px;
    padding: 4px 8px;
  }
  .card-action-bar {
    font-size: 10px;
  }
}

/* ==========================================================================
   Quick Track Card inside Mobile View (User Request #8)
   ========================================================================== */
.quick-track-card {
  margin: 18px 0 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease;
}

.quick-track-card:hover {
  border-color: rgba(37, 211, 102, 0.35);
}

.quick-track-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.track-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.track-title {
  margin: 0;
  font-family: var(--font-primary, 'Outfit', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
}

.track-subtitle {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.track-input-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-field-group {
  position: relative;
  width: 100%;
}

.track-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #25d366;
  font-size: 0.85rem;
}

.track-input-field {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px 11px 38px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.track-input-field:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

.btn-track-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-track-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-ticket-code-toggle {
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  text-decoration: underline;
}

.control-pill a,
a.control-pill {
  color: inherit;
  text-decoration: none;
}

