/* === Guide Hero === */
.guide-hero {
  position: relative;
  text-align: center;
  padding: 60px 30px;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 50%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.guide-hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
  animation: heroGlowPulse 4s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.2; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.4; transform: translateX(-50%) scale(1.1); }
}

.guide-hero-content { position: relative; z-index: 1; }

.guide-hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.guide-hero-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.guide-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.guide-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.guide-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.guide-hero-stat { text-align: center; }

.guide-hero-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.guide-hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guide-hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === Section Titles === */
.guide-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.guide-section-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.guide-subsection-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 24px 0 12px;
}

/* === Overview === */
.guide-overview {
  margin-bottom: 30px;
}

.guide-overview-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* === Flow Diagram === */
.guide-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.guide-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.guide-flow-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-flow-icon:hover {
  transform: translateY(-4px);
}

.guide-flow-icon svg { width: 28px; height: 28px; }

.guide-flow-icon--upload {
  background: linear-gradient(135deg, rgba(129,140,248,0.2), rgba(129,140,248,0.05));
  color: var(--accent);
  border: 1px solid rgba(129,140,248,0.3);
}
.guide-flow-icon--upload:hover { box-shadow: 0 8px 24px rgba(129,140,248,0.2); }

.guide-flow-icon--ai {
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(251,191,36,0.05));
  color: var(--warning);
  border: 1px solid rgba(251,191,36,0.3);
}
.guide-flow-icon--ai:hover { box-shadow: 0 8px 24px rgba(251,191,36,0.2); }

.guide-flow-icon--process {
  background: linear-gradient(135deg, rgba(74,222,128,0.2), rgba(74,222,128,0.05));
  color: var(--success);
  border: 1px solid rgba(74,222,128,0.3);
}
.guide-flow-icon--process:hover { box-shadow: 0 8px 24px rgba(74,222,128,0.2); }

.guide-flow-icon--download {
  background: linear-gradient(135deg, rgba(129,140,248,0.2), rgba(129,140,248,0.05));
  color: var(--accent);
  border: 1px solid rgba(129,140,248,0.3);
}
.guide-flow-icon--download:hover { box-shadow: 0 8px 24px rgba(129,140,248,0.2); }

.guide-flow-arrow {
  color: var(--text-muted);
  opacity: 0.5;
}
.guide-flow-arrow svg { width: 20px; height: 20px; }

/* === Step Cards (Accordion) === */
.guide-steps-section { margin-bottom: 30px; }

.guide-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.guide-step-card:hover { border-color: rgba(129,140,248,0.3); }
.guide-step-card.open { border-color: var(--accent); box-shadow: 0 4px 24px var(--accent-glow); }

.guide-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.guide-step-header:hover { background: rgba(255,255,255,0.02); }

.guide-step-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-badge--ai {
  background: linear-gradient(135deg, var(--warning), #f59e0b);
}

.guide-step-badge--process {
  background: linear-gradient(135deg, var(--success), #22c55e);
}

.guide-step-header-text { flex: 1; }
.guide-step-header-text h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 2px; }
.guide-step-header-text p { font-size: 0.85rem; color: var(--text-muted); }

.guide-step-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.guide-step-card.open .guide-step-chevron { transform: rotate(180deg); }

.guide-step-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.guide-step-card.open .guide-step-body {
  max-height: 2000px;
}

.guide-step-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 24px 24px;
}

.guide-step-text { display: flex; flex-direction: column; gap: 16px; }

/* === Tips === */
.guide-tip {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.15);
}

.guide-tip svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.guide-tip strong { color: var(--text-primary); display: block; margin-bottom: 4px; }
.guide-tip p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; margin: 0; }

.guide-tip--ai { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.15); }
.guide-tip--ai svg { color: var(--warning); }

.guide-tip--live { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.15); }
.guide-tip--live svg { color: var(--success); }

/* === Checklist === */
.guide-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.guide-checklist li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* === Mock Screenshots === */
.guide-screenshot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.guide-screen-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.guide-screen-dots {
  display: flex;
  gap: 6px;
}

.guide-screen-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.guide-screen-dots span:first-child { background: #f87171; }
.guide-screen-dots span:nth-child(2) { background: #fbbf24; }
.guide-screen-dots span:last-child { background: #4ade80; }

.guide-screen-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.guide-screen-body {
  padding: 20px;
}

/* === Mock UI Elements === */
.guide-mock-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
}

.guide-mock-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.guide-mock-step.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.guide-mock-step.completed {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.guide-mock-step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
}

.guide-mock-step-line.active { background: var(--accent); }

.guide-mock-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: border-color 0.3s;
  animation: dropzonePulse 3s ease-in-out infinite;
}

@keyframes dropzonePulse {
  0%, 100% { border-color: var(--border); }
  50% { border-color: var(--accent); }
}

.guide-mock-ai-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.3);
  color: var(--warning);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.guide-mock-ai-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.guide-mock-columns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-mock-col {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.guide-mock-col.selected {
  border-color: var(--accent);
  background: rgba(129,140,248,0.1);
  color: var(--text-primary);
}

.guide-mock-col input { accent-color: var(--accent); }

.guide-mock-col-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(74,222,128,0.15);
  color: var(--success);
  font-weight: 600;
}

.guide-mock-btn {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

/* === Mock Progress Ring === */
.guide-mock-progress-ring {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.guide-mock-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.guide-mock-progress-pct {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.guide-progress-fill {
  animation: progressFillAnim 3s ease-in-out infinite;
}

@keyframes progressFillAnim {
  0% { stroke-dashoffset: 326; }
  50% { stroke-dashoffset: 32; }
  100% { stroke-dashoffset: 326; }
}

.guide-mock-counters {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.guide-mock-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* === Mock Stats === */
.guide-mock-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.guide-mock-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px;
  text-align: center;
}

.guide-mock-stat-val {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.guide-mock-stat-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guide-mock-table-mini {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-mock-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.7fr 1fr;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.guide-mock-table-row:last-child { border-bottom: none; }

.guide-mock-table-header {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.02);
}

.guide-mock-dl-btn {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent);
  color: white;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
}

/* === Sample Tables === */
.guide-sample-section {
  padding: 0 24px 24px;
}

.guide-sample-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.guide-table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.guide-sample-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.guide-sample-table th {
  background: var(--bg-secondary);
  font-size: 0.72rem;
}

.guide-sample-table td {
  padding: 10px 16px;
  white-space: nowrap;
}

.guide-highlight-cell {
  color: var(--accent);
  font-weight: 600;
}

.guide-table-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.guide-new-col {
  background: rgba(74,222,128,0.04) !important;
}

.guide-output-table th.guide-new-col {
  color: var(--success);
}

/* === Enrichment Visual === */
.guide-results-section {
  margin-bottom: 30px;
}

.guide-results-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.guide-enrichment-visual {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.guide-enrich-before,
.guide-enrich-after {
  flex: 1;
  min-width: 200px;
}

.guide-enrich-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.guide-enrich-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-enrich-col {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
  position: relative;
}

.guide-enrich-col--original {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.guide-enrich-col--phone {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(129,140,248,0.1);
}

.guide-enrich-col--new {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: var(--success);
  transition: transform 0.2s, box-shadow 0.2s;
}

.guide-enrich-col--new:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(74,222,128,0.2);
}

.guide-enrich-col--new[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10;
}

.guide-enrich-plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* === Column Reference Grid === */
.guide-columns-ref { margin-bottom: 30px; }

.guide-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.guide-col-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.guide-col-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129,140,248,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.guide-col-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.guide-col-card-icon svg { width: 20px; height: 20px; }

.guide-col-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: monospace;
}

.guide-col-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.guide-col-values {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.guide-col-values--types { gap: 8px; }

.guide-col-example {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--accent);
  font-family: monospace;
}

.guide-type-badge {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.guide-type-mobile { background: rgba(74,222,128,0.15); color: var(--success); }
.guide-type-fixed { background: rgba(129,140,248,0.15); color: var(--accent); }
.guide-type-voip { background: rgba(251,191,36,0.15); color: var(--warning); }
.guide-type-unknown { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* === Dashboard Section === */
.guide-dashboard-section {
  margin-bottom: 30px;
}

.guide-dashboard-section .guide-step-content {
  padding: 0;
}

/* === FAQ === */
.guide-faq-section { margin-bottom: 30px; }

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

.guide-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.guide-faq-item:hover { border-color: rgba(129,140,248,0.3); }
.guide-faq-item.open { border-color: var(--accent); }

.guide-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  user-select: none;
}

.guide-faq-q svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.guide-faq-item.open .guide-faq-q svg { transform: rotate(45deg); }

.guide-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.guide-faq-item.open .guide-faq-a {
  max-height: 300px;
  padding: 0 20px 16px;
}

/* === CTA === */
.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--bg-card), rgba(129,140,248,0.08));
  border-color: rgba(129,140,248,0.2);
}

.guide-cta h2 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.guide-cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === Animation === */
.guide-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.guide-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 900px) {
  .guide-step-content {
    grid-template-columns: 1fr;
  }

  .guide-hero h1 { font-size: 1.6rem; }
  .guide-hero-stats { gap: 20px; }
  .guide-hero-stat-num { font-size: 1.5rem; }

  .guide-enrichment-visual { flex-direction: column; }
  .guide-enrich-plus { transform: rotate(90deg); }

  .guide-col-grid { grid-template-columns: 1fr 1fr; }

  .guide-cta { flex-direction: column; text-align: center; }

  .guide-mock-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .guide-col-grid { grid-template-columns: 1fr; }
  .guide-flow { gap: 4px; }
  .guide-flow-arrow { display: none; }
}
