/* Help Pages */
.help-page {
  min-height: 100vh;
  background: #F5F5F7;
  padding: 48px 24px;
}

.help-container {
  max-width: 720px;
  margin: 0 auto;
}

.help-header {
  text-align: center;
  margin-bottom: 48px;
}

.help-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #1D1D1F;
  margin: 0 0 12px 0;
}

.help-header p {
  font-size: 17px;
  color: #86868B;
  margin: 0;
}

/* Steps */
.help-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.help-step {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.help-step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #007AFF;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.help-step-content {
  flex: 1;
  min-width: 0;
}

.help-step-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1D1D1F;
  margin: 0 0 16px 0;
}

.help-step-content ol,
.help-step-content ul {
  margin: 0;
  padding-left: 20px;
}

.help-step-content li {
  font-size: 15px;
  color: #1D1D1F;
  line-height: 1.6;
  margin-bottom: 8px;
}

.help-step-content li:last-child {
  margin-bottom: 0;
}

.help-step-content li ul {
  margin-top: 8px;
}

.help-step-content p {
  font-size: 15px;
  color: #1D1D1F;
  line-height: 1.6;
  margin: 0;
}

.help-step-content a {
  color: #007AFF;
  text-decoration: none;
}

.help-step-content a:hover {
  text-decoration: underline;
}

.help-step-content strong {
  font-weight: 600;
}

.help-step-content code {
  background: #F5F5F7;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "SF Mono", Monaco, monospace;
  font-size: 13px;
  color: #1D1D1F;
}

/* Code Block */
.help-code-block {
  background: #1D1D1F;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.help-code-block code {
  background: none;
  color: #fff;
  font-size: 13px;
  word-break: break-all;
}

.help-copy-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.help-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Notes */
.help-note {
  background: #F5F5F7;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #1D1D1F;
}

.help-note svg {
  flex-shrink: 0;
  color: #007AFF;
  margin-top: 1px;
}

.help-note-success {
  background: #E8F5E9;
}

.help-note-success svg {
  color: #34C759;
}

/* Permissions */
.help-permissions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.help-permission {
  background: #F5F5F7;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-permission code {
  background: #1D1D1F;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.help-permission span {
  font-size: 14px;
  color: #86868B;
}

/* Section */
.help-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.help-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1D1D1F;
  margin: 0 0 16px 0;
}

/* FAQ */
.help-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-faq-item {
  border: 1px solid #E5E5EA;
  border-radius: 8px;
  overflow: hidden;
}

.help-faq-item summary {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #1D1D1F;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.help-faq-item summary::-webkit-details-marker {
  display: none;
}

.help-faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #86868B;
  transition: transform 0.2s ease;
}

.help-faq-item[open] summary::after {
  content: "−";
}

.help-faq-item p {
  padding: 0 16px 14px;
  margin: 0;
  font-size: 14px;
  color: #86868B;
  line-height: 1.5;
}

.help-faq-item a {
  color: #007AFF;
  text-decoration: none;
}

.help-faq-item a:hover {
  text-decoration: underline;
}

/* Footer */
.help-footer {
  text-align: center;
  padding-top: 24px;
}

/* Mobile */
@media (max-width: 640px) {
  .help-page {
    padding: 24px 16px;
  }

  .help-header h1 {
    font-size: 24px;
  }

  .help-step {
    flex-direction: column;
    gap: 16px;
  }

  .help-code-block {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .help-copy-btn {
    width: 100%;
    justify-content: center;
  }
}
