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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

.phone-container {
  position: relative;
  width: 384px; /* w-80 equivalent */
  height: 720px; /* h-[600px] equivalent */
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-frame {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 48px;
  padding: 0px;
  position: relative;
  overflow: hidden;
}

.iphone-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  border-radius: 40px;
  z-index: 1;
}

.iphone-frame > * {
  position: relative;
  z-index: 2;
}

/* Physical buttons - Removed */

/* Status Bar - Base */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 3;
}

.status-left .time {
  font-weight: 600;
}

.status-right {
  display: flex;
  gap: 4px;
  font-size: 12px;
}

.status-right i {
  font-size: 12px;
  color: #ffffff;
}

/* Status Bar - Home Screen */
.home-screen .status-bar {
  background: #000000;
}

/* Status Bar - Telegram */
.telegram-container .status-bar {
  background: #1c1c1e;
}

/* Status Bar - Instagram */
.instagram-container .status-bar {
  background: #000000;
}

/* Status Bar - WhatsApp */
.whatsapp-container .status-bar {
  background: #1f2937;
}

/* iPhone Frame Backgrounds */
.telegram-app .iphone-frame::before {
  background: #1c1c1e;
}

.instagram-app .iphone-frame::before {
  background: #000000;
}

.whatsapp-app .iphone-frame::before {
  background: #1f2937;
}

.home-app .iphone-frame::before {
  background: #000000;
}

/* Notch */
.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 30px;
  background: #000000;
  border-radius: 0 0 20px 20px;
  z-index: 4;
}

/* Physical Buttons - Removed */

.volume-up {
  position: absolute;
  left: 0;
  top: 112px;
  width: 4px;
  height: 24px;
  background: #6b7280;
  border-radius: 0 4px 4px 0;
  z-index: 3;
}

.volume-down {
  position: absolute;
  left: 0;
  top: 144px;
  width: 4px;
  height: 24px;
  background: #6b7280;
  border-radius: 0 4px 4px 0;
  z-index: 3;
}

.power-button {
  position: absolute;
  right: 0;
  top: 80px;
  width: 4px;
  height: 48px;
  background: #6b7280;
  border-radius: 4px 0 0 4px;
  z-index: 3;
}

/* Home Screen */
.home-screen {
  background: #000000;
  height: calc(100% - 44px - 80px);
  border-radius: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 80px;
}

/* App Grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 20px 0 20px;
  flex: 1;
  align-content: start;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  user-select: none;
}

.app-icon:hover {
  transform: scale(1.05);
}

.app-icon:active {
  transform: scale(0.95);
}

.app-icon-bg {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.app-icon-bg i {
  font-size: 28px;
  color: white;
}

.app-name {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* App Icon Backgrounds */
.telegram-bg {
  background: white;
}

.instagram-bg {
  background: linear-gradient(
    135deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}

.whatsapp-bg {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.settings-bg {
  background: linear-gradient(135deg, #8e8e93, #636366);
}

.camera-bg {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.safari-bg {
  background: linear-gradient(135deg, #007aff, #0051d5);
}

/* Dock */
.dock {
  position: absolute;
  bottom: -25px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 12px;
  width: calc(100% - 40px);
}

.dock-app {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-app .app-icon-bg {
  width: 60px;
  height: 60px;
  margin-bottom: 0;
}

.dock-app .app-icon-bg i {
  font-size: 28px;
}

.phone-bg {
  background: linear-gradient(135deg, #34c759, #30d158);
}

.messages-bg {
  background: linear-gradient(135deg, #34c759, #30d158); /* Yeşil */
}

.mail-bg {
  background: linear-gradient(135deg, #007aff, #0051d5); /* iPhone Mavisi */
}

.music-bg {
  background: linear-gradient(135deg, #ff2d92, #ff1744);
}

/* Content Container */
.content-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  transition: opacity 0.3s ease;
  border-radius: 0 0 32px 32px; /* Match phone frame radius */
}

/* Telegram Styles - Complete */
.telegram-container {
  width: 100%;
  height: calc(100% - 44px - 80px);
  background: #1c1c1e !important;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 80px;
  transition: bottom 0.3s ease;
}

.telegram-container.fullscreen {
  bottom: 0;
  height: calc(100% - 44px);
}

.chats-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chats-header {
  background: #1c1c1e !important;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  border-bottom: 1px solid #2c2c2e;
}

.chats-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-bar {
  background: #1c1c1e !important;
  padding: 8px 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #2c2c2e;
}

.search-input {
  flex: 1;
  background: #2c2c2e;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  color: white;
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.filter-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.chats-list {
  flex: 1;
  background: #1c1c1e !important;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.chats-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #2c2c2e;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-item:hover {
  background: #2c2c2e;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-avatar i {
  background: #0088cc;
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 50%;
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-size: 16px;
  font-weight: 500;
  color: white;
  margin-bottom: 4px;
}

.chat-last-message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.chat-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.unread-badge {
  background: #0088cc;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Instagram Styles - Complete */
.instagram-container {
  width: 100%;
  height: calc(100% - 44px - 80px);
  background: #000000 !important;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 80px;
  transition: bottom 0.3s ease;
}

.instagram-container.fullscreen {
  bottom: 0;
  height: calc(100% - 44px);
}

.header {
  background: #000000 !important;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #262626;
  color: #ffffff;
}

.header.hidden {
  display: none !important;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.back-btn:hover {
  background: #262626;
}

.header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.header-right {
  display: flex;
  gap: 12px;
}

.action-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.action-btn:hover {
  background: #262626;
}

.direct-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.search-bar {
  background: #000000 !important;
  padding: 8px 16px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #262626;
}

.search-bar i {
  color: #8e8e93;
  font-size: 14px;
}

.search-bar input {
  flex: 1;
  background: #262626;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.search-bar input::placeholder {
  color: #8e8e93;
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  background: #000000 !important;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.messages-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.message-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #262626;
  cursor: pointer;
  transition: background-color 0.2s;
}

.message-item:hover {
  background: #1a1a1a;
}

.message-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.message-avatar i {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 50%;
}

.message-info {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.message-name {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.message-time {
  font-size: 12px;
  color: #8e8e8e;
  position: static;
  bottom: auto;
  right: auto;
  left: auto;
  white-space: nowrap;
}

.message-preview {
  font-size: 14px;
  color: #8e8e8e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unread-indicator {
  width: 8px;
  height: 8px;
  background: #0095f6;
  border-radius: 50%;
  margin-left: 8px;
}

.message-status {
  color: #8e8e93;
  font-size: 12px;
}

/* Chat Screen Styles */
.chat-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1c1c1e;
}

.header {
  background: #1c1c1e !important;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  border-bottom: 1px solid #2c2c2e;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.back-btn {
  background: none;
  border: none;
  color: #007aff;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.back-btn i {
  font-size: 16px;
}

.back-btn span {
  font-size: 16px;
  font-weight: 400;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 2;
}

.header-center h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.header-center .status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.header-right {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.contact-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-avatar i {
  background: #007aff;
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 50%;
}

/* Chat Container */
.chat-container {
  flex: 1;
  background: #1c1c1e;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(0, 122, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 122, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(0, 122, 255, 0.08) 0%,
      transparent 50%
    );
  padding: 8px;
  overflow-y: auto;
  position: relative;
  color: #e9edef;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
}

/* Message Styles */
.message {
  display: flex;
  margin: 12px 16px;
  max-width: 75%;
}

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

.message.business-message {
  align-self: flex-start;
  flex-direction: row;
}

.message-content {
  background: #007aff;
  color: white;
  padding: 8px 12px 20px 12px;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
  max-width: 100%;
  font-size: 14.2px;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.business-message .message-content {
  background: #2c2c2e;
  color: #e9edef;
  border-bottom-left-radius: 4px;
  border-top-left-radius: 4px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.message.user-message .message-content {
  background: #007aff;
  color: white;
  border-bottom-right-radius: 4px;
  border-top-right-radius: 4px;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.message-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  position: absolute;
  bottom: 4px;
  right: 16px;
  white-space: nowrap;
}

.message.business-message .message-time {
  color: #8696a0;
  right: 16px;
  left: auto;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  gap: 8px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8696a0;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.typing-text {
  font-size: 12px;
  color: #8696a0;
}

/* Input Area */
.input-area {
  background: #1c1c1e;
  padding: 8px 16px 16px;
  border-top: 1px solid #2c2c2e;
}

.input-container {
  display: flex;
  align-items: center;
  background: #2c2c2e;
  border-radius: 20px;
  padding: 8px 16px;
  gap: 8px;
}

.input-container input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  outline: none;
  padding: 8px 0;
}

.input-container input::placeholder {
  color: #8696a0;
}

.message-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
}

/* WhatsApp Chat Header */
.chat-header {
  background: #0f172a !important;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  border-bottom: 1px solid #1e293b;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.chat-header .contact-details h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.chat-header .contact-details .status {
  font-size: 12px;
  color: #25d366;
}

/* WhatsApp Header Actions */
.header-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-btn:hover {
  background: #374151;
}

/* WhatsApp Search Bar */
.search-input {
  flex: 1;
  background: #374151;
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input i {
  color: #9ca3af;
  font-size: 14px;
}

.search-input input {
  background: none;
  border: none;
  color: #f9fafb;
  font-size: 14px;
  outline: none;
  flex: 1;
}

.search-input input::placeholder {
  color: #9ca3af;
}

.filter-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.filter-btn:hover {
  background: #374151;
}

/* WhatsApp Contact Info */
.contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.contact-info .contact-details h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.contact-info .contact-details .status {
  font-size: 12px;
  color: #25d366;
}

/* WhatsApp Styles - Complete */
.whatsapp-container {
  width: 100%;
  height: calc(100% - 44px - 80px);
  background: #0f172a !important;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 80px;
  transition: bottom 0.3s ease;
}

.whatsapp-container.fullscreen {
  bottom: 0;
  height: calc(100% - 44px);
}

.chats-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chats-header {
  background: #1f2937 !important;
  padding: 16px 16px 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f9fafb;
  border-bottom: 1px solid #374151;
}

.chats-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #f9fafb;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  background: none;
  border: none;
  color: #f9fafb;
  font-size: 16px;
  padding: 6px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-bar {
  background: #1f2937 !important;
  padding: 8px 16px 16px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #374151;
}

.search-input {
  flex: 1;
  background: #374151;
  border-radius: 20px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input i {
  color: #9ca3af;
  font-size: 14px;
}

.search-input input {
  background: none;
  border: none;
  color: #f9fafb;
  font-size: 14px;
  outline: none;
  flex: 1;
}

.search-input input::placeholder {
  color: #9ca3af;
}

.filter-btn {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chats-list {
  flex: 1;
  background: #0f172a !important;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.chats-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #374151;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-item:hover {
  background: #374151;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-avatar i {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00a884;
  color: white;
  font-size: 20px;
  border-radius: 50%;
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-size: 16px;
  font-weight: 500;
  color: #f9fafb;
  margin-bottom: 2px;
}

.chat-last-message {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.chat-time {
  font-size: 12px;
  color: #9ca3af;
}

.unread-badge {
  background: #00a884;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Bottom Tab Bar */
.bottom-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8e8e93;
  font-size: 10px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tab-item.active {
  color: #ffffff;
}

.tab-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.tab-item span {
  font-size: 10px;
  font-weight: 500;
}

/* Home Indicator */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

/* App Opening Animation */
.app-opening {
  animation: appOpen 0.3s ease-out;
}

@keyframes appOpen {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Sequence Animation */
.sequence-active {
  animation: sequencePulse 1s ease-in-out infinite;
}

@keyframes sequencePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
  }
}

/* Splash Screen */
.splash-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  border-radius: 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.splash-screen.active {
  display: flex;
}

.splash-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: splashPulse 1s ease-in-out infinite;
}

.splash-icon svg {
  width: 40px;
  height: 40px;
}

.splash-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.splash-subtitle {
  color: #8e8e93;
  font-size: 14px;
}

@keyframes splashPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsive */
@media (max-width: 400px) {
  .phone-container {
    width: 100%;
    max-width: 375px;
    height: 100vh;
    max-height: 812px;
  }

  .app-grid {
    gap: 20px;
  }

  .app-icon-bg {
    width: 60px;
    height: 60px;
  }

  .app-icon-bg i {
    font-size: 28px;
  }
}
