* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: #0d0408;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 390px;
  background: #1a050c;
}

.bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.dock {
  position: absolute;
  left: 0;
  right: 0;
  top: 88.5%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 2;
}

.dock.session {
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}

.icon-btn {
  position: relative;
  width: 64px;
  height: 64px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.icon-btn img {
  width: 64px;
  height: 64px;
  display: block;
}

.google-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.02;
}

.session-label {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  word-break: break-all;
}

.danger,
.primary,
.send,
.ghost {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 16px;
  cursor: pointer;
}

.danger {
  background: #e53935;
  color: #fff;
}

.primary {
  background: #b96bff;
  color: #fff;
  margin-top: 12px;
}

.send {
  width: auto;
  flex: 0 0 auto;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
}

.ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.danger:disabled,
.primary:disabled,
.send:disabled {
  opacity: 0.5;
  cursor: default;
}

.hidden { display: none !important; }

.mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 20;
}

.sheet {
  width: 100%;
  background: #2a1420;
  border-radius: 18px 18px 0 0;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
}

.sheet input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  outline: none;
}

.sheet .row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.sheet .row input { flex: 1; }

.sheet p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
  line-height: 1.5;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 8, 12, 0.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  max-width: 80%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 431px) {
  body {
    min-height: 100dvh;
    padding: 24px 0;
  }

  .phone {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}
