/* ==========================================================================
   PHOTO.POLISH — Clean Mobile-First Sky Blue Studio Design
   ========================================================================== */

:root {
  /* Balanced Soft Mist Sky Surfaces (Soothing & Non-Glaring) */
  --bg-base: #bed3e8;
  --bg-elevated: rgba(228, 239, 249, 0.74);
  --bg-input: rgba(213, 229, 245, 0.68);
  --bg-input-hover: rgba(224, 237, 249, 0.84);

  /* Sky Blue Primary Palette (Xanh da trời PhotoPolish dịu mắt) */
  --sky-100: #d8ecf9;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --indigo-500: #4f46e5;
  --sky-glow: rgba(14, 165, 233, 0.2);
  --sky-soft: rgba(14, 165, 233, 0.12);
  --sky-border: rgba(14, 165, 233, 0.3);

  /* Text */
  --text-primary: #132238;
  --text-secondary: #3f5570;
  --text-label: #415a77;
  --text-muted: #5a718a;
  --text-placeholder: #7b93ab;

  /* Semantic */
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.12);
  --rec-red: #ef4444;
  --border-input: rgba(14, 165, 233, 0.24);

  /* Typography */
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", ui-monospace, monospace;

  /* Radii */
  --radius-card: 28px;
  --radius-input: 16px;
  --radius-pill: 9999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(920px 540px at 14% 0%, rgba(125, 211, 252, 0.3) 0%, transparent 65%),
    radial-gradient(760px 460px at 90% 18%, rgba(129, 140, 248, 0.16) 0%, transparent 65%),
    linear-gradient(165deg, #c9dcef 0%, #bad0e6 48%, #c5d9ec 100%);
  background-color: var(--bg-base);
  color: var(--text-primary);
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 679px) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   Monospace Studio Labels
   ========================================================================== */

.studio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-label);
  line-height: 1.4;
  transition: color 0.25s ease;
}

.field-group:focus-within .studio-label {
  color: var(--sky-600);
}

.req-star {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.85em;
}

/* ==========================================================================
   Ambient Background, Grid & Particles
   ========================================================================== */

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: -44px;
  background-image:
    linear-gradient(to right, rgba(14, 165, 233, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 165, 233, 0.065) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 28%, #000 32%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 28%, #000 32%, transparent 100%);
  animation: gridDrift 28s linear infinite;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.8;
  will-change: transform;
}

.bg-glow--top {
  width: 680px;
  height: 400px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, rgba(125, 211, 252, 0.14) 55%, transparent 76%);
  animation: floatTop 14s ease-in-out infinite alternate;
}

.bg-glow--left {
  width: 420px;
  height: 420px;
  top: 24%;
  left: -170px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24) 0%, transparent 70%);
  animation: floatSide 18s ease-in-out infinite alternate;
}

.bg-glow--right {
  width: 440px;
  height: 440px;
  bottom: 4%;
  right: -180px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(56, 189, 248, 0.14) 45%, transparent 72%);
  animation: floatSide 20s ease-in-out infinite alternate-reverse;
}

.cursor-spotlight {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(14, 165, 233, 0.04) 42%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: left, top;
}

.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

/* ==========================================================================
   Floating Pill Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: max(10px, env(safe-area-inset-top, 10px));
  z-index: 40;
  width: 100%;
  padding: 0 12px;
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.nav-pill {
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 11px;
  border-radius: var(--radius-pill);
  background: rgba(228, 240, 250, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 10px 28px rgba(15, 45, 82, 0.1),
    0 0 0 1px rgba(14, 165, 233, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow:
    0 4px 14px rgba(14, 165, 233, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand:hover .brand-avatar {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.32);
}

.brand-name {
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.brand-dot {
  color: var(--sky-500);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-nav-apply {
  display: none;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  transition: all 0.25s ease;
}

.btn-nav-apply:hover {
  color: var(--sky-600);
  border-color: var(--sky-400);
  background: rgba(56, 189, 248, 0.16);
}

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--sky-700);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-nav-login[hidden] {
  display: none !important;
}

.btn-nav-login:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 52%, #2563eb 100%);
  border-color: transparent;
}

.btn-hotline {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 52%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow:
    0 6px 18px rgba(14, 165, 233, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease;
}

.btn-hotline::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.48) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: btnSheen 4.5s ease-in-out infinite;
}

.btn-hotline:active {
  transform: scale(0.96);
}

.icon-phone {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  animation: phoneRing 4s ease-in-out infinite;
}

/* ==========================================================================
   Main Container & Hero
   ========================================================================== */

.page-main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 844px;
  margin: 0 auto;
  padding: 26px 12px 24px;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: rgba(226, 238, 250, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--text-secondary);
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(15, 45, 82, 0.08);
}

.rec-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec-red);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.55);
}

.rec-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 68, 68, 0.65);
  animation: recPulse 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.rec-sep {
  color: var(--sky-500);
  opacity: 0.75;
}

.rec-timer {
  color: var(--sky-600);
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2.35rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.hero-line {
  display: block;
  color: var(--text-primary);
}

.hero-accent {
  display: inline-block;
  background: linear-gradient(
    90deg,
    #0284c7 0%,
    #0ea5e9 30%,
    #38bdf8 50%,
    #4f46e5 75%,
    #0284c7 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 20px rgba(14, 165, 233, 0.22));
  animation: gradientShift 5.5s linear infinite;
}

.hero-subtitle {
  max-width: 480px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Minimal Studio Highlights */
.perks-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.perk-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(226, 238, 250, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px rgba(15, 45, 82, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.28s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.perk-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 12px 26px rgba(14, 116, 204, 0.12);
}

.perk-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--sky-600);
  margin-bottom: 3px;
}

.perk-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Form Card & Live Progress Bar
   ========================================================================== */

.form-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius-card);
  padding: 22px 18px 24px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    0 22px 56px rgba(15, 45, 82, 0.11),
    0 0 0 1px rgba(14, 165, 233, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.form-section[hidden] {
  display: none;
}

.form-section.is-entering {
  animation: revealUp 0.6s var(--ease-out-expo) forwards;
}

.card-glow-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
    rgba(56, 189, 248, 0.12),
    transparent 60%
  );
}

.form-card:hover .card-glow-border {
  opacity: 1;
}

.card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.draft-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--sky-700);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.34);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.verified-badge svg {
  width: 12px;
  height: 12px;
}

.header-right-tools {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-change-phone {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sky-700);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.26);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.btn-change-phone:hover {
  background: rgba(14, 165, 233, 0.22);
}

.window-dots {
  display: none;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot--red {
  background: #fb7185;
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.45);
}

.dot--amber {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
}

.dot--sky {
  background: var(--sky-400);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.65);
}

/* Progress Bar */
.progress-wrap {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.progress-percent {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sky-600);
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.14);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky-400), var(--sky-500), #4f46e5);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.35);
  transition: width 0.4s var(--ease-out-expo);
}

.card-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 18px -18px 22px;
  background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.22) 50%, transparent 100%);
}

/* Unverified SĐT Status Button on Main Form Header */
.unverified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sky-700);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  transition: all 0.22s ease;
}

.unverified-pill:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: var(--sky-500);
}

.unverified-pill[hidden],
.verified-badge[hidden],
.btn-change-phone[hidden] {
  display: none;
}

.unverified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-400);
  box-shadow: 0 0 8px var(--sky-400);
  animation: skyPulse 1.8s ease-in-out infinite;
}

/* ==========================================================================
   Auto-Open Verify Phone Popup (Beautiful Animated Glass Modal)
   ========================================================================== */

.modal-backdrop--verify {
  background: rgba(18, 43, 74, 0.34);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.modal-card.modal-card--verify {
  max-width: 440px;
  padding: 28px 22px 26px;
  text-align: left;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(125% 85% at 50% 0%, rgba(232, 243, 252, 0.86) 0%, rgba(202, 224, 245, 0.76) 58%, rgba(189, 216, 241, 0.82) 100%);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 26px 64px rgba(15, 45, 82, 0.24),
    0 0 0 1px rgba(56, 189, 248, 0.24),
    inset 0 1.5px 10px rgba(255, 255, 255, 0.45);
  animation: verifyPop 0.52s var(--ease-spring);
}

.modal-card.modal-card--verify.shake {
  animation: fieldShake 0.36s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.modal-card--verify::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), rgba(79, 70, 229, 0.7), rgba(56, 189, 248, 0.85), transparent);
  opacity: 0.75;
}

.verify-header {
  text-align: center;
  margin-bottom: 20px;
}

.verify-studio-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: rgba(232, 243, 252, 0.72);
  border: 1px solid rgba(14, 165, 233, 0.28);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sky-700);
  box-shadow: 0 4px 12px rgba(15, 45, 82, 0.08);
}

.verify-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: skyPulse 2.2s ease-in-out infinite;
}

.verify-shield-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}

.shield-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(14, 165, 233, 0.34);
  animation: shieldPulse 2.6s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}

.shield-ring--2 {
  animation-delay: 1.25s;
}

.verify-avatar {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #f1f7fd 0%, #d4e8fa 100%);
  border: 2px solid rgba(14, 165, 233, 0.48);
  box-shadow:
    0 10px 24px rgba(15, 45, 82, 0.18),
    0 0 0 5px rgba(226, 239, 250, 0.45);
  transition: all 0.4s var(--ease-out-expo);
}

.verify-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #ffffff;
}

.verify-avatar-pip {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.verify-avatar-pip svg {
  width: 11px;
  height: 11px;
}

.verify-avatar.is-green {
  border-color: rgba(34, 197, 94, 0.65);
  box-shadow:
    0 12px 30px rgba(34, 197, 94, 0.25),
    0 0 0 5px rgba(220, 252, 231, 0.72);
}

.verify-avatar.is-green .verify-avatar-pip {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.4);
}

.auth-steps-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.22);
  transition: all 0.3s ease;
}

.step-dot.is-active {
  background: var(--sky-500);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.55);
}

.step-dot.is-green {
  background: #16a34a;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.55);
}

.step-line {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: rgba(14, 165, 233, 0.2);
  transition: background-color 0.3s ease;
}

.step-line.is-active {
  background: linear-gradient(90deg, var(--sky-500), #22c55e);
}

.verify-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.verify-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.verify-subtitle strong {
  color: var(--sky-600);
  font-weight: 700;
}

.verify-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(225, 243, 234, 0.72);
  border: 1px solid rgba(22, 163, 74, 0.28);
  font-size: 0.72rem;
  font-weight: 600;
  color: #15803d;
  box-shadow: 0 3px 10px rgba(15, 45, 82, 0.05);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.benefit-pill svg {
  width: 12px;
  height: 12px;
  color: #16a34a;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form--otp {
  animation: fadeDown 0.36s var(--ease-out-expo);
}

.phone-flex-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 15px 6px 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(226, 239, 250, 0.78) 0%, rgba(202, 225, 246, 0.62) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(14, 165, 233, 0.3);
  box-shadow:
    0 6px 16px rgba(15, 45, 82, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.22s var(--ease-out-expo);
}

.phone-flex-box:hover {
  background: linear-gradient(135deg, rgba(232, 242, 251, 0.88) 0%, rgba(212, 232, 249, 0.74) 100%);
  border-color: rgba(14, 165, 233, 0.48);
}

.phone-flex-box:focus-within {
  background: rgba(235, 244, 252, 0.92);
  border-color: var(--sky-600);
  box-shadow:
    0 0 0 4px rgba(14, 165, 233, 0.16),
    0 8px 22px rgba(14, 116, 204, 0.12);
}

.field-group.is-invalid .phone-flex-box {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.phone-prefix-slot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.22);
  flex-shrink: 0;
  user-select: none;
}

.vn-flag {
  width: 18px;
  height: 12px;
  border-radius: 2.5px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.phone-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sky-700);
  letter-spacing: 0.02em;
}

.phone-flex-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 0;
}

.phone-flex-input::placeholder {
  color: #849bb3;
  font-weight: 400;
}

.confirmed-phone-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(226, 239, 250, 0.72);
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.confirmed-phone-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-edit-phone {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sky-700);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(14, 165, 233, 0.12);
  transition: background-color 0.2s ease, transform 0.2s var(--ease-spring);
}

.btn-edit-phone:hover {
  background: rgba(14, 165, 233, 0.22);
}

/* Visual SMS -> WhatsApp Icon Bridge */
.label-row--otp {
  align-items: center;
}

.channel-visual {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(226, 239, 250, 0.76);
  border: 1px solid rgba(22, 163, 74, 0.32);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.08);
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.channel-badge--sms {
  color: var(--sky-600);
}

.channel-badge--sms svg {
  width: 15px;
  height: 15px;
}

.sms-micro {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sky-600);
}

.channel-flow {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.channel-flow svg {
  width: 12px;
  height: 12px;
  color: #16a34a;
}

.flow-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.5;
}

.channel-visual.is-active .flow-dot:nth-child(1) {
  animation: flowDot 1.1s ease-in-out infinite;
}

.channel-visual.is-active .flow-dot:nth-child(2) {
  animation: flowDot 1.1s 0.22s ease-in-out infinite;
}

.channel-badge--wa {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.44);
  color: #16a34a;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.18);
}

.channel-badge--wa svg {
  width: 13px;
  height: 13px;
}

/* GREEN 3 - 3 Split OTP Boxes */
.otp-split-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 2vw, 12px);
  width: 100%;
}

.otp-triplet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(5px, 1.6vw, 8px);
  flex: 1;
}

.otp-box--green {
  width: 100%;
  height: 54px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.36rem;
  font-weight: 700;
  color: #065f46;
  background: rgba(217, 242, 228, 0.82);
  border: 1.5px solid rgba(22, 163, 74, 0.42);
  border-radius: 16px;
  outline: none;
  caret-color: #16a34a;
  box-shadow:
    0 4px 12px rgba(22, 163, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s var(--ease-spring);
}

.otp-box--green:hover {
  border-color: rgba(22, 163, 74, 0.68);
  background: rgba(224, 247, 234, 0.9);
}

.otp-box--green:focus {
  background: rgba(235, 250, 241, 0.96);
  border-color: #16a34a;
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.2),
    0 8px 18px rgba(22, 163, 74, 0.14);
  transform: translateY(-2px);
}

.otp-box--green.is-filled {
  background: rgba(214, 244, 226, 0.92);
  border-color: #16a34a;
  color: #064e3b;
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.14);
  animation: otpPop 0.22s var(--ease-spring);
}

.field-group.is-invalid .otp-box--green {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.otp-dash--green {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #16a34a;
  opacity: 0.78;
  user-select: none;
  flex-shrink: 0;
}

.resend-row {
  display: flex;
  justify-content: center;
}

.btn-resend-otp {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sky-700);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.btn-resend-otp:disabled {
  color: var(--text-muted);
  cursor: default;
}

.btn-submit--green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  color: #ffffff;
  box-shadow:
    0 10px 28px rgba(22, 163, 74, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-submit--green:hover {
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.38);
}

.btn-submit--full {
  width: 100% !important;
}

/* ==========================================================================
   Form Grid & Inputs
   ========================================================================== */

.app-form {
  position: relative;
  z-index: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chip-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.chip-count.has-selection {
  color: var(--sky-300);
}

.input-wrap {
  position: relative;
}

.field-input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border-radius: var(--radius-input);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  font-size: 0.96rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.field-input::placeholder {
  color: var(--text-placeholder);
}

.field-input:hover {
  background: var(--bg-input-hover);
  border-color: rgba(148, 163, 184, 0.3);
}

.field-input:focus {
  background: rgba(234, 243, 252, 0.94);
  border-color: var(--sky-600);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

/* Date Input */
.input-wrap--date {
  position: relative;
}

.field-input--date {
  padding-right: 46px;
  color-scheme: light;
  appearance: none;
  -webkit-appearance: none;
}

.field-input--date::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.date-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
  transition: color 0.25s ease;
}

.field-group:focus-within .date-icon {
  color: var(--sky-400);
}

/* Inline Paste Button (Flexbox layout to prevent overlap) */
.input-wrap--action {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 5px 7px 5px 15px;
  border-radius: var(--radius-input);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.input-wrap--action:hover {
  background: var(--bg-input-hover);
  border-color: rgba(148, 163, 184, 0.3);
}

.input-wrap--action:focus-within {
  background: rgba(234, 243, 252, 0.94);
  border-color: var(--sky-600);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.field-group.is-invalid .input-wrap--action {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.field-input--with-btn {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 4px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.field-input--with-btn:hover,
.field-input--with-btn:focus {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn-inline-paste {
  position: static;
  flex-shrink: 0;
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: var(--sky-700);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-inline-paste:hover,
.btn-inline-paste:active {
  background: rgba(14, 165, 233, 0.22);
}

/* Signature Instagram Gradient Border */
.field-group:focus-within .studio-label--ig {
  color: #c026d3;
}

.input-wrap--instagram {
  border: 1.7px solid transparent;
  background:
    linear-gradient(rgba(225, 238, 250, 0.9), rgba(225, 238, 250, 0.9)) padding-box,
    linear-gradient(135deg, #f58529 0%, #feda77 20%, #dd2a7b 54%, #8134af 82%, #515bd4 100%) border-box;
  box-shadow: 0 6px 18px rgba(221, 42, 123, 0.12);
}

.input-wrap--instagram:hover {
  background:
    linear-gradient(rgba(232, 242, 251, 0.96), rgba(232, 242, 251, 0.96)) padding-box,
    linear-gradient(135deg, #f58529 0%, #feda77 20%, #dd2a7b 54%, #8134af 82%, #515bd4 100%) border-box;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(221, 42, 123, 0.18);
}

.input-wrap--instagram:focus-within {
  background:
    linear-gradient(rgba(238, 246, 253, 0.98), rgba(238, 246, 253, 0.98)) padding-box,
    linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 82%, #515bd4 100%) border-box;
  border-color: transparent;
  box-shadow:
    0 0 0 4px rgba(221, 42, 123, 0.14),
    0 10px 24px rgba(129, 52, 175, 0.14);
}

.field-group.is-invalid .input-wrap--instagram {
  background:
    linear-gradient(rgba(232, 242, 251, 0.95), rgba(232, 242, 251, 0.95)) padding-box,
    linear-gradient(var(--danger), var(--danger)) border-box;
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.btn-inline-paste--ig {
  background: rgba(221, 42, 123, 0.1);
  border-color: rgba(221, 42, 123, 0.28);
  color: #be185d;
}

.btn-inline-paste--ig:hover,
.btn-inline-paste--ig:active {
  background: rgba(221, 42, 123, 0.18);
}

.field-textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.55;
}

/* Error State */
.field-group.is-invalid .field-input,
.field-group.is-invalid .workmode-box {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.field-group.is-invalid .studio-label {
  color: var(--danger);
}

.field-group.shake {
  animation: fieldShake 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--danger);
  padding-left: 2px;
}

.field-group.is-invalid .field-error {
  display: block;
  animation: fadeDown 0.22s ease;
}

/* ==========================================================================
   Work Mode Cards (Full-time / Part-time)
   ========================================================================== */

.workmode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workmode-card {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.workmode-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.workmode-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 13px 15px;
  border-radius: var(--radius-input);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  transition:
    transform 0.22s var(--ease-spring),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.workmode-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.workmode-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.8px solid rgba(148, 163, 184, 0.4);
  flex-shrink: 0;
  position: relative;
  transition: all 0.25s var(--ease-spring);
}

.workmode-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--sky-400);
  transform: scale(0);
  transition: transform 0.25s var(--ease-spring);
}

.workmode-card:hover .workmode-box {
  background: var(--bg-input-hover);
  border-color: rgba(14, 165, 233, 0.44);
}

.workmode-card:active .workmode-box {
  transform: scale(0.97);
}

.workmode-card input:checked + .workmode-box {
  background: rgba(186, 224, 252, 0.72);
  border-color: var(--sky-600);
  box-shadow: 0 8px 20px rgba(14, 116, 204, 0.14);
}

.workmode-card input:checked + .workmode-box .workmode-title {
  color: var(--sky-700);
}

.workmode-card input:checked + .workmode-box .workmode-radio {
  border-color: var(--sky-500);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.35);
}

.workmode-card input:checked + .workmode-box .workmode-radio::after {
  transform: scale(1);
}

/* ==========================================================================
   Selection Chips
   ========================================================================== */

.chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-option {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.chip-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.25s var(--ease-spring);
}

.chip-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 15px;
  opacity: 0;
  overflow: hidden;
  transform: scale(0.4);
  transition:
    width 0.25s var(--ease-out-expo),
    margin-right 0.25s var(--ease-out-expo),
    opacity 0.2s ease,
    transform 0.25s var(--ease-spring);
}

.chip-check svg {
  width: 14px;
  height: 14px;
}

.chip-option:hover .chip-pill {
  background: var(--bg-input-hover);
  border-color: rgba(14, 165, 233, 0.45);
  color: var(--text-primary);
}

.chip-option:active .chip-pill {
  transform: scale(0.95);
}

.chip-option input:checked + .chip-pill {
  background: rgba(186, 224, 252, 0.78);
  border-color: var(--sky-600);
  color: var(--sky-700);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(14, 116, 204, 0.14);
}

.chip-option input:checked + .chip-pill .chip-check {
  width: 15px;
  margin-right: 7px;
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   Form Footer, Submit CTA & Mobile Sticky Dock
   ========================================================================== */

.form-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(14, 165, 233, 0.16);
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-reset-draft {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(215, 231, 247, 0.72);
  border: 1px solid rgba(14, 165, 233, 0.24);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.btn-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 54px;
  padding: 13px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 30px rgba(14, 165, 233, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.48);
}

.btn-submit:hover::before {
  left: 145%;
}

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

.btn-submit-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.28s var(--ease-spring);
}

.btn-submit:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  opacity: 0;
  pointer-events: none;
  animation: spin 0.75s linear infinite;
}

.btn-submit.is-loading {
  pointer-events: none;
  opacity: 0.92;
}

.btn-submit.is-loading .btn-submit-content {
  opacity: 0;
}

.btn-submit.is-loading .btn-spinner {
  opacity: 1;
}

/* Mobile Sticky Bottom Action Bar */
.mobile-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom, 10px));
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 16px;
  border-radius: 22px;
  background: rgba(224, 237, 249, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  box-shadow:
    0 16px 36px rgba(15, 45, 82, 0.16),
    0 0 0 1px rgba(14, 165, 233, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition: transform 0.3s var(--ease-out-expo), opacity 0.25s ease;
}

.mobile-dock.is-hidden {
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
}

.mobile-dock-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mobile-dock-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.mobile-dock-count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sky-600);
}

.mobile-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 15px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9, #2563eb);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.mobile-dock-btn svg {
  width: 16px;
  height: 16px;
}

.mobile-dock-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Toast, Footer & Modals
   ========================================================================== */

.toast-pill {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(229, 240, 251, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(14, 165, 233, 0.36);
  color: var(--sky-700);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(15, 45, 82, 0.16);
  animation: fadeDown 0.25s ease;
}

.toast-pill[hidden] {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 8px 16px 28px;
  font-size: 0.79rem;
  color: var(--text-muted);
}

.footer-brand {
  color: var(--text-primary);
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 16px;
  display: grid;
  place-items: center;
  background: rgba(18, 43, 74, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 0.24s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 22px 24px;
  border-radius: 30px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232, 243, 252, 0.88) 0%, rgba(206, 227, 247, 0.82) 100%);
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  border: 1.5px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    0 26px 64px rgba(15, 45, 82, 0.22),
    0 0 0 1px rgba(14, 165, 233, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  text-align: center;
  animation: modalPop 0.38s var(--ease-spring);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
  transition: all 0.22s var(--ease-spring);
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.modal-close:hover {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.34);
  color: var(--sky-700);
  transform: scale(1.06);
}

.modal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.modal-icon--sky {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: var(--sky-600);
}

.modal-icon svg {
  width: 25px;
  height: 25px;
}

.ticket-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sky-700);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.modal-desc strong {
  color: var(--sky-600);
}

.hotline-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(217, 233, 248, 0.78);
  border: 1px solid rgba(14, 165, 233, 0.26);
  margin-bottom: 18px;
  text-align: left;
}

.hotline-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--sky-600);
  margin-bottom: 2px;
}

.hotline-number {
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-copy {
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: var(--sky-700);
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-modal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 52%, #2563eb 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
}

.btn-modal-primary svg {
  width: 17px;
  height: 17px;
}

.btn-modal-secondary {
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 15px;
  background: rgba(213, 229, 245, 0.8);
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-modal-full {
  width: 100%;
}

.success-check-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
}

.success-check-svg {
  width: 60px;
  height: 60px;
}

.success-circle {
  stroke: var(--sky-500);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: drawStroke 0.65s var(--ease-out-expo) forwards;
}

.success-tick {
  stroke: var(--sky-600);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: drawStroke 0.4s 0.35s var(--ease-out-expo) forwards;
}

.summary-box {
  background: rgba(217, 233, 248, 0.78);
  border: 1px solid rgba(14, 165, 233, 0.26);
  border-radius: 18px;
  padding: 13px 15px;
  margin-bottom: 18px;
  text-align: left;
  font-size: 0.83rem;
  display: grid;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-key {
  color: var(--text-muted);
  flex-shrink: 0;
}

.summary-val {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */

.anim-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.72s var(--ease-out-expo) var(--delay, 0ms) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes recPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  75%,
  100% {
    transform: scale(2.35);
    opacity: 0;
  }
}

@keyframes gradientShift {
  to {
    background-position: 220% center;
  }
}

@keyframes btnSheen {
  0%,
  65% {
    left: -120%;
  }
  100% {
    left: 150%;
  }
}

@keyframes phoneRing {
  0%,
  80%,
  100% {
    transform: rotate(0deg);
  }
  84% {
    transform: rotate(-14deg);
  }
  88% {
    transform: rotate(14deg);
  }
  92% {
    transform: rotate(-10deg);
  }
  96% {
    transform: rotate(8deg);
  }
}

@keyframes gridDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(42px);
  }
}

@keyframes floatTop {
  from {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    transform: translateX(-46%) translateY(24px) scale(1.08);
  }
}

@keyframes floatSide {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(26px, -30px) scale(1.1);
  }
}

@keyframes fieldShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes flowDot {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@keyframes otpPop {
  0% {
    transform: scale(0.92);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes skyPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
}

@keyframes shieldPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  75%,
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

@keyframes verifyPop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(22px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.mobile-dock[hidden] {
  display: none;
}

/* ==========================================================================
   Tablet & Desktop Enhancements (min-width: 680px)
   ========================================================================== */

@media (min-width: 680px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    top: 16px;
    margin-top: 16px;
    padding: 0 20px;
  }

  .nav-pill {
    padding: 10px 12px 10px 14px;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .btn-nav-apply {
    display: inline-flex;
  }

  .btn-hotline {
    padding: 10px 18px;
    font-size: 0.92rem;
  }

  .page-main {
    padding: 42px 20px 36px;
  }

  .hero {
    margin-bottom: 32px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .perks-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .modal-card--verify {
    padding: 32px 28px 28px;
  }

  .otp-box--green {
    height: 58px;
    font-size: 1.44rem;
  }

  .form-card {
    padding: 28px 32px 32px;
    border-radius: var(--radius-card);
  }

  .window-dots {
    display: inline-flex;
  }

  .card-divider {
    margin: 22px -32px 26px;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
  }

  .field-group--full {
    grid-column: 1 / -1;
  }

  .btn-submit {
    width: auto;
    min-width: 240px;
  }

  .mobile-dock {
    display: none;
  }
}

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

  .anim-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   WhatsApp Verification Waiting Spinner
   ========================================================================== */
.btn-submit[hidden],
.field-group[hidden] {
  display: none !important;
}

.wa-wait-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 12px;
  text-align: center;
  animation: fadeIn 0.25s ease forwards;
}

.wa-wait-box[hidden] {
  display: none !important;
}

.wa-spinner-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.wa-spin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3.5px solid rgba(37, 211, 102, 0.18);
  border-top-color: #25d366;
  border-right-color: #128c7e;
  animation: spin 0.9s linear infinite;
}

.wa-spin-core {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #25d366 0%, #1ebe57 60%, #128c7e 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
  animation: waPulse 1.5s ease-in-out infinite;
}

.wa-spin-core svg {
  width: 31px;
  height: 31px;
}

.wa-wait-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #15803d;
  margin: 0 0 4px;
}

.wa-dots::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: waDots 1.3s steps(4, end) infinite;
}

.wa-wait-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

@keyframes waPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

@keyframes waDots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}
