/* WhatsApp Binding Page — ref: h3ati3j.com/binding/whatsapp */

.bind-page {
  position: fixed;
  inset: 0;
  z-index: 250;
  overflow: hidden;
  overflow-y: auto;
}

.bind-page__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffd2b3 0%, #fdcfae 100%);
  z-index: 0;
}

.bind-page__header-img,
.bind-page__bottom-img {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.bind-page__header-img {
  top: 0;
  object-fit: contain;
}

.bind-page__bottom-img {
  bottom: 0;
  object-fit: contain;
}

.bind-page__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.bind-float {
  position: absolute;
  font-size: clamp(1.25rem, 4vw, 2rem);
  opacity: 0.65;
  animation: bind-float 3s ease-in-out infinite;
}

.bind-float--1 { top: 4%; left: 8%; }
.bind-float--2 { top: 8%; right: 10%; animation-delay: 0.1s; }
.bind-float--3 { top: 16%; left: 24%; animation-delay: 0.2s; }
.bind-float--4 { top: 20%; right: 30%; animation-delay: 0.3s; }
.bind-float--5 { top: 33%; left: 4%; animation-delay: 0.15s; }
.bind-float--6 { top: 50%; right: 6%; animation-delay: 0.25s; }
.bind-float--7 { top: 25%; left: 6%; animation-delay: 0.4s; }
.bind-float--8 { bottom: 28%; right: 8%; animation-delay: 0.35s; }

@keyframes bind-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.bind-page__back {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 30;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.bind-page__back:hover {
  transform: scale(1.1);
}

.bind-page__back img {
  filter: brightness(0) invert(1);
}

.bind-page__inner {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 16px 32px;
}

.bind-page__hero {
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin-bottom: 0;
  margin-top: 38px;
}

.bind-page__title {
  font-family: "Sansita One", Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 3rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin: 0 0 12px;
  line-height: 1.1;
}

.bind-page__subtitle {
  margin: 0 0 16px;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.bind-page__amount {
  display: inline-block;
  margin-left: 6px;
  font-family: "Sansita One", Georgia, serif;
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  font-weight: 700;
  color: #fff;
}

.bind-page__promo {
  margin: 0 auto 14px;
  padding: 10px 14px;
  max-width: 100%;
  border: 2px solid #ff6b00;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35), inset 0 1px 3px rgba(255, 255, 255, 0.3);
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  font-weight: 800;
  color: #8b0000;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  line-height: 1.45;
  text-align: center;
}

.bind-form {
  width: 100%;
  max-width: 400px;
  margin-top: clamp(72px, calc(10vh + 16px), 160px);
}

.bind-phone-input-wrap {
  display: flex;
  align-items: stretch;
  height: 38px;
  min-height: 38px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.bind-country-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  min-width: 96px;
  border: none;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  background: #f5f5f5;
  cursor: pointer;
  flex-shrink: 0;
  height: 100%;
}

.bind-country-trigger:hover {
  background: #ebebeb;
}

.bind-country-emoji {
  font-size: 16px;
  line-height: 1;
}

.bind-country-dial {
  font-size: 12px;
  font-weight: 600;
  color: #262626;
}

.bind-country-arrow {
  font-size: 10px;
  color: #8c8c8c;
}

.bind-phone-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #262626;
  outline: none;
}

.bind-phone-input::placeholder {
  color: #bfbfbf;
}

.bind-submit-wrap {
  position: relative;
  margin-top: 20px;
}

.bind-submit-btn {
  width: 100%;
  height: 50px;
  min-height: 50px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffe8a3 0%, #ffb84d 50%, #ff9a1f 100%);
  box-shadow: 0 4px 12px rgba(255, 154, 31, 0.35), inset 0 -2px 0 rgba(191, 49, 0, 0.28);
  color: #bf3100;
  font-family: Roboto, sans-serif;
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.bind-submit-btn:hover:not(:disabled) {
  transform: scale(1.03);
}

.bind-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.bind-submit-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  border: 2px solid rgba(191, 49, 0, 0.2);
  border-top-color: #bf3100;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.bind-submit-hand {
  position: absolute;
  top: 50%;
  right: -16px;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  background: url("/public/lottery/ic-hand.webp") center / contain no-repeat;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.22));
  pointer-events: none;
  animation: tap-hand 1.5s ease-in-out infinite;
}

.bind-status {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  color: #8b2500;
}

.bind-status.hidden {
  display: none;
}

.bind-status--success {
  color: #15803d;
  background: rgba(21, 128, 61, 0.1);
  border: 1px solid rgba(21, 128, 61, 0.25);
}

.bind-status--warn {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.95);
  border: 1px solid rgba(220, 38, 38, 0.35);
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.12);
}

.bind-status--info {
  color: #8b2500;
  background: rgba(255, 232, 163, 0.45);
  border: 1px solid rgba(255, 154, 31, 0.35);
}

.bind-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #333;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
  line-height: 1.4;
  padding: 0 8px;
}

.bind-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bind-toast--warn {
  background: #fff1f0;
  color: #c2410c;
  border: 1px solid #fecaca;
}

.bind-toast--success {
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.bind-toast--info {
  background: #fffbeb;
  color: #9a3412;
  border: 1px solid #fde68a;
}

/* Pair code modal */
.pair-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pair-modal-overlay:not(.hidden) {
  display: flex;
  animation: pair-overlay-in 0.28s ease-out;
}

.pair-modal-overlay--replay:not(.hidden) .pair-modal {
  animation: pair-modal-in 0.42s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.pair-modal-overlay--replay:not(.hidden) .pair-code-cell {
  animation: pair-cell-in 0.45s cubic-bezier(0.34, 1.45, 0.64, 1) backwards;
  animation-delay: calc(var(--cell-index, 0) * 0.05s + 0.12s);
}

@keyframes pair-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pair-modal-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pair-cell-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pair-cell-flash {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 153, 102, 0.15);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(255, 140, 60, 0.45);
    border-color: rgba(255, 140, 60, 0.65);
  }
}

.pair-modal {
  position: relative;
  width: min(500px, calc(100vw - 32px));
  max-height: 92vh;
  overflow: hidden;
  overflow-y: auto;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 200, 140, 0.45);
  background: linear-gradient(
    145deg,
    #fff 0%,
    #fff9ef 22%,
    #fff0d9 48%,
    #ffe8c9 72%,
    #fff6ea 100%
  );
  box-shadow:
    0 8px 32px rgba(255, 165, 0, 0.18),
    0 2px 8px rgba(139, 37, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

@media (min-width: 640px) {
  .pair-modal {
    padding: 32px;
  }
}

.pair-modal__shine {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 220, 160, 0.35) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.pair-modal__header,
.pair-modal__code-box,
.pair-modal__guide,
.pair-modal__copy,
.pair-modal__close,
.pair-modal__title,
.pair-modal__subtitle {
  position: relative;
  z-index: 1;
}

.pair-modal__header {
  margin-bottom: 4px;
}

.pair-modal__title {
  font-size: clamp(1.375rem, 4.8vw, 1.875rem);
  font-weight: 700;
  color: #8b2500;
  text-align: center;
  margin: 0 0 10px;
  line-height: 1.25;
  padding-right: 36px;
  letter-spacing: -0.02em;
}

.pair-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #ffd4a3;
  color: #8b2500;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(139, 37, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pair-modal__close:hover {
  background: #ffc280;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(139, 37, 0, 0.18);
}

.pair-modal__close:active {
  transform: scale(0.95);
}

.pair-modal__subtitle {
  max-width: 360px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: clamp(13px, 3.2vw, 15px);
  color: #ff9966;
  line-height: 1.55;
}

.pair-modal__code-box {
  padding: 18px 12px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffe8cc 0%, #ffe0bf 100%);
  border: 1px solid rgba(255, 165, 0, 0.22);
  box-shadow: inset 0 2px 6px rgba(255, 140, 60, 0.08);
}

.pair-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 1vw, 6px);
  flex-wrap: nowrap;
}

.pair-code-row--flash .pair-code-cell {
  animation: pair-cell-flash 0.55s ease;
  animation-delay: calc(var(--cell-index, 0) * 0.04s);
}

.pair-code-cell {
  --cell-index: 0;
  width: clamp(34px, 8.5vw, 42px);
  height: clamp(42px, 10.5vw, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 2px solid rgba(255, 165, 0, 0.32);
  color: #ff8c42;
  font-size: clamp(1.2rem, 4.2vw, 1.55rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: "Segoe UI", Roboto, system-ui, sans-serif;
  box-shadow:
    0 2px 6px rgba(255, 140, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pair-code-dash {
  color: #c4c4c4;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 300;
  padding: 0 clamp(2px, 1vw, 6px);
  user-select: none;
  line-height: 1;
}

.pair-modal__guide {
  padding: 18px 18px 16px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 165, 0, 0.18);
  box-shadow: 0 2px 10px rgba(255, 165, 0, 0.08);
  text-align: left;
}

.pair-modal__guide-title {
  font-size: 14px;
  font-weight: 600;
  color: #8b2500;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 165, 0, 0.2);
}

.pair-modal__guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pair-step;
}

.pair-modal__guide-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #555;
  line-height: 1.65;
}

.pair-modal__guide-list li + li {
  margin-top: 10px;
}

.pair-modal__guide-list li::before {
  counter-increment: pair-step;
  content: counter(pair-step);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe8cc, #ffd4a3);
  color: #8b2500;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(255, 140, 60, 0.2);
}

.pair-modal__copy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    #ffe4cc 0%,
    #ffd4a3 22%,
    #ffc280 50%,
    #ffb366 78%,
    #ffa550 100%
  );
  box-shadow:
    0 8px 20px rgba(255, 140, 60, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #8b2500;
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.pair-modal__copy:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 28px rgba(255, 140, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: brightness(1.03);
}

.pair-modal__copy:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(255, 140, 60, 0.22);
}

.pair-modal__copy--disabled,
.pair-modal__copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.15);
  box-shadow: 0 4px 10px rgba(255, 165, 0, 0.12);
}

.pair-modal__copy svg {
  stroke: #8b2500;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pair-modal-overlay:not(.hidden),
  .pair-modal-overlay--replay:not(.hidden) .pair-modal,
  .pair-modal-overlay--replay:not(.hidden) .pair-code-cell,
  .pair-code-row--flash .pair-code-cell {
    animation: none;
  }

  .pair-modal__copy:hover:not(:disabled) {
    transform: none;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Notice modal */
.notice-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.notice-modal {
  position: relative;
  width: min(500px, calc(100vw - 32px));
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 24px;
  border-radius: 24px;
  background: #fff9e5;
  box-shadow: 0 8px 32px rgba(255, 179, 102, 0.15);
  color: #333;
  text-align: center;
}

.notice-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #ffc280;
  color: #8b2500;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.notice-modal__close:hover {
  background: #ffb366;
}

.notice-modal__title {
  font-size: 24px;
  font-weight: 700;
  color: #8b2500;
  margin: 0 0 16px;
}

.notice-modal__subtitle {
  font-size: 15px;
  color: #666;
  margin: 0 0 20px;
  line-height: 1.6;
}

.notice-modal__gif-wrap {
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 179, 102, 0.2);
  box-shadow: 0 2px 8px rgba(255, 179, 102, 0.1);
}

.notice-modal__gif {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.notice-modal__waiting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 179, 102, 0.15);
}

.notice-modal__spinner {
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

.notice-modal__waiting span {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.notice-modal__code-panel {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 165, 0, 0.2);
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.1);
}

.notice-modal__code-label {
  font-size: 13px;
  color: #999;
  margin: 0;
  font-weight: 500;
  text-align: left;
}

.notice-modal__code-value {
  font-size: 24px;
  font-weight: 700;
  color: #8b2500;
  letter-spacing: 2px;
  margin: 8px 0 0;
  text-align: center;
  font-family: "Courier New", monospace;
}

.notice-modal__retry {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffe4cc 0%, #ffd4a3 20%, #ffc280 50%, #ffb366 80%, #ffa550 100%);
  color: #8b2500;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 179, 102, 0.3);
  transition: transform 0.2s ease;
}

.notice-modal__retry:hover {
  transform: scale(1.01);
}

.notice-modal__retry svg {
  stroke: #8b2500;
  flex-shrink: 0;
}

/* Country picker — light theme like reference */
.country-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.country-picker {
  width: 100%;
  max-width: 480px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  background: #fafafa;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

.country-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.country-picker__title {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
}

.country-picker__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  color: #595959;
  font-size: 18px;
  cursor: pointer;
}

.country-picker__search {
  margin: 12px 16px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.country-picker__list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.country-picker__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  min-height: 56px;
}

.country-picker__item:hover {
  background: #f5f5f5;
}

.country-picker__item--active {
  background: #e6f4ff;
  border-left: 3px solid #1677ff;
  padding-left: 13px;
}

.country-picker__flag {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #f0f0f0;
  border-radius: 50%;
  flex-shrink: 0;
}

.country-picker__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.country-picker__name {
  font-size: 14px;
  font-weight: 500;
  color: #262626;
}

.country-picker__iso {
  font-size: 12px;
  color: #8c8c8c;
}

.country-picker__dial {
  font-size: 14px;
  font-weight: 500;
  color: #595959;
  flex-shrink: 0;
}

.country-picker__empty {
  padding: 32px 16px;
  text-align: center;
  color: #8c8c8c;
  font-size: 14px;
}

.page-root:has(.bind-page:not(.hidden)) .lang-switcher {
  z-index: 260;
}

.page-root:has(.bind-page:not(.hidden)) .lang-btn {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* Withdrawal account modal (UPI / IFSC) */
.acct-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 380;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.acct-modal-overlay.hidden {
  display: none;
}

.acct-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 24px 20px 20px;
  border-radius: 20px;
  background: linear-gradient(165deg, #fff9f4 0%, #ffe8d6 100%);
  box-shadow:
    0 24px 48px rgba(191, 49, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.acct-modal__badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #34c759, #2aa84a);
  box-shadow: 0 4px 14px rgba(52, 199, 89, 0.45);
}

.acct-modal__title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #3d1f00;
}

.acct-modal__subtitle {
  margin: 0 0 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(61, 31, 0, 0.72);
}

.acct-modal__prize {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 140, 60, 0.12);
  border: 1px solid rgba(255, 140, 60, 0.25);
}

.acct-modal__prize-label {
  font-size: 13px;
  color: rgba(61, 31, 0, 0.65);
}

.acct-modal__prize-value {
  font-size: 18px;
  font-weight: 700;
  color: #e85d04;
}

.acct-type-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.acct-type-tab {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(61, 31, 0, 0.65);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.acct-type-tab--active {
  color: #3d1f00;
  background: #fff;
  box-shadow: 0 2px 8px rgba(255, 140, 60, 0.2);
}

.acct-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acct-field__label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(61, 31, 0, 0.75);
}

.acct-field__input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 140, 60, 0.35);
  border-radius: 10px;
  font-size: 14px;
  color: #3d1f00;
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.acct-field__input:focus {
  border-color: #ff8c3c;
  box-shadow: 0 0 0 3px rgba(255, 140, 60, 0.18);
}

.acct-status {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 12px;
  text-align: center;
  color: rgba(61, 31, 0, 0.65);
}

.acct-status--info {
  color: #e85d04;
}

.acct-status--warn {
  color: #d62828;
}

.acct-status--success {
  color: #2aa84a;
}

.acct-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff8c3c 0%, #ff6b00 100%);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}

.acct-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.acct-submit-btn:not(:disabled):active {
  transform: scale(0.98);
}

.acct-submit-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: acct-spin 0.8s linear infinite;
}

@keyframes acct-spin {
  to { transform: rotate(360deg); }
}

.page-root:has(.acct-modal-overlay:not(.hidden)) .lang-switcher {
  z-index: 400;
}
