/* =============================================================================
   WordPress Theme & Plugin Detector — wpdetector.css  (Redesign v3)
   Matches mockup: light lavender hero, card steps, clean FAQ
   Fully isolated from any host theme via .wpd-page scoping + !important
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ══════════════════════════════════════════════════════════════════════════════
   HARD RESET — scoped to .wpd-page so host styles cannot bleed in
   ══════════════════════════════════════════════════════════════════════════════ */
.wpd-page,
.wpd-page *,
.wpd-page *::before,
.wpd-page *::after {
    box-sizing: border-box !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.wpd-page {
    all: initial;
    display: block;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #0f172a !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wpd-page a { text-decoration: none !important; }
.wpd-page img { display: block !important; max-width: 100% !important; }
.wpd-page button { font-family: inherit !important; }

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
.wpd-page {
    --wpd-indigo:        #6366f1;
    --wpd-indigo-dark:   #4f46e5;
    --wpd-indigo-light:  #eef2ff;
    --wpd-blue:          #3b82f6;
    --wpd-cyan:          #06b6d4;
    --wpd-emerald:       #10b981;
    --wpd-amber:         #f59e0b;

    --wpd-bg:            #ffffff;
    --wpd-bg-soft:       #f8fafc;
    --wpd-bg-hero:       #eef2ff;
    --wpd-border:        #e2e8f0;
    --wpd-border-soft:   #f1f5f9;

    --wpd-text:          #0f172a;
    --wpd-text-muted:    #475569;
    --wpd-text-dim:      #94a3b8;

    --wpd-radius-sm:     10px;
    --wpd-radius:        16px;
    --wpd-radius-lg:     24px;
    --wpd-shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --wpd-shadow:        0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.05);
    --wpd-shadow-lg:     0 12px 40px rgba(99,102,241,.13), 0 2px 8px rgba(0,0,0,.06);
    --wpd-glow:          0 0 0 3px rgba(99,102,241,.18);
    --wpd-mono:          'JetBrains Mono', 'Fira Code', monospace;
}

/* Container utility */
.wpd-page .container {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    width: 100% !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════════ */
.wpd-page .wpd-hero {
    background: linear-gradient(160deg, #eef2ff 0%, #e0e7ff 40%, #f0f4ff 100%) !important;
    padding: 80px 0 96px !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
}

/* Decorative dot grid overlay */
.wpd-page .wpd-hero::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-image: radial-gradient(circle, rgba(99,102,241,.1) 1px, transparent 1px) !important;
    background-size: 28px 28px !important;
    pointer-events: none !important;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 10%, black 0%, transparent 80%) !important;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 10%, black 0%, transparent 80%) !important;
}

.wpd-page .wpd-hero__inner {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* ── Badge ── */
.wpd-page .wpd-hero__badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(99,102,241,.3) !important;
    color: #4f46e5 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
    padding: 5px 16px !important;
    border-radius: 999px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 2px 8px rgba(99,102,241,.12) !important;
}

.wpd-page .wpd-hero__badge-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16,185,129,.2) !important;
    animation: wpd-pulse 2.2s infinite !important;
    flex-shrink: 0 !important;
}

@keyframes wpd-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
    50%      { box-shadow: 0 0 0 7px rgba(16,185,129,.04); }
}

/* ── Title ── */
.wpd-page .wpd-hero__title {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: -.04em !important;
    margin: 0 0 20px !important;
    color: #0f172a !important;
}

.wpd-page .wpd-hero__title-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 60%, #06b6d4 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ── Subtitle ── */
.wpd-page .wpd-hero__sub {
    font-size: 1.05rem !important;
    color: #475569 !important;
    margin: 0 auto 40px !important;
    line-height: 1.7 !important;
    max-width: 520px !important;
}

/* ── Pills ── */
.wpd-page .wpd-hero__pills {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 32px !important;
}

.wpd-page .wpd-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255,255,255,.85) !important;
    border: 1.5px solid rgba(99,102,241,.2) !important;
    border-radius: 999px !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4f46e5 !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 1px 4px rgba(99,102,241,.1) !important;
}

.wpd-page .wpd-pill__icon { font-size: 14px !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   SEARCH CARD
   ══════════════════════════════════════════════════════════════════════════════ */
.wpd-page .wpd-search-wrap {
    max-width: 620px !important;
    margin: 0 auto !important;
}

.wpd-page .wpd-search-card {
    background: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 16px !important;
    padding: 8px 8px 8px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 8px 32px rgba(99,102,241,.14), 0 1px 4px rgba(0,0,0,.06) !important;
    transition: border-color .2s, box-shadow .2s !important;
}

.wpd-page .wpd-search-card:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.18), 0 8px 32px rgba(99,102,241,.14) !important;
}

.wpd-page .wpd-search-icon {
    color: #94a3b8 !important;
    flex-shrink: 0 !important;
    display: flex !important;
}

.wpd-page .wpd-search-input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: none !important;
    font-size: 0.95rem !important;
    color: #0f172a !important;
    min-width: 0 !important;
    padding: 5px 0 !important;
    font-family: inherit !important;
}

.wpd-page .wpd-search-input::placeholder { color: #94a3b8 !important; }

.wpd-page .wpd-search-btn {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 11px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 0.93rem !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: opacity .15s, transform .15s, box-shadow .15s !important;
    box-shadow: 0 4px 14px rgba(99,102,241,.4) !important;
    letter-spacing: .01em !important;
}

.wpd-page .wpd-search-btn:hover {
    opacity: .92 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(99,102,241,.5) !important;
}

.wpd-page .wpd-search-btn:active { transform: translateY(0) !important; }
.wpd-page .wpd-search-btn:disabled { opacity: .55 !important; cursor: not-allowed !important; transform: none !important; }

.wpd-page .wpd-search-examples {
    margin-top: 14px !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    text-align: center !important;
}

.wpd-page .wpd-example-link {
    color: #6366f1 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: color .15s !important;
}

.wpd-page .wpd-example-link:hover { color: #4f46e5 !important; text-decoration: underline !important; }

/* Spinner */
@keyframes wpd-spin { to { transform: rotate(360deg); } }
.wpd-page .wpd-spinner { animation: wpd-spin .75s linear infinite !important; }
.wpd-page .wpd-spinner__path {
    stroke: #fff !important;
    stroke-linecap: round !important;
    stroke-dasharray: 90 !important;
    stroke-dashoffset: 60 !important;
}

@keyframes wpd-shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}
.wpd-page .wpd-input--shake { animation: wpd-shake .35s ease !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════════════════════════════════ */
.wpd-page .wpd-stats-bar {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.wpd-page .wpd-stats {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    max-width: 780px !important;
    margin: 0 auto !important;
}

.wpd-page .wpd-stat {
    flex: 1 !important;
    min-width: 140px !important;
    text-align: center !important;
    padding: 26px 20px !important;
    border-right: 1px solid #e2e8f0 !important;
}

.wpd-page .wpd-stat:last-child { border-right: none !important; }

.wpd-page .wpd-stat__val {
    font-size: 1.9rem !important;
    font-weight: 900 !important;
    letter-spacing: -.03em !important;
    background: linear-gradient(135deg, #6366f1, #3b82f6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
}

.wpd-page .wpd-stat__lbl {
    font-size: 12.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESULTS SECTION
   ══════════════════════════════════════════════════════════════════════════════ */
.wpd-page .wpd-results-section {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 52px 0 72px !important;
    min-height: 220px !important;
}

/* ── Error ── */
.wpd-page .wpd-error { text-align: center !important; padding: 64px 24px !important; }
.wpd-page .wpd-error__icon { color: #ef4444 !important; margin-bottom: 16px !important; }
.wpd-page .wpd-error__title { font-size: 1.5rem !important; font-weight: 700 !important; margin: 0 0 8px !important; color: #0f172a !important; }
.wpd-page .wpd-error__msg { color: #475569 !important; margin: 0 0 24px !important; font-size: 15px !important; }

/* ── Not WordPress ── */
.wpd-page .wpd-not-wp { display: flex !important; justify-content: center !important; padding: 64px 24px !important; }
.wpd-page .wpd-not-wp__inner { max-width: 480px !important; text-align: center !important; }
.wpd-page .wpd-not-wp__icon { color: #94a3b8 !important; margin-bottom: 20px !important; }
.wpd-page .wpd-not-wp__title { font-size: 1.7rem !important; font-weight: 800 !important; color: #0f172a !important; margin: 0 0 8px !important; letter-spacing: -.02em !important; }
.wpd-page .wpd-not-wp__sub { font-size: 13px !important; color: #6366f1 !important; margin: 0 0 16px !important; }
.wpd-page .wpd-not-wp__msg { color: #475569 !important; line-height: 1.65 !important; font-size: 15px !important; }

/* ── Overview bar ── */
.wpd-page .wpd-overview {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 16px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 16px 22px !important;
    margin-bottom: 22px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
}

.wpd-page .wpd-overview__site { display: flex !important; align-items: center !important; gap: 12px !important; flex: 1 !important; min-width: 0 !important; }
.wpd-page .wpd-overview__favicon { width: 26px !important; height: 26px !important; border-radius: 6px !important; object-fit: cover !important; flex-shrink: 0 !important; }
.wpd-page .wpd-overview__url { font-size: 13.5px !important; color: #6366f1 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; font-weight: 500 !important; }
.wpd-page .wpd-overview__meta { font-size: 12px !important; color: #94a3b8 !important; margin-top: 2px !important; }
.wpd-page .wpd-overview__badges { display: flex !important; flex-wrap: wrap !important; gap: 7px !important; }
.wpd-page .wpd-overview__scantime { font-size: 12px !important; color: #94a3b8 !important; white-space: nowrap !important; }

/* Badges */
.wpd-page .wpd-badge { display: inline-flex !important; align-items: center !important; gap: 5px !important; font-size: 11.5px !important; font-weight: 600 !important; padding: 3px 10px !important; border-radius: 999px !important; letter-spacing: .02em !important; }
.wpd-page .wpd-badge--wp    { background: #e0f2fe !important; color: #0369a1 !important; border: 1px solid #bae6fd !important; }
.wpd-page .wpd-badge--ver   { background: #eef2ff !important; color: #4f46e5 !important; border: 1px solid #c7d2fe !important; }
.wpd-page .wpd-badge--lang  { background: #f0fdf4 !important; color: #15803d !important; border: 1px solid #bbf7d0 !important; }
.wpd-page .wpd-badge--cache { background: #fffbeb !important; color: #b45309 !important; border: 1px solid #fde68a !important; }

/* ── Confidence bar ── */
.wpd-page .wpd-confidence-wrap { margin-bottom: 26px !important; }
.wpd-page .wpd-confidence-label { display: flex !important; justify-content: space-between !important; font-size: 12.5px !important; color: #475569 !important; margin-bottom: 8px !important; font-weight: 500 !important; }
.wpd-page .wpd-confidence-pct { font-weight: 700 !important; color: #6366f1 !important; }
.wpd-page .wpd-confidence-track { height: 5px !important; background: #f1f5f9 !important; border-radius: 99px !important; overflow: hidden !important; }
.wpd-page .wpd-confidence-fill { height: 100% !important; background: linear-gradient(90deg, #6366f1, #3b82f6, #06b6d4) !important; border-radius: 99px !important; transition: width .8s cubic-bezier(.4,0,.2,1) !important; }

/* ── Tabs ── */
.wpd-page .wpd-tabs { display: flex !important; gap: 2px !important; border-bottom: 2px solid #f1f5f9 !important; margin-bottom: 28px !important; overflow-x: auto !important; }
.wpd-page .wpd-tab {
    display: flex !important; align-items: center !important; gap: 7px !important;
    background: none !important; border: none !important;
    color: #475569 !important;
    font-size: 13.5px !important; font-weight: 500 !important;
    padding: 10px 18px !important;
    border-radius: 8px 8px 0 0 !important;
    cursor: pointer !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
    transition: color .15s, background .15s !important;
    white-space: nowrap !important;
}
.wpd-page .wpd-tab:hover { color: #0f172a !important; background: #f8fafc !important; }
.wpd-page .wpd-tab--active { color: #6366f1 !important; border-bottom-color: #6366f1 !important; font-weight: 600 !important; }
.wpd-page .wpd-tab__count { font-size: 10.5px !important; font-weight: 700 !important; background: #eef2ff !important; color: #4f46e5 !important; padding: 1px 7px !important; border-radius: 999px !important; }

/* ── Panels ── */
.wpd-page .wpd-panel { animation: wpd-fadeIn .2s ease !important; }
@keyframes wpd-fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ── Theme grid ── */
.wpd-page .wpd-theme-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; gap: 20px !important; }

.wpd-page .wpd-theme-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important; flex-direction: column !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
    transition: border-color .2s, box-shadow .2s, transform .2s !important;
}
.wpd-page .wpd-theme-card:hover { border-color: #a5b4fc !important; box-shadow: 0 4px 16px rgba(0,0,0,.07) !important; transform: translateY(-2px) !important; }

.wpd-page .wpd-theme-card__screenshot { width: 100% !important; height: 168px !important; object-fit: cover !important; background: #f1f5f9 !important; display: block !important; }
.wpd-page .wpd-theme-card__screenshot-placeholder {
    width: 100% !important; height: 168px !important;
    background: linear-gradient(135deg, #eef2ff 0%, #eff6ff 100%) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: #c7d2fe !important;
}

.wpd-page .wpd-theme-card__body { padding: 22px !important; flex: 1 !important; }
.wpd-page .wpd-theme-card__label { font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: .07em !important; text-transform: uppercase !important; color: #6366f1 !important; margin-bottom: 6px !important; }
.wpd-page .wpd-theme-card__label--child { color: #059669 !important; }
.wpd-page .wpd-theme-card__name { font-size: 1.2rem !important; font-weight: 800 !important; color: #0f172a !important; margin: 0 0 6px !important; letter-spacing: -.01em !important; }
.wpd-page .wpd-theme-card__meta { font-size: 12.5px !important; color: #475569 !important; margin-bottom: 14px !important; line-height: 1.65 !important; }
.wpd-page .wpd-theme-card__meta strong { color: #0f172a !important; font-weight: 600 !important; }
.wpd-page .wpd-theme-card__tags { display: flex !important; flex-wrap: wrap !important; gap: 5px !important; margin-top: 10px !important; }
.wpd-page .wpd-tag { font-size: 11px !important; padding: 3px 9px !important; border-radius: 999px !important; background: #f8fafc !important; border: 1px solid #e2e8f0 !important; color: #475569 !important; }
.wpd-page .wpd-theme-card__links { display: flex !important; gap: 8px !important; margin-top: 16px !important; padding-top: 14px !important; border-top: 1px solid #f1f5f9 !important; }

/* ── Buttons ── */
.wpd-page .wpd-btn { display: inline-flex !important; align-items: center !important; gap: 6px !important; font-weight: 600 !important; font-size: 13px !important; padding: 8px 18px !important; border-radius: 9px !important; border: none !important; cursor: pointer !important; text-decoration: none !important; transition: all .15s !important; }
.wpd-page .wpd-btn--primary { background: linear-gradient(135deg, #6366f1, #4f46e5) !important; color: #fff !important; box-shadow: 0 2px 10px rgba(99,102,241,.3) !important; }
.wpd-page .wpd-btn--primary:hover { opacity: .9 !important; transform: translateY(-1px) !important; }
.wpd-page .wpd-btn--ghost { background: #f8fafc !important; color: #475569 !important; border: 1px solid #e2e8f0 !important; }
.wpd-page .wpd-btn--ghost:hover { background: #f1f5f9 !important; color: #0f172a !important; }
.wpd-page .wpd-btn--sm { font-size: 12px !important; padding: 6px 13px !important; }

/* ── Plugin search ── */
.wpd-page .wpd-plugin-toolbar { display: flex !important; align-items: center !important; gap: 14px !important; margin-bottom: 18px !important; }
.wpd-page .wpd-plugin-search {
    flex: 1 !important; max-width: 340px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    color: #0f172a !important; font-size: 13.5px !important;
    padding: 9px 14px !important; outline: none !important;
    transition: border-color .2s, box-shadow .2s !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
    font-family: inherit !important;
}
.wpd-page .wpd-plugin-search:focus { border-color: #6366f1 !important; box-shadow: 0 0 0 3px rgba(99,102,241,.18) !important; }
.wpd-page .wpd-plugin-count-label { font-size: 12.5px !important; color: #94a3b8 !important; }

/* ── Plugin grid ── */
.wpd-page .wpd-plugin-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; gap: 14px !important; }
.wpd-page .wpd-plugin-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 18px 20px !important;
    display: flex !important; flex-direction: column !important; gap: 10px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
    transition: border-color .2s, box-shadow .2s, transform .2s !important;
}
.wpd-page .wpd-plugin-card:hover { border-color: #a5b4fc !important; box-shadow: 0 4px 16px rgba(0,0,0,.07) !important; transform: translateY(-1px) !important; }
.wpd-page .wpd-plugin-card__head { display: flex !important; align-items: center !important; gap: 12px !important; }
.wpd-page .wpd-plugin-card__icon {
    width: 40px !important; height: 40px !important; border-radius: 10px !important;
    background: linear-gradient(135deg, #eef2ff, #eff6ff) !important;
    border: 1px solid #c7d2fe !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: #6366f1 !important; font-size: 15px !important; font-weight: 700 !important;
    flex-shrink: 0 !important;
}
.wpd-page .wpd-plugin-card__name { font-weight: 700 !important; font-size: 14px !important; color: #0f172a !important; margin: 0 !important; line-height: 1.3 !important; }
.wpd-page .wpd-plugin-card__slug { font-size: 11px !important; color: #94a3b8 !important; }
.wpd-page .wpd-plugin-card__desc { font-size: 12.5px !important; color: #475569 !important; line-height: 1.55 !important; }
.wpd-page .wpd-plugin-card__meta { display: flex !important; flex-wrap: wrap !important; gap: 5px !important; align-items: center !important; }
.wpd-page .wpd-meta-pill { font-size: 10.5px !important; padding: 2px 8px !important; border-radius: 999px !important; font-weight: 600 !important; }
.wpd-page .wpd-meta-pill--ver  { background: #eef2ff !important; color: #4f46e5 !important; }
.wpd-page .wpd-meta-pill--auth { background: #f0fdf4 !important; color: #15803d !important; }
.wpd-page .wpd-meta-pill--wp   { background: #e0f2fe !important; color: #0369a1 !important; }
.wpd-page .wpd-plugin-card__footer { padding-top: 10px !important; border-top: 1px solid #f1f5f9 !important; display: flex !important; gap: 8px !important; }
.wpd-page .wpd-plugin-card__no-readme { font-size: 10.5px !important; color: #94a3b8 !important; font-style: italic !important; }

/* ── No plugins ── */
.wpd-page .wpd-no-plugins { text-align: center !important; padding: 60px 24px !important; color: #94a3b8 !important; }
.wpd-page .wpd-no-plugins svg { margin: 0 auto 16px !important; opacity: .4 !important; }
.wpd-page .wpd-no-plugins p { margin: 0 0 6px !important; font-size: 15px !important; color: #475569 !important; }
.wpd-page .wpd-no-plugins__sub { font-size: 13px !important; color: #94a3b8 !important; }

/* ── Signals list ── */
.wpd-page .wpd-signals-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column !important; gap: 9px !important; }
.wpd-page .wpd-signals-list li {
    display: flex !important; align-items: center !important; gap: 12px !important;
    background: #ffffff !important; border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 13px 18px !important; font-size: 13.5px !important; color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
}
.wpd-page .wpd-signals-list li::before {
    content: '✓' !important; font-weight: 800 !important; color: #059669 !important; font-size: 12px !important; flex-shrink: 0 !important;
    width: 20px !important; height: 20px !important; background: #f0fdf4 !important; border: 1px solid #bbf7d0 !important;
    border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important;
}

/* ── CMS card ── */
.wpd-page #wpd-cms-top { margin-bottom: 22px !important; }
.wpd-page #wpd-cms-slot { margin-top: 22px !important; width: 100% !important; max-width: 620px !important; }
.wpd-page .wpd-cms-card {
    display: flex !important; align-items: flex-start !important; gap: 18px !important;
    background: #ffffff !important; border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important; padding: 20px 24px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
    transition: border-color .2s, box-shadow .2s !important;
}
.wpd-page .wpd-cms-card:hover { border-color: #a5b4fc !important; box-shadow: 0 4px 16px rgba(0,0,0,.07) !important; }
.wpd-page .wpd-cms-card--unknown { background: #f8fafc !important; }
.wpd-page .wpd-cms-card__icon {
    width: 44px !important; height: 44px !important; border-radius: 12px !important;
    background: #eef2ff !important; border: 1px solid #c7d2fe !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    flex-shrink: 0 !important; color: var(--cms-color, #6366f1) !important;
}
.wpd-page .wpd-cms-card__body { flex: 1 !important; min-width: 0 !important; }
.wpd-page .wpd-cms-card__meta-row { display: flex !important; align-items: center !important; gap: 8px !important; flex-wrap: wrap !important; margin-bottom: 5px !important; }
.wpd-page .wpd-cms-card__label { font-size: 10.5px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: #94a3b8 !important; }
.wpd-page .wpd-cms-card__cat { font-size: 10px !important; font-weight: 700 !important; letter-spacing: .05em !important; text-transform: uppercase !important; padding: 2px 9px !important; border-radius: 999px !important; }
.wpd-page .wpd-cms-card__conf { font-size: 11px !important; color: #94a3b8 !important; margin-left: auto !important; }
.wpd-page .wpd-cms-card__name { font-size: 1.25rem !important; font-weight: 800 !important; color: #0f172a !important; line-height: 1.2 !important; margin-bottom: 5px !important; letter-spacing: -.01em !important; }
.wpd-page .wpd-cms-card__ver { font-size: 13px !important; font-weight: 500 !important; color: #475569 !important; margin-left: 6px !important; }
.wpd-page .wpd-cms-card__desc { font-size: 13px !important; color: #475569 !important; line-height: 1.55 !important; }
.wpd-page #wpd-cms-slot .wpd-cms-card { text-align: left !important; width: 100% !important; }

/* ══════════════════════════════════════════════════════════════════════════════
   HOW IT WORKS — Card-grid style matching mockup
   ══════════════════════════════════════════════════════════════════════════════ */
.wpd-page .wpd-how {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 80px 0 88px !important;
}

.wpd-page .wpd-how__header {
    text-align: center !important;
    margin-bottom: 52px !important;
}

.wpd-page .wpd-how__label {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
}

.wpd-page .wpd-how__title {
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 0 12px !important;
    letter-spacing: -.03em !important;
}

.wpd-page .wpd-how__sub {
    font-size: 1rem !important;
    color: #64748b !important;
    margin: 0 auto !important;
    max-width: 440px !important;
    line-height: 1.65 !important;
}

/* 4-column grid of cards */
.wpd-page .wpd-how__steps {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    max-width: 980px !important;
    margin: 0 auto !important;
}

/* Each step card */
.wpd-page .wpd-step-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 22px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.05) !important;
    transition: border-color .2s, box-shadow .2s, transform .2s !important;
}

.wpd-page .wpd-step-card:hover {
    border-color: #a5b4fc !important;
    box-shadow: 0 6px 20px rgba(99,102,241,.1) !important;
    transform: translateY(-2px) !important;
}

/* Card top row: number badge + emoji icon */
.wpd-page .wpd-step-card__top {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    margin-bottom: 18px !important;
}

.wpd-page .wpd-step-card__num {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(99,102,241,.35) !important;
    line-height: 1 !important;
}

.wpd-page .wpd-step-card__emoji {
    font-size: 28px !important;
    line-height: 1 !important;
    opacity: .85 !important;
}

/* Card title row */
.wpd-page .wpd-step-card__title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.wpd-page .wpd-step-card__title-emoji {
    font-size: 16px !important;
}

.wpd-page .wpd-step-card__desc {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.65 !important;
}

.wpd-page .wpd-step-card__desc code {
    font-size: 11.5px !important;
    background: #eef2ff !important;
    color: #4f46e5 !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    font-family: 'JetBrains Mono', monospace !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FAQ — Clean accordion matching mockup
   ══════════════════════════════════════════════════════════════════════════════ */
.wpd-page .wpd-faq {
    background: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 80px 0 88px !important;
}

.wpd-page .wpd-faq__header {
    text-align: center !important;
    margin-bottom: 40px !important;
}

.wpd-page .wpd-faq__label {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
}

.wpd-page .wpd-faq__title {
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -.03em !important;
}

.wpd-page .wpd-faq__list {
    max-width: 700px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.wpd-page .wpd-faq__item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
    transition: border-color .2s, box-shadow .2s !important;
}

.wpd-page .wpd-faq__item:hover { border-color: #c7d2fe !important; }
.wpd-page .wpd-faq__item[open] { border-color: #a5b4fc !important; }

.wpd-page .wpd-faq__item summary {
    padding: 18px 20px !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    color: #0f172a !important;
    cursor: pointer !important;
    list-style: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    user-select: none !important;
    gap: 12px !important;
    background: #ffffff !important;
}

.wpd-page .wpd-faq__item summary::-webkit-details-marker { display: none !important; }

.wpd-page .wpd-faq__q-text { flex: 1 !important; }

.wpd-page .wpd-faq__toggle {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    transition: background .2s, transform .2s, color .2s !important;
    line-height: 1 !important;
}

.wpd-page .wpd-faq__item[open] .wpd-faq__toggle {
    background: #eef2ff !important;
    color: #6366f1 !important;
    transform: rotate(45deg) !important;
}

.wpd-page .wpd-faq__item[open] summary { color: #6366f1 !important; }

.wpd-page .wpd-faq__item p {
    padding: 0 20px 18px 20px !important;
    margin: 0 !important;
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.7 !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    padding-top: 14px !important;
}

.wpd-page .wpd-faq__item code {
    font-size: 12px !important;
    background: #eef2ff !important;
    color: #4f46e5 !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    font-family: 'JetBrains Mono', monospace !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .wpd-page .wpd-how__steps { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .wpd-page .wpd-stats { flex-direction: column !important; }
    .wpd-page .wpd-stat { border-right: none !important; border-bottom: 1px solid #e2e8f0 !important; padding: 20px !important; }
    .wpd-page .wpd-stat:last-child { border-bottom: none !important; }
}

@media (max-width: 580px) {
    .wpd-page .wpd-hero { padding: 60px 0 72px !important; }
    .wpd-page .wpd-search-card { flex-wrap: wrap !important; padding: 12px 16px !important; gap: 10px !important; }
    .wpd-page .wpd-search-btn { width: 100% !important; justify-content: center !important; }
    .wpd-page .wpd-how__steps { grid-template-columns: 1fr !important; }
    .wpd-page .wpd-theme-grid,
    .wpd-page .wpd-plugin-grid { grid-template-columns: 1fr !important; }
    .wpd-page .wpd-overview { flex-direction: column !important; align-items: flex-start !important; }
    .wpd-page .wpd-cms-card { flex-direction: column !important; gap: 12px !important; }
}
