#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-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: stretch;
}

#connect-phone-modal-root .connect-country-auto {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  max-width: 140px;
  min-height: 48px;
  height: 48px;
  padding: 0 14px;
  border: 2px solid #ffc9d4;
  border-radius: 14px;
  background: #fff7f9;
  pointer-events: none;
  user-select: none;
}

#connect-phone-modal-root .connect-country-label {
  color: #2d1547;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

#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;
}
