/* ==========================================================================
   Support page — single page with anchored sections
   ========================================================================== */

/* Hero - layered on top of the shared .explore-hero */

.support-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-16);
  padding-bottom: calc(
    var(--space-16) + 28px
  ); /* room for the overlapping nav */
  text-align: center;
  background:
    radial-gradient(
      520px 260px at 12% 0%,
      rgba(96, 165, 250, 0.28),
      transparent 70%
    ),
    radial-gradient(
      480px 280px at 92% 100%,
      rgba(59, 130, 246, 0.24),
      transparent 70%
    ),
    linear-gradient(
      135deg,
      #001838 0%,
      var(--color-overlay-bg) 55%,
      #0a3a8a 100%
    );
}

/* faint dotted texture, fading out toward the bottom */
.support-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.14) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}

.support-hero .explore-hero-inner {
  position: relative;
}

.support-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-overlay-text);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.support-hero h1 {
  font-size: 2.5rem;
}

.support-hero p {
  margin: 0 auto;
}

/* Section nav - a floating pill bar that overlaps the hero and sticks
   under the header while scrolling */

.support-quicklinks {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-3));
  z-index: 40;
  margin-top: -29px;
  padding: 0 var(--space-4);
  display: flex;
  justify-content: center;
  pointer-events: none; /* only the pill itself is clickable */
}

.support-quicklinks-inner {
  pointer-events: auto;
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-dropdown);
  overflow-x: auto;
  scrollbar-width: none;
}

.support-quicklinks-inner::-webkit-scrollbar {
  display: none;
}

.support-quicklinks a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 600;
  color: var(--color-text-body);
  white-space: nowrap;
  transition:
    background var(--duration-fast),
    color var(--duration-fast);
}

.support-quicklinks a svg {
  flex-shrink: 0;
}

.support-quicklinks a:hover {
  background: var(--color-bg-section);
  color: var(--color-navy);
}

.support-quicklinks a.is-active {
  background: var(--color-navy-cta);
  color: var(--color-accent-ink);
}

.support-quicklinks a:focus-visible {
  outline: 2px solid var(--color-navy-cta);
  outline-offset: 2px;
}

.support-section {
  padding: var(--space-12) 0;
  scroll-margin-top: calc(var(--nav-height) + 76px);
}

.support-section:nth-child(even) {
  background: var(--color-bg-section);
}

.support-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.support-section-header {
  max-width: 640px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.support-section-header h2 {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-h2);
  margin-bottom: var(--space-2);
}

.support-section-header p {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  color: var(--color-text-body);
}

/* Help center cards */

.help-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.help-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  text-align: center;
  flex: 0 1 280px;
  transition:
    transform var(--duration-base),
    box-shadow var(--duration-base),
    border-color var(--duration-base);
}

.help-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--color-navy-cta);
}

.help-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: rgba(0, 53, 128, 0.1);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.help-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.help-card p {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--color-text-body);
}

/* Contact section */

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-8);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.contact-form-card textarea.field-input {
  resize: none;
  min-height: 120px;
  font-family: inherit;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(0, 53, 128, 0.1);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item h4 {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.contact-info-item p {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  color: var(--color-text-body);
}

/* Legal / prose sections */

.support-prose {
  max-width: 760px;
  margin: 0 auto;
}

.support-prose h3 {
  font-size: 20px;
  margin: var(--space-8) 0 var(--space-3);
}

.support-prose h3:first-child {
  margin-top: 0;
}

.support-prose p {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  line-height: var(--lh-body-loose);
  color: var(--color-text-body);
  margin-bottom: var(--space-3);
}

.support-prose .updated-note {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-body);
  margin-bottom: var(--space-6);
}

.partner-cta-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-overlay-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.partner-cta-box h3 {
  color: var(--color-overlay-text);
  font-size: 22px;
  margin-bottom: var(--space-1);
}

.partner-cta-box p {
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-small);
}

@media (max-width: 1024px) {
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .support-section-inner {
    padding: 0 var(--space-4);
  }

  .support-hero {
    padding-top: var(--space-12);
    padding-bottom: calc(var(--space-12) + 26px);
  }

  .support-hero h1 {
    font-size: 30px;
  }

  .support-hero p {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }

  .support-quicklinks {
    margin-top: -26px;
    padding: 0 var(--space-3);
  }

  .support-quicklinks a {
    gap: 6px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .support-quicklinks a svg {
    width: 16px;
    height: 16px;
  }

  .partner-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------- My tickets list ------------------------- */

.ticket-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ticket-card {
  --ticket-accent: #d97706; /* Open */
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  font-family: var(--font-heading);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast);
}

.ticket-card[data-status="IN_PROGRESS"] {
  --ticket-accent: #2563eb;
}

.ticket-card[data-status="CLOSED"] {
  --ticket-accent: #94a3b8;
}

/* status stripe down the left edge */
.ticket-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ticket-accent);
}

.ticket-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dropdown);
  border-color: var(--ticket-accent);
}

.ticket-card:focus-visible {
  outline: 2px solid var(--color-navy-cta);
  outline-offset: 2px;
}

.ticket-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ticket-accent) 14%, transparent);
  color: var(--ticket-accent);
  flex-shrink: 0;
}

.ticket-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-card-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ticket-card-subject {
  min-width: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 600;
  color: var(--color-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px var(--space-2);
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  color: var(--color-text-muted);
}

.ticket-card-id {
  font-weight: 700;
  color: var(--color-text-body);
}

.ticket-card-tag {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-tag-bg);
  color: var(--color-text-body);
  font-weight: 500;
}

.ticket-card-go {
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition:
    transform var(--duration-fast),
    color var(--duration-fast);
}

.ticket-card:hover .ticket-card-go {
  transform: translateX(3px);
  color: var(--ticket-accent);
}

.ticket-card--skeleton {
  height: 78px;
  border: 0;
  box-shadow: none;
  cursor: default;
}

.ticket-card--skeleton::before {
  display: none;
}

.ticket-empty {
  max-width: 460px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  text-align: center;
}

.ticket-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-tag-bg);
  color: var(--color-navy);
}

.ticket-empty h4 {
  margin: 0 0 4px;
  font-size: var(--fs-body);
  color: var(--color-navy);
}

.ticket-empty p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .ticket-card {
    gap: var(--space-3);
    padding: 14px 12px 14px 16px;
  }

  .ticket-card-icon {
    width: 38px;
    height: 38px;
  }

  .ticket-card-subject {
    font-size: 15px;
  }

  .ticket-card-go {
    display: none;
  }
}

/* ------------------------- Ticket chat window ------------------------- */

.tchat-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.tchat {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 460px;
  height: min(640px, 88vh);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hero-card);
  overflow: hidden;
  animation: tchat-in var(--duration-base) var(--ease-standard);
}

@keyframes tchat-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tchat-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px var(--space-4);
  background: var(--color-overlay-bg);
  color: var(--color-overlay-text);
  flex-shrink: 0;
}

.tchat-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.tchat-title {
  flex: 1;
  min-width: 0;
}

.tchat-title h3 {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  color: var(--color-overlay-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tchat-title p {
  margin: 2px 0 0;
  font-size: var(--fs-xs);
  line-height: var(--lh-xs);
  color: rgba(255, 255, 255, 0.7);
}

.tchat-status {
  flex-shrink: 0;
  display: inline-flex;
}

.tchat-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-overlay-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration-fast);
}

.tchat-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.tchat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-4);
  background: var(--color-bg-section);
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
}

.tchat-empty {
  margin: auto;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.tchat-day {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.tchat-day span {
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-tag-bg);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.tchat-row {
  display: flex;
}

.tchat-row--me {
  justify-content: flex-end;
}

.tchat-bubble {
  max-width: 80%;
  padding: 9px 13px 6px;
  border-radius: 16px;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

.tchat-row--them .tchat-bubble {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-body);
  border-bottom-left-radius: 4px;
}

.tchat-row--me .tchat-bubble {
  background: var(--color-overlay-bg);
  color: var(--color-overlay-text);
  border-bottom-right-radius: 4px;
}

.tchat-who {
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-navy);
}

.tchat-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tchat-time {
  margin-top: 3px;
  font-size: 10px;
  text-align: right;
  opacity: 0.65;
}

.tchat-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}

.tchat-compose {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding: 10px var(--space-3);
}

.tchat-compose textarea {
  flex: 1;
  min-width: 0;
  max-height: 120px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-bg-section);
  color: var(--color-text-body);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  resize: none;
  transition: border-color var(--duration-fast);
}

.tchat-compose textarea::placeholder {
  color: var(--color-text-placeholder);
}

.tchat-compose textarea:focus {
  outline: none;
  border-color: var(--color-navy-cta);
}

.tchat-send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--color-navy-cta);
  color: var(--color-accent-ink);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background var(--duration-fast),
    opacity var(--duration-fast);
}

.tchat-send:hover {
  background: var(--color-navy-cta-hover);
}

.tchat-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.tchat-closed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-4);
  background: var(--color-bg-section);
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.tchat-closed svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .tchat-overlay {
    padding: 0;
  }

  .tchat {
    max-width: none;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .tchat-compose {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  /* 16px stops iOS zooming the page when the field is focused */
  .tchat-compose textarea {
    font-size: 16px;
  }
}

/* ==========================================================================
   My support tickets (signed-in section)
   ========================================================================== */

.tk-section {
  background: var(--color-bg-section);
}

.tk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.tk-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.tk-crumbs a {
  color: inherit;
  text-decoration: none;
}

.tk-crumbs a:hover {
  color: var(--color-navy);
}

.tk-crumbs strong {
  color: var(--color-navy);
  font-weight: 700;
}

.tk-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin: 0 0 var(--space-3);
}

.tk-sub {
  font-family: var(--font-heading);
  font-size: var(--fs-body-lg);
  color: var(--color-text-body);
  margin: 0 0 var(--space-8);
}

/* buttons */
.tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
}

.tk-btn-primary {
  background: var(--color-navy-cta);
  color: #fff;
}

.tk-btn-primary:hover {
  background: var(--color-navy-cta-hover);
  transform: translateY(-1px);
}

.tk-btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.tk-btn-outline:hover {
  background: var(--color-tag-bg);
}

.tk-btn-lg {
  padding: 16px 26px;
  font-size: var(--fs-body);
}

/* filter pills */
.tk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-8);
}

.tk-pill {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-body);
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}

.tk-pill:hover {
  background: var(--color-white);
}

.tk-pill.is-active {
  background: var(--color-navy-cta);
  border-color: var(--color-navy-cta);
  color: #fff;
  font-weight: 700;
}

/* empty state */
.tk-empty {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-8);
  padding: clamp(28px, 5vw, 64px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 32px;
}

.tk-empty-text h3 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.01em;
  color: var(--color-navy);
  margin: 0 0 var(--space-4);
}

.tk-empty-text p {
  font-family: var(--font-heading);
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--color-text-body);
  margin: 0 0 var(--space-8);
  max-width: 460px;
}

.tk-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.tk-empty-art {
  display: flex;
  justify-content: center;
}

.tk-illus {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.tk-il-back {
  fill: #e8ecf6;
}
.tk-il-mid {
  fill: #f4c862;
}
.tk-il-front {
  fill: var(--color-white);
  stroke: #0b1f4d;
  stroke-width: 4;
}
.tk-il-ink {
  fill: #0b1f4d;
}
.tk-il-line {
  fill: #c9cedd;
}
.tk-il-chip {
  fill: #e8ecf6;
}
.tk-il-bubble {
  fill: #0b1f4d;
}

:root[data-theme="dark"] .tk-il-back {
  fill: #1b2236;
}
:root[data-theme="dark"] .tk-il-front {
  stroke: #8da2d6;
}
:root[data-theme="dark"] .tk-il-ink {
  fill: #8da2d6;
}
:root[data-theme="dark"] .tk-il-line {
  fill: #3a4360;
}
:root[data-theme="dark"] .tk-il-chip {
  fill: #232b44;
}
:root[data-theme="dark"] .tk-il-bubble {
  fill: #2a4aa0;
}

/* ticket list (when there are tickets) */
.tk-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tk-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: 18px 22px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}

.tk-item:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.tk-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-tag-bg);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tk-item-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-navy);
}

.tk-item-meta {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.tk-item-arrow {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.tk-none {
  padding: var(--space-12) var(--space-6);
  text-align: center;
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  border-radius: 20px;
  font-family: var(--font-heading);
  color: var(--color-text-muted);
}

/* how it works */
.tk-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.tk-step {
  display: flex;
  gap: var(--space-4);
  padding: 26px 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 22px;
}

.tk-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy-cta);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-step h4 {
  font-size: var(--fs-body-lg);
  color: var(--color-navy);
  margin: 0 0 4px;
}

.tk-step p {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-text-body);
  margin: 0;
}

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

  .tk-empty-art {
    order: -1;
  }

  .tk-illus {
    max-width: 260px;
  }

  .tk-steps {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

@media (max-width: 640px) {
  .tk-topbar {
    margin-bottom: var(--space-8);
  }

  .tk-pill {
    padding: 10px 18px;
    font-size: var(--fs-small);
  }

  .tk-empty {
    border-radius: 24px;
  }

  .tk-btn-lg {
    width: 100%;
  }
}

/* ==========================================================================
   My support tickets (redesign) + support nav
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

.support-quicklinks a.is-active {
  background: var(--color-navy-cta);
  color: #fff;
}

/* white section, no grey stripe */
.support-section.mt-section,
.support-section.mt-section:nth-child(even) {
  background: var(--color-white);
  padding: 0 0 var(--space-12);
  scroll-margin-top: calc(var(--nav-height) + 52px);
}

.mt-topbar {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.mt-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.mt-breadcrumb a {
  color: var(--color-text-muted);
}

.mt-breadcrumb a:hover {
  color: var(--color-navy);
}

.mt-breadcrumb strong {
  color: var(--color-navy);
  font-weight: 700;
}

.mt-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px var(--space-6) 0;
}

.mt-title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin: 0 0 14px;
}

.mt-sub {
  font-size: 17px;
  color: var(--color-text-body);
  margin: 0 0 32px;
}

/* buttons */
.mt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background var(--duration-fast),
    transform var(--duration-fast),
    box-shadow var(--duration-fast);
}

.mt-btn-primary {
  background: var(--color-navy-cta);
  color: #fff;
  border: 1px solid var(--color-navy-cta);
}

.mt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 33, 85, 0.25);
}

.mt-btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-navy);
}

.mt-btn-outline:hover {
  background: var(--color-bg-section);
}

/* filter pills */
.mt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.mt-pill {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-body);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--duration-fast),
    color var(--duration-fast);
}

.mt-pill:hover {
  background: var(--color-bg-section);
}

.mt-pill.is-active {
  background: var(--color-navy-cta);
  border-color: var(--color-navy-cta);
  color: #fff;
  font-weight: 700;
}

/* empty state */
.mt-empty {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  padding: 56px 48px;
  border: 1px solid var(--color-border);
  border-radius: 32px;
  background: var(--color-white);
}

.mt-empty.hidden {
  display: none;
}

.mt-empty-text h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  margin: 0 0 18px;
}

.mt-empty-text p {
  max-width: 460px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-body);
  margin: 0 0 30px;
}

.mt-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mt-empty-art {
  max-width: 400px;
  width: 100%;
  justify-self: center;
}

.mt-empty-art svg {
  display: block;
  height: auto;
}

/* ticket rows (when the user has tickets) */
.mt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mt-ticket {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  font-family: inherit;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  transition:
    border-color var(--duration-fast),
    box-shadow var(--duration-fast);
}

.mt-ticket:hover {
  border-color: var(--color-navy-cta);
  box-shadow: var(--shadow-card);
}

.mt-ticket-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 53, 128, 0.1);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mt-ticket-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mt-ticket-subject {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
}

.mt-ticket-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

.mt-ticket-go {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.mt-none {
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted);
}

/* 3 steps */
.mt-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0 0;
  padding: 0;
}

.mt-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: var(--color-white);
}

.mt-step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-navy-cta);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mt-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 4px;
}

.mt-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-body);
  margin: 0;
}

@media (max-width: 900px) {
  .mt-empty {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .mt-empty-art {
    order: -1;
    max-width: 320px;
  }

  .mt-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .mt-topbar-inner {
    padding: 12px var(--space-4);
  }

  .mt-wrap {
    padding: 36px var(--space-4) 0;
  }

  .mt-btn {
    padding: 12px 18px;
  }

  .mt-empty-actions .mt-btn {
    flex: 1 1 100%;
  }
}
/* My tickets empty-state illustration (explicit colours so it always shows, light and dark) */
.mt-empty-art .mt-illus {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  min-height: 180px;
  margin: 0 auto;
}
.mt-il-back {
  fill: #e8ecf7;
}
.mt-il-mid {
  fill: #f3c85f;
}
.mt-il-front {
  fill: #ffffff;
  stroke: #0b1f4d;
  stroke-width: 4;
}
.mt-il-ink,
.mt-il-bubble {
  fill: #0b1f4d;
}
.mt-il-line {
  fill: #c9cee0;
}
.mt-il-chip {
  fill: #e6eaf7;
}
:root[data-theme="dark"] .mt-il-back {
  fill: #2a3354;
}
:root[data-theme="dark"] .mt-il-front {
  fill: #f4f6fc;
  stroke: #8da2d6;
}
:root[data-theme="dark"] .mt-il-bubble {
  fill: #2a4aa0;
}
