#connect-phone-modal-root {
  --connect-primary: #fe4e60;
  --connect-primary-dark: #e63950;
  --connect-text: #2d1547;
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  color: #222;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#connect-phone-modal-root.is-open {
  display: block;
}

#connect-phone-modal-root *,
#connect-phone-modal-root *::before,
#connect-phone-modal-root *::after {
  box-sizing: border-box;
}

body.connect-modal-open {
  overflow: hidden;
}

#connect-phone-modal-root .connect-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}

#connect-phone-modal-root .connect-sheet-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  animation: connect-slide-up 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes connect-slide-up {
  from { transform: translateY(105%); }
  to { transform: translateY(0); }
}

#connect-phone-modal-root .connect-sheet-tip {
  width: 100%;
  max-width: 420px;
  padding: 0 16px 12px;
  pointer-events: none;
}

#connect-phone-modal-root .connect-sheet-tip img {
  width: min(100%, 360px);
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

#connect-phone-modal-root .connect-bottom-sheet {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #ffeef1 0%, #fff 28%);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#connect-phone-modal-root .connect-sheet-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 48px;
  background: #fff;
  border-bottom: 1px solid rgba(254, 78, 96, 0.12);
}

#connect-phone-modal-root .connect-sheet-close {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #888;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

#connect-phone-modal-root .connect-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: #222;
}

#connect-phone-modal-root .connect-sheet-body {
  padding: 20px 18px 28px;
  background: #fff;
}

#connect-phone-modal-root .connect-sheet-headline {
  font-size: 22px;
  font-weight: 800;
  color: #e91e63;
  margin: 0 0 8px;
  text-align: center;
}

#connect-phone-modal-root .connect-sheet-sub {
  font-size: 14px;
  color: #7a6b82;
  text-align: center;
  margin: 0 0 22px;
  line-height: 1.45;
}

#connect-phone-modal-root .connect-phone-field {
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: 8px;
  border: 2px solid #e8ddf5;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

#connect-phone-modal-root .connect-phone-field:focus-within {
  border-color: var(--connect-primary);
}

#connect-phone-modal-root .connect-phone-field .connect-phone-plus {
  flex: 0 0 auto;
  padding: 0 2px 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #2d1547;
  user-select: none;
  line-height: 1;
}

#connect-phone-modal-root .connect-phone-field input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  margin: 0;
  padding: 0 14px 0 6px;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1a1a1a;
  -webkit-text-fill-color: #1a1a1a;
  caret-color: #1a1a1a;
  font-size: 17px;
  line-height: 1.2;
  outline: none;
  opacity: 1;
}

#connect-phone-modal-root .connect-phone-field input::placeholder {
  color: #999;
  opacity: 1;
}

#connect-phone-modal-root .connect-phone-field input.invalid {
  color: #1a1a1a;
}

#connect-phone-modal-root .connect-phone-hint {
  margin: 0 0 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: #9a8aa8;
}

#connect-phone-modal-root .connect-phone-row--intl {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: stretch;
}

#connect-phone-modal-root .connect-country-select {
  flex: 0 0 auto;
  width: auto;
  min-width: 118px;
  max-width: 42%;
  min-height: 48px;
  height: 48px;
  margin: 0;
  padding: 0 30px 0 12px;
  border: 2px solid #ffc9d4;
  border-radius: 14px;
  background-color: #fff;
  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='%23e91e63' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  color: #2d1547;
  -webkit-text-fill-color: #2d1547;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(254, 78, 96, 0.15);
  position: relative;
  z-index: 3;
}

#connect-phone-modal-root .connect-phone-row input {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 2px solid #e8ddf5;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  -webkit-text-fill-color: #1a1a1a;
  caret-color: #1a1a1a;
  font-size: 17px;
  line-height: 1.2;
  outline: none;
  opacity: 1;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
  box-shadow: none;
}

#connect-phone-modal-root .connect-phone-row input::placeholder {
  color: #999;
  opacity: 1;
}

#connect-phone-modal-root .connect-phone-row input:focus {
  border-color: var(--connect-primary);
}

#connect-phone-modal-root .connect-phone-row input.invalid {
  border-color: #ff6b7a;
}

#connect-phone-modal-root .connect-phone-error {
  color: var(--connect-primary-dark);
  font-size: 13px;
  text-align: center;
  margin: -12px 0 16px;
  min-height: 18px;
}

#connect-phone-modal-root .connect-btn-continue {
  width: 100%;
  min-height: 54px;
  height: 54px;
  margin: 0;
  padding: 0 20px;
  border: none;
  border-radius: 27px;
  background: linear-gradient(135deg, #ff5c6d, #fe4e60);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(254, 78, 96, 0.35);
}

#connect-phone-modal-root .connect-btn-continue:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
