/* ============================================
   Shopee Indonesia - Pusat Bantuan
   Modern Mobile-First CSS
   ============================================ */

/* ============================================
   SPLASH / WELCOME SCREEN
   ============================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ee4d2d 0%, #d63a1e 40%, #c0301a 100%);
  overflow: hidden;
}

.splash__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash__circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.splash__circle--1 {
  width: 350px;
  height: 350px;
  top: -120px;
  left: -80px;
  animation: floatSlow 10s ease-in-out infinite;
}

.splash__circle--2 {
  width: 250px;
  height: 250px;
  bottom: -80px;
  right: -60px;
  animation: floatSlow 13s ease-in-out infinite reverse;
}

.splash__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
  z-index: 1;
}

/* Logo with Pulse Ring */
.splash__logo-wrapper {
  position: relative;
  margin-bottom: 28px;
  animation: splashLogoEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.splash__logo-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  animation: pulseRing 2s ease-out infinite;
}

.splash__logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 0 4px rgba(255, 255, 255, 0.2);
}

.splash__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Splash Text */
.splash__title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  animation: splashTextEnter 0.6s ease-out 0.3s both;
}

.splash__subtitle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
  animation: splashTextEnter 0.6s ease-out 0.45s both;
}

/* Loading Bar */
.splash__loader {
  width: 180px;
  animation: splashTextEnter 0.6s ease-out 0.6s both;
}

.splash__loader-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.splash__loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #ffd6cc);
  border-radius: 4px;
  animation: loadProgress 2.6s ease-in-out 0.4s forwards;
}

.splash__loader-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}

/* Splash Exit */
.splash--exit {
  animation: splashExit 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Splash Keyframes */
@keyframes splashLogoEnter {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes splashTextEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes loadProgress {
  0%   { width: 0%; }
  20%  { width: 25%; }
  50%  { width: 55%; }
  80%  { width: 85%; }
  100% { width: 100%; }
}

@keyframes splashExit {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.08); }
}

/* ============================================
   APP WRAPPER
   ============================================ */
.app {
  opacity: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  pointer-events: none;
}

.app--visible {
  opacity: 1;
  pointer-events: auto;
  animation: appReveal 0.6s ease-out both;
}

@keyframes appReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Palette — Shopee Orange */
  --primary-50: #fff3ed;
  --primary-100: #ffe0cc;
  --primary-400: #f56b2d;
  --primary-500: #ee4d2d;
  --primary-600: #d94425;
  --primary-700: #c0391e;
  --primary-800: #a83018;
  --primary-900: #7a2210;

  /* Accent — Button Gold */
  --accent-400: #ffb800;
  --accent-500: #f5a623;
  --accent-600: #e8971e;
  --gold-border: #ffd94a;

  /* Pink */
  --pink-500: #e84393;
  --pink-600: #d63384;

  /* Neutrals */
  --white: #ffffff;
  --white-10: rgba(255, 255, 255, 0.10);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-50: rgba(255, 255, 255, 0.50);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-85: rgba(255, 255, 255, 0.85);
  --white-90: rgba(255, 255, 255, 0.90);
  --black-05: rgba(0, 0, 0, 0.05);
  --black-08: rgba(0, 0, 0, 0.08);
  --black-10: rgba(0, 0, 0, 0.10);
  --black-15: rgba(0, 0, 0, 0.15);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-lg: 1.0625rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.625rem;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-btn: 0 4px 20px rgba(245, 166, 35, 0.35);
  --shadow-btn-hover: 0 8px 30px rgba(245, 166, 35, 0.50);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(160deg, var(--primary-500) 0%, var(--primary-700) 50%, var(--primary-800) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Background Decorations ---------- */
.bg-decoration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--white-10);
  filter: blur(1px);
}

.bg-circle--1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -100px;
  animation: floatSlow 12s ease-in-out infinite;
}

.bg-circle--2 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  left: -60px;
  background: var(--white-10);
  animation: floatSlow 15s ease-in-out infinite reverse;
}

.bg-circle--3 {
  width: 120px;
  height: 120px;
  top: 45%;
  right: -30px;
  background: var(--white-10);
  animation: floatSlow 10s ease-in-out infinite 3s;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 32px;
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-md);
  animation: fadeInDown 0.7s var(--ease-out) both;
}

/* Logo Ring */
.logo-wrapper {
  margin-bottom: var(--space-lg);
}

.logo-ring {
  width: 208px;
  height: 208px;
  border-radius: 44px;
  padding: 8px;
  background: linear-gradient(135deg, var(--white-50), var(--white-20));
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px var(--white-20);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-spring);
}

.logo-ring:hover {
  transform: scale(1.05);
}

.logo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
}

/* Title */
.title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.subtitle {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--white-85);
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}

/* ---------- Mail Badge ---------- */
.mail-badge {
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.7s var(--ease-out) 0.15s both;
}

.mail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(232, 67, 147, 0.4);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  cursor: pointer;
}

.mail-icon:hover {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 8px 28px rgba(232, 67, 147, 0.55);
}

.mail-icon svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}

/* ---------- Action Buttons ---------- */
.actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-2xl);
}

.action-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 5px;
  padding-right: 16px;
  border: 2.5px solid var(--gold-border);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 60%, var(--orange-600) 100%);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow: var(--shadow-btn);
  position: relative;
  overflow: hidden;
}

/* Shimmer Effect */
.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}

.action-btn:hover::before {
  left: 100%;
}

/* Stagger Entrance */
.action-btn:nth-child(1) {
  animation: slideInUp 0.5s var(--ease-out) 0.25s both;
}

.action-btn:nth-child(2) {
  animation: slideInUp 0.5s var(--ease-out) 0.38s both;
}

.action-btn:nth-child(3) {
  animation: slideInUp 0.5s var(--ease-out) 0.51s both;
}

.action-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-btn-hover);
  border-color: #ffe87a;
}

.action-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 10px rgba(245, 166, 35, 0.3);
}

/* Button Icon */
.btn-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-spring);
  overflow: hidden;
}

.action-btn:hover .btn-icon {
  transform: rotate(-8deg) scale(1.08);
}

.btn-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
}

/* Button Text */
.btn-text {
  flex: 1;
  text-align: center;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Button Arrow */
.btn-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-arrow svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.action-btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  width: 100%;
  animation: fadeInUp 0.6s var(--ease-out) 0.7s both;
  margin-top: auto;
}

.footer-card {
  background: var(--white-15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--white-20);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: var(--space-lg);
}

.footer-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--white-85);
  margin-bottom: 10px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--white-10);
  border: 1px solid var(--white-15);
  transition: background 0.3s ease, transform 0.3s var(--ease-spring);
}

.footer-email:hover {
  background: var(--white-20);
  transform: translateY(-1px);
}

.footer-email svg {
  width: 16px;
  height: 16px;
  color: var(--white);
  flex-shrink: 0;
}

/* Footer Dots */
.footer-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.footer-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white-50);
}

.footer-dots span:nth-child(2) {
  opacity: 0.7;
}

.footer-dots span:nth-child(3) {
  opacity: 0.4;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(15px, -20px) scale(1.03);
  }
  66% {
    transform: translate(-10px, 10px) scale(0.97);
  }
}

/* ============================================
   Responsive — Mobile First
   ============================================ */

/* Small phones (< 360px) */
@media (max-width: 359px) {
  .container {
    padding: 36px 16px 24px;
  }

  .logo-ring {
    width: 88px;
    height: 88px;
  }

  .title {
    font-size: var(--fs-xl);
  }

  .subtitle {
    font-size: var(--fs-xs);
  }

  .btn-text {
    font-size: var(--fs-sm);
  }

  .btn-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .btn-icon img {
    width: 26px;
    height: 26px;
  }

  .footer-email {
    font-size: var(--fs-xs);
  }
}

/* Standard phones (360px - 480px) — base styles apply */

/* Large phones / Small tablets (481px - 768px) */
@media (min-width: 481px) {
  .container {
    padding: 56px 28px 36px;
  }

  .logo-ring {
    width: 116px;
    height: 116px;
  }

  .title {
    font-size: 1.75rem;
  }

  .actions {
    gap: 14px;
  }

  .action-btn {
    padding: 6px;
    padding-right: 18px;
  }

  .btn-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }

  .btn-icon img {
    width: 36px;
    height: 36px;
  }

  .btn-text {
    font-size: var(--fs-lg);
  }
}

/* Desktop — card layout centered */
@media (min-width: 769px) {
  body {
    align-items: center;
    background: linear-gradient(135deg, #1a0a05 0%, #2e1510 50%, #3e1a10 100%);
  }

  .app {
    align-items: center;
  }

  .container {
    min-height: auto;
    border-radius: var(--radius-lg);
    box-shadow:
      0 24px 80px rgba(0, 0, 0, 0.25),
      0 0 0 1px var(--white-10);
    margin: 40px 0;
    padding: 52px 32px 40px;
    background: linear-gradient(160deg, var(--primary-500) 0%, var(--primary-700) 50%, var(--primary-800) 100%);
  }

  /* Resize floating bg circles on desktop */
  .bg-circle--1 { width: 200px; height: 200px; top: -60px; right: -60px; }
  .bg-circle--2 { width: 140px; height: 140px; bottom: 10%; left: -40px; }
  .bg-circle--3 { width: 80px; height: 80px; }
}

