
body {
  font-family: 'Poppins', 'Nunito Sans', sans-serif;
}

.iphone-x {
  position: relative;
  width: 280px;
  height: 580px;
  border-radius: 38px;
  box-shadow: 0px 0px 0px 11px #1f1f1f, 0px 0px 0px 1px #191919, 0px 0px 0px 1px #111;
  overflow: hidden;
}

.phone-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 580px;
  background: #e5ddd5;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}

.top-bar {
  display: flex;
  align-items: center;
  height: 56px;
  background: #f0f0e8;
  border-radius: 30px 30px 0 0;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.topbar-btn {
  background: transparent !important;
  border: none;
  width: 20px;
  height: 20px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #000000;
  padding: 0;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

.topbar-btn:hover,
.topbar-btn:active,
.topbar-btn:focus {
  background: transparent !important;
  color: #000000 !important;
  transform: none !important;
  box-shadow: none !important;
  outline: none !important;
}


.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #bbb;
  margin: 0 10px 0 4px;
  border: 2px solid #fff;
}

.topbar-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 0px;
}

.topbar-title {
  font-weight: bold;
  font-size: 1rem;
  color: #000000;
  line-height: 1.1;
}

.topbar-status {
  font-size: 0.8rem;
  color: #7a7a7a;
  line-height: 1.1;
}

.preview-message {
  align-self: flex-end;
  background: #D9FDD3;
  color: #222;
  margin: 0 18px 24px 18px;
  padding: 12px 18px;
  border-radius: 18px 18px 4px 18px;
  max-width: 80%;
  font-size: 0.8rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.07);
  word-break: break-word;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.iphone-x::before,
.iphone-x::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* home button indicator */
.iphone-x::after {
  bottom: 7px;
  width: 140px;
  height: 4px;
  background-color: #f2f2f2;
  border-radius: 10px;
}

/* Themes Phones */

/* WhatsApp */
.phone-preview.wa-theme {
  background: #e5ddd5 !important;
}
.phone-preview.wa-theme .top-bar {
  background: #f3f0e9 !important;
  color: #fff !important;
}
.phone-preview.wa-theme .topbar-btn svg {
  stroke: #000000 !important;
}
.phone-preview.wa-theme .preview-message {
  background: #D9FDD3 !important;
  color: #222 !important;
}

/* Facebook Messenger */
.phone-preview.fb-theme {
  background: #ffffff !important;
}
.phone-preview.fb-theme .top-bar {
  background: #ffffff !important;
  color: #fff !important;
}
.phone-preview.fb-theme .topbar-btn svg {
  stroke: #136bff !important;
}
.phone-preview.fb-theme .preview-message {
  background: #136bff !important;
  color: #ffffff !important;
}

/* Instagram */
.phone-preview.ig-theme {
  background: #ffffff !important;
}
.phone-preview.ig-theme .top-bar {
  background: #ffffff !important;
  color: #fff !important;
}
.phone-preview.ig-theme .topbar-btn svg {
  stroke: #000000 !important;
}
.phone-preview.ig-theme .preview-message {
  background: linear-gradient(#a11de0, #9a23e7) !important; 
  color: #fff !important;
}

/* Telegram */
.phone-preview.tg-theme {
  background: #f6ffe7 !important;
}
.phone-preview.tg-theme .top-bar {
  background: #ffffff !important;
  color: #fff !important;
}
.phone-preview.tg-theme .topbar-btn svg {
  stroke: #000000 !important;
}
.phone-preview.tg-theme .preview-message {
  background: #ffffff !important;
  color: #222 !important;
}

/* Twitter */
.phone-preview.tw-theme {
  background: #e8f5fd !important;
}
.phone-preview.tw-theme .top-bar {
  background: #ffffff !important;
  color: #fff !important;
}
.phone-preview.tw-theme .topbar-btn svg {
  stroke: #000000 !important;
}
.phone-preview.tw-theme .preview-message {
  background: #ffffff !important;
  color: #222 !important;
}


