/* ============================================================================
   MEANOK PAY v2.1 — Ultra-Modern Fintech Design System & Animations
   Palette: Deep Navy (#081B38), Sky Blue (#0EA5E9), Cyan (#06B6D4 / #22D3EE),
            Emerald (#16A34A), Crisp White (#FFFFFF), Soft Neutral (#F4F7FB)
   ============================================================================ */
:root {
  --mp-navy: #081b38;
  --mp-navy-mid: #0f2c59;
  --mp-navy-dark: #041024;
  --mp-blue: #0ea5e9;
  --mp-blue-hover: #0284c7;
  --mp-cyan: #06b6d4;
  --mp-cyan-bright: #22d3ee;
  --mp-sky: #e0f2fe;
  --mp-bg: #f4f7fb;
  --mp-surface: #ffffff;
  --mp-border: #e2e8f0;
  --mp-text: #0f172a;
  --mp-muted: #64748b;
  --mp-success: #16a34a;
  --mp-success-bg: #dcfce7;
  --mp-warning: #d97706;
  --mp-warning-bg: #fef3c7;
  --mp-danger: #dc2626;
  --mp-danger-bg: #fee2e2;
  --mp-radius: 16px;
  --mp-shadow: 0 10px 30px rgba(8, 27, 56, 0.06);
  --mp-shadow-lg: 0 26px 65px rgba(8, 27, 56, 0.16);
  --mp-grad-primary: linear-gradient(95deg, #06b6d4 0%, #0ea5e9 45%, #0369a1 78%, #081b38 100%);
  --mp-grad-hero: linear-gradient(155deg, #04132e 0%, #0a295e 52%, #06447a 100%);
  --mp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--mp-font);
  color: var(--mp-text);
  background: var(--mp-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--mp-blue-hover); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--mp-navy); }

/* Advanced Lightweight Fintech Animations */
@keyframes mpFadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mpScaleIn {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes mpSpin {
  to { transform: rotate(360deg); }
}
@keyframes mpFloat {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-14px) translateX(8px); }
}
@keyframes mpPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(14, 165, 233, 0); }
}
@keyframes mpGreenBurst {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); transform: scale(0.9); }
  60% { box-shadow: 0 0 0 22px rgba(22, 163, 74, 0); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); transform: scale(1); }
}
@keyframes mpOtpPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12) translateY(-3px); }
  100% { transform: scale(1); }
}
@keyframes mpOtpSuccessWave {
  0% { transform: scale(1); }
  45% { transform: scale(1.13) translateY(-5px); }
  100% { transform: scale(1); }
}
@keyframes mpOtpShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
@keyframes mpCheckDraw {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: 0; }
}
@keyframes mpShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.mp-animate-in { animation: mpFadeSlideUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) both; }
.mp-stagger > * { animation: mpFadeSlideUp 0.42s cubic-bezier(0.16, 1, 0.3, 1) both; }
.mp-stagger > *:nth-child(1) { animation-delay: 0.03s; }
.mp-stagger > *:nth-child(2) { animation-delay: 0.08s; }
.mp-stagger > *:nth-child(3) { animation-delay: 0.13s; }
.mp-stagger > *:nth-child(4) { animation-delay: 0.18s; }
.mp-stagger > *:nth-child(5) { animation-delay: 0.23s; }

.mp-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: mpSpin 0.68s linear infinite;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* SweetAlert2 Custom Fintech Styling */
.mp-swal-popup {
  border-radius: 20px !important;
  font-family: var(--mp-font) !important;
  box-shadow: 0 28px 70px rgba(8, 27, 56, 0.24) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}
.mp-swal-toast {
  border-radius: 14px !important;
  font-family: var(--mp-font) !important;
  box-shadow: 0 18px 42px rgba(8, 27, 56, 0.18) !important;
  border: 1px solid rgba(14, 165, 233, 0.22) !important;
}

/* Interactive Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.58; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, #0f2c59, #081b38);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 27, 56, 0.2);
}
.btn-primary:hover { color: #fff; filter: brightness(1.1); box-shadow: 0 8px 22px rgba(8, 27, 56, 0.28); }

.btn-gradient {
  background: var(--mp-grad-primary);
  background-size: 160% 100%;
  color: #fff;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.3);
}
.btn-gradient:hover {
  color: #fff;
  background-position: 100% 0;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.26);
}
.btn-accent:hover { color: #fff; filter: brightness(1.06); }

.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.24); }
.btn-success:hover { color: #fff; filter: brightness(1.05); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.24); }
.btn-danger:hover { color: #fff; filter: brightness(1.05); }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.btn-warning:hover { color: #fff; filter: brightness(1.05); }

.btn-outline {
  background: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}
.btn-outline:hover { background: #f8fafc; border-color: #94a3b8; color: #081b38; }

.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }

/* Modern Pill Toggle Switch */
.mp-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.mp-switch input { display: none; }
.mp-switch-track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.mp-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(8, 27, 56, 0.25);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mp-switch input:checked + .mp-switch-track {
  background: linear-gradient(95deg, #06b6d4, #0284c7);
}
.mp-switch input:checked + .mp-switch-track::after {
  transform: translateX(20px);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-neutral { background: #e2e8f0; color: #334155; }

/* Alerts */
.alert {
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 18px;
  border: 1px solid transparent;
  animation: mpFadeSlideUp 0.25s ease;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #86efac; }
.alert-error, .alert-danger { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.alert-info { background: #f0f9ff; color: #075985; border-color: #7dd3fc; }

/* Form Controls */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: #334155; letter-spacing: 0.1px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 11px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: var(--mp-text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--mp-blue);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.form-help { display: block; font-size: 12px; color: var(--mp-muted); margin-top: 5px; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.text-muted { color: var(--mp-muted); }
.text-sm { font-size: 13.5px; }
.text-xs { font-size: 12px; }
