/* ===============================
   SUPPORT MODEL — Velvet Premium
================================= */

/* ===== Base Section ===== */
.support-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  background: var(--background);
  color: var(--text);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

/* ===== Header ===== */
.support-section .mlc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Permite quebra em telas menores */
  gap: 8px; /* Espaço entre elementos ao quebrar */
}

.support-section .mlc-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap; /* Quebra os elementos internos quando necessário */
}

.support-section .chip {
  background: rgba(240,202,50,0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap; /* Evita quebra feia do chip */
}

/* ===== Mobile adjustments ===== */
@media (max-width: 600px) {
  .support-section .mlc-header {
    flex-direction: column;        /* Coloca tudo em coluna */
    align-items: flex-start;       /* Alinha à esquerda */
    gap: 6px;
  }

  .support-section .mlc-header-left {
    gap: 8px;
  }
}

.support-section .mlc-header {
  max-width: 100%;
  box-sizing: border-box;
}

.support-section .chip {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap; /* ou remova se quiser que quebre em 2 linhas */
  overflow: hidden;
  text-overflow: ellipsis; /* evita ultrapassar */
}

/* ===== Correção Global Anti-Overflow ===== */
html, body {
  overflow-x: hidden;
}


/* ===== Ajuste Global de Chips / Botões Inline ===== */
.chip, .badge, .tag, .btn-inline {
  display: inline-block;
  white-space: nowrap;      /* Mantém em 1 linha */
  overflow: hidden;         /* Evita transbordar */
  text-overflow: ellipsis;  /* Adiciona "..." se precisar */
  max-width: 100%;
}

/* Opção: reduzir padding para chips no mobile */
@media (max-width: 480px) {
  .chip, .badge, .tag, .btn-inline {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}


/* ===== Grid Cards ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}
.support-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(240,202,50,0.25);
}
.support-card h3 {
  font-size: 1rem;
  font-weight: 700;
}
.support-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Icon Circle */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(240,202,50,0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto;
  transition: background 0.25s ease;
}
.support-card:hover .icon-circle {
  background: rgba(240,202,50,0.25);
}

/* ===== Buttons ===== */
.dash-btn-pill,
.dash-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

/* Pill (outline gold) */
.dash-btn-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.dash-btn-pill:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 12px rgba(240,202,50,0.4);
}

/* Solid Gold */
.dash-btn-gold {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f0ca32, #d4af37);
  border: none;
  color: #000;
}
.dash-btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(240,202,50,0.45);
}

/* ===== Tickets ===== */
.support-subtitle {
  margin-top: 10px;
}
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ticket-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  position: relative;
}
.ticket-ribbon {
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.ticket-head h4 {
  font-size: 0.95rem;
  font-weight: 600;
}
.ticket-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
}
.ticket-msg {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}
.ticket-close {
  margin-top: 10px;
  font-size: 0.8rem;
}
.ticket-closed-msg {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Priority styles */
.ticket-card.prio { border-left: 3px solid #e6c96b; }
.ticket-card.fast { border-left: 3px solid #ffcc00; }
.ticket-card.vip { border-left: 3px solid #d4af37; }

/* ===== Modals ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-overlay[hidden] { display: none; }
.modal-content {
  background: var(--surface-2);
  padding: 24px;
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}
.modal-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-content label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}
.modal-content input,
.modal-content select,
.modal-content textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

/* ===== FAQ ===== */
.faq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.faq-tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  cursor: pointer;
  background: var(--surface);
  transition: all 0.25s ease;
}
.faq-tab.active {
  background: var(--gold);
  color: #000;
  font-weight: 600;
}
.faq-content {
  margin-top: 14px;
}
.faq-cat { display: none; }
.faq-cat.active { display: block; }
.faq-item {
  margin-bottom: 14px;
}
.faq-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.faq-item p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Live Chat ===== */
.chat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  max-width: 75%;
}
.chat-msg.agent {
  background: rgba(240,202,50,0.1);
  color: var(--gold);
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--gold);
  color: #000;
  align-self: flex-end;
}
.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.chat-form input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  background: var(--surface);
  color: var(--text);
}

/* ===== Empty state ===== */
.empty {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 20px 0;
}

/* ==========================
   SUPPORT SECTION — Velvet
========================== */
.support-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.support-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.support-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
}
.support-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.2rem;
  color: var(--gold);
  box-shadow: var(--shadow-sm);
}

/* Priority Variants */
.support-card.prio {
  border-left: 4px solid var(--gold);
}
.support-card.fast {
  border-left: 4px solid #f39c12;
}
.support-card.vip {
  border-left: 4px solid #d4af37;
}
.support-card.chat {
  border-left: 4px solid #3498db;
}
.support-card.phone {
  border-left: 4px solid #2ecc71;
}

/* ==========================
   TICKETS
========================== */
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ticket-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.ticket-card h4 {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
}
.ticket-card p {
  font-size: 0.9rem;
  color: var(--muted);
}
.ticket-card .ticket-status {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--gold);
  border: 1px solid var(--gold);
}
.ticket-card.closed {
  opacity: 0.7;
}
.ticket-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--gold);
  color: #000;
  font-weight: 600;
}

/* ==========================
   MODALS
========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}
.modal-content h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-content label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  margin-bottom: 12px;
  gap: 6px;
}
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.9rem;
}
.modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================
   FAQ
========================== */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.faq-tab {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.faq-tab.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.faq-cat {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.faq-cat.active {
  display: flex;
}
.faq-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
}
.faq-item p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================
   LIVE CHAT
========================== */
.chat-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 220px;
  padding: 12px;
  overflow-y: auto;
  margin-bottom: 14px;
}
.chat-msg {
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  max-width: 80%;
}
.chat-msg.agent {
  background: #2c3e50;
  color: #fff;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--gold);
  color: #000;
  align-self: flex-end;
}
.chat-form {
  display: flex;
  gap: 8px;
}
.chat-form input {
  flex: 1;
}

/* ==========================
   ANIMATIONS
========================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
