/* MD·MARKET — clean/minimal 스타일 (md-marketplace 룩앤필 벤치마크, 코드는 자체 구현) */
:root {
    --bg: #fafaf9;
    --fg: #18181b;
    --muted: #6b7280;
    --line: #eceef1;
    --card: #ffffff;
    --accent: #5b4fe9;
    --accent-hover: #4c3fe0;
    --accent-fg: #ffffff;
    --chip: #f4f5f7;
    --radius: 14px;
    --maxw: 1080px;

    /* Dev-tool accent gradient (brand mark, hover states, status bar) */
    --brand-a: #5b4fe9;
    --brand-b: #22d3ee;

    /* Trust/verified green */
    --ok: #16a34a;
    --ok-bg: #f0fdf4;
    --ok-line: #dcfce7;

    /* Rating gold */
    --star: #f59e0b;

    /* Category badge palette (bg / fg pairs) */
    --cat-skill-bg: #5b4fe9;   --cat-skill-fg: #ffffff;
    --cat-cursor-bg: #1e293b;  --cat-cursor-fg: #ffffff;
    --cat-prompt-bg: #cffafe;  --cat-prompt-fg: #0e7490;
    --cat-planning-bg: #fef3c7; --cat-planning-fg: #b45309;
    --cat-learning-bg: #ffe4e6; --cat-learning-fg: #be123c;
    --cat-slash-bg: #d1fae5;   --cat-slash-fg: #047857;
    --cat-default-bg: #e0e7ff; --cat-default-fg: #4338ca;

    /* Footer: darker "terminal" band for contrast against the light body */
    --footer-bg: #0b0d12;
    --footer-fg: #e6e8ee;
    --footer-muted: #9096a4;
    --footer-line: #232733;

    /* Terminal / code block */
    --term-bg: #0d1020;
    --term-line: #1f2436;
    --term-fg: #d6d9e6;
    --term-muted: #737a94;
    --term-green: #4ade80;
    --term-cyan: #67e8f9;
    --term-purple: #c4b5fd;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -0.02em; font-size: 20px; }
.brand span { color: var(--muted); margin: 0 1px; }
.brand.small { font-size: 15px; margin-right: 12px; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 8px; flex: none;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    color: #fff;
}
.brand-mark svg { width: 15px; height: 15px; }
.brand.small .brand-mark { width: 24px; height: 24px; }
.brand.small .brand-mark svg { width: 13px; height: 13px; }
.brand-gradient .brand-text {
    background: linear-gradient(135deg, var(--fg) 35%, var(--brand-a) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav a:not(.btn) { position: relative; padding-bottom: 3px; }
.nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
    background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
    transition: right .18s ease;
}
.nav a:not(.btn):hover::after { right: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
    border: 1px solid var(--line); transition: transform .05s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; }

/* Hero — gradient wash + floating cards, dev-tool flavor */
.hero {
    position: relative; overflow: hidden;
    padding: 88px 0 64px; border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #fafaf9 0%, #eef2ff 55%, #f5f3ff 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
    color: var(--accent); background: rgba(91,79,233,0.08); border: 1px solid rgba(91,79,233,0.18);
    border-radius: 999px; padding: 5px 12px; margin: 0 0 16px;
}
.hero-eyebrow { color: var(--muted); font-weight: 600; margin: 0 0 14px; letter-spacing: -0.01em; }
.hero-title { font-size: 52px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 18px; }
.hero-sub { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; }

/* Floating cards beside the hero copy */
.hero-float { position: relative; height: 320px; display: none; }
.float-card {
    position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(24,24,27,0.10); padding: 14px 16px;
    display: flex; align-items: center; gap: 10px; animation: float-bob 5s ease-in-out infinite;
}
.float-card .ext { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--chip);
    border-radius: 6px; padding: 2px 6px; }
.float-card .ft { font-size: 13.5px; font-weight: 700; }
.float-card .fs { font-size: 12px; color: var(--muted); }
.float-card-1 { top: 8px; right: 20px; width: 230px; animation-delay: 0s; }
.float-card-2 { top: 168px; right: 70px; width: 210px; animation-delay: 1.2s; }
@keyframes float-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-term {
    position: absolute; top: 60px; left: 0; width: 260px;
    background: var(--term-bg); border-radius: 12px; padding: 14px 16px;
    box-shadow: 0 20px 48px rgba(13,16,32,0.35);
    font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; color: var(--term-fg);
    animation: float-bob 6s ease-in-out infinite; animation-delay: .6s;
}
.hero-term .tl { margin: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-term .tp { color: var(--term-cyan); }
.hero-term .tok { color: var(--term-green); }

@media (min-width: 861px) { .hero-float { display: block; } }

/* Stats bar */
.stats-bar {
    position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 16px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line);
}
.stats-bar .stat-value { font-size: 26px; }
@media (max-width: 860px) { .stats-bar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--chip); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.chip:hover { background: #ececf0; }
.chip.active { background: var(--accent); color: var(--accent-fg); }

/* Sections */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; gap: 0; min-height: 150px;
    transition: box-shadow .15s ease, transform .1s ease; }
.card:hover { box-shadow: 0 10px 28px rgba(24,24,27,0.08); transform: translateY(-2px); }
.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }

.card-thumb {
    position: relative; height: 96px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--tint-a, #eef2ff), var(--tint-b, #f5f3ff));
}
.card:has(.cat-prompt) .card-thumb   { --tint-a: #ecfeff; --tint-b: #f0fdff; }
.card:has(.cat-planning) .card-thumb { --tint-a: #fffbeb; --tint-b: #fefce8; }
.card:has(.cat-learning) .card-thumb { --tint-a: #fff1f2; --tint-b: #fdf2f8; }
.card:has(.cat-slash) .card-thumb    { --tint-a: #ecfdf5; --tint-b: #f0fdfa; }
.card:has(.cat-cursor) .card-thumb   { --tint-a: #f1f5f9; --tint-b: #eef2f7; }
.card-thumb .ext-mark { font-size: 22px; font-weight: 800; color: rgba(24,24,27,0.16); letter-spacing: -0.02em; }
.card-thumb .cat-badge { position: absolute; top: 10px; right: 10px; }

.cat-badge {
    display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; letter-spacing: -0.01em; white-space: nowrap;
}
.cat-skill    { background: var(--cat-skill-bg);    color: var(--cat-skill-fg); }
.cat-cursor   { background: var(--cat-cursor-bg);   color: var(--cat-cursor-fg); }
.cat-prompt   { background: var(--cat-prompt-bg);   color: var(--cat-prompt-fg); }
.cat-planning { background: var(--cat-planning-bg); color: var(--cat-planning-fg); }
.cat-learning { background: var(--cat-learning-bg); color: var(--cat-learning-fg); }
.cat-slash    { background: var(--cat-slash-bg);    color: var(--cat-slash-fg); }
.cat-default  { background: var(--cat-default-bg);  color: var(--cat-default-fg); }
/* chip filter variants reuse the same palette at lower emphasis */
.chip.cat-skill, .chip.cat-cursor { color: #fff; }

.card-cat { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0; flex: 1; }

.verified-badge {
    display: inline-flex; align-items: center; gap: 4px; width: fit-content;
    font-size: 11px; font-weight: 700; color: var(--ok); background: var(--ok-bg);
    border: 1px solid var(--ok-line); border-radius: 999px; padding: 3px 9px;
}

.card-meta-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.card-rating { display: inline-flex; align-items: center; gap: 3px; color: var(--star); font-weight: 700; }
.card-rating .count { color: var(--muted); font-weight: 500; }
.card-downloads::before { content: "↓ "; }

.card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-author { font-size: 13px; color: var(--muted); }
.card-author:hover { color: var(--fg); text-decoration: underline; }
.card-price { font-size: 14px; font-weight: 700; }
.card-price.free { color: var(--ok); }

/* Empty */
.empty { text-align: center; padding: 80px 0; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: 4px 0; }

/* Footer — dark "terminal" band for contrast with the light page above */
.site-footer {
    position: relative; overflow: hidden;
    margin-top: 48px; padding: 40px 0 28px;
    background: var(--footer-bg); color: var(--footer-fg);
    border-top: 1px solid var(--footer-line);
}
.site-footer::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
}
.footer-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.footer-top {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    padding-bottom: 18px; border-bottom: 1px solid var(--footer-line);
}
.footer-top .brand.small .brand-text { color: var(--footer-fg); }
.footer-top .brand.small span.muted-dot { color: var(--footer-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.footer-links a { color: var(--footer-muted); transition: color .15s ease; }
.footer-links a:hover { color: var(--footer-fg); }

.footer-status {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: #d6a13a;
    background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px; padding: 6px 14px; width: fit-content;
}
.status-dot {
    flex: none; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.footer-biz {
    font-size: 12.5px; line-height: 1.9; color: var(--footer-muted);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.footer-tag { color: #5b6270; }

/* Auth pages */
.auth-container { max-width: 420px; padding-top: 56px; padding-bottom: 56px; }
.auth-card { padding: 32px; gap: 18px; }
.auth-card h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-form input, .auth-form select, .auth-form textarea {
    font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--bg); color: var(--fg); resize: vertical;
}
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-checkbox { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; font-size: 13.5px !important; }
.auth-checkbox input { width: auto; margin-top: 3px; }
.auth-checkbox a { text-decoration: underline; font-weight: 600; }
.auth-submit { margin-top: 4px; }
.auth-error { color: #b42318; font-size: 14px; margin: 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-social { display: flex; flex-direction: column; gap: 10px; }
.auth-social-btn { width: 100%; }
.auth-footnote { margin: 0; font-size: 14px; text-align: center; }
.auth-footnote a { font-weight: 600; text-decoration: underline; }

/* Nav auth state */
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-user .avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-logout-form { display: inline; }
.nav-logout-form button {
    font: inherit; background: transparent; border: none; padding: 0; cursor: pointer; color: inherit;
}
.nav-logout-form button:hover { text-decoration: underline; }

/* Explore search */
.explore-search { display: flex; gap: 10px; margin-bottom: 24px; }
.explore-search input[type="search"] {
    flex: 1; font: inherit; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--bg); color: var(--fg);
}

/* Product detail */
.product-detail { max-width: 720px; padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 14px; }
.product-title { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin: 0; }
.product-summary { font-size: 16px; color: var(--fg); }
.product-meta { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.product-preview { margin: 8px 0; }
pre.product-preview {
    background: var(--chip); border-radius: var(--radius); padding: 16px 18px;
    font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; line-height: 1.6;
    white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px;
    border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }
.product-price { font-size: 22px; font-weight: 800; }

/* Policy pages */
.policy-container { max-width: 960px; padding-top: 40px; padding-bottom: 64px; }
.policy-container .policy-content:first-of-type { margin-top: 0; }
.policy-notice { background: var(--chip); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; }
.policy-content { margin-top: 24px; line-height: 1.8; }
.policy-content h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; letter-spacing: -0.01em; }
.policy-content p, .policy-content ul, .policy-content ol { margin: 0 0 12px; font-size: 15px; }
.policy-content ul, .policy-content ol { padding-left: 22px; }
.policy-history { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.policy-history h3 { font-size: 15px; font-weight: 700; margin: 0 0 10px; }
.policy-history ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* Seller dashboard */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.stat-value { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.stat-label { font-size: 13px; color: var(--muted); }

.seller-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.seller-table th { text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 600;
    font-size: 12px; border-bottom: 1px solid var(--line); }
.seller-table td { padding: 12px; border-bottom: 1px solid var(--line); }
.seller-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
    .stat-row { grid-template-columns: 1fr; }
    .seller-table { display: block; overflow-x: auto; }
}

/* Seller repo list */
.repo-list { display: flex; flex-direction: column; gap: 10px; }
.repo-row { display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }

/* Terminal / CLI code block (guide pages + product CLI section) */
.term {
    background: var(--term-bg); border: 1px solid var(--term-line); border-radius: 12px;
    padding: 16px 18px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px; color: var(--term-fg); overflow-x: auto;
}
.term + .term { margin-top: 12px; }
.term-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--term-fg);
    margin: 0 0 10px; font-family: "Pretendard", sans-serif; font-size: 13.5px; }
.term-line { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px dashed var(--term-line); }
.term-line:last-child { border-bottom: none; }
.term-cmd { white-space: pre; overflow-x: auto; }
.term-prompt { color: var(--term-cyan); margin-right: 6px; }
.term-comment { color: var(--term-muted); }
.term-ok { color: var(--term-green); }
.term-copy {
    flex: none; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--term-fg);
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 6px;
    padding: 4px 10px; cursor: pointer;
}
.term-copy:hover { background: rgba(255,255,255,0.16); }
.term-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.term-table th { text-align: left; padding: 8px 12px; color: var(--muted); font-weight: 600;
    font-size: 12px; border-bottom: 1px solid var(--line); }
.term-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.term-table code { background: var(--chip); border-radius: 4px; padding: 2px 6px; }

.coming-soon-banner {
    display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600;
    color: #b45309; background: #fef3c7; border: 1px solid #fde68a;
    border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px;
}

/* Docs layout (guide pages: sidebar + content) */
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.docs-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.docs-group-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase;
    letter-spacing: 0.04em; margin: 18px 0 6px; }
.docs-group-label:first-child { margin-top: 0; }
.docs-sidebar a { font-size: 14px; padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.docs-sidebar a:hover { background: var(--chip); color: var(--fg); }
.docs-sidebar a.active { background: rgba(91,79,233,0.08); color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .docs-layout { grid-template-columns: 1fr; } .docs-sidebar { position: static; flex-direction: row; flex-wrap: wrap; } }

/* Ratings / reviews */
.stars { color: var(--star); letter-spacing: 1px; }
.rating-summary { display: flex; gap: 24px; align-items: center; padding: 20px; background: var(--chip);
    border-radius: var(--radius); margin-bottom: 20px; }
.rating-big { font-size: 36px; font-weight: 800; line-height: 1; }
.rating-histogram { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.hist-row { display: grid; grid-template-columns: 14px 1fr 28px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.hist-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.hist-bar > span { display: block; height: 100%; background: var(--star); }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-item:last-child { border-bottom: none; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13.5px; }
.review-author { font-weight: 700; }
.review-date { color: var(--muted); font-size: 12.5px; }
.review-form { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--chip);
    border-radius: var(--radius); margin-bottom: 20px; }
.star-picker { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; font-size: 22px; }
.star-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-picker label { cursor: pointer; color: var(--line); }
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label { color: var(--star); }

/* Avatar (seller cards / profile) */
.avatar-circle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
    font-weight: 700; font-size: 15px;
}
.avatar-circle.lg { width: 56px; height: 56px; font-size: 22px; }

/* Product detail: 2-column with sticky buy box */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.detail-main { min-width: 0; }
.buy-box { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.buy-box .buy-price { font-size: 26px; font-weight: 800; }
.buy-box .buy-price.free { color: var(--ok); }
.buy-box .buy-note { font-size: 12.5px; color: var(--muted); margin-top: -8px; }
.buy-checklist { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.buy-checklist li { list-style: none; }
.buy-checklist li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.seller-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line);
    border-radius: var(--radius); }
.seller-card .name { font-weight: 700; font-size: 14px; }
.seller-card .role { font-size: 12.5px; color: var(--muted); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 24px 0 20px; }
.tab-btn { font: inherit; background: none; border: none; padding: 10px 4px; margin-right: 20px;
    font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; }
.tab-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.tab-btn.active { color: var(--fg); }
.tab-btn.active::after { background: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.admin-tabs { margin: 0 0 28px; }
.admin-tabs .tab-btn { display: inline-block; }

@media (max-width: 860px) {
    .detail-grid { grid-template-columns: 1fr; }
    .buy-box { position: static; }
}

/* Seller public profile */
.seller-hero { display: flex; align-items: center; gap: 18px; padding: 28px 0; }
.seller-hero .info h1 { margin: 0 0 4px; font-size: 24px; }
.seller-hero .info .muted { font-size: 13.5px; }

/* Responsive */
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 40px; }
    .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
    .nav a.muted { display: none; }
}
