:root {
  --primary: #5b21b6;
  --primary-bright: #8b5cf6;
  --text-alt: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

.syne-bold {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.2),
      transparent 50%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(79, 70, 229, 0.18),
      transparent 50%
    ),
    #05050a;
  color: #fff;
}

.support-page {
  min-height: 100vh;
}

.support-desk-modal {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.support-desk-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(1px);
}

.support-desk-dialog {
  --support-header-height: 52px;
  --support-contact-top: 23px;
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(91, 33, 182, 0.22),
      rgba(8, 8, 14, 0.62)
    ),
    rgba(7, 7, 13, 0.58);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.6);
  padding: 16px 0 0 0;
}

.support-desk-dialog h3 {
  margin: 4px 0 10px;
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  background: linear-gradient(135deg, #fff 40%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(109, 40, 217, 0.35));
}

.support-page-back {
  position: absolute;
  top: 18px;
  left: 16px;
  z-index: 2;
  display: inline-block;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.support-contact-trigger {
  position: absolute;
  top: var(--support-contact-top);
  right: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e9ddff;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.support-contact-trigger:hover {
  transform: translateY(calc(-50% - 2px));
  background: rgba(124, 58, 237, 0.3);
  border-color: rgba(124, 58, 237, 0.7);
}

.back-label-short {
  display: none;
}

.support-page-back:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.support-subtitle {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.support-desk-body {
  position: relative;
  height: calc(100% - var(--support-header-height));
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.03)
    ),
    rgba(9, 9, 19, 0.55);
}

.support-desk-iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
  background: #fff;
}

.support-contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.support-contact-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.support-contact-dialog {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 800px;
  border: 0;
  border-radius: 16px;
  background: #040508;
  box-shadow: none;
  padding: 3rem 4rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-contact-modal.active .support-contact-dialog {
  transform: scale(1) translateY(0);
}

.support-contact-heading {
  margin: 0 0 18px;
  font-family: "Syne", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-contact-heading::before {
  content: "";
  display: block;
  width: 4px;
  height: 26px;
  border-radius: 2px;
  background: #fbbf24;
}

.support-contact-dialog p {
  margin: 0 0 5px;
  color: #e5e7eb;
  font-size: 1.05rem;
  line-height: 1.7;
}

.support-contact-dialog p:nth-of-type(2) {
  margin-bottom: 20px;
}

.support-contact-dialog strong {
  color: #f3f4f6;
  font-weight: 800;
}

.support-contact-link {
  display: inline-block;
  color: var(--primary-bright);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}

.support-contact-link:hover {
  border-color: var(--primary-bright);
  transform: translateX(5px);
}

.support-hours-text {
  color: #cbd5e1;
}

.support-assist-copy {
  margin-top: 5px !important;
  color: #94a3b8 !important;
}

.support-chat-link {
  margin-top: 10px;
}

.support-contact-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  z-index: 20;
  transform: rotate(0deg);
  transform-origin: center center;
}

.support-contact-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

@media (max-width: 1024px) {
  .support-desk-dialog {
    --support-header-height: 70px;
    --support-contact-top: 32px;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    border: 0;
    padding: 12px 0 0 0;
  }

  .support-desk-dialog h3 {
    margin: 6px 0 8px;
    font-size: 1rem;
  }

  .support-subtitle {
    font-size: 0.87rem;
  }

  .support-desk-body {
    height: calc(100% - var(--support-header-height));
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .support-desk-dialog {
    --support-header-height: 112px;
    --support-contact-top: 25px;
  }

  .support-contact-trigger {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 0 16px env(safe-area-inset-bottom, 0px);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
  }

  .support-contact-trigger:hover {
    transform: none;
  }

  .back-label-full {
    display: none;
  }

  .back-label-short {
    display: inline;
  }

  .support-desk-dialog h3 {
    margin: 6px 12px 8px auto;
    width: max-content;
    text-align: right;
  }

  .support-desk-dialog {
    padding: 12px 0 calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .support-desk-body {
    height: calc(100% - var(--support-header-height));
  }

  .support-contact-heading {
    font-size: 1.7rem;
  }

  .support-contact-modal {
    padding: 0;
  }

  .support-contact-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 3.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
