/* support + support desk */
.support-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.support-ticket-page-main {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.support-page.support-page-ticket {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  padding: 20px 0;
  max-width: 1200px;
  width: 100%;
}

.support-hero {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 165, 0, 0.18);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 18px;
}

.support-hero h1 {
  margin: 0 0 6px 0;
  color: #ffcc66;
  font-size: 28px;
}

.support-hero p {
  margin: 0;
  color: #c9c9c9;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.support-grid > * {
  min-width: 0;
}

.support-grid-desk {
  margin-top: 18px;
}

.support-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 165, 0, 0.18);
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
}

.support-card h3 {
  margin: 0 0 12px 0;
  color: #ffcc66;
}

.support-faq {
  margin: 0 0 14px 0;
  padding-left: 16px;
  color: #d0d0d0;
}

.support-faq li {
  margin-bottom: 8px;
}

.support-links {
  display: flex;
  gap: 10px;
}

.support-links a {
  color: #ffcc66;
  text-decoration: none;
  border: 1px solid rgba(255, 165, 0, 0.25);
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 165, 0, 0.08);
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-attach-hint {
  color: #bdbdbd;
  font-size: 13px;
}

.support-limit-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 165, 0, 0.22);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.support-limit-progress-bar {
  height: 100%;
  width: 0%;
  background: #32c36a;
  transition: width 0.2s ease, background 0.2s ease;
}

.support-limit-counter {
  margin-top: -2px;
  color: #a9a9a9;
  font-size: 13px;
}

.support-attach-row {
  margin-top: -2px;
}

.support-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.support-photo-slot {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px dashed rgba(255, 165, 0, 0.5);
  background: rgba(15, 15, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.2s;
}

.support-photo-slot:hover {
  border-color: #ffa500;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.support-photo-plus {
  font-size: 32px;
  color: #ffa500;
  line-height: 1;
}

.support-photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.support-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(220, 53, 69, 0.95);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.support-photo-remove:hover {
  background: #ff4d4d;
  transform: scale(1.05);
  box-shadow: 0 0 6px rgba(255, 77, 77, 0.8);
}

.support-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-form-actions button[type="submit"] {
  flex: 1;
}

.support-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e0e0e0;
  font-size: 14px;
}

.support-form input,
.support-form textarea,
.support-form select {
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 10px 12px;
  outline: none;
}

.field-error {
  border-color: #ff4d4d !important;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.6) !important;
}

.support-form button:not(.support-attach-btn):not(.support-chat-send),
.support-close-form button,
.support-feedback-form button,
.support-close-footer button {
  border: 1px solid rgba(255, 165, 0, 0.25);
  background: rgba(255, 165, 0, 0.15);
  color: #ffcc66;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.support-form button:not(.support-attach-btn):not(.support-chat-send):hover,
.support-close-form button:hover,
.support-feedback-form button:hover,
.support-close-footer button:hover {
  background: rgba(255, 165, 0, 0.25);
}

.support-list-card {
  margin-top: 18px;
}

.support-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-ticket-list-scroll-5 {
  --support-ticket-row-h: 96px;
  max-height: 520px !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.support-ticket-list-scroll-5 .support-ticket-item {
  min-height: var(--support-ticket-row-h);
  max-height: var(--support-ticket-row-h);
  flex: 0 0 var(--support-ticket-row-h);
  box-sizing: border-box;
}

.support-ticket-list-scroll-5 .support-ticket-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-ticket-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  position: relative;
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 165, 0, 0.15);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.support-ticket-item-static {
  text-decoration: none;
  overflow: hidden;
}

.support-ticket-item-assigned {
  overflow: visible;
}

.support-ticket-open-btn {
  all: unset;
  display: block;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  cursor: pointer;
}

.support-ticket-item:hover {
  border-color: rgba(255, 165, 0, 0.35);
}

.support-ticket-item-clickable {
  cursor: pointer;
}

.support-ticket-main {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.support-ticket-main-with-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

.support-ticket-main-text {
  min-width: 0;
}

.support-ticket-main-link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.support-ticket-mini-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  border: 0;
  display: block;
}

.support-ticket-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.support-ticket-avatar-link {
  display: block;
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  text-decoration: none;
  flex: 0 0 auto;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  line-height: 0;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-ticket-avatar-link:hover,
.support-ticket-avatar-link:focus,
.support-ticket-avatar-link:active {
  background: transparent !important;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.4) !important;
  transform: scale(1.06);
  z-index: 3;
  outline: none;
}

.support-ticket-avatar-link.is-disabled {
  pointer-events: none;
}

.support-ticket-hidden-message {
  display: none;
}

.support-ticket-title {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: #f7f7f7;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-ticket-kind {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  border: 1px solid rgba(255, 170, 0, 0.28);
  color: #ffd7a0;
  background: rgba(255, 170, 0, 0.14);
  vertical-align: middle;
}

.support-ticket-kind.support-ticket-kind-chat {
  border-color: rgba(120, 210, 255, 0.42);
  color: #b9ecff;
  background: rgba(70, 165, 216, 0.18);
}

.support-ticket-kind.support-ticket-kind-report {
  border-color: rgba(255, 120, 120, 0.45);
  color: #ffd3d3;
  background: rgba(170, 45, 45, 0.22);
}

.support-ticket-kind.support-ticket-kind-support {
  border-color: rgba(255, 196, 76, 0.5);
  color: #ffe3a3;
  background: rgba(168, 112, 16, 0.24);
}

.support-ticket-sub {
  margin-top: 4px;
  color: #bdbdbd;
  font-size: 13px;
}

.support-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: middle;
}

.support-rating-star {
  font-size: 18px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
}

.support-rating-star.filled {
  color: #f5bc48;
  text-shadow: 0 0 6px rgba(245, 188, 72, 0.28);
}

.support-ticket-summary {
  margin-top: 6px;
  color: #d8d8d8;
  font-size: 13px;
}

.support-status {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 165, 0, 0.3);
  color: #ffcc66;
  text-transform: lowercase;
  white-space: nowrap;
}

.support-ticket-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.support-ticket-unread {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: #1b1407;
  background: #f0b94f;
  box-shadow: 0 0 0 1px rgba(255, 165, 0, 0.45) inset;
  white-space: nowrap;
}

.support-status-new {
  border-color: rgba(255, 165, 0, 0.4);
  color: #ffcc66;
}

.support-status-in_progress {
  border-color: rgba(70, 170, 255, 0.4);
  color: #8fc9ff;
}

.support-status-closed {
  border-color: rgba(255, 90, 90, 0.55);
  color: #ff7d7d;
}

.support-claim-btn {
  border: 1px solid rgba(255, 165, 0, 0.3);
  background: rgba(255, 165, 0, 0.15);
  color: #ffcc66;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.support-empty {
  color: #a7a7a7;
  padding: 6px 2px;
}

.support-chat-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  border: 1px solid rgba(255, 165, 0, 0.18);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.support-chat-sidebar,
.support-chat-main {
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.22);
}

.support-chat-sidebar {
  border-right: 1px solid rgba(255, 165, 0, 0.16);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  height: 100%;
}

.support-chat-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  min-height: 88px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 170, 0, 0.12);
}

.support-chat-sidebar-title {
  color: #ffcc66;
  font-weight: 700;
}

.support-back-btn {
  text-decoration: none;
  color: #ffcc66;
  border: 1px solid rgba(255, 165, 0, 0.25);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
}

.support-chat-list {
  overflow: auto;
  flex: 1;
}

.support-chat-list .support-empty {
  padding: 12px 14px;
}

.support-chat-thread {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  background: transparent;
}

.support-chat-thread:hover {
  background: rgba(255, 170, 0, 0.06);
}

.support-chat-thread.active {
  border-color: rgba(255, 170, 0, 0.22);
  background: rgba(255, 170, 0, 0.10);
}

.support-chat-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.support-chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 0, 0.15);
  background: rgba(0, 0, 0, 0.25);
}

.support-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.support-chat-info {
  min-width: 0;
}

.support-chat-thread-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.support-chat-thread-id {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.support-chat-thread-time {
  opacity: 0.7;
  font-size: 12px;
  white-space: nowrap;
}

.support-thread-unread {
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #1b1407;
  background: #f0b94f;
  box-shadow: 0 0 0 1px rgba(255, 165, 0, 0.45) inset;
}

.support-chat-thread-title {
  color: #e8e8e8;
  margin-top: 5px;
  font-size: 13px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-chat-thread-sub {
  color: #aaa;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  height: 100%;
}

.support-chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 2px;
  font-size: 12px;
  color: rgba(255, 220, 160, 0.88);
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 200, 110, 0.98);
  animation: supportTypingBounce 1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: .12s; opacity: .75; }
.typing-dots span:nth-child(3) { animation-delay: .24s; opacity: .95; }

@keyframes supportTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-2px); opacity: 1; }
}

.support-chat-head {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 165, 0, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  box-sizing: border-box;
}

.support-chat-head > :first-child {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  overflow: hidden;
}

.support-chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.support-chat-title {
  display: block;
  width: 100%;
  max-width: 100%;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-chat-sub {
  color: #bdbdbd;
  margin-top: 4px;
  font-size: 13px;
}

.support-mark {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255, 165, 0, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  color: #ffcc66;
  margin-right: 6px;
}

.support-details-btn {
  border: 1px solid rgba(255, 165, 0, 0.3);
  background: rgba(255, 165, 0, 0.15);
  color: #ffcc66;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.support-details-btn:hover {
  background: rgba(255, 165, 0, 0.25);
}

.support-chat-messages {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-msg-row {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.support-msg-row.me {
  align-items: flex-end;
}

.support-msg-role {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 170, 0, 0.72);
  letter-spacing: 0.2px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.support-msg-row.me .support-msg-role {
  color: #ffcc66;
}

.support-msg-bubble {
  max-width: min(640px, 78%);
  border: 1px solid rgba(255, 170, 0, 0.16);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.support-msg-row.me .support-msg-bubble {
  background: rgba(255, 170, 0, 0.1);
  border-color: rgba(255, 170, 0, 0.28);
}

.support-msg-row:not(.me) .support-msg-bubble {
  border-color: rgba(255, 170, 0, 0.28);
}

.support-msg-meta {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(242, 242, 242, 0.52);
  text-align: right;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-msg-row:not(.me) .support-msg-meta {
  text-align: left;
}

.support-msg-checks {
  font-size: 11px;
  letter-spacing: -1px;
  user-select: none;
  transform: translateY(-0.5px);
  opacity: 0.92;
  color: rgba(242, 242, 242, 0.5);
}

.support-msg-row.me .support-msg-checks {
  color: rgba(245, 181, 68, 0.7);
  text-shadow: 0 0 10px rgba(245, 181, 68, 0.12);
}

.support-msg-text {
  color: #ececec;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-msg-date-divider {
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
  pointer-events: none;
}

.support-msg-date-divider span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.support-msg-image-link {
  display: inline-block;
  margin-top: 8px;
}

.support-msg-image {
  display: block;
  max-width: min(420px, 100%);
  max-height: 360px;
  border-radius: 10px;
  border: 1px solid rgba(255, 165, 0, 0.25);
}

.support-chat-form,
.support-close-form,
.support-feedback-form {
  border-top: 1px solid rgba(255, 165, 0, 0.14);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-close-form textarea,
.support-feedback-form textarea,
.support-feedback-form select {
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 10px 12px;
  outline: none;
}

.support-chat-form {
  display: grid;
  grid-template-columns: 44px 1fr 46px;
  align-items: center;
  gap: 10px;
}

.support-attach-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 170, 0, 0.22);
  background: rgba(0, 0, 0, 0.28);
  color: #ffd27a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  flex: 0 0 auto;
  padding: 0;
}

.support-attach-btn:hover {
  background: rgba(255, 170, 0, 0.08);
  border-color: rgba(255, 170, 0, 0.30);
}

.support-attach-btn.has-file {
  border-color: rgba(88, 199, 120, 0.6);
  color: #58c778;
}

.support-chat-input {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 170, 0, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  outline: none;
  min-width: 0;
}

.support-chat-send {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 170, 0, 0.22);
  background: rgba(255, 170, 0, 0.12);
  color: #ffd27a;
  cursor: pointer;
}

.support-chat-send:hover {
  background: rgba(255, 170, 0, 0.18);
}

.support-chat-send:disabled,
.support-chat-input:disabled,
.support-attach-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ===== Photo composer modal (same style as messages) ===== */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.photo-modal.is-open {
  display: flex;
}

.photo-card {
  width: min(720px, 96vw);
  max-height: min(86vh, 860px);
  border-radius: 18px;
  border: 1px solid rgba(255, 170, 0, 0.22);
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.photo-card-top {
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 170, 0, 0.12);
}

.photo-title {
  font-weight: 800;
  color: #ffd27a;
  letter-spacing: 0.2px;
}

.photo-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 170, 0, 0.22);
  background: rgba(0, 0, 0, 0.3);
  color: #ffd27a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.photo-close:hover {
  background: rgba(255, 170, 0, 0.1);
  border-color: rgba(255, 170, 0, 0.3);
}

.photo-preview {
  padding: 12px;
  overflow: auto;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview img {
  max-width: 100%;
  max-height: 56vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 170, 0, 0.16);
  background: rgba(0, 0, 0, 0.2);
}

.photo-bottom {
  padding: 12px;
  border-top: 1px solid rgba(255, 170, 0, 0.12);
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  align-items: center;
}

.photo-caption {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 170, 0, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  outline: none;
  min-width: 0;
}

.photo-send {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 170, 0, 0.22);
  background: rgba(255, 170, 0, 0.12);
  color: #ffd27a;
  cursor: pointer;
}

.photo-send:hover {
  background: rgba(255, 170, 0, 0.18);
}

.crop-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.crop-modal.show {
  display: flex;
}

.crop-window {
  background: #151515;
  border-radius: 16px;
  padding: 24px;
  width: 800px;
  height: 700px;
  max-width: 95vw;
  max-height: 95vh;
  box-shadow: 0 0 30px rgba(255, 165, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.crop-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #ffcc66;
}

.crop-image-wrapper {
  flex: 1;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.crop-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.crop-btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

.crop-btn.cancel {
  background: #333;
  color: #eee;
}

.crop-btn.cancel:hover {
  background: #444;
}

.crop-btn:not(.cancel) {
  background: rgb(255, 165, 0);
  color: #000;
}

.crop-btn:not(.cancel):hover {
  background: #d18800;
  transform: scale(1.03);
}

.crop-btn:hover {
  filter: brightness(1.05);
}

.support-closed-box {
  border-top: 1px solid rgba(255, 165, 0, 0.14);
  padding: 12px 14px;
}

.support-closed-title {
  color: #ffcc66;
  font-weight: 700;
  margin-bottom: 6px;
}

.support-closed-text {
  color: #ddd;
  white-space: pre-wrap;
}

.support-feedback-title {
  color: #ffcc66;
  font-weight: 700;
}

.support-feedback-form label {
  color: #d9d9d9;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.support-feedback-result {
  border-top: 1px solid rgba(255, 165, 0, 0.14);
  padding: 12px 14px;
  color: #ddd;
}

.support-feedback-line {
  margin: 0;
}

.support-feedback-line + .support-feedback-line {
  margin-top: 6px;
}

.support-feedback-stars {
  margin-left: 6px;
}

.support-feedback-comment-block {
  margin-top: 10px;
}

.support-feedback-comment-title {
  margin-bottom: 6px;
}

.support-feedback-comment-text {
  max-height: 140px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.support-close-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
}

.support-close-modal.is-open {
  display: flex;
}

.support-close-card {
  width: min(560px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 165, 0, 0.25);
  background: rgba(18, 18, 18, 0.98);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.support-queue-modal-card {
  width: min(680px, 100%);
}

.support-ticket-info-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.support-ticket-info-card .support-queue-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.support-queue-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 8px;
}

.support-queue-field {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 165, 0, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.support-queue-label {
  font-size: 12px;
  color: #a7a7a7;
  margin-bottom: 4px;
}

.support-queue-value {
  color: #f0f0f0;
  font-weight: 600;
}

.support-queue-message {
  white-space: pre-wrap;
  font-weight: 500;
}

.support-ticket-info-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
  width: 100%;
}

.support-ticket-info-photo-link {
  display: block;
  border: 1px solid rgba(255, 165, 0, 0.25);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  width: 100%;
  cursor: pointer;
}

.support-ticket-info-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.support-ticket-target-url {
  color: #9ac8ff;
  text-decoration: underline;
  word-break: break-all;
}

.support-ticket-target-url:hover {
  color: #b9dcff;
}

.support-photo-viewer-card {
  position: relative;
  width: min(92vmin, 1100px);
  height: min(92vmin, 1100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 165, 0, 0.3);
  background: rgba(10, 10, 12, 0.98);
  box-sizing: border-box;
}

.support-photo-viewer-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.support-photo-viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.support-queue-claim-btn {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 165, 0, 0.25);
  background: rgba(255, 165, 0, 0.15);
  color: #ffcc66;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

.support-queue-claim-btn:hover {
  background: rgba(255, 165, 0, 0.25);
}

.support-close-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 165, 0, 0.18);
}

.support-close-title {
  color: #ffcc66;
  font-weight: 700;
}

.support-close-x {
  border: 1px solid rgba(255, 165, 0, 0.25);
  background: rgba(255, 165, 0, 0.1);
  color: #ffcc66;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  transform: none !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.support-close-x:hover {
  background: rgba(255, 165, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.45);
  color: #ffe2a0;
  transform: none !important;
}

.support-close-x:active,
.support-close-x:focus-visible {
  transform: none !important;
}

#supportCloseFormModal {
  padding: 12px 14px;
}

#supportCloseSummaryInput {
  width: 100%;
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
}

.support-close-progress {
  margin-top: 8px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 165, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.support-close-progress-bar {
  height: 100%;
  width: 0%;
  background: #32c36a;
  transition: width 0.2s ease, background 0.2s ease;
}

.support-close-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.support-close-counter {
  color: #bdbdbd;
  font-size: 13px;
}

.support-close-footer button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-chat-layout {
    grid-template-columns: 1fr;
  }

  .support-chat-sidebar,
  .support-chat-main {
    max-height: none;
    min-height: 0;
  }
}

body.light-theme .support-hero,
body.light-theme .support-card,
body.light-theme .support-chat-sidebar,
body.light-theme .support-chat-main {
  background: #fff;
  border-color: #d6d6d6;
}

body.light-theme .support-chat-layout {
  border-color: #d6d6d6;
  background: #fff;
}

body.light-theme .support-chat-sidebar {
  border-right-color: #d6d6d6;
}

body.light-theme .support-chat-sidebar-head {
  border-bottom-color: #d6d6d6;
}

body.light-theme .support-hero h1,
body.light-theme .support-card h3,
body.light-theme .support-chat-title,
body.light-theme .support-chat-thread-id,
body.light-theme .support-ticket-title {
  color: #111;
}

body.light-theme .support-ticket-kind {
  border-color: #f0c889;
  background: #fff3da;
  color: #9a6400;
}

body.light-theme .support-ticket-kind.support-ticket-kind-chat {
  border-color: #86c9e8;
  background: #e9f7ff;
  color: #006f96;
}

body.light-theme .support-ticket-kind.support-ticket-kind-report {
  border-color: #e6a1a1;
  background: #ffecec;
  color: #a11f1f;
}

body.light-theme .support-ticket-kind.support-ticket-kind-support {
  border-color: #efcf86;
  background: #fff6df;
  color: #9a6400;
}

body.light-theme .support-hero p,
body.light-theme .support-faq,
body.light-theme .support-form label,
body.light-theme .support-chat-sub,
body.light-theme .support-chat-thread-sub,
body.light-theme .support-ticket-sub,
body.light-theme .support-empty,
body.light-theme .support-ticket-summary {
  color: #555;
}

body.light-theme .support-rating-star {
  color: #c9c9c9;
}

body.light-theme .support-rating-star.filled {
  color: #e4b000;
  text-shadow: none;
}

body.light-theme .support-form input,
body.light-theme .support-form textarea,
body.light-theme .support-form select,
body.light-theme .support-close-form textarea,
body.light-theme .support-feedback-form textarea,
body.light-theme .support-feedback-form select {
  background: #fff;
  color: #111;
  border-color: #bbb;
}

body.light-theme .support-form button:not(.support-attach-btn):not(.support-chat-send),
body.light-theme .support-close-form button,
body.light-theme .support-feedback-form button,
body.light-theme .support-claim-btn,
body.light-theme .support-back-btn,
body.light-theme .support-close-footer button {
  background: #f3f3f3;
  color: #111;
  border-color: #bbb;
}

body.light-theme .support-links a {
  color: #111;
  background: #f3f3f3;
  border-color: #bbb;
}

body.light-theme .support-attach-btn {
  background: #f3f3f3;
  color: #111;
  border-color: #bbb;
}

body.light-theme .support-attach-hint {
  color: #666;
}

body.light-theme .support-limit-progress {
  background: #fff;
  border-color: #bbb;
}

body.light-theme .support-limit-counter {
  color: #666;
}

body.light-theme .support-attach-row {
  color: #666;
}

body.light-theme .support-photo-slot {
  background: #fff;
  border-color: #bebebe;
}

body.light-theme .support-photo-plus {
  color: #000;
}

body.light-theme .support-photo-slot:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  border-color: #000;
}

body.light-theme .support-chat-input {
  background: #fff;
  color: #111;
  border-color: #bbb;
}

body.light-theme .support-ticket-item,
body.light-theme .support-chat-thread {
  background: #fafafa;
  border-color: #d6d6d6;
}

body.light-theme .support-ticket-item:hover,
body.light-theme .support-chat-thread:hover {
  background: #f2f2f2;
  border-color: #b9b9b9;
  box-shadow: 0 0 0 1px rgba(185, 185, 185, 0.45) inset;
}

body.light-theme .support-ticket-mini-avatar {
  border-color: #d6d6d6;
}

body.light-theme .support-ticket-avatar-link {
  transition: transform 0.22s ease;
}

body.light-theme .support-ticket-avatar-link:hover,
body.light-theme .support-ticket-avatar-link:focus,
body.light-theme .support-ticket-avatar-link:active {
  transform: scale(1.06) !important;
  box-shadow: none !important;
}

body.light-theme .support-ticket-avatar-link:hover .support-ticket-mini-avatar {
  box-shadow: none;
}

body.light-theme .support-chat-thread.active {
  background: #f4f4f4;
  border-color: #d6d6d6;
}

body.light-theme .support-chat-avatar {
  border-color: #d6d6d6;
  background: #fafafa;
}

body.light-theme .support-thread-unread {
  color: #fff;
  background: #e39a06;
  box-shadow: none;
}

body.light-theme .support-msg-bubble {
  background: #fff;
  border-color: #d6d6d6;
}

body.light-theme .support-msg-row.me .support-msg-bubble {
  background: #fff;
}

body.light-theme .support-msg-text,
body.light-theme .support-closed-text,
body.light-theme .support-feedback-result {
  color: #222;
}

body.light-theme .support-msg-meta {
  color: #777;
}

body.light-theme .support-msg-role {
  color: #444;
  text-shadow: none;
}

body.light-theme .support-chat-typing {
  color: #777;
}

body.light-theme .typing-dots span {
  background: #d79b15;
}

body.light-theme .support-msg-date-divider span {
  color: #666;
  background: #f3f3f3;
  border-color: #d6d6d6;
}

body.light-theme .support-mark {
  color: #111;
  border-color: #bbb;
}

body.light-theme .support-details-btn {
  background: #f3f3f3;
  color: #111;
  border-color: #bbb;
}

body.light-theme .support-details-btn:hover {
  background: #e9e9e9;
}

body.light-theme .support-close-card {
  background: #fff;
  border-color: #d6d6d6;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

body.light-theme .support-queue-field {
  background: #f7f7f7;
  border-color: #d6d6d6;
}

body.light-theme .support-queue-label {
  color: #666;
}

body.light-theme .support-queue-value {
  color: #111;
}

body.light-theme .support-ticket-info-photo-link {
  border-color: #d6d6d6;
  background: #fff;
}

body.light-theme .support-ticket-target-url {
  color: #245d9c;
}

body.light-theme .support-ticket-target-url:hover {
  color: #1d4d82;
}

body.light-theme .support-photo-viewer-card {
  border-color: #d6d6d6;
  background: #fff;
}

@media (max-width: 760px) {
  .support-ticket-info-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .support-ticket-info-photos {
    grid-template-columns: 1fr;
  }
}

body.light-theme .support-close-card-top {
  border-bottom-color: #dedede;
}

body.light-theme .support-close-title {
  color: #111;
}

body.light-theme .support-close-x {
  background: #f3f3f3;
  color: #111;
  border-color: #bbb;
}

body.light-theme .support-close-x:hover {
  background: #e8e8e8;
  border-color: #a9a9a9;
  color: #000;
  transform: none !important;
}

body.light-theme #supportCloseSummaryInput {
  background: #fff;
  color: #111;
  border-color: #bbb;
}

body.light-theme .support-close-progress {
  border-color: #bbb;
  background: #efefef;
}

body.light-theme .support-close-counter {
  color: #666;
}

body.light-theme .crop-window {
  background: #fff;
  box-shadow: none;
}

body.light-theme .crop-title {
  color: #000;
}

body.light-theme .crop-btn.cancel {
  background: #ddd;
  color: #000;
  border: 1px solid #bbb;
}

body.light-theme .crop-btn.cancel:hover {
  background: #bbb;
}

@media (max-width: 900px) {
  .crop-window {
    width: 90vw;
    height: 75vh;
  }
}
