/* Header */
.support-header {
  padding: 120px 16px 0;
  text-align: center;
}

.support-header h1 {
  margin: 0 0 14px;
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  animation: fadeUp 0.6s ease forwards;
}

.support-subtitle {
  margin: 0 0 36px;
  font-weight: 300;
  color: var(--text-muted);
  animation: fadeUp 0.6s ease forwards;
}

/* Search */
.support-search {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0 16px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.support-search .search-field {
  position: relative;
  flex: 1;
}

.support-search .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
}

.support-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px 14px 46px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.support-search input:focus {
  border-color: var(--accent-discord);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
}

.support-search button {
  padding: 0 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition);
}

.support-search button:hover {
  background: var(--accent-hover);
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.autocomplete-item {
  padding: 10px 18px;
  color: var(--text-primary);
  cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: rgba(108, 121, 255, 0.18);
}

/* Quick links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto 56px;
  padding: 0 16px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}

.quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 121, 255, 0.45);
}

.quick-link span {
  font-size: 14px;
  color: var(--text-muted);
}

/* Guides */
.tutorials-section {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 16px;
}

.tutorials-section h2 {
  margin: 0 0 32px;
  font-size: 2rem;
  text-align: center;
  color: #ffffff;
}

.tutorial-group {
  margin-bottom: 44px;
}

.tutorial-group-title {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-card);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.tutorial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 121, 255, 0.45);
  box-shadow: var(--shadow-hover);
}

.tutorial-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tutorial-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tutorial-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #ffffff;
}

.tutorial-card p {
  flex: 1;
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.tutorial-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: #A5AEFF;
}

.guide-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -12px 0 36px;
}

.guide-chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}

.guide-chip:hover {
  color: #ffffff;
  border-color: rgba(155, 89, 182, 0.6);
}

.tutorial-group {
  scroll-margin-top: 90px;
}

/* Guide window */
.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 6, 12, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.guide-modal[hidden] {
  display: none;
}

.guide-window {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 30px 30px 26px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: fadeUp 0.25s ease;
}

.guide-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.guide-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.guide-window h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  color: #ffffff;
}

#guide-desc {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.guide-steps li {
  position: relative;
  min-height: 30px;
  margin-bottom: 14px;
  padding-left: 46px;
  line-height: 1.55;
  color: var(--text-dim);
  counter-increment: step;
}

.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(108, 121, 255, 0.18);
  border: 1px solid rgba(108, 121, 255, 0.5);
  color: #C9CDFB;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-steps a {
  color: #A5AEFF;
}

.guide-steps code,
.tutorial-card code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9em;
}

/* Contact */
.help-contact {
  max-width: 860px;
  margin: 0 auto 120px;
  padding: 36px 24px;
  text-align: center;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.22), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(155, 89, 182, 0.22), transparent 60%),
    var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.help-contact h2 {
  margin: 0 0 8px;
  color: #ffffff;
}

.help-contact p {
  margin: 0;
  color: var(--text-muted);
}

.help-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.help-contact-actions .hero-btn {
  margin-top: 22px;
  padding: 13px 28px;
  font-size: 16px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .support-header { padding-top: 100px; }
  .support-header h1 { font-size: 2rem; }
  .support-search button { display: none; }
  .quick-links { grid-template-columns: 1fr; }
  .guide-window { padding: 26px 20px 20px; }
  .help-contact { margin: 0 16px 100px; }
}
