/* === WRAPPER === */
.phone-wrapper {
  all: initial;
  display: flex;
  justify-content: center;
  margin: 40px 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RESET */
.phone-wrapper * {
  box-sizing: border-box;
  font-family: inherit;
}

/* IMG */
.phone-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PHONE */
.phone-wrapper .iphone {
  width: 320px;
  height: 650px;
  border-radius: 50px;
  background: #000;
  position: relative;
  overflow: hidden;
}

/* SCREEN */
.phone-wrapper .screen {
  position: absolute;
  inset: 4px;
  border-radius: 46px;
  overflow: hidden;
  background: #f2f2f7;
}

/* STATUS */
.phone-wrapper .statusbar {
  position: absolute;
  top: 12px;
  right: 22px;
  width: 130px;
  height: 20px;
  background: url(https://i.ibb.co/dsDCTBsW/statusbar.png) no-repeat right center;
  background-size: contain;
}

/* ISLAND */
.phone-wrapper .island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: black;
  border-radius: 20px;
}

/* PROFILES */
.phone-wrapper .profiles {
  position: absolute;
  top: 70px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.phone-wrapper .profile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-wrapper .profile {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
}

.phone-wrapper .name {
  font-size: 11px;
  margin-top: 4px;
  color: #555;
}

/* CHAT */
.phone-wrapper .chat {
  position: absolute;
  top: 140px;
  bottom: 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

/* ROW */
.phone-wrapper .row {
  display: flex;
  width: 100%;
  padding: 0 12px;
}

.phone-wrapper .row.left {
  justify-content: flex-start;
}

.phone-wrapper .row.right {
  justify-content: flex-end;
}

/* MESSAGE */
.phone-wrapper .msg {
  position: relative;
  max-width: 75%;
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 18px;
}

/* LEFT */
.phone-wrapper .msg.left {
  background: #d1d1d6;
}

/* RIGHT */
.phone-wrapper .msg.right {
  background: #007aff;
  color: #fff;
}

/* === KUYRUK (TEMİZ + KÖŞE BOZMAYAN) === */

/* LEFT */
.phone-wrapper .msg.left::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -5px;
  width: 14px;
  height: 14px;
  background: #d1d1d6;
  border-bottom-right-radius: 12px;
}

.phone-wrapper .msg.left::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 8px;
  height: 14px;
  background: #f2f2f7;
  border-bottom-right-radius: 8px;
}

/* RIGHT */
.phone-wrapper .msg.right::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: -5px;
  width: 14px;
  height: 14px;
  background: #007aff;
  border-bottom-left-radius: 12px;
}

.phone-wrapper .msg.right::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 8px;
  height: 14px;
  background: #f2f2f7;
  border-bottom-left-radius: 8px;
}

/* INPUT */
.phone-wrapper .input {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 16px);
  height: 42px;
  background: #ffffff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}

/* PLUS */
.phone-wrapper .plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #007aff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* TEXT */
.phone-wrapper .placeholder {
  color: #888;
  font-size: 14px;
}