﻿/* ==========================================================================
   Courselord Marketplace — Brand design system
   Purple (#692979) + gold (#f0c040), Nunito/Exo 2, light SaaS layout.
   ========================================================================== */

:root {
    /* Brand */
    --purple: #692979;
    --purple-dark: #491d54;
    --purple-deep: #34153b;
    --purple-soft: #f4ecf6;
    --purple-soft-2: #e4d1e8;
    --secondary: #D170E1;
    --secondary-dark: #712975;
    --gold: #E7A92B;
    --gold-2: #f0c040;
    --gold-dark-text: #3D2C05;
    --grad: linear-gradient(120deg, #5E256D 0%, #7b2d8e 48%, #D170E1 100%);
    --grad-gold: linear-gradient(120deg, #E7A92B 0%, #f0b94a 100%);
    --ink: #1a1a2e;
    --ink-soft: #3D3A4E;
    --muted: #5F5873;
    --faint: #9B8BA8;
    --border: #E5E7EB;
    --border-soft: #f0eaf5;
    --bg: #F9F8FC;
    --surface: #FFFFFF;
    --green: #059669;
    --green-light: #ecfdf5;
    --red: #dc2626;
    --red-light: #fef2f2;
    --amber: #d97706;
    --amber-light: #fffbeb;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow-soft: 0 8px 24px rgba(94,37,109,.06);
    --shadow-card: 0 1px 3px rgba(0,0,0,.05), 0 10px 30px -12px rgba(94,37,109,.10);
    --shadow-hover: 0 12px 26px rgba(94,37,109,.14), 0 6px 14px rgba(0,0,0,.05);

    /* Typography */
    --font-body: var(--font-family, 'Nunito', system-ui, sans-serif);
    --font-display: 'Exo 2', system-ui, sans-serif;

    /* Back-compat aliases for legacy marketplace views */
    --mp-bg: #FFFFFF;
    --mp-bg-tint: #F9F8FC;
    --mp-surface: #FFFFFF;
    --mp-surface-raised: #f4ecf6;
    --mp-surface-hover: #f7f1f9;
    --mp-border: #E5E7EB;
    --mp-border-light: #f0eaf5;
    --mp-text: #1a1a2e;
    --mp-text-soft: #3D3A4E;
    --mp-text-muted: #5F5873;
    --mp-primary: #692979;
    --mp-primary-hover: #491d54;
    --mp-accent: #f0c040;
    --mp-gold: #E7A92B;
    --mp-green: #059669;
    --mp-green-light: #ecfdf5;
    --mp-red: #dc2626;
    --mp-red-light: #fef2f2;
    --mp-amber: #d97706;
    --mp-amber-light: #fffbeb;
    --mp-purple: #692979;
    --mp-purple-light: #f4ecf6;
    --mp-radius: 14px;
    --mp-radius-sm: 10px;
    --mp-radius-xs: 8px;
}

* { box-sizing: border-box; }

/* ============ Hero (centered, brand) ============ */

.hero-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF6FC 100%);
    padding: 2.75rem 1rem 2rem;
    border-bottom: 1px solid var(--border-soft);
    position: relative; overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; left: 50%; top: -180px; width: 520px; height: 520px;
    transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(105,41,121,.08) 0%, transparent 65%);
    pointer-events: none;
}
.hero-content { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.hero-content--center { max-width: 800px; text-align: center; margin: 0 auto; }
.hero-text { margin-bottom: 1.4rem; }
.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; letter-spacing: -0.02em;
    color: var(--purple-deep); margin: 0; line-height: 1.1;
}
.hero-text p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; margin: 0.6rem 0 0; }

/* Hero search */
.hero-search {
    max-width: 620px; margin: 0 auto 1.5rem; display: flex; align-items: center; gap: 8px;
    background: #fff; border: 2px solid rgba(105,41,121,.16); border-radius: 999px; padding: 6px;
    box-shadow: var(--shadow-soft); transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(105,41,121,.12), var(--shadow-soft); }
.hero-search .hs-icon { margin-left: 12px; flex: none; }
.hero-search input { flex: 1; border: none; outline: none; padding: 8px 4px; font-size: .95rem; color: var(--ink); background: transparent; font-family: var(--font-body); min-width: 0; }
.hero-search input::placeholder { color: var(--faint); }
.hero-search button {
    border: none; background: var(--grad-gold); color: var(--gold-dark-text);
    padding: 11px 26px; border-radius: 999px; font-weight: 800; font-size: .9rem;
    cursor: pointer; font-family: var(--font-body); transition: transform .15s, box-shadow .15s;
    box-shadow: 0 6px 16px rgba(231,169,43,.32); flex: none;
}
.hero-search button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(231,169,43,.42); }

/* Category pills — wrap into rows, no horizontal scroll */
.category-pills {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem;
    padding: 0.25rem 0 0.5rem;
}
.hero-pills .category-pills { justify-content: center; margin-top: 1.6rem; }
.pill {
    padding: 0.5rem 1.2rem; border-radius: 999px; font-size: 0.9rem; font-weight: 700;
    white-space: nowrap; background: #fff; border: 1px solid var(--border); color: var(--muted);
    cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block;
    font-family: var(--font-body);
}
.pill:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-1px); }
.pill.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(94,37,109,.25); }

/* ============ Layout (sidebar + grid) ============ */

.marketplace-layout {
    max-width: 1280px; margin: 2rem auto; padding: 0 1rem;
    display: grid; grid-template-columns: 264px 1fr; gap: 2rem; align-items: start;
}

/* Sidebar — ecommerce grade */
.sidebar {
    position: sticky; top: 100px; align-self: start; background: #fff;
    border: 1px solid var(--border-soft); border-radius: 16px; padding: 18px 16px 10px;
    box-shadow: var(--shadow-soft);
}
.filter-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 14px; }
.filter-header .filters-title { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--ink); margin: 0; }
.filter-header .clear-all { font-size: .8rem; font-weight: 800; color: var(--purple); text-decoration: none; }
.filter-header .clear-all:hover { text-decoration: underline; }
.filter-group { border-top: 1px solid var(--border-soft); padding: 14px 6px; }
.filter-group:first-of-type { border-top: none; }
.filter-title {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800;
    color: var(--faint); margin: 0 0 8px; display: flex; align-items: center; gap: 6px;
}
.filter-option {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 7px 10px; border-radius: var(--radius-xs); font-size: .9rem; font-weight: 600;
    color: var(--ink-soft); text-decoration: none; transition: background .15s, color .15s;
    margin-bottom: 2px;
}
.filter-option .fo-label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.filter-option:hover { background: var(--purple-soft); color: var(--purple); }
.filter-option.active { background: var(--purple-soft); color: var(--purple); font-weight: 800; }
.filter-option .fo-dot {
    width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--purple-soft-2);
    background: #fff; flex: none; display: inline-flex; align-items: center; justify-content: center;
    font-size: .65rem; color: transparent; transition: all .15s;
}
.filter-option.active .fo-dot { background: var(--grad); border-color: transparent; color: #fff; }
.filter-option .count { font-size: .74rem; font-weight: 700; color: var(--faint); background: var(--bg); border-radius: 999px; padding: 1px 9px; }
.filter-option.active .count { background: #fff; color: var(--purple); }

/* ============ Content ============ */

.content-area { min-width: 0; }
.content-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.content-bar h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.5rem; font-weight: 800; margin: 0; color: var(--ink); font-family: var(--font-display); }
.result-count { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.sort-select {
    padding: 0.5rem 0.9rem; font-size: .86rem; font-weight: 700; font-family: var(--font-body);
    border: 1.5px solid var(--border); border-radius: var(--radius-xs); color: var(--ink-soft);
    background: #fff; outline: none; cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.sort-select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(105,41,121,.1); }

/* Active filter chips */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.active-filters .af-label { font-size: .78rem; font-weight: 800; color: var(--muted); }
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px; background: var(--purple-soft);
    color: var(--purple); border: 1px solid var(--purple-soft-2); border-radius: 999px;
    padding: 4px 11px; font-size: .8rem; font-weight: 700; font-family: var(--font-body);
}
.filter-chip a { color: var(--purple); text-decoration: none; font-weight: 900; display: inline-flex; line-height: 1; }
.filter-chip a:hover { color: var(--red); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.4rem; }

/* ============ Course Card ============ */

.course-card {
    background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border-soft);
    overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; position: relative;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(105,41,121,.28); }
.card-thumbnail { height: 150px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.course-card:hover .card-thumbnail img { transform: scale(1.04); }
.card-tag {
    position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, 0.94);
    color: var(--purple); font-size: 0.7rem; font-weight: 800; padding: 0.3rem 0.75rem;
    border-radius: 999px; backdrop-filter: blur(4px); z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-transform: uppercase; letter-spacing: .04em;
}
.card-tag.gold { background: var(--grad-gold); color: var(--gold-dark-text); }
.wishlist-btn {
    position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, 0.94);
    border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--muted);
    transition: all 0.2s; z-index: 2; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.wishlist-btn:hover { color: var(--red); transform: scale(1.12); }

.card-content { padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-title {
    font-size: 1rem; font-weight: 800; margin: 0 0 0.3rem; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2.6rem; line-height: 1.3; font-family: var(--font-display);
}
.card-title:hover { color: var(--purple); }
.card-instructor { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.7rem; }
.card-meta { display: flex; align-items: center; gap: 0.25rem; font-size: 0.85rem; }
.rating { font-weight: 800; color: #8f701c; }
.rating-star { color: var(--gold-2); }
.review-count { color: var(--muted); margin-left: 0.35rem; }

.card-footer {
    margin-top: auto; display: flex; justify-content: space-between; align-items: center;
    padding-top: 0.9rem; margin-top: 0.85rem; border-top: 1px solid var(--border-soft);
}
.price { font-size: 1.2rem; font-weight: 800; color: var(--ink); font-family: var(--font-display); }
.price.strike { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-decoration: line-through; margin-right: 6px; font-family: var(--font-body); }
.price-free { font-size: 1.1rem; font-weight: 800; color: var(--green); font-family: var(--font-display); }
.add-cart-btn {
    background: transparent; border: 1.5px solid var(--purple); color: var(--purple);
    padding: 0.45rem 1rem; border-radius: var(--radius-xs); font-weight: 800; font-size: 0.8rem;
    cursor: pointer; transition: all 0.2s; font-family: var(--font-body); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}
.add-cart-btn:hover { background: var(--purple); color: #fff; box-shadow: 0 6px 14px rgba(105,41,121,.25); }
.add-cart-btn.in-cart { background: var(--purple-soft); border-color: transparent; color: var(--purple); cursor: default; }

/* ============ Final CTA (homepage cta-final look) ============ */

.cta-banner { max-width: 1280px; margin: 3rem auto; padding: 0 1rem; }
.cta-final {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    background: #241229; color: #fff; border-radius: 24px; padding: 44px 48px;
    box-shadow: 0 24px 60px rgba(36,18,41,.28);
}
.cta-final-copy { flex: 1 1 auto; min-width: 0; }
.cta-final-copy h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; margin: 8px 0 10px; color: #fff; line-height: 1.12; }
.cta-final-copy p { color: #D9CBDD; max-width: 620px; margin: 0; font-size: 18px; }
.cta-final-copy .kicker { color: #DDAAE6; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: block; }
.cta-final-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.cta-final-actions .btn {
    display: inline-flex; align-items: center; justify-content: center;
    white-space: nowrap; font-size: 16px; padding: 14px 26px; margin: 0;
}
.cta-final-actions .btn-ghost-dark { background: transparent; border: 1px solid #67526D; color: #fff; }
.cta-final-actions .btn-ghost-dark:hover { background: #2f1836; border-color: #8a6f94; }
.cta-final-actions .btn-gold { color: #3D2C05; }
@media (max-width: 920px) {
    .cta-final { flex-wrap: wrap; padding: 36px 28px; }
}
@media (max-width: 560px) {
    .cta-final { padding: 28px 22px; flex-direction: column; align-items: stretch; text-align: left; }
    .cta-final-actions { flex-direction: column; width: 100%; }
    .cta-final-actions .btn { width: 100%; }
}

/* ============ Sections (legacy pages) ============ */

.mp-section { padding: 2.5rem 1rem; background: var(--bg); }
.mp-section.tint { background: linear-gradient(180deg, #fff 0%, #F9F8FC 40%, #fff 100%); }
.mp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 1.5rem; }
.mp-section-head h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 0; font-family: var(--font-display); }
.mp-kicker {
    display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .09em; color: var(--purple); margin-bottom: 6px;
}
.mp-section-head a { color: var(--purple); font-weight: 800; font-size: 0.9rem; text-decoration: none; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.4rem; }
.mp-grid.wide { grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 1.2rem; }

/* Legacy card — re-styled to course-card pattern */
.mp-card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--border-soft); overflow: hidden;
    display: flex; flex-direction: column; position: relative; text-decoration: none; color: inherit;
    transition: all 0.3s ease;
}
.mp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(105,41,121,.28); }
.mp-card-cover { aspect-ratio: 16/9; background: var(--grad); position: relative; overflow: hidden; display: block; }
.mp-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.mp-card:hover .mp-card-cover img { transform: scale(1.04); }
.mp-card-body { padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mp-card-cat { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--purple); }
.mp-card-title { font-weight: 800; font-size: 1rem; color: var(--ink); line-height: 1.3; margin: 0; font-family: var(--font-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-card-seller { font-size: 0.85rem; color: var(--muted); }
.mp-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--border-soft); }
.mp-price-free { font-weight: 800; color: var(--green); font-size: 1.05rem; }
.mp-price { font-weight: 800; color: var(--ink); font-size: 1.15rem; font-family: var(--font-display); }
.mp-price small { font-weight: 700; font-size: 0.76rem; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.mp-rating { color: #8f701c; font-weight: 800; font-size: 0.85rem; }
.mp-rating .star { color: var(--gold-2); }

.mp-badge {
    display: inline-block; background: var(--grad); color: #fff; font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em; padding: 0.3rem 0.7rem; border-radius: 999px;
}
.mp-badge.green { background: var(--mp-green-light); color: var(--mp-green); }
.mp-badge.red { background: var(--mp-red-light); color: var(--mp-red); }
.mp-badge.purple { background: var(--mp-purple-light); color: var(--mp-purple); }
.mp-badge.gray { background: #F3F4F6; color: var(--muted); }
.mp-badge.amber { background: var(--mp-amber-light); color: var(--mp-amber); }

/* Legacy dark hero — sell landing only */
.mp-hero {
    background: var(--grad); color: #fff; padding: 4.5rem 1.5rem; position: relative; overflow: hidden;
}
.mp-hero::before {
    content: ''; position: absolute; right: -120px; top: -140px; width: 460px; height: 460px;
    border-radius: 50%; background: radial-gradient(circle, rgba(231,169,43,.16) 0%, transparent 70%);
    pointer-events: none;
}
.mp-hero::after {
    content: ''; position: absolute; left: -90px; bottom: -160px; width: 420px; height: 420px;
    border-radius: 50%; background: radial-gradient(circle, rgba(209,112,225,.22) 0%, transparent 70%);
    pointer-events: none;
}
.mp-hero .container { position: relative; z-index: 1; }
.mp-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; margin: 0 0 0.5rem; color: #fff; letter-spacing: -0.02em; }
.mp-hero h1 span { background: var(--grad-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mp-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.85); max-width: 580px; margin: 0 0 1.5rem; line-height: 1.6; }
.mp-hero .dot-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000 100%);
    mask-image: linear-gradient(135deg, transparent 30%, #000 100%);
    pointer-events: none;
}
.mp-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: .02em; color: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
}

/* ============ Detail page ============ */

.mp-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
@media (max-width: 860px) { .mp-detail { grid-template-columns: 1fr; } }
.mp-detail-grid { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.mp-detail-cover { border-radius: var(--radius); overflow: hidden; background: var(--purple-soft); align-self: start; border: 1px solid var(--border-soft); }
.mp-detail-cover img { width: 100%; display: block; }
.mp-detail h1 { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em; line-height: 1.25; }
.mp-detail .mp-price-big { font-size: 2rem; font-weight: 800; color: var(--purple); font-family: var(--font-display); }
.mp-detail .mp-price-big small { font-size: 1rem; color: var(--muted); text-decoration: line-through; margin-left: 8px; font-weight: 700; }
.mp-desc { color: var(--ink-soft); line-height: 1.7; font-size: 0.95rem; }
.mp-desc p { margin: 0 0 12px; }
.mp-meta-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.mp-meta-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.mp-meta-list svg { width: 18px; height: 18px; stroke: var(--purple); flex: none; }

.mp-reviews { margin-top: 32px; }
.mp-reviews .mp-review { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 12px; }
.mp-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mp-review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex: none; }
.mp-review-name { font-weight: 800; font-size: 0.9rem; color: var(--ink); }
.mp-review-date { font-size: 0.78rem; color: var(--muted); }
.mp-review-body { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.mp-star { transition: transform 0.15s ease; }

/* ============ Seller console / generic ============ */

.mp-shell { background: var(--bg); min-height: 100vh; }
.mp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.mp-stat { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mp-stat:hover { border-color: rgba(105,41,121,.28); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.mp-stat .mp-stat-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mp-stat .mp-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin-top: 6px; font-family: var(--font-display); }
.mp-stat .mp-stat-sub { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

.mp-status-pill { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.mp-status-pill.green { background: var(--mp-green-light); color: var(--mp-green); }
.mp-status-pill.gray { background: #F3F4F6; color: var(--muted); }
.mp-status-pill.amber { background: var(--mp-amber-light); color: var(--mp-amber); }
.mp-status-pill.purple { background: var(--mp-purple-light); color: var(--mp-purple); }
.mp-status-pill.red { background: var(--mp-red-light); color: var(--mp-red); }

.mp-field { margin-bottom: 16px; }
.mp-field label { display: block; font-weight: 800; font-size: 0.85rem; color: var(--ink); margin-bottom: 6px; }
.mp-field input, .mp-field textarea, .mp-field select, input.mp-field, textarea.mp-field, select.mp-field {
    width: 100%; padding: 0.65rem 0.8rem; border: 1.5px solid var(--border); border-radius: var(--radius-xs);
    font-family: var(--font-body); font-size: 0.92rem; color: var(--ink); background: #fff;
    outline: none; transition: border-color .2s, box-shadow .2s;
}
.mp-field textarea { min-height: 110px; resize: vertical; }
.mp-field input::placeholder, .mp-field textarea::placeholder { color: var(--faint); }
.mp-field input:focus, .mp-field textarea:focus, .mp-field select:focus, input.mp-field:focus, textarea.mp-field:focus, select.mp-field:focus {
    border-color: var(--purple); box-shadow: 0 0 0 3px rgba(105,41,121,.1);
}

.mp-table-wrap { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.mp-table { width: 100%; border-collapse: collapse; }
.mp-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0.8rem 1rem; background: var(--purple-soft); border-bottom: 1px solid var(--border-soft); font-weight: 800; }
.mp-table td { padding: 0.9rem 1rem; font-size: 0.9rem; color: var(--ink-soft); border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.mp-table tr:last-child td { border-bottom: none; }
.mp-table tr:hover td { background: #faf3fb; }
.mp-table .mp-actions { display: flex; gap: 8px; }

.mp-empty { text-align: center; padding: 56px 20px; background: #fff; border: 1.5px dashed var(--border); border-radius: var(--radius); }
.mp-empty .mp-empty-icon { font-size: 2.2rem; margin-bottom: 10px; }
.mp-empty h3 { color: var(--ink); font-weight: 800; margin: 0 0 8px; font-family: var(--font-display); }
.mp-empty p { color: var(--muted); margin: 0; }

.mp-admin-cover { width: 74px; height: 46px; object-fit: cover; border-radius: var(--radius-xs); background: var(--purple-soft); border: 1px solid var(--border-soft); }
.mp-glass { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.mp-glow:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(105,41,121,.1); }

/* ============ Responsive ============ */

@media (max-width: 900px) {
    .marketplace-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: none; }
    .hero-text h1 { font-size: 1.7rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
}
@media (max-width: 680px) {
    .hero-search { flex-wrap: wrap; border-radius: 16px; }
    .hero-search button { width: 100%; border-radius: 999px; }
}