/* ==========================================================================
   SR Editer — Mon espace (dashboard.html)
   Hero sobre, profil, onglets, cartes, abonnement, support (tickets + chat).
   Logique : js/pages/dashboard.js (ne pas renommer les id ni les classes
   construites en JS : tier-badge, ticket-status--*, chat-msg--*…).
   ========================================================================== */

/* Titres de la page : casse normale, plus lisibles qu'en capitales */
.aww-dashboard h2,
.aww-dashboard h3,
.aww-dashboard h4,
.aww-modal-window h3 {
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
/* Boutons de l'espace : style d'application, casse normale */
.aww-dashboard .aww-btn,
.aww-modal-window .aww-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.8rem 1.4rem;
}

/* ── Hero ── */
.dash-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10rem var(--gutter) 3.5rem;
}
.dash-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: none;
}

/* ── Chargement (message dans la page, pas d'écran plein) ── */
.aww-loading {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem var(--gutter) 8rem;
  color: var(--text-secondary);
}

/* ── Grille principale ── */
.aww-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter) 6rem;
  min-height: 50vh;
}
.aww-dash-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 4rem; }
.aww-dash-sidebar { align-self: start; position: sticky; top: 7rem; }

/* ── Profil ── */
.aww-user-profile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 22px;
  background: rgba(20, 17, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.aww-user-meta { min-width: 0; overflow: hidden; }
.aww-user-meta h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.aww-avatar {
  width: 52px;
  height: 52px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.aww-avatar.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.aww-badge {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
}
.aww-badge.aww-badge-role { background: rgba(255, 107, 53, 0.14); color: var(--accent); margin-left: 0.35rem; }

/* Badges d'abonnement (classe posée par dashboard.js) */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
  margin-top: 0.6rem;
}
.tier-badge.free { background: rgba(148, 163, 184, 0.12); color: #a3b0c2; }
.tier-badge.standard { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.tier-badge.pro { background: rgba(255, 107, 53, 0.14); color: #ff8a5c; }
.tier-badge.premium { background: rgba(255, 168, 0, 0.14); color: #ffb84d; }

/* ── Onglets ── */
.aww-dash-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.aww-dash-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.aww-dash-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.aww-dash-tab.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}
.aww-dash-tab.active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.aww-dash-tab.aww-text-danger {
  margin-top: 0.75rem;
  color: #f87171 !important;
}
.aww-panel { display: none; }
.aww-panel.active { display: block; animation: fadeIn 0.4s ease; }
.aww-panel > h2,
.support-tickets-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

/* ── Stats & cartes ── */
.aww-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.aww-stat-card,
.aww-dash-card,
.aww-dashboard .aww-pricing-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 25, 21, 0.78) 0%, rgba(14, 12, 10, 0.86) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.aww-stat-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
}
.aww-stat-card h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.aww-stat-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 0.75rem;
}
.aww-dash-card {
  padding: 1.75rem;
}
.aww-dash-card--danger {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Quota IA */
#ai-quota-copy {
  font-size: 1.1rem;
  line-height: 1.35;
  font-family: var(--font-heading);
  margin-top: 0.65rem;
  color: var(--text-primary);
  word-break: break-word;
}
#ai-quota-copy strong {
  color: var(--accent);
  font-size: 1.5rem;
}
#ai-quota-meter-fill {
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Compte & Discord */
#discord-account-status[data-state="active"] {
  color: #4ade80 !important;
  font-weight: 600;
}
#discord-account-status[data-state="idle"] {
  color: var(--text-secondary);
}
#account-action-message {
  margin-top: 1rem;
  color: var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}
#account-action-message[data-state="success"] {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80 !important;
}
#account-action-message[data-state="error"] {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171 !important;
}
#account-action-message[data-state="info"] {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8 !important;
}
.delete-account-box {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.delete-account-box .aww-input {
  margin-bottom: 1rem;
}
.delete-account-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.delete-account-box p {
  color: #fca5a5;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ── Éléments de contenu ── */
.aww-dash-tab.aww-dash-tab--link,
.aww-dash-tab.aww-dash-tab--link:hover {
  color: var(--accent);
  text-decoration: none;
}
.aww-row-between {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.aww-text-link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
}
.aww-text-link-btn:hover {
  text-decoration: underline;
}
.aww-stat-val--md {
  font-size: 1.4rem;
}
.aww-stat-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.aww-stat-meta--sm {
  font-size: 0.8rem;
}
.aww-meter {
  width: 100%;
  height: 5px;
  margin-top: 1.2rem;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.aww-meter-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: var(--accent-gradient);
}
.aww-panel-lead {
  max-width: 60ch;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 0.75rem;
}
.aww-dash-actions {
  margin: 2rem 0;
}
.aww-dash-card--spaced {
  margin-top: 1.25rem;
}
.aww-dash-card--row {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.aww-dash-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
}
.aww-dash-card--danger h3 {
  color: #f87171;
}
.aww-dash-card-title {
  margin-bottom: 0.4rem;
}
.aww-dash-card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.aww-dash-card-heading {
  margin: 0.5rem 0 1rem;
}
.aww-dash-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.aww-dash-card-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0.5rem 0 1.25rem;
}
.aww-dash-card-hint {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.aww-dash-btn-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.aww-dash-cards-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1rem;
}
.aww-card-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.aww-card-eyebrow--muted {
  color: var(--text-secondary);
}
.aww-dash-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.aww-dash-list strong {
  color: var(--text-primary);
  font-weight: 600;
}
.aww-auth-error--block {
  text-align: left;
  margin: 1.5rem 0;
}
.aww-auth-error--spaced {
  margin-bottom: 1rem;
}
.aww-auth-error--chat {
  margin: 0.75rem 1.5rem 0;
}

/* ── Bannière de notification ── */
.aww-global-banner {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.aww-global-banner[data-state="success"] {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80 !important;
}
.aww-global-banner[data-state="error"] {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171 !important;
}
.aww-global-banner[data-state="info"] {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8 !important;
}

/* ── Abonnement ── */
.aww-pricing-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.aww-dashboard .aww-pricing-card {
  padding: 1.75rem;
}
.aww-dashboard .aww-pricing-card:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.16);
}
.aww-dashboard .aww-pricing-card.is-current {
  border-color: rgba(255, 107, 53, 0.5);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 107, 53, 0.16) 0%, rgba(255, 107, 53, 0) 70%),
    linear-gradient(180deg, rgba(34, 24, 18, 0.88) 0%, rgba(14, 11, 9, 0.92) 100%);
}
.aww-dashboard .aww-pricing-card h3 {
  font-size: 1.3rem;
}
.aww-dashboard .aww-pricing-card .price {
  margin: 1rem 0 1.5rem;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.aww-dashboard .aww-pricing-card .price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-secondary);
}
.aww-dashboard .aww-pricing-card .aww-btn {
  width: 100%;
  margin-top: auto;
}
.aww-plan-features {
  list-style: none;
  margin-bottom: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.4;
}
.aww-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.aww-plan-features li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat,
    rgba(255, 107, 53, 0.14);
}
.aww-plan-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ── Modales ── */
.aww-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.aww-modal-backdrop[hidden] {
  display: none !important;
}
.aww-modal-window {
  background: #110e0c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  animation: awwModalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.aww-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.aww-modal-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.aww-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.aww-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.aww-modal-window form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.aww-modal-body {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  min-height: 0;
}
.aww-modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}
body.aww-modal-open {
  overflow: hidden !important;
}

/* ── Support : tickets & chat ── */
.support-tickets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.aww-ticket-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  gap: 1rem;
  transition: all 0.2s ease;
}
.aww-ticket-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.aww-ticket-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ticket-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.ticket-action-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(255, 107, 53, 0.35);
}
/* Liste */
.support-tickets-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.aww-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.aww-tickets-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  font-size: 14px;
  border: 1px dashed var(--border-color);
  border-radius: 16px;
}
.aww-tickets-empty {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
.aww-tickets-empty p {
  margin: 0;
  font-size: 12px;
}
.aww-tickets-empty .aww-tickets-empty-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.aww-ticket-info {
  min-width: 0;
  flex: 1;
}
.aww-ticket-subject {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  word-break: break-word;
}
.aww-ticket-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.ticket-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid;
}
.ticket-status--open    { background: rgba(34, 197, 94, 0.15);  color: #22c55e; border-color: #22c55e40; }
.ticket-status--pending { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border-color: #38bdf840; }
.ticket-status--closed  { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border-color: #94a3b840; }

/* Discussion */
.aww-modal-window--chat {
  max-width: 720px;
  height: 80vh;
}
.aww-modal-header--chat {
  gap: 0.75rem;
}
.aww-modal-header--chat .aww-modal-close {
  flex-shrink: 0;
}
.chat-head {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.chat-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.chat-head-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.chat-status {
  flex-shrink: 0;
}
.ticket-count-badge.chat-status--open    { background: rgba(34, 197, 94, 0.2);  color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); }
.ticket-count-badge.chat-status--pending { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.ticket-count-badge.chat-status--closed  { background: rgba(148, 163, 184, 0.2); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.4); }
#web-chat-messages-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding: 20px;
}
.chat-placeholder--error {
  color: #ef4444;
}
.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 88%;
  margin-bottom: 8px;
}
.chat-msg--staff { flex-direction: row; align-self: flex-start; }
.chat-msg--user  { flex-direction: row-reverse; align-self: flex-end; }
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.chat-msg--staff .chat-avatar { background: rgba(56, 189, 248, 0.2); }
.chat-msg--user .chat-avatar  { background: rgba(255, 255, 255, 0.12); }
.chat-avatar-sr {
  color: #38bdf8;
  font-weight: 800;
}
.chat-body {
  display: flex;
  flex-direction: column;
  max-width: calc(100% - 44px);
}
.chat-msg--staff .chat-body { align-items: flex-start; }
.chat-msg--user .chat-body  { align-items: flex-end; }
.chat-meta {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  padding: 0 2px;
}
.chat-time {
  font-weight: 400;
  opacity: 0.85;
}
.aww-chat-bubble {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: 10px 16px;
  border: 1px solid;
  color: #f1f5f9;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  min-width: 50px;
  text-align: left;
}
.chat-msg--staff .aww-chat-bubble {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px 10px 10px 3px;
}
.chat-msg--user .aww-chat-bubble {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  border-radius: 10px 10px 3px 10px;
}
/* .aww-modal-window form (formulaire de ticket) étire les formulaires en colonne :
   la barre de réponse doit rester une ligne compacte en bas de la discussion */
.aww-modal-window .chat-reply-form {
  flex: none;
  flex-direction: row;
}
.chat-reply-form {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}
.chat-reply-input {
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  flex: 1;
}
.chat-reply-btn {
  height: 48px;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .aww-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
  }
  .aww-dash-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.5rem;
  }
  .aww-pricing-cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 860px) {
  .aww-dashboard {
    padding: 0 1.25rem 3rem !important;
  }
  .aww-dash-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
  }
  .aww-dash-sidebar {
    position: static !important;
  }
  .aww-user-profile {
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.1rem !important;
  }
  .aww-avatar {
    margin-bottom: 0 !important;
    width: 54px !important;
    height: 54px !important;
    font-size: 1.5rem !important;
    flex-shrink: 0 !important;
  }
  /* Onglets en barre horizontale collante */
  .aww-dash-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.5rem !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    position: sticky !important;
    top: 72px !important;
    z-index: 25 !important;
    background: rgba(8, 7, 6, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    margin: 0 -1.25rem 1.5rem !important;
    padding: 0.6rem 1.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .aww-dash-nav::-webkit-scrollbar {
    display: none !important;
  }
  .aww-dash-tab {
    padding: 0.55rem 1.1rem !important;
    border-radius: 999px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }
  .aww-dash-tab.active::after {
    display: none;
  }
  .aww-dash-tab.aww-text-danger {
    margin-top: 0 !important;
  }
  .aww-dash-tab.active {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
    font-weight: 600 !important;
  }
  .dash-hero {
    padding: 8rem 1.25rem 2rem;
  }
  .aww-dash-card {
    padding: 1.25rem 1rem !important;
  }
  .aww-stat-card {
    padding: 1.25rem 1rem !important;
    min-height: auto !important;
  }
  .aww-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
  }
  .aww-pricing-cards {
    grid-template-columns: 1fr !important;
    max-width: 480px !important;
    margin: 1.5rem auto 0 !important;
  }
  .aww-modal-window {
    width: 95%;
    max-height: 90vh;
  }
}

@media (max-width: 640px) {
  .aww-ticket-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .aww-ticket-card-actions {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 480px) {
  .aww-modal-window {
    width: 96% !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    border-radius: 18px !important;
  }
  .aww-modal-header {
    padding: 1rem 1.2rem !important;
  }
  .aww-modal-body {
    padding: 1.25rem 1rem !important;
  }
  .aww-modal-footer {
    padding: 0.9rem 1.2rem !important;
  }
  .aww-modal-close {
    min-width: 40px !important;
    min-height: 40px !important;
  }
}
