/* ===================================================================
   P8W PUBLIC THEME v8 — Replicado do market8.p8w.app
   Light mode default (market8 style)
   Dark mode via .dark class
   Zero cores hardcoded — tudo via var(--pub-*)
   =================================================================== */

html { scroll-behavior: smooth; }

/* ===== DESIGN TOKENS — LIGHT MODE (default, market8 style) ===== */
:root {
    /* Surface — market8: --surface-page: #F1F5F9, --surface-card: #FFFFFF */
    --pub-bg: #f8fafc;
    --pub-bg-alt: #f1f5f9;
    --pub-bg-card: #ffffff;
    --pub-bg-card-solid: #ffffff;
    --pub-bg-card-elevated: #ffffff;
    --pub-bg-subtle: rgba(0, 0, 0, 0.02);
    --pub-surface-alt: #f3f4f6;

    /* Borders — market8: --border-color: #E2E8F0 */
    --pub-border: #e2e8f0;
    --pub-border-hover: #cbd5e1;
    --pub-border-accent: rgba(236, 72, 153, 0.4);
    --pub-border-strong: #94a3b8;

    /* Text — market8: --text-primary: #0F172A, --text-secondary: #475569, --text-muted: #94A3B8 */
    --pub-text: #0f172a;
    --pub-text-secondary: #475569;
    --pub-text-muted: #94a3b8;
    --pub-text-dim: #cbd5e1;

    /* Primary accent — warm pink for light mode */
    --pub-accent: #ec4899;
    --pub-accent-hover: #db2777;
    --pub-accent-glow: rgba(236, 72, 153, 0.1);
    --pub-accent-subtle: rgba(236, 72, 153, 0.06);
    --pub-accent-strong: rgba(236, 72, 153, 0.15);

    /* Secondary accent */
    --pub-accent-2: #f97316;
    --pub-accent-2-glow: rgba(249, 115, 22, 0.08);

    /* Semantic colors */
    --pub-success: #10b981;
    --pub-danger: #ef4444;
    --pub-warning: #f59e0b;
    --pub-info: #3b82f6;
    --pub-purple: #8b5cf6;

    /* Brand gradient — Light mode: Instagram-inspired warm gradient */
    --pub-gradient-1: linear-gradient(135deg, #f97316, #ec4899, #e11d8e);
    --pub-gradient-text: linear-gradient(135deg, #f97316, #ec4899, #d946ef);
    --pub-gradient-subtle: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(236, 72, 153, 0.04));
    --pub-gradient-mesh: linear-gradient(135deg, rgba(249, 115, 22, 0.04), rgba(236, 72, 153, 0.02));

    /* Hero gradients — refined dark with warm undertone */
    --pub-hero-dark-from: #151530;
    --pub-hero-dark-mid: #121230;
    --pub-hero-dark-to: #0b0b1a;

    /* Shadows — market8 style: very subtle */
    --pub-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --pub-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --pub-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --pub-shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.08);
    --pub-shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
    --pub-shadow-glow: 0 0 30px rgba(236, 72, 153, 0.05);
    --pub-shadow-glow-lg: 0 0 60px rgba(236, 72, 153, 0.08);
    --pub-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --pub-card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Radii — market8 exact: 14px cards, 12px icons, 8px buttons */
    --pub-radius-xs: 0.25rem;
    --pub-radius-sm: 0.4375rem;
    --pub-radius-md: 0.5rem;
    --pub-radius-lg: 0.75rem;
    --pub-radius-xl: 0.875rem;
    --pub-radius-2xl: 0.875rem;
    --pub-radius-full: 9999px;
    --pub-radius-card: 14px;
    --pub-radius-icon: 12px;
    --pub-radius-btn: 8px;

    /* Transitions */
    --pub-transition-fast: 150ms ease;
    --pub-transition-normal: 200ms ease;
    --pub-transition-slow: 300ms ease;
    --pub-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Footer — refined dark */
    --pub-footer-bg: #131328;
    --pub-footer-text: rgba(255, 255, 255, 0.7);
    --pub-footer-muted: rgba(255, 255, 255, 0.45);
    --pub-footer-border: rgba(100, 116, 139, 0.35);

    /* Selection */
    --pub-selection: rgba(236, 72, 153, 0.2);

    /* On-dark text (for hero/cta sections with forced dark bg) */
    --pub-text-on-dark: #f1f5f9;
    --pub-text-muted-on-dark: #b0bec5;

    /* Header bg */
    --pub-header-bg: #ffffff;

    /* Z-index */
    --pub-z-header: 100;
    --pub-z-overlay: 200;
    --pub-z-panel: 201;
}

/* ===== DESIGN TOKENS — DARK MODE ===== */
.dark {
    --pub-bg: #0b0b1a;
    --pub-bg-alt: #131328;
    --pub-bg-card: rgba(30, 30, 56, 0.92);
    --pub-bg-card-solid: #1e1e38;
    --pub-bg-card-elevated: #2a2a4e;
    --pub-bg-subtle: rgba(255, 255, 255, 0.06);
    --pub-surface-alt: rgba(255, 255, 255, 0.06);

    /* Borders — increased visibility */
    --pub-border: rgba(100, 116, 139, 0.35);
    --pub-border-hover: rgba(148, 163, 184, 0.5);
    --pub-border-accent: rgba(167, 139, 250, 0.5);
    --pub-border-strong: rgba(148, 163, 184, 0.6);

    /* Text — improved contrast for WCAG AA+ */
    --pub-text: #f8fafc;
    --pub-text-secondary: #e2e8f0;
    --pub-text-muted: #b0bec5;
    --pub-text-dim: #78909c;

    /* Accent — brighter purple for dark mode */
    --pub-accent: #a78bfa;
    --pub-accent-hover: #c4b5fd;
    --pub-accent-glow: rgba(167, 139, 250, 0.2);
    --pub-accent-subtle: rgba(167, 139, 250, 0.1);
    --pub-accent-strong: rgba(167, 139, 250, 0.3);

    /* Semantic colors — brighter for dark backgrounds */
    --pub-success: #34d399;
    --pub-danger: #f87171;
    --pub-warning: #fbbf24;
    --pub-info: #60a5fa;
    --pub-purple: #a78bfa;

    /* Dark mode gradient: blue → purple → green — brighter stops */
    --pub-gradient-1: linear-gradient(135deg, #ec4899, #8b5cf6, #10b981);
    --pub-gradient-text: linear-gradient(135deg, #f472b6, #a78bfa, #34d399);
    --pub-gradient-subtle: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.06));
    --pub-gradient-mesh: linear-gradient(135deg, rgba(236, 72, 153, 0.06), rgba(139, 92, 246, 0.03));

    --pub-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --pub-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --pub-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --pub-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --pub-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --pub-shadow-glow: 0 0 40px rgba(167, 139, 250, 0.15);
    --pub-shadow-glow-lg: 0 0 80px rgba(167, 139, 250, 0.2);
    --pub-card-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.3);
    --pub-card-shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    --pub-selection: rgba(167, 139, 250, 0.35);
}

/* ===== BASE RESET & FOUNDATION ===== */
::selection { background: var(--pub-selection); color: inherit; }
::-moz-selection { background: var(--pub-selection); color: inherit; }

.pub-page {
    min-height: 100vh;
    background: var(--pub-bg);
    color: var(--pub-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Dark mode — link contrast fix */
.dark .pub-page a:not([class*="btn"]):not([class*="nav"]):not([class*="sidebar"]):not([class*="logo"]):not([class*="footer"]):not([class*="pagination"]):not([class*="badge"]):not([class*="pill"]) {
    color: var(--pub-info);
    -webkit-text-fill-color: var(--pub-info);
}
.dark .pub-page a:not([class*="btn"]):not([class*="nav"]):not([class*="sidebar"]):not([class*="logo"]):not([class*="footer"]):not([class*="pagination"]):not([class*="badge"]):not([class*="pill"]):hover {
    color: var(--pub-link-hover, #bfdbfe);
    -webkit-text-fill-color: var(--pub-link-hover, #bfdbfe);
}

/* Dark mode — button text reinforcement */
.dark .pub-btn-primary {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* Ambient mesh background — warm tones in light, cool in dark */
.pub-mesh-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(249, 115, 22, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(236, 72, 153, 0.02) 0%, transparent 60%);
}
.dark .pub-mesh-bg {
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 50% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
}
.pub-noise { display: none; }

/* ===== HEADER — market8 exact: .pub-nav ===== */
.pub-header {
    background: var(--pub-header-bg);
    border-bottom: 1px solid var(--pub-border);
    position: sticky;
    top: 0;
    z-index: var(--pub-z-header);
}
.pub-header.scrolled {
    box-shadow: var(--pub-shadow-md);
}
.dark .pub-header {
    background: rgba(11, 11, 26, 0.95);
    border-bottom-color: rgba(100, 116, 139, 0.25);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* Header icon buttons */
.pub-header-icon-btn {
    width: 2.25rem; height: 2.25rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--pub-text-secondary);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-md);
    transition: all var(--pub-transition-fast);
    background: transparent;
    cursor: pointer;
}
.pub-header-icon-btn:hover {
    color: var(--pub-accent);
    border-color: var(--pub-border-accent);
    background: var(--pub-accent-subtle);
}
.dark .pub-header-icon-btn {
    color: var(--pub-text-secondary);
    border-color: var(--pub-border);
}
.dark .pub-header-icon-btn:hover {
    color: var(--pub-accent-hover);
    border-color: var(--pub-border-accent);
    background: var(--pub-accent-subtle);
}

/* Navigation links — market8: .pub-nav__links a */
.pub-nav-link {
    color: var(--pub-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--pub-radius-btn);
    transition: color var(--pub-transition-fast), background-color var(--pub-transition-fast);
    text-decoration: none;
    position: relative;
    letter-spacing: -0.01em;
}
.pub-nav-link:hover {
    color: var(--pub-text);
    background: var(--pub-bg-subtle);
}
.pub-nav-link.active {
    color: var(--pub-accent);
    font-weight: 600;
    background: var(--pub-accent-subtle);
}
.pub-nav-text { color: var(--pub-text); }

/* Logo */
.pub-logo-icon {
    background: var(--pub-gradient-1);
    border-radius: var(--pub-radius-lg);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* ===== CARDS — market8 exact: white bg, 1px border #e2e8f0, border-radius: 14px ===== */
.pub-card {
    background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card);
    box-shadow: var(--pub-card-shadow);
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.pub-card:hover {
    border-color: var(--pub-accent);
    box-shadow: var(--pub-card-shadow-hover);
    transform: translateY(-2px);
}

/* Card accent line on hover */
.pub-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--pub-gradient-1);
    opacity: 0; transition: opacity var(--pub-transition-normal);
    border-radius: var(--pub-radius-2xl) var(--pub-radius-2xl) 0 0;
    z-index: 1;
}
.pub-card:hover::before { opacity: 1; }

/* Glow card — interactive, accent border on hover */
a.pub-card:hover,
.pub-card-glow:hover {
    border-color: var(--pub-accent);
    box-shadow: var(--pub-card-shadow-hover);
}

/* Static cards — subtle hover, no transform */
.pub-card-static {
    background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card);
    box-shadow: var(--pub-card-shadow);
    position: relative;
    overflow: hidden;
    transition: all .2s;
}
.pub-card-static:hover {
    border-color: var(--pub-border-hover);
    box-shadow: var(--pub-shadow-md);
    transform: none;
}

/* Dark mode card glass effect */
.dark .pub-card,
.dark .pub-card-static {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Cards inside always-dark sections */
.pub-hero-dark .pub-card,
.pub-cta-dark .pub-card,
.pub-hero-dark .pub-card-static,
.pub-cta-dark .pub-card-static {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.pub-hero-dark .pub-card:hover,
.pub-cta-dark .pub-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Horizontal card layout */
.pub-card-h {
    display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.75rem;
}
.pub-card-h .pub-icon-box { margin-top: 0.125rem; }

/* Featured/highlighted card */
.pub-card-featured {
    border: 1px solid var(--pub-accent) !important;
    box-shadow: 0 0 0 1px var(--pub-accent-subtle), 0 8px 32px rgba(236, 72, 153, 0.12);
    overflow: visible !important;
}

/* ===== TEXT UTILITIES ===== */
.pub-text-accent {
    background: var(--pub-gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pub-text-muted { color: var(--pub-text-muted); }
.pub-text-secondary { color: var(--pub-text-secondary); }
.pub-text-muted-token { color: var(--pub-text-muted); }
.pub-text-on-dark { color: var(--pub-text-on-dark, #f1f5f9); }
.pub-text-muted-on-dark { color: var(--pub-text-muted-on-dark, #b0bec5); }
.pub-text-pink { color: var(--pub-accent); }
.dark .pub-text-pink { color: var(--pub-accent); }

/* Gradient text */
.pub-gradient {
    background: var(--pub-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pub-gradient-subtle {
    background: var(--pub-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text {
    background: var(--pub-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.pub-btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5625rem 1.125rem;
    background: var(--pub-gradient-1);
    color: #fff; font-weight: 600; font-size: .875rem;
    font-family: inherit; line-height: 1.4;
    -webkit-text-fill-color: #fff;
    border-radius: var(--pub-radius-btn); border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
    transition: all .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    white-space: nowrap;
}
.pub-btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 14px rgba(236,72,153,.3);
    transform: translateY(-1px);
}
.dark .pub-btn-primary:hover {
    box-shadow: 0 4px 14px rgba(139,92,246,.3);
}
.pub-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.pub-btn-primary:focus-visible,
.pub-btn-ghost:focus-visible,
.pub-btn-ghost-light:focus-visible {
    outline: 2px solid var(--pub-accent); outline-offset: 2px;
}

/* market8 exact: .pub-btn--ghost */
.pub-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5625rem 1.125rem;
    background: transparent; color: var(--pub-text-secondary); font-weight: 600; font-size: .875rem;
    font-family: inherit; line-height: 1.4;
    border-radius: var(--pub-radius-btn); border: 1.5px solid var(--pub-border);
    cursor: pointer; text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.pub-btn-ghost:hover {
    background: var(--pub-bg-alt);
    color: var(--pub-text);
    border-color: var(--pub-border-hover);
}
.dark .pub-btn-ghost {
    color: var(--pub-text);
    -webkit-text-fill-color: var(--pub-text);
    border-color: var(--pub-border);
    background: var(--pub-bg-subtle);
}
.dark .pub-btn-ghost:hover {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--pub-border-hover);
}

/* market8 exact: .pub-btn--ghost-light (dark backgrounds) */
.pub-btn-ghost-light {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5625rem 1.125rem;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9); font-weight: 600; font-size: .875rem;
    font-family: inherit; line-height: 1.4;
    border-radius: var(--pub-radius-btn);
    border: 1.5px solid rgba(255,255,255,.2);
    cursor: pointer; text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.pub-btn-ghost-light:hover {
    background: rgba(255,255,255,.16);
}

/* Button sizes — market8 exact */
.pub-btn-sm { padding: .375rem .875rem; font-size: .8125rem; border-radius: 7px; }
.pub-btn-lg { padding: .875rem 1.75rem; font-size: 1rem; font-weight: 700; border-radius: 10px; }

/* ===== FORM INPUTS ===== */
.pub-input {
    width: 100%; padding: 0.75rem 1rem;
    border-radius: var(--pub-radius-md); font-size: 0.875rem;
    background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    color: var(--pub-text);
    transition: border-color var(--pub-transition-fast), box-shadow var(--pub-transition-fast);
    outline: none;
    box-sizing: border-box;
    min-width: 0;
}
.pub-input::placeholder { color: var(--pub-text-muted); }
.pub-input:hover { border-color: var(--pub-border-hover); }
.pub-input:focus {
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 3px var(--pub-accent-glow);
}
.dark .pub-input { background: var(--pub-bg-card-solid); }
select.pub-input {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center; background-repeat: no-repeat; background-size: 1.25em;
    padding-right: 2.75rem; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
textarea.pub-input { resize: vertical; min-height: 140px; }
.pub-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--pub-text); letter-spacing: -0.01em; }
.pub-label i { margin-right: 0.25rem; font-size: 0.75rem; opacity: 0.7; }
.pub-label-required { color: var(--pub-accent); font-weight: 700; }
.pub-label-optional { color: var(--pub-text-muted); font-weight: 400; font-size: 0.8125rem; }
.pub-checkbox { width: 1rem; height: 1rem; border-radius: 4px; accent-color: var(--pub-accent); }

/* ===== GATE FORM (roadmap access, login walls) ===== */
.pub-gate-wrapper { max-width: 28rem; margin: 0 auto; padding: 0 1.25rem; }
.pub-gate-card { padding: 1.5rem; overflow: visible; }
.pub-gate-header { text-align: center; margin-bottom: 1.25rem; }
.pub-gate-icon { width: 2.75rem; height: 2.75rem; margin: 0 auto 0.75rem; font-size: 1.125rem; }
.pub-gate-title { font-weight: 700; font-size: 1.125rem; color: var(--pub-text); letter-spacing: -0.02em; margin: 0 0 0.25rem 0; }
.pub-gate-subtitle { font-size: 0.8125rem; color: var(--pub-text-muted); margin: 0; }
.pub-gate-form { display: flex; flex-direction: column; gap: 1rem; }
.pub-gate-ip-badge {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1rem; border-radius: var(--pub-radius-card, 0.75rem);
    background: color-mix(in srgb, var(--pub-accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--pub-accent) 15%, transparent);
    font-size: 0.75rem; color: var(--pub-text-muted);
}
.pub-gate-ip-badge i { font-size: 0.75rem; color: var(--pub-accent); }
.pub-gate-ip-badge strong { color: var(--pub-text); }
.pub-gate-submit { width: 100%; justify-content: center; margin-top: 0.25rem; }
.pub-gate-privacy { font-size: 0.6875rem; color: var(--pub-text-muted); text-align: center; margin-top: 0.25rem; line-height: 1.5; }
.pub-gate-privacy i { margin-right: 0.25rem; }
.pub-gate-login-link { margin-top: 1.25rem; text-align: center; }
.pub-gate-login-link p { font-size: 0.8125rem; color: var(--pub-text-muted); margin-bottom: 0.75rem; }

/* ===== PILLS (section labels) — market8 exact: .pub-label ===== */
.pub-pill {
    display: inline-block;
    padding: .25rem .75rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700;
    background: color-mix(in srgb, var(--pub-accent) 12%, transparent);
    color: var(--pub-accent);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.pub-pill i { font-size: 0.625rem; margin-right: .25rem; }
.pub-pill-accent-border { border: 1px solid var(--pub-border-accent); }
.dark .pub-pill { color: var(--pub-info); }

/* Hero pill/badge — market8 exact: .pub-hero__badge */
.pub-hero-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .375rem 1rem; border-radius: 999px;
    font-size: .8125rem; font-weight: 600;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.85);
    margin-bottom: 1.5rem;
}

/* ===== SECTIONS — market8: padding: 5rem 1.5rem ===== */
.pub-section-alt {
    background: var(--pub-bg-alt);
    border-top: 1px solid var(--pub-border);
    border-bottom: 1px solid var(--pub-border);
    position: relative;
}

/* Section header — market8 exact: .pub-heading 2.5rem 800, .pub-subheading 1.125rem */
.pub-section-header {
    text-align: center; max-width: 42rem; margin-left: auto; margin-right: auto; margin-bottom: 3.5rem;
}
.pub-section-header h2 {
    font-size: 2.5rem; font-weight: 800; margin-bottom: .75rem; color: var(--pub-text);
    letter-spacing: -0.03em; line-height: 1.15;
}
.pub-section-header p {
    font-size: 1.125rem; color: var(--pub-text-muted); line-height: 1.7; max-width: 36rem; margin: 0 auto;
    margin-top: .75rem;
}

/* ===== ICON BOXES — market8 exact: 48px, border-radius: 12px, color-mix bg ===== */
.pub-icon-box {
    width: 48px; height: 48px; border-radius: var(--pub-radius-icon);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
    margin-bottom: 1.125rem;
    transition: transform var(--pub-transition-fast);
}
.pub-card:hover .pub-icon-box { transform: scale(1.1); }

/* Icon color variants — light mode (default, market8 style: color-mix 12%) */
.pub-icon-indigo  { background: color-mix(in srgb, #6366f1 12%, transparent); color: #4f46e5; }
.pub-icon-purple  { background: color-mix(in srgb, #a855f7 12%, transparent); color: #7c3aed; }
.pub-icon-pink    { background: color-mix(in srgb, #ec4899 12%, transparent); color: #db2777; }
.pub-icon-cyan    { background: color-mix(in srgb, #06b6d4 12%, transparent); color: #0891b2; }
.pub-icon-emerald { background: color-mix(in srgb, #10b981 12%, transparent); color: #059669; }
.pub-icon-amber   { background: color-mix(in srgb, #f59e0b 12%, transparent); color: #d97706; }
.pub-icon-rose    { background: color-mix(in srgb, #fb7185 12%, transparent); color: #e11d48; }
.pub-icon-blue    { background: color-mix(in srgb, #3b82f6 12%, transparent); color: #2563eb; }
.pub-icon-teal    { background: color-mix(in srgb, #14b8a6 12%, transparent); color: #0d9488; }
.pub-icon-violet  { background: color-mix(in srgb, #8b5cf6 12%, transparent); color: #6d28d9; }
.pub-icon-accent-dark { background: color-mix(in srgb, #ec4899 12%, transparent); color: #db2777; }
.pub-icon-success-soft { background: color-mix(in srgb, #34d399 12%, transparent); color: #059669; }
.pub-icon-pink-soft { background: color-mix(in srgb, #f472b6 12%, transparent); color: #db2777; }

/* Dark mode icon colors */
.dark .pub-icon-indigo  { background: rgba(99, 102, 241, 0.12); color: #a5b4fc; }
.dark .pub-icon-purple  { background: rgba(168, 85, 247, 0.12); color: #c4b5fd; }
.dark .pub-icon-pink    { background: rgba(236, 72, 153, 0.12); color: #f9a8d4; }
.dark .pub-icon-cyan    { background: rgba(34, 211, 238, 0.12); color: #67e8f9; }
.dark .pub-icon-emerald { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.dark .pub-icon-amber   { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
.dark .pub-icon-rose    { background: rgba(251, 113, 133, 0.12); color: #fda4af; }
.dark .pub-icon-blue    { background: rgba(96, 165, 250, 0.12); color: #93c5fd; }
.dark .pub-icon-teal    { background: rgba(45, 212, 191, 0.12); color: #5eead4; }
.dark .pub-icon-violet  { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }
.dark .pub-icon-accent-dark { background: rgba(167, 139, 250, 0.12); color: #c4b5fd; }
.dark .pub-icon-success-soft { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.dark .pub-icon-pink-soft { background: rgba(244, 114, 182, 0.12); color: #f472b6; }

/* Icon sizes */
.pub-icon-xs { font-size: 0.625rem; }
.pub-icon-sm { font-size: 0.8125rem; }
.pub-icon-arrow { font-size: 0.625rem; transition: transform var(--pub-transition-fast); }
.pub-icon-robot { font-size: 0.6875rem; }
.pub-card:hover .pub-icon-arrow { transform: translateX(3px); }

/* ===== STATS — market8 style ===== */
.pub-stat-value {
    font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
    background: var(--pub-gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pub-stat-label { color: var(--pub-text-muted); letter-spacing: 0.02em; font-size: .75rem; margin-top: .5rem; font-weight: 500; }

.pub-stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-2xl); overflow: hidden;
    max-width: 48rem; margin: 0 auto;
    box-shadow: var(--pub-card-shadow);
}
.dark .pub-stats-bar {
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.pub-stats-bar > div { padding: 2rem 1.5rem; text-align: center; position: relative; }
.pub-stats-bar > div:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px;
    background: var(--pub-border);
}

/* ===== HERO — refined dark gradient ===== */
.pub-hero-dark {
    background: linear-gradient(135deg, var(--pub-hero-dark-from) 0%, var(--pub-hero-dark-mid) 50%, var(--pub-hero-dark-to) 100%);
    color: #fff;
    padding: 6rem 1.5rem 5rem;
    position: relative; overflow: hidden;
}
.pub-hero-dark::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(139, 92, 246, .18), transparent),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(59, 130, 246, .14), transparent),
        radial-gradient(ellipse 30% 30% at 50% 20%, rgba(16, 185, 129, .08), transparent);
}
.pub-hero-dark::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.3) 50%, transparent 100%);
}

/* ===== PAGE HERO — refined dark gradient, centered ===== */
.pub-page-hero {
    background: linear-gradient(135deg, var(--pub-hero-dark-from) 0%, var(--pub-hero-dark-mid) 50%, var(--pub-hero-dark-to) 100%);
    color: #fff; position: relative; overflow: hidden;
    padding: 5rem 1.5rem; text-align: center;
}
.pub-page-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(139, 92, 246, .18), transparent),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(59, 130, 246, .14), transparent);
}
.pub-page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.3) 50%, transparent 100%);
}
.pub-page-hero h1 {
    font-size: 2.5rem; font-weight: 800;
    margin-bottom: 1.25rem; letter-spacing: -0.03em; line-height: 1.15;
    background: var(--pub-gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
@media (min-width: 640px) { .pub-page-hero h1 { font-size: 2.75rem; } }
@media (min-width: 1024px) { .pub-page-hero h1 { font-size: 3rem; } }
.pub-page-hero p {
    font-size: 1.125rem; color: rgba(255,255,255,.82);
    max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ===== CTA — refined dark with gradient glow ===== */
.pub-cta-dark {
    background: linear-gradient(135deg, var(--pub-hero-dark-from) 0%, var(--pub-hero-dark-mid) 60%, var(--pub-hero-dark-from) 100%);
    color: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative; overflow: hidden;
}
.pub-cta-dark::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 30% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}
.pub-cta-dark::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.3) 50%, transparent 100%);
}
.pub-cta-dark .pub-text-on-dark { color: var(--pub-text-on-dark); }
.pub-cta-dark .pub-text-muted-on-dark { color: var(--pub-text-muted-on-dark); }

/* ===== FOOTER ===== */
.pub-footer {
    background: var(--pub-footer-bg);
    color: var(--pub-footer-text);
    padding: 3.5rem 1.5rem 2rem;
    position: relative;
}
.pub-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: rgba(255,255,255,.12);
}
.pub-footer a { color: var(--pub-info); transition: color .15s; text-decoration: none; font-size: .875rem; }
.pub-footer a:hover { color: var(--pub-link-hover, #bfdbfe); }
html:not(.dark) .pub-footer a { color: var(--pub-accent); }
html:not(.dark) .pub-footer a:hover { color: var(--pub-accent-hover); }
.pub-footer h4 {
    color: rgba(255,255,255,.85) !important;
    font-size: .8125rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: .875rem;
}
.pub-footer .pub-footer-brand { color: var(--pub-text-on-dark) !important; font-size: .9375rem; font-weight: 700; }
.pub-footer .pub-footer-copy {
    color: rgba(255,255,255,.45);
    border-color: rgba(255,255,255,.08) !important;
}

.pub-footer-icon { background: var(--pub-gradient-1); border-radius: var(--pub-radius-lg); box-shadow: 0 2px 8px rgba(236, 72, 153, 0.2); }
.pub-footer-desc { color: rgba(255, 255, 255, 0.55); max-width: 300px; line-height: 1.7; font-size: .8125rem; }

/* Social icons */
.pub-social-icon {
    width: 2.25rem; height: 2.25rem; border-radius: var(--pub-radius-md);
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35); font-size: 0.875rem;
    transition: all var(--pub-transition-fast);
}
.pub-social-icon:hover {
    border-color: var(--pub-accent);
    color: var(--pub-accent);
    background: var(--pub-accent-subtle);
    transform: translateY(-2px);
}

/* ===== FEATURE TAG ===== */
.pub-feature-tag {
    display: inline-flex; align-items: center; padding: 0.25rem 0.625rem;
    border-radius: var(--pub-radius-sm); font-size: 0.6875rem; font-weight: 500;
    background: var(--pub-accent-subtle); color: var(--pub-accent);
    border: 1px solid var(--pub-accent-subtle);
    transition: background-color var(--pub-transition-fast);
}
.pub-card-glow:hover .pub-feature-tag { background: var(--pub-accent-glow); }

/* ===== DASHBOARD PREVIEW (hero) ===== */
.pub-dash-preview {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--pub-radius-2xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.pub-bar-chart-bar {
    background: linear-gradient(to top, var(--pub-accent), var(--pub-accent-hover));
    border-radius: 3px;
}

.pub-metric-grid { border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--pub-radius-lg); }
.pub-metric-divider { background: rgba(255, 255, 255, 0.05); }

/* Float cards */
.pub-float-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--pub-radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pub-automation-row { border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--pub-radius-lg); }

/* Badges */
.pub-badge-growth { color: var(--pub-success); background: color-mix(in srgb, var(--pub-success) 12%, transparent); border-radius: var(--pub-radius-full); }
.dark .pub-badge-growth { color: var(--pub-success); background: color-mix(in srgb, var(--pub-success) 10%, transparent); }
.pub-badge-popular { background: var(--pub-gradient-1); box-shadow: 0 2px 12px rgba(236, 72, 153, 0.35); }
.dark .pub-badge-popular { box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4); }

/* Avatars */
.pub-avatar {
    width: 1.75rem; height: 1.75rem;
    border-radius: var(--pub-radius-full);
    border: 2px solid var(--pub-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; color: #fff;
}
.pub-avatar-blue  { background: var(--pub-info); }
.pub-avatar-pink  { background: var(--pub-accent); }
.pub-avatar-teal  { background: color-mix(in srgb, #14b8a6 100%, transparent); }
.pub-avatar-amber { background: var(--pub-warning); }

.pub-star { font-size: 0.625rem; }
.pub-module-link { color: var(--pub-accent); }
.pub-integration-item { color: var(--pub-text-muted); }
.pub-integrations-label { color: var(--pub-text-muted); }

/* Toggle button */
.pub-toggle-btn { background: var(--pub-accent); }

/* ===== ANIMATIONS ===== */
@keyframes pub-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
.pub-float { animation: pub-float 7s ease-in-out infinite; }
.pub-float-delay { animation: pub-float 7s ease-in-out 2.5s infinite; }

/* Scroll reveal */
.pub-fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: pubFadeInFallback 0s ease forwards;
    animation-delay: 1.5s;
}
.pub-fade-in.visible {
    opacity: 1; transform: translateY(0);
    animation: none;
}
@keyframes pubFadeInFallback {
    to { opacity: 1; transform: translateY(0); }
}

/* Stagger children */
.pub-fade-in-stagger > .pub-fade-in:nth-child(1) { transition-delay: 0ms; }
.pub-fade-in-stagger > .pub-fade-in:nth-child(2) { transition-delay: 60ms; }
.pub-fade-in-stagger > .pub-fade-in:nth-child(3) { transition-delay: 120ms; }
.pub-fade-in-stagger > .pub-fade-in:nth-child(4) { transition-delay: 180ms; }
.pub-fade-in-stagger > .pub-fade-in:nth-child(5) { transition-delay: 240ms; }
.pub-fade-in-stagger > .pub-fade-in:nth-child(6) { transition-delay: 300ms; }
.pub-fade-in-stagger > .pub-fade-in:nth-child(7) { transition-delay: 360ms; }
.pub-fade-in-stagger > .pub-fade-in:nth-child(8) { transition-delay: 420ms; }
.pub-fade-in-stagger > .pub-fade-in:nth-child(9) { transition-delay: 480ms; }

/* Counter pulse */
@keyframes pub-counter-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.pub-counter-loading { animation: pub-counter-pulse 1.5s ease-in-out infinite; }

/* Shimmer */
@keyframes pub-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.pub-shimmer {
    background: linear-gradient(90deg, transparent 25%, var(--pub-accent-subtle) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: pub-shimmer 1.5s ease-in-out infinite;
}

/* Glow pulse */
@keyframes pub-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}
.pub-glow-pulse { animation: pub-glow-pulse 2s ease-in-out infinite; }

/* ===== BLOG ===== */
.pub-blog-featured {
    background: var(--pub-bg-card);
    text-decoration: none;
    color: inherit;
}
.pub-blog-featured:hover {
    transform: translateY(-2px);
    box-shadow: var(--pub-card-shadow-hover);
    border-color: var(--pub-accent);
}
@media (min-width: 768px) {
    .pub-blog-featured { grid-template-columns: 1.2fr 1fr !important; }
}
.pub-comment-reply-btn:hover { background: var(--pub-accent-subtle, rgba(236,72,153,.08)); }
#comment-form-wrapper input:focus,
#comment-form-wrapper textarea:focus {
    border-color: var(--pub-accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--pub-accent-subtle, rgba(236,72,153,.12));
}
.pub-blog-card {
    background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-2xl);
    overflow: hidden;
    transition: transform var(--pub-transition-normal),
                box-shadow var(--pub-transition-normal),
                border-color var(--pub-transition-normal);
}
.pub-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pub-card-shadow-hover);
    border-color: var(--pub-accent);
}
.pub-blog-card-image {
    width: 100%; height: 200px; object-fit: cover;
    background: var(--pub-bg-alt);
}
.pub-blog-card-body { padding: 1.75rem; }
.pub-blog-meta {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; color: var(--pub-text-muted);
    margin-bottom: 0.5rem;
}
.pub-blog-tag {
    display: inline-block; padding: 0.125rem 0.5rem;
    font-size: 0.6875rem; font-weight: 500;
    border-radius: var(--pub-radius-full);
    background: var(--pub-accent-subtle);
    color: var(--pub-accent);
}
.pub-blog-card h3 {
    font-size: 1rem; font-weight: 700; line-height: 1.4;
    color: var(--pub-text); margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.pub-blog-card p {
    font-size: 0.875rem; color: var(--pub-text-secondary);
    line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== ACCORDION / FAQ — market8 style ===== */
.pub-accordion-item {
    background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
    overflow: hidden;
    transition: border-color var(--pub-transition-normal);
}
.pub-accordion-item:hover { border-color: var(--pub-border-hover); }
.pub-accordion-item.open { border-color: var(--pub-accent); }
.pub-accordion-trigger {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 1.125rem 1.5rem;
    font-size: 0.9375rem; font-weight: 600;
    color: var(--pub-text);
    background: none; border: none; cursor: pointer;
    text-align: left; transition: color var(--pub-transition-fast);
    letter-spacing: -0.01em;
}
.pub-accordion-trigger:hover { color: var(--pub-accent); }
.pub-accordion-trigger .pub-accordion-icon {
    width: 1.25rem; height: 1.25rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--pub-text-muted); flex-shrink: 0;
}
.pub-accordion-item.open .pub-accordion-icon { transform: rotate(180deg); }
.pub-accordion-open { transform: rotate(180deg); }
.pub-accordion-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
}
.pub-accordion-item.open .pub-accordion-content { max-height: 600px; }
.pub-accordion-inner {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9375rem; color: var(--pub-text-secondary);
    line-height: 1.7;
}

/* ===== TESTIMONIALS ===== */
.pub-testimonial-card {
    background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-2xl);
    padding: 1.75rem;
    transition: transform var(--pub-transition-normal),
                border-color var(--pub-transition-normal),
                box-shadow var(--pub-transition-normal);
}
.pub-testimonial-card:hover {
    border-color: var(--pub-accent);
    box-shadow: var(--pub-card-shadow-hover);
    transform: translateY(-2px);
}
.pub-testimonial-avatar {
    width: 3rem; height: 3rem; border-radius: 50%;
    object-fit: cover; background: var(--pub-bg-alt);
}
.pub-testimonial-stars { color: var(--pub-warning); font-size: 0.875rem; }
.pub-testimonial-content {
    font-size: 0.9375rem; color: var(--pub-text-secondary);
    line-height: 1.7; font-style: italic; margin: 0.75rem 0;
}
.pub-testimonial-author { font-weight: 600; font-size: 0.875rem; color: var(--pub-text); }
.pub-testimonial-title { font-size: 0.75rem; color: var(--pub-text-muted); }

/* Star Rating Selector */
.pub-star-rating {
    display: inline-flex; gap: 0.25rem; cursor: pointer; user-select: none;
}
.pub-star-rating .pub-star {
    font-size: 1.5rem; color: var(--pub-border, #d1d5db); transition: color 150ms ease, transform 150ms ease;
}
.pub-star-rating .pub-star.active { color: var(--pub-warning); }
.pub-star-rating .pub-star.hover-preview { color: var(--pub-warning); }
.pub-star-rating .pub-star:hover { transform: scale(1.15); }

/* ===== KNOWLEDGE BASE ===== */
.pub-kb-category-card {
    background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-2xl);
    padding: 2rem 1.5rem; text-align: center;
    transition: transform var(--pub-transition-normal),
                border-color var(--pub-transition-normal),
                box-shadow var(--pub-transition-normal);
}
.pub-kb-category-card:hover {
    transform: translateY(-2px);
    border-color: var(--pub-accent);
    box-shadow: var(--pub-card-shadow-hover);
}
.pub-kb-category-card .pub-kb-icon {
    width: 3.5rem; height: 3.5rem; border-radius: var(--pub-radius-xl);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--pub-accent-subtle); color: var(--pub-accent);
    font-size: 1.25rem; margin-bottom: 1rem;
}
.pub-kb-search {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-lg);
    padding: 0.875rem 1.25rem 0.875rem 3.25rem !important;
    width: 100%; font-size: 0.9375rem; color: var(--pub-text);
    transition: border-color var(--pub-transition-fast), box-shadow var(--pub-transition-fast);
    box-sizing: border-box;
}
.pub-kb-search-icon {
    position: absolute; left: 1.125rem; top: 50%; transform: translateY(-50%);
    color: var(--pub-text-muted); font-size: 0.875rem;
    pointer-events: none; z-index: 2;
    width: 1rem; text-align: center;
}
.dark .pub-kb-search { background: var(--pub-bg-card-solid); }
.pub-kb-search:focus {
    outline: none;
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 3px var(--pub-accent-glow);
}
.pub-kb-search::placeholder { color: var(--pub-text-muted); }
.pub-kb-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8125rem; color: var(--pub-text-muted);
}
.pub-kb-breadcrumb a { color: var(--pub-accent); text-decoration: none; }
.pub-kb-breadcrumb a:hover { text-decoration: underline; }

/* ===== ROADMAP ===== */
.pub-roadmap-item {
    background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-2xl);
    padding: 1.5rem;
    transition: border-color var(--pub-transition-normal), box-shadow var(--pub-transition-normal);
}
.pub-roadmap-item:hover {
    border-color: var(--pub-border-hover);
    box-shadow: var(--pub-shadow-md);
}
.pub-roadmap-status {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.6875rem; font-weight: 600;
    padding: 0.25rem 0.625rem; border-radius: var(--pub-radius-full);
    text-transform: uppercase; letter-spacing: 0.03em;
}
.pub-roadmap-status.planned { background: color-mix(in srgb, #ec4899 10%, transparent); color: #db2777; }
.pub-roadmap-status.in-progress { background: color-mix(in srgb, #f97316 10%, transparent); color: #ea580c; }
.pub-roadmap-status.completed { background: color-mix(in srgb, #22c55e 10%, transparent); color: #059669; }
.dark .pub-roadmap-status.planned { color: #7dd3fc; }
.dark .pub-roadmap-status.in-progress { color: #7dd3fc; }
.dark .pub-roadmap-status.completed { color: #86efac; }
.pub-roadmap-progress {
    height: 0.375rem; border-radius: var(--pub-radius-full);
    background: var(--pub-bg-alt); overflow: hidden;
}
.pub-roadmap-progress-bar {
    height: 100%; border-radius: var(--pub-radius-full);
    background: var(--pub-gradient-1);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.pub-roadmap-vote {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.4375rem 0.875rem; border-radius: var(--pub-radius-lg);
    font-size: 0.75rem; font-weight: 500;
    border: 1px solid var(--pub-border); color: var(--pub-text-muted);
    background: transparent; cursor: pointer;
    transition: all var(--pub-transition-fast);
}
.pub-roadmap-vote:hover {
    border-color: var(--pub-accent); color: var(--pub-accent);
    background: var(--pub-accent-subtle);
}
.pub-roadmap-vote.voted {
    border-color: var(--pub-accent); color: var(--pub-accent);
    background: var(--pub-accent-glow);
}

/* ===== ROADMAP BADGES ===== */
.pub-roadmap-badge {
    display: inline-flex; align-items: center;
    font-size: .625rem; font-weight: 600;
    padding: .1875rem .5rem; border-radius: var(--pub-radius-full);
    text-transform: uppercase; letter-spacing: .03em;
    white-space: nowrap;
}
.pub-roadmap-badge-done {
    background: color-mix(in srgb, #22c55e 12%, transparent);
    color: #059669;
}
.pub-roadmap-badge-progress {
    background: color-mix(in srgb, #3b82f6 12%, transparent);
    color: #2563eb;
}
.pub-roadmap-badge-planned {
    background: color-mix(in srgb, #94a3b8 12%, transparent);
    color: #64748b;
}
.dark .pub-roadmap-badge-done { color: #86efac; }
.dark .pub-roadmap-badge-progress { color: #93c5fd; }
.dark .pub-roadmap-badge-planned { color: #cbd5e1; }

/* ===== ROADMAP GRIDS ===== */
.pub-roadmap-arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.pub-roadmap-growth-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) {
    .pub-roadmap-arch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pub-roadmap-arch-grid { grid-template-columns: 1fr; }
    .pub-roadmap-growth-grid { grid-template-columns: 1fr; }
}

/* ===== PAGINATION ===== */
.pub-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 0.375rem; margin-top: 2.5rem;
}
.pub-pagination-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem;
    padding: 0 0.5rem; border-radius: var(--pub-radius-md);
    font-size: 0.8125rem; font-weight: 500;
    color: var(--pub-text-muted); border: 1px solid var(--pub-border);
    background: transparent; cursor: pointer;
    transition: all var(--pub-transition-fast);
}
.pub-pagination-btn:hover {
    color: var(--pub-text); border-color: var(--pub-border-hover);
    background: var(--pub-bg-subtle);
}
.pub-pagination-btn.active {
    background: var(--pub-accent); border-color: var(--pub-accent); color: #fff;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
}
.pub-pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== FILTER PILLS ===== */
.pub-filter-pill {
    display: inline-flex; align-items: center;
    padding: 0.4375rem 1.125rem; border-radius: var(--pub-radius-full);
    font-size: 0.8125rem; font-weight: 500;
    color: var(--pub-text-muted); border: 1px solid var(--pub-border);
    background: transparent; cursor: pointer;
    transition: all var(--pub-transition-fast); white-space: nowrap;
}
.pub-filter-pill:hover {
    color: var(--pub-text); border-color: var(--pub-border-hover);
}
.pub-filter-pill.active {
    background: var(--pub-accent); border-color: var(--pub-accent); color: #fff;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
}

/* ===== SHARE BUTTONS ===== */
.pub-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: var(--pub-radius-md);
    border: 1px solid var(--pub-border); color: var(--pub-text-muted);
    transition: all var(--pub-transition-fast); cursor: pointer; background: transparent;
    text-decoration: none; font-size: 1rem;
}
.pub-share-btn:hover { transform: translateY(-1px); }
.pub-share-btn[data-action="share:twitter"]:hover { color: #000; border-color: #000; background: rgba(0,0,0,.06); }
.dark .pub-share-btn[data-action="share:twitter"]:hover { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.pub-share-btn[data-action="share:linkedin"]:hover { color: #0a66c2; border-color: #0a66c2; background: rgba(10,102,194,.06); }
.pub-share-btn[data-action="share:facebook"]:hover { color: #1877f2; border-color: #1877f2; background: rgba(24,119,242,.06); }
.pub-share-btn[data-action="share:whatsapp"]:hover { color: #25d366; border-color: #25d366; background: rgba(37,211,102,.06); }
.pub-share-btn[data-action="share:telegram"]:hover { color: #2aabee; border-color: #2aabee; background: rgba(42,171,238,.06); }
.pub-share-btn[data-action="share:copy"]:hover { color: var(--pub-accent); border-color: var(--pub-border-accent); background: var(--pub-accent-subtle); }

/* ===== STAR RATING ===== */
.pub-star-rating { display: inline-flex; align-items: center; gap: 0.125rem; }
.pub-star-rating .pub-star {
    cursor: pointer; font-size: 1.25rem; color: var(--pub-text-dim);
    transition: color var(--pub-transition-fast), transform var(--pub-transition-fast);
    background: none; border: none; padding: 0.125rem; line-height: 1;
}
.pub-star-rating .pub-star:hover,
.pub-star-rating .pub-star.active { color: var(--pub-warning); }
.pub-star-rating .pub-star:hover { transform: scale(1.15); }
.pub-star-rating .pub-star.readonly { cursor: default; }
.pub-star-rating .pub-star.readonly:hover { transform: none; }
.pub-star-avg { font-size: 0.875rem; font-weight: 600; color: var(--pub-warning); margin-left: 0.375rem; }
.pub-star-count { font-size: 0.75rem; color: var(--pub-text-muted); margin-left: 0.25rem; }

/* ===== REACTION BUTTONS (Like/Dislike) ===== */
.pub-reaction-btn {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.5rem 1rem; border-radius: var(--pub-radius-full);
    font-size: 0.8125rem; font-weight: 500;
    border: 1px solid var(--pub-border); color: var(--pub-text-secondary);
    background: transparent; cursor: pointer;
    transition: all var(--pub-transition-fast);
}
.pub-reaction-btn i { font-size: 0.875rem; }
.pub-reaction-btn:hover { border-color: var(--pub-border-hover); }
.pub-reaction-btn.like:hover,
.pub-reaction-btn.like.voted { color: var(--pub-success); border-color: var(--pub-success); background: color-mix(in srgb, var(--pub-success) 8%, transparent); }
.pub-reaction-btn.dislike:hover,
.pub-reaction-btn.dislike.voted { color: var(--pub-danger); border-color: var(--pub-danger); background: color-mix(in srgb, var(--pub-danger) 8%, transparent); }

/* ===== HELPFUL VOTE ===== */
.pub-helpful-btn {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.5rem 1.125rem; border-radius: var(--pub-radius-md);
    font-size: 0.8125rem; font-weight: 500;
    border: 1px solid var(--pub-border); color: var(--pub-text-secondary);
    background: transparent; cursor: pointer;
    transition: all var(--pub-transition-fast);
}
.pub-helpful-btn:hover {
    border-color: var(--pub-border-accent); color: var(--pub-accent);
}
.pub-helpful-btn.voted {
    background: var(--pub-accent-glow); border-color: var(--pub-accent); color: var(--pub-accent);
}

/* ===== PROSE (article/doc content) ===== */
.pub-prose { color: var(--pub-text-secondary); line-height: 1.9; font-size: 1.0625rem; }
.pub-prose h1, .pub-prose h2, .pub-prose h3 {
    color: var(--pub-text); font-weight: 700; letter-spacing: -0.02em;
}
.pub-prose h1 { font-size: 1.75rem; margin-top: 2.5em; margin-bottom: 1em; }
.pub-prose h2 { font-size: 1.5rem; margin-top: 2.5em; margin-bottom: 0.75em; padding-top: 1.5em; border-top: 1px solid var(--pub-border); }
.pub-prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.pub-prose h3 { font-size: 1.25rem; margin-top: 2em; margin-bottom: 0.625em; }
.pub-prose p { margin-bottom: 1.5em; }
.pub-prose a { color: var(--pub-accent); text-decoration: underline; text-decoration-color: rgba(236, 72, 153, 0.3); text-underline-offset: 2px; }
.pub-prose a:hover { text-decoration-color: var(--pub-accent); }
.pub-prose ul, .pub-prose ol { margin-bottom: 1.5em; padding-left: 1.75em; }
.pub-prose li { margin-bottom: 0.5em; }
.pub-prose li::marker { color: var(--pub-accent); }
.pub-prose strong { color: var(--pub-text); font-weight: 600; }
.pub-prose code {
    background: var(--pub-bg-alt); padding: 0.125rem 0.5rem;
    border-radius: var(--pub-radius-sm); font-size: 0.875em;
    border: 1px solid var(--pub-border);
}
.pub-prose pre {
    background: var(--pub-bg-alt); padding: 1.5rem;
    border-radius: var(--pub-radius-lg); overflow-x: auto;
    margin-bottom: 1.5em; border: 1px solid var(--pub-border);
}
.pub-prose blockquote {
    border-left: 3px solid var(--pub-accent);
    padding: 1rem 1.5rem; margin: 1.75em 0;
    color: var(--pub-text-muted); font-style: italic;
    background: var(--pub-accent-subtle); border-radius: 0 var(--pub-radius-md) var(--pub-radius-md) 0;
}
.pub-prose img { max-width: 100%; border-radius: var(--pub-radius-lg); margin: 1.75em 0; }
.pub-prose hr { border: none; border-top: 1px solid var(--pub-border); margin: 3em 0; }
.pub-prose table {
    width: 100%; font-size: .875rem; margin: 1rem 0 1.5rem;
    border-collapse: collapse;
}
.pub-prose thead tr { border-bottom: 1px solid var(--pub-border); }
.pub-prose th {
    text-align: left; padding: .5rem .75rem;
    color: var(--pub-text); font-weight: 600;
}
.pub-prose tbody { color: var(--pub-text-secondary); }
.pub-prose tbody tr { border-bottom: 1px solid var(--pub-border); }
.pub-prose td { padding: .5rem .75rem; }
.pub-prose .pub-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Legacy prose compat */
.prose-custom h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--pub-text); letter-spacing: -0.03em; }
.prose-custom h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 1rem; color: var(--pub-text); }
.prose-custom p { margin-bottom: 1rem; line-height: 1.75; color: var(--pub-text-secondary); }
.prose-custom a { color: var(--pub-accent); }

/* ===== DOC / LEGAL PAGE UTILITIES ===== */
.pub-doc-header-border { border-bottom: 1px solid var(--pub-border); }
.pub-link-accent { color: var(--pub-accent); }
.pub-doc-title { color: var(--pub-text); letter-spacing: -0.02em; }
.pub-doc-date { color: var(--pub-text-muted); }
.pub-table-header-row { border-bottom: 1px solid var(--pub-border); }
.pub-table-th { color: var(--pub-text-muted); }
.pub-table-td { color: var(--pub-text-secondary); }

/* ===== EMPTY STATE ===== */
.pub-empty-state {
    text-align: center; padding: 4rem 1rem; color: var(--pub-text-muted);
}
.pub-empty-state i { font-size: 3rem; margin-bottom: 1.25rem; opacity: 0.3; }
.pub-empty-state h3 { font-size: 1.25rem; font-weight: 600; color: var(--pub-text); margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.pub-empty-state p { font-size: 0.9375rem; max-width: 400px; margin: 0 auto; }

/* ===== MOBILE MENU ===== */
.pub-mobile-overlay {
    position: fixed; inset: 0; z-index: var(--pub-z-overlay);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.pub-mobile-overlay.active { opacity: 1; pointer-events: auto; }
.pub-mobile-panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 85vw;
    z-index: var(--pub-z-panel);
    background: var(--pub-bg-card-solid);
    border-left: 1px solid var(--pub-border);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.08);
}
.pub-mobile-panel.active { transform: translateX(0); }
.dark .pub-mobile-panel { box-shadow: -12px 0 48px rgba(0, 0, 0, 0.3); }
.pub-mobile-close-btn { color: var(--pub-text-muted); }

/* ===== MARKET8 LAYOUT CLASSES ===== */
/* Container — market8: .pub-container (max-width: 1200px, centered) */
.pub-container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; overflow-wrap: break-word; }

/* Section — market8: .pub-section (padding: 5rem 1.5rem) */
.pub-section { padding: 5rem 1.5rem; }
.pub-section--alt { background: var(--pub-bg-card); }
.dark .pub-section--alt { background: var(--pub-bg-alt); }

/* Hero inner grid — market8: .pub-hero__inner (2-col, gap 4rem) */
.pub-hero__inner {
    max-width: 1200px; margin: 0 auto;
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}

/* Hero elements — market8 exact */
.pub-hero__title {
    font-size: 3.25rem; font-weight: 800;
    letter-spacing: -.04em; line-height: 1.1;
    margin-bottom: 1.25rem;
    background: var(--pub-gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pub-hero__desc {
    font-size: 1.125rem; color: rgba(255,255,255,.82);
    margin-bottom: 1.5rem; line-height: 1.75;
}
.pub-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 2rem; margin-bottom: 2rem; }
.pub-hero__visual { /* right column placeholder */ }

/* Hero preview — coluna direita do hero */
.pub-hero-preview { display: block; }

/* Social proof — avaliações abaixo do CTA */
.pub-social-proof {
    display: flex; align-items: center; gap: 1rem;
    margin-top: .5rem;
}
.pub-social-proof-avatars {
    display: flex;
}
.pub-social-proof-avatars .pub-avatar + .pub-avatar {
    margin-left: -.5rem;
}
.pub-social-proof-stars {
    display: flex; align-items: center; gap: 2px;
    margin-bottom: .25rem;
}
.pub-social-proof-text {
    font-size: .75rem;
    color: rgba(255,255,255,.6);
}

/* Feature grid — market8: .feat-grid (3-col, gap 1.5rem) */
.feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

/* Feature card — market8: .feat-card */
.feat-card {
    background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    border-radius: 14px; padding: 1.75rem;
    transition: all .2s; text-decoration: none; display: block;
}
.feat-card:hover {
    border-color: var(--pub-accent);
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.feat-card__icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 1.125rem;
}
.feat-card__title {
    font-size: 1rem; font-weight: 700;
    color: var(--pub-text); margin-bottom: .5rem;
}
.feat-card__desc {
    font-size: .875rem; color: var(--pub-text-muted); line-height: 1.65;
}
.feat-card:hover .feat-card__icon { transform: scale(1.1); }
.feat-card__icon { transition: transform var(--pub-transition-fast); }

/* Dark mode feat-card */
.dark .feat-card {
    background: var(--pub-bg-card);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* Stats grid — market8: .stats-grid (4-col, border, rounded) */
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--pub-border);
    border: 1px solid var(--pub-border);
    border-radius: 16px; overflow: hidden;
}
.stats-item { background: var(--pub-bg-card); padding: 2.5rem 2rem; text-align: center; }
.dark .stats-item { background: var(--pub-bg-card-solid); }
.stats-item__value {
    font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em;
    color: var(--pub-accent); line-height: 1; margin-bottom: .5rem;
}
.stats-item__label { font-size: .875rem; color: var(--pub-text-muted); font-weight: 500; }

/* Diferenciais section — base layout (before media queries) */
.pub-about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem;
    align-items: flex-start;
}
.idx-diff-title {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem;
    letter-spacing: -.02em; line-height: 1.2; color: var(--pub-text);
}
.idx-diff-desc {
    font-size: .875rem; margin-bottom: 2.5rem;
    color: var(--pub-text-secondary); line-height: 1.7;
}
.idx-diff-list {
    display: flex; flex-direction: column; gap: 1.5rem;
}
.idx-diff-item {
    display: flex; align-items: flex-start; gap: 1rem;
}
.idx-diff-item .pub-icon-box { flex-shrink: 0; }
.idx-diff-item h3 {
    font-weight: 700; font-size: .875rem; margin-bottom: .375rem;
    letter-spacing: -.01em; color: var(--pub-text);
}
.idx-diff-item p {
    font-size: .875rem; line-height: 1.65; color: var(--pub-text-secondary);
}
.idx-badges-grid .feat-card {
    text-align: center; min-width: 0;
}
.idx-badges-grid .feat-card .pub-icon-box {
    margin: 0 auto 1.25rem;
}
.idx-badges-grid .feat-card h4 {
    font-weight: 700; font-size: .875rem; margin-bottom: .375rem;
    color: var(--pub-text);
}
.idx-badges-grid .feat-card p {
    font-size: .75rem; color: var(--pub-text-muted);
}

/* CTA — market8: .pub-cta */
.pub-cta__title {
    font-size: 2.25rem; font-weight: 800;
    letter-spacing: -.03em; margin-bottom: .875rem;
    background: var(--pub-gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pub-cta__sub {
    font-size: 1.0625rem; color: rgba(255,255,255,.82); margin-bottom: 2.25rem;
    max-width: 36rem; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.pub-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.pub-cta__actions .pub-btn-primary,
.pub-cta__actions .pub-btn-ghost-light {
    -webkit-text-fill-color: #fff;
    color: #fff;
}

/* Index — Architecture grid (3-col) */
/* Badges grid (Diferenciais section) — always 2x2, visible on all screens */
.idx-badges-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}

/* Feature tags inside module cards */
.feat-card__tags {
    display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .875rem;
}
.feat-card__tag {
    display: inline-flex; align-items: center;
    padding: .1875rem .5rem; border-radius: var(--pub-radius-full);
    font-size: .625rem; font-weight: 600; letter-spacing: .01em;
    background: var(--pub-accent-subtle); color: var(--pub-accent);
    border: 1px solid transparent;
    transition: all var(--pub-transition-fast);
}
.dark .feat-card__tag {
    background: rgba(167, 139, 250, 0.1); color: #c4b5fd;
}

/* "Explorar" link inside feat-card */
.feat-card__explore {
    margin-top: 1rem; font-size: .75rem; font-weight: 600;
    display: flex; align-items: center; gap: .375rem;
    color: var(--pub-accent); opacity: 0;
    transition: opacity var(--pub-transition-fast);
}
.feat-card:hover .feat-card__explore,
.group:hover .feat-card__explore { opacity: 1; }

/* Stats section compact padding */
.pub-section-compact { padding: 4rem 1.5rem; }

/* Score bar value color classes */
.pub-score-color-green { color: #10b981; }
.pub-score-color-purple { color: #8b5cf6; }
.pub-score-color-blue { color: #3b82f6; }
.pub-score-color-amber { color: #f59e0b; }
.pub-score-color-pink { color: #ec4899; }
.pub-score-color-cyan { color: #06b6d4; }
.pub-score-color-orange { color: #f97316; }
.pub-score-color-teal { color: #14b8a6; }
.pub-score-color-violet { color: #a855f7; }
.pub-score-color-red { color: #ef4444; }
.pub-score-color-slate { color: #64748b; }

.dark .pub-score-color-green { color: #34d399; }
.dark .pub-score-color-purple { color: #c4b5fd; }
.dark .pub-score-color-blue { color: #93c5fd; }
.dark .pub-score-color-amber { color: #fcd34d; }
.dark .pub-score-color-pink { color: #f9a8d4; }
.dark .pub-score-color-cyan { color: #67e8f9; }
.dark .pub-score-color-orange { color: #fdba74; }
.dark .pub-score-color-teal { color: #5eead4; }
.dark .pub-score-color-violet { color: #c4b5fd; }
.dark .pub-score-color-red { color: #fca5a5; }
.dark .pub-score-color-slate { color: #94a3b8; }

.idx-arch-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

/* Index — Score bars */
.idx-score-grid {
    max-width: 48rem; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem;
}
.idx-score-item { padding: .25rem 0; }
.idx-score-bar {
    height: 8px; border-radius: 4px;
    background: var(--pub-bg-alt);
    overflow: hidden;
}
.dark .idx-score-bar { background: rgba(255,255,255,.08); }
.idx-score-fill {
    height: 100%; border-radius: 4px;
    width: 0; transition: width .8s cubic-bezier(.22,1,.36,1);
}

/* Index — CTA two-column */
.idx-cta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    align-items: center; text-align: left;
}
.idx-cta-left .pub-cta__sub { max-width: none; }
.idx-cta-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px; padding: 2rem;
}
.idx-cta-label {
    font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em;
    font-weight: 600; color: rgba(255,255,255,.5); margin-bottom: 1.25rem;
}
.idx-cta-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .875rem;
}
.idx-cta-list li {
    display: flex; align-items: center; gap: .75rem;
    font-size: .875rem; color: rgba(255,255,255,.85); font-weight: 500;
}
.idx-cta-list li i {
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(16,185,129,.2); color: #34d399;
    display: flex; align-items: center; justify-content: center;
    font-size: .625rem; flex-shrink: 0;
}

/* Footer grid — 5 colunas: Brand, Módulos, Plataforma, Recursos, Links */
.pub-footer__grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.6fr 2fr 1fr 1fr 1fr;
    gap: 2rem; padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 1.75rem;
}
.pub-footer__modules {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem;
}
.pub-footer__modules ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .25rem;
}
.pub-footer__brand { color: #fff; font-size: .9375rem; font-weight: 700; margin-bottom: .75rem; }
.pub-footer__desc { font-size: .8125rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 300px; }
.pub-footer__social {
    display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap;
}
.pub-footer__social-link {
    display: flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: .375rem;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
    font-size: .875rem; transition: all 150ms ease;
}
.pub-footer__social-link:hover {
    background: rgba(255,255,255,.15); color: #fff; transform: translateY(-1px);
}
.pub-footer__contact {
    display: flex; flex-direction: column; gap: .375rem; margin-top: .75rem;
}
.pub-footer__contact-item {
    display: flex; align-items: center; gap: .5rem;
    font-size: .75rem; color: rgba(255,255,255,.5); transition: color 150ms ease;
}
.pub-footer__contact-item:hover { color: rgba(255,255,255,.8); }
.pub-footer__contact-item i { font-size: .625rem; width: .75rem; text-align: center; }
.pub-footer__copy {
    max-width: 1200px; margin: 0 auto;
    font-size: .8125rem; text-align: center; color: rgba(255,255,255,.45);
}

/* Nav inner — market8: .pub-nav__inner */
.pub-nav__inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1.5rem; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.pub-nav__logo {
    display: flex; align-items: center; gap: .625rem; text-decoration: none;
}
.pub-nav__logo-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem; flex-shrink: 0;
    background: var(--pub-gradient-1);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}
.pub-nav__logo-name {
    font-size: 1.125rem; font-weight: 700;
    color: var(--pub-text); letter-spacing: -.02em;
}
.pub-nav__links {
    display: flex; align-items: center; gap: 1.75rem; list-style: none;
}
.pub-nav__links a {
    font-size: .875rem; font-weight: 500;
    color: var(--pub-text-secondary); text-decoration: none;
    transition: color .15s;
}
.pub-nav__links a:hover { color: var(--pub-accent); }
.pub-nav__links a.active { color: var(--pub-accent); font-weight: 600; }
.pub-nav__actions {
    display: flex; align-items: center; gap: .75rem;
}

/* Hamburger — market8: .pub-nav__hamburger */
.pub-nav__hamburger {
    display: none; background: none;
    border: 1.5px solid var(--pub-border);
    border-radius: 8px; font-size: 1.125rem;
    color: var(--pub-text-secondary); cursor: pointer;
    padding: .4375rem .625rem; transition: all .15s; line-height: 1;
}
.pub-nav__hamburger:hover {
    border-color: var(--pub-accent); color: var(--pub-accent);
}

/* Mobile menu — market8: .pub-nav__mobile (slide down) */
.pub-nav__mobile {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .25s ease;
    background: var(--pub-bg-card-solid);
    border-top: 1px solid var(--pub-border); overflow: hidden;
}
.pub-nav__mobile.is-open { grid-template-rows: 1fr; }
.pub-nav__mobile__inner { overflow: hidden; padding: 0; }
.pub-nav__mobile.is-open .pub-nav__mobile__inner { padding: .75rem 1.25rem 1rem; }
.pub-nav__mobile__links {
    display: flex; flex-direction: column; gap: .125rem; margin-bottom: .75rem;
}
.pub-nav__mobile__links a {
    display: flex; align-items: center; gap: .625rem;
    padding: .625rem .75rem; font-size: .9rem; font-weight: 500;
    color: var(--pub-text-secondary); text-decoration: none;
    border-radius: 8px; transition: background .12s, color .12s;
}
.pub-nav__mobile__links a:hover,
.pub-nav__mobile__links a.active {
    background: color-mix(in srgb, var(--pub-accent) 8%, transparent);
    color: var(--pub-accent);
}
.pub-nav__mobile__links a i {
    width: 1.125rem; text-align: center; font-size: .875rem; opacity: .7; flex-shrink: 0;
}
.pub-nav__mobile__links a:hover i,
.pub-nav__mobile__links a.active i { opacity: 1; }
.pub-nav__mobile__sep {
    height: 1px; background: var(--pub-border); margin: .375rem 0 .75rem;
}
.pub-nav__mobile__actions {
    display: flex; flex-wrap: wrap; gap: .625rem;
}
.pub-nav__mobile__actions .pub-btn-primary,
.pub-nav__mobile__actions .pub-btn-ghost { flex: 1; justify-content: center; min-width: 0; }

/* ===== COMPAT CLASSES ===== */
.public-card {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-2xl);
}

/* Backward compat: .light class maps to default (light mode is now default) */
/* No overrides needed — light is the default */

/* ===== RESPONSIVE — market8 exact breakpoints: 900px, 600px, 400px ===== */
@media (max-width: 900px) {
    .pub-nav__links, .pub-nav__actions { display: none; }
    .pub-nav__hamburger { display: block; }
    .pub-section-header { margin-bottom: 2.5rem; }
    .pub-section-header p { max-width: 100%; }
    .pub-hero-dark { padding: 4rem 1.25rem 3rem; }
    .pub-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
    .pub-hero__visual { display: none; }
    .pub-hero-preview { display: none; }
    .pub-hero__title { font-size: 2.25rem; }
    .pub-page-hero { padding: 3.5rem 1.25rem; }
    .pub-page-hero h1 { font-size: 2.25rem; }
    .pub-section { padding: 3.5rem 1.25rem; }
    .pub-section-header h2 { font-size: 2rem; }
    .feat-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .pub-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .pub-footer__modules { grid-template-columns: 1fr 1fr; }
    .pub-contact-grid { grid-template-columns: 1fr; }
    .pub-comparison-grid { grid-template-columns: 1fr !important; }
    .pub-detail-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .pub-grid-2col { grid-template-columns: 1fr !important; }
    .demo-info-grid { grid-template-columns: 1fr !important; }
    .pub-about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .idx-badges-grid { grid-template-columns: 1fr 1fr; }
    .pub-stats-bar { grid-template-columns: repeat(2, 1fr) !important; }
    .pub-stats-bar > div:not(:last-child)::after { display: none; }
    .pub-stats-bar > div:nth-child(odd):not(:nth-last-child(-n+1))::after { display: block; }
    .pub-cta__sub { max-width: 100%; }
    .idx-arch-grid { grid-template-columns: 1fr 1fr; }
    .idx-score-grid { grid-template-columns: 1fr; }
    .idx-cta-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .rm-cost-summary { grid-template-columns: 1fr 1fr !important; }
    .idx-cta-left .pub-cta__title { text-align: center !important; }
    .idx-cta-left .pub-cta__sub { text-align: center !important; }
    .idx-cta-left .pub-cta__actions { justify-content: center !important; }
    .sup-layout { grid-template-columns: 1fr; }
    .sup-sidebar { order: -1; }
    .docs-layout { grid-template-columns: 1fr; }
    .docs-nav { position: static; display: flex; gap: .5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--pub-border); padding-bottom: .75rem; margin-bottom: 1.5rem; }
    .docs-nav a { white-space: nowrap; padding: .5rem .875rem; border-radius: 8px; font-size: .8125rem; }
}

@media (max-width: 600px) {
    .pub-hero-dark { padding: 3rem 1rem 2.5rem; }
    .pub-hero__title { font-size: 1.875rem; }
    .pub-hero__desc { font-size: 1rem; line-height: 1.7; }
    .pub-hero__actions { flex-direction: column; gap: .75rem; }
    .pub-hero__actions .pub-btn-primary,
    .pub-hero__actions .pub-btn-ghost-light { width: 100%; justify-content: center; }
    .pub-page-hero { padding: 3rem 1rem 2.5rem; }
    .pub-page-hero h1 { font-size: 1.875rem; }
    .pub-page-hero p { font-size: 1rem; }
    .pub-section { padding: 2.5rem 1rem; }
    .pub-section-header { margin-bottom: 2rem; }
    .pub-section-header h2 { font-size: 1.5rem; line-height: 1.25; }
    .pub-section-header p { font-size: .9375rem; line-height: 1.65; }
    .pub-stat-value { font-size: 1.75rem; }
    .pub-stats-bar > div { padding: 1.25rem 0.75rem; }
    .pub-btn-lg { padding: .625rem 1.125rem; font-size: .875rem; }
    .pub-icon-box { width: 40px; height: 40px; font-size: 1rem; }
    .feat-grid { grid-template-columns: 1fr; gap: 1rem; }
    .feat-card { padding: 1.25rem; }
    .feat-card__title { font-size: .8125rem; }
    .feat-card__desc { font-size: .8125rem; line-height: 1.55; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .pub-card:hover, .feat-card:hover { transform: none; }
    .pub-blog-card:hover { transform: none; }
    .pub-testimonial-card:hover { transform: none; }
    .pub-kb-category-card:hover { transform: none; }
    .pub-cta-dark { padding: 3rem 1rem; }
    .pub-cta__title { font-size: 1.625rem; }
    .pub-cta__sub { font-size: .9375rem; }
    .pub-cta__actions { flex-direction: column; align-items: center; }

    /* Diferenciais — mobile layout */
    .pub-about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .idx-diff-title { font-size: 1.375rem; line-height: 1.25; text-align: center; }
    .idx-diff-desc { text-align: center; margin-bottom: 2rem; }
    .pub-about-grid .pub-pill { margin: 0 auto .75rem; }
    .idx-diff-list { gap: 1.25rem; }
    .idx-diff-item h3 { font-size: .8125rem; }
    .idx-diff-item p { font-size: .8125rem; line-height: 1.55; }

    /* Badge cards — horizontal compact rows on mobile */
    .idx-badges-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .idx-badges-grid .feat-card {
        padding: 1rem; display: flex; flex-direction: column; align-items: center;
        gap: .5rem; text-align: center;
    }
    .idx-badges-grid .feat-card .pub-icon-box { margin: 0 0 .25rem; width: 36px; height: 36px; font-size: .875rem; }
    .idx-badges-grid .feat-card h4 { font-size: .75rem; margin-bottom: .125rem; }
    .idx-badges-grid .feat-card p { font-size: .6875rem; }

    /* Architecture grid */
    .idx-arch-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Score grid */
    .idx-score-grid { gap: .125rem; }

    /* Stats bar */
    .pub-stats-bar { gap: 0; }

    /* CTA section */
    .idx-cta-grid { grid-template-columns: 1fr; gap: 2rem; }
    .idx-cta-left .pub-cta__actions { flex-direction: column; align-items: center; }
    .pub-cta__actions .pub-btn-primary,
    .pub-cta__actions .pub-btn-ghost-light { width: 100%; justify-content: center; }

    /* Footer */
    .pub-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pub-footer { padding: 2.5rem 1rem 1.5rem; }
    .pub-footer__modules { grid-template-columns: 1fr 1fr; }

    /* General components */
    .pub-accordion-trigger { padding: 1rem 1.125rem; font-size: 0.875rem; }
    .pub-accordion-inner { padding: 0 1.125rem 1rem; font-size: 0.875rem; }
    .pub-tabs { gap: .125rem; margin-bottom: 2rem; }
    .pub-tab { padding: .625rem 1rem; font-size: .8125rem; }

    /* Integrations mobile: icons only, better grid */
    .pub-integration-item span { display: none; }
    .pub-integration-item i { font-size: 1.5rem; }

    /* Social proof mobile — 3 rows: avatars, stars, text */
    .pub-social-proof { flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
    .pub-social-proof-avatars { justify-content: center; flex-direction: row; }
    .pub-social-proof > div:not(.pub-social-proof-avatars) { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
    .pub-social-proof-stars { justify-content: center; }
    .pub-social-proof-text { text-align: center; }

    /* Numbers grid */
    .stats-item { padding: 1.5rem 1rem; }
    .stats-item__value { font-size: 1.875rem; }
    .stats-item__label { font-size: .75rem; }

    /* Testimonials */
    .pub-home-testimonials { grid-template-columns: 1fr; gap: 1rem; }
    .pub-testimonial-card { padding: 1.25rem; }

    /* Horizontal cards — mobile stacking */
    .pub-card-h { flex-direction: column; gap: .75rem; padding: 1.25rem; }

    /* Support page — compact on mobile */
    .sup-form-card, .sup-info-card { padding: 1.25rem; }
    .sup-tabs { flex-wrap: wrap; gap: .5rem; }
    .sup-tab { font-size: .75rem; padding: .5rem .75rem; }

    /* Form inputs — prevent iOS zoom on focus */
    .pub-input, select.pub-input, textarea.pub-input { font-size: 16px; }

    /* FAQ accordion — compact on mobile */
    .pub-accordion-item { padding: 0; }
}
@media (max-width: 400px) {
    .pub-hero-dark { padding: 2.5rem .875rem 2rem; }
    .pub-hero__title { font-size: 1.5rem; letter-spacing: -.02em; }
    .pub-hero__desc { font-size: .875rem; }
    .pub-page-hero { padding: 2.5rem .875rem 2rem; }
    .pub-page-hero h1 { font-size: 1.5rem; letter-spacing: -.02em; }
    .pub-page-hero p { font-size: .875rem; }
    .pub-section { padding: 2rem .875rem; }
    .pub-section-header h2 { font-size: 1.375rem; }
    .pub-section-header p { font-size: .875rem; }
    .pub-btn-primary, .pub-btn-ghost, .pub-btn-ghost-light { padding: .625rem 1.125rem; font-size: .8125rem; }
    .pub-footer { padding: 2.5rem 1rem 1.5rem; }
    .pub-nav__logo-name { font-size: .9375rem; }
    .pub-icon-box { width: 36px; height: 36px; font-size: .875rem; border-radius: 8px; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-item { padding: 1.25rem .75rem; }
    .stats-item__value { font-size: 1.625rem; }
    .stats-item__label { font-size: .6875rem; }
    .pub-cta__title { font-size: 1.25rem; }
    .idx-cta-card { padding: 1.25rem; }
    .idx-cta-list li { font-size: .8125rem; }
    .pub-stats-bar { grid-template-columns: 1fr 1fr !important; }
    .pub-stats-bar > div { padding: 1rem .5rem; }
    .idx-badges-grid { grid-template-columns: 1fr 1fr; gap: .625rem; }
    .idx-badges-grid .feat-card { padding: .875rem; }
    .idx-badges-grid .feat-card .pub-icon-box { width: 32px; height: 32px; font-size: .75rem; }
    .idx-badges-grid h4 { font-size: .6875rem; }
    .idx-badges-grid p { font-size: .625rem; }
    .idx-diff-title { font-size: 1.25rem; }
    .idx-diff-item h3 { font-size: .75rem; }
    .idx-diff-item p { font-size: .75rem; }
    .feat-card { padding: 1rem; }
    .feat-card__title { font-size: .75rem; }
    .feat-card__desc { font-size: .75rem; }
    .feat-card__tags { gap: .25rem; margin-top: .625rem; }
    .feat-card__tag { font-size: .5625rem; padding: .125rem .375rem; }
    .rm-cost-summary { grid-template-columns: 1fr !important; }
    .demo-info-grid { grid-template-columns: 1fr !important; }
}

/* ===== PAGE-SPECIFIC GRIDS ===== */
.pub-comparison-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pub-detail-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pub-grid-2col { display: grid; grid-template-columns: 1fr 1fr; }
.demo-info-grid { display: grid; grid-template-columns: 1fr 1fr; }

.pub-contact-grid {
    display: grid; grid-template-columns: 3fr 2fr; gap: 2.5rem;
}

.pub-response-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem;
}

/* ===== SITEMAP ===== */
.pub-sitemap-card {
    padding: 2rem; border-radius: var(--pub-radius-card);
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
}
.pub-sitemap-card-full { grid-column: 1 / -1; }
.pub-sitemap-header {
    display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.pub-sitemap-icon {
    width: 2.25rem; height: 2.25rem; border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: .875rem; background: var(--pub-accent-glow); color: var(--pub-accent);
    flex-shrink: 0;
}
.pub-sitemap-title {
    font-size: 1.125rem; font-weight: 700; color: var(--pub-text); margin: 0;
}
.pub-sitemap-count {
    margin-left: auto; font-size: .75rem; font-weight: 600;
    padding: .15rem .5rem; border-radius: 9999px;
    background: var(--pub-accent-subtle); color: var(--pub-accent);
}
.pub-sitemap-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .25rem;
}
.pub-sitemap-list-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .25rem .5rem;
}
.pub-sitemap-link {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .75rem; border-radius: var(--pub-radius-sm, .375rem);
    font-size: .875rem; color: var(--pub-text-secondary);
    text-decoration: none; transition: all var(--pub-transition-fast);
}
.pub-sitemap-link:hover {
    background: var(--pub-bg-hover, rgba(99, 102, 241, 0.06));
    color: var(--pub-accent);
}
.pub-sitemap-chevron {
    font-size: .5rem; color: var(--pub-accent); flex-shrink: 0;
}

/* ===== CODE BLOCKS ===== */
.pub-code-block {
    padding: 1rem; border-radius: .5rem;
    background: #1e293b; color: #e2e8f0;
    font-size: .8125rem; overflow-x: auto; line-height: 1.7;
    border: 1px solid rgba(148, 163, 184, 0.15);
    margin-bottom: 1.25rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    white-space: pre; word-wrap: normal;
}
.dark .pub-code-block {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(148, 163, 184, 0.1);
}
.pub-code-block:last-child { margin-bottom: 0; }
.pub-code-label {
    font-size: .75rem; font-weight: 600;
    color: var(--pub-text-muted); margin-bottom: .5rem;
}

/* ===== UTILITY GRIDS — reusable layouts ===== */
.pub-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.pub-grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.pub-grid-auto-xs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.pub-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pub-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pub-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* API docs / method badges */
.pub-method-badge {
    display: inline-block; padding: .125rem .5rem; border-radius: .25rem;
    font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    color: #fff;
}
.pub-method-get { background: var(--pub-method-get, #16a34a); }
.pub-method-post { background: var(--pub-method-post, #2563eb); }
.pub-method-put { background: var(--pub-method-put, #ea580c); }
.pub-method-patch { background: var(--pub-method-patch, #d97706); }
.pub-method-delete { background: var(--pub-method-delete, #dc2626); }

/* Roadmap-specific layouts */
.rm-timeline-card {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); padding: 1.5rem;
    box-shadow: var(--pub-card-shadow);
}
.rm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; }
.rm-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .5rem; }
.rm-progress-bar {
    width: 100%; height: .375rem; border-radius: 9999px;
    background: var(--pub-bg-alt); overflow: hidden;
}
.rm-progress-fill {
    height: 100%; border-radius: 9999px;
    background: linear-gradient(90deg, var(--pub-accent), #a855f7);
    transition: width var(--pub-transition-normal);
}

/* Affiliate-specific grids */
.aff-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem; }
.aff-tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* Pricing badge */
.pub-badge-success {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .25rem .75rem; border-radius: var(--pub-radius-full);
    background: rgba(16, 163, 80, .1); color: var(--pub-success, #10b981);
    font-size: .75rem; font-weight: 600;
}

/* Responsive grid overrides */
@media (max-width: 900px) {
    .pub-grid-3 { grid-template-columns: 1fr 1fr; }
    .pub-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .pub-grid-2 { grid-template-columns: 1fr; }
    .pub-grid-3 { grid-template-columns: 1fr; }
    .pub-grid-4 { grid-template-columns: 1fr 1fr; }
    .pub-grid-auto { grid-template-columns: 1fr; }
    .rm-stat-grid { grid-template-columns: 1fr 1fr; }
    .rm-feature-grid { grid-template-columns: 1fr 1fr; }
    .aff-stat-grid { grid-template-columns: 1fr 1fr; }
    .aff-tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
    .pub-grid-4 { grid-template-columns: 1fr; }
    .rm-stat-grid { grid-template-columns: 1fr; }
}

/* ===== INTEGRATIONS ROW ===== */
.pub-integrations-label {
    text-align: center; font-size: .75rem; font-weight: 600;
    margin-bottom: 2.5rem; text-transform: uppercase;
    letter-spacing: .1em; color: var(--pub-text-muted);
}
.pub-integrations-row {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 2.5rem;
}
.pub-integration-item {
    display: flex; align-items: center; gap: .625rem;
    transition: color var(--pub-transition-fast);
}
.pub-integration-item i { font-size: 1.25rem; }
.pub-integration-item span { font-size: .75rem; font-weight: 600; }

/* ===== SCORE BAR ===== */
.pub-score-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .5rem;
}
.pub-score-label { font-size: .8125rem; font-weight: 600; color: var(--pub-text); }
.pub-score-value { font-size: .75rem; font-weight: 700; }

/* ===== PUBLIC TABS — market8 style ===== */
.pub-tabs {
    display: flex; align-items: center; gap: .25rem;
    border-bottom: 1px solid var(--pub-border);
    margin-bottom: 2.5rem; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pub-tabs::-webkit-scrollbar { display: none; }
.pub-tab {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.25rem; font-size: .875rem; font-weight: 500;
    color: var(--pub-text-muted); background: none; border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer; white-space: nowrap;
    transition: color var(--pub-transition-fast), border-color var(--pub-transition-fast);
    margin-bottom: -1px;
}
.pub-tab:hover { color: var(--pub-text); }
.pub-tab.active {
    color: var(--pub-accent); border-bottom-color: var(--pub-accent); font-weight: 600;
}
.pub-tab i { font-size: .75rem; opacity: .7; }
.pub-tab.active i { opacity: 1; }
.pub-tab-panel { display: none; }
.pub-tab-panel.active { display: block; }

/* Tab panel fade-in */
.pub-tab-panel.active {
    animation: pub-tab-fade .2s ease;
}
@keyframes pub-tab-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SUPPORT PAGE — Two-Column Layout (market8 style) ===== */
.sup-layout {
    display: grid; grid-template-columns: 1fr 340px; gap: 2rem;
    max-width: 1100px; margin: 0 auto; align-items: start;
}
.sup-form-card {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); padding: 2rem;
    box-shadow: var(--pub-card-shadow);
}
.sup-form-card h3 {
    font-size: 1.125rem; font-weight: 700; color: var(--pub-text);
    margin-bottom: 1.5rem; letter-spacing: -0.01em;
}
.sup-form-group {
    margin-bottom: 1.25rem;
}
.sup-form-group:last-of-type { margin-bottom: 1.5rem; }
.sup-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sup-info-card {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); padding: 1.5rem;
    box-shadow: var(--pub-card-shadow);
}
.sup-info-card h4 {
    font-size: .875rem; font-weight: 700; color: var(--pub-text);
    margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem;
}
.sup-info-card h4 i { color: var(--pub-accent); font-size: .75rem; }
.sup-info-card p, .sup-info-card li {
    font-size: .8125rem; color: var(--pub-text-secondary); line-height: 1.6;
}
.sup-info-card ul { list-style: none; padding: 0; margin: 0; }
.sup-info-card li { padding: .375rem 0; display: flex; align-items: center; gap: .5rem; }
.sup-info-card li i { color: var(--pub-accent); font-size: .625rem; }
.sup-info-card a {
    color: var(--pub-accent); text-decoration: none; font-weight: 500;
    font-size: .8125rem;
}
.sup-info-card a:hover { text-decoration: underline; }
.sup-tabs {
    display: flex; gap: .25rem; margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--pub-border); padding-bottom: 0;
}
.sup-tab {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .625rem 1rem; font-size: .8125rem; font-weight: 500;
    color: var(--pub-text-muted); background: none; border: none;
    border-bottom: 2px solid transparent; cursor: pointer;
    transition: color var(--pub-transition-fast), border-color var(--pub-transition-fast);
    margin-bottom: -1px; white-space: nowrap;
}
.sup-tab:hover { color: var(--pub-text); }
.sup-tab.active { color: var(--pub-accent); border-bottom-color: var(--pub-accent); font-weight: 600; }
.sup-tab i { font-size: .6875rem; opacity: .7; }
.sup-tab.active i { opacity: 1; }
.sup-tab-panel { display: none; }
.sup-tab-panel.active { display: block; animation: pub-tab-fade .2s ease; }
.sup-sla-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.sup-sla-item {
    padding: .75rem; background: var(--pub-bg-alt); border-radius: var(--pub-radius-md);
    text-align: center;
}
.sup-sla-item strong {
    display: block; font-size: .9375rem; font-weight: 700; color: var(--pub-text);
}
.sup-sla-item span {
    font-size: .6875rem; color: var(--pub-text-muted); text-transform: uppercase;
    letter-spacing: .05em;
}
/* ===== TESTIMONIALS PAGE ===== */
.pub-testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;
}
.pub-testimonial-card {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); padding: 1.5rem;
    box-shadow: var(--pub-card-shadow); display: flex; flex-direction: column; gap: .875rem;
    position: relative; transition: box-shadow var(--pub-transition-fast), transform var(--pub-transition-fast);
}
.pub-testimonial-card:hover { box-shadow: var(--pub-card-shadow-hover, 0 8px 24px rgba(0,0,0,.08)); transform: translateY(-2px); }
.pub-testimonial-featured { border-color: var(--pub-accent); }
.pub-testimonial-badge {
    position: absolute; top: .75rem; right: .75rem;
    font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--pub-accent); display: flex; align-items: center; gap: .25rem;
}
.pub-testimonial-stars { color: var(--pub-warning); font-size: .75rem; display: flex; gap: .125rem; }
.pub-testimonial-content {
    font-size: .875rem; color: var(--pub-text-secondary); line-height: 1.7; flex: 1;
    margin: 0; padding: 0; border: none; font-style: normal;
}
.pub-testimonial-author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.pub-testimonial-avatar, .pub-testimonial-avatar-placeholder {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
}
.pub-testimonial-avatar-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--pub-bg-alt); color: var(--pub-text-muted); font-weight: 700; font-size: .875rem;
}
.pub-testimonial-name { font-size: .8125rem; font-weight: 600; color: var(--pub-text); }
.pub-testimonial-role { font-size: .75rem; color: var(--pub-text-muted); }
.pub-btn-ghost-active { background: var(--pub-accent) !important; color: var(--pub-text-on-dark) !important; }
@media (max-width: 479px) {
    .pub-testimonials-grid { grid-template-columns: 1fr; }
    .pub-response-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .pub-stats-bar { grid-template-columns: 1fr 1fr; }
}

/* ===== HOME TESTIMONIALS SECTION ===== */
.pub-home-testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
@media (max-width: 479px) {
    .pub-home-testimonials { grid-template-columns: 1fr; }
}

/* ===== DOCS PAGE — Two-Column Sticky Sidebar (market8 style) ===== */
.docs-layout {
    display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem;
    max-width: 1100px; margin: 0 auto; align-items: start;
}
.docs-nav {
    position: sticky; top: 5rem;
    display: flex; flex-direction: column; gap: .25rem;
}
.docs-nav-link {
    display: flex; align-items: center; gap: .625rem;
    padding: .625rem .875rem; border-radius: var(--pub-radius-md);
    font-size: .8125rem; font-weight: 500; color: var(--pub-text-secondary);
    text-decoration: none; transition: all var(--pub-transition-fast);
    border: 1px solid transparent;
}
.docs-nav-link:hover { background: var(--pub-bg-alt); color: var(--pub-text); }
.docs-nav-link.active {
    background: var(--pub-accent-glow); color: var(--pub-accent);
    border-color: rgba(236, 72, 153, 0.15); font-weight: 600;
}
.docs-nav-link i { font-size: .6875rem; opacity: .65; width: 1rem; text-align: center; }
.docs-nav-link.active i { opacity: 1; }
.docs-content { display: flex; flex-direction: column; gap: 2rem; overflow-wrap: break-word; word-break: break-word; }
.docs-section-card {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); padding: 2rem;
    box-shadow: var(--pub-card-shadow); scroll-margin-top: 5rem;
}
.docs-section-card h2 {
    font-size: 1.25rem; font-weight: 700; color: var(--pub-text);
    margin-bottom: .5rem; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: .625rem;
}
.docs-section-card h2 i { color: var(--pub-accent); font-size: 1rem; }
.docs-section-badge {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .25rem .625rem; border-radius: var(--pub-radius-full);
    font-size: .6875rem; font-weight: 600;
    background: var(--pub-accent-subtle); color: var(--pub-accent);
    margin-bottom: 1rem;
}
.docs-section-meta {
    font-size: .75rem; color: var(--pub-text-muted); margin-bottom: 1.25rem;
}
.docs-section-link {
    display: inline-flex; align-items: center; gap: .375rem;
    color: var(--pub-accent); font-size: .875rem; font-weight: 600;
    text-decoration: none; margin-top: 1rem;
    transition: gap var(--pub-transition-fast);
}
.docs-section-link:hover { gap: .625rem; }
.docs-section-link i { font-size: .75rem; }
/* docs responsive moved to main 900px breakpoint */

/* ===== KNOWLEDGE BASE ENHANCED — market8 style ===== */
.kb-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}
.kb-card {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); padding: 1.75rem;
    box-shadow: var(--pub-card-shadow);
    transition: border-color var(--pub-transition-normal),
                box-shadow var(--pub-transition-normal),
                transform var(--pub-transition-normal);
}
.kb-card:hover {
    border-color: var(--pub-accent); box-shadow: var(--pub-card-shadow-hover);
    transform: translateY(-2px);
}
.kb-card-header {
    display: flex; align-items: center; gap: .875rem; margin-bottom: 1.25rem;
}
.kb-card-icon {
    width: 44px; height: 44px; border-radius: var(--pub-radius-icon);
    display: flex; align-items: center; justify-content: center;
    background: var(--pub-accent-subtle); color: var(--pub-accent);
    font-size: 1.125rem; flex-shrink: 0;
}
.kb-card-header h3 {
    font-size: .9375rem; font-weight: 700; color: var(--pub-text);
    letter-spacing: -0.01em;
}
.kb-card-header span {
    font-size: .75rem; color: var(--pub-text-muted); display: block; margin-top: .125rem;
}
.kb-card-links {
    display: flex; flex-direction: column; gap: 0;
}
.kb-card-link {
    display: flex; align-items: center; gap: .625rem;
    padding: .5rem 0; font-size: .8125rem; color: var(--pub-text-secondary);
    text-decoration: none; border-top: 1px solid var(--pub-border);
    transition: color var(--pub-transition-fast);
}
.kb-card-link:first-child { border-top: none; }
.kb-card-link:hover { color: var(--pub-accent); }
.kb-card-link i { color: var(--pub-accent); font-size: .5rem; flex-shrink: 0; }
.kb-card-more {
    display: inline-flex; align-items: center; gap: .375rem;
    padding-top: .75rem; font-size: .8125rem; font-weight: 600;
    color: var(--pub-accent); text-decoration: none;
    transition: gap var(--pub-transition-fast);
}
.kb-card-more:hover { gap: .625rem; }
@media (max-width: 479px) {
    .kb-grid { grid-template-columns: 1fr; }
}

/* KB sections — tighter vertical rhythm */
.pub-section-kb { padding: 3rem 1.5rem; }
.pub-section-kb .pub-section-header { margin-bottom: 2rem; }
@media (max-width: 767px) {
    .pub-section-kb { padding: 2rem 1rem; }
    .pub-section-kb .pub-section-header { margin-bottom: 1.5rem; }
}

/* ===== KB POPULAR ARTICLES GRID ===== */
.kb-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.kb-article-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--pub-bg-card);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card);
    padding: 1.5rem;
    box-shadow: var(--pub-card-shadow);
    text-decoration: none;
    transition: border-color var(--pub-transition), box-shadow var(--pub-transition), transform var(--pub-transition);
    position: relative;
}
.kb-article-card:hover {
    border-color: var(--pub-accent);
    box-shadow: var(--pub-card-shadow-hover);
    transform: translateY(-2px);
}
.kb-article-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--pub-radius-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pub-accent-subtle);
    color: var(--pub-accent);
    font-size: 1rem;
    flex-shrink: 0;
}
.kb-article-card-body {
    flex: 1;
    min-width: 0;
}
.kb-article-card-cat {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pub-accent);
    margin-bottom: .375rem;
}
.kb-article-card-title {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--pub-text);
    letter-spacing: -.01em;
    line-height: 1.35;
    margin-bottom: .375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kb-article-card-excerpt {
    font-size: .8125rem;
    color: var(--pub-text-muted);
    line-height: 1.5;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kb-article-card-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .75rem;
    color: var(--pub-text-muted);
}
.kb-article-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.kb-article-card-meta i {
    font-size: .625rem;
}
.kb-article-card-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.25rem;
    font-size: .75rem;
    color: var(--pub-text-muted);
    opacity: 0;
    transition: opacity var(--pub-transition), transform var(--pub-transition);
}
.kb-article-card:hover .kb-article-card-arrow {
    opacity: 1;
    transform: translateX(2px);
    color: var(--pub-accent);
}
@media (max-width: 479px) {
    .kb-articles-grid { grid-template-columns: 1fr; }
}

/* ===== KB ARTICLE PAGE — market8 style ===== */
.kb-article-wrap {
    max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem;
    display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start;
}
/* Sidebar */
.kb-sidebar { position: sticky; top: 80px; }
.kb-sidebar-back {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .875rem; color: var(--pub-text-muted); text-decoration: none;
    margin-bottom: 1.25rem; transition: color var(--pub-transition-fast);
}
.kb-sidebar-back:hover { color: var(--pub-accent); }
.kb-sidebar-nav {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); overflow: hidden;
}
.kb-sidebar-cat {
    padding: .75rem 1rem; font-size: .75rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--pub-text-muted);
    background: var(--pub-bg-alt); border-bottom: 1px solid var(--pub-border);
}
.kb-sidebar-cat i { margin-right: .375rem; color: var(--pub-accent); }
.kb-sidebar-link {
    display: flex; align-items: center; gap: .5rem;
    padding: .625rem 1rem; font-size: .8125rem; color: var(--pub-text-secondary);
    text-decoration: none; border-bottom: 1px solid var(--pub-border);
    transition: background var(--pub-transition-fast), color var(--pub-transition-fast);
}
.kb-sidebar-link:last-child { border-bottom: none; }
.kb-sidebar-link:hover { background: var(--pub-bg-alt); color: var(--pub-accent); }
.kb-sidebar-link.active {
    background: color-mix(in srgb, var(--pub-accent) 8%, transparent);
    color: var(--pub-accent); font-weight: 600;
}
.kb-sidebar-link i { font-size: .6875rem; flex-shrink: 0; }
/* Article */
.kb-article-main { min-width: 0; }
.kb-article {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); padding: 2.5rem;
    box-shadow: var(--pub-card-shadow);
}
.kb-article-crumb {
    display: flex; align-items: center; gap: .5rem;
    font-size: .8125rem; color: var(--pub-text-muted); margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.kb-article-crumb a {
    color: var(--pub-text-muted); text-decoration: none;
    transition: color var(--pub-transition-fast);
}
.kb-article-crumb a:hover { color: var(--pub-accent); }
.kb-crumb-sep { font-size: .5rem; color: var(--pub-border); }
.kb-article-badge {
    display: inline-flex; align-items: center; gap: .375rem;
    font-size: .75rem; font-weight: 700; padding: .25rem .75rem;
    border-radius: 999px; color: #fff; background: var(--pub-accent);
    margin-bottom: 1.25rem;
}
.kb-article-title {
    font-size: 1.875rem; font-weight: 800; letter-spacing: -.03em;
    color: var(--pub-text); line-height: 1.2; margin-bottom: 1.25rem;
}
.kb-article-meta {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    font-size: .8125rem; color: var(--pub-text-muted);
    padding-bottom: 1.5rem; border-bottom: 1px solid var(--pub-border);
    margin-bottom: 2rem;
}
.kb-article-meta i { margin-right: .25rem; }
/* Feedback */
.kb-feedback {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 1.25rem 1.5rem; background: var(--pub-bg-alt);
    border: 1px solid var(--pub-border); border-radius: var(--pub-radius-card);
    margin-top: 2rem;
}
.kb-feedback p {
    font-size: .9375rem; font-weight: 600; color: var(--pub-text);
    margin: 0; flex: 1;
}
.kb-feedback-actions { display: flex; gap: .5rem; }
/* Related */
.kb-related {
    margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid var(--pub-border);
}
.kb-related h3 {
    font-size: .875rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--pub-text-muted); margin-bottom: 1rem;
}
.kb-related a {
    display: flex; align-items: center; gap: .625rem;
    padding: .625rem 0; color: var(--pub-text-secondary); text-decoration: none;
    font-size: .875rem; border-bottom: 1px solid var(--pub-border);
    transition: color var(--pub-transition-fast);
}
.kb-related a:last-child { border-bottom: none; }
.kb-related a:hover { color: var(--pub-accent); }
.kb-related a i { color: var(--pub-text-muted); font-size: .75rem; flex-shrink: 0; }
.kb-related-arrow { margin-left: auto !important; font-size: .625rem !important; }
/* ===== KB Q&A SECTION ===== */
.kb-qa-section {
    margin-top: 2.5rem; padding-top: 2rem;
    border-top: 1px solid var(--pub-border);
}
.kb-qa-title {
    font-size: 1.125rem; font-weight: 700; color: var(--pub-text);
    display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem;
}
.kb-qa-title i { color: var(--pub-accent); font-size: 1rem; }
.kb-qa-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.375rem; height: 1.375rem; padding: 0 .375rem;
    font-size: .6875rem; font-weight: 700; border-radius: 9999px;
    background: var(--pub-accent); color: #fff;
}
.kb-qa-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.kb-qa-item {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); padding: 1rem 1.25rem;
    transition: border-color var(--pub-transition-fast);
}
.kb-qa-item:hover { border-color: var(--pub-border-hover); }
.kb-qa-pinned { border-left: 3px solid var(--pub-accent); }
.kb-qa-question { display: flex; gap: .75rem; }
.kb-qa-avatar {
    width: 2rem; height: 2rem; border-radius: 9999px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--pub-bg-alt); color: var(--pub-text-muted); font-size: .75rem;
}
.kb-qa-avatar-admin {
    background: var(--pub-accent-glow); color: var(--pub-accent);
}
.kb-qa-body { flex: 1; min-width: 0; }
.kb-qa-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem;
    margin-bottom: .375rem;
}
.kb-qa-author { font-size: .8125rem; font-weight: 600; color: var(--pub-text); }
.kb-qa-date { font-size: .75rem; color: var(--pub-text-muted); }
.kb-qa-badge-pinned {
    font-size: .6875rem; font-weight: 600; color: var(--pub-accent);
    display: inline-flex; align-items: center; gap: .25rem;
}
.kb-qa-badge-admin {
    font-size: .625rem; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; padding: .125rem .5rem; border-radius: 9999px;
    background: var(--pub-accent-glow); color: var(--pub-accent);
}
.kb-qa-badge-solution {
    font-size: .625rem; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; padding: .125rem .5rem; border-radius: 9999px;
    background: rgba(16, 185, 129, 0.1); color: #10b981;
    display: inline-flex; align-items: center; gap: .25rem;
}
.kb-qa-text {
    font-size: .875rem; color: var(--pub-text-secondary);
    line-height: 1.6; margin: 0;
}
.kb-qa-answer {
    display: flex; gap: .75rem; margin-top: .75rem;
    padding-top: .75rem; border-top: 1px solid var(--pub-border);
    margin-left: 2.75rem;
}
.kb-qa-empty {
    font-size: .875rem; color: var(--pub-text-muted);
    text-align: center; padding: 1.5rem; margin-bottom: 1.5rem;
    background: var(--pub-bg-alt); border-radius: var(--pub-radius-card);
}
/* Q&A Form */
.kb-qa-form-wrap {
    background: var(--pub-bg-alt); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); padding: 1.25rem 1.5rem;
}
.kb-qa-form-title {
    font-size: .9375rem; font-weight: 600; color: var(--pub-text);
    display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
}
.kb-qa-form-title i { color: var(--pub-accent); }
.kb-qa-form { display: flex; flex-direction: column; gap: .75rem; }
.kb-qa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.kb-qa-form-field { display: flex; flex-direction: column; gap: .25rem; }
.kb-qa-form-field label {
    font-size: .8125rem; font-weight: 500; color: var(--pub-text-secondary);
}
.kb-qa-form-field label small { color: var(--pub-text-muted); }
.kb-qa-form-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; flex-wrap: wrap; margin-top: .25rem;
}
.kb-qa-form-note {
    font-size: .75rem; color: var(--pub-text-muted); margin: 0;
    display: flex; align-items: flex-start; gap: .375rem; flex: 1; min-width: 200px;
}
.kb-qa-form-note i { margin-top: .125rem; flex-shrink: 0; }
@media (max-width: 600px) {
    .kb-qa-form-row { grid-template-columns: 1fr; }
    .kb-qa-answer { margin-left: 1rem; }
    .kb-qa-form-footer { flex-direction: column; align-items: stretch; }
    .kb-qa-form-footer .pub-btn-primary { width: 100%; justify-content: center; }
}

/* Support CTA */
.kb-support-cta {
    margin-top: 1.5rem; background: var(--pub-bg-card);
    border: 1px solid var(--pub-border); border-radius: var(--pub-radius-card);
    padding: 1.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.kb-support-cta-text { flex: 1; min-width: 200px; }
.kb-support-cta-title { font-size: .9375rem; font-weight: 700; color: var(--pub-text); margin: 0; }
.kb-support-cta-sub { font-size: .8125rem; color: var(--pub-text-muted); margin: .25rem 0 0; }
.kb-support-cta-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
/* Responsive */
@media (max-width: 900px) {
    .kb-article-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
    .kb-sidebar { position: static; }
}
@media (max-width: 600px) {
    .kb-article { padding: 1.5rem; }
    .kb-article-title { font-size: 1.5rem; }
    .kb-article-wrap { padding: 1.5rem 1rem 2.5rem; }
    .kb-feedback { flex-direction: column; text-align: center; }
    .kb-support-cta { flex-direction: column; text-align: center; }
}

/* ===== BLOG POST MOBILE ===== */
@media (max-width: 600px) {
    #comment-form-wrapper [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    .pub-star-rating .pub-star { font-size: 1.5rem; padding: 0.25rem; }
    .pub-reaction-btn { padding: 0.5rem 0.875rem; font-size: 0.75rem; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .pub-fade-in { transition: none; opacity: 1; transform: none; animation: none; }
    .pub-float, .pub-float-delay { animation: none; }
    .pub-card, .pub-blog-card, .pub-testimonial-card, .pub-kb-category-card {
        transition: border-color var(--pub-transition-fast), box-shadow var(--pub-transition-fast);
    }
    .pub-card:hover, .pub-blog-card:hover { transform: none; }
    .pub-shimmer { animation: none; }
}

/* ===== AFFILIATE SIMULATOR RESPONSIVE ===== */
@media (max-width: 767px) {
    .aff-simulator [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    .aff-simulator [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
}

/* ===== COOKIE CONSENT — Public theme override ===== */
/* Light mode: pink accent */
.pub-page .cc-icon-wrap {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}
.pub-page .cc-toggle input:checked + .cc-toggle-track {
    background: #ec4899;
}
.pub-page .cc-btn-primary {
    background: linear-gradient(135deg, #ec4899, #db2777);
}
.pub-page .cc-btn-primary:hover {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}
.pub-page .cc-links a {
    color: #ec4899;
}
.pub-page .cc-links a:hover {
    color: #db2777;
}
/* Dark mode: purple accent */
.dark .pub-page .cc-icon-wrap {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}
.dark .pub-page .cc-card {
    background: rgba(30, 30, 56, 0.95);
    border-color: rgba(100, 116, 139, 0.35);
}
.dark .pub-page .cc-toggle input:checked + .cc-toggle-track {
    background: #a78bfa;
}
.dark .pub-page .cc-btn-primary {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}
.dark .pub-page .cc-btn-primary:hover {
    background: linear-gradient(135deg, #c4b5fd, #a78bfa);
}
.dark .pub-page .cc-btn-secondary {
    background: rgba(42, 42, 78, 0.7);
    color: #e2e8f0;
    border-color: rgba(100, 116, 139, 0.35);
}
.dark .pub-page .cc-btn-secondary:hover {
    background: rgba(55, 55, 95, 0.8);
}
.dark .pub-page .cc-links a {
    color: #a78bfa;
}
.dark .pub-page .cc-links a:hover {
    color: #c4b5fd;
}
.dark .pub-page .cc-footer {
    border-top-color: rgba(100, 116, 139, 0.35);
}
.dark .pub-page .cc-category {
    background: rgba(15, 23, 42, 0.4);
}
.dark .pub-page .cc-category:hover {
    background: rgba(25, 33, 52, 0.6);
}
.dark .pub-page .cc-overlay {
    background: rgba(11, 11, 26, 0.9);
}
.dark .pub-page .cc-marketing-fields {
    background: rgba(15, 23, 42, 0.5);
    border-top-color: rgba(100, 116, 139, 0.3);
}

/* ===== GLOBAL OVERFLOW PREVENTION ===== */
html, body { overflow-x: hidden; }

/* ===== HERO REUSABLE ===== */
.pub-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pub-text, #f1f5f9);
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.pub-hero-subtitle {
    font-size: 1.125rem;
    color: var(--pub-text-secondary, #94a3b8);
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.6;
}
.pub-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== INTEGRATION PAGE ===== */
.pub-integration-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.pub-integration-nav__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pub-text-secondary, #94a3b8);
    background: var(--pub-card-bg, rgba(255,255,255,0.03));
    border: 1px solid var(--pub-border, rgba(148,163,184,0.15));
    transition: all 150ms ease;
    text-decoration: none;
    cursor: pointer;
}
.pub-integration-nav__pill:hover {
    color: var(--pub-text, #f1f5f9);
    background: rgba(255,255,255,0.06);
    border-color: var(--pub-accent, #60a5fa);
}
.pub-integration-nav__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    background: rgba(148,163,184,0.15);
    color: var(--pub-text-muted, #64748b);
}
.pub-integration-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.pub-integration-category-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.pub-integration-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pub-text, #f1f5f9);
    letter-spacing: -0.01em;
    margin: 0;
}
.pub-integration-category-desc {
    font-size: 0.8125rem;
    color: var(--pub-text-secondary, #94a3b8);
    margin: 0.125rem 0 0 0;
    line-height: 1.4;
}
.pub-integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.pub-integration-provider {
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}
.pub-integration-provider__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.pub-integration-provider__color-bar {
    width: 3px;
    height: 1.5rem;
    border-radius: 2px;
    flex-shrink: 0;
}
.pub-integration-provider__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--pub-text, #f1f5f9);
    margin: 0;
    flex: 1;
    min-width: 0;
}
.pub-integration-provider__auth {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.pub-integration-provider__desc {
    font-size: 0.8125rem;
    color: var(--pub-text-secondary, #94a3b8);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pub-integration-provider__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pub-border, rgba(148,163,184,0.1));
}
.pub-integration-provider__endpoints {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--pub-text-muted, #64748b);
}
.pub-integration-provider__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--pub-accent, #60a5fa);
}
.pub-integration-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.pub-integration-feature {
    padding: 1.5rem;
}
.pub-integration-feature__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}
.pub-integration-feature__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pub-text, #f1f5f9);
    margin: 0 0 0.5rem 0;
}
.pub-integration-feature__desc {
    font-size: 0.8125rem;
    color: var(--pub-text-secondary, #94a3b8);
    line-height: 1.6;
    margin: 0;
}

/* Integration page responsive */
@media (max-width: 767px) {
    .pub-hero-title { font-size: 1.75rem; }
    .pub-hero-subtitle { font-size: 1rem; }
    .pub-integration-grid { grid-template-columns: 1fr; }
    .pub-integration-features-grid { grid-template-columns: 1fr; }
    .pub-integration-nav { gap: 0.375rem; }
    .pub-integration-nav__pill { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .pub-integration-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== BLOG POST UTILITIES ===== */
.pub-blog-header { margin-bottom: 2.5rem; }
.pub-blog-title {
    font-size: 2rem; line-height: 1.25; font-weight: 800;
    letter-spacing: -0.03em; margin-bottom: 1.5rem; color: var(--pub-text);
}
.pub-blog-meta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 1.25rem; font-size: 0.8125rem; color: var(--pub-text-muted);
}
.pub-blog-meta i { margin-right: 0.375rem; opacity: .7; }
.pub-blog-meta a { color: inherit; text-decoration: none; }
.pub-blog-featured-img {
    margin-bottom: 2.5rem; border-radius: var(--pub-radius-2xl); overflow: hidden;
}
.pub-blog-featured-img img { width: 100%; height: auto; display: block; }
.pub-blog-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.pub-blog-bar {
    padding: 1.5rem 0;
    border-top: 1px solid var(--pub-border); border-bottom: 1px solid var(--pub-border);
    margin-bottom: 2.5rem;
}
.pub-blog-bar-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-bottom: 1.25rem;
}
.pub-blog-bar-row:last-child { margin-bottom: 0; }
.pub-blog-bar-label {
    font-size: 0.8125rem; font-weight: 500; color: var(--pub-text-secondary);
}
.pub-blog-share-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.pub-blog-share-label {
    font-size: 0.8125rem; font-weight: 500; color: var(--pub-text-secondary); margin-right: 0.25rem;
}
.pub-comment-section { scroll-margin-top: 6rem; }
.pub-comment-heading {
    font-size: 1.375rem; font-weight: 700; margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.pub-comment-heading i { color: var(--pub-accent); }
.pub-comment-count {
    font-size: 0.8125rem; font-weight: 500; padding: 0.125rem 0.625rem;
    border-radius: var(--pub-radius-full);
    background: var(--pub-accent-subtle); color: var(--pub-accent);
}
.pub-comment-list {
    display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem;
}
.pub-comment {
    padding: 1.25rem 1.5rem; border-radius: var(--pub-radius-xl);
    border: 1px solid var(--pub-border); background: var(--pub-bg-card);
}
.pub-comment-meta {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem;
}
.pub-comment-avatar {
    width: 2.25rem; height: 2.25rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8125rem; color: #fff; background: var(--pub-accent); flex-shrink: 0;
}
.pub-comment-author { font-weight: 600; font-size: 0.9375rem; }
.pub-comment-date { font-size: 0.75rem; color: var(--pub-text-muted); margin-left: 0.5rem; }
.pub-comment-body {
    font-size: 0.9375rem; line-height: 1.7; color: var(--pub-text-secondary); padding-left: 3rem;
}
.pub-comment-replies { margin-top: 1rem; padding-left: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.pub-comment-reply {
    padding: 1rem 1.25rem; border-radius: var(--pub-radius-lg);
    background: var(--pub-bg-alt); border-left: 3px solid var(--pub-accent);
}
.pub-comment-reply-meta {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem;
}
.pub-comment-reply-avatar {
    width: 1.75rem; height: 1.75rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.6875rem; color: #fff; background: var(--pub-text-muted); flex-shrink: 0;
}
.pub-comment-reply-author { font-weight: 600; font-size: 0.8125rem; }
.pub-comment-reply-date { font-size: 0.6875rem; color: var(--pub-text-muted); }
.pub-comment-reply-body {
    font-size: 0.875rem; line-height: 1.65; color: var(--pub-text-secondary);
}
.pub-comment-empty {
    text-align: center; padding: 2.5rem 1rem; margin-bottom: 2rem;
    border-radius: var(--pub-radius-xl); border: 1px dashed var(--pub-border); color: var(--pub-text-muted);
}
.pub-comment-empty i { font-size: 2rem; margin-bottom: 0.75rem; display: block; opacity: .5; }
.pub-comment-empty p { font-size: 0.9375rem; }
.pub-comment-form {
    padding: 1.5rem; border-radius: var(--pub-radius-xl);
    border: 1px solid var(--pub-border); background: var(--pub-bg-card);
}
.pub-comment-form-title {
    font-size: 1.125rem; font-weight: 600; margin-bottom: 1.25rem;
}
.pub-comment-form-title i { color: var(--pub-accent); margin-right: 0.375rem; font-size: 0.875rem; }
.pub-reply-indicator {
    display: none; padding: 0.625rem 1rem; margin-bottom: 1rem;
    border-radius: var(--pub-radius-md); background: var(--pub-accent-subtle);
    font-size: 0.8125rem; color: var(--pub-accent);
}
.pub-comment-success {
    display: none; padding: 1.25rem; border-radius: var(--pub-radius-md);
    background: color-mix(in srgb, var(--pub-success) 8%, transparent);
    color: var(--pub-success); text-align: center;
}
.pub-comment-success i { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.pub-comment-success p { font-weight: 600; }
.pub-comment-success .pub-comment-success-sub { font-size: 0.8125rem; margin-top: 0.25rem; opacity: .8; font-weight: 400; }

/* ===== PUBLIC PAGE COMPONENT CLASSES ===== */

/* Icon box — small (2rem) accent variant */
.pub-icon-box-sm {
    width: 2rem; height: 2rem; border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: .75rem;
}

/* Icon box — medium (2.25rem) accent variant */
.pub-icon-box-md {
    width: 2.25rem; height: 2.25rem; border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: .75rem;
    background: var(--pub-accent-glow); color: var(--pub-accent);
}

/* Icon box — large (2.5rem) accent variant */
.pub-icon-box-accent {
    width: 2.5rem; height: 2.5rem; border-radius: .625rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: .875rem;
    background: var(--pub-accent-glow); color: var(--pub-accent);
}

/* Icon box — xl (2.75rem) accent variant */
.pub-icon-box-accent-xl {
    width: 2.75rem; height: 2.75rem; border-radius: .625rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1rem;
    background: var(--pub-accent-glow); color: var(--pub-accent);
}

/* Icon box — number step circle */
.pub-step-number {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .875rem; font-weight: 800; color: #fff;
    margin-bottom: 1.25rem;
}

/* Flex column layout */
.pub-flex-col { display: flex; flex-direction: column; }
.pub-flex-col-gap-sm { display: flex; flex-direction: column; gap: .5rem; }
.pub-flex-col-gap { display: flex; flex-direction: column; gap: .75rem; }

/* Check-list item row */
.pub-checklist-item {
    display: flex; align-items: flex-start; gap: .75rem;
}
.pub-checklist-item i {
    flex-shrink: 0; margin-top: .25rem;
}

/* Check-list item — centered vertically */
.pub-checklist-item-center {
    display: flex; align-items: center; gap: .75rem;
}

/* Info card — generic bordered card for content sections */
.pub-info-card {
    padding: 1.25rem; border-radius: var(--pub-radius-card);
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
}

/* Content card — larger padding variant */
.pub-content-card {
    padding: 1.5rem; border-radius: var(--pub-radius-card);
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    transition: all var(--pub-transition-normal);
}

/* Content card — extra padding variant */
.pub-content-card-lg {
    padding: 2rem; border-radius: var(--pub-radius-card);
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    transition: all var(--pub-transition-normal);
}

/* Accent top bar on cards */
.pub-card-accent-top {
    position: relative; overflow: hidden;
}
.pub-card-accent-top::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--pub-gradient-1);
}

/* Comparison table wrapper */
.pub-table-wrap-bordered {
    border-radius: var(--pub-radius-card); overflow: hidden;
    border: 1px solid var(--pub-border);
}
.pub-table-wrap-bordered table {
    width: 100%; border-collapse: collapse;
}

/* Table header cell */
.pub-th {
    padding: 1rem 1.5rem; font-size: .8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 1px solid var(--pub-border);
}
.pub-th-left { text-align: left; color: var(--pub-text-muted); }
.pub-th-center { text-align: center; color: var(--pub-text); }

/* Table body cell */
.pub-td {
    padding: .875rem 1rem; border-bottom: 1px solid var(--pub-border);
}
.pub-td-label {
    padding: .875rem 1.5rem; font-size: .875rem; font-weight: 500;
    color: var(--pub-text); border-bottom: 1px solid var(--pub-border);
}
.pub-td-center {
    text-align: center; padding: .875rem 1rem;
    border-bottom: 1px solid var(--pub-border);
}

/* Table row alt backgrounds */
.pub-tr-even { background: var(--pub-bg); }
.pub-tr-odd { background: var(--pub-bg-card); }

/* Pricing plan card */
.pub-plan-card {
    padding: 1.75rem; display: flex; flex-direction: column;
}

/* Pricing plan header */
.pub-plan-header { margin-bottom: 1.5rem; }
.pub-plan-header h3 {
    font-weight: 700; font-size: 1rem; margin-bottom: .25rem;
    color: var(--pub-text); letter-spacing: -.01em;
}
.pub-plan-header p { font-size: .75rem; color: var(--pub-text-muted); }

/* Pricing plan price */
.pub-plan-price { margin-bottom: 1.75rem; }
.pub-plan-price-value {
    font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em;
    color: var(--pub-text);
}
.pub-plan-price-period {
    font-size: .875rem; margin-left: .125rem; color: var(--pub-text-muted);
}

/* Pricing feature list */
.pub-plan-features {
    list-style: none; padding: 0; margin: 0 0 2rem;
    flex: 1; display: flex; flex-direction: column; gap: .75rem;
}
.pub-plan-feature {
    display: flex; align-items: center; gap: .625rem;
    font-size: .875rem; color: var(--pub-text-secondary);
}
.pub-plan-feature i { flex-shrink: 0; font-size: .75rem; }

/* Full-width centered button */
.pub-btn-full { width: 100%; text-align: center; }

/* Section description text styles */
.pub-text-desc {
    font-size: .9375rem; color: var(--pub-text-secondary); line-height: 1.7;
}
.pub-text-desc-sm {
    font-size: .8125rem; color: var(--pub-text-secondary); line-height: 1.6;
}
.pub-text-desc-muted {
    font-size: .8125rem; color: var(--pub-text-muted); line-height: 1.5;
}

/* Section heading sizes */
.pub-heading-section {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 1.25rem;
    letter-spacing: -.02em; color: var(--pub-text);
}
.pub-heading-card {
    font-size: 1rem; font-weight: 700; color: var(--pub-text);
    margin-bottom: .5rem; letter-spacing: -.01em;
}
.pub-heading-card-lg {
    font-size: 1.0625rem; font-weight: 700; color: var(--pub-text);
}
.pub-heading-card-sm {
    font-size: .875rem; font-weight: 700; color: var(--pub-text);
    margin-bottom: .25rem;
}

/* Guarantee / info row card */
.pub-info-row {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.5rem; border-radius: var(--pub-radius-card);
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
}
.pub-info-row-compact {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 1.25rem; border-radius: var(--pub-radius-card);
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
}

/* Category label — uppercase small muted */
.pub-category-label {
    font-size: .8125rem; font-weight: 700; color: var(--pub-text-muted);
    text-transform: uppercase; letter-spacing: .05em;
}

/* Stat label */
.pub-stat-label-md {
    font-size: .8125rem; margin-top: .5rem; font-weight: 500;
}

/* Hero dark card (on forced-dark sections) */
.pub-hero-card-glass {
    border-radius: 18px; padding: 2rem;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}

/* Hero dark small text */
.pub-hero-label {
    font-size: .75rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: rgba(255,255,255,.5);
    margin-bottom: 1.25rem;
}

/* Platforms grid */
.pub-platforms-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 768px) {
    .pub-platforms-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Platform card hover */
.pub-platform-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pub-shadow-md);
}

/* ===== 3-column grid for agents/standalone ===== */
.pub-grid-3col {
    display: grid; grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
    .pub-grid-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pub-grid-3col { grid-template-columns: 1fr; }
}

/* Toggle switch component */
.pub-toggle {
    position: relative; display: inline-flex; height: 1.75rem; width: 3rem;
    align-items: center; border-radius: 9999px;
    transition: background-color .15s; background: var(--pub-accent);
    border: none; cursor: pointer;
}
.pub-toggle-dot {
    display: inline-block; height: 1.25rem; width: 1.25rem;
    border-radius: 9999px; background: #fff;
    transition: transform .15s; transform: translateX(0.25rem);
    box-shadow: var(--pub-shadow-sm);
}

/* Annual savings badge */
.pub-badge-savings {
    margin-left: .375rem; display: inline-flex; align-items: center;
    padding: .125rem .5rem; border-radius: 9999px;
    font-size: .75rem; font-weight: 700;
    background: color-mix(in srgb, #10b981 15%, transparent); color: #059669;
}

/* Pricing popular badge */
.pub-badge-popular-float {
    position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%);
}

/* ===== API DOCS ===== */

/* Card body with padding and spacing */
.pub-api-card-body { padding: 1.5rem; margin-bottom: 1.5rem; }
.pub-api-card-body-last { padding: 1.5rem; }

/* Section header: icon + title row */
.pub-api-section-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .25rem; }
.pub-api-embed-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.pub-api-example-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }

/* Headings */
.pub-api-heading { font-weight: 700; font-size: 1.125rem; color: var(--pub-text); }
.pub-api-card-title { font-weight: 700; font-size: 1.125rem; margin-bottom: .75rem; color: var(--pub-text); }
.pub-api-heading-lg { font-weight: 800; font-size: 1.5rem; color: var(--pub-text); margin-bottom: .5rem; letter-spacing: -.02em; }

/* Descriptions */
.pub-api-section-desc { font-size: .8125rem; color: var(--pub-text-secondary); margin-bottom: 1.25rem; line-height: 1.5; }
.pub-api-desc { font-size: .8125rem; color: var(--pub-text-secondary); margin-bottom: 1rem; line-height: 1.5; }
.pub-api-text-body { font-size: .875rem; color: var(--pub-text-secondary); margin-bottom: .75rem; line-height: 1.6; }
.pub-api-text-info { font-size: .875rem; color: var(--pub-text-secondary); line-height: 1.6; }
.pub-api-text-sub { font-size: .9375rem; color: var(--pub-text-secondary); max-width: 32rem; margin: 0 auto; line-height: 1.6; }
.pub-api-text-hint { font-size: .75rem; color: var(--pub-text-muted); margin-top: .75rem; line-height: 1.5; }
.pub-api-text-hint-mb { font-size: .8125rem; color: var(--pub-text-secondary); margin-bottom: .75rem; line-height: 1.5; }

/* Icon styles */
.pub-api-icon-accent { color: var(--pub-accent); font-size: 1.125rem; }
.pub-api-icon-inline { color: var(--pub-accent); margin-right: .5rem; }
.pub-api-icon-info { color: var(--pub-accent); margin-right: .375rem; }
.pub-api-icon-md { font-size: 1rem; color: var(--pub-accent); }
.pub-api-icon-lg { font-size: 1.5rem; color: var(--pub-accent); }
.pub-api-icon-box {
    width: 2.5rem; height: 2.5rem; border-radius: .5rem;
    background: color-mix(in srgb, var(--pub-accent) 10%, transparent);
    display: flex; align-items: center; justify-content: center;
}
.pub-api-icon-box-lg {
    width: 4rem; height: 4rem; border-radius: 1rem;
    background: color-mix(in srgb, var(--pub-accent) 10%, transparent);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}

/* Accent color for inline code */
.pub-api-accent { color: var(--pub-accent); }
.pub-api-text-primary { color: var(--pub-text); }
.pub-api-text-muted-sm { font-size: .75rem; color: var(--pub-text-muted); }

/* Tables */
.pub-api-table { width: 100%; font-size: .8125rem; border-collapse: collapse; }
.pub-api-table-sm { width: 100%; font-size: .75rem; border-collapse: collapse; }
.pub-api-th {
    text-align: left; padding: .5rem;
    color: var(--pub-text-muted); font-weight: 600;
}
.pub-api-th-center {
    text-align: center; padding: .5rem;
    color: var(--pub-text-muted); font-weight: 600;
}
.pub-api-th-sm {
    text-align: left; padding: .375rem .5rem;
    color: var(--pub-text-muted); font-weight: 600;
}
.pub-api-th-sm-center {
    text-align: center; padding: .375rem .5rem;
    color: var(--pub-text-muted); font-weight: 600;
}
.pub-api-thead-border { border-bottom: 1px solid var(--pub-border); }
.pub-api-tr-border { border-bottom: 1px solid color-mix(in srgb, var(--pub-border) 55%, transparent); }
.pub-api-td { padding: .5rem; }
.pub-api-td-primary { padding: .5rem; color: var(--pub-text); }
.pub-api-td-primary-bold { padding: .5rem; color: var(--pub-text); font-weight: 500; }
.pub-api-td-secondary { padding: .5rem; color: var(--pub-text-secondary); }
.pub-api-td-center { padding: .5rem; text-align: center; color: var(--pub-text-secondary); }
.pub-api-td-sm { padding: .375rem .5rem; }
.pub-api-td-sm-secondary { padding: .375rem .5rem; color: var(--pub-text-secondary); }
.pub-api-td-sm-center { padding: .375rem .5rem; text-align: center; }

/* Callout / info card */
.pub-api-callout {
    padding: 1.25rem; margin-bottom: 1.5rem;
    border-left: 3px solid var(--pub-accent);
}
.pub-api-callout-mt {
    padding: 1.25rem; margin-top: 1.5rem;
    border-left: 3px solid var(--pub-accent);
}

/* Tags / badges */
.pub-api-tags { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pub-api-tag {
    display: inline-block; padding: .125rem .5rem; border-radius: .25rem;
    font-size: .6875rem;
    background: var(--pub-card-bg, rgba(255,255,255,.05));
    color: var(--pub-text-muted);
    border: 1px solid var(--pub-border);
}
.pub-api-status-pill {
    display: inline-block; padding: .25rem .75rem; border-radius: 1rem;
    font-size: .6875rem; font-weight: 600;
    background: color-mix(in srgb, var(--pub-accent) 10%, transparent);
    color: var(--pub-accent);
}

/* Pre / code blocks (specific to api-docs inline rendering) */
.pub-api-pre {
    padding: .75rem; border-radius: .5rem;
    background: var(--pub-code-bg, #1e1e38); color: var(--pub-code-text, #e2e8f0);
    font-size: .75rem; overflow-x: auto; line-height: 1.6;
    border: 1px solid var(--pub-border);
}
.pub-api-pre-lg {
    padding: .75rem 1rem; border-radius: .5rem;
    background: var(--pub-code-bg, #1e1e38); color: var(--pub-code-text, #e2e8f0);
    font-size: .875rem; overflow-x: auto;
    border: 1px solid var(--pub-border);
}
.pub-api-pre-md {
    padding: .75rem 1rem; border-radius: .5rem;
    background: var(--pub-code-bg, #1e1e38); color: var(--pub-code-text, #e2e8f0);
    font-size: .8125rem; overflow-x: auto; line-height: 1.6;
    border: 1px solid var(--pub-border);
}

/* Endpoint card (rendered by helper functions) */
.pub-api-endpoint {
    border: 1px solid var(--pub-border);
    border-radius: .75rem; padding: 1.25rem; margin-bottom: 1rem;
    background: var(--pub-card-bg, rgba(255,255,255,.03));
}
.pub-api-endpoint-header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.pub-api-endpoint-desc { font-size: .8125rem; color: var(--pub-text-secondary); margin-bottom: .75rem; line-height: 1.5; }
.pub-api-endpoint-path { font-size: .875rem; font-weight: 600; color: var(--pub-text); word-break: break-all; }

/* HTTP method badges */
.pub-api-method {
    display: inline-block; padding: .125rem .5rem; border-radius: .25rem;
    font-size: .6875rem; font-weight: 700; font-family: monospace;
    color: #fff; letter-spacing: .03em; min-width: 3.5rem; text-align: center;
}
.pub-api-method-get { background: #16a34a; }
.pub-api-method-post { background: #2563eb; }
.pub-api-method-put { background: #ea580c; }
.pub-api-method-patch { background: #d97706; }
.pub-api-method-delete { background: #dc2626; }

/* Endpoint details and summary */
.pub-api-response-toggle { cursor: pointer; font-size: .75rem; font-weight: 600; color: var(--pub-accent); user-select: none; }
.pub-api-required-yes { color: #ef4444; font-weight: 700; }
.pub-api-required-no { color: var(--pub-text-muted); }
.pub-api-param-name { font-size: .75rem; color: var(--pub-accent); }

/* Hero stats */
.pub-api-hero-stats { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.pub-api-hero-stat { text-align: center; }
.pub-api-hero-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--pub-accent); letter-spacing: -.02em; }
.pub-api-hero-stat-label { font-size: .75rem; color: var(--pub-text-muted); font-weight: 500; }

/* Hero heading */
.pub-api-hero-title {
    font-size: 2.5rem; font-weight: 800; color: var(--pub-text);
    letter-spacing: -.03em; text-align: center; margin-bottom: 1rem; line-height: 1.15;
}
.pub-api-hero-desc {
    font-size: 1.125rem; color: var(--pub-text-secondary);
    text-align: center; max-width: 40rem; margin: 0 auto; line-height: 1.6;
}
.pub-api-hero-cta { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* Practices / tip card */
.pub-api-practice {
    display: flex; align-items: flex-start; gap: .75rem; padding: .75rem; border-radius: .5rem;
    background: var(--pub-card-bg, rgba(255,255,255,.03));
    border: 1px solid var(--pub-border);
}
.pub-api-practice-icon { color: var(--pub-accent); font-size: .875rem; margin-top: .125rem; flex-shrink: 0; }
.pub-api-practice-title { font-size: .8125rem; font-weight: 600; color: var(--pub-text); margin-bottom: .125rem; }
.pub-api-practice-desc { font-size: .75rem; color: var(--pub-text-secondary); line-height: 1.5; }

/* Label for response status */
.pub-api-label-success { font-size: .75rem; font-weight: 600; color: #16a34a; margin-bottom: .375rem; }
.pub-api-label-error { font-size: .75rem; font-weight: 600; color: #ef4444; margin-bottom: .375rem; }
.pub-api-label-title { font-size: .75rem; font-weight: 600; color: var(--pub-text); margin-bottom: .5rem; }

/* SDK grid */
.pub-api-sdk-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1rem; }
.pub-api-sdk-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.pub-api-sdk-name { font-weight: 700; font-size: 1rem; color: var(--pub-text); }

/* Center card (for SDKs intro) */
.pub-api-center-card { padding: 2rem; text-align: center; margin-bottom: 1.5rem; }

/* HTTP code colors */
.pub-api-code-error { color: var(--pub-danger); }
.pub-api-code-success { color: var(--pub-success); }

/* Language-specific icon colors */
.pub-api-icon-js { font-size: 1.125rem; color: #f7df1e; }
.pub-api-icon-php { font-size: 1.125rem; color: #777bb4; }

/* Grid layout */
.pub-api-grid-1 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pub-api-grid-practices { display: grid; grid-template-columns: 1fr; gap: .75rem; }

/* ===== ROADMAP PAGE COMPONENTS ===== */

.pub-rm-heading { font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; color: var(--pub-text); margin: 0; }
.pub-rm-heading-mb { margin-bottom: .25rem; }
.pub-rm-subtitle { font-size: .8125rem; color: var(--pub-text-muted); margin-bottom: 1.5rem; }
.pub-rm-card-body { padding: 2rem; }
.pub-rm-card-body-sm { padding: 1.5rem; }
.pub-rm-card-body-xs { padding: 1.25rem; }
.pub-rm-row { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; border-radius: .5rem; background: var(--pub-bg-alt); }
.pub-rm-stack { display: flex; flex-direction: column; }
.pub-rm-stack-sm { gap: .375rem; }
.pub-rm-stack-md { gap: .5rem; }
.pub-rm-stack-gap { gap: .625rem; }
.pub-rm-stack-lg { gap: .75rem; }
.pub-rm-stack-xl { gap: 1rem; }
.pub-rm-bar-track { width: 100%; height: .375rem; background: var(--pub-border); border-radius: 1rem; overflow: hidden; }
.pub-rm-bar-track-lg { height: 8px; border-radius: 4px; background: var(--pub-bg-alt); }
.pub-rm-bar-track-xl { height: 12px; border-radius: 6px; background: var(--pub-bg-tertiary); }
.pub-rm-bar-fill { height: 100%; border-radius: 1rem; transition: width .3s ease; }
.pub-rm-bar-fill-slow { transition: width .5s ease; }
.pub-rm-bar-fill-lg { border-radius: 4px; }
.pub-rm-bar-fill-xl { border-radius: 6px; }
.pub-rm-bar-fill-gradient { background: var(--pub-gradient-text); }
.pub-rm-stat-box { text-align: center; padding: 1rem; border-radius: .5rem; background: var(--pub-bg-alt); }
.pub-rm-stat-box-lg { padding: 1.25rem; }
.pub-rm-stat-box-hero { text-align: center; padding: 2rem 1rem; border-radius: .75rem; background: var(--pub-bg-alt); }
.pub-rm-stat-value { font-size: 1.25rem; font-weight: 800; color: var(--pub-text); letter-spacing: -.02em; }
.pub-rm-stat-value-xl { font-size: 1.5rem; font-weight: 800; }
.pub-rm-stat-value-hero { font-size: 2.5rem; font-weight: 900; letter-spacing: -.04em; background: var(--pub-gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; }
.pub-rm-stat-label { font-size: .625rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pub-text-muted); font-weight: 600; margin-bottom: .375rem; }
.pub-rm-stat-label-sm { font-size: .6875rem; color: var(--pub-text-muted); margin-top: .25rem; }
.pub-rm-stat-label-hero { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pub-text-muted); font-weight: 600; margin-bottom: .5rem; }
.pub-rm-kpi-label { font-size: .75rem; color: var(--pub-text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.pub-rm-kpi-value { font-size: 1.125rem; font-weight: 700; color: var(--pub-text); }
.pub-rm-item-name { font-size: .8125rem; font-weight: 600; color: var(--pub-text); }
.pub-rm-text-xs { font-size: .6875rem; font-weight: 700; }
.pub-rm-text-sm { font-size: .75rem; color: var(--pub-text-muted); }
.pub-rm-text-body { font-size: .8125rem; color: var(--pub-text-secondary); line-height: 1.5; }
.pub-rm-pillar { padding: .75rem; border-radius: .5rem; background: var(--pub-bg-alt); }
.pub-rm-pillar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .375rem; }
.pub-rm-pillar-name { font-size: .75rem; font-weight: 600; color: var(--pub-text); }
.pub-rm-score-bars { display: flex; align-items: flex-end; gap: .5rem; height: 6rem; margin-bottom: 2rem; padding: 0 1rem; }
.pub-rm-score-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.pub-rm-score-label { font-size: .6875rem; font-weight: 700; }
.pub-rm-score-bar { width: 100%; max-width: 3rem; border-radius: .375rem .375rem 0 0; min-height: .5rem; transition: height .3s ease; }
.pub-rm-score-phase { font-size: .625rem; color: var(--pub-text-muted); white-space: nowrap; }
.pub-rm-stat-icon { font-size: 1.25rem; color: var(--pub-accent); margin-bottom: .5rem; display: block; }
.pub-rm-grid-pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; }
.pub-rm-grid-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 1rem; }
.pub-rm-grid-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.pub-rm-grid-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .75rem; }
.pub-rm-grid-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.pub-rm-grid-cost { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.pub-rm-grid-invest-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.pub-rm-arch-item { padding: .625rem .875rem; border-radius: .375rem; background: var(--pub-bg-alt); font-size: .8125rem; color: var(--pub-text-secondary); }
.pub-rm-arch-heading { font-weight: 700; font-size: .875rem; color: var(--pub-text); margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.pub-rm-timeline-dot { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .75rem; }
.pub-rm-stage-title { font-weight: 700; font-size: .9375rem; color: var(--pub-text); letter-spacing: -.01em; }
.pub-rm-feature-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .625rem; font-size: .6875rem; font-weight: 500; color: var(--pub-text-secondary); background: var(--pub-bg-alt); border-radius: 1rem; border: 1px solid var(--pub-border); }
.pub-rm-feature-tag i { font-size: .5rem; }
.pub-rm-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.pub-rm-table thead tr { border-bottom: 2px solid var(--pub-border); }
.pub-rm-table tbody tr { border-bottom: 1px solid var(--pub-border); }
.pub-rm-table th { padding: .75rem .5rem; font-weight: 600; color: var(--pub-text-muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; }
.pub-rm-table td { padding: .75rem .5rem; }
.pub-rm-table-th-sm { padding: .625rem .75rem; font-size: .75rem; }
.pub-rm-table-td-sm { padding: .625rem .75rem; }
.pub-rm-table tr.pub-rm-table-total { border-top: 2px solid var(--pub-border); }
.pub-rm-td-primary { color: var(--pub-text); font-weight: 500; }
.pub-rm-td-accent { color: var(--pub-accent); font-weight: 600; }
.pub-rm-td-secondary { color: var(--pub-text-secondary); }
.pub-rm-td-bold { font-weight: 700; color: var(--pub-text); }
.pub-rm-td-tabular { font-variant-numeric: tabular-nums; }
.pub-rm-td-total-value { font-weight: 800; font-size: .9375rem; background: var(--pub-gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-variant-numeric: tabular-nums; }
.pub-rm-proj-th { text-align: center; padding: .75rem; font-weight: 700; }
.pub-rm-proj-th-accent { color: var(--pub-accent); }
.pub-rm-proj-th-secondary { color: var(--pub-text-secondary); font-weight: 600; }
.pub-rm-proj-td { padding: .625rem .75rem; text-align: center; }
.pub-rm-status-inline { display: inline-flex; align-items: center; gap: .25rem; font-size: .6875rem; font-weight: 600; }
.pub-rm-factor-row { display: flex; align-items: center; gap: 1rem; padding: .875rem 1rem; border-radius: .5rem; background: var(--pub-bg-alt); border-left: 3px solid; }
.pub-rm-factor-content { flex: 1; min-width: 0; }
.pub-rm-factor-value { flex-shrink: 0; text-align: right; }
.pub-rm-factor-pct { font-size: .875rem; font-weight: 800; }
.pub-rm-factor-mult { font-size: .625rem; color: var(--pub-text-muted); }
.pub-rm-formula { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: 1.25rem; border-radius: .5rem; background: var(--pub-bg-alt); margin-bottom: 1.5rem; justify-content: center; }
.pub-rm-formula-base { font-size: 1rem; font-weight: 800; color: var(--pub-text-muted); }
.pub-rm-formula-op { font-size: .875rem; color: var(--pub-accent); }
.pub-rm-formula-val { font-size: .875rem; font-weight: 700; color: var(--pub-text); }
.pub-rm-formula-result { font-size: 1.125rem; font-weight: 900; background: var(--pub-gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pub-rm-summary-bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-radius: .5rem; background: var(--pub-accent-glow); margin-top: 1rem; flex-wrap: wrap; gap: .5rem; }
.pub-rm-method-item { display: flex; align-items: flex-start; gap: .75rem; }
.pub-rm-method-icon { margin-top: .25rem; flex-shrink: 0; }
.pub-rm-method-text { font-size: .875rem; color: var(--pub-text-secondary); line-height: 1.7; }
.pub-rm-cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .375rem; flex-wrap: wrap; gap: .25rem; }
.pub-rm-criteria-card { padding: 1.25rem; border-radius: .5rem; background: var(--pub-bg-alt); border-left: 3px solid; }
.pub-rm-criteria-icon { width: 2.25rem; height: 2.25rem; border-radius: .5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pub-rm-invest-hero { padding: 2rem; text-align: center; }
.pub-rm-invest-hero-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.7); font-weight: 600; margin-bottom: .5rem; }
.pub-rm-invest-hero-title { font-size: 1.75rem; font-weight: 800; color: #fff; margin: 0 0 .5rem; }
.pub-rm-invest-hero-desc { color: rgba(255,255,255,.8); font-size: .9375rem; max-width: 600px; margin: 0 auto 1.5rem; }
.pub-rm-invest-status-pill { display: inline-flex; align-items: center; gap: .375rem; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); border-radius: 2rem; padding: .375rem 1rem; font-size: .8125rem; font-weight: 600; color: #fff; }
.pub-rm-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pub-rm-status-dot-open { background: #4ade80; }
.pub-rm-status-dot-paused { background: #fbbf24; }
.pub-rm-prio-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; flex-shrink: 0; }
.pub-rm-vote-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; min-width: 2.5rem; }
.pub-rm-benefit-item { display: flex; align-items: center; gap: .625rem; padding: .75rem 1rem; background: var(--pub-bg-tertiary); border-radius: .5rem; }
.pub-rm-reason-card { padding: 1rem; border: 1px solid var(--pub-border); border-radius: .5rem; }
.pub-rm-icon-heading { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.pub-rm-flag-icon { width: 2.25rem; height: 2.25rem; border-radius: .5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pub-rm-valuation-icon { width: 2.5rem; height: 2.5rem; border-radius: .625rem; background: var(--pub-accent-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pub-rm-cta-card { padding: 2rem; text-align: center; background: var(--pub-bg-tertiary); }
.pub-rm-cta-title { font-size: 1.25rem; font-weight: 800; color: var(--pub-text); margin: 0 0 .5rem; }
.pub-rm-cta-desc { font-size: .9375rem; color: var(--pub-text-muted); margin: 0 0 1.5rem; max-width: 500px; display: inline-block; }
.pub-rm-level-label { font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.pub-rm-fix-card { padding: .875rem; border-radius: .5rem; background: var(--pub-bg-alt); text-align: center; }
.pub-rm-fix-label { font-size: .75rem; font-weight: 600; color: var(--pub-text); margin-bottom: .25rem; }
.pub-rm-fix-values { font-size: .6875rem; color: var(--pub-text-muted); }
.pub-rm-fix-before { color: var(--pub-danger); text-decoration: line-through; }
.pub-rm-fix-arrow { margin: 0 .25rem; }
.pub-rm-fix-after { color: var(--pub-accent); font-weight: 700; }
.pub-rm-gate-error { background: color-mix(in srgb, var(--pub-danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pub-danger) 30%, transparent); border-radius: 0.5rem; padding: 0.75rem 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--pub-danger); }
.pub-rm-coverage-bar { display: flex; align-items: center; gap: .375rem; }
.pub-rm-coverage-pct { font-size: .6875rem; font-weight: 700; width: 2rem; text-align: right; }
.pub-rm-plugin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.pub-rm-plugin-title { font-weight: 700; font-size: .875rem; color: var(--pub-text); letter-spacing: -.01em; }
.pub-rm-plugin-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: .375rem; }
.pub-rm-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pub-rm-bullet-item { display: flex; align-items: flex-start; gap: .5rem; font-size: .8125rem; color: var(--pub-text-secondary); }
.pub-rm-bullet-dot { font-size: .3rem; margin-top: .5rem; color: var(--pub-accent); flex-shrink: 0; }
.pub-rm-score-subtitle { font-size: .8125rem; color: var(--pub-text-secondary); margin-top: .5rem; }
.pub-rm-feat-grid-sm { --feat-min: 11rem; }

@media (max-width: 767px) {
    .pub-rm-grid-kpis { grid-template-columns: 1fr 1fr; }
    .pub-rm-grid-cost { grid-template-columns: 1fr 1fr; }
    .pub-rm-grid-invest-details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
    .pub-rm-grid-kpis, .pub-rm-grid-cost, .pub-rm-grid-invest-details { grid-template-columns: 1fr; }
}

/* ===== AFFILIATES PAGE ===== */
.pub-aff-hero-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; margin-top: 2rem; flex-wrap: wrap;
}
.pub-aff-card-title {
    font-weight: 700; font-size: 1.0625rem; margin-bottom: .5rem;
    letter-spacing: -.01em; color: var(--pub-text);
}
.pub-aff-card-desc {
    font-size: .875rem; line-height: 1.65; color: var(--pub-text-secondary);
}
.pub-aff-card-desc-lg {
    font-size: .9375rem; color: var(--pub-text-secondary); line-height: 1.7;
}
.pub-aff-step-badge {
    position: absolute; top: 1rem; right: 1.25rem;
    width: 2rem; height: 2rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 800;
    background: var(--pub-accent-glow); color: var(--pub-accent);
}
.pub-aff-benefit-card {
    padding: 2rem; border-radius: var(--pub-radius-card);
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    transition: all var(--pub-transition-normal);
    position: relative; overflow: hidden;
}
.pub-aff-benefit-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.pub-aff-gradient-top {
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px; background: var(--pub-gradient-1);
}
.pub-aff-tier-card {
    padding: 1.5rem; border-radius: var(--pub-radius-card);
    background: var(--pub-bg-card); text-align: center;
    transition: all var(--pub-transition-normal);
    position: relative; overflow: hidden;
}
.pub-aff-tier-card--default { border: 1px solid var(--pub-border); }
.pub-aff-tier-card--highlight { border: 2px solid var(--pub-accent); }
.pub-aff-popular-badge {
    position: absolute; top: .5rem; right: .5rem;
    font-size: .625rem; font-weight: 700; color: var(--pub-accent);
    background: var(--pub-accent-glow); padding: .125rem .5rem;
    border-radius: 1rem; text-transform: uppercase; letter-spacing: .05em;
}
.pub-aff-tier-icon {
    width: 2.75rem; height: 2.75rem; border-radius: .625rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; background: var(--pub-accent-glow);
    color: var(--pub-accent); margin: 0 auto 1rem;
}
.pub-aff-tier-name {
    font-weight: 700; font-size: 1rem; color: var(--pub-text); margin-bottom: .375rem;
}
.pub-aff-tier-range {
    font-size: .8125rem; color: var(--pub-text-muted); margin-bottom: .75rem;
}
.pub-aff-tier-bonus {
    font-size: .75rem; color: var(--pub-text-secondary);
    padding-top: .75rem; border-top: 1px solid var(--pub-border);
}
.pub-aff-proof-card {
    text-align: center; padding: 1.5rem;
    border-radius: var(--pub-radius-card);
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
}
.pub-aff-proof-icon {
    width: 2.5rem; height: 2.5rem; border-radius: .5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: .875rem; background: var(--pub-accent-glow);
    color: var(--pub-accent); margin: 0 auto .75rem;
}
.pub-aff-proof-label {
    font-size: .8125rem; color: var(--pub-text-muted); margin-top: .25rem;
}
.pub-aff-sim-card {
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card); overflow: hidden;
}
.pub-aff-sim-controls {
    padding: 2rem; border-bottom: 1px solid var(--pub-border);
}
.pub-aff-sim-results { padding: 2rem; background: var(--pub-bg); }
.pub-aff-sim-label {
    font-size: .8125rem; font-weight: 600; color: var(--pub-text-muted);
    text-transform: uppercase; letter-spacing: .05em;
    display: block; margin-bottom: .5rem;
}
.pub-aff-sim-placeholder {
    padding: .625rem 1rem; border: 1px solid var(--pub-border);
    border-radius: .5rem; background: var(--pub-bg);
    color: var(--pub-text); font-size: .9375rem;
}
.pub-aff-slider-row {
    display: flex; align-items: center; gap: 1rem;
}
.pub-aff-slider {
    flex: 1; accent-color: var(--pub-accent); height: 6px; cursor: pointer;
}
.pub-aff-slider-value {
    min-width: 3rem; text-align: center; font-size: 1.25rem;
    font-weight: 700; color: var(--pub-accent);
}
.pub-aff-tier-badge {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 1.5rem; padding: .75rem 1rem;
    border-radius: .5rem; background: var(--pub-accent-glow); width: fit-content;
}
.pub-aff-tier-badge-icon { color: var(--pub-accent); font-size: 1rem; }
.pub-aff-tier-badge-text { font-size: .875rem; font-weight: 600; color: var(--pub-accent); }
.pub-aff-results-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.5rem;
}
.pub-aff-result-box {
    text-align: center; padding: 1.5rem;
    border-radius: var(--pub-radius-card);
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
}
.pub-aff-result-box--featured { position: relative; overflow: hidden; }
.pub-aff-result-label {
    font-size: .75rem; font-weight: 600; color: var(--pub-text-muted);
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem;
}
.pub-aff-result-value {
    font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em;
}
.pub-aff-result-value--accent { color: var(--pub-accent); }
.pub-aff-result-value--text { color: var(--pub-text); }
.pub-aff-result-sub {
    font-size: .75rem; color: var(--pub-text-muted); margin-top: .375rem;
}
.pub-aff-progress-wrap {
    margin-top: 1.5rem; padding: 1rem 1.25rem;
    border-radius: .5rem; background: var(--pub-bg-card);
    border: 1px solid var(--pub-border); display: none;
}
.pub-aff-progress-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: .5rem;
}
.pub-aff-progress-text {
    font-size: .8125rem; font-weight: 500; color: var(--pub-text-secondary);
}
.pub-aff-progress-rate {
    font-size: .8125rem; font-weight: 700; color: var(--pub-accent);
}
.pub-aff-progress-bar-bg {
    height: 6px; border-radius: 3px;
    background: var(--pub-border); overflow: hidden;
}
.pub-aff-progress-bar {
    height: 100%; border-radius: 3px; background: var(--pub-accent);
    transition: width 300ms ease; width: 0%;
}
.pub-aff-sim-cta {
    padding: 1.25rem 2rem; border-top: 1px solid var(--pub-border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem; background: var(--pub-bg-card);
}
.pub-aff-sim-info {
    font-size: .8125rem; color: var(--pub-text-muted); line-height: 1.5;
}
.pub-aff-sim-info i { margin-right: .375rem; }
.pub-aff-info-note {
    text-align: center; margin-top: 1.25rem;
    font-size: .8125rem; color: var(--pub-text-muted); line-height: 1.6;
}
.pub-aff-info-note i { margin-right: .375rem; }
.pub-aff-autofit-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.pub-aff-tier-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem; margin-top: 2rem;
}
.pub-aff-proof-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem; margin-top: 2rem;
}
.pub-aff-faq-list {
    display: flex; flex-direction: column; gap: .75rem;
}

/* ===== BUY PAGE (SMM) — Embedded styles moved to CSS ===== */
/* SMM SERVICE BADGES */
.smm-svc-badge {
    display: inline-flex; align-items: center;
    padding: 0.125rem 0.5rem; font-size: 0.65em; font-weight: 600;
    line-height: 1.4; border-radius: 0.25rem;
    white-space: nowrap; vertical-align: middle; margin-left: 0.125rem;
}
.smm-svc-country, .smm-svc-brazil, .smm-svc-mundiais {
    background: rgba(249,115,22,.1); color: #ea580c; border: 1px solid rgba(249,115,22,.2);
}
.smm-svc-mixed, .smm-svc-mistos {
    background: rgba(139,92,246,.1); color: #8b5cf6; border: 1px solid rgba(139,92,246,.2);
}
.smm-svc-warranty, .smm-svc-garantia {
    background: rgba(16,185,129,.1); color: #059669; border: 1px solid rgba(16,185,129,.2);
}
.smm-svc-no-warranty, .smm-svc-sem-garantia {
    background: rgba(239,68,68,.1); color: #dc2626; border: 1px solid rgba(239,68,68,.2);
}
.smm-svc-premium, .smm-svc-high-quality, .smm-svc-hq {
    background: rgba(234,179,8,.1); color: #ca8a04; border: 1px solid rgba(234,179,8,.2);
}
.smm-svc-standard {
    background: rgba(100,116,139,.1); color: #475569; border: 1px solid rgba(100,116,139,.2);
}
.smm-svc-refill {
    background: rgba(59,130,246,.1); color: #2563eb; border: 1px solid rgba(59,130,246,.2);
}
.smm-svc-instant, .smm-svc-fast {
    background: rgba(245,158,11,.1); color: #d97706; border: 1px solid rgba(245,158,11,.2);
}
.smm-svc-slow {
    background: rgba(14,165,233,.1); color: #0284c7; border: 1px solid rgba(14,165,233,.2);
}
.smm-svc-real {
    background: rgba(139,92,246,.1); color: #8b5cf6; border: 1px solid rgba(139,92,246,.2);
}
.smm-svc-drip {
    background: rgba(6,182,212,.1); color: #0891b2; border: 1px solid rgba(6,182,212,.2);
}
.smm-svc-secondary {
    background: rgba(148,163,184,.1); color: #64748b; border: 1px solid rgba(148,163,184,.2);
}
.smm-svc-nondrop, .smm-svc-non-drop {
    background: rgba(5,150,105,.1); color: #047857; border: 1px solid rgba(5,150,105,.2);
}
.smm-svc-bot {
    background: rgba(100,116,139,.15); color: #475569; border: 1px solid rgba(100,116,139,.25);
}
.smm-svc-male {
    background: rgba(59,130,246,.1); color: #2563eb; border: 1px solid rgba(59,130,246,.2);
}
.smm-svc-female {
    background: rgba(236,72,153,.1); color: #db2777; border: 1px solid rgba(236,72,153,.2);
}
/* Dark mode badges */
.dark .smm-svc-badge { box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.dark .smm-svc-country, .dark .smm-svc-brazil, .dark .smm-svc-mundiais {
    background: rgba(249,115,22,.2); color: #fb923c;
}
.dark .smm-svc-mixed, .dark .smm-svc-mistos {
    background: rgba(139,92,246,.2); color: #c4b5fd;
}
.dark .smm-svc-warranty, .dark .smm-svc-garantia {
    background: rgba(16,185,129,.2); color: #6ee7b7;
}
.dark .smm-svc-no-warranty, .dark .smm-svc-sem-garantia {
    background: rgba(239,68,68,.2); color: #fca5a5;
}
.dark .smm-svc-secondary { background: rgba(148,163,184,.2); color: #cbd5e1; }
.dark .smm-svc-nondrop, .dark .smm-svc-non-drop { background: rgba(5,150,105,.2); color: #6ee7b7; }
.dark .smm-svc-fast, .dark .smm-svc-instant { background: rgba(245,158,11,.2); color: #fcd34d; }
.dark .smm-svc-bot { background: rgba(100,116,139,.25); color: #94a3b8; }
.dark .smm-svc-male { background: rgba(59,130,246,.2); color: #93c5fd; }
.dark .smm-svc-female { background: rgba(236,72,153,.2); color: #f9a8d4; }

/* BUY PAGE — HIGH CONTRAST DARK MODE */
.buy-card {
    background: var(--pub-bg-card-solid);
    border-radius: .75rem;
    border: 1px solid var(--pub-border);
    padding: 1.5rem;
    box-shadow: var(--pub-shadow-sm);
}
.buy-card-header {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pub-text);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.buy-card-header i { color: var(--pub-accent); }
.buy-title { font-size: 1.125rem; font-weight: 700; color: var(--pub-text); }
.buy-muted { font-size: .8125rem; color: var(--pub-text-muted); }

/* Fields */
.buy-field { margin-bottom: 1rem; }
.buy-label {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--pub-text);
    margin-bottom: .375rem;
}
.buy-label i { font-size: .75rem; color: var(--pub-text-muted); }
.buy-input, .buy-select {
    width: 100%;
    padding: .625rem .75rem;
    border-radius: .5rem;
    border: 1px solid var(--pub-border);
    background: var(--pub-bg-card-elevated);
    color: var(--pub-text);
    font-size: .875rem;
    transition: border-color .15s ease, box-shadow .15s ease;
    outline: none;
}
.buy-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}
.buy-input::placeholder { color: var(--pub-text-dim); }
.buy-input:focus, .buy-select:focus {
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 3px var(--pub-accent-glow);
}
.buy-select option { background: var(--pub-bg-card-solid); color: var(--pub-text); }
.buy-hint { font-size: .75rem; color: var(--pub-text-dim); margin-top: .25rem; display: block; }

/* Search */
.buy-search-wrapper { position: relative; }
.buy-search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .75rem;
    color: var(--pub-text-dim);
    pointer-events: none;
}
.buy-input-search { padding-left: 2.25rem; padding-right: 2.25rem; }
.buy-search-clear {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--pub-text-muted);
    cursor: pointer;
    font-size: .75rem;
    padding: .25rem;
}
.buy-search-results {
    position: absolute;
    z-index: 50;
    width: 100%;
    max-height: 20rem;
    overflow-y: auto;
    background: var(--pub-bg-card-solid);
    border: 1px solid var(--pub-border);
    border-top: none;
    border-radius: 0 0 .5rem .5rem;
    box-shadow: var(--pub-shadow-md);
}
.buy-search-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .625rem .75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--pub-border);
    transition: background .1s;
}
.buy-search-item:last-child { border-bottom: none; }
.buy-search-item:hover { background: var(--pub-accent-subtle); }
.buy-search-item-id {
    font-size: .625rem;
    font-weight: 700;
    color: var(--pub-accent);
    background: var(--pub-accent-glow);
    padding: .125rem .375rem;
    border-radius: .25rem;
    white-space: nowrap;
    font-family: monospace;
}
.buy-search-item-name {
    flex: 1;
    font-size: .8125rem;
    color: var(--pub-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}
.buy-search-item-price {
    font-size: .75rem;
    font-weight: 600;
    color: var(--pub-text-secondary);
    white-space: nowrap;
}
.buy-search-item-cat {
    font-size: .625rem;
    color: var(--pub-text-dim);
    background: var(--pub-bg-subtle);
    padding: .125rem .375rem;
    border-radius: .25rem;
    white-space: nowrap;
}

/* Custom service select */
.buy-service-select {
    display: flex;
    align-items: center;
    padding: .625rem .75rem;
    border-radius: .5rem;
    border: 1px solid var(--pub-border);
    background: var(--pub-bg-card-elevated);
    color: var(--pub-text);
    cursor: pointer;
    transition: border-color .15s;
    min-height: 2.625rem;
}
.buy-service-select:hover { border-color: var(--pub-border-hover); }
.buy-service-text { flex: 1; font-size: .875rem; color: var(--pub-text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-service-text.has-value { color: var(--pub-text); }
.buy-service-arrow { font-size: .625rem; color: var(--pub-text-muted); margin-left: .5rem; transition: transform .2s; }
.buy-service-dropdown {
    border: 1px solid var(--pub-border);
    border-radius: .5rem;
    background: var(--pub-bg-card-solid);
    box-shadow: var(--pub-shadow-md);
    margin-top: .25rem;
    overflow: hidden;
}
.buy-service-dropdown-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--pub-border);
}
.buy-service-dropdown-search i { font-size: .75rem; color: var(--pub-text-dim); }
.buy-service-dropdown-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--pub-text);
    font-size: .8125rem;
}
.buy-service-dropdown-search input::placeholder { color: var(--pub-text-dim); }
.buy-service-list { max-height: 16rem; overflow-y: auto; }
.buy-svc-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background .1s;
}
.buy-svc-item:hover { background: var(--pub-accent-subtle); }
.buy-svc-item.selected { background: var(--pub-accent-glow); }
.buy-svc-id {
    font-size: .5625rem;
    font-weight: 700;
    color: var(--pub-accent);
    background: var(--pub-accent-glow);
    padding: .0625rem .3125rem;
    border-radius: .1875rem;
    font-family: monospace;
    white-space: nowrap;
}
.buy-svc-name { flex: 1; font-size: .8125rem; color: var(--pub-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.buy-svc-price { font-size: .6875rem; font-weight: 600; color: #10b981; white-space: nowrap; }

/* Preview card */
.buy-preview {
    background: var(--pub-bg-card-elevated);
    border: 1px solid var(--pub-border);
    border-radius: .5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}
.buy-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}
.buy-preview-title { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; }
.buy-preview-id {
    font-size: .625rem;
    font-weight: 700;
    color: var(--pub-accent);
    background: var(--pub-accent-glow);
    padding: .125rem .375rem;
    border-radius: .25rem;
    font-family: monospace;
    flex-shrink: 0;
}
.buy-preview-name { font-size: .9375rem; font-weight: 700; color: var(--pub-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-badge { font-size: .625rem; font-weight: 700; padding: .1875rem .5rem; border-radius: 9999px; white-space: nowrap; }
.buy-badge-price { background: rgba(16,185,129,.15); color: #34d399; }
.buy-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}
.buy-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .125rem;
    padding: .5rem;
    background: var(--pub-bg-subtle);
    border-radius: .375rem;
}
.buy-stat i { font-size: .625rem; color: var(--pub-text-dim); }
.buy-stat-label { font-size: .5625rem; color: var(--pub-text-dim); text-transform: uppercase; letter-spacing: .04em; }
.buy-stat-value { font-size: .75rem; font-weight: 700; color: var(--pub-text); }
.buy-stat-highlight { color: #fbbf24; }
.buy-preview-desc {
    display: flex;
    align-items: flex-start;
    gap: .375rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--pub-border);
    font-size: .75rem;
    color: var(--pub-text-muted);
    line-height: 1.5;
}
.buy-preview-desc i { color: var(--pub-accent); margin-top: .125rem; flex-shrink: 0; font-size: .6875rem; }

/* Summary */
.buy-summary {
    background: var(--pub-bg-card-elevated);
    border: 1px solid var(--pub-border);
    border-radius: .5rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}
.buy-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: .8125rem;
    color: var(--pub-text-secondary);
    margin-bottom: .375rem;
}
.buy-summary-total {
    padding-top: .625rem;
    border-top: 1px solid var(--pub-border);
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--pub-text);
    font-weight: 700;
}
.buy-summary-total span:last-child {
    color: #34d399;
    font-size: 1.125rem;
    font-weight: 800;
}

/* Alerts */
.buy-alert {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    border-radius: .5rem;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    font-size: .8125rem;
    color: var(--pub-text-secondary);
    line-height: 1.5;
}
.buy-alert i { flex-shrink: 0; margin-top: .125rem; }
.buy-alert-success { background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2); }
.buy-alert-success i { color: #10b981; }
.buy-alert-info { background: rgba(14,165,233,.08); border: 1px solid rgba(14,165,233,.2); }
.buy-alert-info i { color: #0ea5e9; }
.buy-alert-warning { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2); }
.buy-alert-warning i { color: #f59e0b; }

/* OTP input */
.buy-input-otp {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: .5rem;
    font-weight: 700;
    font-family: monospace;
}

/* Buttons */
.buy-ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    padding: .625rem 1rem;
    border-radius: .5rem;
    border: 1px solid var(--pub-border);
    background: transparent;
    color: var(--pub-text-secondary);
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
}
.buy-ghost-btn:hover { border-color: var(--pub-accent); color: var(--pub-text); }
.buy-warning-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .625rem 1rem;
    border-radius: .5rem;
    border: none;
    background: #f59e0b;
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
}
.buy-link-btn {
    display: block;
    margin: .75rem auto 0;
    background: none;
    border: none;
    color: var(--pub-text-muted);
    font-size: .8125rem;
    cursor: pointer;
    text-decoration: underline;
}
.buy-separator {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0;
}
.buy-separator::before, .buy-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--pub-border);
}
.buy-separator span {
    font-size: .75rem;
    color: var(--pub-text-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Confirm */
.buy-confirm-box {
    background: var(--pub-bg-card-elevated);
    border: 1px solid var(--pub-border);
    border-radius: .5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.buy-confirm-id {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pub-text);
    letter-spacing: .1rem;
    font-family: monospace;
}

/* Modal */
.buy-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.buy-modal {
    background: var(--pub-bg-card-solid);
    border-radius: .75rem;
    border: 1px solid var(--pub-border);
    max-width: 28rem;
    width: 90%;
    padding: 2rem;
}
.buy-modal-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.buy-modal-icon-warning { background: rgba(245,158,11,.12); color: #f59e0b; }
.buy-modal-icon-success { background: rgba(16,185,129,.12); color: #10b981; }

/* Steps */
.buy-step { display: flex; align-items: center; gap: .5rem; }
.buy-step-num {
    width: 2rem; height: 2rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
    background: var(--pub-bg-card-elevated); color: var(--pub-text-dim);
    border: 1px solid var(--pub-border);
    transition: all .2s ease;
}
.buy-step-label { font-size: .75rem; color: var(--pub-text-dim); font-weight: 500; transition: color .2s; }
.buy-step.active .buy-step-num { background: var(--pub-accent); color: #fff; border-color: var(--pub-accent); }
.buy-step.active .buy-step-label { color: var(--pub-text); font-weight: 600; }
.buy-step.completed .buy-step-num { background: #10b981; color: #fff; border-color: #10b981; }
.buy-step.completed .buy-step-label { color: #34d399; }
.buy-step-line { flex: 1; height: 2px; background: var(--pub-border); max-width: 3rem; }
/* Optional label */
.buy-optional { font-weight: 400; font-size: .75rem; color: var(--pub-text-dim); }

/* Drip Feed toggle */
.buy-drip-toggle { display: flex; align-items: center; gap: .75rem; }
.buy-toggle {
    position: relative; display: inline-block;
    width: 2.5rem; height: 1.375rem; flex-shrink: 0;
}
.buy-toggle input { opacity: 0; width: 0; height: 0; }
.buy-toggle-slider {
    position: absolute; inset: 0; cursor: pointer;
    background: var(--pub-bg-subtle); border-radius: 9999px;
    border: 1px solid var(--pub-border);
    transition: background .2s;
}
.buy-toggle-slider::before {
    content: ''; position: absolute;
    width: 1rem; height: 1rem; border-radius: 50%;
    left: .125rem; bottom: .125rem;
    background: var(--pub-text-muted);
    transition: transform .2s, background .2s;
}
.buy-toggle input:checked + .buy-toggle-slider {
    background: var(--pub-accent); border-color: var(--pub-accent);
}
.buy-toggle input:checked + .buy-toggle-slider::before {
    transform: translateX(1.125rem); background: #fff;
}

/* Extra fields */
.buy-extra-field {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--pub-bg-card-elevated);
    border: 1px solid var(--pub-border);
    border-radius: .5rem;
    border-left: 3px solid var(--pub-accent);
}
.buy-extra-field textarea {
    resize: vertical;
    font-family: monospace;
    font-size: .8125rem;
    line-height: 1.6;
}
.buy-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-top: .5rem;
}
.buy-label-sm {
    font-size: .75rem;
    font-weight: 500;
    color: var(--pub-text-secondary);
    margin-bottom: .25rem;
    display: block;
}

/* Cart items */
.buy-cart-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .625rem .5rem; border-bottom: 1px solid var(--pub-border);
}
.buy-cart-item:last-child { border-bottom: none; }
.buy-cart-item-num { font-size: .625rem; color: var(--pub-text-dim); font-weight: 700; white-space: nowrap; }
.buy-cart-item-info { flex: 1; min-width: 0; }
.buy-cart-item-name {
    font-size: .8125rem; color: var(--pub-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.buy-cart-item-badges {
    display: flex; align-items: center; gap: .25rem; flex-wrap: wrap;
    margin-top: .125rem;
}
.buy-cart-item-badges .smm-svc-badge {
    font-size: .5625rem; padding: .0625rem .3125rem; line-height: 1.5;
}
.buy-cart-item-meta {
    font-size: .6875rem; color: var(--pub-text-muted); margin-top: .125rem;
    display: flex; gap: .5rem; flex-wrap: wrap;
}
.buy-cart-item-price { font-size: .875rem; font-weight: 700; color: #34d399; white-space: nowrap; }
.buy-cart-remove {
    background: none; border: none; color: var(--pub-text-dim);
    cursor: pointer; padding: .25rem; font-size: .75rem; transition: color .15s;
}
.buy-cart-remove:hover { color: #ef4444; }

/* Confirm multi-order items */
.confirm-order-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .625rem .75rem; border-bottom: 1px solid var(--pub-border);
    background: var(--pub-bg-card-elevated); border-radius: .375rem; margin-bottom: .375rem;
}
.confirm-order-item:last-child { margin-bottom: 0; }
.confirm-order-id { font-family: 'JetBrains Mono', monospace; font-size: .75rem; font-weight: 700; color: var(--pub-text); white-space: nowrap; }
.confirm-order-name { flex: 1; font-size: .75rem; color: var(--pub-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confirm-order-price { font-size: .8125rem; font-weight: 700; color: #34d399; white-space: nowrap; }

/* Buy page utility classes */
.pub-buy-hero { padding: 3rem 0 2rem; }
.pub-buy-hero-inner { text-align: center; display: block; }
.pub-buy-hero-title { font-size: 2rem; margin-bottom: .75rem; }
.pub-buy-hero-sub {
    font-size: 1rem; color: rgba(255,255,255,.6);
    max-width: 32rem; margin: 0 auto 1.25rem;
}
.pub-buy-hero-actions {
    display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
}
.pub-buy-hero-btn { font-size: .8125rem; padding: .5rem 1rem; }
.pub-buy-empty-icon {
    font-size: 2rem; color: var(--pub-text-muted); margin-bottom: 1rem;
}
.pub-buy-step-indicator {
    display: flex; align-items: center; justify-content: center;
    gap: .5rem; margin-bottom: 2rem;
}
.pub-buy-flex-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.pub-buy-confirm-center { text-align: center; }
.pub-buy-confirm-label {
    font-size: .6875rem; text-transform: uppercase;
    letter-spacing: .05em; margin-bottom: .375rem;
    color: var(--pub-text-muted);
}
.pub-buy-confirm-actions {
    display: flex; gap: .75rem; justify-content: center;
    flex-wrap: wrap; margin-top: 1.5rem;
}
.pub-buy-guest-modal-header { text-align: center; margin-bottom: 1.25rem; }
.pub-buy-guest-warning { line-height: 1.6; margin-bottom: 1.5rem; }
.pub-buy-guest-warning ul { padding-left: 1.25rem; list-style: disc; }
.pub-buy-guest-warning p { margin-bottom: .75rem; }
.pub-buy-guest-warning strong { color: var(--pub-text); }
.pub-buy-modal-actions { display: flex; gap: .75rem; }
.pub-buy-confirm-grand-total {
    color: #34d399; font-weight: 800; font-size: 1.125rem;
}
.pub-buy-search-empty {
    padding: .75rem; text-align: center;
    color: var(--pub-text-dim); font-size: .8125rem;
}

@media (max-width: 479px) {
    .buy-step-label { display: none; }
    .buy-preview-stats { grid-template-columns: 1fr 1fr; }
    .buy-extra-grid { grid-template-columns: 1fr; }
}

/* ===== SHARED SEARCH + STATS (bdir-*) ===== */
/* Used across: audit/analyze, seo/analyze, reportsec/analyze, tools, jobs, news, marketplace, business-directory */

.bdir-search-wrap { max-width: 40rem; margin: 2rem auto 0; }
.bdir-search-form {
    display: flex; align-items: stretch;
    border-radius: 9999px; overflow: hidden;
    border: 2px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0,0,0,.15);
    transition: all var(--pub-transition-fast);
}
.bdir-search-form:focus-within {
    border-color: var(--pub-accent);
    box-shadow: 0 4px 32px rgba(0,0,0,.2), 0 0 0 3px var(--pub-accent-glow, rgba(139,92,246,.2));
}
.bdir-search-input-wrap { flex: 1; position: relative; min-width: 0; display: flex; align-items: stretch; }
.bdir-search-icon {
    position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,.5); font-size: .9375rem; pointer-events: none;
    z-index: 2;
}
.bdir-search-input {
    flex: 1; min-width: 0; height: 100%; padding: 1rem 1rem 1rem 3.5rem;
    background: transparent; border: none; outline: none;
    font-size: 1rem; color: #fff;
    font-family: inherit; box-sizing: border-box;
}
/* When input is not the first child (no icon), remove extra left padding */
.bdir-search-input ~ .bdir-search-input { padding-left: 1rem; }
.bdir-search-input::placeholder { color: rgba(255,255,255,.5); }
/* Selects inside search bar */
select.bdir-search-input {
    -webkit-appearance: none; appearance: none; cursor: pointer;
    padding-left: 1rem; flex: 0 0 auto; min-width: 140px; max-width: 200px;
    border-left: 1px solid rgba(255,255,255,.15);
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    background-size: 10px;
    padding-right: 2rem;
}
select.bdir-search-input option { color: #1f2937; background: #fff; }
.bdir-search-btn {
    border-radius: 0 9999px 9999px 0 !important;
    padding: 1rem 2rem; white-space: nowrap; flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,.1);
    font-weight: 600; font-size: .9375rem;
}
.bdir-stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    max-width: 42rem; margin: 0 auto;
}
.bdir-stat-card {
    text-align: center; padding: 1.75rem 1rem;
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card);
    transition: border-color var(--pub-transition-fast);
}
.bdir-stat-card:hover { border-color: var(--pub-accent); }
.bdir-stat-value {
    font-size: 2rem; font-weight: 800; color: var(--pub-text);
    letter-spacing: -.03em; line-height: 1;
}
.bdir-stat-label {
    font-size: .75rem; font-weight: 500;
    color: var(--pub-text-muted); margin-top: .5rem;
}

@media (max-width: 767px) {
    .bdir-search-form { flex-direction: column; border-radius: var(--pub-radius-card); }
    .bdir-search-input-wrap { width: 100%; }
    .bdir-search-form > select.bdir-search-input,
    .bdir-search-form > input.bdir-search-input { max-width: 100% !important; width: 100%; border-left: none; border-top: 1px solid rgba(255,255,255,.15); padding: 1rem; }
    .bdir-search-btn { border-radius: 0 !important; width: 100%; justify-content: center; border-left: none !important; border-top: 1px solid var(--pub-border); }
    .bdir-stats-grid { gap: 1rem; }
}
@media (max-width: 479px) {
    .bdir-stats-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
    .bdir-stat-card { padding: 1rem .5rem; }
    .bdir-stat-value { font-size: 1.5rem; }
}

/* ===== QUICK TABS (category pills below hero search) ===== */
/* Used across: tools/index, tools/explore, tools/category, jobs/explore, marketplace/ecommerce, news/read */

.bdir-quick-tabs {
    display: flex; flex-wrap: wrap; gap: .5rem;
    justify-content: center; margin-top: 1.5rem;
}
.bdir-quick-tab {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .4rem 1rem; border-radius: 9999px;
    font-size: .8125rem; font-weight: 500;
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    text-decoration: none; white-space: nowrap;
    transition: all var(--pub-transition-fast);
}
.bdir-quick-tab:hover {
    color: #fff; background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.25);
}
.bdir-quick-tab.active {
    color: #fff; background: var(--pub-accent);
    border-color: var(--pub-accent);
}

/* ===== ACTIVE FILTERS (search result indicators) ===== */
/* Used across: tools/explore */

.bdir-active-filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    margin-bottom: 1.5rem; padding: .75rem 1rem;
    background: var(--pub-bg-card); border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius-card);
}
.bdir-filter-label {
    font-size: .8125rem; font-weight: 600;
    color: var(--pub-text-secondary);
}
.bdir-filter-tag {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .75rem; border-radius: 9999px;
    font-size: .8125rem; font-weight: 500;
    background: var(--pub-accent-glow); color: var(--pub-accent);
    text-decoration: none;
    transition: all var(--pub-transition-fast);
}
.bdir-filter-tag:hover { background: var(--pub-accent-strong); }
.bdir-filter-clear {
    font-size: .75rem; color: var(--pub-text-muted);
    text-decoration: none; margin-left: auto;
    transition: color var(--pub-transition-fast);
}
.bdir-filter-clear:hover { color: var(--pub-danger); }

@media (max-width: 767px) {
    .bdir-quick-tabs { gap: .375rem; }
    .bdir-quick-tab { padding: .35rem .75rem; font-size: .75rem; }
}

/* ===== PRINT ===== */
@media print {
    .pub-header, .pub-footer, .pub-mobile-overlay, .pub-mobile-panel, .pub-mesh-bg { display: none !important; }
    .pub-page { background: #fff; color: #000; }
    .pub-card, .pub-card-static { box-shadow: none; border: 1px solid #ddd; }
}
