:root {
--primary: #7c3aed;
--primary-hover: #6d28d9;
--primary-glow: rgba(124,58,237,0.25);
--bg: #0a0a1a;
--bg-card: rgba(20,20,40,0.95);
--bg-card-hover: rgba(30,30,55,0.98);
--bg-surface: rgba(25,25,50,0.9);
--border: rgba(255,255,255,0.08);
--border-hover: rgba(124,58,237,0.4);
--text: #ffffff;
--text-muted: #9ca3af;
--text-dim: #94a3b8;
--success: #10b981;
--danger: #ef4444;
--warning: #f59e0b;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Inter', -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
}
body::before {
content: '';
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.08) 0%, transparent 60%);
pointer-events: none;
z-index: 0;
}

/* Header: injected by marketplace-header.js */

/* Brand Page */
.brand-page {
max-width: 960px;
margin: 0 auto;
padding: 40px 24px 60px;
position: relative;
z-index: 1;
}
.brand-page h1 {
font-size: 1.8rem;
font-weight: 800;
margin-bottom: 8px;
color: #fff;
}
.brand-page .subtitle {
font-size: 0.9rem;
color: var(--text-muted);
margin-bottom: 40px;
line-height: 1.6;
}
.brand-page h2 {
font-size: 1.15rem;
font-weight: 700;
margin-top: 36px;
margin-bottom: 6px;
color: var(--text);
}
.brand-page .section-desc {
font-size: 0.85rem;
color: var(--text-muted);
line-height: 1.6;
margin-bottom: 16px;
}
.brand-page p {
font-size: 0.875rem;
color: var(--text-muted);
line-height: 1.7;
margin-bottom: 12px;
}

/* Section divider */
.section-divider {
height: 1px;
background: var(--border);
margin: 36px 0;
}

/* Download All bar */
.download-all-bar {
display: flex; align-items: center; justify-content: space-between;
padding: 14px 20px; border-radius: 12px;
background: rgba(124,58,237,0.06);
border: 1px solid rgba(124,58,237,0.2);
margin-bottom: 20px;
}
.download-all-bar span {
font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
}
.download-all-btn {
display: inline-flex; align-items: center; gap: 6px;
padding: 8px 18px; border-radius: 10px;
border: 1px solid rgba(124,58,237,0.4);
background: rgba(124,58,237,0.15); color: #a78bfa;
font-size: 0.8rem; font-weight: 600; cursor: pointer;
font-family: inherit; transition: all 0.2s; text-decoration: none;
}
.download-all-btn:hover {
background: rgba(124,58,237,0.25); border-color: rgba(124,58,237,0.5);
color: #c4b5fd;
}

/* Asset category section */
.asset-category {
margin-bottom: 28px;
}
.asset-category-title {
font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
letter-spacing: 0.8px; color: var(--text-dim);
margin-bottom: 12px;
}

/* Asset grid — 3 columns for 3 variants */
.asset-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}

.asset-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 14px;
overflow: hidden;
transition: border-color 0.2s, transform 0.15s;
}
.asset-card:hover {
border-color: var(--border-hover);
transform: translateY(-2px);
}
.asset-preview {
display: flex;
align-items: center;
justify-content: center;
min-height: 140px;
padding: 24px;
position: relative;
}
.asset-preview.dark-bg { background: #0d0d1e; }
.asset-preview.light-bg { background: #f0f0f4; }
.asset-preview.checker-bg {
background-image: linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
                  linear-gradient(-45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
                  linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.04) 75%),
                  linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.04) 75%);
background-size: 16px 16px;
background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.asset-preview img {
max-width: 100%;
max-height: 100px;
object-fit: contain;
}
.asset-info {
padding: 14px 16px;
border-top: 1px solid var(--border);
}
.asset-name {
font-size: 0.85rem;
font-weight: 700;
margin-bottom: 4px;
}
.asset-variant {
font-size: 0.72rem;
color: var(--text-dim);
margin-bottom: 10px;
}
.asset-downloads {
display: flex; gap: 6px; flex-wrap: wrap;
}
.asset-dl-btn {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 5px 12px;
border-radius: 7px;
border: 1px solid var(--border);
background: rgba(255,255,255,0.06);
color: var(--text);
font-size: 0.7rem;
font-weight: 600;
cursor: pointer;
text-decoration: none;
transition: all 0.2s;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.asset-dl-btn:hover {
background: rgba(124,58,237,0.2);
border-color: rgba(124,58,237,0.3);
}
.asset-dl-btn svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Guidelines */
.guideline-list {
margin: 12px 0 20px 0;
list-style: none;
}
.guideline-list li {
position: relative;
padding: 8px 0 8px 24px;
font-size: 0.85rem;
color: var(--text-muted);
line-height: 1.6;
}
.guideline-list li::before {
content: '';
position: absolute;
left: 0;
top: 14px;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--success);
}
.guideline-list li.dont::before {
background: var(--danger);
}

/* Color swatches */
.color-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 12px;
margin: 16px 0 28px;
}
.color-swatch {
border-radius: 12px;
overflow: hidden;
border: 1px solid var(--border);
}
.color-swatch-block {
height: 64px;
}
.color-swatch-info {
padding: 10px 12px;
background: var(--bg-card);
}
.color-swatch-name {
font-size: 0.78rem;
font-weight: 600;
margin-bottom: 2px;
}
.color-swatch-hex {
font-size: 0.7rem;
color: var(--text-dim);
font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Brand tabs */
.brand-tabs {
display: flex;
gap: 4px;
margin-bottom: 32px;
border-bottom: 1px solid var(--border);
padding-bottom: 0;
}
.brand-tab-btn {
padding: 10px 20px;
border: none;
background: none;
color: var(--text-muted);
font-size: 0.88rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
border-bottom: 2px solid transparent;
margin-bottom: -1px;
transition: all 0.2s;
}
.brand-tab-btn:hover {
color: var(--text);
}
.brand-tab-btn.active {
color: #c4b5fd;
border-bottom-color: var(--primary);
}
.brand-tab-content {
display: none;
}
.brand-tab-content.active {
display: block;
}

/* Footer: loaded by marketplace-footer.js */

@media (max-width: 768px) {
.brand-page { padding: 24px 16px 40px; }
.brand-page h1 { font-size: 1.4rem; }
.asset-grid { grid-template-columns: 1fr; }
.color-grid { grid-template-columns: repeat(2, 1fr); }
.download-all-bar { flex-direction: column; gap: 10px; text-align: center; }
}
@media (min-width: 769px) and (max-width: 960px) {
.asset-grid { grid-template-columns: repeat(2, 1fr); }
}