/* Mesaj merkezi: sakin, okunaklı ve ürün bağlamını koruyan çalışma alanı. */
.messages-premium-head {
  min-height: 0;
  margin-top: 22px;
  padding: 18px 2px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.messages-premium-head::before,
.messages-premium-head::after { display: none !important; }

.messages-heading-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(145deg, #34425a, #273247);
  color: #dce7f7;
  box-shadow: 0 12px 30px rgba(5, 10, 20, .24), inset 0 1px rgba(255, 255, 255, .08);
}

.messages-heading-icon::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6de0bd;
  box-shadow: 0 0 0 4px rgba(109, 224, 189, .1), 0 0 14px rgba(109, 224, 189, .55);
}

.messages-heading-icon .nexus-line-icon { width: 24px; height: 24px; }
.messages-premium-head > div:nth-child(2) { min-width: 0; }
.messages-premium-head > div:nth-child(2) > span { color: #91a4c0; font-size: 12px; letter-spacing: .12em; }
.messages-premium-head h1 { margin: 4px 0 3px; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; }
.messages-premium-head p { margin: 0; color: #9eacc1; font-size: 14px; }
.messages-premium-head > a { margin-left: auto; border-radius: 8px; }

.messages-layout {
  display: grid;
  gap: 12px;
  padding-bottom: 38px;
}

.message-policy-banner {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 15px 18px;
  border: 0;
  border-left: 3px solid #d7aa58;
  border-radius: 5px;
  background: linear-gradient(100deg, rgba(76, 60, 35, .58), rgba(37, 43, 57, .96) 42%, rgba(31, 38, 52, .96));
  box-shadow: 0 12px 34px rgba(6, 10, 18, .15);
  animation: message-policy-arrive .36s ease both;
}

.message-policy-banner::after {
  content: "";
  position: absolute;
  right: 18%;
  top: -48px;
  width: 180px;
  height: 110px;
  background: radial-gradient(circle, rgba(222, 178, 94, .12), transparent 68%);
  pointer-events: none;
}

.message-policy-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(224, 181, 96, .12);
  color: #f0ca7c;
}

.message-policy-icon .nexus-line-icon { width: 21px; height: 21px; }
.message-policy-banner > div { min-width: 0; }
.message-policy-banner small { color: #e3bd70; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.message-policy-banner h2 { margin: 3px 0 2px; color: #f3f5f8; font-size: 16px; letter-spacing: -.01em; }
.message-policy-banner p { max-width: 850px; margin: 0; color: #b7c0cf; font-size: 13px; line-height: 1.48; }
.message-policy-banner ul { z-index: 1; display: grid; gap: 5px; min-width: 185px; margin: 0; padding: 0; list-style: none; }
.message-policy-banner li { position: relative; padding-left: 15px; color: #d6dde8; font-size: 12px; }
.message-policy-banner li::before { content: "•"; position: absolute; left: 0; color: #e1b962; }

.messages-hub { min-width: 0; }
.messages-hub .message-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 6px;
  background: #171d29;
}

.messages-hub .message-summary > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-height: 48px;
  padding: 12px 15px;
  border: 0;
  border-radius: 0;
  background: #202838;
}

.messages-hub .message-summary b { color: #f1f4f8; font-size: 18px; letter-spacing: -.02em; }
.messages-hub .message-summary span { color: #8e9cb1; font-size: 12px; }

.message-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 32%) minmax(0, 1fr);
  min-height: 660px;
  height: min(72vh, 780px);
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #1a2130;
  box-shadow: 0 22px 60px rgba(4, 9, 17, .28), 0 0 0 1px rgba(145, 164, 192, .08);
  animation: message-workspace-arrive .4s cubic-bezier(.2, .76, .25, 1) both;
}

.conversation-list {
  min-width: 0;
  padding: 0 7px 8px;
  overflow: auto;
  border: 0;
  border-right: 1px solid rgba(143, 159, 182, .11);
  background: #19202e;
  scrollbar-width: thin;
  scrollbar-color: #3e4b60 transparent;
}

.conversation-list-title {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  gap: 12px;
  padding: 18px 9px 13px;
  border: 0;
  background: rgba(25, 32, 46, .95);
  backdrop-filter: blur(18px);
}

.conversation-list-title > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.conversation-list-title > div:first-child b { color: #f2f5f9; font-size: 16px; }
.conversation-list-title > div:first-child small { color: #7f8da2; font-size: 12px; }
.message-list-tools { display: grid; gap: 9px; }
.message-list-tools > label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  height: 40px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: #242d3e;
  color: #8090a7;
}

.message-list-tools label .nexus-line-icon { width: 17px; height: 17px; }
.message-list-tools input { width: 100%; border: 0; outline: 0; background: transparent; color: #eef2f8; font-size: 13px; }
.message-list-tools input::placeholder { color: #77869b; }
.message-list-tools > div { display: flex; gap: 3px; }
.message-list-tools button {
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #8795a9;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.message-list-tools button[aria-pressed="true"] { background: #2c374b; color: #e7edf6; }

.conversation-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 76px;
  margin: 3px 0;
  padding: 11px 10px;
  border: 0;
  border-radius: 6px;
  color: #eef2f8;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.conversation-card::before { display: none; }
.conversation-card:hover { background: #222b3b; transform: translateX(2px); }
.conversation-card.active { background: linear-gradient(100deg, #2d3c52, #263144); box-shadow: inset 3px 0 #88a8d8; }
.conversation-card.unread:not(.active) { background: rgba(105, 139, 190, .07); }
.conversation-card > img { width: 50px; height: 50px; border: 0; border-radius: 10px; object-fit: cover; background: #2c374a; }
.conversation-card > div { min-width: 0; display: grid; gap: 4px; }
.conversation-card > div > span { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.conversation-card b, .conversation-card small, .conversation-card p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-card b { color: #edf1f7; font-size: 13px; }
.conversation-card time { flex: none; color: #738197; font-size: 11px; }
.conversation-card small { color: #a7b8d1; font-size: 12px; }
.conversation-card p { margin: 0; color: #8492a6; font-size: 12px; }
.conversation-card > i { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #8db0dd; color: #142033; font-size: 11px; font-style: normal; font-weight: 800; }

.message-thread {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  background: #202838;
}

.message-thread::before {
  content: "";
  position: absolute;
  inset: 74px 0 0;
  opacity: .35;
  background-image: radial-gradient(circle at center, rgba(141, 160, 187, .12) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.message-thread-head {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 12px 18px;
  border: 0;
  background: rgba(30, 38, 53, .96);
  box-shadow: 0 1px rgba(149, 166, 190, .09);
}

.message-thread-product { min-width: 0; display: flex; align-items: center; gap: 12px; }
.message-thread-product img { width: 49px; height: 49px; border: 0; border-radius: 10px; object-fit: cover; box-shadow: 0 7px 18px rgba(3, 8, 15, .24); }
.message-thread-product > div { min-width: 0; }
.message-thread-product small { color: #86a7d5; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.message-thread-product h2 { margin: 3px 0 2px; color: #f0f4fa; font-size: 16px; letter-spacing: -.01em; }
.message-thread-product a { display: block; overflow: hidden; color: #8f9eb2; font-size: 12px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.message-thread-product a:hover { color: #cbd8e9; }
.message-thread-actions { display: flex; align-items: center; gap: 7px; }
.message-safety-menu > summary, .message-close-btn, .message-closed-chip { border: 0; border-radius: 6px; background: #293346; font-size: 12px; }

.message-thread-body {
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  max-height: none;
  padding: 25px 28px;
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #435067 transparent;
}

.message-bubble-line { position: relative; display: flex; padding-left: 32px; animation: message-bubble-arrive .24s ease both; }
.message-bubble-line.mine { justify-content: flex-end; padding-right: 32px; padding-left: 0; }
.message-bubble-line::before {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, #45546a, #303b4e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.message-bubble-line.mine::before { right: 3px; left: auto; background: linear-gradient(145deg, #6682a6, #455d7b); }
.message-bubble-line::after { content: ""; position: absolute; left: 10px; bottom: 10px; width: 8px; height: 8px; border-radius: 50%; background: #9dafc7; }
.message-bubble-line.mine::after { right: 10px; left: auto; background: #e0e9f5; }
.message-bubble { max-width: min(72%, 620px); padding: 11px 14px 9px; border: 0; border-radius: 5px 14px 14px 14px; background: #2b3547; box-shadow: 0 8px 24px rgba(4, 9, 17, .13); }
.message-bubble-line.mine .message-bubble { border: 0; border-radius: 14px 5px 14px 14px; background: linear-gradient(145deg, #405975, #354b65); }
.message-bubble small { color: #a9bdd9; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.message-bubble p { margin: 5px 0 6px; color: #f0f3f8; font-size: 15px; line-height: 1.52; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-bubble time { display: block; color: #8795a9; font-size: 10px; text-align: right; }
.message-bubble-line.mine time { color: #acbdd2; }

.message-compose {
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 13px 16px 15px;
  border: 0;
  background: rgba(26, 33, 47, .98);
  box-shadow: 0 -1px rgba(148, 164, 186, .08);
}
.message-compose textarea { width: 100%; min-height: 70px; max-height: 150px; padding: 13px 14px; resize: vertical; border: 0; border-radius: 8px; outline: 0; background: #242e40; color: #f1f4f9; font: inherit; font-size: 14px; line-height: 1.5; box-shadow: inset 0 0 0 1px rgba(146, 164, 190, .1); }
.message-compose textarea:focus { border: 0; box-shadow: inset 0 0 0 1px #7896bf, 0 0 0 3px rgba(120, 150, 191, .11); }
.message-compose > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.message-compose p { margin: 0; color: #77869b; font-size: 11px; line-height: 1.45; }
.message-compose p span { color: #8db6df; }
.message-send-button { min-width: 110px; min-height: 39px; border: 0; border-radius: 7px; background: linear-gradient(135deg, #7899c8, #6685b2); color: #fff; font-size: 13px; font-weight: 750; cursor: pointer; box-shadow: 0 8px 20px rgba(38, 67, 107, .22); transition: transform .18s ease, filter .18s ease; }
.message-send-button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.message-thread-empty { z-index: 1; min-height: 100%; }
.message-thread-empty > span { border: 0; border-radius: 12px; background: #2a3548; color: #aac2e1; }
.message-thread-empty h2 { font-size: 20px; }
.message-thread-empty p { max-width: 370px; color: #8795aa; font-size: 13px; }
.message-search-empty { padding: 20px 12px; color: #7f8da2; font-size: 13px; text-align: center; }

@keyframes message-policy-arrive { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes message-workspace-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes message-bubble-arrive { from { opacity: 0; transform: translateY(4px) scale(.99); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .message-policy-banner { grid-template-columns: 42px minmax(0, 1fr); }
  .message-policy-banner ul { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message-workspace { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .messages-premium-head { align-items: flex-start; }
  .messages-premium-head > a { width: auto; margin-left: 0; }
  .message-policy-banner { padding: 14px; }
  .message-policy-banner ul { grid-column: 1 / -1; }
  .messages-hub .message-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message-workspace { height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: 250px minmax(560px, 72vh); }
  .conversation-list { display: block; max-height: 250px; border: 0; border-bottom: 1px solid rgba(143, 159, 182, .11); }
  .message-thread-body { max-height: none; padding: 20px 15px; }
  .message-thread-head { align-items: flex-start; }
  .message-bubble { max-width: 86%; }
}

@media (max-width: 520px) {
  .messages-premium-head { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .messages-heading-icon { width: 46px; height: 46px; }
  .messages-premium-head > a { grid-column: 1 / -1; justify-self: start; }
  .message-policy-banner { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .message-policy-icon { width: 36px; height: 36px; }
  .message-policy-banner li { font-size: 11px; }
  .messages-hub .message-summary > div { min-height: 44px; padding: 10px 11px; }
  .message-thread-head { display: grid; padding: 12px; }
  .message-thread-actions { justify-content: flex-start; }
  .message-bubble-line { padding-left: 0; }
  .message-bubble-line.mine { padding-right: 0; }
  .message-bubble-line::before, .message-bubble-line::after { display: none; }
  .message-bubble { max-width: 91%; }
  .message-compose > div { align-items: stretch; flex-direction: column; }
  .message-send-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .message-policy-banner, .message-workspace, .message-bubble-line { animation: none; }
  .conversation-card, .message-send-button { transition: none; }
}
