/* ==========================================================================
   Lead Hunter Marketplace — Design System & Theme CSS
   Dark luxury SaaS aesthetic: Stripe + Linear + Vercel + Anthropic
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  --lhm-bg-primary:    #0F172A;
  --lhm-bg-secondary:  #111827;
  --lhm-bg-elevated:   #1E293B;
  --lhm-bg-surface:    #263346;
  --lhm-bg-overlay:    rgba(15, 23, 42, 0.92);
  --lhm-gold:          #D4AF37;
  --lhm-gold-light:    #E8C84A;
  --lhm-gold-dim:      rgba(212, 175, 55, 0.15);
  --lhm-gold-border:   rgba(212, 175, 55, 0.3);
  --lhm-crimson:       #500909;
  --lhm-crimson-light: #7A1010;
  --lhm-text:          #F5F5F5;
  --lhm-text-muted:    #94A3B8;
  --lhm-text-subtle:   #64748B;
  --lhm-text-inverse:  #0F172A;
  --lhm-border:        rgba(148, 163, 184, 0.12);
  --lhm-border-hover:  rgba(148, 163, 184, 0.25);
  --lhm-border-gold:   rgba(212, 175, 55, 0.35);
  --lhm-success:       #10B981;
  --lhm-success-bg:    rgba(16, 185, 129, 0.1);
  --lhm-warning:       #F59E0B;
  --lhm-warning-bg:    rgba(245, 158, 11, 0.1);
  --lhm-danger:        #EF4444;
  --lhm-danger-bg:     rgba(239, 68, 68, 0.1);
  --lhm-info:          #3B82F6;
  --lhm-info-bg:       rgba(59, 130, 246, 0.1);
  --lhm-font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --lhm-font-mono:     'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  --lhm-space-1:  4px;
  --lhm-space-2:  8px;
  --lhm-space-3:  12px;
  --lhm-space-4:  16px;
  --lhm-space-5:  20px;
  --lhm-space-6:  24px;
  --lhm-space-8:  32px;
  --lhm-space-10: 40px;
  --lhm-space-12: 48px;
  --lhm-space-16: 64px;
  --lhm-space-20: 80px;
  --lhm-space-24: 96px;
  --lhm-radius-sm:   6px;
  --lhm-radius:      10px;
  --lhm-radius-lg:   16px;
  --lhm-radius-xl:   24px;
  --lhm-radius-full: 9999px;
  --lhm-shadow-sm:   0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --lhm-shadow:      0 4px 16px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  --lhm-shadow-lg:   0 16px 48px rgba(0,0,0,0.6), 0 6px 20px rgba(0,0,0,0.4);
  --lhm-shadow-gold: 0 0 32px rgba(212, 175, 55, 0.12);
  --lhm-glow-gold:   0 0 0 1px var(--lhm-gold-border), 0 0 20px rgba(212, 175, 55, 0.08);
  --lhm-ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --lhm-ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --lhm-duration:    200ms;
  --lhm-duration-lg: 350ms;
  --lhm-container:   1200px;
  --lhm-sidebar:     260px;
  --lhm-header-h:    72px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background-color: var(--lhm-bg-primary);
  color: var(--lhm-text);
  font-family: var(--lhm-font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.admin-bar { padding-top: 32px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lhm-gold); text-decoration: none; transition: color var(--lhm-duration) var(--lhm-ease); }
a:hover { color: var(--lhm-gold-light); }
a:focus-visible { outline: 2px solid var(--lhm-gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--lhm-text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p { color: var(--lhm-text-muted); line-height: 1.75; }
ul, ol { padding-left: 1.5em; }
li { color: var(--lhm-text-muted); line-height: 1.75; }
code, pre { font-family: var(--lhm-font-mono); font-size: 0.875em; }
code { background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-sm); padding: 2px 7px; color: var(--lhm-gold); }
pre { background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius); padding: var(--lhm-space-5); overflow-x: auto; }
pre code { background: none; border: none; padding: 0; }
blockquote { border-left: 3px solid var(--lhm-gold); padding-left: var(--lhm-space-5); color: var(--lhm-text-muted); font-style: italic; }
hr { border: none; border-top: 1px solid var(--lhm-border); margin: var(--lhm-space-8) 0; }
input, textarea, select, button { font-family: var(--lhm-font); font-size: 1rem; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.lhm-container { width: 100%; max-width: var(--lhm-container); margin-inline: auto; padding-inline: var(--lhm-space-6); }
.lhm-section { padding-block: var(--lhm-space-24); }
.lhm-section--sm { padding-block: var(--lhm-space-16); }
.lhm-section--lg { padding-block: 120px; }
.lhm-grid { display: grid; gap: var(--lhm-space-6); }
.lhm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lhm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lhm-grid--4 { grid-template-columns: repeat(4, 1fr); }
.lhm-grid--marketplace { grid-template-columns: var(--lhm-sidebar) 1fr; gap: var(--lhm-space-10); align-items: start; }

/* ==========================================================================
   4. HEADER
   ========================================================================== */

.lhm-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--lhm-header-h);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--lhm-border);
  display: flex; align-items: center;
}
.lhm-header__inner { display: flex; align-items: center; gap: var(--lhm-space-8); width: 100%; max-width: var(--lhm-container); margin-inline: auto; padding-inline: var(--lhm-space-6); }
.lhm-header__logo { flex-shrink: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--lhm-text) !important; display: flex; align-items: center; gap: var(--lhm-space-2); }
.lhm-header__logo span { color: var(--lhm-gold); }
.lhm-header__nav { display: flex; align-items: center; gap: var(--lhm-space-1); list-style: none; padding: 0; margin: 0; flex: 1; }
.lhm-header__nav a { display: block; padding: var(--lhm-space-2) var(--lhm-space-3); color: var(--lhm-text-muted) !important; font-size: 0.9375rem; font-weight: 500; border-radius: var(--lhm-radius-sm); transition: color var(--lhm-duration), background var(--lhm-duration); }
.lhm-header__nav a:hover, .lhm-header__nav .current-menu-item > a { color: var(--lhm-text) !important; background: var(--lhm-bg-elevated); }
.lhm-header__actions { display: flex; align-items: center; gap: var(--lhm-space-3); flex-shrink: 0; }
.lhm-header__cart { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--lhm-radius-sm); color: var(--lhm-text-muted) !important; transition: color var(--lhm-duration), background var(--lhm-duration); }
.lhm-header__cart:hover { color: var(--lhm-text) !important; background: var(--lhm-bg-elevated); }
.lhm-header__cart-count { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--lhm-gold); color: var(--lhm-text-inverse) !important; font-size: 10px; font-weight: 700; border-radius: var(--lhm-radius-full); display: flex; align-items: center; justify-content: center; line-height: 1; }
.lhm-header__cart-count:empty, .lhm-header__cart-count[data-count="0"] { display: none; }
.lhm-header__menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; background: none; border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-sm); color: var(--lhm-text-muted); cursor: pointer; }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.lhm-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--lhm-space-2); padding: 10px 20px; font-size: 0.9375rem; font-weight: 600; line-height: 1; border-radius: var(--lhm-radius-sm); border: 1px solid transparent; cursor: pointer; transition: all var(--lhm-duration) var(--lhm-ease); text-decoration: none !important; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.lhm-btn:focus-visible { outline: 2px solid var(--lhm-gold); outline-offset: 3px; }
.lhm-btn:disabled, .lhm-btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.lhm-btn--primary { background: var(--lhm-gold); color: #0F172A !important; border-color: var(--lhm-gold); box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25); }
.lhm-btn--primary:hover { background: var(--lhm-gold-light); border-color: var(--lhm-gold-light); color: #0F172A !important; box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4); transform: translateY(-1px); }
.lhm-btn--secondary { background: transparent; color: var(--lhm-text) !important; border-color: var(--lhm-border); }
.lhm-btn--secondary:hover { background: var(--lhm-bg-elevated); border-color: var(--lhm-border-hover); color: var(--lhm-text) !important; }
.lhm-btn--ghost { background: transparent; color: var(--lhm-text-muted) !important; border-color: transparent; }
.lhm-btn--ghost:hover { background: var(--lhm-bg-elevated); color: var(--lhm-text) !important; }
.lhm-btn--sm { padding: 7px 14px; font-size: 0.8125rem; }
.lhm-btn--lg { padding: 14px 28px; font-size: 1.0625rem; }
.lhm-btn--xl { padding: 18px 36px; font-size: 1.125rem; border-radius: var(--lhm-radius); }

/* ==========================================================================
   6. HERO
   ========================================================================== */

.lhm-hero { position: relative; overflow: hidden; padding-top: var(--lhm-space-24); padding-bottom: var(--lhm-space-24); text-align: center; background: var(--lhm-bg-primary); }
.lhm-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(148,163,184,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,0.03) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.lhm-hero::after { content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.06) 0%, rgba(80, 9, 9, 0.04) 40%, transparent 70%); pointer-events: none; }
.lhm-hero__inner { position: relative; z-index: 1; max-width: 800px; margin-inline: auto; padding-inline: var(--lhm-space-6); }
.lhm-hero__badge { display: inline-flex; align-items: center; gap: var(--lhm-space-2); padding: 6px 14px; background: var(--lhm-gold-dim); border: 1px solid var(--lhm-gold-border); border-radius: var(--lhm-radius-full); color: var(--lhm-gold); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--lhm-space-6); }
.lhm-hero__title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: var(--lhm-space-6); color: var(--lhm-text); }
.lhm-hero__title .lhm-gold { color: var(--lhm-gold); }
.lhm-hero__sub { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--lhm-text-muted); line-height: 1.7; margin-bottom: var(--lhm-space-10); max-width: 600px; margin-inline: auto; }
.lhm-hero__actions { display: flex; align-items: center; justify-content: center; gap: var(--lhm-space-4); flex-wrap: wrap; margin-bottom: var(--lhm-space-12); }
.lhm-hero__proof { display: flex; align-items: center; justify-content: center; gap: var(--lhm-space-8); flex-wrap: wrap; }
.lhm-hero__proof-item { display: flex; align-items: center; gap: var(--lhm-space-2); color: var(--lhm-text-subtle); font-size: 0.875rem; }
.lhm-hero__proof-item svg { color: var(--lhm-gold); flex-shrink: 0; }

/* ==========================================================================
   7. EXTENSION CARDS
   ========================================================================== */

.lhm-card { position: relative; background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-lg); padding: var(--lhm-space-6); transition: border-color var(--lhm-duration), transform var(--lhm-duration), box-shadow var(--lhm-duration); display: flex; flex-direction: column; }
.lhm-card:hover { border-color: var(--lhm-border-gold); transform: translateY(-2px); box-shadow: var(--lhm-shadow-lg), var(--lhm-shadow-gold); }
.lhm-card__link-overlay { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.lhm-card__header { display: flex; align-items: flex-start; gap: var(--lhm-space-4); margin-bottom: var(--lhm-space-4); }
.lhm-card__icon { width: 56px; height: 56px; border-radius: var(--lhm-radius); background: var(--lhm-bg-surface); border: 1px solid var(--lhm-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.5rem; color: var(--lhm-gold); }
.lhm-card__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.lhm-card__meta { flex: 1; min-width: 0; }
.lhm-card__title { font-size: 1.0625rem; font-weight: 700; color: var(--lhm-text); margin-bottom: var(--lhm-space-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lhm-card__version { font-size: 0.75rem; color: var(--lhm-text-subtle); font-family: var(--lhm-font-mono); }
.lhm-card__excerpt { font-size: 0.9375rem; color: var(--lhm-text-muted); line-height: 1.6; flex: 1; margin-bottom: var(--lhm-space-5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lhm-card__tags { display: flex; flex-wrap: wrap; gap: var(--lhm-space-2); margin-bottom: var(--lhm-space-5); }
.lhm-tag { display: inline-block; padding: 3px 10px; background: var(--lhm-bg-surface); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-full); font-size: 0.75rem; font-weight: 500; color: var(--lhm-text-muted); transition: color var(--lhm-duration), border-color var(--lhm-duration); }
.lhm-tag:hover { color: var(--lhm-gold); border-color: var(--lhm-gold-border); }
.lhm-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--lhm-space-3); margin-top: auto; padding-top: var(--lhm-space-5); border-top: 1px solid var(--lhm-border); }
.lhm-card__price { font-size: 1.25rem; font-weight: 800; color: var(--lhm-text); letter-spacing: -0.02em; }
.lhm-card__price--free { color: var(--lhm-success); }
.lhm-card .lhm-btn, .lhm-card button.button, .lhm-card .add_to_cart_button { position: relative; z-index: 2; }

/* ==========================================================================
   8. MARKETPLACE LAYOUT
   ========================================================================== */

.lhm-marketplace { padding-top: var(--lhm-space-12); padding-bottom: var(--lhm-space-24); }
.lhm-marketplace__header { margin-bottom: var(--lhm-space-10); }
.lhm-marketplace__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: var(--lhm-space-4); }
.lhm-marketplace__search { position: relative; max-width: 480px; }
.lhm-marketplace__search input[type="search"] { width: 100%; height: 48px; padding: 0 48px 0 var(--lhm-space-4); background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius); color: var(--lhm-text); font-size: 0.9375rem; transition: border-color var(--lhm-duration); -webkit-appearance: none; }
.lhm-marketplace__search input[type="search"]:focus { outline: none; border-color: var(--lhm-gold-border); box-shadow: var(--lhm-glow-gold); }
.lhm-marketplace__search input::placeholder { color: var(--lhm-text-subtle); }
.lhm-marketplace__search-icon { position: absolute; right: var(--lhm-space-4); top: 50%; transform: translateY(-50%); color: var(--lhm-text-subtle); pointer-events: none; }
.lhm-sidebar { position: sticky; top: calc(var(--lhm-header-h) + var(--lhm-space-6)); }
.lhm-sidebar__widget { background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-lg); padding: var(--lhm-space-5); margin-bottom: var(--lhm-space-5); }
.lhm-sidebar__title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lhm-text-subtle); margin-bottom: var(--lhm-space-4); }
.lhm-sidebar__list { list-style: none; padding: 0; margin: 0; }
.lhm-sidebar__list li { margin-bottom: var(--lhm-space-1); }
.lhm-sidebar__list a { display: flex; align-items: center; justify-content: space-between; padding: var(--lhm-space-2) var(--lhm-space-3); border-radius: var(--lhm-radius-sm); color: var(--lhm-text-muted) !important; font-size: 0.9375rem; transition: background var(--lhm-duration), color var(--lhm-duration); }
.lhm-sidebar__list a:hover, .lhm-sidebar__list .current-cat > a { background: var(--lhm-gold-dim); color: var(--lhm-gold) !important; }
.lhm-sidebar__list .count { font-size: 0.75rem; color: var(--lhm-text-subtle); background: var(--lhm-bg-surface); border-radius: var(--lhm-radius-full); padding: 2px 7px; }
.lhm-extensions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--lhm-space-6); }
.lhm-empty-state { grid-column: 1 / -1; text-align: center; padding: var(--lhm-space-20); color: var(--lhm-text-muted); }
.lhm-empty-state svg { margin-inline: auto; margin-bottom: var(--lhm-space-5); color: var(--lhm-text-subtle); }

/* ==========================================================================
   9. SINGLE EXTENSION
   ========================================================================== */

.lhm-single { padding-top: var(--lhm-space-12); padding-bottom: var(--lhm-space-24); }
.lhm-breadcrumb { display: flex; align-items: center; gap: var(--lhm-space-2); font-size: 0.875rem; color: var(--lhm-text-subtle); margin-bottom: var(--lhm-space-8); }
.lhm-breadcrumb a { color: var(--lhm-text-muted) !important; }
.lhm-breadcrumb a:hover { color: var(--lhm-gold) !important; }
.lhm-single__layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--lhm-space-10); align-items: start; }
.lhm-single__hero { display: flex; align-items: flex-start; gap: var(--lhm-space-6); margin-bottom: var(--lhm-space-8); }
.lhm-single__icon { width: 80px; height: 80px; border-radius: var(--lhm-radius-lg); background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 2rem; color: var(--lhm-gold); }
.lhm-single__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.lhm-single__heading { flex: 1; }
.lhm-single__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--lhm-space-3); }
.lhm-single__tagline { font-size: 1.125rem; color: var(--lhm-text-muted); margin-bottom: var(--lhm-space-4); }
.lhm-single__badges { display: flex; flex-wrap: wrap; gap: var(--lhm-space-2); }

/* Purchase card */
.lhm-purchase-card { background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border-gold); border-radius: var(--lhm-radius-xl); padding: var(--lhm-space-8); position: sticky; top: calc(var(--lhm-header-h) + var(--lhm-space-6)); box-shadow: var(--lhm-shadow-lg), var(--lhm-shadow-gold); }
.lhm-purchase-card__price { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; color: var(--lhm-text); margin-bottom: var(--lhm-space-6); line-height: 1; }
.lhm-purchase-card__price small { font-size: 0.875rem; font-weight: 400; color: var(--lhm-text-muted); display: block; margin-top: var(--lhm-space-1); letter-spacing: 0; }
.lhm-purchase-card__cta { width: 100%; margin-bottom: var(--lhm-space-5); font-size: 1rem; padding: 14px; }
.lhm-purchase-card__perks { list-style: none; padding: 0; margin: 0 0 var(--lhm-space-6); display: flex; flex-direction: column; gap: var(--lhm-space-3); }
.lhm-purchase-card__perks li { display: flex; align-items: center; gap: var(--lhm-space-3); font-size: 0.9375rem; color: var(--lhm-text-muted); }
.lhm-purchase-card__perks li svg { color: var(--lhm-gold); flex-shrink: 0; }
.lhm-purchase-card__links { display: flex; gap: var(--lhm-space-4); padding-top: var(--lhm-space-5); border-top: 1px solid var(--lhm-border); }
.lhm-purchase-card__links a { flex: 1; text-align: center; font-size: 0.875rem; color: var(--lhm-text-muted) !important; }
.lhm-purchase-card__links a:hover { color: var(--lhm-gold) !important; }

/* Tabs */
.lhm-single__tabs { margin-top: var(--lhm-space-10); }
.lhm-tab-nav { display: flex; gap: var(--lhm-space-1); border-bottom: 1px solid var(--lhm-border); margin-bottom: var(--lhm-space-8); overflow-x: auto; }
.lhm-tab-nav__item { padding: var(--lhm-space-3) var(--lhm-space-4); font-size: 0.9375rem; font-weight: 500; color: var(--lhm-text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--lhm-duration), border-color var(--lhm-duration); background: none; border-top: none; border-left: none; border-right: none; }
.lhm-tab-nav__item:hover { color: var(--lhm-text); }
.lhm-tab-nav__item.is-active { color: var(--lhm-gold); border-bottom-color: var(--lhm-gold); }
.lhm-tab-panel { display: none; }
.lhm-tab-panel.is-active { display: block; }

/* FAQ */
.lhm-faq { display: flex; flex-direction: column; gap: var(--lhm-space-3); }
.lhm-faq details { background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius); overflow: hidden; }
.lhm-faq details[open] { border-color: var(--lhm-border-gold); }
.lhm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--lhm-space-4); padding: var(--lhm-space-5) var(--lhm-space-6); font-weight: 600; font-size: 1rem; color: var(--lhm-text); cursor: pointer; list-style: none; }
.lhm-faq summary::-webkit-details-marker { display: none; }
.lhm-faq summary::after { content: '+'; font-size: 1.25rem; color: var(--lhm-gold); font-weight: 300; flex-shrink: 0; }
.lhm-faq details[open] summary::after { content: '\2212'; }
.lhm-faq__answer { padding: 0 var(--lhm-space-6) var(--lhm-space-5); color: var(--lhm-text-muted); line-height: 1.75; }

/* Extension meta */
.lhm-ext-meta { background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-lg); overflow: hidden; margin-top: var(--lhm-space-6); }
.lhm-ext-meta__row { display: flex; justify-content: space-between; align-items: center; padding: var(--lhm-space-3) var(--lhm-space-5); border-bottom: 1px solid var(--lhm-border); font-size: 0.9375rem; }
.lhm-ext-meta__row:last-child { border-bottom: none; }
.lhm-ext-meta__label { color: var(--lhm-text-muted); }
.lhm-ext-meta__value { font-weight: 500; color: var(--lhm-text); font-family: var(--lhm-font-mono); font-size: 0.875rem; }

/* ==========================================================================
   10. MY ACCOUNT
   ========================================================================== */

.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: var(--lhm-space-10); align-items: start; max-width: var(--lhm-container); margin-inline: auto; padding: var(--lhm-space-12) var(--lhm-space-6); }
.woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--lhm-header-h) + var(--lhm-space-6)); background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-lg); overflow: hidden; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: var(--lhm-space-2); margin: 0; }
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: var(--lhm-space-3) var(--lhm-space-4); color: var(--lhm-text-muted) !important; font-size: 0.9375rem; font-weight: 500; border-radius: var(--lhm-radius-sm); transition: background var(--lhm-duration), color var(--lhm-duration); }
.woocommerce-MyAccount-navigation li:not(.woocommerce-MyAccount-navigation-link--customer-logout) a:hover,
.woocommerce-MyAccount-navigation li.is-active > a { background: var(--lhm-gold-dim); color: var(--lhm-gold) !important; }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--lhm-danger) !important; }
.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: var(--lhm-danger-bg); }
.woocommerce-MyAccount-content { min-width: 0; }
.lhm-account-section__title { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--lhm-space-6); padding-bottom: var(--lhm-space-4); border-bottom: 1px solid var(--lhm-border); }

/* WC Tables */
.woocommerce-orders-table, .shop_table { width: 100%; border-collapse: collapse; background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-lg); overflow: hidden; font-size: 0.9375rem; }
.woocommerce-orders-table th, .shop_table th { text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lhm-text-subtle); padding: var(--lhm-space-3) var(--lhm-space-5); border-bottom: 1px solid var(--lhm-border); background: var(--lhm-bg-surface); }
.woocommerce-orders-table td, .shop_table td { padding: var(--lhm-space-4) var(--lhm-space-5); border-bottom: 1px solid var(--lhm-border); color: var(--lhm-text-muted); vertical-align: middle; }
.woocommerce-orders-table tr:last-child td, .shop_table tr:last-child td { border-bottom: none; }

/* ==========================================================================
   11. STATUS BADGES
   ========================================================================== */

.lhm-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--lhm-radius-full); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.lhm-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.lhm-status--active   { background: var(--lhm-success-bg); color: var(--lhm-success); }
.lhm-status--inactive { background: var(--lhm-bg-surface);  color: var(--lhm-text-subtle); }
.lhm-status--expired  { background: var(--lhm-danger-bg);   color: var(--lhm-danger); }
.lhm-status--revoked  { background: var(--lhm-danger-bg);   color: var(--lhm-danger); }
.lhm-status--pending  { background: var(--lhm-warning-bg);  color: var(--lhm-warning); }

/* ==========================================================================
   12. FORMS & WC INPUTS
   ========================================================================== */

.lhm-form-group { margin-bottom: var(--lhm-space-5); }
.lhm-form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--lhm-text-muted); margin-bottom: var(--lhm-space-2); }
.lhm-input,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce input[type="search"],
.woocommerce textarea,
.woocommerce select {
  display: block; width: 100%; padding: 11px var(--lhm-space-4);
  background: var(--lhm-bg-elevated) !important;
  border: 1px solid var(--lhm-border) !important;
  border-radius: var(--lhm-radius-sm) !important;
  color: var(--lhm-text) !important;
  font-size: 0.9375rem; font-family: var(--lhm-font); line-height: 1.5;
  transition: border-color var(--lhm-duration), box-shadow var(--lhm-duration);
  -webkit-appearance: none;
}
.woocommerce input:focus, .woocommerce textarea:focus, .woocommerce select:focus, .lhm-input:focus { outline: none; border-color: var(--lhm-gold-border) !important; box-shadow: var(--lhm-glow-gold); }
.woocommerce input::placeholder, .woocommerce textarea::placeholder { color: var(--lhm-text-subtle) !important; }
.woocommerce select option { background: var(--lhm-bg-elevated); color: var(--lhm-text); }

/* WC Buttons */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input[type="submit"],
.woocommerce .button {
  display: inline-flex !important; align-items: center; justify-content: center;
  padding: 10px 20px !important;
  background: var(--lhm-gold) !important; color: #0F172A !important;
  font-weight: 600 !important; font-size: 0.9375rem !important;
  border: 1px solid var(--lhm-gold) !important;
  border-radius: var(--lhm-radius-sm) !important;
  cursor: pointer; transition: all var(--lhm-duration) var(--lhm-ease); text-decoration: none !important;
}
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce input[type="submit"]:hover, .woocommerce .button:hover { background: var(--lhm-gold-light) !important; border-color: var(--lhm-gold-light) !important; color: #0F172A !important; }

/* ==========================================================================
   13. NOTICES
   ========================================================================== */

.lhm-notice, .woocommerce-message, .woocommerce-info { display: flex; align-items: flex-start; gap: var(--lhm-space-3); padding: var(--lhm-space-4) var(--lhm-space-5); border-radius: var(--lhm-radius); margin-bottom: var(--lhm-space-5); font-size: 0.9375rem; border: none !important; }
.lhm-notice--success, .woocommerce-message { background: var(--lhm-success-bg); color: var(--lhm-success); border-left: 3px solid var(--lhm-success) !important; }
.lhm-notice--error, .woocommerce-error { background: var(--lhm-danger-bg); color: var(--lhm-danger); border-left: 3px solid var(--lhm-danger) !important; }
.woocommerce-info { background: var(--lhm-info-bg); color: var(--lhm-info); border-left: 3px solid var(--lhm-info) !important; }
.woocommerce-error { display: block !important; }
.woocommerce-error li { color: var(--lhm-danger); }

/* ==========================================================================
   14. TRUST SIGNALS
   ========================================================================== */

.lhm-features { padding-block: var(--lhm-space-24); background: var(--lhm-bg-secondary); border-top: 1px solid var(--lhm-border); border-bottom: 1px solid var(--lhm-border); }
.lhm-features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--lhm-space-6); }
.lhm-feature-card { padding: var(--lhm-space-8); background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-lg); transition: border-color var(--lhm-duration); }
.lhm-feature-card:hover { border-color: var(--lhm-border-gold); }
.lhm-feature-card__icon { width: 48px; height: 48px; background: var(--lhm-gold-dim); border: 1px solid var(--lhm-gold-border); border-radius: var(--lhm-radius); display: flex; align-items: center; justify-content: center; color: var(--lhm-gold); margin-bottom: var(--lhm-space-5); }
.lhm-feature-card__title { font-size: 1rem; font-weight: 700; margin-bottom: var(--lhm-space-2); }
.lhm-feature-card__text { font-size: 0.9375rem; color: var(--lhm-text-muted); }

/* ==========================================================================
   15. SECTION HEADINGS
   ========================================================================== */

.lhm-section-label { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lhm-gold); margin-bottom: var(--lhm-space-3); }
.lhm-section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: var(--lhm-space-4); }
.lhm-section-sub { font-size: 1.125rem; color: var(--lhm-text-muted); max-width: 600px; }

/* ==========================================================================
   16. PAGINATION
   ========================================================================== */

.lhm-pagination, .woocommerce-pagination { display: flex; justify-content: center; align-items: center; gap: var(--lhm-space-2); margin-top: var(--lhm-space-12); flex-wrap: wrap; }
.lhm-pagination a, .lhm-pagination span, .woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 var(--lhm-space-3); background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-sm); color: var(--lhm-text-muted) !important; font-size: 0.9375rem; font-weight: 500; transition: all var(--lhm-duration); }
.lhm-pagination a:hover, .woocommerce-pagination a:hover { border-color: var(--lhm-border-gold); color: var(--lhm-gold) !important; }
.lhm-pagination .current, .woocommerce-pagination .current { background: var(--lhm-gold); border-color: var(--lhm-gold); color: #0F172A !important; font-weight: 700; }

/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.lhm-footer { background: var(--lhm-bg-secondary); border-top: 1px solid var(--lhm-border); padding: var(--lhm-space-16) 0 var(--lhm-space-8); }
.lhm-footer__inner { max-width: var(--lhm-container); margin-inline: auto; padding-inline: var(--lhm-space-6); }
.lhm-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--lhm-space-10); padding-bottom: var(--lhm-space-10); border-bottom: 1px solid var(--lhm-border); flex-wrap: wrap; }
.lhm-footer__brand { max-width: 280px; }
.lhm-footer__logo { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.03em; color: var(--lhm-text) !important; display: block; margin-bottom: var(--lhm-space-3); }
.lhm-footer__logo span { color: var(--lhm-gold); }
.lhm-footer__tagline { font-size: 0.9375rem; color: var(--lhm-text-subtle); line-height: 1.6; }
.lhm-footer__nav-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lhm-text-subtle); margin-bottom: var(--lhm-space-4); }
.lhm-footer__nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--lhm-space-3); }
.lhm-footer__nav a { font-size: 0.9375rem; color: var(--lhm-text-muted) !important; transition: color var(--lhm-duration); }
.lhm-footer__nav a:hover { color: var(--lhm-gold) !important; }
.lhm-footer__bottom { padding-top: var(--lhm-space-8); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--lhm-space-4); }
.lhm-footer__copy { font-size: 0.875rem; color: var(--lhm-text-subtle); }

/* ==========================================================================
   18. THANK-YOU PAGE
   ========================================================================== */

.lhm-thankyou-licenses { background: var(--lhm-bg-elevated); border: 1px solid var(--lhm-border-gold); border-radius: var(--lhm-radius-lg); padding: var(--lhm-space-8); margin-top: var(--lhm-space-8); box-shadow: var(--lhm-shadow-gold); }
.lhm-thankyou-licenses h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--lhm-space-2); }
.lhm-thankyou-licenses p { font-size: 0.9375rem; color: var(--lhm-text-muted); margin-bottom: var(--lhm-space-6); }
.lhm-license-key { font-family: var(--lhm-font-mono); font-size: 0.9375rem; letter-spacing: 0.05em; background: var(--lhm-bg-surface); border: 1px solid var(--lhm-border); border-radius: var(--lhm-radius-sm); padding: var(--lhm-space-2) var(--lhm-space-4); color: var(--lhm-gold); user-select: all; }

/* ==========================================================================
   19. UTILITIES
   ========================================================================== */

.lhm-gold   { color: var(--lhm-gold); }
.lhm-muted  { color: var(--lhm-text-muted); }
.lhm-subtle { color: var(--lhm-text-subtle); }
.lhm-mono   { font-family: var(--lhm-font-mono); }
.lhm-text-center { text-align: center; }
.lhm-text-right  { text-align: right; }
.lhm-mb-0  { margin-bottom: 0 !important; }
.lhm-mb-4  { margin-bottom: var(--lhm-space-4); }
.lhm-mb-6  { margin-bottom: var(--lhm-space-6); }
.lhm-mb-8  { margin-bottom: var(--lhm-space-8); }
.lhm-mb-12 { margin-bottom: var(--lhm-space-12); }
.lhm-divider { border: none; border-top: 1px solid var(--lhm-border); margin-block: var(--lhm-space-8); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .lhm-grid--marketplace { grid-template-columns: 1fr; }
  .lhm-sidebar { position: static; }
  .lhm-single__layout { grid-template-columns: 1fr; }
  .lhm-purchase-card { position: static; order: -1; }
  .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation { position: static; }
  .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: var(--lhm-space-1); }
  .lhm-footer__top { flex-direction: column; }
}

@media (max-width: 768px) {
  :root { --lhm-header-h: 64px; }
  .lhm-header__nav, .lhm-header__actions .lhm-btn--secondary { display: none; }
  .lhm-header__menu-toggle { display: flex; }
  .lhm-header__nav.is-open { display: flex; flex-direction: column; position: fixed; top: var(--lhm-header-h); left: 0; right: 0; bottom: 0; background: var(--lhm-bg-primary); padding: var(--lhm-space-6); z-index: 99; overflow-y: auto; border-top: 1px solid var(--lhm-border); }
  .lhm-header__nav.is-open a { padding: var(--lhm-space-4); font-size: 1.125rem; border-bottom: 1px solid var(--lhm-border); border-radius: 0; }
  .lhm-container { padding-inline: var(--lhm-space-4); }
  .lhm-section { padding-block: var(--lhm-space-16); }
  .lhm-hero { padding-block: var(--lhm-space-16); }
  .lhm-hero__actions { flex-direction: column; align-items: stretch; }
  .lhm-hero__actions .lhm-btn { width: 100%; justify-content: center; }
  .lhm-grid--2, .lhm-grid--3, .lhm-grid--4 { grid-template-columns: 1fr; }
  .lhm-extensions-grid { grid-template-columns: 1fr; }
  .lhm-footer__bottom { flex-direction: column; text-align: center; }
  .lhm-single__hero { flex-direction: column; }
}

@media (max-width: 480px) {
  .lhm-card { padding: var(--lhm-space-5); }
  .lhm-purchase-card { padding: var(--lhm-space-6); }
}

/* ==========================================================================
   21. ANIMATIONS
   ========================================================================== */

@keyframes lhm-fade-up  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lhm-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lhm-shimmer  { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.lhm-animate-fade-up { animation: lhm-fade-up 0.5s var(--lhm-ease) both; }
.lhm-animate-fade-in { animation: lhm-fade-in 0.3s var(--lhm-ease) both; }
.lhm-skeleton { background: linear-gradient(90deg, var(--lhm-bg-elevated) 25%, var(--lhm-bg-surface) 50%, var(--lhm-bg-elevated) 75%); background-size: 200% 100%; animation: lhm-shimmer 1.6s infinite; border-radius: var(--lhm-radius-sm); }

@media print {
  .lhm-header, .lhm-footer, .lhm-hero, .lhm-sidebar { display: none !important; }
  body { background: #fff; color: #000; }
  .lhm-license-key { border: 1px solid #ccc; }
}
