/* TicTacArena — Support Center */
.support-page {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.support-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid #dce4ef;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(65, 105, 225, .17), transparent 48%),
    linear-gradient(165deg, #ffffff 0%, #f7fbff 62%, #f1f7ff 100%);
  box-shadow: 0 12px 30px rgba(35, 24, 58, .06);
}

.support-hero::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(22, 168, 117, .07);
  pointer-events: none;
}

.support-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border: 1px solid #dce7fb;
  border-radius: 15px;
  color: #4169e1;
  background: #eef4ff;
}

.support-hero-copy {
  flex: 1;
  min-width: 0;
}

.support-hero h1 {
  margin: 0 0 4px;
  color: #252a34;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.support-hero p {
  margin: 0;
  color: #626d7d;
  font-size: .8rem;
  line-height: 1.55;
}

.support-new-btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: .78rem;
  border-radius: 11px;
}

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

.support-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.support-filters::-webkit-scrollbar {
  display: none;
}

.support-filter {
  flex-shrink: 0;
  padding: 6px 13px;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  color: #626d7d;
  background: rgba(255, 255, 255, .7);
  font-size: .72rem;
  font-weight: 700;
  transition: .18s ease;
}

.support-filter:hover {
  color: #4169e1;
  border-color: #c7d5f3;
}

.support-filter.is-active {
  color: #fff;
  border-color: #4169e1;
  background: linear-gradient(135deg, #4169e1, #328dce);
  box-shadow: 0 5px 14px rgba(65, 105, 225, .22);
}

.support-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  color: #626d7d;
  background: rgba(255, 255, 255, .7);
  transition: .18s ease;
}

.support-refresh:hover {
  color: #4169e1;
  border-color: #c7d5f3;
  background: #fff;
}

.support-refresh.is-spinning [data-icon] {
  animation: supportSpin .8s linear infinite;
}

@keyframes supportSpin {
  to { transform: rotate(360deg); }
}

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

.support-ticket {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 13px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  color: #252a34;
  text-align: left;
  background: linear-gradient(165deg, #ffffff 0%, #f9fcff 70%, #f5f9ff 100%);
  box-shadow: 0 5px 16px rgba(35, 24, 58, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.support-ticket:hover {
  transform: translateY(-1px);
  border-color: #c7d5f3;
  box-shadow: 0 9px 24px rgba(65, 105, 225, .09);
}

.support-ticket-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eef4ff;
  color: #4169e1;
}

.support-ticket-icon.is-progress {
  background: #fff7e6;
  color: #b7791f;
}

.support-ticket-icon.is-closed {
  background: #e9fbf3;
  color: #0f7b5a;
}

.support-ticket-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.support-ticket-subject {
  overflow: hidden;
  color: #252a34;
  font-size: .83rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-ticket-meta {
  overflow: hidden;
  color: #8993a1;
  font-size: .66rem;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.support-status.is-open {
  color: #2f4fc4;
  background: #eef3ff;
  border: 1px solid #dbe5ff;
}

.support-status.is-progress {
  color: #9a620c;
  background: #fff8e8;
  border: 1px solid #f6e7c5;
}

.support-status.is-closed {
  color: #0f7b5a;
  background: #ecfbf5;
  border: 1px solid #c8ecdf;
}

.support-chevron {
  display: inline-flex;
  color: #a4adbb;
}

.support-skeleton {
  height: 66px;
  border: 1px solid #e8eef7;
  border-radius: 16px;
  background: linear-gradient(100deg, #f7faff 15%, #ffffff 38%, #f7faff 60%);
  background-size: 220% 100%;
  animation: supportShimmer 1.2s ease-in-out infinite;
}

@keyframes supportShimmer {
  to { background-position: -220% 0; }
}

.support-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 24px;
  border: 1px dashed #d7e2f3;
  border-radius: 20px;
  background: rgba(255, 255, 255, .6);
  text-align: center;
}

.support-empty.is-compact {
  padding: 28px 20px;
}

.support-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 11px;
  border: 1px solid #dce7fb;
  border-radius: 16px;
  color: #4169e1;
  background: #eef4ff;
}

.support-empty-icon.is-error {
  color: #b42335;
  border-color: #f3c3cc;
  background: #fff5f6;
}

.support-empty h2 {
  margin: 0 0 5px;
  color: #252a34;
  font-size: .98rem;
  font-weight: 800;
}

.support-empty p {
  max-width: 340px;
  margin: 0 0 15px;
  color: #626d7d;
  font-size: .78rem;
  line-height: 1.55;
}

.support-empty .btn {
  font-size: .76rem;
  padding: 9px 16px;
}

.support-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  padding: 6px 9px 6px 4px;
  border-radius: 8px;
  color: #626d7d;
  font-size: .73rem;
  font-weight: 700;
}

.support-back:hover {
  color: #4169e1;
  background: #eef4ff;
}

.support-detail-card {
  padding: 20px;
  border: 1px solid #dce4ef;
  border-radius: 22px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fbff 65%, #f2f7ff 100%);
  box-shadow: 0 14px 34px rgba(35, 24, 58, .06);
}

.support-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8eef7;
}

.support-detail-head h1 {
  margin: 3px 0 4px;
  color: #252a34;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.support-detail-kicker {
  color: #4169e1;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.support-detail-meta {
  color: #8993a1;
  font-size: .68rem;
  line-height: 1.45;
}

.support-detail-head .support-status {
  margin-top: 2px;
  padding: 5px 9px;
}

.support-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 4px;
}

.support-message {
  padding: 12px 13px;
  border: 1px solid #e3eaf5;
  border-radius: 13px;
  background: #fbfdff;
}

.support-message.is-player {
  background: #f5f9ff;
  border-color: #dfe9f8;
}

.support-message.is-admin {
  margin-left: 14px;
  background: #f7fcf9;
  border-color: #d8eee4;
}

.support-message-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #8993a1;
  font-size: .61rem;
}

.support-message-head strong {
  color: #3d4653;
  font-size: .67rem;
  font-weight: 750;
}

.support-message-head span:last-child {
  margin-left: auto;
}

.support-message-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #4169e1;
  background: #e7eeff;
}

.support-message.is-admin .support-message-avatar {
  color: #0f7b5a;
  background: #e4f7ee;
}

.support-message p {
  margin: 0;
  color: #3d4653;
  font-size: .79rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.support-resolution {
  margin: 12px 0 2px;
  padding: 12px 13px;
  border: 1px solid #c8ecdf;
  border-radius: 12px;
  background: #effbf6;
}

.support-resolution strong {
  display: block;
  margin-bottom: 3px;
  color: #0f7b5a;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.support-resolution p {
  margin: 0;
  color: #3d5e51;
  font-size: .76rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.support-closed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #dce4ef;
  border-radius: 11px;
  color: #626d7d;
  background: rgba(255, 255, 255, .7);
  font-size: .74rem;
  line-height: 1.45;
}

.support-closed svg {
  flex-shrink: 0;
  color: #8993a1;
}

.support-reply {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid #e8eef7;
}

.support-reply label {
  display: block;
  margin-bottom: 6px;
  color: #3d4653;
  font-size: .75rem;
  font-weight: 750;
}

.support-reply textarea {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  padding: 10px 12px;
  font-size: .8rem;
  line-height: 1.5;
  background: #fff;
}

.support-reply-error,
.support-form-error {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #f3c3cc;
  border-radius: 9px;
  color: #b42335;
  background: #fff5f6;
  font-size: .72rem;
  font-weight: 600;
}

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

.support-reply-actions span {
  color: #8993a1;
  font-size: .64rem;
}

.support-reply-actions .btn {
  flex-shrink: 0;
  padding: 8px 13px;
  font-size: .72rem;
  border-radius: 9px;
}

.support-reply-actions .btn:disabled {
  opacity: .68;
  cursor: wait;
}

.support-footnote {
  margin: 15px 0 0;
  text-align: center;
  color: #8993a1;
  font-size: .7rem;
  line-height: 1.6;
}

.support-footnote a {
  color: #4169e1;
  font-weight: 700;
}

.support-footnote a:hover {
  text-decoration: underline;
}

/* New request modal */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-form-intro {
  margin: -2px 0 2px;
  color: #626d7d;
  font-size: .74rem;
  line-height: 1.5;
}

.support-form-intro strong {
  color: #3d4653;
}

.support-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.support-field label {
  color: #3d4653;
  font-size: .73rem;
  font-weight: 750;
}

.support-field .input-field {
  font-size: .8rem;
  padding: 10px 11px;
}

.support-field textarea.input-field {
  resize: vertical;
  min-height: 98px;
  line-height: 1.5;
}

.support-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.support-form-actions .btn {
  padding: 9px 14px;
  font-size: .74rem;
}

.support-form-actions .btn:disabled {
  opacity: .68;
  cursor: wait;
}

@media (min-width: 720px) {
  .support-page {
    padding-top: 24px;
  }

  .support-hero {
    padding: 26px 28px;
  }

  .support-hero h1 {
    font-size: 1.32rem;
  }

  .support-ticket {
    padding: 15px 16px;
  }

  .support-detail-card {
    padding: 26px 28px;
  }

  .support-message.is-admin {
    margin-left: 34px;
  }
}

@media (max-width: 520px) {
  .support-page {
    padding: 12px 12px 24px;
  }

  .support-hero {
    flex-wrap: wrap;
    padding: 17px;
    gap: 11px;
    border-radius: 18px;
  }

  .support-hero-copy {
    flex-basis: calc(100% - 62px);
  }

  .support-new-btn {
    width: 100%;
    margin-top: 2px;
  }

  .support-ticket {
    gap: 8px;
    padding: 11px 10px;
  }

  .support-ticket-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .support-detail-card {
    padding: 16px;
    border-radius: 18px;
  }

  .support-detail-head {
    flex-direction: column;
    gap: 7px;
  }

  .support-message.is-admin {
    margin-left: 0;
  }

  .support-reply-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-reply-actions .btn {
    width: 100%;
  }

  .support-form-actions .btn {
    flex: 1;
  }
}

.support-hero{
  border-radius:14px;
  border-color:#e4ebf5;
  background:#fff;
  box-shadow:0 1px 2px rgba(24,43,78,.04);
}
.support-hero::after{display:none}
.support-hero-icon{background:#edf3ff;color:#335fce;border-radius:12px}
