.phone-chat {
    max-width: 360px;
    margin: 30px auto;
    border: 2px solid #006b8f;
    border-radius: 2px;
    background: linear-gradient(180deg, #171e26 0%, #0a0f14 100%);
    box-shadow: 0 0 15px rgb(0 191 255 / 15%);
    font-family: 'Segoe UI', sans-serif;
    padding: 15px;
    color: #e0f7ff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 700px;
    overflow-y: auto;
    --sb-track-color: #0a0f14;
    --sb-thumb-color: #006b8f;
    --sb-size: 6px;
}

/* Webkit Scrollbar */
.phone-chat::-webkit-scrollbar {
    width: var(--sb-size);
}

.phone-chat::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 3px;
}

.phone-chat::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 3px;
}

/* Firefox */
@supports not selector(::-webkit-scrollbar) {
    .phone-chat {
        scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
        scrollbar-width: thin;
    }
}


.phone-header {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #00698c;
    margin-bottom: 10px;
    border-bottom: 1px solid #005470;
    padding-bottom: 5px;
}

  .chat-line {
    display: flex;
    align-items: flex-end;
    gap: 8px;
  }

  .chat-line.user {
    flex-direction: row-reverse;
  }

.chat-bubble {
    padding: 10px 15px;
    border-radius: 5px;
    max-width: 70%;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-bubble.user {
    background-color: rgba(0, 191, 255, 0.1);
    border: 1px solid #00bfff99;
}

  .chat-bubble.other {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #555;
  }

  .timestamp {
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    text-align: right;
  }

  .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #00bfff;
  }

.futuristic-chat {
    max-width: 80%;
    margin: 40px auto;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #0b0f14, #0d131a);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #00bfff33;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
    color: #e0f7ff;
}

  .message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
  }

  .message .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #00bfff66;
  }

  .message .content {
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid #00bfff22;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    position: relative;
  }

  .message .username {
    font-weight: bold;
    color: #00bfff;
    margin-bottom: 4px;
    font-size: 13px;
  }

  .message .text {
    font-size: 14px;
    line-height: 1.5;
  }

  .message .time {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
    text-align: right;
  }