body {
  margin: 0;
  background: #111;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* phone frame */
.phone-frame {
  padding: 16px;
  border-radius: 44px;
  background: linear-gradient(145deg, #222, #000);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.phone-inner {
  width: 390px;
  height: 780px;
  background: #e5ddd5;
  border-radius: 34px;
  overflow: hidden;
}

/* status bar */
.status-bar {
  height: 36px;
  background: #000;
  color: #fff;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

/* chat */
.chat {
  height: calc(100% - 36px);
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: #06c755;
  color: #fff;
  padding: 12px;
  text-align: center;
  font-weight: bold;
}

.chat-body {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
}

/* message layout */
.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}

.message.self {
  flex-direction: row-reverse;
}

/* icon */
.icon-wrap {
  width: 56px;
  text-align: center;
  flex-shrink: 0;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.name {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
  white-space: nowrap;
}

/* bubble */
.bubble-wrap {
  display: flex;
  flex-direction: column;
  width: calc(100% - 120px);
}

.message.self .bubble-wrap {
  align-items: flex-end;
}

.bubble {
  background: #fff;
  padding: 12px 16px;
  border-radius: 18px;
  border-top-left-radius: 6px;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.message.self .bubble {
  background: #dcf8c6;
  border-top-left-radius: 18px;
  border-top-right-radius: 6px;
}

/* read */
.read {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* input */
.chat-input {
  display: flex;
  padding: 8px;
  background: #f0f0f0;
  gap: 6px;
}

.chat-input input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 18px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.chat-input button {
  padding: 8px 14px;
  border-radius: 18px;
  border: none;
  background: #06c755;
  color: #fff;
  font-size: 14px;
}
