/* Suport Aivor — UI premium (stil Riot / Discord) */

.support-page,
.support-shell {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1.25rem 4rem;
  box-sizing: border-box;
}

/* Submit / listă — puțin mai lat */
.support-shell.support-shell-v2 {
  max-width: 1080px;
}

.support-hero {
  margin-bottom: 1.75rem;
}

.support-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.support-hero .lead {
  margin: 0;
  color: #949ba4;
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.55;
}

.support-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.support-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.support-step.active {
  color: #e8eaff;
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.45);
}

.support-step.done {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.support-step-num {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.35);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

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

.support-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.support-panel-title {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #949ba4;
  font-weight: 600;
}

/* —— Selectoare categorie (carduri, nu <select> nativ) —— */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  color: #f2f3f5;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.12s, box-shadow 0.15s;
}

.category-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.category-card.selected {
  border-color: var(--cat-color, #5865f2);
  background: color-mix(in srgb, var(--cat-color, #5865f2) 14%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cat-color, #5865f2) 40%, transparent);
}

.category-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.category-card-label {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

.category-card-desc {
  font-size: 0.78rem;
  color: #949ba4;
  line-height: 1.4;
}

.subcategory-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subcategory-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: #f2f3f5;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  transition: all 0.15s ease;
}

.subcategory-chip::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 2px solid #6b7280;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.subcategory-chip:hover {
  border-color: rgba(88, 101, 242, 0.4);
  background: rgba(88, 101, 242, 0.08);
}

.subcategory-chip.selected {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.14);
}

.subcategory-chip.selected::before {
  border-color: #5865f2;
  background: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
}

.support-selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.selection-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #c7d2fe;
}

.selection-pill button {
  border: none;
  background: transparent;
  color: #a5b4fc;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0 0.15rem;
}

.selection-pill button:hover { color: #fff; }

/* —— Formular —— */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.support-field label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.support-field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #949ba4;
  font-weight: 600;
}

.support-field input[type="text"],
.support-field textarea,
.support-select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #16171f;
  color: #f2f3f5;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.support-field input:focus,
.support-field textarea:focus,
.support-select:focus {
  outline: none;
  border-color: rgba(88, 101, 242, 0.65);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.18);
}

.support-field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.55;
}

.support-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23949ba4'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.support-select option {
  background: #1a1b26;
  color: #f2f3f5;
}

.char-hint {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
}

.char-hint.warn { color: #fbbf24; }

/* File upload custom */
.file-drop {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.file-drop:hover,
.file-drop.dragover {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.06);
}

.file-drop input[type="file"] {
  display: none;
}

.file-drop-text {
  font-size: 0.88rem;
  color: #949ba4;
}

.file-drop-text strong { color: #a5b4fc; }

.support-img-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.support-img-preview figure {
  margin: 0;
  position: relative;
}

.support-img-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Aside tips */
.support-aside {
  position: sticky;
  top: 1rem;
}

.support-aside-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.support-aside-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.support-aside-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #949ba4;
  font-size: 0.84rem;
  line-height: 1.55;
}

.support-aside-card li { margin-bottom: 0.35rem; }

.support-aside-highlight {
  border-color: rgba(88, 101, 242, 0.35);
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.12), rgba(0, 0, 0, 0.2));
}

.support-aside-highlight p {
  margin: 0;
  font-size: 0.84rem;
  color: #b4bcc8;
  line-height: 1.5;
}

/* Buttons */
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.support-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.support-btn-primary {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

.support-btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(88, 101, 242, 0.4);
}

.support-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-btn-discord {
  background: #5865f2;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.form-error {
  background: rgba(237, 66, 69, 0.12);
  border: 1px solid rgba(237, 66, 69, 0.4);
  color: #fca5a5;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.support-signin {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 420px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.support-signin h1 { margin: 0 0 0.75rem; }
.support-signin p { color: #949ba4; margin-bottom: 1.25rem; }

/* Lista tickete — carduri */
.support-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.ticket-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ticket-card {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.ticket-card:hover {
  border-color: rgba(88, 101, 242, 0.4);
  background: rgba(88, 101, 242, 0.06);
  transform: translateX(2px);
}

.ticket-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.ticket-card-subject {
  font-weight: 600;
  font-size: 0.98rem;
  color: #f2f3f5;
}

.ticket-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: #949ba4;
}

.ticket-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.support-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #949ba4;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.support-empty p { margin: 0 0 1rem; }

/* Detaliu ticket — conversație */
.ticket-header-card {
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1.25rem;
}

.ticket-header-card h1 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
}

.ticket-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.ticket-meta-grid > div {
  min-width: 0;
}

.ticket-meta-grid dt {
  color: #6b7280;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.ticket-meta-grid dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.ticket-msg {
  display: flex;
  gap: 0.75rem;
  max-width: 92%;
}

.ticket-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.ticket-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.ticket-msg.staff .ticket-msg-avatar {
  background: rgba(88, 101, 242, 0.25);
}

.ticket-msg-bubble {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  line-height: 1.55;
  font-size: 0.92rem;
}

.ticket-msg.user .ticket-msg-bubble {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.25);
  border-bottom-right-radius: 4px;
}

.ticket-msg.staff .ticket-msg-bubble {
  border-bottom-left-radius: 4px;
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.06);
}

.ticket-msg-meta {
  font-size: 0.72rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.ticket-msg-attachments img {
  max-width: 220px;
  max-height: 180px;
  border-radius: 8px;
  margin-top: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}

.status-open { background: rgba(88, 101, 242, 0.2); color: #a5b0ff; }
.status-in_progress { background: rgba(240, 173, 78, 0.2); color: #f0ad4e; }
.status-waiting_user { background: rgba(34, 211, 238, 0.15); color: #67e8f9; }
.status-solved { background: rgba(87, 242, 135, 0.15); color: #86efac; }
.status-closed { background: rgba(156, 163, 175, 0.2); color: #d1d5db; }

.support-table-wrap { overflow-x: auto; }

.support-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.support-table th,
.support-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.support-table th {
  color: #949ba4;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.support-table a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 500;
}

.staff-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.staff-filters .support-select {
  width: auto;
  min-width: 140px;
}

.loading-skeleton {
  min-height: 280px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: support-shimmer 1.2s infinite;
}

@keyframes support-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.support-step-panel[hidden] { display: none !important; }

/* Layout staff — mai lat ca să încapă panoul lateral */
.support-shell.support-shell-staff {
  max-width: 1180px;
}
.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

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

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

.user-panel {
  position: sticky;
  top: 1rem;
  background: rgba(22, 24, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem;
}

.user-panel-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.user-panel-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(88, 101, 242, 0.5);
}

.user-panel-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(88, 101, 242, 0.15);
}

.user-panel-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #f2f3f5;
}

.user-panel-tag {
  font-size: 0.82rem;
  color: #949ba4;
}

.user-panel-stats {
  margin: 0.9rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.user-panel-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.user-panel-stats dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #949ba4;
}

.user-panel-stats dd {
  margin: 0;
  font-size: 0.86rem;
  color: #e3e5e8;
  text-align: right;
}

.user-panel-stats code {
  font-size: 0.78rem;
  color: #a5b4fc;
}

.user-panel-muted { color: #949ba4; font-size: 0.78rem; }

.user-panel-history {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.user-panel-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #949ba4;
  margin: 0 0 0.6rem;
}

.user-panel-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
  text-decoration: none;
  margin-bottom: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease;
}

.user-panel-ticket:hover { background: rgba(88, 101, 242, 0.12); }

.user-panel-ticket-subj {
  font-size: 0.82rem;
  color: #e3e5e8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Mesaje sistem în chat ── */
.ticket-msg-system {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 1.15rem 0;
  text-align: center;
}

.ticket-msg-system-card {
  max-width: 36rem;
  width: 100%;
  padding: 0.9rem 1.15rem;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.28);
  text-align: left;
}

.ticket-msg-system-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
}

.ticket-msg-system-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #e8eaed;
  white-space: pre-wrap;
}

.ticket-msg-system-inner {
  display: inline-block;
  max-width: 90%;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: #e8eaed;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  line-height: 1.45;
}

.ticket-msg-system-time {
  font-size: 0.72rem;
  color: #8b919a;
}

/* ── Formular submit — detalii tehnice ── */
.support-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

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

.support-panel-desc {
  font-size: 0.86rem;
  color: #949ba4;
  margin: -0.25rem 0 0.85rem;
}

.required-mark { color: #f87171; }

.env-preview-card {
  margin: 0.5rem 0 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.06);
  border: 1px solid rgba(88, 101, 242, 0.18);
}

.env-preview-title {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a5b4fc;
}

.env-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
}

@media (max-width: 520px) {
  .env-preview-grid { grid-template-columns: 1fr; }
}

.env-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.env-preview-row span:first-child { color: #949ba4; }
.env-preview-row span:last-child { color: #e3e5e8; text-align: right; }

.env-preview-note {
  margin: 0.6rem 0 0;
  font-size: 0.72rem;
  color: #6d7178;
}

/* ── Detalii tehnice ticket ── */
.ticket-tech-details {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ticket-tech-details summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a5b4fc;
  user-select: none;
}

.ticket-tech-grid {
  margin-top: 0.75rem;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.ticket-tech-grid > div {
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ticket-tech-grid dd,
.ticket-msg-bubble,
.user-panel-stats dd {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.ticket-msg-bubble {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Staff preluare ticket ── */
.staff-claim-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: -0.5rem 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.ticket-locked-banner {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(22, 24, 33, 0.6);
}

.ticket-back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #a5b4fc;
  text-decoration: none;
  font-size: 0.88rem;
}

.ticket-back-link:hover { text-decoration: underline; }

/* ── Banner agent responsabil (user) ── */
.ticket-assignee-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-size: 0.88rem;
  color: #d1fae5;
}

.ticket-assignee-banner strong { color: #86efac; display: block; }
.ticket-assignee-banner span { color: #949ba4; font-size: 0.82rem; }
.ticket-assignee-emoji { font-size: 1.5rem; }

.ticket-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ticket-id-code { font-size: 0.75rem; color: #949ba4; }

/* ── Staff sidebar ── */
.staff-sidebar { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }

.staff-sidebar-block {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.staff-sidebar-block:last-child { border-bottom: none; }

.staff-sidebar-title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #949ba4;
  font-weight: 600;
}

.staff-sidebar-hint {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  color: #6d7178;
  line-height: 1.4;
}

.staff-sidebar-claim {
  background: rgba(88, 101, 242, 0.08);
}

.staff-agent-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  margin-bottom: 0.75rem;
}

.staff-agent-emoji { font-size: 1.6rem; }
.staff-agent-name { font-weight: 700; color: #f2f3f5; font-size: 0.95rem; }
.staff-agent-role { font-size: 0.78rem; color: #949ba4; }

.staff-transfer-box {
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.staff-back-link {
  color: #a5b4fc;
  text-decoration: none;
  font-size: 0.88rem;
}

.staff-back-link:hover { text-decoration: underline; }

.staff-need-claim {
  border: 1px dashed rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
  border-radius: 12px;
}

.reply-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #a5b4fc;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  margin-bottom: 0.75rem;
}

.reply-agent-badge strong { color: #c7d2fe; }

/* ── Pagină guest ticket (link magic email) ── */
:root {
  --guest-accent: #7C4DFF;
  --guest-accent-soft: rgba(124, 77, 255, 0.14);
}

.guest-ticket-body {
  position: relative;
  background: #030508;
}

.guest-ticket-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(124, 77, 255, 0.14), transparent 55%),
    linear-gradient(rgba(124, 77, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 77, 255, 0.03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.guest-ticket-header {
  position: relative;
  z-index: 1;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(8px);
}

.guest-ticket-back {
  color: #c4b5fd;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.guest-ticket-back:hover { color: #e9d5ff; }

.guest-ticket-page {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 2rem));
  max-width: 960px;
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
  min-height: calc(100vh - 64px);
}

.guest-ticket-card {
  background: rgba(10, 14, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(124, 77, 255, 0.06) inset;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
}

.guest-ticket-hero {
  margin-bottom: 0.25rem;
}

.guest-ticket-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--guest-accent);
}

.guest-ticket-hero h1 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.85rem;
  max-width: 36rem;
}

.guest-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.75rem;
}

.guest-ticket-ref,
.guest-ticket-cat,
.guest-ticket-date {
  font-size: 0.82rem;
  color: #949ba4;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.guest-ticket-ref {
  color: #c4b5fd;
  border-color: rgba(124, 77, 255, 0.22);
  background: rgba(124, 77, 255, 0.1);
  font-weight: 600;
}

.guest-ticket-hint {
  font-size: 0.9rem !important;
  line-height: 1.55;
  color: #949ba4 !important;
  margin: 0 !important;
  max-width: 40rem;
}

.guest-ticket-thread-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 1.35rem 0 0.5rem;
  padding: 1.15rem 1.1rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: min(52vh, 520px);
  max-height: none;
  overflow-y: auto;
}

.guest-ticket-thread-wrap .ticket-thread,
.guest-ticket-thread {
  margin: 0;
  flex: 1;
}

.guest-ticket-thread .ticket-msg {
  max-width: min(85%, 640px);
}

.guest-ticket-thread .ticket-msg-bubble {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0.95rem 1.1rem;
}

.guest-ticket-thread .ticket-msg.staff .ticket-msg-bubble {
  border-color: rgba(124, 77, 255, 0.3);
  background: rgba(124, 77, 255, 0.12);
}

.ticket-msg-content { min-width: 0; flex: 1; }

.ticket-msg.staff .ticket-msg-avatar {
  background: rgba(124, 77, 255, 0.22);
}

.guest-ticket-reply {
  margin-top: 1.15rem;
  padding: 1.15rem 1.1rem;
  border-radius: 16px;
  background: rgba(124, 77, 255, 0.06);
  border: 1px solid rgba(124, 77, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guest-ticket-reply textarea {
  min-height: 130px;
}

.ticket-reply-form label,
.guest-ticket-reply label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #b5bac1;
}

.ticket-reply-form textarea,
.guest-ticket-reply textarea {
  width: 100%;
  min-height: 110px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #f2f3f5;
  font: inherit;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ticket-reply-form textarea:focus,
.guest-ticket-reply textarea:focus {
  outline: none;
  border-color: rgba(124, 77, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.12);
}

.support-btn-primary {
  align-self: flex-start;
  background: linear-gradient(135deg, #7C4DFF, #5b35cc);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
}

.support-btn-primary:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.support-btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.guest-ticket-closed {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.guest-ticket-error {
  max-width: 520px;
  margin: 2rem auto;
  padding: 1rem 1.25rem;
  border-radius: 12px;
}

.status-open { background: rgba(124, 77, 255, 0.15); color: #c4b5fd; }
.status-progress { background: rgba(88, 101, 242, 0.15); color: #a5b4fc; }
.status-waiting { background: rgba(234, 179, 8, 0.15); color: #fcd34d; }
.status-solved { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.status-closed { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }

/* Banner status guest */
.guest-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

.guest-status-banner-icon {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.guest-status-banner-text {
  color: #e5e7eb;
}

.guest-status-banner--pending {
  background: rgba(124, 77, 255, 0.1);
  border-color: rgba(124, 77, 255, 0.22);
}

.guest-status-banner--assigned,
.guest-status-banner--active {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
}

.guest-status-banner--action {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.25);
}

.guest-ticket-thread .ticket-msg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}

.guest-ticket-thread .ticket-msg-meta time {
  font-size: 0.72rem;
  color: #72767d;
}

.guest-ticket-thread .guest-msg-system .ticket-msg-system-inner {
  max-width: 100%;
  border-radius: 12px;
  text-align: left;
  font-size: 0.84rem;
  line-height: 1.5;
  padding: 0.65rem 0.85rem;
}

.guest-ticket-submit {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  min-height: 48px;
}

/* ── Guest ticket — mobil ── */
@media (max-width: 640px) {
  .guest-ticket-body {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .guest-ticket-header {
    padding: 0.75rem 1rem;
  }

  .guest-ticket-header .bug-report-brand span:last-child {
    font-size: 0.9rem;
  }

  .guest-ticket-back {
    font-size: 0.82rem;
  }

  .guest-ticket-page {
    width: 100%;
    padding: 0.5rem 0.65rem 0;
    min-height: auto;
  }

  .guest-ticket-card {
    min-height: calc(100dvh - 56px);
    border-radius: 16px 16px 0 0;
    padding: 1rem 0.85rem 0;
    border-bottom: none;
    display: flex;
    flex-direction: column;
  }

  .guest-ticket-hero h1 {
    font-size: 1.2rem;
    margin-bottom: 0.65rem;
    word-break: break-word;
  }

  .guest-ticket-meta {
    gap: 0.35rem;
  }

  .guest-ticket-ref,
  .guest-ticket-cat,
  .guest-ticket-date {
    font-size: 0.76rem;
  }

  .guest-status-banner {
    font-size: 0.86rem;
    padding: 0.75rem 0.85rem;
  }

  .guest-ticket-thread-wrap {
    flex: 1;
    min-height: 0;
    max-height: none;
    margin: 0.85rem 0 0;
    padding: 0.65rem 0.5rem;
    border-radius: 12px;
  }

  .guest-ticket-thread .ticket-msg {
    max-width: 92%;
    gap: 0.5rem;
  }

  .guest-ticket-thread .ticket-msg-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .guest-ticket-thread .ticket-msg-bubble {
    font-size: 0.92rem;
    padding: 0.75rem 0.85rem;
    word-break: break-word;
  }

  .guest-ticket-thread .ticket-msg-meta strong {
    font-size: 0.82rem;
  }

  .guest-ticket-reply {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -0.85rem;
    padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0));
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    background: rgba(8, 10, 18, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  }

  .guest-ticket-reply textarea {
    min-height: 88px;
    font-size: 16px;
    padding: 0.75rem 0.85rem;
  }

  .guest-ticket-reply label {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .guest-ticket-thread .ticket-msg {
    max-width: 96%;
  }
}

/* Detalii formular ticket (hub pre-lansare) */
.ticket-form-fields {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 77, 255, 0.22);
  background: rgba(124, 77, 255, 0.06);
}

.ticket-form-fields-title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ticket-form-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  margin: 0;
}

.ticket-form-fields-item {
  min-width: 0;
}

.ticket-form-fields-item dt {
  margin: 0 0 0.2rem;
  color: #8b919a;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticket-form-fields-item dd {
  margin: 0;
  color: #e8eaed;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Support desk enterprise */
.category-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

@media (min-width: 720px) {
  .category-fields-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-fields-grid .support-field:has(textarea) {
    grid-column: 1 / -1;
  }
}

.category-fields-grid .support-field {
  min-width: 0;
}

.category-fields-grid input,
.category-fields-grid textarea,
.category-fields-grid select {
  max-width: 100%;
  box-sizing: border-box;
}
.field-hint { display: block; margin-top: 0.35rem; font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.support-kb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.support-kb-list li { display: grid; gap: 0.15rem; }
.support-kb-list a { color: #c4b5fd; font-weight: 650; text-decoration: none; }
.support-kb-list a:hover { color: #ddd6fe; text-decoration: underline; }
.support-kb-list span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.ticket-kb { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.ticket-kb-list { list-style: none; margin: 0.55rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.ticket-kb-list li { display: grid; gap: 0.15rem; }
.ticket-kb-list a {
  color: #c4b5fd;
  font-weight: 650;
  text-decoration: none;
  font-size: 0.92rem;
}
.ticket-kb-list a:hover { color: #ede9fe; text-decoration: underline; }
.ticket-kb-list span { font-size: 0.8rem; color: rgba(232, 234, 237, 0.65); line-height: 1.4; }
.ticket-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;
}
.ticket-header-card--pro {
  background: linear-gradient(165deg, rgba(24, 26, 36, 0.95), rgba(14, 16, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.ticket-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
}
.ticket-form-card {
  margin-top: 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(124, 58, 237, 0.06);
}
.sla-badge { display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.sla-ok { background: rgba(34,197,94,0.15); color: #86efac; }
.sla-warn { background: rgba(234,179,8,0.18); color: #fde68a; }
.sla-breached { background: rgba(239,68,68,0.18); color: #fca5a5; }
.ticket-msg.internal .ticket-msg-bubble { border: 1px dashed rgba(251,191,36,0.45); background: rgba(251,191,36,0.08); }
.internal-badge { display: inline-block; margin-left: 0.35rem; padding: 0.1rem 0.4rem; border-radius: 4px; background: rgba(251,191,36,0.2); color: #fde68a; font-size: 0.68rem; font-weight: 700; }
.internal-toggle { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin: 0.5rem 0 0.75rem; }
.csat-box { margin-top: 1.25rem; text-align: left; max-width: 28rem; margin-left: auto; margin-right: auto; }
.csat-stars { display: flex; gap: 0.4rem; margin: 0.65rem 0; flex-wrap: wrap; }
.csat-star { border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); border-radius: 8px; padding: 0.4rem 0.65rem; cursor: pointer; }
.csat-star.active { background: rgba(250,204,21,0.2); border-color: rgba(250,204,21,0.5); color: #fde68a; }
.staff-queues { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1rem; }
.queue-chip { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.8); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.8rem; cursor: pointer; }
.queue-chip.active { background: rgba(88,101,242,0.25); border-color: rgba(88,101,242,0.55); color: #c7d2fe; }
.staff-analytics { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.65rem; margin-bottom: 1rem; }
.staff-analytics-card { padding: 0.75rem 0.85rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.staff-analytics-card .label { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.45); margin-bottom: 0.25rem; }
.staff-analytics-card strong { font-size: 1.1rem; }
.pill-escalated { display: inline-block; margin-left: 0.35rem; font-size: 0.68rem; padding: 0.1rem 0.4rem; border-radius: 4px; background: rgba(239,68,68,0.2); color: #fca5a5; }
.ticket-file-link { display: inline-block; margin-top: 0.5rem; color: #a5b4fc; }

/* —— Support v2 (user-first) —— */

.support-hero-v2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(52, 211, 153, 0.12), transparent 55%),
    radial-gradient(ellipse at 90% 40%, rgba(56, 189, 248, 0.1), transparent 50%),
    rgba(0,0,0,0.28);
  overflow: hidden;
}

.support-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.support-hero-v2 h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.support-hero-v2 .lead {
  margin: 0 0 1rem;
  color: #a7b0bc;
  max-width: 36rem;
}

.support-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.support-chip {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #e8eef7;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.support-chip:hover {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.1);
  transform: translateY(-1px);
}

.support-chip-link { display: inline-flex; align-items: center; }

.support-hero-v2-art {
  justify-self: end;
  width: min(100%, 420px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.support-hero-v2-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.category-featured {
  margin-bottom: 0.85rem;
}

.category-featured .category-card-v2 {
  width: 100%;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(120deg, rgba(52,211,153,0.14), rgba(0,0,0,0.2));
  border-color: rgba(52, 211, 153, 0.35);
}

.category-card-v2 {
  min-height: 150px;
}

.category-card-art {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--cat-color) 18%, transparent);
  flex-shrink: 0;
}

.category-card-art img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.category-card-v2 .category-card-label {
  font-size: 1.02rem;
  font-weight: 700;
}

.category-card-v2:hover {
  border-color: color-mix(in srgb, var(--cat-color) 55%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  transform: translateY(-2px);
}

.category-card-v2.selected {
  border-color: var(--cat-color);
  background: color-mix(in srgb, var(--cat-color) 14%, rgba(0,0,0,0.25));
}

.selection-pill img {
  vertical-align: middle;
  margin-right: 0.25rem;
  border-radius: 4px;
}

.support-signin-v2 {
  text-align: center;
  max-width: 440px;
  margin: 3rem auto;
  padding: 1.5rem;
}

.support-signin-art {
  width: min(100%, 360px);
  border-radius: 16px;
  margin-bottom: 1.25rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.ticket-card-v2 {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.12s;
}

.ticket-card-v2:hover {
  border-color: rgba(129, 140, 248, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .support-hero-v2 {
    grid-template-columns: 1fr;
  }
  .support-hero-v2-art {
    justify-self: stretch;
    order: -1;
    width: 100%;
    max-height: 180px;
  }
  .support-hero-v2-art img {
    max-height: 180px;
    width: 100%;
    object-fit: cover;
  }
  .category-featured .category-card-v2 {
    flex-direction: column;
    align-items: flex-start;
  }
}

.support-feedback-entry {
  margin-top: 1.25rem;
}

.support-feedback-entry .category-card-feedback {
  width: 100%;
  max-width: 420px;
  border-style: dashed;
  opacity: 0.95;
}

.support-feedback-entry .category-card-feedback:hover {
  opacity: 1;
}
