/* ==========================================================================
   AGENTS-CLI SAAS UI - PREMIUM STYLES
   ========================================================================== */

   :root {
    --bg-color: #050505;
    --surface-color: rgba(20, 20, 22, 0.7);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-glow: rgba(88, 166, 255, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --text-muted: #57606a;
    
    --accent-blue: #58a6ff;
    --accent-purple: #bc8cff;
    --accent-green: #3fb950;
    --accent-orange: #d29922;
    --accent-pink: #ff7b72;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    --gradient-glow: linear-gradient(135deg, rgba(88,166,255,0.4), rgba(188,140,255,0.4));
    --gradient-enterprise: linear-gradient(135deg, #ff7b72, #d29922, #bc8cff);
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-blue);
}

/* Ambient Animated Background */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #1a1a24 0%, var(--bg-color) 60%);
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: rgba(88, 166, 255, 0.15);
    animation-delay: 0s;
}

.blob-2 {
    top: 40%; right: -20%;
    width: 600px; height: 600px;
    background: rgba(188, 140, 255, 0.12);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -20%; left: 20%;
    width: 400px; height: 400px;
    background: rgba(63, 185, 80, 0.1);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
}

.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    font-family: var(--font-body);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    margin-top: auto;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #e0e0e0;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-gradient {
    background: var(--gradient-enterprise);
    color: var(--bg-color);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #bc8cff, #ff7b72, #d29922);
    z-index: -1;
    transition: opacity var(--transition-fast);
    opacity: 0;
}

.btn-gradient:hover::before { opacity: 1; }
.btn-gradient:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(188, 140, 255, 0.4);
}

/* Shine Animation */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg) translateY(-100%);
    animation: shineEffect 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shineEffect {
    0% { transform: rotate(45deg) translateY(-100%); }
    20%, 100% { transform: rotate(45deg) translateY(100%); }
}

/* New Hover Effects */
.pricing-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.pricing-card:hover::after {
    opacity: 1;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--surface-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon { filter: drop-shadow(0 0 8px rgba(88,166,255,0.6)); }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover { color: var(--text-primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Profile in Nav */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-pill);
    border: 1px solid var(--surface-border);
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
}

/* Extension Status */
.extension-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--surface-border);
}

.extension-status.connected { color: var(--accent-green); border-color: rgba(63, 185, 80, 0.3); }
.extension-status.disconnected { color: var(--accent-pink); border-color: rgba(255, 123, 114, 0.3); }

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.extension-status.connected .status-indicator {
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 32px;
    border: 1px solid rgba(188, 140, 255, 0.3);
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-purple);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(188, 140, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(188, 140, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(188, 140, 255, 0); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto; margin-right: auto;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

/* Terminal Preview */
.terminal-preview {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    border: 1px solid var(--surface-border);
    position: relative;
    overflow: hidden;
}

.terminal-preview::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0; height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.terminal-header {
    background: rgba(0,0,0,0.3);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--surface-border);
}

.mac-btns {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.mac-btns span {
    width: 12px; height: 12px;
    border-radius: 50%;
}

.mac-btns .close { background: #ff5f56; }
.mac-btns .min { background: #ffbd2e; }
.mac-btns .max { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
}

.terminal-body p { margin-bottom: 8px; opacity: 0; animation: typeLine 0.1s forwards; }
.terminal-body p:nth-child(1) { animation-delay: 0.5s; }
.terminal-body p:nth-child(2) { animation-delay: 1.2s; }
.terminal-body p:nth-child(3) { animation-delay: 2.0s; }
.terminal-body p:nth-child(4) { animation-delay: 2.8s; }
.terminal-body p:nth-child(5) { animation-delay: 4.0s; }
.terminal-body p:nth-child(6) { animation-delay: 4.8s; }

@keyframes typeLine {
    to { opacity: 1; }
}

.prompt { color: var(--accent-pink); margin-right: 8px; }
.success { color: var(--accent-green); }
.info { color: var(--accent-blue); }

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: #000;
    position: relative;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.section-header { margin-bottom: 64px; }
.section-title { font-size: 40px; margin-bottom: 16px; }
.section-description { color: var(--text-secondary); font-size: 18px; max-width: 600px; margin: 0 auto 32px; }

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: var(--radius-pill);
    margin: 0 auto;
}

.toggle-btn {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-secondary);
    border: none;
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.toggle-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.discount-badge {
    position: absolute;
    top: -12px; right: -10px;
    background: rgba(63, 185, 80, 0.2);
    color: var(--accent-green);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(63, 185, 80, 0.3);
    white-space: nowrap;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.pop {
    background: rgba(88, 166, 255, 0.03);
    border-color: rgba(88, 166, 255, 0.3);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.pop:hover { border-color: rgba(88, 166, 255, 0.5); transform: scale(1.05) translateY(-4px); }

.pricing-card.premium:hover { border-color: rgba(188, 140, 255, 0.4); }

.border-gradient {
    background-image: linear-gradient(var(--surface-color), var(--surface-color)), var(--gradient-enterprise);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border: 1px solid transparent;
}

.tier-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: var(--bg-color);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.4);
}

.tier-name { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.tier-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; min-height: 42px; }

.tier-price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
}

.currency { font-size: 20px; color: var(--text-secondary); font-weight: 600; }
.amount { font-size: 48px; font-weight: 700; margin: 0 4px; letter-spacing: -2px; transition: opacity var(--transition-fast), transform var(--transition-fast); }
.period { font-size: 16px; color: var(--text-secondary); }

.tier-body { flex: 1; display: flex; flex-direction: column; }

.feature-list {
    margin-top: 32px;
    list-style: none;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.icon-check { color: var(--accent-green); font-style: normal; font-weight: bold; flex-shrink: 0; }
.icon-cross { color: var(--text-muted); font-style: normal; flex-shrink: 0; opacity: 0.5; }

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .pricing-card.pop { transform: scale(1); }
    .pricing-card.pop:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-title { font-size: 36px; }
    .hero { padding-top: 120px; }
    .hero-actions { flex-direction: column; }
}

/* Marketplace Section */
.marketplace-section {
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.marketplace-dashboard {
    display: flex;
    min-height: 600px;
    margin-top: 40px;
    overflow: hidden;
    background: rgba(20, 20, 22, 0.4);
}

.dashboard-sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.4);
    border-right: 1px solid var(--surface-border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 16px 0 8px 8px;
    font-weight: 700;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(88, 166, 255, 0.2);
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-left: auto;
}
.status-dot.green { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }

.registry-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-family: var(--font-mono);
}
.registry-badge.github { background: #24292e; color: #fff; }
.registry-badge.npm { background: #cb3837; color: #fff; }
.registry-badge.pypi { background: #3776ab; color: #fff; }
.registry-badge.crates { background: #e43716; color: #fff; }
.registry-badge.cli-anything { background: var(--accent-purple); color: #fff; }

/* ── Registry pane ──────────────────────────────────────────────── */
.registry-header { margin-bottom: 16px; }
.registry-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.registry-title-row h3 { margin: 0 0 4px; font-size: 1.2rem; }
.registry-title-row p { margin: 0; }
.registry-icon-lg { font-size: 2rem; }
.registry-status { margin-left: auto; font-size: 0.8rem; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--accent-green)15; color: var(--accent-green); }
.registry-search-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--radius-md); }
.registry-search-bar input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); font-size: 0.9rem; }
.registry-search-bar input::placeholder { color: var(--text-muted); }
.reg-count { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.registry-card .plugin-icon { font-size: 1.5rem !important; }

/* ── Settings modal ──────────────────────────────────────────────── */
.settings-modal { max-width: 680px; width: 95vw; padding: 28px; }
.settings-modal-title { display: flex; align-items: center; gap: 16px; }
.user-avatar-lg { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-purple); color: #fff; font-weight: 700; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.user-avatar-xl { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-purple); color: #fff; font-weight: 700; font-size: 2rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-layout { display: flex; gap: 0; margin: 20px 0 0; }
.settings-tabs { display: flex; flex-direction: column; gap: 4px; min-width: 148px; padding-right: 16px; border-right: 1px solid var(--surface-border); }
.settings-tab-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 0.875rem; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; text-align: left; transition: background 0.2s, color 0.2s; }
.settings-tab-btn:hover { background: var(--surface-hover); color: var(--text-primary); }
.settings-tab-btn.active { background: var(--accent-blue)20; color: var(--accent-blue); font-weight: 600; }
.settings-tab-content { flex: 1; padding-left: 20px; }
.settings-tab-pane { display: none; }
.settings-tab-pane.active { display: block; }
.profile-section { display: flex; flex-direction: column; gap: 12px; }
.profile-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.stats-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-chip { background: var(--surface-glass); border: 1px solid var(--surface-border); border-radius: var(--radius-md); padding: 10px 16px; text-align: center; min-width: 70px; }
.stat-chip span { display: block; font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.stat-chip label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.connect-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--surface-border); }
.connect-row:last-child { border-bottom: none; }
.registries-connect-list { background: var(--surface-glass); border: 1px solid var(--surface-border); border-radius: var(--radius-md); padding: 16px; }

/* ── Toggle switch ───────────────────────────────────────────────── */
.toggle-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--surface-border); border-radius: 22px; cursor: pointer; transition: background 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.toggle-switch input:checked + .toggle-slider { background: var(--accent-blue); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

.dashboard-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    position: relative;
}

.pane {
    display: none;
    animation: fadeIn 0.3s ease-out;
}
.pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-bar {
    display: flex;
    gap: 16px;
    padding: 8px 8px 8px 16px;
    border-radius: var(--radius-pill);
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
}

.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.plugin-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(30,30,35,0.4);
}

.plugin-card:hover { border-color: rgba(88, 166, 255, 0.4); }

.plugin-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.plugin-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--surface-border);
}
.python-icon { background: rgba(55, 118, 171, 0.1); border-color: rgba(55, 118, 171, 0.3); }
.sec-icon { background: rgba(210, 153, 34, 0.1); border-color: rgba(210, 153, 34, 0.3); }
.rust-icon { background: rgba(228, 55, 22, 0.1); border-color: rgba(228, 55, 22, 0.3); }

.plugin-title h4 { font-size: 16px; margin-bottom: 2px; }
.plugin-author { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }

.plugin-price {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
}
.plugin-price.free { color: var(--accent-green); }

.plugin-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.plugin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--surface-border);
}

.badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}
.badge-haiku { background: rgba(88, 166, 255, 0.15); color: var(--accent-blue); }
.badge-sonnet { background: rgba(188, 140, 255, 0.15); color: var(--accent-purple); }
.badge-opus { background: rgba(210, 153, 34, 0.15); color: var(--accent-orange); }

.btn-sm { padding: 6px 14px; font-size: 12px; }

@media (max-width: 900px) {
    .marketplace-dashboard { flex-direction: column; }
    .dashboard-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--surface-border); flex-direction: row; flex-wrap: wrap; }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

/* Extension Section */
.extension-section { padding: 100px 0; }
.extension-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    align-items: center;
}

.extension-visual { position: relative; }
.mockup-browser {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.mockup-header {
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 16px;
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.mockup-url {
    background: rgba(0,0,0,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    flex: 1;
}

.mockup-body {
    height: 250px;
    background: #111;
    position: relative;
    padding: 20px;
}

.mockup-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(88, 166, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-popup {
    width: 200px;
    padding: 12px;
    font-size: 12px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .extension-card { grid-template-columns: 1fr; text-align: center; padding: 40px 24px; }
    .extension-card .section-description { text-align: center; }
    .extension-card .feature-list { align-items: center; }
}
.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    padding: 24px;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 16px;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.close-modal:hover { color: var(--text-primary); }

.install-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.install-progress::before {
    content: '';
    position: absolute;
    top: 10px; left: 0; width: 100%; height: 2px;
    background: var(--surface-border);
    z-index: -1;
}

.progress-step {
    background: var(--surface-color);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    color: var(--text-muted);
    border: 1px solid var(--surface-border);
}

.progress-step.active {
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}
.progress-step.done {
    background: rgba(63, 185, 80, 0.15);
    color: var(--accent-green);
    border-color: var(--accent-green);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(88, 166, 255, 0.2);
    margin-bottom: 8px;
}

.feature-card h3 { font-size: 20px; }
.feature-card p { color: var(--text-secondary); line-height: 1.6; }

/* Documentation Section */
.docs-section {
    padding: 100px 0;
}

.docs-layout {
    display: flex;
    min-height: 500px;
}

.docs-sidebar {
    width: 250px;
    padding: 32px;
    border-right: 1px solid var(--surface-border);
}

.docs-sidebar h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    margin-top: 24px;
}
.docs-sidebar h4:first-child { margin-top: 0; }

.docs-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-sidebar li {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.docs-sidebar li:hover { color: var(--text-primary); }
.docs-sidebar li.active { color: var(--accent-blue); font-weight: 500; }

.docs-content {
    flex: 1;
    padding: 48px;
    overflow-y: auto;
}

.doc-pane {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.doc-pane.active {
    display: block;
}

.docs-content h2 { font-size: 32px; margin-bottom: 16px; font-weight: 700; letter-spacing: -1px; }
.docs-content p { color: var(--text-secondary); margin-bottom: 24px; font-size: 16px; line-height: 1.7; }

.code-block {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--surface-border);
}

.lang-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.code-block pre {
    padding: 20px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    color: #e6edf3;
}

/* Auth Modals specific */
.auth-modal {
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--surface-border);
}

.auth-divider span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-footer {
    font-size: 12px;
    color: var(--text-muted);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    margin-left: 16px;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
    transition: transform 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-avatar:hover {
    transform: scale(1.1);
}


/* Utilities */
.mt-5 { margin-top: 40px; }
.text-sm { font-size: 13px; }

/* Logo Styles */
.logo-wrapper { position: relative; width: 24px; height: 24px; }
.logo-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent-blue); filter: blur(10px); opacity: 0.6; animation: rotateGlow 4s linear infinite;
}
@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pipeline Viz */
.pipeline-viz { padding: 40px; margin-bottom: 80px; }
.viz-steps { display: flex; align-items: center; justify-content: space-between; margin-top: 32px; gap: 16px; }
.viz-step { flex: 1; text-align: center; }
.step-num {
    width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-primary);
    color: white; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; font-weight: 700; font-size: 14px;
}
.step-text { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.viz-arrow { color: var(--text-muted); font-size: 20px; }

/* Testimonials */
.testimonials-section { padding: 100px 0; position: relative; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.testimonial-card { padding: 32px; text-align: left; }
.testimonial-content { font-style: italic; color: var(--text-primary); margin-bottom: 24px; font-size: 16px; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }
.author-info strong { display: block; font-size: 14px; }
.author-info span { font-size: 12px; color: var(--text-muted); }

/* Footer */
.footer { padding: 80px 0 40px; background: #000; border-top: 1px solid var(--surface-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-links h4 { font-size: 14px; margin-bottom: 24px; color: var(--text-primary); }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; }
.footer-links a:hover { color: var(--accent-blue); }
.footer-bottom { padding-top: 40px; border-top: 1px solid var(--surface-border); text-align: center; font-size: 13px; color: var(--text-muted); }
.social-links { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 16px; border: 1px solid var(--surface-border); }
.social-link:hover { background: rgba(255,255,255,0.1); border-color: var(--accent-blue); }

/* Skill Forge Improved */
.forge-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.forge-form, .forge-preview { padding: 24px; border-radius: var(--radius-md); background: rgba(0,0,0,0.2) !important; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.preview-body { background: rgba(0,0,0,0.5); padding: 16px; border-radius: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-green); height: 200px; overflow-y: auto; }
.radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.radio-label { font-size: 14px !important; color: var(--text-secondary) !important; cursor: pointer; display: flex; align-items: center; gap: 8px; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 0; }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

@media (max-width: 900px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .forge-layout { grid-template-columns: 1fr; }
    .viz-steps { flex-direction: column; }
    .viz-arrow { transform: rotate(90deg); }
}

/* ==========================================================================
   NEW COMPONENTS — Marketplace Overhaul
   ========================================================================== */

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
}

.toast.show { transform: translateX(0); }
.toast-success { background: rgba(63, 185, 80, 0.15); color: var(--accent-green); border-color: rgba(63, 185, 80, 0.3); }
.toast-error { background: rgba(255, 123, 114, 0.15); color: var(--accent-pink); border-color: rgba(255, 123, 114, 0.3); }

/* User Dropdown */
.user-profile { position: relative; cursor: pointer; }

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 160px;
    display: none;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.user-dropdown.active { display: block; }

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Product Type Tabs */
.product-type-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.product-type-tab {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-type-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.product-type-tab.active {
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent-blue);
    border-color: rgba(88, 166, 255, 0.3);
}

/* Filter Select */
.filter-select {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
}

.filter-select:focus { border-color: var(--accent-blue); }

/* Result Bar */
.result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Product Card Enhancements */
.plugin-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quality-badge {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.meta-item {
    font-size: 11px;
    color: var(--text-muted);
}

/* Skeleton Loading */
.skeleton-card {
    min-height: 160px;
    padding: 24px;
}

.skeleton-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Product Detail Panel */
.product-detail-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.product-detail-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.product-detail-panel {
    position: fixed;
    top: 0; right: 0;
    width: 600px;
    max-width: 90vw;
    height: 100vh;
    z-index: 9001;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    border-left: 1px solid var(--surface-border);
    padding: 0;
}

.product-detail-panel.active {
    transform: translateX(0);
}

.detail-header {
    position: relative;
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--surface-border);
}

.detail-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.detail-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.detail-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.detail-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid;
    flex-shrink: 0;
}

.detail-title-group { flex: 1; }
.detail-title-group h2 { font-size: 22px; margin-bottom: 8px; }

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-version {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.detail-author {
    font-size: 12px;
    color: var(--text-muted);
}

.detail-price-block {
    text-align: right;
    flex-shrink: 0;
}

.detail-price {
    font-size: 24px;
    font-weight: 700;
}

.detail-price.free { color: var(--accent-green); }

.detail-split {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.detail-body { padding: 24px 32px; }

.detail-stats-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-stat-value {
    font-size: 20px;
    font-weight: 700;
}

.detail-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.detail-contents-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-file {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Revenue Split Bar */
.revenue-split-bar {
    display: flex;
    height: 32px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
}

.split-creator {
    background: rgba(63, 185, 80, 0.2);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-platform {
    background: rgba(88, 166, 255, 0.2);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.dash-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.dash-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dash-card-icon { font-size: 20px; }
.dash-card-title { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.dash-tier-badge {
    font-size: 24px;
    font-weight: 700;
}

.dash-big-number {
    font-size: 36px;
    font-weight: 700;
}

.dash-section {
    margin-top: 32px;
}

.dash-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

/* Usage Meter */
.usage-meter {
    position: relative;
    width: 80px;
    height: 80px;
}

.usage-svg {
    width: 100%;
    height: 100%;
}

.usage-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.usage-count {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.usage-limit {
    font-size: 11px;
    color: var(--text-muted);
}

/* MCP Stats Grid */
.mcp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mcp-stat {
    text-align: center;
}

.mcp-stat-value {
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.mcp-stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Installed List */
.installed-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.installed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
}

.installed-icon { font-size: 20px; }
.installed-info { flex: 1; }
.installed-name { font-weight: 600; display: block; font-size: 14px; }
.installed-type { font-size: 12px; color: var(--text-muted); }

/* Billing */
.billing-info { margin-bottom: 16px; }

.billing-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.billing-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Generation History */
.generation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Forge Progress */
.forge-progress {
    margin-top: 16px;
}

.progress-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s;
}

.progress-stage {
    font-size: 12px;
    color: var(--text-muted);
}

/* Form Hint */
.form-hint {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* ── Agent Economy & Monetization ─────────────────────────── */

.economy-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.economy-stat-card {
  padding: 20px;
  text-align: center;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.revenue-big {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-green);
}

.api-key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  margin-bottom: 8px;
}

.api-key-secret {
  font-family: monospace;
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-agent {
  background: var(--accent-purple)20;
  color: var(--accent-purple);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.cost-badge {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: monospace;
  color: var(--accent-orange);
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.bulk-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent-blue);
}

.detail-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.detail-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-blue);
}

.persona-btn {
  padding: 6px 14px;
  border: 1px solid var(--surface-border);
  background: var(--surface-color);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.persona-btn.active {
  background: var(--accent-blue)20;
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.persona-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  margin-bottom: 8px;
}

.leaderboard-row .rank {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 28px;
}

.batch-upload-area {
  border: 2px dashed var(--surface-border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.batch-upload-area.drag-over {
  border-color: var(--accent-blue);
  background: var(--accent-blue)08;
}

.skills-revenue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.skills-revenue-table th,
.skills-revenue-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-border);
}

.skills-revenue-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ── Heatmap ─────────────────────────────────────────────── */

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  margin: 8px 0;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--surface-border);
  transition: background 0.3s;
}

.heatmap-cell[data-intensity="1"] { background: var(--accent-blue)40; }
.heatmap-cell[data-intensity="2"] { background: var(--accent-blue)70; }
.heatmap-cell[data-intensity="3"] { background: var(--accent-blue); }

/* ── Quality Preview Bar ─────────────────────────────────── */

.quality-preview-bar {
  flex: 1;
  height: 6px;
  background: var(--surface-border);
  border-radius: 3px;
  overflow: hidden;
}

.quality-preview-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-green));
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ── Bulk Action Bar ─────────────────────────────────────── */

.bulk-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

/* Utilities */
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.text-muted { color: var(--text-muted); }

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: rgba(20, 20, 22, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left: 4px solid var(--accent-green);
}
