/* Help Center / Support page styles - ported from React help.css */

.help-center-page,
.privacy-page,
.terms-page,
.sell-page {
  background: transparent;
  min-height: 100vh;
  padding: 40px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.header-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

/* Ensure inner emoji icons in the colored circle are visually centered */
.header-icon > div {
  line-height: 1;
  font-size: 26px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: #6b7280;
}

.card.section-spacing {
  margin-top: 16px;
}

.subsection-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.privacy-cookie-text {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Rich HTML content blocks for legal pages rendered via CKEditor */
.legal-page-body {
  line-height: 1.7;
}

.legal-page-body p {
  margin-bottom: 16px;
}

/* In dark mode, CKEditor legal blocks may use a light background (e.g. white).
   Force a dark text color inside the rich-content container so text stays readable
   even when the inner block has a light background. */
.dark .legal-page-body {
  /* Match the dark card surface while keeping good contrast */
  background: var(--dark-surface-a20);
  color: #e5e7eb;
  padding: 18px;
  border-radius: 10px;
}

/* Many CKEditor snippets wrap content in an inner <div> with a light background.
   In dark mode, neutralize that so we don't get a white block inside a dark card. */
.dark .legal-page-body > div {
  background: transparent !important;
  border-color: var(--dark-surface-a30) !important;
}

.contact-support {
  text-align: center;
}

.contact-support p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.support-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* Sell / How to List page - premium step-by-step panel */

.sell-page .boxed-container {
  max-width: 900px;
  margin: 0 auto;
}

.sell-flow-wrapper {
  display: flex;
  justify-content: center;
}

.sell-flow-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px 40px;
  border-radius: 24px;
  background: linear-gradient(180deg, #F5F3FF, #FFE4E6);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(249, 250, 251, 0.95);
  position: relative;
  overflow: hidden;
  animation: sellCardFadeUp 0.6s ease-out both;
}

.sell-flow-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(31, 41, 55, 0.08);
  color: #4b5563;
  margin-bottom: 10px;
}

.sell-flow-heading {
  font-size: 2.1rem;
  font-weight: 700;
  text-align: center;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.sell-flow-subtitle {
  font-size: 1.02rem;
  color: #4b5563;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 22px;
}

.sell-step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0 22px;
  padding: 0 0 0 44px;
  position: relative;
}

.sell-step-list::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.85), rgba(248, 113, 113, 0.85));
}

.sell-step {
  position: relative;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  max-width: 520px;
  opacity: 0;
  transform: translateY(10px);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  animation: sellStepFadeIn 0.6s ease-out forwards;
}

.sell-step:nth-child(odd) {
  margin-left: 4px;
}

.sell-step:nth-child(even) {
  margin-left: 40px;
}

.sell-step:nth-child(1) {
  animation-delay: 0.08s;
}

.sell-step:nth-child(2) {
  animation-delay: 0.16s;
}

.sell-step:nth-child(3) {
  animation-delay: 0.24s;
}

.sell-step:nth-child(4) {
  animation-delay: 0.32s;
}

.sell-step-number {
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, #4F46E5, #2563EB);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.5);
}

.sell-step-content {
  flex: 1;
}

.sell-step-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.sell-step-text {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

.sell-flow-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  margin-top: 8px;
  padding-top: 14px;
}

.sell-flow-tip-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.sell-flow-tip-text {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 12px;
}

.sell-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sell-flow-actions .ref-btn {
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .sell-flow-card {
    padding: 24px 18px 30px;
    border-radius: 20px;
  }

  .sell-step {
    padding: 10px 12px;
    margin-left: 0 !important;
    max-width: 100%;
  }

  .sell-step-list {
    padding-left: 40px;
  }
}

.sell-page .section-title {
  font-size: 2.7rem;
}

.sell-page .section-subtitle {
  font-size: 1.05rem;
}

.sell-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

@keyframes sellCardFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sellStepFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark mode tweaks for support + legal cards */
.dark .help-center-page .card,
.dark .privacy-page .card,
.dark .terms-page .card {
  background: var(--dark-surface-a20);
  border-color: var(--dark-surface-a30);
  box-shadow: var(--dark-shadow-md);
}

.dark .contact-support p,
.dark .privacy-cookie-text,
.dark .section-subtitle {
  color: #cbd5e1;
}

.dark .section-title,
.dark .subsection-title {
  color: #f9fafb;
}

.dark .sell-flow-card {
  background: var(--dark-surface-a20);
  border-color: var(--dark-surface-a30);
  box-shadow: var(--dark-shadow-md);
}

.dark .sell-flow-heading,
.dark .sell-flow-tip-title,
.dark .sell-step-title {
  color: #f9fafb;
}

.dark .sell-flow-subtitle,
.dark .sell-step-text,
.dark .sell-flow-tip-text {
  color: #cbd5e1;
}

.dark .sell-step {
  background: var(--dark-surface-a30);
  box-shadow: var(--dark-shadow-md);
}

.dark .sell-flow-tag {
  background: var(--dark-surface-a30);
  color: #e5e7eb;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SELL PAGE - REDESIGNED LANDLORD FOCUSED
   ═══════════════════════════════════════════════════════════════════════════ */

.sell-page .boxed-container {
  max-width: 1100px;
}

/* Hero Section */
.sell-hero {
  text-align: center;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fdf2f8 100%);
  border-radius: var(--radius-xl, 16px);
  box-shadow: 
    8px 8px 20px rgba(163, 177, 198, 0.4),
    -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.sell-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.sell-hero-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.sell-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sell-hero-note {
  font-size: 0.8125rem;
  color: #6b7280;
}

/* Section Styles */
.sell-section {
  margin-bottom: 2.5rem;
}

.sell-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 0.5rem 0;
}

.sell-section-subtitle {
  font-size: 1rem;
  color: #6b7280;
  text-align: center;
  margin: 0 0 1.5rem 0;
}

/* Benefits Grid */
.sell-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.sell-benefit-card {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  padding: 1.5rem;
  box-shadow: 
    6px 6px 16px rgba(163, 177, 198, 0.35),
    -6px -6px 16px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.2s ease;
}

.sell-benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    8px 8px 24px rgba(163, 177, 198, 0.45),
    -8px -8px 24px rgba(255, 255, 255, 0.95);
}

.sell-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.sell-benefit-icon i {
  font-size: 1.25rem;
  color: #fff;
}

.sell-benefit-card:nth-child(2) .sell-benefit-icon {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.sell-benefit-card:nth-child(3) .sell-benefit-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.sell-benefit-card:nth-child(4) .sell-benefit-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.sell-benefit-card:nth-child(5) .sell-benefit-icon {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.sell-benefit-card:nth-child(6) .sell-benefit-icon {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.sell-benefit-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.sell-benefit-card p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Steps Grid */
.sell-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sell-step-card {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 
    6px 6px 16px rgba(163, 177, 198, 0.35),
    -6px -6px 16px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.5);
  position: relative;
}

.sell-step-card .sell-step-number {
  position: static;
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  transform: none;
  left: auto;
  top: auto;
}

.sell-step-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.sell-step-card p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Comparison Table */
.sell-compare-table {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: 
    6px 6px 16px rgba(163, 177, 198, 0.35),
    -6px -6px 16px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.sell-compare-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: 1px solid #e5e7eb;
}

.sell-compare-row:last-child {
  border-bottom: none;
}

.sell-compare-header {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #6b7280;
}

.sell-compare-feature,
.sell-compare-old,
.sell-compare-new {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
}

.sell-compare-feature {
  font-weight: 500;
  color: #374151;
}

.sell-compare-old {
  text-align: center;
  color: #6b7280;
  background: #fafafa;
}

.sell-compare-old i {
  color: #ef4444;
}

.sell-compare-new {
  text-align: center;
  color: #111827;
  background: #f0fdf4;
}

.sell-compare-new i {
  color: #10b981;
}

/* Tips Grid */
.sell-tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sell-tip-card {
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem;
  text-align: center;
  box-shadow: 
    6px 6px 16px rgba(163, 177, 198, 0.35),
    -6px -6px 16px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.sell-tip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.sell-tip-icon i {
  font-size: 1.125rem;
  color: #3b82f6;
}

.sell-tip-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.375rem 0;
}

.sell-tip-card p {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Final CTA */
.sell-final-cta {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: var(--radius-xl, 16px);
  color: #fff;
}

.sell-final-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #fff;
}

.sell-final-cta p {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.sell-final-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .sell-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sell-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sell-tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sell-hero {
    padding: 2rem 1.5rem;
  }
  
  .sell-hero-title {
    font-size: 1.75rem;
  }
  
  .sell-benefits-grid,
  .sell-steps-grid,
  .sell-tips-grid {
    grid-template-columns: 1fr;
  }
  
  .sell-compare-row {
    grid-template-columns: 1fr;
  }
  
  .sell-compare-header {
    display: none;
  }
  
  .sell-compare-feature,
  .sell-compare-old,
  .sell-compare-new {
    text-align: left;
    padding: 0.625rem 1rem;
  }
  
  .sell-compare-feature {
    background: #f8fafc;
    font-weight: 600;
  }
}

/* Dark Mode */
.dark .sell-hero {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(88, 28, 135, 0.2) 50%, rgba(131, 24, 67, 0.2) 100%);
  box-shadow: var(--dark-shadow-md);
}

.dark .sell-hero-title {
  color: #f1f5f9;
}

.dark .sell-hero-subtitle {
  color: #94a3b8;
}

.dark .sell-hero-note {
  color: #64748b;
}

.dark .sell-section-title {
  color: #f1f5f9;
}

.dark .sell-section-subtitle {
  color: #94a3b8;
}

.dark .sell-benefit-card,
.dark .sell-step-card,
.dark .sell-tip-card {
  background: var(--dark-surface-a20);
  border-color: var(--dark-surface-a30);
  box-shadow: var(--dark-shadow-md);
}

.dark .sell-benefit-card h3,
.dark .sell-step-card h3,
.dark .sell-tip-card h4 {
  color: #f1f5f9;
}

.dark .sell-benefit-card p,
.dark .sell-step-card p,
.dark .sell-tip-card p {
  color: #94a3b8;
}

.dark .sell-tip-icon {
  background: var(--dark-surface-a30);
}

.dark .sell-compare-table {
  background: var(--dark-surface-a20);
  border-color: var(--dark-surface-a30);
  box-shadow: var(--dark-shadow-md);
}

.dark .sell-compare-row {
  border-bottom-color: var(--dark-surface-a30);
}

.dark .sell-compare-header {
  background: var(--dark-surface-a30);
  color: #94a3b8;
}

.dark .sell-compare-feature {
  color: #e2e8f0;
}

.dark .sell-compare-old {
  background: var(--dark-surface-a30);
  color: #94a3b8;
}

.dark .sell-compare-new {
  background: rgba(16, 185, 129, 0.1);
  color: #e2e8f0;
}

.dark .sell-final-cta {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.dark .sell-final-cta h2 {
  color: #f1f5f9;
}

.dark .sell-final-cta p {
  color: #94a3b8;
}
