/* InterFilm — Hub support utilisateur */

.support-banner {
  margin: 0 2.5rem 1.5rem;
  padding: 28px 32px;
  border-radius: 16px;
  background: #0a0a0a;
  border: 1px solid rgba(247, 127, 0, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.support-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, rgba(247, 127, 0, 0.08), transparent 45%);
  pointer-events: none;
}
.support-banner-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.support-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f77f00;
  margin-bottom: 10px;
}
.support-banner-title {
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 400;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.support-banner-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}
.support-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f77f00, #ff9500);
  color: #fff;
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(247, 127, 0, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.support-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(247, 127, 0, 0.38);
}

/* Modal support */
.support-modal .legal-box { max-width: 640px; }
.support-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
.support-cat-card {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
}
.support-cat-card:hover {
  border-color: rgba(247, 127, 0, 0.3);
  background: rgba(247, 127, 0, 0.05);
}
.support-cat-card.active {
  border-color: rgba(247, 127, 0, 0.45);
  background: rgba(247, 127, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(247, 127, 0, 0.15);
}
.support-cat-card strong {
  display: block;
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.support-cat-card span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.45;
}
.support-upload-zone {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 16px;
}
.support-upload-zone:hover {
  border-color: rgba(247, 127, 0, 0.35);
  background: rgba(247, 127, 0, 0.04);
}
.support-upload-zone.has-file {
  border-style: solid;
  border-color: rgba(247, 127, 0, 0.35);
}
.support-upload-preview {
  max-width: 100%;
  max-height: 160px;
  border-radius: 10px;
  margin-top: 10px;
  display: none;
}
.support-upload-preview.visible { display: block; margin: 10px auto 0; }
.support-upload-hint { font-size: 12px; color: rgba(255, 255, 255, 0.42); }

.ticket-compose {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ticket-compose-main {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  width: 100%;
}

.ticket-compose-tools {
  position: relative;
  flex-shrink: 0;
}

.ticket-attach-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(247, 127, 0, 0.35);
  background: rgba(247, 127, 0, 0.1);
  color: #ff9a2e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}

.ticket-attach-btn:hover {
  background: rgba(247, 127, 0, 0.18);
}

.ticket-attach-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 20, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.ticket-attach-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
}

.ticket-attach-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.ticket-compose-main textarea {
  flex: 1;
  min-height: 58px;
}

.ticket-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ticket-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.ticket-attach-chip img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
}

.ticket-attach-chip button {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.ticket-msg-files {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.ticket-msg-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(247, 127, 0, 0.25);
  background: rgba(247, 127, 0, 0.08);
  color: #ff9a2e;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}

.ticket-footer {
  flex-direction: column;
  align-items: stretch;
}

.ticket-compose .ticket-send {
  width: 100%;
  padding: 10px 18px;
}

.ticket-msg-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ticket-msg-img {
  max-width: 220px;
  max-height: 160px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.ticket-staff-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

/* Ticket modal — layout staff sidebar */
.ticket-box {
  display: flex;
  flex-direction: row;
  width: min(920px, calc(100% - 2rem));
  max-height: 88vh;
}
.ticket-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.ticket-sidebar {
  width: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
  transition: width 0.25s ease;
  display: flex;
  flex-direction: column;
}
.ticket-box.ticket-box--staff .ticket-sidebar {
  width: 260px;
}
.ticket-sidebar-head {
  padding: 14px 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ticket-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.ticket-drawer {
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.ticket-drawer-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.ticket-drawer-head:hover { background: rgba(255, 255, 255, 0.04); }
.ticket-drawer-body {
  display: none;
  padding: 0 12px 12px;
  flex-direction: column;
  gap: 8px;
}
.ticket-drawer.open .ticket-drawer-body { display: flex; }
.ticket-drawer-chevron { transition: transform 0.2s; opacity: 0.5; }
.ticket-drawer.open .ticket-drawer-chevron { transform: rotate(180deg); }

/* Discord join popup */
.discord-join-modal {
  position: fixed;
  inset: 0;
  z-index: 9999998;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.discord-join-modal.open { display: flex; }
.discord-join-box {
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(88, 101, 242, 0.15);
}
.discord-join-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.discord-join-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.4);
}
.discord-join-title {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}
.discord-join-text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 22px;
}
.discord-join-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.discord-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.45);
}
.discord-join-later {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  cursor: pointer;
  padding: 8px;
}
.discord-join-later:hover { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 768px) {
  .support-banner { margin: 0 1rem 1rem; padding: 20px; }
  .support-banner-grid { grid-template-columns: 1fr; }
  .support-cat-grid { grid-template-columns: 1fr; }

  .ticket-modal {
    align-items: flex-end;
    padding: 0;
  }

  .ticket-box {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    max-height: min(94vh, 100dvh);
    border-radius: 18px 18px 0 0;
    margin: 0;
  }

  .ticket-box.ticket-box--staff .ticket-sidebar {
    width: 100%;
    max-height: 42vh;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .ticket-sidebar-scroll {
    max-height: 34vh;
  }

  .ticket-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .ticket-head {
    padding: 12px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .ticket-head #ticketHeadTitle {
    font-size: 14px !important;
  }

  .ticket-head #ticketHeadMeta {
    font-size: 10px !important;
    line-height: 1.35;
  }

  .ticket-msgs {
    padding: 12px;
    min-height: 120px;
    max-height: 38vh;
  }

  .ticket-msg {
    max-width: 92%;
    font-size: 12.5px;
  }

  .ticket-bot-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  .ticket-bot-chip {
    width: 100%;
    min-height: 44px;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.35;
  }

  .ticket-msg.staff-msg,
  .ticket-msg.bot-msg {
    max-width: 96%;
  }

  .ticket-msg.user {
    max-width: 88%;
  }

  .ticket-footer {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .ticket-footer textarea {
    min-height: 52px;
    height: auto;
    font-size: 14px;
  }

  .ticket-send {
    align-self: stretch;
    padding: 12px 16px;
  }

  .ticket-quick-btns {
    gap: 6px;
  }

  .sp-select-block,
  .sp-btn-block {
    width: 100%;
  }
}
