/* ===========================================
   CHECKOUT PAGE — DEDICATED STYLES
   =========================================== */

.checkout-body {
  background: var(--gray-50);
  min-height: 100vh;
}

/* ============ NAV ============ */
.checkout-nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-150);
}

.checkout-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.checkout-secure i {
  color: var(--pure-black);
  font-size: 14px;
}

/* ============ MAIN GRID ============ */
.checkout-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px var(--gutter) 60px;
  position: relative;
  z-index: 1;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ============ FORM SECTION ============ */
.checkout-form-section {
  background: var(--pure-white);
  border: 1px solid var(--gray-150);
  border-radius: 24px;
  padding: 40px;
  position: relative;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 28px;
  transition: all 0.2s ease;
}

.checkout-back:hover {
  color: var(--pure-black);
  gap: 12px;
}

.checkout-back i {
  font-size: 14px;
}

html.ar .checkout-back i {
  transform: rotate(180deg);
}

.checkout-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-150);
}

.checkout-header .section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.checkout-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.checkout-sub {
  font-size: 15px;
  color: var(--gray-600);
}

/* ============ STEPS ============ */
.checkout-step {
  margin-bottom: 36px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--pure-black);
  color: var(--pure-white);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============ REGION OPTIONS ============ */
.region-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.region-option {
  cursor: pointer;
  display: block;
  position: relative;
}

.region-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.region-card {
  padding: 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  transition: all 0.3s var(--ease);
  position: relative;
  height: 100%;
}

.region-option:hover .region-card {
  border-color: var(--gray-400);
  background: var(--pure-white);
}

.region-option input[type="radio"]:checked ~ .region-card {
  border-color: var(--pure-black);
  background: var(--pure-white);
  box-shadow: 0 0 0 1px var(--pure-black);
}

.region-icon {
  width: 38px;
  height: 38px;
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
  color: var(--pure-black);
}

.region-option input[type="radio"]:checked ~ .region-card .region-icon {
  background: var(--pure-black);
  color: var(--pure-white);
  border-color: var(--pure-black);
}

.region-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.region-info p {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.region-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.method-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--gray-100);
  border-radius: 100px;
  color: var(--gray-700);
}

.region-option input[type="radio"]:checked ~ .region-card .method-pill {
  background: var(--gray-100);
  color: var(--pure-black);
}

.region-check {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 22px;
  color: var(--pure-black);
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s var(--ease-bounce);
}

html.ar .region-check {
  right: auto;
  left: 16px;
}

.region-option input[type="radio"]:checked ~ .region-card .region-check {
  opacity: 1;
  transform: scale(1);
}

/* ============ ACCOUNT INFO ============ */
.account-info-box {
  padding: 18px 22px;
  background: var(--gray-50);
  border: 1px solid var(--gray-150);
  border-radius: 14px;
}

.account-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-500);
}

.loading-pulse {
  width: 8px;
  height: 8px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}

.account-logged-in {
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-avatar {
  width: 42px;
  height: 42px;
  background: var(--pure-black);
  color: var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
}

.account-details {
  flex: 1;
  min-width: 0;
}

.account-details strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.account-details span {
  display: block;
  font-size: 13px;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-switch {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 2px;
  white-space: nowrap;
}

.account-switch:hover {
  color: var(--pure-black);
  border-bottom-color: var(--pure-black);
}

.account-not-logged {
  text-align: center;
  padding: 20px 0;
}

.account-not-logged p {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 14px;
}

.account-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pure-black);
  color: var(--pure-white);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.account-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ============ FORM ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.01em;
}

.form-field input,
.form-field select {
  padding: 12px 14px;
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--pure-black);
  transition: all 0.2s ease;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--pure-black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form-field input::placeholder {
  color: var(--gray-400);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b6b' d='M6 8L0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

html.ar .form-field select {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 36px;
}

/* ============ TERMS CHECKBOX ============ */
.checkout-terms {
  margin-bottom: 24px;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.terms-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.check-box i {
  color: var(--pure-white);
  font-size: 12px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s var(--ease-bounce);
}

.terms-check input[type="checkbox"]:checked ~ .check-box {
  background: var(--pure-black);
  border-color: var(--pure-black);
}

.terms-check input[type="checkbox"]:checked ~ .check-box i {
  opacity: 1;
  transform: scale(1);
}

.terms-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-700);
}

.terms-text a {
  color: var(--pure-black);
  border-bottom: 1px solid var(--gray-300);
  font-weight: 500;
  transition: border-color 0.2s ease;
}

.terms-text a:hover {
  border-bottom-color: var(--pure-black);
}

/* ============ ERROR BANNER ============ */
.checkout-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fff1f0;
  border: 1px solid #ffd6d3;
  border-radius: 12px;
  color: #c41e3a;
  font-size: 13px;
  margin-bottom: 16px;
  animation: shakeIn 0.4s var(--ease);
}

@keyframes shakeIn {
  0% { opacity: 0; transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  100% { opacity: 1; transform: translateX(0); }
}

.checkout-error i {
  font-size: 18px;
  flex-shrink: 0;
}

/* ============ SUBMIT BUTTON ============ */
.checkout-submit {
  width: 100%;
  padding: 18px 28px;
  background: var(--pure-black);
  color: var(--pure-white);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.checkout-submit:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.checkout-submit:disabled {
  background: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
}

.checkout-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gray-700);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.checkout-submit:not(:disabled):hover::before {
  width: 600px;
  height: 600px;
}

.submit-text,
.submit-loading {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.submit-loading {
  display: none;
}

.checkout-submit.loading .submit-text {
  display: none;
}

.checkout-submit.loading .submit-loading {
  display: inline-flex;
}

.submit-amount {
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.3);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
}

html.ar .submit-amount {
  margin-left: 0;
  margin-right: 6px;
  padding-left: 0;
  padding-right: 14px;
  border-left: 0;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--pure-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============ TRUST BADGES ============ */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-150);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-badge i {
  font-size: 22px;
  color: var(--pure-black);
  flex-shrink: 0;
}

.trust-badge strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 1px;
}

.trust-badge span {
  display: block;
  font-size: 10.5px;
  color: var(--gray-500);
}

/* ============ ORDER SUMMARY (RIGHT) ============ */
.checkout-summary {
  position: sticky;
  top: 100px;
}

.summary-sticky {
  background: var(--pure-white);
  border: 1px solid var(--gray-150);
  border-radius: 24px;
  padding: 32px 28px;
}

.summary-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-150);
}

.summary-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray-500);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.summary-header h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* SUMMARY PLAN */
.summary-plan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 14px;
  margin-bottom: 24px;
}

.plan-icon {
  width: 44px;
  height: 44px;
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.plan-details {
  flex: 1;
  min-width: 0;
}

.plan-details h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.plan-details p {
  font-size: 12px;
  color: var(--gray-600);
}

.plan-amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* FEATURES */
.summary-features h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.summary-features ul {
  list-style: none;
}

.summary-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--gray-700);
}

.summary-features i {
  font-size: 13px;
  color: var(--pure-black);
}

.summary-divider {
  height: 1px;
  background: var(--gray-150);
  margin: 24px 0;
}

/* BREAKDOWN */
.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-700);
}

.breakdown-line.muted {
  color: var(--gray-400);
}

.breakdown-line.discount {
  color: #00a86b;
  font-weight: 600;
}

/* TOTAL */
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.total-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.total-note {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
}

.total-amount {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* PROMO */
.promo-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-150);
}

.promo-section summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  list-style: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.promo-section summary::-webkit-details-marker {
  display: none;
}

.promo-section summary:hover {
  color: var(--pure-black);
}

.promo-section summary i {
  font-size: 14px;
}

.promo-input {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.promo-input input {
  flex: 1;
  padding: 10px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-input input:focus {
  outline: none;
  border-color: var(--pure-black);
}

.promo-input button {
  padding: 0 16px;
  background: var(--pure-black);
  color: var(--pure-white);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.promo-input button:hover {
  transform: scale(1.03);
}

.promo-feedback {
  font-size: 11px;
  margin-top: 8px;
  min-height: 14px;
}

.promo-feedback.success {
  color: #00a86b;
}

.promo-feedback.error {
  color: #c41e3a;
}

/* PROVIDER INFO */
.provider-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: 10px;
  font-size: 12px;
  color: var(--gray-700);
  margin-top: 20px;
}

.provider-info i {
  color: var(--pure-black);
  font-size: 14px;
}

/* HELP */
.checkout-help {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-150);
}

.checkout-help p {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.checkout-help a {
  font-size: 13px;
  font-weight: 600;
  color: var(--pure-black);
  border-bottom: 1px solid var(--gray-300);
  transition: border-color 0.2s ease;
}

.checkout-help a:hover {
  border-bottom-color: var(--pure-black);
}

/* ============ FOOTER ============ */
.checkout-footer {
  background: var(--pure-white);
  border-top: 1px solid var(--gray-150);
  padding: 20px var(--gutter);
  margin-top: 40px;
}

.checkout-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--pure-black);
}

/* ============ MOBILE ============ */
@media (max-width: 968px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .checkout-summary {
    position: static;
  }

  .summary-sticky {
    order: -1;
  }
}

@media (max-width: 768px) {
  .checkout-main {
    padding: 90px var(--gutter) 40px;
  }

  .checkout-form-section {
    padding: 24px;
    border-radius: 18px;
  }

  .checkout-secure {
    display: none;
  }

  .checkout-title {
    font-size: 32px;
  }

  .checkout-sub {
    font-size: 13px;
  }

  .checkout-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }

  .step-num {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .step-title {
    font-size: 16px;
  }

  .region-options {
    grid-template-columns: 1fr;
  }

  .region-card {
    padding: 16px;
  }

  .region-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .region-info h3 {
    font-size: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .summary-sticky {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .total-amount {
    font-size: 28px;
  }

  .checkout-submit {
    padding: 16px 22px;
    font-size: 14px;
  }

  .submit-amount {
    font-size: 15px;
  }

  .trust-badges {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trust-badge {
    padding: 8px 0;
  }

  .checkout-footer-inner {
    flex-direction: column;
    gap: 10px;
  }
}

/* ============ OTP CONTAINER ============ */
.otp-container {
  background: var(--gray-50);
  border: 1px solid var(--gray-150);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.otp-stage {
  display: none;
  animation: otpFadeIn 0.4s var(--ease);
}

.otp-stage.active {
  display: block;
}

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

.otp-hint {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.5;
}

.otp-hint strong {
  color: var(--pure-black);
  font-weight: 700;
}

.otp-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
}

html.ar .otp-edit {
  margin-left: 0;
  margin-right: 6px;
}

.otp-edit:hover {
  border-color: var(--pure-black);
  color: var(--pure-black);
}

.otp-edit i {
  font-size: 11px;
}

/* ============ OTP BUTTON ============ */
.otp-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px 20px;
  background: var(--pure-black);
  color: var(--pure-white);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.otp-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.otp-btn:disabled {
  background: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
}

.otp-btn-text,
.otp-btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.otp-btn-loading {
  display: none;
}

.otp-btn.loading .otp-btn-text {
  display: none;
}

.otp-btn.loading .otp-btn-loading {
  display: inline-flex;
}

/* ============ OTP CODE INPUTS ============ */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 20px;
}

.otp-inputs input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  background: var(--pure-white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  color: var(--pure-black);
  transition: all 0.2s ease;
  caret-color: transparent;
}

.otp-inputs input:focus {
  outline: none;
  border-color: var(--pure-black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.otp-inputs input.filled {
  background: var(--pure-black);
  color: var(--pure-white);
  border-color: var(--pure-black);
}

.otp-inputs input.error {
  border-color: #c41e3a;
  background: #fff1f0;
  color: #c41e3a;
  animation: otpShake 0.4s ease;
}

@keyframes otpShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ============ OTP RESEND ============ */
.otp-resend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--gray-600);
}

.otp-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--pure-black);
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.otp-resend-btn:disabled {
  color: var(--gray-500);
  cursor: not-allowed;
}

.otp-resend-btn:not(:disabled):hover {
  text-decoration: underline;
}

#otpResendTimer {
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ============ OTP ERROR ============ */
.otp-error {
  font-size: 12px;
  color: #c41e3a;
  margin-top: 8px;
  min-height: 16px;
  text-align: center;
  font-weight: 500;
}

.otp-error:empty {
  display: none;
}

/* ============ STAGE 3: VERIFIED ============ */
.otp-stage[data-stage="verified"] {
  text-align: center;
  padding: 8px 0;
}

.otp-verified-badge {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
}

.verified-svg {
  width: 100%;
  height: 100%;
}

.verified-circle {
  fill: none;
  stroke: #00a86b;
  stroke-width: 3;
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  animation: drawVerifiedCircle 0.6s var(--ease) forwards;
}

.verified-check {
  fill: none;
  stroke: #00a86b;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawVerifiedCheck 0.4s var(--ease) 0.6s forwards;
}

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

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

.otp-verified-info {
  margin-bottom: 16px;
}

.otp-verified-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.otp-verified-info span {
  display: block;
  font-size: 12px;
  color: #00a86b;
  font-weight: 600;
}

.otp-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  background: transparent;
  border: 1px solid var(--gray-300);
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.otp-switch:hover {
  border-color: var(--pure-black);
  color: var(--pure-black);
}

.otp-switch i {
  font-size: 12px;
}

/* ============ MOBILE OTP ============ */
@media (max-width: 768px) {
  .otp-container {
    padding: 18px;
  }

  .otp-inputs {
    gap: 6px;
    margin: 18px 0 14px;
  }

  .otp-inputs input {
    width: 42px;
    height: 50px;
    font-size: 20px;
    border-radius: 10px;
  }

  .otp-btn {
    padding: 12px 18px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .otp-inputs {
    gap: 4px;
  }

  .otp-inputs input {
    width: 38px;
    height: 46px;
    font-size: 18px;
  }
}