* {
  box-sizing: border-box;
}

body {
  margin: 0;

  min-height: 100vh;

  font-family:
    Arial,
    "Noto Sans Arabic",
    sans-serif;

  background: #f6faff;

  color: #10233f;

  overflow-x: hidden;
}


/* الخلفية */

body::before {
  content: "";

  position: fixed;

  width: 400px;
  height: 400px;

  top: -180px;
  right: -100px;

  border-radius: 50%;

  background: #168cff;

  opacity: 0.12;

  filter: blur(100px);

  z-index: -1;
}


/* Header */

header {

  height: 75px;

  padding: 0 7%;

  display: flex;

  align-items: center;

  justify-content: space-between;

  background: rgba(255,255,255,0.85);

  backdrop-filter: blur(15px);

  border-bottom:
    1px solid #e2edf7;

  position: sticky;

  top: 0;

  z-index: 10;
}


.brand {

  display: flex;

  align-items: center;

  gap: 12px;
}


.logo {

  width: 44px;
  height: 44px;

  display: grid;

  place-items: center;

  border-radius: 13px;

  color: white;

  font-weight: 900;

  background:
    linear-gradient(
      135deg,
      #087cff,
      #45b7ff
    );

  box-shadow:
    0 10px 25px
    rgba(8,124,255,0.25);
}


.brand h2 {

  margin: 0;

  font-size: 18px;
}


.brand span {

  display: block;

  margin-top: 3px;

  color: #8495aa;

  font-size: 11px;
}


.status {

  color: #657991;

  font-size: 12px;
}


.status i {

  display: inline-block;

  width: 7px;
  height: 7px;

  margin-left: 5px;

  border-radius: 50%;

  background: #20c878;
}


/* Main */

main {

  width: 100%;

  max-width: 1050px;

  margin: auto;

  padding:
    60px 20px;
}


/* Hero */

.hero {

  text-align: center;

  padding-bottom: 45px;
}


.badge {

  display: inline-block;

  padding:
    9px 16px;

  border-radius: 50px;

  background: white;

  border:
    1px solid #dceafa;

  color: #087cff;

  font-size: 12px;
}


.hero h1 {

  margin:
    22px 0 12px;

  font-size:
    clamp(35px, 7vw, 62px);

  letter-spacing: -2px;
}


.hero h1 span {

  color: #087cff;
}


.hero p {

  max-width: 600px;

  margin: auto;

  color: #6d8098;

  line-height: 2;

  font-size: 15px;
}


.hero button {

  margin-top: 25px;

  padding:
    14px 23px;

  border: none;

  border-radius: 13px;

  background: #087cff;

  color: white;

  font-weight: bold;

  cursor: pointer;

  box-shadow:
    0 12px 30px
    rgba(8,124,255,0.25);
}


/* Chat */

.chat {

  background: white;

  border:
    1px solid #dfebf6;

  border-radius: 24px;

  overflow: hidden;

  box-shadow:
    0 30px 80px
    rgba(20,70,120,0.1);
}


.chat-header {

  height: 70px;

  padding: 0 20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom:
    1px solid #edf3f8;
}


.chat-header strong {

  display: block;

  font-size: 14px;
}


.chat-header small {

  display: block;

  margin-top: 4px;

  color: #8192a8;

  font-size: 11px;
}


.new-chat {

  width: 36px;
  height: 36px;

  border: none;

  border-radius: 11px;

  background: #edf7ff;

  color: #087cff;

  font-size: 20px;

  cursor: pointer;
}


/* Messages */

.messages {

  height: 390px;

  padding: 25px;

  overflow-y: auto;
}


.message {

  display: flex;

  gap: 10px;

  align-items: flex-start;

  margin-bottom: 20px;

  font-size: 14px;

  line-height: 1.8;
}


.avatar {

  width: 33px;
  height: 33px;

  flex-shrink: 0;

  display: grid;

  place-items: center;

  border-radius: 10px;

  background: #087cff;

  color: white;

  font-size: 9px;

  font-weight: bold;
}


.bubble {

  max-width: 80%;

  padding:
    10px 14px;

  border-radius: 14px;

  background: #f3f8fd;
}


/* Input */

.input-box {

  display: flex;

  gap: 8px;

  margin:
    0 16px 8px;

  padding: 8px;

  border:
    1px solid #dceaf7;

  border-radius: 16px;

  background: #fbfdff;
}


textarea {

  flex: 1;

  resize: none;

  border: none;

  outline: none;

  background: transparent;

  font-family: inherit;

  font-size: 14px;

  padding: 8px;
}


.send {

  width: 43px;
  height: 43px;

  border: none;

  border-radius: 12px;

  background: #087cff;

  color: white;

  font-size: 18px;

  cursor: pointer;
}


.hint {

  padding:
    8px 10px 14px;

  text-align: center;

  color: #9aabc0;

  font-size: 10px;
}


/* Footer */

footer {

  text-align: center;

  color: #8da0b8;

  font-size: 11px;

  padding: 20px;
}


/* Mobile */

@media (max-width: 600px) {

  header {

    padding:
      0 18px;
  }

  .status {

    display: none;
  }

  main {

    padding:
      35px 12px;
  }

  .hero h1 {

    letter-spacing: -1px;
  }

  .messages {

    height: 350px;
  }

  .chat {

    border-radius: 19px;
  }
}