/* HELP & SUPPORT SCREEN CSS */
.help-support-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  color: #fff;
  animation: fadeIn 0.3s ease;
}

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

.help-header-text h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.help-header-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Search Bar */
.help-search-bar {
  display: flex;
  gap: 12px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.help-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.help-search-input-wrapper .search-icon {
  color: var(--text-muted);
}

.help-search-input-wrapper input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  width: 100%;
  outline: none;
}

.btn-search-help {
  padding: 10px 24px;
  background: var(--purple-main);
  background: linear-gradient(135deg, #3a2baf 0%, #6c63ff 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-search-help:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

/* Quick Help */
.quick-help-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-label {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.quick-help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

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

.quick-help-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.quick-help-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--purple-main);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .quick-help-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .category-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
  }
}

.category-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-text {
  flex: 1;
  min-width: 0;
}

.category-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.category-arrow {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Split Content Layout */
.help-split-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

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

/* Left Column: Popular Articles (Accordions) */
.popular-articles-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.popular-articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popular-articles-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.view-all-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple-main);
  text-decoration: none;
  transition: color var(--transition);
}

.view-all-link:hover {
  color: #8b80ff;
}

.help-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-faq-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.help-faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  color: var(--purple-main);
  min-width: 18px;
}

.faq-question {
  font-size: 0.9375rem;
  font-weight: 600;
  flex: 1;
  color: #fff;
}

.faq-arrow {
  color: var(--text-muted);
  transition: transform var(--transition);
}

.help-faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background: rgba(0, 0, 0, 0.1);
}

.faq-answer {
  padding: 0 20px 20px 52px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Right Column: Still Need Help Card */
.still-need-help-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.support-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(108, 99, 255, 0.1);
  color: var(--purple-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.still-need-help-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
}

.support-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.support-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.support-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-support-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: var(--purple-main);
  background: linear-gradient(135deg, #3a2baf 0%, #6c63ff 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  width: 100%;
}

.btn-support-contact:hover {
  transform: translateY(-1px);
  /* box-shadow: 0 4px 15px rgba(108, 99, 255, 0.35); */
}

.btn-support-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
}

.btn-support-chat:hover {
  border-color: var(--purple-main);
  color: #fff;
  background: rgba(108, 99, 255, 0.05);
}


/* Bottom Banner */
.help-bottom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(25, 19, 72, 0.6) 0%, rgba(87, 75, 188, 0.2) 100%);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 600px) {
  .help-bottom-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    text-align: center;
  }
  
  .banner-left-content {
    flex-direction: column;
  }
}

.banner-left-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.banner-question-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-full);
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.banner-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.btn-banner-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-banner-contact:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--purple-main);
  transform: translateX(2px);
}

/* Live Support Chat Widget CSS */
.live-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  height: 480px;
  background: rgba(24, 22, 48, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 3000;
  overflow: hidden;
  animation: slideUpWidget 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: none; /* Initially hidden */
}

@keyframes slideUpWidget {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.live-chat-widget.minimized {
  height: 56px;
  bottom: 24px;
  right: 24px;
}

.live-chat-widget.minimized .chat-widget-body,
.live-chat-widget.minimized .chat-widget-footer,
.live-chat-widget.minimized .chat-widget-typing {
  display: none !important;
}

.chat-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.chat-support-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-avatar-small {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(108, 99, 255, 0.15);
  color: var(--purple-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-status-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.status-indicator {
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-indicator::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-indicator.online {
  color: var(--success);
}

.status-indicator.online::before {
  background: var(--success);
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-chat-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.btn-chat-action:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.chat-widget-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom Scrollbar for Chat */
.chat-widget-body::-webkit-scrollbar {
  width: 6px;
}

.chat-widget-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-widget-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-message.support {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #fff;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

.chat-message.user {
  background: var(--purple-main);
  background: linear-gradient(135deg, #3a2baf 0%, #6c63ff 100%);
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 2px;
}

.message-time {
  font-size: 0.6875rem;
  color: var(--text-muted);
  align-self: flex-end;
}

.chat-message.user .message-time {
  color: rgba(255, 255, 255, 0.7);
}

/* Typing Indicator */
.chat-widget-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  display: inline-block;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.typing-text {
  font-style: italic;
}

.chat-widget-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(24, 22, 48, 0.98);
}

.chat-widget-footer input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  padding: 8px 16px;
  transition: all var(--transition);
}

.chat-widget-footer input:focus {
  border-color: var(--purple-main);
  background: rgba(255, 255, 255, 0.08);
}

.btn-send-message {
  background: var(--purple-main);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.btn-send-message:hover {
  background: #8b80ff;
  transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .live-chat-widget {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    border-radius: 0;
    border: none;
    z-index: 9999;
  }
  
  .chat-widget-header {
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
    padding-bottom: 12px;
    height: auto;
    background: rgba(24, 22, 48, 0.98);
  }

  .chat-widget-body {
    padding: 16px;
  }

  .chat-message {
    max-width: 85%;
    font-size: 0.95rem;
  }
  
  .chat-widget-footer {
    padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
    background: rgba(24, 22, 48, 0.98);
  }
  
  .chat-widget-footer input {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding: 10px 16px;
  }

  .live-chat-widget.minimized {
    height: calc(env(safe-area-inset-bottom, 0px) + 60px);
    width: 100vw;
    bottom: 0;
    right: 0;
  }
}

