/* ══════════════════════════════════════════
   App Detail Pages — Shared Styles
   ══════════════════════════════════════════ */

/* ── Hero ── */
.ap-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.ap-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.ap-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.ap-hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.ap-hero-badge-logo {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  text-transform: none;
  letter-spacing: normal;
}

.ap-badge-logo {
  height: 44px;
  width: auto;
  color: var(--text);
}

.ap-hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.ap-hero h1 span { color: var(--accent); }

.ap-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.ap-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ap-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ap-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35);
}

.ap-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.ap-btn-secondary:hover {
  border-color: var(--accent-border);
  background: var(--accent-glow);
}

.ap-hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.ap-proof-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* ── Demo Video ── */
.ap-video-section {
  padding: 0 2rem 4rem;
  background: var(--bg);
  scroll-margin-top: 100px;
}

#demo-video {
  scroll-margin-top: 100px;
}

.ap-video-inner {
  max-width: 960px;
  margin: 0 auto;
}

.ap-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  background: #000;
}

.ap-video-container > iframe,
.ap-video-section .ap-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.ap-video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition);
}

.ap-video-placeholder:hover {
  background: var(--accent-glow);
}

.ap-video-placeholder svg {
  color: var(--accent);
  transition: transform var(--transition);
}

.ap-video-placeholder:hover svg {
  transform: scale(1.1);
}

/* ── Specialists Bar ── */
.ap-specialists-bar {
  padding: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  overflow-x: auto;
}

.ap-specialists-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ap-specialist-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.ap-specialist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--accent-border);
}

.ap-spec-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.ap-spec-info {
  display: flex;
  flex-direction: column;
}

.ap-spec-info strong {
  font-size: 0.9rem;
  color: var(--text);
}

.ap-spec-info span {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Sections ── */
.ap-section {
  padding: 5rem 2rem;
}

.ap-section-inner,
.ap-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.ap-section-alt {
  background: var(--bg-alt);
}

.ap-section-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.ap-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.ap-section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.ap-video-wrap {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Steps ── */
.ap-steps-section {
  background: var(--bg-alt);
}

.ap-steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.ap-step {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.ap-step.reversed {
  grid-template-columns: auto 1fr 1fr;
}

.ap-step.reversed .ap-step-visual {
  order: -1;
}

.ap-step.reversed .ap-step-num {
  order: -2;
}

.ap-step-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.12;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ap-step-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.ap-step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.ap-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-check-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ap-check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Mock Windows ── */
.ap-mock-window {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.ap-mock-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.ap-mock-dots {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

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

.ap-mock-body {
  padding: 1.5rem;
}

/* Mock: Campaign form */
.ap-mock-field {
  margin-bottom: 1rem;
}

.ap-mock-label {
  width: 80px;
  height: 10px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.ap-mock-input {
  width: 100%;
  height: 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ap-mock-input-lg {
  height: 64px;
}

.ap-mock-tags {
  display: flex;
  gap: 0.5rem;
}

.ap-mock-tags span {
  padding: 0.3rem 0.75rem;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--accent-border);
}

/* Mock: Brand */
.ap-brand-colors {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ap-brand-colors span {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.ap-brand-colors span:hover {
  transform: scale(1.15);
}

.ap-brand-fonts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-font-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--bg-alt);
  border-radius: 10px;
}

.ap-font-sample {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  width: 40px;
}

.ap-font-name {
  width: 100px;
  height: 10px;
  background: var(--border);
  border-radius: 4px;
}

/* Mock: Team select */
.ap-mock-team {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-team-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ap-team-row.selected {
  border-color: var(--accent-border);
  background: var(--accent-glow);
  color: var(--text);
}

.ap-team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ap-team-check {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

/* Mock: Live collaboration */
.ap-mock-live {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-live-msg {
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ap-live-name {
  display: block;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.ap-live-typing {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
}

.ap-live-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.4;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.ap-live-typing span:nth-child(2) { animation-delay: 0.16s; }
.ap-live-typing span:nth-child(3) { animation-delay: 0.32s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(1); opacity: 0.4; }
  40% { transform: scale(1.3); opacity: 1; }
}

/* ── Split Sections ── */
.ap-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ap-split.reversed .ap-split-visual {
  order: -1;
}

.ap-split-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ── Chat Mock ── */
.ap-mock-chat .ap-mock-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 340px;
  overflow: hidden;
}

.ap-chat-msg {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.ap-chat-msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  max-width: 85%;
  border-bottom-right-radius: 4px;
}

.ap-chat-msg.ai {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  max-width: 90%;
  border-bottom-left-radius: 4px;
}

.ap-chat-agent {
  display: block;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.ap-chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ── Dashboard Mock ── */
.ap-mock-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ap-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.ap-dash-stat {
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: var(--bg-alt);
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.ap-dash-stat:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.ap-dash-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-dash-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-weight: 600;
}

.ap-dash-bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ap-dash-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ap-dash-bar-label {
  width: 60px;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  flex-shrink: 0;
}

.ap-dash-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}

.ap-dash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a5b4fc);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ── Feature Grid ── */
.ap-features-section {
  background: var(--bg-alt);
}

.ap-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ap-feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.ap-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.ap-feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-glow-strong);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.ap-feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ap-feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Testimonials ── */
.ap-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ap-testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ap-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.ap-testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.ap-testimonial p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.ap-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ap-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.ap-testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
}

.ap-testimonial-author span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Final CTA ── */
.ap-cta-section {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--bg-dark);
  color: #f1f5f9;
}

.ap-cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.ap-cta-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  color: #f1f5f9;
}

.ap-cta-section p {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.ap-cta-section .ap-hero-proof {
  color: #64748b;
}

.ap-cta-section .ap-proof-dot {
  background: #475569;
}

/* ══════════════════════════════════════════
   PageBuilder.gg — Specific Styles
   ══════════════════════════════════════════ */

/* Brand upload files */
.ap-pb-upload {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.ap-pb-file {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ap-pb-file:hover {
  border-color: var(--accent-border);
  transform: translateX(4px);
}

.ap-pb-file-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-pb-file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ap-pb-file-info strong {
  font-size: 0.85rem;
  color: var(--text);
}

.ap-pb-file-info span {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.ap-pb-file-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.ap-pb-file-status.active {
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

/* Brand extracted preview */
.ap-pb-extracted {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ap-pb-colors-row {
  display: flex;
  gap: 0.6rem;
}

.ap-pb-colors-row span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.ap-pb-colors-row span:hover {
  transform: scale(1.15);
}

.ap-pb-font-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border-radius: 10px;
}

.ap-pb-font-lg {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.ap-pb-font-meta {
  display: flex;
  flex-direction: column;
}

.ap-pb-font-meta strong {
  font-size: 0.85rem;
  color: var(--text);
}

.ap-pb-font-meta span {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Mode Cards (3 column) */
.ap-pb-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ap-pb-mode-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ap-pb-mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.ap-pb-mode-visual {
  margin-bottom: 1.25rem;
}

.ap-pb-mode-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ap-pb-mode-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mock: Visual Editor */
.ap-mock-editor {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  min-height: 160px;
}

.ap-editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--bg-alt);
  border-radius: 8px;
}

.ap-editor-prop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ap-prop-label {
  width: 40px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}

.ap-prop-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ap-prop-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}

.ap-prop-bar.short {
  width: 60%;
}

.ap-editor-canvas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-editor-element {
  height: 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.ap-editor-element.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.ap-editor-element.wide {
  height: 50px;
}

/* Mock: Block Templates */
.ap-mock-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ap-block-item {
  text-align: center;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ap-block-item:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.ap-block-thumb {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
  margin-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 60px;
  justify-content: center;
}

.ap-block-line {
  width: 70%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}

.ap-block-line.short {
  width: 45%;
}

.ap-block-btn {
  width: 50%;
  height: 10px;
  background: var(--accent);
  border-radius: 5px;
  opacity: 0.6;
}

.ap-block-grid {
  display: flex;
  gap: 3px;
}

.ap-block-grid span {
  width: 18px;
  height: 18px;
  background: var(--border);
  border-radius: 3px;
}

.ap-block-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border);
}

.ap-block-item span:last-child {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   BlogBaser — Specific Styles
   ══════════════════════════════════════════ */

/* Editor mock */
.ap-bb-editor {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ap-bb-toolbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.ap-bb-tool {
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-alt);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.ap-bb-tool:hover {
  color: var(--text);
}

.ap-bb-tool.ai-tool {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  margin-left: auto;
}

.ap-bb-tool-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
}

.ap-bb-content {
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ap-bb-line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
}

.ap-bb-line.heading {
  width: 55%;
  height: 12px;
  background: var(--text);
  opacity: 0.15;
  margin-bottom: 0.25rem;
}

.ap-bb-line.subheading {
  width: 40%;
  height: 10px;
  background: var(--text);
  opacity: 0.12;
  margin-top: 0.25rem;
}

.ap-bb-line.full { width: 100%; }
.ap-bb-line.partial { width: 72%; }
.ap-bb-line.partial-sm { width: 58%; }

.ap-bb-line-spacer {
  height: 6px;
}

.ap-bb-ai-suggest {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--accent-glow);
  border-top: 1px solid var(--accent-border);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.ap-bb-sparkle {
  font-size: 0.9rem;
}

/* Calendar mock */
.ap-mock-calendar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ap-cal-header {
  display: flex;
  justify-content: center;
}

.ap-cal-month {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.ap-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.ap-cal-day {
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ap-cal-day.has-post {
  border: 1px solid var(--accent-border);
}

.ap-cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.ap-cal-upcoming {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-cal-post {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ap-cal-post:hover {
  border-color: var(--accent-border);
  transform: translateX(4px);
}

.ap-cal-post-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ap-cal-post-dot.scheduled { background: var(--accent); }
.ap-cal-post-dot.draft { background: var(--text-dim); }

.ap-cal-post-info {
  display: flex;
  flex-direction: column;
}

.ap-cal-post-info strong {
  font-size: 0.8rem;
  color: var(--text);
}

.ap-cal-post-info span {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Theme previews */
.ap-bb-themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ap-bb-theme-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ap-bb-theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ap-bb-theme-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.ap-bb-theme-card span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: block;
}

.ap-bb-theme-preview {
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 80px;
  border: 1px solid var(--border-light);
}

.ap-bb-theme-nav {
  display: flex;
  gap: 4px;
}

.ap-bb-theme-nav span {
  width: 20px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
}

.ap-bb-theme-nav.dark span {
  background: #334155;
}

.ap-bb-theme-hero-bar {
  height: 8px;
  width: 60%;
  background: #6366f1;
  border-radius: 4px;
  opacity: 0.7;
}

.ap-bb-theme-hero-bar.dark { background: #818cf8; }
.ap-bb-theme-hero-bar.purple { background: #a855f7; }
.ap-bb-theme-hero-bar.green { background: #22c55e; }

.ap-bb-theme-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ap-bb-theme-body span {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
}

.ap-bb-theme-body span:first-child { width: 100%; }
.ap-bb-theme-body span:last-child { width: 70%; }

.ap-bb-theme-body.dark span {
  background: #1e293b;
}

/* ══════════════════════════════════════════
   CreatorStudio.gg — Specific Styles
   ══════════════════════════════════════════ */

/* Studio Cards (3 column overview) */
.ap-cs-studios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ap-cs-studio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.ap-cs-studio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-border);
}

.ap-cs-studio-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.ap-cs-studio-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 1.25rem;
}

.ap-cs-studio-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ap-cs-studio-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.ap-cs-studio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.ap-cs-studio-link:hover { gap: 0.65rem; }

/* UGC Workflow (6-step grid) */
.ap-cs-workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ap-cs-wf-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ap-cs-wf-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.ap-cs-wf-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.15;
  margin-bottom: 0.75rem;
}

.ap-cs-wf-visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ap-cs-wf-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.ap-cs-wf-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Avatar grid mock */
.ap-cs-avatar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ap-cs-avatar-grid span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-cs-avatar-grid span:hover {
  transform: scale(1.1);
}

.ap-cs-avatar-grid span.selected {
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 0 1.5px var(--accent);
}

/* Scene grid mock */
.ap-cs-scene-grid {
  display: flex;
  gap: 8px;
}

.ap-cs-scene-grid .scene {
  width: 60px;
  height: 45px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ap-cs-scene-grid .scene:hover { transform: scale(1.05); }
.ap-cs-scene-grid .scene.selected { border-color: var(--accent); }

/* Product upload mock */
.ap-cs-product-mock {
  width: 80px;
  height: 80px;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-cs-product-box {
  width: 36px;
  height: 44px;
  background: var(--border);
  border-radius: 6px;
}

/* Composite mock */
.ap-cs-composite-mock {
  width: 90px;
  height: 70px;
  background: #fef3c7;
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  overflow: hidden;
}

.ap-cs-comp-avatar {
  width: 30px;
  height: 40px;
  border-radius: 8px 8px 0 0;
}

.ap-cs-comp-product {
  width: 18px;
  height: 22px;
  background: rgba(0,0,0,0.15);
  border-radius: 4px;
  position: absolute;
  bottom: 10px;
  right: 14px;
}

.ap-cs-comp-sparkle {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.8rem;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

/* Script mock */
.ap-cs-script-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ap-cs-script-line {
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}

.ap-cs-script-line.short { width: 55px; }

.ap-cs-script-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
}

.ap-cs-script-wave span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.5;
  animation: wave-bar 1.2s ease-in-out infinite;
}

.ap-cs-script-wave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.ap-cs-script-wave span:nth-child(2) { height: 20px; animation-delay: 0.1s; }
.ap-cs-script-wave span:nth-child(3) { height: 14px; animation-delay: 0.2s; }
.ap-cs-script-wave span:nth-child(4) { height: 24px; animation-delay: 0.3s; }
.ap-cs-script-wave span:nth-child(5) { height: 16px; animation-delay: 0.4s; }
.ap-cs-script-wave span:nth-child(6) { height: 22px; animation-delay: 0.5s; }
.ap-cs-script-wave span:nth-child(7) { height: 10px; animation-delay: 0.6s; }
.ap-cs-script-wave span:nth-child(8) { height: 18px; animation-delay: 0.7s; }

@keyframes wave-bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}

/* Download mock */
.ap-cs-download-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ap-cs-download-mock span {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Thumbnail Studio steps */
.ap-cs-thumb-steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.ap-cs-thumb-step {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ap-cs-thumb-step.reversed {
  direction: rtl;
}

.ap-cs-thumb-step.reversed > * {
  direction: ltr;
}

.ap-cs-thumb-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.ap-cs-thumb-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* URL bar mock */
.ap-cs-url-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.ap-cs-url-icon { color: var(--text-dim); flex-shrink: 0; }

.ap-cs-url-text {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
}

.ap-cs-url-btn {
  padding: 0.3rem 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Thumbnail grid mock */
.ap-cs-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ap-cs-thumb-preview {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ap-cs-thumb-preview:hover { transform: scale(1.03); }
.ap-cs-thumb-preview.active { border-color: var(--accent); }

/* Optimize row */
.ap-cs-optimize-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.ap-cs-opt-card {
  text-align: center;
  position: relative;
}

.ap-cs-opt-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  border: 2px solid var(--border);
  transition: border-color 0.2s ease;
}

.ap-cs-opt-thumb.original { background: var(--bg-alt); }
.ap-cs-opt-thumb.pro { background: #e0f2fe; }
.ap-cs-opt-thumb.viral { background: #fef3c7; }

.ap-cs-opt-card.best .ap-cs-opt-thumb { border-color: var(--green); }

.ap-cs-opt-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ap-cs-opt-badge {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Visual Studio cards */
.ap-cs-visual-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ap-cs-visual-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ap-cs-visual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.ap-cs-visual-preview {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.ap-cs-visual-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ap-cs-visual-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Infographic mock */
.ap-cs-infographic-mock {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-cs-ig-title {
  width: 60%;
  height: 10px;
  background: var(--text);
  opacity: 0.12;
  border-radius: 4px;
}

.ap-cs-ig-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}

.ap-cs-ig-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}

.ap-cs-visual-card:hover .ap-cs-ig-chart span:nth-child(1) { height: 55% !important; }
.ap-cs-visual-card:hover .ap-cs-ig-chart span:nth-child(2) { height: 80% !important; }
.ap-cs-visual-card:hover .ap-cs-ig-chart span:nth-child(3) { height: 65% !important; }
.ap-cs-visual-card:hover .ap-cs-ig-chart span:nth-child(4) { height: 95% !important; }

.ap-cs-ig-stat-row {
  display: flex;
  gap: 0.5rem;
}

.ap-cs-ig-stat {
  flex: 1;
  height: 24px;
  background: var(--border);
  border-radius: 6px;
}

/* Mind map mock */
.ap-cs-mindmap-mock {
  position: relative;
  width: 120px;
  height: 120px;
}

.ap-cs-mm-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
}

.ap-cs-mm-branch {
  position: absolute;
}

.ap-cs-mm-branch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid #fff;
  transition: background 0.3s ease;
}

.ap-cs-visual-card:hover .ap-cs-mm-branch span { background: #a5b4fc; }

.ap-cs-mm-branch.b1 { top: 8px; left: 50%; transform: translateX(-50%); }
.ap-cs-mm-branch.b2 { bottom: 8px; left: 50%; transform: translateX(-50%); }
.ap-cs-mm-branch.b3 { top: 50%; left: 8px; transform: translateY(-50%); }
.ap-cs-mm-branch.b4 { top: 50%; right: 8px; transform: translateY(-50%); }

/* Flowchart mock */
.ap-cs-flowchart-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ap-cs-fc-node {
  width: 50px;
  height: 20px;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

.ap-cs-visual-card:hover .ap-cs-fc-node { opacity: 0.5; }

.ap-cs-fc-node.start { border-radius: 10px; background: var(--green); }
.ap-cs-fc-node.decision { border-radius: 2px; transform: rotate(45deg) scale(0.7); }
.ap-cs-fc-node.small { width: 36px; height: 14px; }

.ap-cs-fc-arrow {
  width: 2px;
  height: 10px;
  background: var(--text-dim);
  opacity: 0.3;
}

.ap-cs-fc-branch {
  display: flex;
  gap: 1rem;
}

/* ══════════════════════════════════════════
   Imager.gg — Specific Styles
   ══════════════════════════════════════════ */

/* Hero stat pills */
.ap-im-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ap-im-stat-pill {
  padding: 0.5rem 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ap-im-stat-pill:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.ap-im-stat-pill strong {
  color: var(--accent);
  font-weight: 800;
  margin-right: 0.25rem;
}

/* Mode cards (5 cards, first one featured) */
.ap-im-modes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.ap-im-mode-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}

.ap-im-mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border-color: var(--accent-border);
}

.ap-im-mode-card.featured {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-glow);
}

.ap-im-mode-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.12;
  margin-bottom: 0.5rem;
}

.ap-im-mode-preview {
  margin-bottom: 1rem;
}

.ap-im-canvas {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.ap-im-mode-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.ap-im-mode-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.ap-im-mode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ap-im-mode-tags span {
  padding: 0.2rem 0.5rem;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--accent-border);
}

/* Canvas visuals */
.ap-im-canvas-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
  width: 100%;
}

.ap-im-canvas-bars span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  transition: height 0.4s ease;
}

.ap-im-mode-card:hover .ap-im-canvas-bars span:nth-child(1) { height: 75% !important; }
.ap-im-mode-card:hover .ap-im-canvas-bars span:nth-child(2) { height: 95% !important; }
.ap-im-mode-card:hover .ap-im-canvas-bars span:nth-child(3) { height: 60% !important; }
.ap-im-mode-card:hover .ap-im-canvas-bars span:nth-child(4) { height: 90% !important; }

.ap-im-text-art {
  display: flex;
  gap: 6px;
}

.ap-im-ta-letter {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.ap-im-mode-card:hover .ap-im-ta-letter {
  opacity: 0.7;
  transform: translateY(-2px);
}

.ap-im-edit-mock {
  position: relative;
  width: 60px;
  height: 50px;
}

.ap-im-edit-img {
  width: 100%;
  height: 100%;
  background: var(--border);
  border-radius: 6px;
}

.ap-im-edit-brush {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #fff;
  opacity: 0.7;
}

.ap-im-multi-ref {
  display: flex;
  gap: 4px;
  align-items: center;
}

.ap-im-multi-ref span {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--border);
  transition: transform 0.2s ease;
}

.ap-im-multi-ref span.result {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  width: 32px;
  height: 32px;
}

.ap-im-mode-card:hover .ap-im-multi-ref span { transform: scale(1.1); }

.ap-im-stock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.ap-im-stock-grid span {
  width: 28px;
  height: 20px;
  background: var(--border);
  border-radius: 3px;
}

/* Headshot cards */
.ap-im-headshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ap-im-headshot-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ap-im-headshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.ap-im-hs-preview {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.ap-im-headshot-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.ap-im-headshot-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ap-im-hs-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.ap-im-hs-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ap-im-hs-step-dot.accent {
  background: var(--accent);
  color: #fff;
}

.ap-im-hs-step-line {
  width: 24px;
  height: 2px;
  background: var(--border);
}

.ap-im-hs-avatar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ap-im-hs-avatar-grid span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.ap-im-headshot-card:hover .ap-im-hs-avatar-grid span { transform: scale(1.08); }

.ap-im-hs-expressions {
  display: flex;
  gap: 0.5rem;
  font-size: 1.75rem;
}

/* Style gallery grid */
.ap-im-style-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.ap-im-style-stat {
  padding: 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.ap-im-style-stat:hover { border-color: var(--accent-border); }

.ap-im-style-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.ap-im-style-stat > span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.ap-im-style-stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.ap-im-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.ap-im-style-swatch {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.65rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.ap-im-style-swatch:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ap-im-style-swatch span {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-im-style-swatch.more {
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ap-im-style-swatch.more span {
  color: var(--accent);
  text-shadow: none;
  font-size: 0.85rem;
}

/* Model cards */
.ap-im-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ap-im-model-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ap-im-model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.ap-im-model-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50px;
  border: 1px solid var(--accent-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.ap-im-model-badge.premium {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.2);
}

.ap-im-model-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.ap-im-model-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Simple 3-step flow */
.ap-im-simple-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.ap-im-simple-step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-im-simple-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.ap-im-ss-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.ap-im-simple-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.ap-im-simple-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ap-im-ss-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 968px) {
  .ap-step {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ap-step.reversed .ap-step-visual,
  .ap-step.reversed .ap-step-num {
    order: unset;
  }

  .ap-step-num {
    font-size: 2.5rem;
  }

  .ap-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ap-split.reversed .ap-split-visual {
    order: unset;
  }

  .ap-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ap-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .ap-pb-modes {
    grid-template-columns: 1fr;
  }

  .ap-bb-themes {
    grid-template-columns: 1fr 1fr;
  }

  .ap-cs-studios {
    grid-template-columns: 1fr;
  }

  .ap-cs-workflow {
    grid-template-columns: 1fr 1fr;
  }

  .ap-cs-thumb-step {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ap-cs-thumb-step.reversed { direction: ltr; }

  .ap-cs-visual-modes {
    grid-template-columns: 1fr;
  }

  .ap-im-modes {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-im-headshot-grid {
    grid-template-columns: 1fr;
  }

  .ap-im-model-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ap-im-simple-steps {
    flex-direction: column;
  }

  .ap-im-ss-arrow {
    transform: rotate(90deg);
  }

  .ap-im-style-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ap-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .ap-hero-actions {
    flex-direction: column;
  }

  .ap-hero-proof {
    flex-wrap: wrap;
    justify-content: center;
  }

  .ap-specialists-inner {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .ap-section {
    padding: 3rem 1.5rem;
  }

  .ap-feature-grid {
    grid-template-columns: 1fr;
  }

  .ap-im-modes {
    grid-template-columns: 1fr;
  }

  .ap-im-stats-bar {
    flex-wrap: wrap;
  }

  .ap-im-model-grid {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════
   BrandBaser — Specific Styles
   ══════════════════════════════════════════ */

/* ── Brand Documents List ── */
.ap-bb-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.ap-bb-doc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ap-bb-doc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.ap-bb-doc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.ap-bb-doc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ap-bb-doc-info strong {
  font-size: 0.85rem;
  color: var(--text);
}

.ap-bb-doc-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ap-bb-doc-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ap-bb-doc-add {
  margin-top: 0.5rem;
  padding: 0.6rem;
  text-align: center;
  border-radius: 8px;
  border: 1.5px dashed var(--accent-border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.ap-bb-doc-add:hover {
  background: var(--accent-glow);
}

/* ── Visual Brand Kits Grid ── */
.ap-bb-kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.ap-bb-kit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ap-bb-kit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.ap-bb-kit-card h3 {
  font-size: 1.05rem;
  margin: 1rem 0 0.4rem;
  color: var(--text);
}

.ap-bb-kit-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.ap-bb-kit-visual {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Generate Methods Tabs ── */
.ap-bb-gen-methods {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.ap-bb-gen-method {
  font-size: 0.68rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}

.ap-bb-gen-method.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Theme Cards (inside kit) ── */
.ap-bb-gen-themes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-bb-gen-theme {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.ap-bb-gen-colors {
  display: flex;
  gap: 3px;
}

.ap-bb-gen-colors span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.ap-bb-gen-theme strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-bb-gen-theme span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ── Palette & Swatches ── */
.ap-bb-palette {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-bb-palette-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.ap-bb-swatch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.ap-bb-swatch {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ap-bb-swatch-card span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text);
}

.ap-bb-swatch-card small {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* ── Typography Preview ── */
.ap-bb-typo-preview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.ap-bb-typo-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.ap-bb-typo-sample {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  width: 28px;
  text-align: center;
}

.ap-bb-typo-sample.body {
  font-weight: 400;
}

.ap-bb-typo-name {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ── Site Preview Mock ── */
.ap-bb-site-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.ap-bb-site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.ap-bb-site-nav span {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.ap-bb-site-cta-btn {
  margin-left: auto;
  width: 40px !important;
  height: 14px !important;
  border-radius: 4px !important;
  background: var(--accent) !important;
}

.ap-bb-site-hero {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.ap-bb-site-badge {
  width: 50px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-glow);
}

.ap-bb-site-title {
  width: 70%;
  height: 10px;
  border-radius: 3px;
  background: var(--text);
  opacity: 0.15;
}

.ap-bb-site-subtitle {
  width: 55%;
  height: 6px;
  border-radius: 3px;
  background: var(--text);
  opacity: 0.08;
}

.ap-bb-site-btn {
  width: 60px;
  height: 16px;
  border-radius: 6px;
  background: var(--accent);
  margin-top: 0.3rem;
}

/* ── Strategy Engine: Question Wizard ── */
.ap-bbs-question {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-bbs-q-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 600;
}

.ap-bbs-question strong {
  font-size: 0.95rem;
  color: var(--text);
}

.ap-bbs-question p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ap-bbs-recording {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
  width: fit-content;
}

.ap-bbs-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: bbs-pulse 1.2s ease-in-out infinite;
}

@keyframes bbs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ap-bbs-rec-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ef4444;
  font-family: monospace;
}

.ap-bbs-answer {
  font-size: 0.78rem;
  color: var(--text);
  font-style: italic;
  padding: 0.6rem 0.75rem;
  background: rgba(99, 102, 241, 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}

/* ── Strategy Engine: Templates ── */
.ap-bbs-templates {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-bbs-template {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

.ap-bbs-template:hover {
  transform: translateX(4px);
}

.ap-bbs-template.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.ap-bbs-tpl-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-bbs-template div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-bbs-template strong {
  font-size: 0.78rem;
  color: var(--text);
}

.ap-bbs-template span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ── Strategy Engine: Action Brief ── */
.ap-bbs-brief {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-bbs-brief-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-bbs-brief-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-bbs-brief-value {
  font-size: 0.82rem;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.ap-bbs-brief-output {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ap-bbs-brief-output-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-bbs-brief-code {
  font-size: 0.75rem;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: #f0f0ff;
  border: 1px solid var(--accent-border);
  line-height: 1.5;
  font-family: monospace;
}

.ap-bbs-brief-btn {
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ap-bbs-brief-btn:hover {
  opacity: 0.9;
}

/* ── Instructions Grid ── */
.ap-bbs-instructions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ap-bbs-instruction {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ap-bbs-instruction:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.ap-bbs-instruction svg {
  color: var(--accent);
}

.ap-bbs-instruction strong {
  font-size: 0.85rem;
  color: var(--text);
}

.ap-bbs-instruction span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Stats Bar ── */
.ap-bbs-stats-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.ap-bbs-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-bbs-stat strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.ap-bbs-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── BrandBaser Responsive ── */
@media (max-width: 968px) {
  .ap-bb-kit-grid {
    grid-template-columns: 1fr;
  }

  .ap-bbs-instructions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-bbs-stats-bar {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .ap-bbs-instructions-grid {
    grid-template-columns: 1fr;
  }

  .ap-bbs-stats-bar {
    gap: 1rem;
  }

  .ap-bbs-stat strong {
    font-size: 1.35rem;
  }
}


/* ══════════════════════════════════════════
   ChatBaser — Specific Styles
   ══════════════════════════════════════════ */

/* ── Value Props Grid ── */
.ap-cb-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ap-cb-value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ap-cb-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.ap-cb-value-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.ap-cb-value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ap-cb-value-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Upload Zone ── */
.ap-cb-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem;
  margin: 0.75rem;
  border: 2px dashed var(--accent-border);
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.02);
  color: var(--accent);
}

.ap-cb-upload-zone strong {
  font-size: 0.82rem;
  color: var(--text);
}

.ap-cb-upload-zone span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ap-cb-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0.75rem 0.75rem;
}

.ap-cb-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text);
}

.ap-cb-file-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ap-cb-file-badge.pdf { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.ap-cb-file-badge.doc { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.ap-cb-file-badge.txt { background: rgba(34, 197, 94, 0.1); color: #22c55e; }

.ap-cb-file span:nth-child(2) {
  flex: 1;
  font-size: 0.72rem;
}

.ap-cb-file-check {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

.ap-cb-file-progress {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cb-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes cb-spin {
  to { transform: rotate(360deg); }
}

/* ── Customizer Mock ── */
.ap-cb-customizer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
}

.ap-cb-customizer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ap-cb-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.ap-cb-color-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ap-cb-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}

.ap-cb-input-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ap-cb-input-field span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ap-cb-input-field div {
  font-size: 0.7rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}

/* ── Chat Preview (inside customizer) ── */
.ap-cb-chat-preview {
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ap-cb-preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--accent);
  color: #fff;
}

.ap-cb-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.ap-cb-preview-header strong {
  font-size: 0.72rem;
}

.ap-cb-preview-msgs {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ap-cb-msg {
  font-size: 0.65rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  max-width: 85%;
  line-height: 1.4;
}

.ap-cb-msg.bot {
  background: #e8e8f8;
  color: var(--text);
  align-self: flex-start;
}

.ap-cb-msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
}

/* ── Deploy Options ── */
.ap-cb-deploy-options {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 0.75rem 0;
}

.ap-cb-deploy-tab {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.ap-cb-deploy-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ap-cb-code-block {
  margin: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #1e1e2e;
  border-radius: 8px;
  overflow-x: auto;
}

.ap-cb-code-block code {
  font-size: 0.68rem;
  color: #a5f3fc;
  font-family: monospace;
  white-space: nowrap;
}

.ap-cb-deploy-copy {
  margin: 0 0.75rem 0.75rem;
  padding: 0.5rem;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ap-cb-deploy-copy:hover {
  opacity: 0.9;
}

/* ── Training View ── */
.ap-cb-training-view {
  padding: 0.75rem;
}

.ap-cb-source-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.ap-cb-source-tabs span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
}

.ap-cb-source-tabs span.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ap-cb-sources-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-cb-source {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.ap-cb-source-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.ap-cb-source div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-cb-source strong {
  font-size: 0.78rem;
  color: var(--text);
}

.ap-cb-source span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-cb-source-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ap-cb-source-status.trained {
  background: #22c55e;
}

.ap-cb-source-status.training {
  background: #f59e0b;
  animation: bbs-pulse 1.2s ease-in-out infinite;
}

.ap-cb-training-bar {
  margin-top: 0.75rem;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.ap-cb-training-fill {
  width: 72%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  animation: cb-fill-pulse 2s ease-in-out infinite;
}

@keyframes cb-fill-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ── Widget Designer Mock ── */
.ap-cb-designer-mock {
  padding: 1.25rem;
  display: flex;
  justify-content: center;
}

.ap-cb-widget-float {
  width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.ap-cb-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--accent);
  color: #fff;
}

.ap-cb-widget-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.ap-cb-widget-header strong {
  font-size: 0.72rem;
}

.ap-cb-widget-header span {
  font-size: 0.58rem;
  opacity: 0.7;
}

.ap-cb-widget-header div {
  display: flex;
  flex-direction: column;
}

.ap-cb-widget-body {
  padding: 0.6rem;
}

.ap-cb-widget-msg {
  font-size: 0.65rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  line-height: 1.4;
}

.ap-cb-widget-msg.bot {
  background: #f1f5f9;
  color: var(--text);
}

.ap-cb-widget-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.ap-cb-widget-suggestions span {
  font-size: 0.6rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  color: var(--accent);
  cursor: pointer;
}

.ap-cb-widget-input {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-top: 1px solid var(--border);
  gap: 0.4rem;
}

.ap-cb-widget-input span:first-child {
  flex: 1;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-cb-widget-send {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── Agents List ── */
.ap-cb-agents-list {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-cb-agent-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.2s;
}

.ap-cb-agent-row:hover {
  transform: translateX(4px);
}

.ap-cb-agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ap-cb-agent-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-cb-agent-info strong {
  font-size: 0.78rem;
  color: var(--text);
}

.ap-cb-agent-info span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-cb-agent-status {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.ap-cb-agent-status.active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.ap-cb-agent-status.paused {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.ap-cb-agent-chats {
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Analytics Mock ── */
.ap-cb-analytics {
  padding: 0.75rem;
}

.ap-cb-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ap-cb-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ap-cb-metric-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-cb-metric-label {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ap-cb-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 80px;
  padding: 0 0.25rem;
}

.ap-cb-chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), #8b5cf6);
  border-radius: 4px 4px 0 0;
  min-height: 8px;
  transition: height 0.3s;
}

.ap-cb-chart-labels {
  display: flex;
  justify-content: space-around;
  margin-top: 0.35rem;
}

.ap-cb-chart-labels span {
  font-size: 0.58rem;
  color: var(--text-muted);
}

/* ── ChatBaser Responsive ── */
@media (max-width: 968px) {
  .ap-cb-value-grid {
    grid-template-columns: 1fr;
  }

  .ap-cb-customizer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ap-cb-metrics-row {
    grid-template-columns: 1fr;
  }

  .ap-cb-agent-chats {
    display: none;
  }
}


/* ══════════════════════════════════════════
   Courses.gg — Specific Styles
   ══════════════════════════════════════════ */

/* ── Comparison Table ── */
.ap-cg-compare-table {
  max-width: 700px;
  margin: 2rem auto 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.ap-cg-compare-header {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.ap-cg-compare-header span:first-child {
  text-align: left;
}

.ap-cg-compare-us {
  color: var(--accent);
}

.ap-cg-compare-them {
  color: var(--text-muted);
}

.ap-cg-compare-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  text-align: center;
  align-items: center;
}

.ap-cg-compare-row:last-child {
  border-bottom: none;
}

.ap-cg-compare-row span:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}

.ap-cg-compare-row.highlight {
  background: rgba(99, 102, 241, 0.04);
}

.ap-cg-check {
  color: #22c55e;
  font-weight: 700;
  font-size: 1rem;
}

.ap-cg-x {
  color: #ef4444;
  font-weight: 700;
  font-size: 1rem;
}

.ap-cg-limit {
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 600;
}

.ap-cg-price-us {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
}

.ap-cg-price-them {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.4);
}

/* ── Community Mock ── */
.ap-cg-community-mock {
  padding: 0.75rem;
}

.ap-cg-categories {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.ap-cg-categories span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.ap-cg-categories span.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ap-cg-post {
  display: flex;
  gap: 0.6rem;
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 0.5rem;
}

.ap-cg-post-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ap-cg-post-body {
  flex: 1;
}

.ap-cg-post-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.ap-cg-post-header strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-cg-post-level {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent);
}

.ap-cg-post-time {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-left: auto;
}

.ap-cg-post-body p {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.ap-cg-post-actions {
  display: flex;
  gap: 0.75rem;
}

.ap-cg-post-actions span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ── Course Builder Mock ── */
.ap-cg-course-mock {
  padding: 0.75rem;
}

.ap-cg-course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.ap-cg-course-header strong {
  font-size: 0.85rem;
  color: var(--text);
}

.ap-cg-course-badge {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-glow);
  color: var(--accent);
}

.ap-cg-module {
  margin-bottom: 0.5rem;
}

.ap-cg-module-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  cursor: pointer;
}

.ap-cg-module-arrow {
  font-size: 0.6rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ap-cg-module-header strong {
  font-size: 0.78rem;
  color: var(--text);
  flex: 1;
}

.ap-cg-module-count {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ap-cg-lessons {
  margin-top: 0.35rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-cg-lesson {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: background 0.2s;
}

.ap-cg-lesson:hover {
  background: #f8fafc;
}

.ap-cg-lesson.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.ap-cg-lesson.completed {
  color: var(--text);
}

.ap-cg-lesson-icon {
  font-size: 0.55rem;
  flex-shrink: 0;
}

.ap-cg-lesson span:nth-child(2) {
  flex: 1;
}

.ap-cg-lesson-done {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

.ap-cg-lesson-dur {
  font-size: 0.62rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ap-cg-module.collapsed .ap-cg-lessons {
  display: none;
}

/* ── Leaderboard Mock ── */
.ap-cg-leaderboard {
  padding: 0.75rem;
}

.ap-cg-lb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.ap-cg-lb-header strong {
  font-size: 0.82rem;
  color: var(--text);
}

.ap-cg-lb-header span {
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.ap-cg-lb-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 0.4rem;
  transition: transform 0.2s;
}

.ap-cg-lb-row:hover {
  transform: translateX(4px);
}

.ap-cg-lb-row.gold {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.03);
}

.ap-cg-lb-row.silver {
  border-color: rgba(148, 163, 184, 0.3);
}

.ap-cg-lb-row.bronze {
  border-color: rgba(180, 130, 80, 0.3);
}

.ap-cg-lb-rank {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.ap-cg-lb-row.gold .ap-cg-lb-rank { color: #f59e0b; }
.ap-cg-lb-row.silver .ap-cg-lb-rank { color: #94a3b8; }
.ap-cg-lb-row.bronze .ap-cg-lb-rank { color: #b4824f; }

.ap-cg-lb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ap-cg-lb-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.ap-cg-lb-info strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-cg-lb-info span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ap-cg-lb-points {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Calendar Mock ── */
.ap-cg-calendar-mock {
  padding: 0.75rem;
}

.ap-cg-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.ap-cg-cal-header strong {
  font-size: 0.82rem;
  color: var(--text);
}

.ap-cg-cal-nav {
  display: flex;
  gap: 0.4rem;
}

.ap-cg-cal-nav span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
}

.ap-cg-cal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.ap-cg-cal-day {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  padding: 0.25rem;
}

.ap-cg-cal-grid span {
  font-size: 0.68rem;
  text-align: center;
  padding: 0.3rem;
  border-radius: 6px;
  color: var(--text);
}

.ap-cg-cal-grid span.has-event {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.ap-cg-cal-grid span.today {
  border: 2px solid var(--accent);
}

.ap-cg-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}

.ap-cg-event {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.ap-cg-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ap-cg-event div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.ap-cg-event strong {
  font-size: 0.72rem;
  color: var(--text);
}

.ap-cg-event span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ap-cg-event-rsvp {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Pricing/Monetization Mock ── */
.ap-cg-pricing-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
}

.ap-cg-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}

.ap-cg-plan.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

.ap-cg-plan-badge {
  position: absolute;
  top: -8px;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-cg-plan-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.ap-cg-plan-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.ap-cg-plan.featured .ap-cg-plan-price {
  color: var(--accent);
}

.ap-cg-plan-period {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ap-cg-plan ul {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  width: 100%;
}

.ap-cg-plan li {
  font-size: 0.62rem;
  color: var(--text);
  padding: 0.2rem 0;
  text-align: center;
}

/* ── Stats Bar ── */
.ap-cg-stats-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.ap-cg-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-cg-stat strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.ap-cg-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Courses.gg Responsive ── */
@media (max-width: 968px) {
  .ap-cg-compare-table {
    max-width: 100%;
  }

  .ap-cg-pricing-mock {
    grid-template-columns: 1fr;
  }

  .ap-cg-stats-bar {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .ap-cg-compare-header,
  .ap-cg-compare-row {
    grid-template-columns: 1fr 80px 80px;
    font-size: 0.72rem;
    padding: 0.5rem 0.75rem;
  }

  .ap-cg-stats-bar {
    gap: 1rem;
  }

  .ap-cg-stat strong {
    font-size: 1.35rem;
  }
}


/* ══════════════════════════════════════════
   DocSigner — Specific Styles
   ══════════════════════════════════════════ */

/* ── Capabilities Grid (2x2) ── */
.ap-ds-caps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.ap-ds-cap-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ap-ds-cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.ap-ds-cap-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ap-ds-cap-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.ap-ds-cap-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.ap-ds-cap-card .ap-check-list {
  margin-top: 0;
}

/* ── Template Picker Mock ── */
.ap-ds-template-picker {
  padding: 0.75rem;
}

.ap-ds-template-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 0.6rem;
}

.ap-ds-template-search svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.ap-ds-template-search span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ap-ds-template-cats {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.ap-ds-template-cats span {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.ap-ds-template-cats span.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ap-ds-template-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.ap-ds-template-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.2s;
  cursor: pointer;
}

.ap-ds-template-item:hover {
  transform: translateX(4px);
}

.ap-ds-tpl-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-ds-template-item div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-ds-template-item strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-ds-template-item span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ap-ds-ai-create {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ap-ds-ai-create:hover {
  opacity: 0.9;
}

/* ── Editor / Field Placement Mock ── */
.ap-ds-editor-mock {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.5rem;
  padding: 0.75rem;
}

.ap-ds-editor-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ap-ds-field-drag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.4rem 0.35rem;
  border-radius: 6px;
  text-align: center;
  cursor: grab;
  border: 1.5px dashed;
  transition: transform 0.2s;
}

.ap-ds-field-drag:hover {
  transform: scale(1.05);
}

.ap-ds-field-drag.sig {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.06);
  color: #6366f1;
}

.ap-ds-field-drag.ini {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.06);
  color: #22c55e;
}

.ap-ds-field-drag.date {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
  color: #f59e0b;
}

.ap-ds-field-drag.txt {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.06);
  color: #94a3b8;
}

.ap-ds-editor-doc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}

.ap-ds-doc-line {
  height: 5px;
  border-radius: 2px;
  background: var(--text);
  opacity: 0.08;
  margin-bottom: 0.4rem;
}

.ap-ds-doc-line.w100 { width: 100%; }
.ap-ds-doc-line.w90 { width: 90%; }
.ap-ds-doc-line.w80 { width: 80%; }
.ap-ds-doc-line.w60 { width: 60%; }
.ap-ds-doc-line.w40 { width: 40%; }

.ap-ds-doc-spacer {
  height: 0.75rem;
}

.ap-ds-placed-field {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  font-size: 0.6rem;
  font-weight: 600;
}

.ap-ds-placed-field.sig {
  background: rgba(99, 102, 241, 0.08);
  border: 1.5px dashed rgba(99, 102, 241, 0.4);
  color: #6366f1;
}

.ap-ds-placed-field.date-field {
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px dashed rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  width: fit-content;
}

/* ── Signers Mock ── */
.ap-ds-signers-mock {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-ds-signer-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.ap-ds-signer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.ap-ds-signer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.ap-ds-signer-info strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-ds-signer-info span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ap-ds-signer-status {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.ap-ds-signer-status.signed {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.ap-ds-signer-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.ap-ds-signer-status.queued {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.ap-ds-signing-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.ap-ds-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.ap-ds-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.ap-ds-signing-progress span {
  font-size: 0.65rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Certificate Mock ── */
.ap-ds-cert-mock {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-ds-cert-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #22c55e;
}

.ap-ds-cert-header strong {
  font-size: 1rem;
  color: var(--text);
}

.ap-ds-cert-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ap-ds-cert-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.ap-ds-cert-row span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ap-ds-cert-row strong {
  font-size: 0.72rem;
  color: var(--text);
}

.ap-ds-cert-hash {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.65rem;
  background: #f0f0ff;
  border-radius: 8px;
  border: 1px solid var(--accent-border);
}

.ap-ds-cert-hash span {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-ds-cert-hash code {
  font-size: 0.7rem;
  color: var(--text);
  font-family: monospace;
}

.ap-ds-cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  color: #22c55e;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ── Template Library Grid ── */
.ap-ds-tpl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ap-ds-tpl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ap-ds-tpl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.ap-ds-tpl-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ap-ds-tpl-card strong {
  font-size: 0.82rem;
  color: var(--text);
}

.ap-ds-tpl-card span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ap-ds-tpl-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.ap-ds-tpl-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ap-ds-tpl-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-ds-tpl-stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Security Grid ── */
.ap-ds-security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ap-ds-security-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ap-ds-security-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.ap-ds-security-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.ap-ds-security-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.ap-ds-security-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ap-ds-compliance-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.ap-ds-compliance-bar span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

/* ── DocSigner Responsive ── */
@media (max-width: 968px) {
  .ap-ds-caps-grid {
    grid-template-columns: 1fr;
  }

  .ap-ds-tpl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-ds-security-grid {
    grid-template-columns: 1fr;
  }

  .ap-ds-tpl-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .ap-ds-tpl-grid {
    grid-template-columns: 1fr;
  }

  .ap-ds-editor-mock {
    grid-template-columns: 1fr;
  }

  .ap-ds-tpl-stat strong {
    font-size: 1.2rem;
  }
}


/* ══════════════════════════════════════════
   VideoPlayer.gg — Specific Styles
   ══════════════════════════════════════════ */

/* ── Side-by-Side Comparison ── */
.ap-vp-compare-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ap-vp-compare-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ap-vp-compare-card.bad {
  border-color: rgba(239, 68, 68, 0.2);
}

.ap-vp-compare-card.good {
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.08);
}

.ap-vp-compare-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 0.75rem;
  text-align: center;
}

.ap-vp-compare-label.bad {
  background: rgba(239, 68, 68, 0.06);
  color: #ef4444;
}

.ap-vp-compare-label.good {
  background: rgba(34, 197, 94, 0.06);
  color: #22c55e;
}

.ap-vp-player-mock {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ap-vp-player-screen {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #1a1a2e;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-vp-yt-logo {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff0000;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}

.ap-vp-yt-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.5rem;
}

.ap-vp-yt-rec {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.ap-vp-yt-rec span {
  width: 28%;
  height: 28px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
}

.ap-vp-yt-ad {
  font-size: 0.58rem;
  color: #fbbf24;
  font-weight: 600;
  background: rgba(0,0,0,0.6);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  width: fit-content;
}

.ap-vp-player-screen.clean {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
}

.ap-vp-clean-play {
  font-size: 1.5rem;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-vp-clean-brand {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

.ap-vp-clean-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.15);
}

.ap-vp-clean-progress {
  width: 35%;
  height: 100%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.ap-vp-compare-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ── URL Input Mock ── */
.ap-vp-url-mock {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ap-vp-url-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-vp-url-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  background: var(--bg);
}

.ap-vp-url-input svg {
  color: var(--accent);
  flex-shrink: 0;
}

.ap-vp-url-input span {
  font-size: 0.72rem;
  color: var(--text);
  font-family: monospace;
}

.ap-vp-url-preview {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.ap-vp-thumb-placeholder {
  width: 80px;
  height: 48px;
  border-radius: 6px;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.ap-vp-url-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.ap-vp-url-meta strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-vp-url-meta span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ap-vp-url-btn {
  padding: 0.55rem;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ap-vp-url-btn:hover {
  opacity: 0.9;
}

/* ── Customize Mock ── */
.ap-vp-customize-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
}

.ap-vp-cust-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ap-vp-cust-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ap-vp-cust-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-vp-cust-colors {
  display: flex;
  gap: 0.35rem;
}

.ap-vp-cust-colors span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.ap-vp-cust-colors span.active {
  border-color: var(--text);
}

.ap-vp-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.ap-vp-toggle.on {
  background: var(--accent);
}

.ap-vp-toggle-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.ap-vp-toggle.on .ap-vp-toggle-dot {
  transform: translateX(16px);
}

/* ── Mini Player Preview ── */
.ap-vp-cust-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-vp-mini-player {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ap-vp-mini-screen {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ap-vp-mini-play {
  font-size: 1.2rem;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-vp-mini-watermark {
  position: absolute;
  bottom: 0.35rem;
  right: 0.4rem;
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}

.ap-vp-mini-controls {
  padding: 0.4rem 0.5rem;
  background: var(--bg);
}

.ap-vp-mini-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.ap-vp-mini-progress {
  width: 40%;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

/* ── Deploy Mock ── */
.ap-vp-deploy-mock {
  padding: 0.75rem;
}

.ap-vp-deploy-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.ap-vp-deploy-tabs span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.ap-vp-deploy-tabs span.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ap-vp-code-block {
  padding: 0.65rem 0.75rem;
  background: #1e1e2e;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  overflow-x: auto;
}

.ap-vp-code-block code {
  font-size: 0.65rem;
  color: #a5f3fc;
  font-family: monospace;
  white-space: nowrap;
}

.ap-vp-deploy-actions {
  display: flex;
  gap: 0.5rem;
}

.ap-vp-copy-btn {
  flex: 1;
  padding: 0.5rem;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.ap-vp-preview-link {
  padding: 0.5rem 0.75rem;
  text-align: center;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

/* ── Analytics Mock ── */
.ap-vp-analytics-mock {
  padding: 0.75rem;
}

.ap-vp-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ap-vp-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ap-vp-metric-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-vp-metric-lbl {
  font-size: 0.58rem;
  color: var(--text-muted);
}

.ap-vp-engagement-chart {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.ap-vp-eng-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.ap-vp-eng-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
}

.ap-vp-eng-bars div {
  flex: 1;
  background: linear-gradient(to top, var(--accent), rgba(99, 102, 241, 0.3));
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

.ap-vp-eng-timeline {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.ap-vp-eng-timeline span {
  font-size: 0.52rem;
  color: var(--text-muted);
}

/* ── VideoPlayer Responsive ── */
@media (max-width: 968px) {
  .ap-vp-customize-mock {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ap-vp-metrics-row {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════
   QuizFunnels — Specific Styles
   ══════════════════════════════════════════ */

/* ── Stats Bar ── */
.ap-qf-stats-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.ap-qf-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-qf-stat strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.ap-qf-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Template Picker Grid ── */
.ap-qf-template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
}

.ap-qf-tpl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  transition: transform 0.2s;
  cursor: pointer;
}

.ap-qf-tpl-card:hover {
  transform: translateY(-2px);
}

.ap-qf-tpl-thumb {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ap-qf-tpl-card strong {
  font-size: 0.68rem;
  color: var(--text);
}

.ap-qf-tpl-card span {
  font-size: 0.58rem;
  color: var(--text-muted);
}

/* ── Quiz Mock ── */
.ap-qf-quiz-mock {
  padding: 1rem;
}

.ap-qf-quiz-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.ap-qf-quiz-bar {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

.ap-qf-quiz-q-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.ap-qf-quiz-question {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.ap-qf-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.ap-qf-quiz-option {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.75rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ap-qf-quiz-option:hover {
  border-color: var(--accent-border);
}

.ap-qf-quiz-option.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.ap-qf-quiz-btn {
  padding: 0.55rem;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

/* ── Result Mock ── */
.ap-qf-result-mock {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.ap-qf-result-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.ap-qf-score-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-qf-score-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-qf-score-label {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.ap-qf-result-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.ap-qf-result-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ap-qf-ai-insight {
  width: 100%;
  text-align: left;
  padding: 0.6rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid var(--accent-border);
}

.ap-qf-ai-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}

.ap-qf-ai-insight ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ap-qf-ai-insight li {
  font-size: 0.68rem;
  color: var(--text);
  padding: 0.15rem 0;
  padding-left: 0.8rem;
  position: relative;
}

.ap-qf-ai-insight li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.6rem;
}

.ap-qf-result-cta {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

/* ── Modes Grid ── */
.ap-qf-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.ap-qf-mode-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ap-qf-mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.ap-qf-mode-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.ap-qf-mode-subtitle {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

.ap-qf-mode-visual {
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.ap-qf-mode-q-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.ap-qf-mode-q strong {
  font-size: 0.8rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}

.ap-qf-mode-options {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ap-qf-mode-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.72rem;
  color: var(--text);
}

.ap-qf-mode-opt.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.ap-qf-pts {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
}

.ap-qf-mode-best {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── NPS Mock ── */
.ap-qf-nps-mock {
  text-align: center;
}

.ap-qf-nps-mock strong {
  font-size: 0.8rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}

.ap-qf-nps-scale {
  display: flex;
  gap: 0.2rem;
  justify-content: center;
  margin-bottom: 0.3rem;
}

.ap-qf-nps-scale span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
}

.ap-qf-nps-scale span.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ap-qf-nps-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: var(--text-muted);
}

/* ── Logic Grid ── */
.ap-qf-logic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.ap-qf-logic-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ap-qf-logic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.ap-qf-logic-card h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.ap-qf-logic-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.ap-qf-logic-visual {
  padding: 0.6rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.ap-qf-logic-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem;
  font-size: 0.68rem;
  color: var(--text);
  border-radius: 4px;
}

.ap-qf-logic-row.highlight {
  background: var(--accent-glow);
  font-weight: 600;
}

.ap-qf-logic-arrow {
  color: var(--accent);
  font-weight: 700;
}

.ap-qf-logic-result {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ap-qf-logic-result strong {
  color: var(--accent);
}

.ap-qf-logic-result span {
  color: var(--accent);
  font-weight: 600;
}

/* ── Tally Bars ── */
.ap-qf-tally-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  font-size: 0.65rem;
  color: var(--text);
}

.ap-qf-tally-row span:first-child {
  width: 55px;
  flex-shrink: 0;
  font-weight: 500;
}

.ap-qf-tally-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  flex-shrink: 0;
}

.ap-qf-tally-row span:last-child {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.6rem;
}

/* ── Rule-Based Code ── */
.ap-qf-rule-code {
  font-family: monospace;
  font-size: 0.62rem;
  line-height: 1.6;
  color: var(--text);
}

.ap-qf-kw {
  color: var(--accent);
  font-weight: 700;
}

.ap-qf-indent {
  padding-left: 1rem;
}

/* ── Flow Diagram ── */
.ap-qf-flow-mock {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ap-qf-flow-node {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.ap-qf-flow-node.start {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}

.ap-qf-flow-node.result {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.06);
  color: #22c55e;
}

.ap-qf-flow-branches {
  display: flex;
  gap: 1.5rem;
}

.ap-qf-flow-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.ap-qf-flow-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: #f8fafc;
}

.ap-qf-flow-line {
  width: 2px;
  height: 16px;
  background: var(--border);
}

.ap-qf-flow-merge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

/* ── Analytics Mock ── */
.ap-qf-analytics-mock {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-qf-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-qf-funnel-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.ap-qf-funnel-step {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
  font-size: 0.68rem;
}

.ap-qf-funnel-step span {
  color: var(--text);
}

.ap-qf-funnel-step strong {
  color: var(--accent);
  font-size: 0.72rem;
}

.ap-qf-dropoff-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.ap-qf-dropoff-bars {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-qf-drop-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ap-qf-drop-bar span:first-child {
  width: 20px;
  flex-shrink: 0;
  font-weight: 600;
}

.ap-qf-drop-fill {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  flex-shrink: 0;
}

.ap-qf-drop-bar.warn .ap-qf-drop-fill {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.ap-qf-drop-bar span:last-child {
  flex-shrink: 0;
  font-weight: 600;
}

/* ── Question Types Grid ── */
.ap-qf-qtypes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.ap-qf-qtype {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  padding: 0.85rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ap-qf-qtype:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ap-qf-qtype strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-qf-qtype span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ── Embed Mock ── */
.ap-qf-embed-mock {
  padding: 0.75rem;
}

.ap-qf-platform-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.ap-qf-platform-logos span {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.ap-qf-embed-code {
  padding: 0.6rem 0.75rem;
  background: #1e1e2e;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow-x: auto;
}

.ap-qf-embed-code code {
  font-size: 0.62rem;
  color: #a5f3fc;
  font-family: monospace;
  white-space: nowrap;
}

.ap-qf-embed-copy {
  padding: 0.5rem;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

/* ── Template Library Grid ── */
.ap-qf-library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.ap-qf-lib-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ap-qf-lib-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.ap-qf-lib-tag {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.ap-qf-lib-card strong {
  font-size: 0.88rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.3rem;
}

.ap-qf-lib-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── QuizFunnels Responsive ── */
@media (max-width: 968px) {
  .ap-qf-stats-bar {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .ap-qf-modes-grid {
    grid-template-columns: 1fr;
  }

  .ap-qf-logic-grid {
    grid-template-columns: 1fr;
  }

  .ap-qf-qtypes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ap-qf-library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ap-qf-qtypes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-qf-stat strong {
    font-size: 1.35rem;
  }

  .ap-qf-nps-scale span {
    width: 20px;
    height: 20px;
    font-size: 0.5rem;
  }
}


/* ══════════════════════════════════════════
   FunnelMapper — Specific Styles
   ══════════════════════════════════════════ */

/* ── Journey Flow ── */
.ap-fm-journey-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.ap-fm-journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.ap-fm-journey-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.ap-fm-journey-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-fm-journey-icon.ad { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.ap-fm-journey-icon.page { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.ap-fm-journey-icon.cart { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ap-fm-journey-icon.upsell { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.ap-fm-journey-icon.purchase { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.ap-fm-journey-step strong {
  font-size: 0.78rem;
  color: var(--text);
}

.ap-fm-journey-step span {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.ap-fm-journey-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 300;
}

/* ── Simulation Mock ── */
.ap-fm-sim-mock {
  padding: 0.75rem;
}

.ap-fm-sim-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.ap-fm-sim-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.ap-fm-sim-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.ap-fm-sim-metric.highlight {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.ap-fm-sim-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-fm-sim-lbl {
  font-size: 0.52rem;
  color: var(--text-muted);
}

.ap-fm-sim-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-fm-sim-bar {
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(99, 102, 241, 0.3));
  display: flex;
  align-items: center;
  padding-left: 0.4rem;
}

.ap-fm-sim-bar span {
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
}

/* ── Builder Mock ── */
.ap-fm-builder-mock {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.5rem;
  padding: 0.5rem;
  height: 200px;
}

.ap-fm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ap-fm-sidebar-title {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-fm-comp-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-fm-comp {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: grab;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--text);
  transition: transform 0.2s;
}

.ap-fm-comp:hover {
  transform: scale(1.03);
}

.ap-fm-comp-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
}

.ap-fm-canvas {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.ap-fm-canvas-node {
  position: absolute;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--accent-border);
  background: var(--bg);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.ap-fm-canvas-node.result {
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.ap-fm-canvas-line {
  position: absolute;
  background: var(--accent);
  opacity: 0.3;
}

.ap-fm-canvas-line.h1 {
  top: calc(10% + 10px);
  left: calc(10% + 75px);
  width: calc(45% - 75px);
  height: 2px;
}

.ap-fm-canvas-line.v1 {
  top: calc(10% + 22px);
  left: calc(55% + 30px);
  width: 2px;
  height: calc(45% - 12px);
}

.ap-fm-canvas-line.h2 {
  top: calc(55% + 10px);
  left: calc(10% + 50px);
  width: calc(45% - 50px);
  height: 2px;
}

/* ── Simulation View (Step 2) ── */
.ap-fm-simulation-view {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.ap-fm-sim-node {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  position: relative;
  width: 80%;
}

.ap-fm-sim-node.small {
  width: auto;
  padding: 0.35rem 0.55rem;
}

.ap-fm-sim-node.final {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.ap-fm-sim-node-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.ap-fm-sim-node-stat {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ap-fm-sim-node-stat.revenue {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-fm-sim-flow-line {
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 2px;
  height: 12px;
  background: var(--border);
}

.ap-fm-sim-flow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  bottom: 0;
  left: -2px;
  animation: fm-dot-flow 1.5s ease-in-out infinite;
}

@keyframes fm-dot-flow {
  0% { bottom: 12px; opacity: 0; }
  50% { opacity: 1; }
  100% { bottom: 0; opacity: 0; }
}

.ap-fm-sim-split {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.ap-fm-sim-branch {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.ap-fm-split-label {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

/* ── Export Mock ── */
.ap-fm-export-mock {
  padding: 0.75rem;
}

.ap-fm-export-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.ap-fm-export-tabs span {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.ap-fm-export-tabs span.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ap-fm-export-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.ap-fm-pdf-page {
  width: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.ap-fm-pdf-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.ap-fm-pdf-logo {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--accent);
}

.ap-fm-pdf-header strong {
  font-size: 0.5rem;
  color: var(--text);
}

.ap-fm-pdf-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  height: 40px;
  margin-bottom: 0.5rem;
}

.ap-fm-pdf-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), rgba(99, 102, 241, 0.3));
  border-radius: 2px 2px 0 0;
}

.ap-fm-pdf-line {
  height: 3px;
  border-radius: 1px;
  background: var(--text);
  opacity: 0.08;
  margin-bottom: 0.25rem;
}

.ap-fm-pdf-line.short {
  width: 60%;
}

.ap-fm-export-btn {
  padding: 0.5rem;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

/* ── Stats Bar ── */
.ap-fm-stats-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.ap-fm-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-fm-stat strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.ap-fm-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── FunnelMapper Responsive ── */
@media (max-width: 968px) {
  .ap-fm-journey-flow {
    flex-direction: column;
  }

  .ap-fm-journey-arrow {
    transform: rotate(90deg);
  }

  .ap-fm-sim-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-fm-builder-mock {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ap-fm-canvas {
    min-height: 160px;
  }

  .ap-fm-stats-bar {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .ap-fm-sim-split {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .ap-fm-sim-metrics {
    grid-template-columns: 1fr;
  }

  .ap-fm-stat strong {
    font-size: 1.35rem;
  }
}

/* ══════════════════════════════════════════
   HDHelpDesk  (.ap-hd-)
   ══════════════════════════════════════════ */

/* ── Dashboard Mock ── */
.ap-hd-dashboard {
  display: flex;
  min-height: 340px;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}

.ap-hd-dash-sidebar {
  width: 180px;
  background: #1e1e2e;
  padding: 1.25rem 0.75rem;
  flex-shrink: 0;
}

.ap-hd-dash-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ap-hd-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-hd-dash-nav span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  cursor: default;
  transition: background 0.2s, color 0.2s;
}

.ap-hd-dash-nav span.active {
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
}

.ap-hd-dash-main {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ap-hd-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.ap-hd-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ap-hd-stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.ap-hd-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ap-hd-stat-trend {
  font-size: 0.65rem;
  font-weight: 600;
}

.ap-hd-stat-trend.up {
  color: #22c55e;
}

/* ── Ticket Rows ── */
.ap-hd-dash-tickets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-hd-ticket-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s;
}

.ap-hd-ticket-row:hover {
  border-color: var(--accent);
}

.ap-hd-ticket-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ap-hd-ticket-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ap-hd-ticket-info strong {
  font-size: 0.8rem;
  color: var(--text);
}

.ap-hd-ticket-info span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-hd-ticket-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.ap-hd-ticket-badge.urgent {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

.ap-hd-ticket-badge.new {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
}

.ap-hd-ticket-badge.open {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
}

/* ── Theme Customizer Mock ── */
.ap-hd-theme-mock {
  padding: 1.25rem;
}

.ap-hd-theme-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.ap-hd-theme-swatches {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ap-hd-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.ap-hd-swatch:hover {
  transform: scale(1.15);
}

.ap-hd-swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}

.ap-hd-theme-preview {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.ap-hd-preview-bar {
  padding: 0.6rem 1rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.ap-hd-preview-body {
  padding: 1rem;
  background: #fff;
}

.ap-hd-preview-search {
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ap-hd-preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ap-hd-preview-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.ap-hd-theme-url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.ap-hd-url-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.ap-hd-url-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Ticket Detail Mock ── */
.ap-hd-ticket-mock {
  padding: 1.25rem;
}

.ap-hd-ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ap-hd-ticket-header strong {
  font-size: 0.9rem;
  color: var(--text);
}

.ap-hd-ticket-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ap-hd-ticket-subject {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.ap-hd-ticket-body {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.ap-hd-ticket-body p { margin: 0; }

.ap-hd-ticket-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ap-hd-action-btn {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: #f4f4f5;
  color: var(--text);
  cursor: default;
  border: 1px solid var(--border);
}

.ap-hd-action-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ap-hd-ticket-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--border);
}

.ap-hd-timeline-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  position: relative;
}

.ap-hd-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  position: absolute;
  left: -1.05rem;
}

.ap-hd-timeline-dot.active {
  background: var(--accent);
}

.ap-hd-timeline-item span {
  padding-left: 0.25rem;
}

/* ── Chat Widget ── */
.ap-hd-chat-widget {
  width: 320px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  background: #fff;
}

.ap-hd-chat-header {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.ap-hd-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ap-hd-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.ap-hd-chat-header-info strong {
  font-size: 0.8rem;
  display: block;
}

.ap-hd-chat-status {
  font-size: 0.65rem;
  color: #86efac;
}

.ap-hd-chat-close {
  font-size: 1.1rem;
  cursor: default;
  opacity: 0.7;
}

.ap-hd-chat-messages {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}

.ap-hd-chat-msg {
  max-width: 85%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ap-hd-chat-msg span {
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.ap-hd-chat-msg small {
  font-size: 0.6rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.ap-hd-chat-msg.bot {
  align-self: flex-start;
}

.ap-hd-chat-msg.bot span {
  background: #f4f4f5;
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.ap-hd-chat-msg.user {
  align-self: flex-end;
}

.ap-hd-chat-msg.user span {
  background: #6366f1;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ap-hd-chat-msg.user small {
  text-align: right;
}

.ap-hd-chat-typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.25rem;
}

.ap-hd-chat-typing small {
  font-size: 0.6rem;
  color: var(--text-muted);
}

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

.ap-hd-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: hd-typing 1.4s infinite;
}

.ap-hd-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ap-hd-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes hd-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.ap-hd-chat-input {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ap-hd-chat-input span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ap-hd-chat-input svg {
  color: var(--accent);
}

/* ── Knowledge Base Mock ── */
.ap-hd-kb-mock {
  padding: 1.25rem;
}

.ap-hd-kb-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ap-hd-kb-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ap-hd-kb-cat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.2s;
}

.ap-hd-kb-cat:hover {
  border-color: var(--accent);
}

.ap-hd-kb-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.ap-hd-kb-cat strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-hd-kb-cat span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ap-hd-kb-popular {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.ap-hd-kb-popular-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.ap-hd-kb-article {
  font-size: 0.75rem;
  color: var(--accent);
  padding: 0.35rem 0;
  border-bottom: 1px solid #f4f4f5;
  cursor: default;
}

.ap-hd-kb-article:last-child { border-bottom: none; }

/* ── Canned Responses Mock ── */
.ap-hd-canned-mock {
  padding: 1.25rem;
}

.ap-hd-canned-search {
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ap-hd-canned-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ap-hd-canned-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.2s;
}

.ap-hd-canned-item:hover,
.ap-hd-canned-item.active {
  border-color: var(--accent);
}

.ap-hd-canned-item.active {
  background: var(--accent-glow);
}

.ap-hd-canned-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.ap-hd-canned-item-header strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-hd-canned-cat {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.ap-hd-canned-item p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.ap-hd-canned-insert {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  cursor: default;
}

/* ── Stats Bar ── */
.ap-hd-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  text-align: center;
}

.ap-hd-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-hd-stat strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-hd-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── HDHelpDesk Responsive ── */
@media (max-width: 968px) {
  .ap-hd-dashboard {
    flex-direction: column;
  }

  .ap-hd-dash-sidebar {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .ap-hd-dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .ap-hd-dash-logo {
    margin-bottom: 0.5rem;
  }

  .ap-hd-dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-hd-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .ap-hd-chat-widget {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .ap-hd-dash-stats {
    grid-template-columns: 1fr;
  }

  .ap-hd-stats-bar {
    grid-template-columns: 1fr;
  }

  .ap-hd-preview-cards {
    grid-template-columns: 1fr;
  }

  .ap-hd-kb-categories {
    grid-template-columns: 1fr;
  }

  .ap-hd-stat strong {
    font-size: 1.35rem;
  }

  .ap-hd-ticket-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ══════════════════════════════════════════
   ScaleGPTs  (.ap-sg-)
   ══════════════════════════════════════════ */

/* ── Stats Bar ── */
.ap-sg-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  text-align: center;
}

.ap-sg-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-sg-stat strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-sg-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Tool Library ── */
.ap-sg-library {
  padding: 0;
}

.ap-sg-library-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-sg-library-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ap-sg-library-tabs {
  display: flex;
  gap: 0.25rem;
}

.ap-sg-library-tabs span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: default;
  transition: background 0.2s, color 0.2s;
}

.ap-sg-library-tabs span.active {
  background: var(--accent);
  color: #fff;
}

.ap-sg-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.25rem;
}

.ap-sg-tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.ap-sg-tool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
}

.ap-sg-tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.ap-sg-tool-card strong {
  font-size: 0.8rem;
  color: var(--text);
}

.ap-sg-tool-card > span {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ap-sg-tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.ap-sg-tool-tag {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.ap-sg-tool-meta > span:last-child {
  font-size: 0.65rem;
  color: #f59e0b;
  font-weight: 600;
}

/* ── Execution Mock ── */
.ap-sg-exec-mock {
  padding: 1.25rem;
}

.ap-sg-exec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ap-sg-exec-tool-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ap-sg-exec-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.ap-sg-exec-tool-badge strong {
  font-size: 0.85rem;
  color: var(--text);
}

.ap-sg-exec-status {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.ap-sg-exec-status.running {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  animation: sg-pulse 2s infinite;
}

@keyframes sg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.ap-sg-exec-input,
.ap-sg-exec-output {
  margin-bottom: 0.75rem;
}

.ap-sg-exec-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.ap-sg-exec-field {
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.5;
}

.ap-sg-exec-result {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

.ap-sg-exec-result p { margin: 0; }

.ap-sg-exec-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  animation: sg-blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes sg-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ap-sg-exec-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.ap-sg-exec-tokens {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-sg-exec-actions {
  display: flex;
  gap: 0.75rem;
}

.ap-sg-exec-actions span {
  font-size: 0.65rem;
  color: var(--text-muted);
  cursor: default;
  transition: color 0.2s;
}

.ap-sg-exec-actions span:hover {
  color: var(--accent);
}

/* ── Builder Mock ── */
.ap-sg-builder-mock {
  padding: 1.25rem;
}

.ap-sg-builder-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.ap-sg-builder-field {
  margin-bottom: 0.75rem;
}

.ap-sg-builder-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.ap-sg-builder-input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.ap-sg-builder-textarea {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.7rem;
  color: var(--text);
  line-height: 1.6;
  min-height: 70px;
}

.ap-sg-builder-vars {
  margin-bottom: 1rem;
}

.ap-sg-builder-var-list {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ap-sg-builder-var {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  font-family: monospace;
}

.ap-sg-builder-var.add {
  background: #f4f4f5;
  color: var(--text-muted);
  font-family: inherit;
  cursor: default;
}

.ap-sg-builder-actions {
  display: flex;
  gap: 0.5rem;
}

.ap-sg-builder-btn {
  flex: 1;
  text-align: center;
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: default;
}

.ap-sg-builder-btn.secondary {
  background: #f4f4f5;
  color: var(--text);
  border: 1px solid var(--border);
}

.ap-sg-builder-btn.primary {
  background: var(--accent);
  color: #fff;
}

/* ── Team Mock ── */
.ap-sg-team-mock {
  padding: 1.25rem;
}

.ap-sg-team-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.ap-sg-team-members {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ap-sg-team-member {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.ap-sg-member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ap-sg-member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ap-sg-member-info strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-sg-member-info span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ap-sg-member-status {
  font-size: 0.6rem;
}

.ap-sg-member-status.online { color: #22c55e; }
.ap-sg-member-status.offline { color: #d4d4d8; }

.ap-sg-team-usage {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.ap-sg-team-usage-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
  display: block;
}

.ap-sg-team-bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ap-sg-team-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 36px;
  align-items: center;
  gap: 0.5rem;
}

.ap-sg-team-bar-row > span:first-child {
  font-size: 0.65rem;
  color: var(--text);
  font-weight: 500;
}

.ap-sg-team-bar-row > span:last-child {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: right;
}

.ap-sg-team-bar {
  height: 6px;
  background: #f4f4f5;
  border-radius: 3px;
  overflow: hidden;
}

.ap-sg-team-bar div {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ── ScaleGPTs Responsive ── */
@media (max-width: 968px) {
  .ap-sg-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .ap-sg-tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-sg-library-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .ap-sg-stats-bar {
    grid-template-columns: 1fr;
  }

  .ap-sg-tool-grid {
    grid-template-columns: 1fr;
  }

  .ap-sg-stat strong {
    font-size: 1.35rem;
  }

  .ap-sg-team-bar-row {
    grid-template-columns: 80px 1fr 30px;
  }
}

/* ══════════════════════════════════════════
   HighTicketGPT  (.ap-ht-)
   ══════════════════════════════════════════ */

/* ── Two Tools Grid ── */
.ap-ht-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ap-ht-tool-card .ap-mock-window {
  height: 100%;
}

.ap-ht-tool-preview {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ap-ht-tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.ap-ht-tool-icon.vsl {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  color: #6366f1;
}

.ap-ht-tool-icon.script {
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(22,163,74,0.15));
  color: #22c55e;
}

.ap-ht-tool-preview h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.ap-ht-tool-preview > p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

/* VSL slides */
.ap-ht-tool-slides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.ap-ht-slide {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.65rem;
  color: var(--text);
  text-align: left;
}

.ap-ht-slide-num {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.6rem;
}

/* Script sections */
.ap-ht-script-sections {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.ap-ht-script-line {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 0.5rem;
}

.ap-ht-script-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.ap-ht-script-bar {
  height: 6px;
  background: #f4f4f5;
  border-radius: 3px;
  overflow: hidden;
}

.ap-ht-script-bar div {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 3px;
}

.ap-ht-tool-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.65rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: default;
}

/* ── Upload Mock ── */
.ap-ht-upload-mock {
  padding: 1.25rem;
}

.ap-ht-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  transition: border-color 0.2s;
}

.ap-ht-upload-zone:hover {
  border-color: var(--accent);
}

.ap-ht-upload-zone strong {
  font-size: 0.85rem;
  color: var(--text);
}

.ap-ht-upload-zone > span {
  font-size: 0.7rem;
}

.ap-ht-upload-formats {
  font-size: 0.6rem !important;
  color: var(--text-muted) !important;
  background: #f4f4f5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.ap-ht-upload-files {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.ap-ht-file {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.ap-ht-file-icon {
  font-size: 1.1rem;
}

.ap-ht-file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ap-ht-file-info strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-ht-file-info span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ap-ht-file-status {
  color: #22c55e;
  font-weight: 700;
}

.ap-ht-analysis-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ap-ht-analysis-bar span {
  font-size: 0.7rem;
  font-weight: 600;
  color: #22c55e;
  white-space: nowrap;
}

.ap-ht-progress {
  flex: 1;
  height: 6px;
  background: #f4f4f5;
  border-radius: 3px;
  overflow: hidden;
}

.ap-ht-progress div {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ── Generation Mock ── */
.ap-ht-gen-mock {
  padding: 1.25rem;
}

.ap-ht-gen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ap-ht-gen-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.ap-ht-gen-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ht-spin 0.8s linear infinite;
}

@keyframes ht-spin {
  to { transform: rotate(360deg); }
}

.ap-ht-gen-output {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ap-ht-gen-slide {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.2s;
}

.ap-ht-gen-slide.active {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.ap-ht-gen-slide-num {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.ap-ht-gen-slide p {
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.ap-ht-gen-typing {
  color: var(--text-muted) !important;
  font-style: normal !important;
  animation: sg-pulse 1.5s infinite;
}

.ap-ht-gen-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ap-ht-gen-progress span {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Export Mock ── */
.ap-ht-export-mock {
  padding: 1.25rem;
}

.ap-ht-export-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ap-ht-export-header strong {
  font-size: 0.9rem;
  color: var(--text);
}

.ap-ht-export-badge {
  font-size: 0.6rem;
  font-weight: 600;
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

.ap-ht-export-preview {
  margin-bottom: 1rem;
}

.ap-ht-export-slide-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
}

.ap-ht-mini-slide {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.35rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.2s;
}

.ap-ht-mini-slide:hover {
  border-color: var(--accent);
}

.ap-ht-mini-slide span {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-ht-mini-slide small {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.ap-ht-export-actions {
  display: flex;
  gap: 0.5rem;
}

.ap-ht-export-btn {
  flex: 1;
  text-align: center;
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #f4f4f5;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: default;
}

.ap-ht-export-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Value Grid ── */
.ap-ht-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.ap-ht-value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ap-ht-value-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(99,102,241,0.06);
}

.ap-ht-value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.ap-ht-value-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.ap-ht-value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Featured Testimonial ── */
.ap-ht-testimonial-feature {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
}

.ap-ht-quote-mark {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: -0.5rem;
}

.ap-ht-quote-text {
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 1.5rem;
}

.ap-ht-quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ap-ht-quote-author div:last-child {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.ap-ht-quote-author strong {
  font-size: 0.9rem;
  color: var(--text);
}

.ap-ht-quote-author span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── HighTicketGPT Responsive ── */
@media (max-width: 968px) {
  .ap-ht-tools-grid {
    grid-template-columns: 1fr;
  }

  .ap-ht-value-grid {
    grid-template-columns: 1fr;
  }

  .ap-ht-export-slide-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ap-ht-tool-slides {
    grid-template-columns: 1fr;
  }

  .ap-ht-export-slide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-ht-export-actions {
    flex-direction: column;
  }

  .ap-ht-quote-text {
    font-size: 0.95rem;
  }
}

/* ══════════════════════════════════════════
   PipeLeads  (.ap-pl-)
   ══════════════════════════════════════════ */

/* ── Duo Grid ── */
.ap-pl-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ap-pl-duo-inner {
  padding: 1.5rem;
}

.ap-pl-duo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ap-pl-duo-badge strong {
  font-size: 0.9rem;
  color: var(--text);
}

.ap-pl-duo-badge svg {
  color: var(--accent);
}

.ap-pl-duo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
}

.ap-pl-duo-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ap-pl-duo-features li {
  font-size: 0.7rem;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
}

.ap-pl-duo-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 0.65rem;
}

/* ── Kanban Mini ── */
.ap-pl-kanban-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.ap-pl-kanban-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ap-pl-kanban-title {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--border);
}

.ap-pl-kanban-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ap-pl-kanban-card small {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ap-pl-kanban-card.highlight {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.ap-pl-kanban-card.won {
  border-color: #22c55e;
  background: rgba(34,197,94,0.05);
}

/* ── Search Mini ── */
.ap-pl-search-mini {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ap-pl-search-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.ap-pl-result-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  transition: border-color 0.2s;
}

.ap-pl-result-row:hover {
  border-color: var(--accent);
}

.ap-pl-result-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ap-pl-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ap-pl-result-info strong {
  font-size: 0.7rem;
  color: var(--text);
}

.ap-pl-result-info span {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.ap-pl-result-tag {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(34,197,94,0.1);
  color: #22c55e;
}

.ap-pl-result-tag.live {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  animation: sg-pulse 2s infinite;
}

/* ── Live Stats ── */
.ap-pl-live-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-pl-live-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  transition: border-color 0.2s;
}

.ap-pl-live-card:hover {
  border-color: var(--accent);
}

.ap-pl-live-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-pl-live-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.ap-pl-live-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ap-pl-live-pulse {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  animation: pl-pulse-ring 2s infinite;
}

@keyframes pl-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ── Search Types Grid ── */
.ap-pl-search-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.ap-pl-search-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ap-pl-search-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(99,102,241,0.06);
}

.ap-pl-search-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.ap-pl-search-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.ap-pl-search-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Enrichment Mock ── */
.ap-pl-enrich-mock {
  padding: 1.25rem;
}

.ap-pl-enrich-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.ap-pl-enrich-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ap-pl-enrich-header strong {
  font-size: 0.85rem;
  color: var(--text);
  display: block;
}

.ap-pl-enrich-header span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ap-pl-enrich-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ap-pl-enrich-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ap-pl-enrich-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.ap-pl-enrich-value {
  font-size: 0.7rem;
  color: var(--text);
}

.ap-pl-enrich-socials {
  display: flex;
  gap: 0.3rem;
}

.ap-pl-enrich-socials span {
  font-size: 0.55rem;
  font-weight: 600;
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.ap-pl-enrich-actions {
  display: flex;
  gap: 0.5rem;
}

.ap-pl-enrich-btn {
  flex: 1;
  text-align: center;
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f4f4f5;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: default;
}

.ap-pl-enrich-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── AI Cards ── */
.ap-pl-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.ap-pl-ai-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.ap-pl-ai-card:hover {
  border-color: var(--accent);
}

.ap-pl-ai-card:first-child {
  grid-column: 1 / -1;
}

.ap-pl-ai-emoji {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.ap-pl-ai-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.ap-pl-ai-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.ap-pl-prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.ap-pl-prompt-tags span {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  border: 1px solid var(--accent-border);
}

/* ── Integration Flow ── */
.ap-pl-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ap-pl-flow-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  transition: border-color 0.2s;
}

.ap-pl-flow-step:hover {
  border-color: var(--accent);
}

.ap-pl-flow-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.ap-pl-flow-step strong {
  font-size: 0.8rem;
  color: var(--text);
}

.ap-pl-flow-step span {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ap-pl-flow-arrow {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.ap-pl-zapier-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text);
}

.ap-pl-zapier-note svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Results Bar ── */
.ap-pl-results-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding: 2rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  text-align: center;
}

.ap-pl-result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.ap-pl-result-arrow {
  font-size: 0.75rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-pl-result-arrow.up {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
}

.ap-pl-result-arrow.down {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
}

.ap-pl-result-stat strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-pl-result-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Industry Grid ── */
.ap-pl-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ap-pl-industry-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.ap-pl-industry-card:hover {
  border-color: var(--accent);
}

.ap-pl-industry-card strong {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
}

.ap-pl-industry-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── PipeLeads Responsive ── */
@media (max-width: 968px) {
  .ap-pl-duo-grid {
    grid-template-columns: 1fr;
  }

  .ap-pl-search-grid {
    grid-template-columns: 1fr;
  }

  .ap-pl-ai-grid {
    grid-template-columns: 1fr;
  }

  .ap-pl-ai-card:first-child {
    grid-column: auto;
  }

  .ap-pl-flow {
    flex-direction: column;
  }

  .ap-pl-flow-arrow {
    transform: rotate(90deg);
  }

  .ap-pl-results-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .ap-pl-industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ap-pl-kanban-mini {
    grid-template-columns: 1fr;
  }

  .ap-pl-results-bar {
    grid-template-columns: 1fr;
  }

  .ap-pl-industry-grid {
    grid-template-columns: 1fr;
  }

  .ap-pl-enrich-grid {
    grid-template-columns: 1fr;
  }

  .ap-pl-result-stat strong {
    font-size: 1.35rem;
  }
}

/* ══════════════════════════════════════════
   CalendarBug  (.ap-cb2-)
   ══════════════════════════════════════════ */

/* ── Booking Widget ── */
.ap-cb2-booking-widget {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
  background: #fff;
}

.ap-cb2-widget-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ap-cb2-widget-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-cb2-widget-header strong {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
}

.ap-cb2-widget-header span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ap-cb2-widget-body {
  display: flex;
  min-height: 260px;
}

.ap-cb2-calendar-side {
  flex: 1;
  padding: 1rem;
  border-right: 1px solid var(--border);
}

.ap-cb2-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ap-cb2-cal-nav strong {
  font-size: 0.8rem;
  color: var(--text);
}

.ap-cb2-cal-nav > span {
  font-size: 1rem;
  color: var(--text-muted);
  cursor: default;
  padding: 0 0.25rem;
}

.ap-cb2-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.ap-cb2-cal-day {
  font-size: 0.65rem;
  padding: 0.35rem 0;
  border-radius: 4px;
  color: var(--text);
  cursor: default;
}

.ap-cb2-cal-day.head {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.55rem;
  text-transform: uppercase;
}

.ap-cb2-cal-day.muted {
  color: #d4d4d8;
}

.ap-cb2-cal-day.avail {
  font-weight: 600;
  color: var(--accent);
}

.ap-cb2-cal-day.selected {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}

.ap-cb2-times-side {
  width: 170px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-cb2-times-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.ap-cb2-time-slots {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ap-cb2-time-slot {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  cursor: default;
  transition: border-color 0.2s, background 0.2s;
}

.ap-cb2-time-slot:hover {
  border-color: var(--accent);
}

.ap-cb2-time-slot.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.ap-cb2-timezone {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: auto;
}

.ap-cb2-confirm-btn {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 0.55rem;
  border-radius: 8px;
  cursor: default;
  margin-top: 0.5rem;
}

.ap-cb2-widget-footer {
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.ap-cb2-sync-badge {
  font-size: 0.65rem;
  color: #22c55e;
  font-weight: 600;
}

/* ── Dashboard Mock ── */
.ap-cb2-dash-mock {
  padding: 1.25rem;
}

.ap-cb2-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ap-cb2-dash-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-cb2-dash-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.ap-cb2-dash-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ap-cb2-dash-trend {
  font-size: 0.55rem;
  font-weight: 600;
}

.ap-cb2-dash-trend.up { color: #22c55e; }

.ap-cb2-dash-chart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.ap-cb2-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 80px;
  margin-bottom: 0.35rem;
}

.ap-cb2-chart-bar {
  flex: 1;
  background: #e0e7ff;
  border-radius: 3px 3px 0 0;
  transition: background 0.2s;
}

.ap-cb2-chart-bar.accent {
  background: var(--accent);
}

.ap-cb2-chart-labels {
  display: flex;
  justify-content: space-between;
}

.ap-cb2-chart-labels span {
  font-size: 0.5rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.ap-cb2-dash-activity {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ap-cb2-activity-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ap-cb2-activity-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-cb2-activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ap-cb2-activity-dot.green { background: #22c55e; }
.ap-cb2-activity-dot.blue { background: #6366f1; }

/* ── Event Mock ── */
.ap-cb2-event-mock {
  padding: 1.25rem;
}

.ap-cb2-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ap-cb2-event-header strong {
  font-size: 0.9rem;
  color: var(--text);
}

.ap-cb2-event-status {
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
}

.ap-cb2-event-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.ap-cb2-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.ap-cb2-event-label {
  color: var(--text-muted);
  font-weight: 500;
}

.ap-cb2-event-row > span:last-child {
  color: var(--text);
  font-weight: 600;
}

.ap-cb2-event-price {
  color: var(--accent) !important;
}

.ap-cb2-event-questions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ap-cb2-event-q-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.ap-cb2-event-q {
  font-size: 0.75rem;
  color: var(--text);
  padding: 0.45rem 0.65rem;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ── Booking Rows ── */
.ap-cb2-bookings-mock {
  padding: 1.25rem;
}

.ap-cb2-bookings-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.75rem;
}

.ap-cb2-booking-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f4f4f5;
}

.ap-cb2-booking-row:last-child { border-bottom: none; }

.ap-cb2-booking-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ap-cb2-booking-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ap-cb2-booking-info strong {
  font-size: 0.8rem;
  color: var(--text);
}

.ap-cb2-booking-info span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-cb2-booking-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
}

.ap-cb2-booking-badge.confirmed { background: rgba(34,197,94,0.1); color: #22c55e; }
.ap-cb2-booking-badge.pending { background: rgba(245,158,11,0.1); color: #f59e0b; }
.ap-cb2-booking-badge.completed { background: rgba(99,102,241,0.1); color: #6366f1; }

/* ── Availability Mock ── */
.ap-cb2-avail-mock {
  padding: 1.25rem;
}

.ap-cb2-avail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ap-cb2-avail-header strong {
  font-size: 0.9rem;
  color: var(--text);
}

.ap-cb2-avail-header > span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ap-cb2-avail-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.ap-cb2-avail-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: #f9fafb;
  border-radius: 6px;
}

.ap-cb2-avail-day {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.ap-cb2-avail-hours {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.ap-cb2-avail-badge {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.ap-cb2-avail-badge.available { background: rgba(34,197,94,0.1); color: #22c55e; }
.ap-cb2-avail-badge.limited { background: rgba(245,158,11,0.1); color: #f59e0b; }
.ap-cb2-avail-badge.blocked { background: rgba(239,68,68,0.1); color: #ef4444; }

.ap-cb2-avail-note {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Brand Mock ── */
.ap-cb2-brand-mock {
  padding: 1.25rem;
}

.ap-cb2-brand-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.ap-cb2-brand-field {
  margin-bottom: 0.75rem;
}

.ap-cb2-brand-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.ap-cb2-brand-color-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ap-cb2-brand-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.ap-cb2-brand-color-row span {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text);
}

.ap-cb2-brand-logo-box {
  width: 48px;
  height: 48px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ap-cb2-brand-url {
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.ap-cb2-brand-preview {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.ap-cb2-preview-bar {
  background: #6366f1;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
}

.ap-cb2-preview-body {
  padding: 0.75rem;
  text-align: center;
}

.ap-cb2-preview-body span {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.ap-cb2-preview-btn {
  background: #6366f1;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  display: inline-block;
}

/* ── CRM Flow ── */
.ap-cb2-crm-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ap-cb2-crm-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  max-width: 240px;
}

.ap-cb2-crm-card.success {
  background: rgba(34,197,94,0.05);
  border-color: #22c55e;
}

.ap-cb2-crm-card-header {
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
}

.ap-cb2-crm-card-header.pipeleads {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
}

.ap-cb2-crm-card-header.calendarbug {
  background: rgba(139,92,246,0.1);
  color: #8b5cf6;
}

.ap-cb2-crm-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ap-cb2-crm-card-body strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-cb2-crm-card-body span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-cb2-crm-check {
  font-size: 1.25rem !important;
  color: #22c55e !important;
  font-weight: 800;
}

.ap-cb2-crm-arrow {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.ap-cb2-crm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.ap-cb2-crm-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ap-cb2-crm-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-cb2-crm-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ap-cb2-crm-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ap-cb2-crm-feat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.ap-cb2-crm-feat:hover {
  border-color: var(--accent);
}

.ap-cb2-crm-feat h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.ap-cb2-crm-feat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Workflow ── */
.ap-cb2-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ap-cb2-wf-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.ap-cb2-wf-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-glow);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.ap-cb2-wf-step strong {
  font-size: 0.85rem;
  color: var(--text);
}

.ap-cb2-wf-step span {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ap-cb2-wf-arrow {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Integration Badges ── */
.ap-cb2-integrations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.ap-cb2-integ-badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ap-cb2-integ-badge:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(99,102,241,0.08);
}

/* ── CalendarBug Responsive ── */
@media (max-width: 968px) {
  .ap-cb2-widget-body {
    flex-direction: column;
  }

  .ap-cb2-calendar-side {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .ap-cb2-times-side {
    width: 100%;
  }

  .ap-cb2-time-slots {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ap-cb2-crm-flow {
    flex-direction: column;
  }

  .ap-cb2-crm-arrow {
    transform: rotate(90deg);
  }

  .ap-cb2-crm-card {
    max-width: 100%;
    width: 100%;
  }

  .ap-cb2-crm-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-cb2-crm-features {
    grid-template-columns: 1fr;
  }

  .ap-cb2-workflow {
    flex-direction: column;
  }

  .ap-cb2-wf-arrow {
    transform: rotate(90deg);
  }

  .ap-cb2-dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ap-cb2-dash-stats {
    grid-template-columns: 1fr;
  }

  .ap-cb2-crm-stats {
    grid-template-columns: 1fr;
  }

  .ap-cb2-crm-stat strong {
    font-size: 1.25rem;
  }

  .ap-cb2-avail-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* ══════════════════════════════════════════
   Invoicer.gg  (.ap-inv-)
   ══════════════════════════════════════════ */

/* ── Stats Bar ── */
.ap-inv-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  text-align: center;
  margin-bottom: 1rem;
}

.ap-inv-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-inv-stat strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-inv-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ap-inv-security-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.ap-inv-security-badges span {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(34,197,94,0.08);
  color: #22c55e;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(34,197,94,0.15);
}

/* ── Savings Compare ── */
.ap-inv-savings-mock {
  padding: 1.5rem;
}

.ap-inv-savings-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  text-align: center;
}

.ap-inv-savings-compare {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.ap-inv-compare-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
}

.ap-inv-compare-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
}

.ap-inv-compare-rate {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ap-inv-compare-bar-wrap {
  width: 60px;
  height: 120px;
  background: #f4f4f5;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.ap-inv-compare-col.bad .ap-inv-compare-bar {
  width: 100%;
  background: linear-gradient(180deg, #ef4444, #f97316);
  border-radius: 0 0 6px 6px;
}

.ap-inv-compare-col.good .ap-inv-compare-bar {
  width: 100%;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border-radius: 0 0 6px 6px;
}

.ap-inv-compare-amount {
  font-size: 0.8rem;
  font-weight: 800;
}

.ap-inv-compare-col.bad .ap-inv-compare-amount { color: #ef4444; }
.ap-inv-compare-col.good .ap-inv-compare-amount { color: #22c55e; }

.ap-inv-savings-total {
  text-align: center;
  padding: 0.75rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 8px;
}

.ap-inv-savings-total strong {
  font-size: 1rem;
  color: #22c55e;
  display: block;
}

.ap-inv-savings-total span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ── Features Grid ── */
.ap-inv-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ap-inv-feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ap-inv-feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(99,102,241,0.06);
}

.ap-inv-feature-card.popular {
  border-color: var(--accent);
}

.ap-inv-feature-card.saver {
  border-color: #22c55e;
}

.ap-inv-feature-tag {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
  background: rgba(99,102,241,0.1);
  color: #6366f1;
}

.ap-inv-feature-tag.money { background: rgba(34,197,94,0.1); color: #22c55e; }
.ap-inv-feature-tag.auto { background: rgba(245,158,11,0.1); color: #f59e0b; }
.ap-inv-feature-tag.mobile { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.ap-inv-feature-tag.analytics { background: rgba(6,182,212,0.1); color: #06b6d4; }
.ap-inv-feature-tag.embed { background: rgba(236,72,153,0.1); color: #ec4899; }

.ap-inv-feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.ap-inv-feature-card > p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.ap-inv-feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ap-inv-feature-card li {
  font-size: 0.75rem;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
}

.ap-inv-feature-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 0.65rem;
}

.ap-inv-feature-tip {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
}

/* ── Dashboard Mock ── */
.ap-inv-dash-mock {
  padding: 1.25rem;
}

.ap-inv-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ap-inv-dash-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-inv-dash-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.ap-inv-dash-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ap-inv-dash-trend {
  font-size: 0.55rem;
  font-weight: 600;
}

.ap-inv-dash-trend.up { color: #22c55e; }

.ap-inv-dash-chart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.ap-inv-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 70px;
  margin-bottom: 0.35rem;
}

.ap-inv-chart-bar {
  flex: 1;
  background: #e0e7ff;
  border-radius: 3px 3px 0 0;
}

.ap-inv-chart-bar.accent {
  background: var(--accent);
}

.ap-inv-chart-labels {
  display: flex;
  justify-content: space-between;
}

.ap-inv-chart-labels span {
  font-size: 0.5rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.ap-inv-dash-recent {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ap-inv-payment-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-inv-payment-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.ap-inv-payment-dot.blue { background: #6366f1; }

/* ── Invoice Mock ── */
.ap-inv-invoice-mock {
  padding: 1.5rem;
}

.ap-inv-inv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.ap-inv-inv-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  margin-bottom: 0.25rem;
}

.ap-inv-inv-header strong {
  font-size: 0.85rem;
  color: var(--text);
}

.ap-inv-inv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-inv-inv-status {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  font-weight: 700;
  font-size: 0.55rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.ap-inv-inv-to {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-inv-inv-label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.ap-inv-inv-to strong {
  font-size: 0.8rem;
  color: var(--text);
}

.ap-inv-inv-to span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-inv-inv-table {
  margin-bottom: 1rem;
}

.ap-inv-inv-row {
  display: grid;
  grid-template-columns: 1fr 40px 80px;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-size: 0.7rem;
  color: var(--text);
  border-bottom: 1px solid #f4f4f5;
}

.ap-inv-inv-row.head {
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.ap-inv-inv-row.total {
  font-weight: 800;
  border-bottom: none;
  border-top: 2px solid var(--text);
  padding-top: 0.5rem;
}

.ap-inv-inv-row span:last-child {
  text-align: right;
}

.ap-inv-inv-row span:nth-child(2) {
  text-align: center;
}

.ap-inv-inv-pay-btn {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  padding: 0.65rem;
  border-radius: 8px;
  cursor: default;
}

/* ── Recurring Mock ── */
.ap-inv-recurring-mock {
  padding: 1.25rem;
}

.ap-inv-rec-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.ap-inv-rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.ap-inv-rec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.ap-inv-rec-info {
  display: flex;
  flex-direction: column;
}

.ap-inv-rec-info strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-inv-rec-info span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.ap-inv-rec-badge {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.ap-inv-rec-badge.active { background: rgba(34,197,94,0.1); color: #22c55e; }
.ap-inv-rec-badge.retry { background: rgba(245,158,11,0.1); color: #f59e0b; }

.ap-inv-rec-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  text-align: center;
}

.ap-inv-rec-summary div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-inv-rec-summary strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-inv-rec-summary span {
  font-size: 0.55rem;
  color: var(--text-muted);
}

/* ── Industry Grid ── */
.ap-inv-industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.ap-inv-industry-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.ap-inv-industry-card:hover {
  border-color: var(--accent);
}

.ap-inv-industry-emoji {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.ap-inv-industry-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.ap-inv-industry-card > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.ap-inv-industry-save {
  font-size: 0.7rem;
  font-weight: 600;
  color: #22c55e;
  font-style: italic;
}

/* ── Security Grid ── */
.ap-inv-security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ap-inv-security-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}

.ap-inv-security-card:hover {
  border-color: var(--accent);
}

.ap-inv-security-card svg {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.ap-inv-security-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.ap-inv-security-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Invoicer Responsive ── */
@media (max-width: 968px) {
  .ap-inv-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .ap-inv-features-grid {
    grid-template-columns: 1fr;
  }

  .ap-inv-industry-grid {
    grid-template-columns: 1fr;
  }

  .ap-inv-security-grid {
    grid-template-columns: 1fr;
  }

  .ap-inv-security-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .ap-inv-stats-bar {
    grid-template-columns: 1fr;
  }

  .ap-inv-stat strong {
    font-size: 1.35rem;
  }

  .ap-inv-dash-stats {
    grid-template-columns: 1fr;
  }

  .ap-inv-rec-summary {
    grid-template-columns: 1fr;
  }

  .ap-inv-inv-row {
    grid-template-columns: 1fr 30px 60px;
  }
}

/* ══════════════════════════════════════════
   ProjectBaser  (.ap-pb-)
   ══════════════════════════════════════════ */

/* ── Board Mock ── */
.ap-pb-board {
  padding: 0;
}

.ap-pb-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ap-pb-board-title strong {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
}

.ap-pb-board-title span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-pb-view-tabs {
  display: flex;
  gap: 0.15rem;
}

.ap-pb-view-tabs span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: default;
}

.ap-pb-view-tabs span.active {
  background: var(--accent);
  color: #fff;
}

.ap-pb-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  min-height: 300px;
  background: #fafafa;
}

.ap-pb-column {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ap-pb-col-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0;
  margin-bottom: 0.15rem;
}

.ap-pb-col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ap-pb-col-dot.todo { background: #a1a1aa; }
.ap-pb-col-dot.progress { background: #6366f1; }
.ap-pb-col-dot.review { background: #f59e0b; }
.ap-pb-col-dot.done { background: #22c55e; }

.ap-pb-col-header > span:nth-child(2) {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text);
}

.ap-pb-col-count {
  font-size: 0.55rem;
  font-weight: 600;
  background: #f4f4f5;
  color: var(--text-muted);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: auto;
}

/* ── Kanban Cards ── */
.ap-pb-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ap-pb-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(99,102,241,0.06);
}

.ap-pb-card.highlight {
  border-color: var(--accent);
  background: rgba(99,102,241,0.02);
}

.ap-pb-card.done {
  opacity: 0.6;
}

.ap-pb-card-tag {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
}

.ap-pb-card-tag.design { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.ap-pb-card-tag.dev { background: rgba(6,182,212,0.1); color: #06b6d4; }
.ap-pb-card-tag.content { background: rgba(245,158,11,0.1); color: #f59e0b; }

.ap-pb-card strong {
  font-size: 0.7rem;
  color: var(--text);
}

.ap-pb-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.15rem;
}

.ap-pb-card-priority {
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.ap-pb-card-priority.high { background: rgba(239,68,68,0.1); color: #ef4444; }
.ap-pb-card-priority.medium { background: rgba(245,158,11,0.1); color: #f59e0b; }
.ap-pb-card-priority.low { background: rgba(34,197,94,0.1); color: #22c55e; }

.ap-pb-card-avatars {
  display: flex;
  gap: -4px;
}

.ap-pb-card-avatars span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.45rem;
  font-weight: 700;
  border: 2px solid #fff;
  margin-left: -4px;
}

.ap-pb-card-avatars span:first-child {
  margin-left: 0;
}

.ap-pb-card-check {
  color: #22c55e;
  font-weight: 700;
  font-size: 0.7rem;
}

.ap-pb-card-progress {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ap-pb-progress-bar {
  flex: 1;
  height: 4px;
  background: #f4f4f5;
  border-radius: 2px;
  overflow: hidden;
}

.ap-pb-progress-bar div {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.ap-pb-card-progress > span {
  font-size: 0.55rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── Collaboration Mock ── */
.ap-pb-collab-mock {
  padding: 1.25rem;
}

.ap-pb-collab-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.ap-pb-collab-card-header strong {
  font-size: 0.9rem;
  color: var(--text);
}

.ap-pb-collab-comments {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ap-pb-comment {
  display: flex;
  gap: 0.6rem;
}

.ap-pb-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ap-pb-comment-body {
  flex: 1;
}

.ap-pb-comment-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.ap-pb-comment-head strong {
  font-size: 0.7rem;
  color: var(--text);
}

.ap-pb-comment-head span {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.ap-pb-comment-body p {
  font-size: 0.7rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  background: #f9fafb;
  padding: 0.5rem 0.65rem;
  border-radius: 0 8px 8px 8px;
}

.ap-pb-mention {
  color: var(--accent);
  font-weight: 600;
}

.ap-pb-collab-activity {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ap-pb-activity-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.ap-pb-activity-item strong {
  color: var(--text);
}

.ap-pb-activity-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Templates Mock ── */
.ap-pb-templates-mock {
  padding: 1.25rem;
}

.ap-pb-templates-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.ap-pb-template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ap-pb-template-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  transition: border-color 0.2s;
  cursor: default;
}

.ap-pb-template-card:hover,
.ap-pb-template-card.active {
  border-color: var(--accent);
}

.ap-pb-template-card.active {
  background: var(--accent-glow);
}

.ap-pb-template-icon {
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

.ap-pb-template-card strong {
  font-size: 0.7rem;
  color: var(--text);
}

.ap-pb-template-card > span {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.ap-pb-template-btn {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  cursor: default;
}

/* ── Extras Grid ── */
.ap-pb-extras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.ap-pb-extra {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.ap-pb-extra:hover {
  border-color: var(--accent);
}

.ap-pb-extra svg {
  color: var(--accent);
  flex-shrink: 0;
}

.ap-pb-extra span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ── ProjectBaser Responsive ── */
@media (max-width: 968px) {
  .ap-pb-kanban {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-pb-template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-pb-extras-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-pb-view-tabs {
    display: none;
  }
}

@media (max-width: 768px) {
  .ap-pb-kanban {
    grid-template-columns: 1fr;
  }

  .ap-pb-template-grid {
    grid-template-columns: 1fr;
  }

  .ap-pb-extras-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   AffiliatePages  (.ap-ap-)
   ══════════════════════════════════════════ */

/* ── 3-Step Row ── */
.ap-ap-steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ap-ap-step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.2s;
}

.ap-ap-step-card:hover {
  border-color: var(--accent);
}

.ap-ap-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.ap-ap-step-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.ap-ap-step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.ap-ap-step-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Builder Mock ── */
.ap-ap-builder-mock {
  padding: 1.25rem;
}

.ap-ap-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ap-ap-builder-header strong {
  font-size: 0.9rem;
  color: var(--text);
}

.ap-ap-builder-status {
  font-size: 0.65rem;
  font-weight: 600;
  color: #22c55e;
  animation: sg-pulse 2s infinite;
}

.ap-ap-builder-input {
  margin-bottom: 0.75rem;
}

.ap-ap-builder-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}

.ap-ap-builder-field {
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text);
}

.ap-ap-builder-output {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-ap-gen-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem;
  transition: border-color 0.2s;
}

.ap-ap-gen-block.active {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.ap-ap-gen-tag {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.35rem;
}

/* Product mini */
.ap-ap-product-mini {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.ap-ap-product-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  flex-shrink: 0;
}

.ap-ap-product-info strong {
  font-size: 0.75rem;
  color: var(--text);
  display: block;
}

.ap-ap-stars {
  font-size: 0.65rem;
  color: #f59e0b;
}

.ap-ap-stars span {
  color: var(--text-muted);
  font-size: 0.55rem;
}

.ap-ap-product-price {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
}

/* Pros/cons lines */
.ap-ap-gen-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ap-ap-gen-line {
  font-size: 0.7rem;
  padding: 0.2rem 0;
}

.ap-ap-gen-line.pro { color: #22c55e; }
.ap-ap-gen-line.con { color: #ef4444; }

.ap-ap-gen-cta {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  padding: 0.45rem;
  border-radius: 6px;
}

/* ── Blocks Grid ── */
.ap-ap-blocks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.ap-ap-block-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: border-color 0.2s;
}

.ap-ap-block-card:hover {
  border-color: var(--accent);
}

.ap-ap-block-icon {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.ap-ap-block-card strong {
  font-size: 0.75rem;
  color: var(--text);
}

.ap-ap-block-card > span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* ── Comparison Mock ── */
.ap-ap-compare-mock {
  padding: 1.25rem;
}

.ap-ap-compare-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-align: center;
}

.ap-ap-compare-table {
  margin-bottom: 0.75rem;
}

.ap-ap-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0.25rem;
  padding: 0.4rem 0;
  font-size: 0.65rem;
  color: var(--text);
  border-bottom: 1px solid #f4f4f5;
}

.ap-ap-compare-row.head {
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.ap-ap-compare-row span.winner {
  color: #22c55e;
  font-weight: 700;
}

.ap-ap-compare-row.head span.winner {
  color: var(--accent);
}

.ap-ap-compare-verdict {
  text-align: center;
  padding: 0.6rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 8px;
}

.ap-ap-compare-verdict strong {
  font-size: 0.8rem;
  color: #22c55e;
  display: block;
}

.ap-ap-compare-verdict span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* ── Revenue Math Card ── */
.ap-ap-math-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  max-width: 360px;
  margin: 0 auto;
}

.ap-ap-math-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
}

.ap-ap-math-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.ap-ap-math-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f4f4f5;
}

.ap-ap-math-row span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ap-ap-math-row strong {
  font-size: 0.9rem;
  color: var(--text);
}

.ap-ap-math-row.total {
  border-bottom: none;
  border-top: 2px solid var(--accent);
  padding-top: 0.6rem;
}

.ap-ap-math-row.total strong {
  color: var(--accent);
  font-size: 1.1rem;
}

.ap-ap-math-annual {
  text-align: center;
  padding: 0.75rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
}

.ap-ap-math-annual strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.ap-ap-math-annual span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Platform Cards ── */
.ap-ap-platforms {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-ap-platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.2s;
}

.ap-ap-platform-card:hover {
  border-color: var(--accent);
}

.ap-ap-platform-card strong {
  font-size: 1rem;
  color: var(--text);
}

.ap-ap-platform-card > span:not(.ap-ap-platform-badge) {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ap-ap-platform-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  margin-top: 0.25rem;
}

/* ── AffiliatePages Responsive ── */
@media (max-width: 968px) {
  .ap-ap-steps-row {
    flex-direction: column;
  }

  .ap-ap-step-arrow {
    transform: rotate(90deg);
  }

  .ap-ap-blocks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ap-ap-blocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-ap-compare-row {
    font-size: 0.55rem;
  }

  .ap-ap-math-card {
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════
   TOSDocs — .ap-td-
   ══════════════════════════════════════════ */

/* ── Stats Bar ── */
.ap-td-stats-bar {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.ap-td-stat {
  text-align: center;
}

.ap-td-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}

.ap-td-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Document Generator ── */
.ap-td-generator {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

.ap-td-gen-sidebar {
  background: #fafafe;
  border-right: 1px solid var(--border);
  padding: 1.25rem 0;
}

.ap-td-gen-sidebar-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.ap-td-gen-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: default;
  transition: all 0.15s;
}

.ap-td-gen-nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
  border-right: 2px solid var(--accent);
}

.ap-td-gen-main {
  padding: 1.5rem;
}

.ap-td-gen-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.ap-td-gen-form-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.ap-td-gen-step {
  font-size: 0.7rem;
  background: var(--accent-glow);
  color: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
}

.ap-td-gen-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.ap-td-gen-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.ap-td-gen-input {
  background: #fafafe;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text);
}

.ap-td-gen-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ap-td-check {
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: #f4f4f5;
  color: var(--text-muted);
  font-weight: 500;
}

.ap-td-check.active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.ap-td-gen-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.ap-td-gen-btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: default;
}

.ap-td-gen-btn-secondary {
  background: #f4f4f5;
  color: var(--text-muted);
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: default;
}

/* ── Document Preview ── */
.ap-td-preview-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

.ap-td-doc-preview {
  padding: 1.5rem;
}

.ap-td-doc-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.ap-td-doc-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.ap-td-doc-header span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ap-td-doc-section {
  margin-bottom: 1rem;
}

.ap-td-doc-section strong {
  font-size: 0.85rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
}

.ap-td-doc-section p {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.ap-td-doc-fade {
  height: 60px;
  background: linear-gradient(transparent, var(--bg));
}

.ap-td-preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ap-td-embed-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.ap-td-embed-card strong {
  font-size: 0.8rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.6rem;
}

.ap-td-code-block {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.6rem;
  overflow-x: auto;
}

.ap-td-code-block code {
  font-size: 0.68rem;
  color: #a5b4fc;
  font-family: 'SF Mono', monospace;
  white-space: nowrap;
}

.ap-td-copy-btn {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  cursor: default;
}

.ap-td-export-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.ap-td-export-btn {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.45rem;
  border-radius: 6px;
  background: #f4f4f5;
  color: var(--text);
  cursor: default;
  transition: background 0.15s;
}

.ap-td-export-btn:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

/* ── Cookie Banner Demo ── */
.ap-td-cookie-demo {
  max-width: 700px;
  margin: 0 auto;
}

.ap-td-theme-picker {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.ap-td-theme-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: default;
  transition: transform 0.15s, border-color 0.15s;
}

.ap-td-theme-dot.active {
  border-color: var(--text);
  transform: scale(1.15);
}

.ap-td-theme-dot:hover {
  transform: scale(1.1);
}

.ap-td-cookie-banner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.ap-td-cookie-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.ap-td-cookie-text strong {
  font-size: 0.85rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}

.ap-td-cookie-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ap-td-cookie-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.ap-td-cookie-btn-accept {
  background: #2563eb;
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: default;
}

.ap-td-cookie-btn-settings {
  background: #f4f4f5;
  color: var(--text);
  padding: 0.45rem 0.85rem;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: default;
}

.ap-td-cookie-btn-reject {
  color: var(--text-muted);
  padding: 0.45rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: default;
}

.ap-td-cookie-settings {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.ap-td-cookie-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f4f4f5;
}

.ap-td-cookie-setting-row:last-child {
  border-bottom: none;
}

.ap-td-cookie-setting-row strong {
  font-size: 0.8rem;
  color: var(--text);
  display: block;
}

.ap-td-cookie-setting-row > div span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.ap-td-toggle {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #d4d4d8;
  position: relative;
  display: inline-block;
  font-size: 0;
  line-height: 0;
}

.ap-td-toggle::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.15s;
}

.ap-td-toggle.on {
  background: #2563eb;
}

.ap-td-toggle.on::after {
  transform: translateX(16px);
}

/* ── Document Types Grid ── */
.ap-td-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ap-td-doc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.ap-td-doc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.ap-td-doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.ap-td-doc-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.ap-td-doc-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── TOSDocs Responsive ── */
@media (max-width: 968px) {
  .ap-td-generator {
    grid-template-columns: 1fr;
  }

  .ap-td-gen-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem;
  }

  .ap-td-gen-sidebar-title {
    width: 100%;
  }

  .ap-td-gen-nav-item.active {
    border-right: none;
    border-radius: 6px;
  }

  .ap-td-preview-wrap {
    grid-template-columns: 1fr;
  }

  .ap-td-doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ap-td-cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  .ap-td-cookie-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .ap-td-stats-bar {
    gap: 1.5rem;
  }

  .ap-td-doc-grid {
    grid-template-columns: 1fr;
  }

  .ap-td-theme-picker {
    flex-wrap: wrap;
  }
}

/* ══════════════════════════════════════════
   Value Proposition Section
   ══════════════════════════════════════════ */

.ap-value-section {
  padding: 4rem 2rem;
}

.ap-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.ap-value-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}

.ap-value-num {
  position: absolute;
  top: -1rem;
  left: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.ap-value-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}

.ap-value-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .ap-value-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   Replaces Section
   ══════════════════════════════════════════ */

.ap-replaces-section {
  padding: 2rem 2rem 4rem;
}

.ap-replaces-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--accent-glow), var(--bg-alt));
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-align: center;
  position: relative;
}

.ap-replaces-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ap-replaces-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ap-replaces-tools {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.ap-replaces-savings {
  margin-bottom: 0.5rem;
}

.ap-replaces-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}

.ap-replaces-period {
  font-size: 1rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.ap-replaces-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.ap-replaces-visual {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.ap-replaces-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ap-flow-item {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.ap-flow-item.highlight {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ap-flow-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .ap-replaces-card {
    padding: 1.5rem;
  }

  .ap-replaces-amount {
    font-size: 2rem;
  }

  .ap-flow-arrow {
    display: none;
  }

  .ap-replaces-flow {
    gap: 0.5rem;
  }
}

/* ══════════════════════════════════════════
   Key Features Grid Section
   ══════════════════════════════════════════ */

.ap-keyfeatures-section {
  padding: 4rem 2rem;
  background: var(--bg-alt);
}

.ap-keyfeatures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.ap-keyfeature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ap-keyfeature-item svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.ap-keyfeature-item span {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .ap-keyfeatures-grid {
    grid-template-columns: 1fr;
  }
}
