/* ============================================================
   AUTH, SKELETON & PAYMENT OVERLAYS
   ============================================================ */
#app-skeleton, #auth-overlay, #payment-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
}
#payment-overlay { background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(8px); }

.skeleton-wrap {
  text-align: center;
}
.skeleton-logo-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.skeleton-logo-img {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(37,99,235,0.2);
}
.skeleton-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--indigo);
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
.skeleton-status {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 500;
}
.skeleton-bar-wrap {
  width: 180px;
  height: 6px;
  background: var(--surface-2);
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.skeleton-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, var(--indigo) 30%, #60a5fa 100%);
  border-radius: 10px;
  animation: progressSweep 1.8s infinite ease-in-out;
}

.auth-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 32px 26px;
  width: 92%;
  max-width: 380px;
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.12);
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}
.auth-logo-wrap {
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.auth-logo-img {
  width: 76px;
  height: 76px;
  max-width: 76px;
  max-height: 76px;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.25);
}
.auth-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.auth-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.auth-input:focus {
  border-color: var(--indigo);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  margin-bottom: 4px;
}
.auth-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}
.auth-checkbox {
  accent-color: var(--indigo);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}
.auth-forgot-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
  display: inline-block;
}
.auth-forgot-btn:hover {
  color: var(--indigo);
  text-decoration: underline;
}
.auth-error-msg {
  color: var(--red);
  font-size: 12.5px;
  text-align: center;
  min-height: 18px;
  font-weight: 600;
  margin-top: 2px;
}
.auth-footer-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.auth-switch-btn {
  background: none;
  border: none;
  color: var(--indigo);
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
  transition: opacity 0.15s;
}
.auth-switch-btn:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Payment Overlay Card */
.payment-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  max-width: 460px;
  width: 95%;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
}
.payment-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}
.payment-title {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.payment-qr-container {
  background: var(--surface-2);
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 260px;
  margin: 0 auto 24px;
}
.payment-qr-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  margin-bottom: 12px;
  object-fit: contain;
}
.payment-qr-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.payment-instruction-box {
  background: var(--indigo-dim);
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 24px;
  text-align: left;
  border: 1px solid rgba(2,132,199,0.15);
}
.payment-code-pill {
  font-family: 'DM Mono', monospace;
  background: rgba(255,255,255,0.7);
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  border: 1px dashed var(--indigo);
  text-align: center;
}
.payment-custom-msg {
  color: var(--red);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 13px;
}
.payment-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
  font-size: 14px;
}
.payment-instruction-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.payment-instruction-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.4;
}
.payment-btn-zalo {
  padding: 14px;
  margin-bottom: 10px;
}
.payment-btn-trial {
  padding: 12px;
  border-style: dashed;
  font-size: 13px;
  font-weight: 700;
}
.payment-footer-wrap {
  margin-top: 20px;
}
.payment-logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.payment-logout-btn:hover {
  color: var(--red);
}


