/**
 * Marketscrow UI â€” brand colors sampled from logo_art.png & logo_text_motto.png.
 * Re-run: php scripts/extract-brand-colors.php
 */
:root {
    --mc-navy: #0b2d5c;
    --mc-navy-dark: #051a38;
    --mc-navy-light: #1e4b8f;
    --mc-green: #1fa855;
    --mc-green-hover: #0a8f4a;
    --mc-green-bright: #28c76f;
    --mc-green-glow: rgba(31, 168, 85, 0.35);
    --mc-green-a06: rgba(31, 168, 85, 0.06);
    --mc-green-a08: rgba(31, 168, 85, 0.08);
    --mc-green-a10: rgba(31, 168, 85, 0.10);
    --mc-green-a12: rgba(31, 168, 85, 0.12);
    --mc-green-a14: rgba(31, 168, 85, 0.14);
    --mc-green-a15: rgba(31, 168, 85, 0.15);
    --mc-green-a18: rgba(31, 168, 85, 0.18);
    --mc-green-a20: rgba(31, 168, 85, 0.20);
    --mc-green-a22: rgba(31, 168, 85, 0.22);
    --mc-green-a25: rgba(31, 168, 85, 0.25);
    --mc-green-a28: rgba(31, 168, 85, 0.28);
    --mc-green-a30: rgba(31, 168, 85, 0.30);
    --mc-green-a35: rgba(31, 168, 85, 0.35);
    --mc-green-a40: rgba(31, 168, 85, 0.40);
    --mc-green-a55: rgba(31, 168, 85, 0.55);
    --mc-dark: #051a38;
    --mc-dark-card: #0a1628;
    --mc-dark-border: rgba(31, 168, 85, 0.25);
    --mc-text: #ffffff;
    --mc-muted: #a3a3a3;
    --mc-auth-bg: #e9ebf1;
    --mc-radius: 12px;
    --mc-radius-lg: 20px;
    --mc-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mc-font-display: 'Plus Jakarta Sans', var(--mc-font-body);
}

/* Body text â€” Inter (forms, nav, listings meta) */
body.mc-landing,
body.mc-dashboard,
body.mc-auth,
body.mc-admin,
body.mc-marketplace-page {
    font-family: var(--mc-font-body);
}

/* Headlines, prices, CTAs â€” Plus Jakarta Sans (marketplace feel) */
h1, h2, h3,
.mc-logo span,
.mc-mp-logo span,
.mc-dash-brand span,
.mc-admin-brand span,
.mc-auth-logo span,
.mc-page-title,
.mc-mp-search-hero h1,
.mc-mp-listing-price,
.mc-market-card-price,
.mc-mp-listing-body h3,
.mc-mp-results-head h2,
.mc-mp-sell-btn,
.mc-hero h1,
.mc-section h2,
.mc-home-marketplace h2,
.mc-mp-cat-text strong,
.mc-mp-sidebar-all strong,
.mc-btn-primary,
.mc-money,
.mc-trader-kpi-value {
    font-family: var(--mc-font-display);
}

.mc-mp-listing-price,
.mc-market-card-price,
.mc-money,
.mc-trader-kpi-value {
    font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }

body.mc-landing {
    background-color: var(--mc-dark);
    background-image:
        radial-gradient(ellipse 70% 55% at 8% 15%, var(--mc-green-a14), transparent 55%),
        radial-gradient(ellipse 55% 45% at 92% 12%, var(--mc-green-a10), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, var(--mc-green-a06), transparent 60%);
    color: var(--mc-text);
    font-family: var(--mc-font-body);
    margin: 0;
    line-height: 1.6;
}

body.mc-auth {
    background: var(--mc-auth-bg);
    font-family: var(--mc-font-body);
    min-height: 100vh;
    margin: 0;
}

/* â”€â”€ Landing header â”€â”€ */
.mc-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 10, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.mc-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
}
.mc-logo--wordmark {
    display: block;
    line-height: 0;
}
.mc-logo span { letter-spacing: -0.02em; }

.mc-brand-mark {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.mc-brand-mark--dash {
    max-height: 24px;
    max-width: 24px;
}
.mc-brand-wordmark {
    display: block;
    width: auto;
    max-width: min(280px, 52vw);
    height: auto;
    max-height: 44px;
    object-fit: contain;
}
.mc-brand-wordmark--footer {
    max-height: 52px;
    margin-bottom: 0.75rem;
}
.mc-brand-mark--topbar {
    max-height: 32px;
}
.mc-brand-mark--auth {
    max-height: 56px;
    margin: 0 auto;
}

/* Legacy overlapping squares (fallback if images missing) */
.mc-brand-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-block;
    flex-shrink: 0;
}
.mc-brand-square {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 3px;
}
.mc-brand-square-a {
    background: #4a8f08;
    top: 2px;
    left: 0;
    transform: rotate(-8deg);
}
.mc-brand-square-b {
    background: var(--mc-green);
    bottom: 0;
    right: 0;
    transform: rotate(12deg);
    box-shadow: 0 0 12px var(--mc-green-glow);
}

.mc-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--mc-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mc-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.mc-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
}
.mc-nav a:hover { color: var(--mc-green); }

/* Mobile menu toggle (hidden on desktop) */
.mc-nav-toggle,
.mc-dash-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.mc-dash-nav-toggle {
    border-color: #e5e7eb;
    background: #f9fafb;
}
.mc-nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.mc-dash-nav-toggle .mc-nav-toggle-bar {
    background: #374151;
}
.mc-header.is-nav-open .mc-nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mc-header.is-nav-open .mc-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.mc-header.is-nav-open .mc-nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.mc-dash-header.is-nav-open .mc-nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mc-dash-header.is-nav-open .mc-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.mc-dash-header.is-nav-open .mc-nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.mc-nav-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* â”€â”€ Buttons â”€â”€ */
.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.mc-btn:active { transform: scale(0.98); }
.mc-btn-primary {
    background: var(--mc-green);
    color: #000;
    box-shadow: 0 0 24px var(--mc-green-glow);
}
.mc-btn-primary:hover {
    background: var(--mc-green-hover);
    color: #000;
}
.mc-btn-secondary {
    background: #1a1f14;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.mc-btn-secondary:hover { border-color: var(--mc-green); color: var(--mc-green); }
.mc-btn-signin {
    background: var(--mc-green);
    color: #000;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* â”€â”€ Hero â”€â”€ */
.mc-hero {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    z-index: 1;
}
@media (max-width: 900px) {
    .mc-hero { grid-template-columns: 1fr; }
}
.mc-hero-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mc-green);
    margin-bottom: 1rem;
}
.mc-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 1.25rem;
}
.mc-hero-desc {
    color: var(--mc-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 520px;
}
.mc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero widget card (Eskrow-style) */
.mc-hero-widget {
    position: relative;
}
.mc-hero-deco {
    position: absolute;
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}
.mc-hero-deco img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
.mc-hero-deco-lock { top: -8px; left: -20px; }
.mc-hero-deco-lock img { width: 56px; height: 56px; }
.mc-hero-deco-hand { bottom: 20px; right: -28px; }
.mc-hero-deco-hand img { width: 64px; height: 64px; }
.mc-hero-deco-shield { top: 40%; right: -36px; }
.mc-hero-deco-shield img { width: 48px; height: 48px; }
@media (max-width: 768px) {
    .mc-hero-deco-hand { display: none; }
}

.mc-hero-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(155deg, rgba(16, 22, 10, 0.92), rgba(10, 14, 8, 0.88));
    border: 1px solid var(--mc-green-a35);
    border-radius: var(--mc-radius-lg);
    padding: 2.25rem 1.75rem 1.75rem;
    box-shadow: 0 0 80px var(--mc-green-a22), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
}
.mc-hero-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 480px) {
    .mc-hero-form-row { grid-template-columns: 1fr; }
}
.mc-hero-continue {
    width: 100%;
    border-radius: 12px;
    margin-top: 0.5rem;
    padding: 1rem;
}
.mc-hero-card-badge {
    width: 56px;
    height: 56px;
    background: var(--mc-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -3rem auto 1.25rem;
    box-shadow: 0 0 30px var(--mc-green-glow);
}
.mc-hero-card-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.mc-form-group { margin-bottom: 1rem; }
.mc-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mc-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mc-input, .mc-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--mc-radius);
    color: #fff;
    font-size: 0.95rem;
}
.mc-input:focus, .mc-select:focus {
    outline: none;
    border-color: var(--mc-green);
    box-shadow: 0 0 0 3px var(--mc-green-glow);
}
.mc-select option { background: #111; color: #fff; }

/* â”€â”€ Sections â”€â”€ */
.mc-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}
.mc-section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mc-green);
    margin-bottom: 0.5rem;
}
.mc-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 1rem;
}
.mc-section-muted { color: var(--mc-muted); }

.mc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.mc-feature-card {
    background: var(--mc-dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--mc-radius-lg);
    padding: 1.75rem;
}
.mc-feature-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}
.mc-feature-card p {
    color: var(--mc-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Process steps */
.mc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.mc-step {
    background: var(--mc-dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--mc-radius-lg);
    padding: 1.5rem;
    position: relative;
}
.mc-step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--mc-green);
    opacity: 0.9;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.mc-step h3 { font-size: 1rem; margin: 0 0 0.5rem; }
.mc-step p { color: var(--mc-muted); font-size: 0.85rem; margin: 0; }

/* FAQ */
.mc-faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mc-faq-q {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mc-faq-a {
    color: var(--mc-muted);
    font-size: 0.9rem;
}

/* Testimonials */
.mc-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.mc-testimonial {
    background: var(--mc-dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--mc-radius-lg);
    padding: 1.75rem;
}
.mc-testimonial p { color: var(--mc-muted); font-size: 0.9rem; font-style: italic; }
.mc-testimonial strong { display: block; margin-top: 1rem; color: #fff; }
.mc-testimonial span { font-size: 0.8rem; color: var(--mc-green); }

/* Footer */
.mc-footer {
    background: #030500;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 2rem;
}
.mc-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 768px) {
    .mc-footer-inner { grid-template-columns: 1fr 1fr; }
}
.mc-footer h5 {
    font-size: 0.95rem;
    margin: 0 0 1rem;
}
.mc-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mc-footer li { margin-bottom: 0.5rem; }
.mc-footer a {
    color: var(--mc-muted);
    text-decoration: none;
    font-size: 0.875rem;
}
.mc-footer a:hover { color: var(--mc-green); }
.mc-footer-copy {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    color: var(--mc-muted);
    font-size: 0.8rem;
}
.mc-footer-attribution {
    max-width: 1200px;
    margin: 0.35rem auto 0;
    text-align: center;
    color: var(--mc-muted);
    font-size: 0.72rem;
    opacity: 0.85;
}
.mc-footer-attribution a {
    color: inherit;
    text-decoration: underline;
}

/* â”€â”€ Auth (admin-style) â”€â”€ */
.mc-auth-card {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 2.75rem 2.25rem 2.25rem;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    animation: mc-auth-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes mc-auth-in {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.mc-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--mc-auth-bg);
}
.mc-auth-logo {
    width: 72px;
    height: 72px;
    background: var(--mc-green-a12);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mc-auth-logo .mc-brand-icon {
    width: 36px;
    height: 36px;
}
.mc-auth-logo .mc-brand-square { width: 20px; height: 20px; }
.mc-auth-card h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: #111;
}
.mc-auth-sub {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}
.mc-auth-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #111;
    margin-bottom: 0.4rem;
}
.mc-auth-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1.1rem;
    background: #fafafa;
}
.mc-auth-row a { color: var(--mc-green); font-weight: 600; text-decoration: none; }
.mc-auth-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
}
.mc-auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--mc-green);
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.mc-auth-check--legal {
    align-items: flex-start;
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.45;
}
.mc-auth-check--legal a {
    color: var(--mc-green);
    font-weight: 600;
    text-decoration: none;
}
.mc-auth-check--legal a:hover { text-decoration: underline; }
.mc-auth-check-note {
    display: block;
    margin-top: 0.2rem;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
}
.mc-auth-input:focus {
    outline: none;
    border-color: var(--mc-green);
    box-shadow: 0 0 0 3px var(--mc-green-glow);
    background: #fff;
}
.mc-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}
.mc-auth-submit {
    width: 100%;
    padding: 0.95rem;
    background: var(--mc-green);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--mc-green-a25);
}
.mc-auth-submit:hover { background: var(--mc-green-hover); }

.mc-phone-field {
    display: flex;
    align-items: stretch;
    margin-bottom: 1rem;
}

.mc-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.875rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
}

.mc-phone-input {
    border-radius: 0 10px 10px 0 !important;
    margin-bottom: 0 !important;
}

.mc-otp-input {
    letter-spacing: 0.35em;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.mc-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--mc-radius);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.mc-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.mc-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.mc-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.mc-platform-notice { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.45; }
.mc-platform-notice--compact { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: baseline; }
.mc-platform-notice--compact p { margin: 0; }
.mc-chat-readonly .mc-chat-messages { max-height: 320px; overflow-y: auto; }

/* Legal pages */
.mc-legal-page {
    padding: 6rem 1.5rem 3rem;
    position: relative;
    z-index: 1;
}
.mc-legal-shell {
    max-width: 760px;
    margin: 0 auto;
}
.mc-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
}
.mc-legal-nav a {
    color: var(--mc-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding-bottom: 0.15rem;
    border-bottom: 2px solid transparent;
}
.mc-legal-nav a:hover,
.mc-legal-nav a.is-active {
    color: var(--mc-green);
    border-bottom-color: var(--mc-green);
}
.mc-legal-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    color: #e5e7eb;
    line-height: 1.65;
}
.mc-legal-header h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #fff;
}
.mc-legal-updated {
    margin: 0 0 1.5rem;
    color: var(--mc-muted);
    font-size: 0.875rem;
}
.mc-legal-content h2 {
    margin: 1.75rem 0 0.65rem;
    font-size: 1.05rem;
    color: #fff;
}
.mc-legal-content p,
.mc-legal-content ul {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #d1d5db;
}
.mc-legal-content ul {
    padding-left: 1.25rem;
}
.mc-legal-content li { margin-bottom: 0.35rem; }
.mc-legal-content a {
    color: var(--mc-green);
    text-decoration: none;
}
.mc-legal-content a:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .mc-legal-page { padding-top: 5rem; }
    .mc-legal-content { padding: 1.25rem 1rem; }
}
.mc-contact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0 0 1.25rem;
}
.mc-contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.mc-contact-card h2 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    color: #fff;
}
.mc-contact-card p {
    margin: 0 0 0.35rem;
}
.mc-contact-hint {
    color: var(--mc-muted) !important;
    font-size: 0.85rem !important;
}
.mc-contact-form {
    margin: 0 0 1.5rem;
    max-width: 36rem;
}
.mc-contact-form .mc-input,
.mc-contact-form select.mc-input,
.mc-contact-form textarea.mc-input {
    width: 100%;
    box-sizing: border-box;
}
.mc-legal-content .mc-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}
.mc-legal-content .mc-alert-success {
    background: rgba(31, 168, 85, 0.12);
    border: 1px solid rgba(31, 168, 85, 0.35);
    color: #d1fae5;
}
.mc-legal-content .mc-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

/* Dashboard shell (logged-in web) */
body.mc-dashboard {
    background: var(--mc-auth-bg);
    font-family: var(--mc-font-body);
    margin: 0;
    min-height: 100vh;
}
.mc-dash-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
}
.mc-dash-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.mc-dash-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.mc-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
}

.mc-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.35rem;
}

.mc-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.75rem 0.875rem;
    font: inherit;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.mc-input:focus {
    outline: none;
    border-color: var(--mc-green);
    box-shadow: 0 0 0 3px var(--mc-green-a15);
}

.mc-textarea { resize: vertical; min-height: 88px; }

.mc-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.mc-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.mc-action-card {
    display: block;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    border: 1px solid transparent;
}

.mc-action-card strong { display: block; font-size: 1.1rem; margin-bottom: 0.35rem; }
.mc-action-card p { margin: 0; font-size: 0.875rem; opacity: 0.85; }

.mc-action-buy { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.mc-action-sell { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.mc-action-lookup { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }

.mc-broadcast-list { display: grid; gap: 0.75rem; }
.mc-broadcast-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.mc-broadcast-card h3 { margin: 0.35rem 0; font-size: 1rem; font-weight: 700; }
.mc-broadcast-card p { margin: 0; color: #6b7280; font-size: 0.875rem; }
.mc-broadcast-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.8125rem; color: #6b7280; }

.mc-pill {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    background: #f3f4f6;
    color: #374151;
}

.mc-pill-buy { background: #dcfce7; color: #166534; }
.mc-pill-sell { background: #fef3c7; color: #92400e; }

.mc-money { font-weight: 700; color: #111; font-size: 1rem; }
.mc-order-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.mc-order-step {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    color: #6b7280;
}

.mc-order-step.active {
    border-color: var(--mc-green);
    background: var(--mc-green-a08);
    color: #111827;
}

.mc-order-step.done {
    border-color: var(--mc-green-a35);
    color: #111827;
}

.mc-order-step-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.mc-order-step-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

.mc-empty-card {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.mc-empty-state {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    color: #4b5563;
}
.mc-empty-state--compact {
    padding: 1.75rem 1.25rem;
}
.mc-empty-state--warning {
    border-color: #fcd34d;
    background: #fffbeb;
}
.mc-empty-state--success {
    border-color: rgba(31, 168, 85, 0.35);
    background: rgba(31, 168, 85, 0.06);
}
.mc-empty-state-art {
    display: block;
    width: min(100%, 220px);
    height: auto;
    margin: 0 auto 1rem;
}
.mc-empty-state--compact .mc-empty-state-art {
    width: min(100%, 160px);
    margin-bottom: 0.75rem;
}
.mc-empty-state-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}
.mc-empty-state-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}
.mc-empty-state-copy {
    margin: 0 auto 1rem;
    max-width: 36rem;
    line-height: 1.55;
}
.mc-empty-state-steps {
    text-align: left;
    max-width: 24rem;
    margin: 0 auto 1.25rem;
    padding-left: 1.25rem;
    color: #6b7280;
    font-size: 0.9rem;
}
.mc-empty-state-steps li {
    margin-bottom: 0.35rem;
}
.mc-empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.mc-order-stepper-banner {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.45;
}
.mc-order-stepper-banner strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}
.mc-order-stepper-banner--disputed {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}
.mc-order-stepper-banner--cancelled {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.mc-order-stepper--disputed .mc-order-step.active,
.mc-order-stepper--cancelled .mc-order-step.active {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}
.mc-order-step.muted {
    opacity: 0.45;
}

#mc-order-status-body.is-loading {
    position: relative;
    min-height: 120px;
    opacity: 0.55;
    pointer-events: none;
}
#mc-order-status-body.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: mc-skeleton-shimmer 1.2s ease-in-out infinite;
}

.mc-skeleton-list {
    display: grid;
    gap: 0.75rem;
}
.mc-skeleton-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem 1.1rem;
}
.mc-skeleton-line {
    height: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: mc-skeleton-shimmer 1.2s ease-in-out infinite;
    margin-bottom: 0.55rem;
}
.mc-skeleton-line--sm { width: 28%; }
.mc-skeleton-line--md { width: 55%; }
.mc-skeleton-line--lg { width: 72%; }

.mc-skeleton-chat {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.mc-skeleton-bubble {
    height: 2.75rem;
    border-radius: 12px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: mc-skeleton-shimmer 1.2s ease-in-out infinite;
}
.mc-skeleton-bubble--left {
    width: 68%;
    justify-self: start;
}
.mc-skeleton-bubble--right {
    width: 52%;
    justify-self: end;
}
.mc-skeleton-bubble--short {
    width: 42%;
}

@keyframes mc-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mc-page-narrow {
    max-width: 720px;
    margin: 0 auto;
}
.mc-back-link {
    color: var(--mc-green);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.25rem;
}
.mc-back-link:hover { text-decoration: underline; }
.mc-label-muted {
    color: #6b7280;
    font-size: 0.8125rem;
}
.mc-field-error {
    color: #b91c1c;
    font-size: 0.8125rem;
    margin: -0.65rem 0 0.75rem;
}
.mc-broadcast-desc {
    line-height: 1.6;
    margin: 1rem 0 0;
    color: #374151;
}
.mc-broadcast-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.25rem;
}
.mc-broadcast-detail { margin-top: 1rem; }

.mc-bids-section {
    margin-top: 2rem;
}
.mc-bids-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.mc-bids-head h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}
.mc-bid-list {
    display: grid;
    gap: 0.75rem;
}
.mc-bid-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem 1.25rem;
}
.mc-bid-card--accepted {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.mc-bid-card--rejected {
    opacity: 0.72;
}
.mc-bid-price .mc-money {
    font-size: 1.125rem;
}
.mc-bid-trader {
    margin-top: 0.35rem;
    font-size: 0.9rem;
}
.mc-bid-meta {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
}
.mc-bid-message {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}
.mc-bid-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    min-width: 120px;
}
.mc-bid-accept-form { margin: 0; }
.mc-pill-bid-pending { background: #eff6ff; color: #1d4ed8; }
.mc-pill-bid-accepted { background: #dcfce7; color: #166534; }
.mc-pill-bid-rejected { background: #f3f4f6; color: #6b7280; }
.mc-pill-bid-withdrawn { background: #f3f4f6; color: #6b7280; }
.mc-bid-form-card { margin-top: 1.5rem; }
.mc-bid-form-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

/* Guest browse / lookup on landing */
.mc-browse-guest {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}
.mc-browse-hero {
    margin-bottom: 2rem;
}
.mc-browse-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.mc-input-dark {
    background: #111 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}
.mc-feed-card h3 {
    margin: 0.35rem 0;
    font-size: 1rem;
    font-weight: 700;
}

.mc-feed-card--list {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
}
.mc-feed-card--list .mc-feed-card-thumb {
    flex: 0 0 88px;
    width: 88px;
    background: #f3f4f6;
    align-self: stretch;
}
.mc-feed-card--list .mc-feed-card-thumb img {
    width: 100%;
    height: 100%;
    min-height: 88px;
    object-fit: cover;
    display: block;
}
.mc-feed-card-thumb-placeholder {
    width: 100%;
    min-height: 88px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #9ca3af;
    font-size: 1.25rem;
}
.mc-feed-card--list .mc-feed-card-body {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem 1rem 0;
}
.mc-feed-card-media {
    margin-top: 0.75rem;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
}
.mc-feed-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mc-order-chat { margin-top: 1.5rem; }
.mc-chat-messages {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.mc-chat-bubble {
    max-width: 85%;
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
}
.mc-chat-bubble--mine {
    align-self: flex-end;
    background: #dcfce7;
    color: #14532d;
}
.mc-chat-bubble--theirs {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.mc-chat-bubble--support {
    align-self: center;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    max-width: 92%;
}
.mc-chat-bubble-meta {
    font-size: 0.6875rem;
    opacity: 0.75;
    margin-bottom: 0.2rem;
}
.mc-chat-bubble-body { white-space: pre-wrap; word-break: break-word; }
.mc-chat-compose {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}
.mc-chat-compose textarea {
    flex: 1;
    resize: vertical;
    min-height: 2.75rem;
}

.mc-credibility-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-left: 0.25rem;
}
.mc-credibility-discount { color: #166534; }
.mc-credibility-surcharge { color: #b45309; }

.mc-bid-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}
.mc-bid-sort-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}
.mc-bid-sort-btn.is-active {
    border-color: var(--mc-green, #1fa855);
    background: #f0fdf4;
    color: #14532d;
}
.mc-star-rating .mc-star-option:has(input:checked) span,
.mc-star-rating .mc-star-option:hover span {
    color: #f59e0b;
}
body.mc-landing .mc-browse-guest .mc-empty-card {
    background: var(--mc-dark-card);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--mc-muted);
}
body.mc-landing .mc-browse-guest .mc-broadcast-card {
    background: var(--mc-dark-card);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}
body.mc-landing .mc-browse-guest .mc-broadcast-card p {
    color: var(--mc-muted);
}

@media (max-width: 640px) {
    .mc-bid-card {
        flex-direction: column;
    }
    .mc-bid-card-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .mc-bid-accept-form .mc-btn {
        width: 100%;
    }
}


/* â”€â”€ User dashboard shell â”€â”€ */
.mc-dash-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: #111;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 0;
}
.mc-dash-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    min-width: 0;
}
.mc-dash-nav a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}
.mc-dash-nav a.active,
.mc-dash-nav a:hover { color: var(--mc-green); }
.mc-dash-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.mc-dash-user-pill {
    background: #f3f4f6;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}
.mc-btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
}

.mc-page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}
.mc-page-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mc-green);
    margin: 0 0 0.35rem;
}
.mc-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: #111;
}
.mc-page-sub {
    color: #6b7280;
    margin: 0.35rem 0 0;
}

/* â”€â”€ Admin panel (Eskrow-style) â”€â”€ */
body.mc-admin {
    margin: 0;
    font-family: var(--mc-font-body);
    background: #f4f6f8;
    color: #1f2937;
    display: flex;
    min-height: 100vh;
}
.mc-admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #f3f8ec 0%, #eef4e6 100%);
    border-right: 1px solid #e2e8d6;
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
}
.mc-admin-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.25rem 1.5rem;
    text-decoration: none;
    color: #111;
    font-weight: 700;
    font-size: 1.15rem;
}
.mc-admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.75rem;
    flex: 1;
}
.mc-admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.9rem;
}
.mc-admin-nav-item:hover { background: var(--mc-green-a08); color: #111; }
.mc-admin-nav-item.active {
    background: var(--mc-green-a15);
    color: var(--mc-green);
}
.mc-admin-sidebar-foot {
    padding: 1rem 1.25rem 0;
    font-size: 0.75rem;
    color: #9ca3af;
}
.mc-admin-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mc-admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.mc-admin-search {
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    color: #9ca3af;
}
.mc-admin-search input {
    border: none;
    background: transparent;
    flex: 1;
    font: inherit;
    outline: none;
    color: #374151;
}
.mc-admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.mc-admin-toplink {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}
.mc-admin-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}
.mc-admin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mc-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.mc-admin-logout {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    color: #6b7280;
}
.mc-admin-content {
    padding: 1.5rem;
    flex: 1;
}
.mc-admin-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #9ca3af;
    margin: 0 0 1.25rem;
}
.mc-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.mc-admin-stat {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    animation: mc-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mc-admin-stat:nth-child(1) { animation-delay: 0.05s; }
.mc-admin-stat:nth-child(2) { animation-delay: 0.1s; }
.mc-admin-stat:nth-child(3) { animation-delay: 0.15s; }
.mc-admin-stat:nth-child(4) { animation-delay: 0.2s; }
.mc-admin-stat:nth-child(5) { animation-delay: 0.25s; }
.mc-admin-stat:nth-child(6) { animation-delay: 0.3s; }
.mc-admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--mc-green-a12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.mc-admin-stat-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.2rem;
}
.mc-admin-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}
.mc-admin-stat-trend {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 600;
}
.mc-admin-stat-trend.up { color: var(--mc-green); }
.mc-admin-panel {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mc-admin-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.mc-admin-panel-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.mc-admin-panel-note {
    font-size: 0.75rem;
    color: #9ca3af;
}
.mc-admin-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.mc-admin-quicklinks a {
    color: var(--mc-green);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    background: var(--mc-green-a08);
    border-radius: 8px;
    font-size: 0.875rem;
}
.mc-admin-link {
    color: var(--mc-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}
.mc-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.mc-admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}
.mc-admin-tab:hover {
    border-color: var(--mc-green);
    color: var(--mc-green);
}
.mc-admin-tab.is-active {
    background: var(--mc-green-a10);
    border-color: var(--mc-green);
    color: #166534;
}
.mc-admin-tab-count {
    display: inline-block;
    min-width: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #eef1f4;
    font-size: 0.75rem;
    text-align: center;
}
.mc-admin-tab.is-active .mc-admin-tab-count {
    background: var(--mc-green-a20);
}
.mc-admin-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mc-admin-badge--open {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.mc-admin-badge--resolved {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.mc-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.mc-admin-table th,
.mc-admin-table td {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #eef1f4;
    vertical-align: top;
}
.mc-admin-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}
.mc-admin-table-wrap {
    overflow-x: auto;
}
.mc-admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.mc-admin-settings-card {
    display: block;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
a.mc-admin-settings-card:hover {
    border-color: #c5d0c8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.mc-admin-settings-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}
.mc-admin-settings-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.45;
}
.mc-admin-nav-badge {
    margin-left: auto;
    min-width: 1.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}
.mc-admin-settings-card--static {
    cursor: default;
}
.mc-admin-action-queue {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.mc-admin-action-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.mc-admin-action-item:hover {
    border-color: #c5d0c8;
}
.mc-admin-action-item strong {
    display: block;
    font-size: 0.95rem;
}
.mc-admin-action-item span {
    color: #6b7280;
    font-size: 0.85rem;
}
.mc-dynamic-fields-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin: 1.25rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #eef1f4;
}
.mc-dynamic-field { margin-bottom: 0.25rem; }
.mc-check-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; }
.mc-radio-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.mc-attr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}
.mc-attr-item {
    background: #f8faf8;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
}
.mc-attr-item span { display: block; font-size: 0.75rem; color: #6b7280; }
.mc-attr-item strong { font-size: 0.9rem; color: #111; }

.mc-marketplace-section { background: #f8faf8; }
.mc-marketplace-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.mc-market-filters { margin-bottom: 0.75rem; }
.mc-market-filter-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.mc-market-filter-summary {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
}
.mc-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.mc-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: background 0.15s, border-color 0.15s;
}
.mc-filter-chip:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}
.mc-filter-chip-x {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.65;
}
.mc-filter-chip--clear {
    background: #fff;
    color: var(--mc-green, #1fa855);
    border-color: #bbf7d0;
}
.mc-market-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    align-items: end;
}
.mc-filter-input { min-width: 0; }
.mc-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.mc-market-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mc-market-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mc-market-card-media {
    position: relative;
    aspect-ratio: 4/3;
    background: #eef1f4;
}
.mc-market-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mc-market-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #9ca3af;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}
.mc-market-card-type {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
}
.mc-market-card-body { padding: 0.85rem 1rem 1rem; }
.mc-market-card-price {
    color: var(--mc-green);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.mc-market-card-body h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    line-height: 1.35;
}
.mc-market-card-meta {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}
.mc-market-card-tag {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
}
.mc-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.mc-photo-count {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
}
.mc-photo-thumb {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.mc-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mc-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}
.mc-photo-remove:hover {
    background: #b91c1c;
}
.mc-photo-cover {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.65rem;
    text-align: center;
    padding: 0.15rem;
}
.mc-photo-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    min-width: 72px;
    border: 2px dashed #cfe8b0;
    border-radius: 10px;
    color: var(--mc-green);
    font-weight: 600;
    cursor: pointer;
}
.mc-photo-add input { display: none; }
.mc-photo-add.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
.mc-photo-gallery-open {
    border: none;
    padding: 0;
    background: none;
    cursor: zoom-in;
    font: inherit;
    color: inherit;
    text-align: inherit;
}
.mc-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.mc-photo-gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf0;
    aspect-ratio: 1;
    width: 100%;
}
.mc-photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Photo lightbox */
body.mc-lightbox-open {
    overflow: hidden;
}
.mc-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
}
.mc-photo-lightbox[hidden] {
    display: none !important;
}
.mc-photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 0, 0.88);
}
.mc-photo-lightbox-panel {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    display: grid;
    place-items: center;
}
.mc-photo-lightbox-figure {
    margin: 0;
    max-height: calc(100vh - 6rem);
}
.mc-photo-lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}
.mc-photo-lightbox-figure figcaption {
    margin-top: 0.75rem;
    text-align: center;
    color: #e5e7eb;
    font-size: 0.875rem;
}
.mc-photo-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
.mc-photo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}
.mc-photo-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}
.mc-photo-lightbox-prev { left: -3.25rem; }
.mc-photo-lightbox-next { right: -3.25rem; }
.mc-photo-lightbox-counter {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #d1d5db;
    font-size: 0.8125rem;
    font-weight: 600;
}
@media (max-width: 768px) {
    .mc-photo-lightbox-prev { left: 0.5rem; }
    .mc-photo-lightbox-next { right: 0.5rem; }
    .mc-photo-lightbox-close { top: 0.5rem; right: 0.5rem; }
    .mc-photo-lightbox-counter { bottom: 0.75rem; }
}

@media (max-width: 900px) {
    .mc-admin { flex-direction: column; }
    .mc-admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8d6;
    }
    .mc-admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mc-admin-nav::-webkit-scrollbar { display: none; }
    .mc-admin-nav-item {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .mc-dash-header-inner {
        position: relative;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .mc-dash-nav-toggle { display: flex; }
    .mc-dash-nav {
        display: none;
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 0.35rem;
        margin-top: 0.25rem;
    }
    .mc-dash-header.is-nav-open .mc-dash-nav {
        display: flex;
    }
    .mc-dash-nav a {
        padding: 0.75rem 0.85rem;
        border-radius: 8px;
    }
    .mc-dash-user {
        margin-left: auto;
    }
}

/* â”€â”€ Responsive: mobile-first polish â”€â”€ */
html {
    -webkit-text-size-adjust: 100%;
}

body.mc-landing,
body.mc-dashboard,
body.mc-auth,
body.mc-admin {
    overflow-x: clip;
}

body.mc-nav-open {
    overflow: hidden;
}

img:not(.mc-brand-mark):not(.mc-brand-wordmark):not(.mc-empty-state-art):not(.mc-partner-logo-img),
svg {
    max-width: 100%;
    height: auto;
}
.mc-partner-logo-img {
    display: block;
    width: auto;
    height: 24px;
    max-width: 96px;
    max-height: 24px;
    object-fit: contain;
}
.mc-hero-deco img,
.mc-hero-card-badge img {
    max-width: none;
}

@media (max-width: 900px) {
    .mc-header-inner {
        flex-wrap: wrap;
        position: relative;
    }
    .mc-nav-toggle { display: flex; }
    .mc-header-signin {
        margin-left: auto;
    }
    .mc-nav-panel {
        display: none;
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        background: rgba(6, 10, 0, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.35rem 0 0.75rem;
        margin: 0 -0.25rem;
    }
    .mc-header.is-nav-open .mc-nav-panel {
        display: flex;
    }
    .mc-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    .mc-nav a {
        display: block;
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .mc-section {
        padding: 2.5rem 1rem;
    }
    .mc-hero {
        padding: 2rem 1rem 3rem;
        gap: 2rem;
    }
    .mc-hero-card {
        padding: 1.75rem 1.25rem 1.25rem;
    }
    .mc-footer {
        padding: 2rem 1rem 1rem;
    }
    .mc-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .mc-auth-card {
        padding: 2rem 1.25rem 1.75rem;
        border-radius: 18px;
    }
    .mc-dash-main {
        padding: 1.25rem 1rem 2rem;
    }
    .mc-dash-header {
        padding: 0.75rem 1rem;
    }
    .mc-dash-user-pill {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mc-page-head {
        flex-direction: column;
        align-items: stretch;
    }
    .mc-page-head .mc-btn {
        width: 100%;
        justify-content: center;
    }
    .mc-page-title {
        font-size: 1.45rem;
    }
    .mc-form-card {
        padding: 1.15rem;
    }
    .mc-check-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mc-header-signin {
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem;
    }
    .mc-logo {
        font-size: 1.15rem;
    }
    .mc-admin-topbar {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }
    .mc-admin-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }
    .mc-admin-topbar-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .mc-admin-user span:not(.mc-admin-avatar) {
        display: none;
    }
}

/* â”€â”€ Trader business dashboard â”€â”€ */
.mc-trader-business { max-width: 1100px; margin: 0 auto; }
.mc-period-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.mc-period-tab {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.mc-period-tab:hover { border-color: var(--mc-green); color: #111; }
.mc-period-tab.is-active {
    background: var(--mc-green);
    border-color: var(--mc-green);
    color: #fff;
}
.mc-trader-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.mc-trader-kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--mc-radius-lg);
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mc-trader-kpi-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.35rem;
}
.mc-trader-kpi-value {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    color: #111;
    line-height: 1.2;
}
.mc-trader-kpi-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #9ca3af;
}
.mc-trader-kpi--revenue { border-top: 3px solid var(--mc-green); }
.mc-trader-kpi--expense { border-top: 3px solid #f59e0b; }
.mc-trader-kpi--net { border-top: 3px solid #6366f1; }
.mc-trader-kpi--net.is-negative .mc-trader-kpi-value { color: #dc2626; }
.mc-trader-kpi--net.is-positive .mc-trader-kpi-value { color: #15803d; }
.mc-trader-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
    align-items: start;
}
@media (max-width: 900px) {
    .mc-trader-grid { grid-template-columns: 1fr; }
}
.mc-trader-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.mc-trader-section-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}
.mc-trader-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}
.mc-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}
.mc-legend-dot--revenue { background: var(--mc-green); }
.mc-legend-dot--expense { background: #f59e0b; }
.mc-trader-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    min-height: 200px;
    padding-top: 0.5rem;
    overflow-x: auto;
}
.mc-trader-chart-col {
    flex: 1 1 0;
    min-width: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.mc-trader-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 160px;
    width: 100%;
    justify-content: center;
}
.mc-trader-bar {
    width: 42%;
    border-radius: 4px 4px 0 0;
    min-height: 0;
    transition: height 0.3s ease;
}
.mc-trader-bar--revenue { background: linear-gradient(180deg, #8fd428, var(--mc-green)); }
.mc-trader-bar--expense { background: linear-gradient(180deg, #fcd34d, #f59e0b); }
.mc-trader-chart-label {
    font-size: 0.65rem;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
}
.mc-trader-inline-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 520px) {
    .mc-trader-inline-fields { grid-template-columns: 1fr; }
}
.mc-trader-expense-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    border-top: 1px solid #f3f4f6;
}
.mc-trader-expense-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f3f4f6;
    align-items: flex-start;
}
.mc-trader-expense-item strong { display: block; }
.mc-trader-expense-actions {
    text-align: right;
    white-space: nowrap;
}
.mc-trader-customers {
    display: grid;
    gap: 0.75rem;
}
.mc-trader-customer-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid #f3f4f6;
    border-radius: var(--mc-radius);
    background: #fafafa;
}
@media (max-width: 640px) {
    .mc-trader-customer-card {
        grid-template-columns: auto 1fr;
    }
    .mc-trader-customer-stats {
        grid-column: 1 / -1;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.75rem !important;
    }
}
.mc-trader-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mc-green);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.mc-trader-customer-body strong { display: block; }
.mc-trader-customer-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    font-size: 0.85rem;
}
.mc-trader-customer-revenue {
    color: #15803d;
    font-weight: 700;
    font-size: 1rem;
}
.mc-trader-promo-card {
    display: block;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--mc-radius-lg);
    border: 1px solid var(--mc-green-a35);
    background: linear-gradient(135deg, #f7fee7 0%, #fff 60%);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, transform 0.15s;
}
.mc-trader-promo-card:hover {
    box-shadow: 0 8px 24px var(--mc-green-a15);
    transform: translateY(-1px);
}
.mc-trader-promo-card strong { color: #166534; font-size: 1.05rem; }
.mc-trader-promo-card p { margin: 0.35rem 0 0; color: #4b5563; font-size: 0.9rem; }

.mc-verified-seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #166534;
    background: #dcfce7;
    vertical-align: middle;
}
.mc-verified-seller-badge--identity {
    color: #1d4ed8;
    background: #dbeafe;
}
.mc-referral-hero { margin-top: 1rem; }
.mc-referral-code-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.mc-referral-code {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.65rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}
.mc-referral-rewards-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: #4b5563;
    font-size: 0.9rem;
}
.mc-referral-rewards-list li + li { margin-top: 0.35rem; }
.mc-referral-invite-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mc-referral-invite-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.mc-referral-invite-item:last-child { border-bottom: 0; }
.mc-referral-invite-item strong { display: block; }

.mc-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
    color: #374151;
    font-weight: 700;
    flex-shrink: 0;
}
.mc-user-avatar--sm { width: 2rem; height: 2rem; font-size: 0.8rem; }
.mc-user-avatar--md { width: 2.75rem; height: 2.75rem; font-size: 1rem; }
.mc-user-avatar--lg { width: 4.5rem; height: 4.5rem; font-size: 1.35rem; }
.mc-user-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-avatar-upload {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}
.mc-account-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 560px) {
    .mc-account-type-grid { grid-template-columns: 1fr; }
}
.mc-account-type-option {
    display: block;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.mc-account-type-option input { display: none; }
.mc-account-type-option strong { display: block; margin-bottom: 0.2rem; }
.mc-account-type-option span { font-size: 0.8rem; color: #6b7280; }
.mc-account-type-option.is-selected {
    border-color: var(--mc-green, #1fa855);
    background: #f0fdf4;
}
.mc-account-type-badge {
    display: inline-flex;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #7c3aed;
    background: #ede9fe;
    vertical-align: middle;
}
.mc-bid-trader-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.mc-dash-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* HTTP error pages */
.mc-error-page {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 12rem);
    display: grid;
    place-items: center;
    padding: 6rem 1.5rem 3rem;
}
.mc-error-shell {
    width: min(100%, 560px);
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem 1.75rem;
    backdrop-filter: blur(6px);
}
.mc-error-art {
    display: block;
    width: min(100%, 220px);
    height: auto;
    margin: 0 auto 1.25rem;
}
.mc-error-code {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mc-green);
}
.mc-error-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}
.mc-error-message {
    margin: 0 auto 1.5rem;
    max-width: 34rem;
    color: var(--mc-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}
.mc-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
@media (max-width: 640px) {
    .mc-error-page {
        padding-top: 5rem;
    }
    .mc-error-shell {
        padding: 1.5rem 1.1rem 1.25rem;
    }
    .mc-error-actions .mc-btn {
        width: 100%;
    }
}


/* —— Blog index + article —— */
.mc-blog-index,
.mc-blog-article {
    padding-top: 2rem;
}
.mc-blog-article {
    max-width: 720px;
    margin: 0 auto;
}
.mc-blog-article-title {
    margin: 0.35rem 0 0.75rem;
    line-height: 1.2;
}
.mc-blog-article-meta {
    margin-bottom: 1.5rem;
}
.mc-blog-article-cover {
    margin-bottom: 1.75rem;
    border-radius: 16px;
    overflow: hidden;
    background: #e2e8f0;
}
.mc-blog-article-cover img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
}
.mc-blog-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-top: 2rem;
}
.mc-blog-image-fallback {
    width: 100%;
    height: 100%;
    min-height: 160px;
    background: linear-gradient(135deg, #e8f7ee, #dbeafe);
}
.mc-blog-pagination {
    margin-top: 2rem;
}
.mc-blog-prose {
    line-height: 1.75;
    font-size: 1.05rem;
    color: #0f172a;
}
.mc-blog-prose > *:first-child { margin-top: 0; }
.mc-blog-prose p { margin: 0 0 1.1rem; }
.mc-blog-prose h2,
.mc-blog-prose h3,
.mc-blog-prose h4 {
    margin: 1.75rem 0 0.75rem;
    line-height: 1.25;
    font-weight: 800;
}
.mc-blog-prose ul,
.mc-blog-prose ol {
    margin: 0 0 1.1rem;
    padding-left: 1.35rem;
}
.mc-blog-prose li { margin: 0.35rem 0; }
.mc-blog-prose a {
    color: var(--mc-green, #1fa855);
    font-weight: 600;
}
.mc-blog-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}
.mc-blog-prose blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--mc-green, #1fa855);
    background: #f8fafc;
    color: #334155;
}
.mc-blog-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
}
.mc-blog-prose th,
.mc-blog-prose td {
    border: 1px solid #e2e8f0;
    padding: 0.55rem 0.7rem;
    text-align: left;
}
.mc-blog-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.mc-blog-related h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
}
.mc-blog-related ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.75rem;
}
.mc-blog-related a {
    color: var(--mc-green, #1fa855);
    font-weight: 600;
}
