/* Support page — modern dark variant (no full white) */
/* Minimal surfaces, crisp borders, subtle accents */

.support-container {
  --surface-1: #1a1a1a; /* panels */
  --surface-2: #141414; /* inputs */
  --surface-3: #101010; /* deep */
  --ring: rgba(255,255,255,.12);
  --ring-hover: rgba(255,255,255,.22);
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.support-hero {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 20px rgba(0,0,0,.20);
  margin-bottom: 28px;
}
.support-hero h1 {
  margin: 0 0 12px;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.support-hero p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* New search container and styles */
.support-search-container {
  width: 100%;
}

.support-search {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--ring-hover);
  box-shadow: 0 0 0 3px rgba(0,229,255,.15);
  transform: translateY(-1px);
}

.search-input-wrapper input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: var(--muted);
}

.search-button {
  padding: 12px 16px;
  margin: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #0f0f0f;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .18s ease;
  box-shadow: 0 2px 8px rgba(114,89,245,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
}

.search-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 4px 12px rgba(114,89,245,.4);
}

.search-button i {
  font-size: 16px;
}

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.support-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .18s ease, transform .16s ease, box-shadow .18s ease;
  text-decoration: none; color: var(--text);
}
.support-card:hover { 
  transform: translateY(-3px); 
  border-color: var(--ring-hover); 
  box-shadow: 0 12px 24px rgba(0,0,0,.25); 
}
.support-card .icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: #ffffff !important; background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(114,89,245,.3);
}
.support-card .icon i {
  color: #ffffff !important;
  font-size: 18px;
}
.support-card h3 { 
  margin: 8px 0 0; 
  font-size: 1.1rem; 
  font-weight: 600;
  color: var(--text); 
}
.support-card p { 
  margin: 0; 
  color: var(--muted); 
  font-size: .95rem; 
  line-height: 1.4;
}

.faq { 
  background: var(--surface-1); 
  border: 1px solid var(--line); 
  border-radius: 14px; 
  padding: 24px; 
  margin: 28px 0;
}
.faq h2 { 
  margin: 0 0 18px; 
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}
.faq details { 
  background: var(--surface-2); 
  border: 1px solid var(--line); 
  border-radius: 12px; 
  margin-bottom: 12px; 
  transition: all 0.2s ease; 
  overflow: hidden;
}
.faq details:last-child { margin-bottom: 0; }
.faq details.opening .answer { 
  animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
  transform-origin: top;
}
.faq details.closing .answer { 
  animation: slideUp 0.35s cubic-bezier(0.55, 0.06, 0.68, 0.19); 
  transform-origin: top;
}
@keyframes slideDown { 
  0% { 
    opacity: 0; 
    transform: translateY(-8px) scaleY(0.95); 
    max-height: 0;
  }
  50% {
    opacity: 0.7;
    transform: translateY(-2px) scaleY(0.98);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scaleY(1); 
    max-height: 300px;
  } 
}
@keyframes slideUp { 
  0% { 
    opacity: 1; 
    transform: translateY(0) scaleY(1); 
    max-height: 300px;
  }
  50% {
    opacity: 0.5;
    transform: translateY(-2px) scaleY(0.98);
  }
  100% { 
    opacity: 0; 
    transform: translateY(-8px) scaleY(0.95); 
    max-height: 0;
  } 
}
.faq summary { 
  cursor: pointer; 
  padding: 16px; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
}
.faq summary:hover { background: rgba(255,255,255,.03); }
.faq summary .chevron { 
  margin-left: auto; 
  width: 18px; 
  height: 18px; 
  color: var(--muted); 
  transition: transform .18s ease, color .18s ease; 
}
.faq details[open] summary .chevron { transform: rotate(180deg); color: var(--text); }
.faq summary .summary-icon { 
  font-size: 1.1rem; 
  color: var(--muted); 
  min-width: 20px;
}
.faq details[open] summary .summary-icon { color: var(--accent-b); }
.faq .answer { 
  padding: 10px 16px 16px; 
  color: var(--muted); 
  overflow: hidden; 
  background: transparent;
  border: none;
  margin: 0;
  line-height: 1.5;
  font-size: .95rem;
}
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Support Form Styles */
.support-form { 
  background: var(--surface-1); 
  border: 1px solid var(--line); 
  border-radius: 16px; 
  margin: 40px 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.support-form-header {
  background: linear-gradient(135deg, var(--surface-2), var(--surface-1));
  border-bottom: 1px solid var(--line);
  padding: 32px;
}

.form-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.form-header-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #0f0f0f;
  box-shadow: 0 8px 24px rgba(114,89,245,.3);
}

.form-header-text h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.form-header-text p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.support-form-content {
  padding: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group.field-full {
  grid-column: 1 / -1;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
  margin-bottom: 4px;
}

.field-icon {
  font-size: .9rem;
  color: var(--accent-b);
  min-width: 16px;
}

.label-text {
  flex: 1;
}

.label-required {
  color: #ef4444;
  font-weight: 700;
}

.field-control {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all .2s ease;
  outline: none;
}

.field-control:focus {
  border-color: var(--accent-b);
  box-shadow: 0 0 0 4px rgba(114,89,245,.12);
  background: var(--surface-1);
  transform: translateY(-1px);
}

.field-control:hover:not(:focus) {
  border-color: var(--ring-hover);
}

.field-control::placeholder {
  color: var(--muted);
  font-size: .95rem;
}

.field-textarea {
  min-height: 140px;
  resize: none !important;
  line-height: 1.6;
  font-family: inherit;
}

.select-wrapper {
  position: relative;
}

.select-wrapper .field-control {
  appearance: none;
  padding-right: 50px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: .8rem;
  transition: transform .2s ease;
}

.select-wrapper:hover .select-arrow {
  color: var(--text);
}

.field-hint {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.field-counter {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.counter-text {
  font-size: .8rem;
  color: var(--muted);
  padding: 4px 8px;
  background: var(--surface-2);
  border-radius: 6px;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: #0f0f0f;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(114,89,245,.4);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 2px solid var(--line);
}

.btn-secondary:hover {
  background: var(--surface-1);
  border-color: var(--ring-hover);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .support-grid {
    grid-template-columns: 1fr;
  }
  
  .support-container {
    padding: 20px;
  }
  
  .support-hero {
    padding: 24px;
  }
  
  .support-hero h1 {
    font-size: 1.8rem;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.toast {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.toast-show {
  transform: translateX(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-success .toast-content i {
  color: #10b981;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-error .toast-content i {
  color: #ef4444;
}

.toast-message {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
}

.toast-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.toast-close i {
  font-size: 12px;
}

@media (max-width: 480px) {
  .toast-container {
    left: 20px;
    right: 20px;
    max-width: none;
  }
  
  .toast {
    padding: 14px;
  }
  
  .toast-message {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .support-form-content {
    padding: 24px;
  }
  
  .support-form-header {
    padding: 24px;
  }
  
  .form-actions {
    flex-direction: column-reverse;
  }
  
  .btn {
    justify-content: center;
  }
}

@media (max-width: 1100px) { .support-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .support-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }