* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #f5f5f5;
  background:
    radial-gradient(circle at top left, rgba(180, 0, 0, 0.36), transparent 34%),
    linear-gradient(135deg, #030303, #090000 60%, #030303);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.support {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 34px 16px;
}

.top,
.card {
  border: 1px solid rgba(255, 0, 0, 0.26);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 34px rgba(160, 0, 0, 0.16);
  border-radius: 28px;
  padding: 26px;
}

.card {
  margin-top: 22px;
}

.brand {
  color: #ff3333;
  font-weight: 900;
  letter-spacing: 4px;
  font-size: 14px;
}

h1 {
  margin: 12px 0 8px;
  font-size: 44px;
}

h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

p {
  color: #aaa;
  line-height: 1.5;
}

input,
textarea {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 0, 0, 0.25);
  background: #070707;
  color: #fff;
  font: inherit;
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  padding: 15px 22px;
  font-weight: 900;
  cursor: pointer;
  color: white;
  background: #c40000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.34);
}

button.dark {
  background: #151515;
  border: 1px solid rgba(255, 0, 0, 0.35);
  box-shadow: none;
}

.hidden {
  display: none;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.messages {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 440px;
  overflow-y: auto;
}

.msg {
  padding: 14px 16px;
  border-radius: 18px;
  max-width: 82%;
  line-height: 1.45;
  word-break: break-word;
}


.messages .msg.client {
  align-self: flex-end;
  margin-left: auto;
  background: rgba(196, 0, 0, 0.38);
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.messages .msg.support {
  align-self: flex-start;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}


.msg small {
  display: block;
  margin-bottom: 6px;
  color: #aaa;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.send-row {
  margin-top: 18px;
}

.hint {
  min-height: 22px;
  color: #ffb3b3;
}

@media (max-width: 560px) {
  .support {
    padding: 14px 8px;
  }

  .top,
  .card {
    padding: 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: 32px;
  }

  .chat-head {
    flex-direction: column;
  }

  button,
  button.dark {
    width: 100%;
  }

  .msg {
    max-width: 95%;
  }
}
.tickets {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 0, 0, 0.22);
  cursor: pointer;
}

.ticket:hover {
  background: rgba(196, 0, 0, 0.18);
}

.ticket-title {
  font-weight: 900;
  font-size: 18px;
  color: #fff;
}

.ticket-meta {
  margin-top: 6px;
  color: #aaa;
  font-size: 14px;
}

.ticket-last {
  margin-top: 10px;
  color: #ddd;
  line-height: 1.4;
}

.empty {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #bbb;
}


.messages .msg.from-support {
  align-self: flex-start;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}