/* ============================================================
   MBS Design System — v2 (scoped)
   All tokens and components scoped under .design-v2 on <body>.
   Pages now use design-system.css as canonical shell/styles.
   main.css dependency removed from runtime.
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS (scoped to .design-v2)
   ---------------------------------------------------------- */
.design-v2 {
    /* Backgrounds (dark → light) */
    --bg: #080c18;
    --bg-elev: #0f1629;
    --bg-card: #131a2e;
    --bg-hover: #1a2340;
    --bg-modal: #0d1220;

    /* Borders & separators */
    --border: #1e293b;
    --border-hover: #3b4b6b;
    --border-focus: #f97316;

    /* Text — HIGH CONTRAST — easily readable */
    --fg: #f8fafc;
    --fg-muted: #c8d6e5;
    --fg-dim: #8b9dc3;

    /* Primary accent — vivid orange (MC credits, CTAs, prices, energy) */
    --accent: #ff8a2a;
    --accent-glow: rgba(255, 138, 42, 0.2);
    --accent-hover: #ffab5c;
    --accent-bright: #ffc266;

    /* Secondary accent — purple (tier badges, identity, rank) */
    --purple: #a78bfa;
    --purple-glow: rgba(167, 139, 250, 0.15);
    --purple-muted: #8b5cf6;

    /* Tertiary accent — teal (active status, online, in-progress) */
    --teal: #2dd4bf;

    /* Navigation / Tab — distinct from CTA (sky blue) */
    --nav: #38bdf8;
    --nav-glow: rgba(56, 189, 248, 0.15);
    --nav-hover: #7dd3fc;

    /* Toggle switch */
    --toggle-on: #2dd4bf;
    --toggle-off: rgba(255, 255, 255, 0.12);

    /* Semantic colors — vivid */
    --green: #34d399;
    --red: #f87171;
    --yellow: #fbbf24;
    --blue: #60a5fa;

    /* Gradient tokens */
    --grad-orange: linear-gradient(135deg, #ff8a2a 0%, #ff6b6b 100%);
    --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --grad-hero: linear-gradient(135deg, rgba(255, 138, 42, 0.15) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(45, 212, 191, 0.08) 100%);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;
    --font-heading: var(--font-body);

    /* Type scale — GENEROUS sizing for readability */
    --text-xs: 0.8rem;
    --text-sm: 0.92rem;
    --text-md: 1rem;
    --text-lg: 1.15rem;
    --text-xl: 1.4rem;
    --text-2xl: 1.85rem;
    --text-hero: 3.2rem;

    /* Spacing scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;
}

/* ----------------------------------------------------------
   1b. GLOBAL SHELL — body, header, footer, nav
   (migrated from main.css with visual upgrades)
   ---------------------------------------------------------- */

/* ── Body & layout ────────────────────────────────────────── */
.design-v2 {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--fg);
    background: radial-gradient(1200px 600px at 10% -20%, rgba(30, 41, 80, 0.5) 0%, transparent 60%), var(--bg);
    min-height: 100vh;
}

body.design-v2 {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.design-v2 main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ── Header ───────────────────────────────────────────────── */
.design-v2 header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 20px;
    background: rgba(8, 12, 24, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s;
}

/* ── Top nav bar ──────────────────────────────────────────── */
.design-v2 .top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.design-v2 .nav-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.design-v2 .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.design-v2 .nav-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* ── Brand ────────────────────────────────────────────────── */
.design-v2 .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--fg);
    transition: opacity 0.2s;
}

.design-v2 .brand-link:hover {
    opacity: 0.85;
}

.design-v2 .brand-link strong {
    font-weight: 700;
    font-size: var(--text-md);
}

.design-v2 .brand-logo-nav {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.design-v2 .mbs-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(20, 29, 52, 0.85), rgba(14, 22, 40, 0.85));
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    flex-direction: column;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.design-v2 .mbs-mobile-primary-cta {
    display: none;
}

.design-v2 .mbs-nav-toggle:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: linear-gradient(180deg, rgba(24, 37, 64, 0.9), rgba(16, 27, 48, 0.9));
}

.design-v2 .mbs-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--fg);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.design-v2 .top-nav.is-open .mbs-nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.design-v2 .top-nav.is-open .mbs-nav-toggle span:nth-child(2) {
    opacity: 0;
}

.design-v2 .top-nav.is-open .mbs-nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Nav links ────────────────────────────────────────────── */
.design-v2 nav a {
    text-decoration: none;
    color: var(--fg-muted);
    margin-right: 2px;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.design-v2 nav a:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.04);
}

/* ── Footer ───────────────────────────────────────────────── */
.design-v2 footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--fg-dim);
    background: rgba(8, 12, 24, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.design-v2 .footer-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.design-v2 .footer-links {
    white-space: nowrap;
}

.design-v2 .footer-links a {
    color: var(--fg-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.design-v2 .footer-links a:hover {
    color: var(--nav);
}

.design-v2 .mbs-build-stamp {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--fg-dim);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 12, 24, 0.45);
    user-select: text;
}

/* ── Language menu ────────────────────────────────────────── */
.design-v2 .lang-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 3000;
}

.design-v2 .lang-toggle {
    border: 1px solid var(--border);
    background: rgba(15, 22, 41, 0.6);
    color: var(--fg);
    border-radius: var(--radius-pill);
    padding: 4px 8px;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    transition: background 0.2s, border-color 0.2s;
}

.design-v2 .lang-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.design-v2 .lang-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 92px;
    background: rgba(13, 18, 32, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
    padding: 4px;
    z-index: 4000;
}

.design-v2 .lang-options a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--fg);
    white-space: nowrap;
    transition: background 0.15s;
}

.design-v2 .lang-options a:hover {
    background: rgba(56, 189, 248, 0.08);
    color: var(--fg);
}

.design-v2 .lang-flag {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    display: inline-block;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.design-v2 .flag-us {
    background-image: url('/icons/flags/us.svg');
}

.design-v2 .flag-tw {
    background-image: url('/icons/flags/tw.svg');
}

.design-v2 .flag-cn {
    background-image: url('/icons/flags/cn.svg');
}

/* ── Account menu ─────────────────────────────────────────── */
.design-v2 .account-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 3000;
}

.design-v2 .account-toggle {
    cursor: pointer;
}

.design-v2 .account-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    background: rgba(13, 18, 32, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
    padding: 4px;
    z-index: 4000;
}

.design-v2 .account-options a {
    display: block;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--fg);
    transition: background 0.15s;
}

.design-v2 .account-options a:hover {
    background: rgba(56, 189, 248, 0.08);
}

/* ── Owner badge ──────────────────────────────────────────── */
.design-v2 #owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--fg-muted);
}

.design-v2 #owner-badge img,
.design-v2 #owner-badge .avatar-fallback {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.design-v2 .account-avatar-btn {
    background: transparent;
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.design-v2 #owner-badge img:hover,
.design-v2 #owner-badge .avatar-fallback:hover {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.design-v2 #owner-badge .avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: var(--bg-elev);
    color: var(--fg);
}

.design-v2 .util-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    background: rgba(15, 22, 41, 0.6);
    color: var(--fg);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s;
}

.design-v2 .util-pill:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.design-v2 .util-profile-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ----------------------------------------------------------
   1c. HEADING / LINK / TEXT DEFAULTS
   ---------------------------------------------------------- */
.design-v2 a,
.design-v2 a:visited {
    color: var(--fg);
}

.design-v2 a:hover {
    color: #fff;
}

.design-v2 h1,
.design-v2 h2,
.design-v2 h3 {
    color: var(--fg);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.design-v2 article>h1:first-child {
    margin-top: 0;
}

.design-v2 code {
    background: rgba(27, 40, 73, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    color: #dbe8ff;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

/* ----------------------------------------------------------
   1d. BUTTONS (migrated + upgraded from main.css)
   ---------------------------------------------------------- */
.design-v2 .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-sm);
    margin: 0 10px;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.25s;
    cursor: pointer;
    border: none;
}

.design-v2 .btn:hover {
    transform: translateY(-2px);
}

.design-v2 .primary {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    color: #1a0800;
    border: 1px solid rgba(255, 177, 112, 0.4);
    box-shadow: 0 2px 12px var(--accent-glow);
}

.design-v2 .primary:hover {
    box-shadow: 0 4px 20px rgba(255, 138, 42, 0.35);
    filter: brightness(1.06);
}

.design-v2 .secondary {
    background: rgba(15, 22, 41, 0.6);
    color: var(--fg);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.design-v2 .secondary:hover {
    border-color: var(--nav);
    background: rgba(56, 189, 248, 0.06);
    box-shadow: 0 2px 12px var(--nav-glow);
}

/* ── Error message ────────────────────────────────────────── */
.design-v2 .error-msg {
    color: var(--red);
    min-height: 1.2em;
    font-size: 14px;
    padding: 6px 10px;
    border-left: 3px solid var(--red);
    background: rgba(248, 113, 113, 0.06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.design-v2 .error-msg:empty {
    display: none;
}

/* ── Muted text ───────────────────────────────────────────── */
.design-v2 .muted {
    color: var(--fg-dim);
    font-size: 14px;
}

/* ── Form defaults ────────────────────────────────────────── */
.design-v2 input,
.design-v2 textarea,
.design-v2 select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    background: var(--bg-elev);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    transition: border-color 0.2s;
}

.design-v2 input:focus,
.design-v2 textarea:focus,
.design-v2 select:focus {
    outline: none;
    border-color: var(--nav);
    box-shadow: 0 0 0 2px var(--nav-glow);
}

/* ----------------------------------------------------------
   1e. UTILITY CLASSES (migrated from main.css)
   ---------------------------------------------------------- */
.design-v2 .cta {
    margin-top: 30px;
}

.design-v2 .stack {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.design-v2 .mc-icon {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
}

/* ── OAuth buttons ────────────────────────────────────────── */
.design-v2 .oauth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(15, 22, 41, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--fg);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.design-v2 .oauth-btn:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.design-v2 .oauth-btn img {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.design-v2 .oauth-btn.github {
    color: var(--fg);
}

.design-v2 .oauth-btn.github img {
    filter: invert(1) brightness(1.1);
}

.design-v2 .oauth-btn.google {
    color: var(--fg);
}

/* ── Citizen chip ─────────────────────────────────────────── */
.design-v2 .citizen-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(15, 22, 41, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-decoration: none;
    color: var(--fg);
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s;
}

.design-v2 .citizen-chip:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

/* ── .dash-tabs/.dash-tab compatibility alias ─────────────── */
.design-v2 .dash-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.design-v2 .dash-tab {
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--fg);
    border-radius: var(--radius-pill);
    padding: 6px 10px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.design-v2 .dash-tab:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.design-v2 .dash-tab.active {
    background: var(--nav);
    color: #0a0e1a;
    border-color: var(--nav);
    font-weight: 600;
}

/* ----------------------------------------------------------
   1f. APP / PROFILE / GAME COMPONENTS (migrated from main.css)
   ---------------------------------------------------------- */

/* ── Hero (homepage) ──────────────────────────────────────── */
.design-v2 .hero {
    text-align: center;
    padding: 50px 0;
}

.design-v2 .hero-intro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: left;
    margin-bottom: 14px;
}

.design-v2 .hero-copy h1 {
    margin: 0 0 8px;
}

.design-v2 .hero-copy p {
    margin: 0;
}

.design-v2 .hero-logo {
    width: 224px;
    height: 224px;
    border-radius: 0;
    object-fit: contain;
    display: block;
    box-shadow: none;
    background: transparent;
}

/* ── Welcome / Passport ───────────────────────────────────── */
.design-v2 .welcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

@media (min-width: 860px) {
    .design-v2 .welcome-grid {
        grid-template-columns: 380px 1fr;
    }
}

.design-v2 .passport-cover {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.design-v2 .invite-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.design-v2 .invite-row input {
    max-width: 280px;
}

.design-v2 .share-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.design-v2 .share-row input {
    font-size: 13px;
}

.design-v2 .share-row2 {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 10px;
    align-items: center;
    justify-content: start;
}

.design-v2 .share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.design-v2 .share-icon svg {
    width: 28px;
    height: 28px;
}

.design-v2 .share-icon:hover {
    background: var(--bg-hover);
}

.design-v2 .share-icon.x {
    color: var(--fg);
}

.design-v2 .share-icon.telegram {
    color: #52b8ff;
}

.design-v2 .share-icon.discord {
    color: #8aa2ff;
}

.design-v2 .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(15, 22, 41, 0.6);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.design-v2 .icon-btn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.design-v2 .icon-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

/* ── Agent table ──────────────────────────────────────────── */
.design-v2 .agent-row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(120px, 1fr) minmax(90px, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.design-v2 .agent-row-head {
    color: var(--fg-dim);
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.design-v2 .agent-col-name {
    font-weight: 600;
}

.design-v2 .agent-col-passport,
.design-v2 .agent-col-credit {
    text-align: left;
}

/* ── Profile display ──────────────────────────────────────── */
.design-v2 .profile-public-wrap {
    text-align: center;
}

.design-v2 .profile-public-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    display: block;
    margin: 0 auto 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.design-v2 .profile-public-avatar:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.design-v2 .profile-public-fallback {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 36px;
    font-weight: 700;
    background: var(--bg-elev);
}

.design-v2 .mbs-profile-edit-grid {
    display: grid;
    grid-template-columns: minmax(400px, 1.6fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: start;
}

.design-v2 .mbs-profile-edit-card,
.design-v2 .mbs-profile-linked-card {
    width: 100%;
    box-sizing: border-box;
}

.design-v2 .mbs-profile-linked-provider {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.design-v2 .mbs-profile-linked-provider__media {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.design-v2 .mbs-profile-linked-provider__avatar,
.design-v2 .mbs-profile-linked-provider__avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    object-fit: cover;
    flex: 0 0 40px;
}

.design-v2 .mbs-profile-linked-provider__avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--purple-muted);
    color: var(--fg);
    font-weight: 700;
}

.design-v2 .mbs-profile-linked-provider__body {
    min-width: 0;
}

.design-v2 .mbs-profile-linked-provider__meta {
    margin-top: 2px;
}

@media (max-width: 860px) {
    .design-v2 .mbs-profile-edit-grid {
        grid-template-columns: 1fr;
    }
}

.design-v2 .profile-back-row {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

/* ── Game screen ──────────────────────────────────────────── */
.design-v2 .game-screen {
    width: 100%;
    max-width: 900px;
    margin: 12px auto 0;
}

.design-v2 .game-screen.centered {
    display: flex;
    justify-content: center;
}

.design-v2 .game-screen.centered>.card {
    width: 100%;
    max-width: 900px;
}

/* ── Legacy .card (non-mbs) ───────────────────────────────── */
.design-v2 .card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(19, 26, 48, 0.9), rgba(15, 23, 42, 0.9));
}

/* ----------------------------------------------------------
   1g. MOBILE RESPONSIVE (global shell)
   ---------------------------------------------------------- */
@media (max-width: 640px) {
    .design-v2 main {
        padding: 0 14px;
    }

    .design-v2 .btn {
        margin: 6px 6px 0 0;
    }

    .design-v2 .hero-intro {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .design-v2 .hero-logo {
        width: 160px;
        height: 160px;
    }
}

/* ----------------------------------------------------------
   2. CARD SYSTEM
   ---------------------------------------------------------- */
.design-v2 .mbs-card {
    --card-glow: rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    position: relative;
    overflow: hidden;
}

/* Category glow — class-agnostic, works on any element with [data-mbs-glow] */
.design-v2 [data-mbs-glow]::after {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--card-glow);
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s, width 0.3s, height 0.3s;
    z-index: 0;
}

/* Category glow colors — class-agnostic */
.design-v2 [data-mbs-glow="tech"] {
    --card-glow: rgba(96, 165, 250, 0.15);
}

.design-v2 [data-mbs-glow="creative"] {
    --card-glow: rgba(45, 212, 191, 0.15);
}

.design-v2 [data-mbs-glow="marketing"] {
    --card-glow: rgba(255, 138, 42, 0.15);
}

.design-v2 [data-mbs-glow="research"] {
    --card-glow: rgba(167, 139, 250, 0.15);
}

.design-v2 [data-mbs-glow="general"] {
    --card-glow: rgba(255, 255, 255, 0.06);
}

/* Ensure card content sits above the glow */
.design-v2 .mbs-card>* {
    position: relative;
    z-index: 1;
}

.design-v2 .mbs-card-clickable {
    cursor: pointer;
}

/* Hover — glow intensifies + colored border + lift */
.design-v2 .mbs-card-clickable:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 28px -4px rgba(0, 0, 0, 0.5),
        0 0 20px -4px var(--card-glow);
    transform: translateY(-3px);
}

.design-v2 .mbs-card-clickable:hover::after {
    opacity: 1;
    width: 220px;
    height: 220px;
}

/* Category-specific hover border color — class-agnostic */
.design-v2 .mbs-card-clickable[data-mbs-glow="tech"]:hover {
    border-color: rgba(96, 165, 250, 0.35);
}

.design-v2 .mbs-card-clickable[data-mbs-glow="creative"]:hover {
    border-color: rgba(45, 212, 191, 0.35);
}

.design-v2 .mbs-card-clickable[data-mbs-glow="marketing"]:hover {
    border-color: rgba(255, 138, 42, 0.35);
}

.design-v2 .mbs-card-clickable[data-mbs-glow="research"]:hover {
    border-color: rgba(167, 139, 250, 0.35);
}

/* Effects gating — disable glow when effects off */
.design-v2[data-mbs-fx="off"] [data-mbs-glow]::after {
    display: none;
}

.design-v2[data-mbs-fx="off"] .mbs-card-clickable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.design-v2[data-mbs-fx="minimal"] [data-mbs-glow]::after {
    opacity: 0.3;
}

/* Card content helpers */
.design-v2 .mbs-card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 var(--space-xs);
    line-height: 1.3;
}

.design-v2 .mbs-card-desc {
    font-size: var(--text-sm);
    color: var(--fg-muted);
    margin: 0 0 var(--space-sm);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.design-v2 .mbs-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--fg-muted);
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

/* ----------------------------------------------------------
   3. GRID SYSTEM
   ---------------------------------------------------------- */
.design-v2 .mbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.design-v2 .mbs-grid-2col {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.design-v2 .mbs-grid-4col {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ----------------------------------------------------------
   4. BADGE SYSTEM
   ---------------------------------------------------------- */

/* Category / type badge */
.design-v2 .mbs-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.design-v2 .mbs-badge-tech {
    background: #1e40af;
    color: #93c5fd;
}

.design-v2 .mbs-badge-creative {
    background: #6b21a8;
    color: #d8b4fe;
}

.design-v2 .mbs-badge-marketing {
    background: #166534;
    color: #86efac;
}

.design-v2 .mbs-badge-research {
    background: #92400e;
    color: #fcd34d;
}

.design-v2 .mbs-badge-general {
    background: #334155;
    color: #94a3b8;
}

/* Status badge (booking, match) */
.design-v2 .mbs-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 600;
}

.design-v2 .mbs-status-pending {
    background: #422006;
    color: #fbbf24;
}

.design-v2 .mbs-status-confirmed {
    background: #0c2d48;
    color: #38bdf8;
}

.design-v2 .mbs-status-active {
    background: #042f2e;
    color: #2dd4bf;
}

.design-v2 .mbs-status-completed {
    background: #052e16;
    color: #4ade80;
}

.design-v2 .mbs-status-cancelled {
    background: #2a0a0a;
    color: #f87171;
}

/* Citizen tier badge */
.design-v2 .mbs-tier {
    display: inline-block;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 700;
}

.design-v2 .mbs-tier-C0 {
    background: #1e293b;
    color: #64748b;
}

.design-v2 .mbs-tier-C1 {
    background: #1a2e3a;
    color: #6affaa;
}

.design-v2 .mbs-tier-C2 {
    background: #2a1a4a;
    color: #c4a8ff;
}

/* Tag pills (skills, categories) */
.design-v2 .mbs-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    color: var(--fg-muted);
    background: transparent;
}

/* ----------------------------------------------------------
   5. TAB SYSTEM
   ---------------------------------------------------------- */
.design-v2 .mbs-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.design-v2 .mbs-page-tabs {
    margin-bottom: 14px;
}

.design-v2 .mbs-tabs--no-underline {
    border-bottom: none;
}

.design-v2 .mbs-tab {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--fg-muted);
    font-size: var(--text-md);
    font-family: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.12s, border-color 0.12s;
}

.design-v2 .mbs-tab:hover {
    color: var(--fg);
}

.design-v2 .mbs-tab.active,
.design-v2 .mbs-tab.is-active {
    color: var(--nav);
    border-bottom-color: var(--nav);
    font-weight: 600;
}

/* ----------------------------------------------------------
   6. PRICE DISPLAY
   ---------------------------------------------------------- */
.design-v2 .mbs-price {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
}

.design-v2 .mbs-price-lg {
    font-size: 1.1rem;
}

.design-v2 .mbs-price-sm {
    font-size: 0.85rem;
}

/* ----------------------------------------------------------
   7. BUTTONS
   ---------------------------------------------------------- */
.design-v2 .mbs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s, opacity 0.1s, filter 0.1s;
    line-height: 1.4;
}

.design-v2 .mbs-btn:hover {
    transform: translateY(-1px);
}

.design-v2 .mbs-btn-primary {
    background: linear-gradient(135deg, #ffab5c 0%, #ff8a2a 50%, #ff6b6b 100%);
    color: #1a0800;
    border-color: rgba(255, 200, 150, 0.3);
    font-weight: 700;
}

.design-v2 .mbs-btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(255, 138, 42, 0.3);
}

.design-v2 .mbs-btn-secondary {
    background: var(--bg-elev);
    color: var(--fg);
    border-color: var(--border);
}

.design-v2 .mbs-btn-secondary:hover {
    background: var(--bg-hover);
}

.design-v2 .mbs-btn-ghost {
    background: none;
    color: var(--accent);
    border-color: var(--accent);
}

.design-v2 .mbs-btn-ghost:hover {
    background: var(--accent-glow);
}

.design-v2 .mbs-btn-sm {
    padding: 5px 12px;
    font-size: var(--text-xs);
}

.design-v2 .mbs-btn-lg {
    padding: 12px 28px;
    font-size: var(--text-md);
    border-radius: var(--radius-lg);
}

.design-v2 .mbs-btn:disabled,
.design-v2 .mbs-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* ----------------------------------------------------------
   8. FORM INPUTS
   ---------------------------------------------------------- */
.design-v2 .mbs-input,
.design-v2 .mbs-textarea,
.design-v2 .mbs-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elev);
    color: var(--fg);
    font-size: var(--text-md);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.design-v2 .mbs-input:focus,
.design-v2 .mbs-textarea:focus,
.design-v2 .mbs-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px var(--accent-glow);
    outline: none;
}

.design-v2 .mbs-input::placeholder,
.design-v2 .mbs-textarea::placeholder {
    color: var(--fg-dim);
}

.design-v2 .mbs-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--fg-muted);
    margin-bottom: var(--space-xs);
}

/* ----------------------------------------------------------
   9. MODAL / OVERLAY
   ---------------------------------------------------------- */
.design-v2 .mbs-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: var(--space-md);
}

.design-v2 .mbs-modal {
    background: var(--bg-modal);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--space-lg);
    position: relative;
}

.design-v2 .mbs-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--fg-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.design-v2 .mbs-modal-close:hover {
    color: var(--fg);
}

/* ----------------------------------------------------------
   10. UTILITY CLASSES
   ---------------------------------------------------------- */

/* Text */
.design-v2 .mbs-text-muted {
    color: var(--fg-muted);
}

.design-v2 .mbs-text-dim {
    color: var(--fg-dim);
}

.design-v2 .mbs-text-accent {
    color: var(--accent);
}

.design-v2 .mbs-text-sm {
    font-size: var(--text-sm);
}

.design-v2 .mbs-text-xs {
    font-size: var(--text-xs);
}

.design-v2 .mbs-text-mono {
    font-family: var(--font-mono);
}

/* Feedback messages */
.design-v2 .mbs-msg-ok {
    color: var(--green);
    font-size: var(--text-sm);
}

.design-v2 .mbs-msg-err {
    color: var(--red);
    font-size: var(--text-sm);
}

.design-v2 .mbs-msg-warn {
    color: var(--yellow);
    font-size: var(--text-sm);
}

/* Flex/layout helpers */
.design-v2 .mbs-flex {
    display: flex;
}

.design-v2 .mbs-flex-col {
    display: flex;
    flex-direction: column;
}

.design-v2 .mbs-flex-wrap {
    flex-wrap: wrap;
}

.design-v2 .mbs-gap-xs {
    gap: var(--space-xs);
}

.design-v2 .mbs-gap-sm {
    gap: var(--space-sm);
}

.design-v2 .mbs-gap-md {
    gap: var(--space-md);
}

.design-v2 .mbs-items-center {
    align-items: center;
}

.design-v2 .mbs-justify-between {
    justify-content: space-between;
}

/* ----------------------------------------------------------
   P15. COMMUNITY BOARD (Design System migration)
   ---------------------------------------------------------- */
.design-v2 .mbs-community-wrap {
    display: grid;
    gap: 12px;
}

.design-v2 .mbs-community-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.design-v2 .mbs-community-sort-tabs {
    margin-bottom: 0;
    flex: 1;
}

/* Keep + New Post height exactly aligned with tab controls on wide rows */
.design-v2 .mbs-community-toolbar #cb-new-post-btn {
    padding: 9px 16px;
    /* account for button border so visual height matches .mbs-tab */
    font-size: var(--text-sm);
    line-height: 1.2;
}

/* Community: sort tabs use nav color; new-post button keeps CTA via .mbs-btn-primary */

.design-v2 .mbs-community-compose {
    display: grid;
    gap: 8px;
    border-color: rgba(255, 182, 120, 0.28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.design-v2 .mbs-community-compose[hidden] {
    display: none !important;
}

.design-v2 .mbs-community-form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.design-v2 .mbs-community-error {
    color: #ff9aa2;
    font-size: var(--text-xs);
    min-height: 1em;
}

.design-v2 .mbs-community-heading-fallback {
    margin: 0 0 1rem;
}

.design-v2 .mbs-community-empty-card {
    text-align: center;
}

.design-v2 .mbs-community-zero {
    margin: 0;
}

.design-v2 .mbs-community-loadmore {
    margin-top: 12px;
}

.design-v2 .mbs-community-flex-main {
    flex: 1;
    min-width: 0;
}

.design-v2 .mbs-community-title-tight {
    margin-bottom: 6px;
}

.design-v2 .mbs-community-comments-title {
    margin: 0 0 12px;
}

.design-v2 .mbs-community-comment-empty {
    margin: 8px 0 0;
}

.design-v2 .mbs-community-meta-tight {
    margin-bottom: 4px;
}

.design-v2 .mbs-link-clean {
    text-decoration: none;
}

.design-v2 .mbs-empty-note {
    text-align: center;
}

.design-v2 .mbs-empty-note-grid {
    grid-column: 1 / -1;
}

.design-v2 .mbs-pre-wrap {
    white-space: pre-wrap;
}

.design-v2 .mbs-dev-section {
    margin-top: 10px;
    text-align: left;
}

.design-v2 .mbs-dev-hint {
    margin-top: 6px;
}

.design-v2 .mbs-dev-key-create {
    margin-top: 10px;
    text-align: left;
}

.design-v2 .mbs-dev-key-input {
    display: block;
    width: 100%;
    margin: 6px 0 8px;
}

.design-v2 .mbs-dev-key-input-name {
    max-width: 360px;
}

.design-v2 .mbs-dev-key-input-scopes {
    max-width: 520px;
}

.design-v2 .mbs-dev-key-output {
    margin-top: 12px;
}

.design-v2 .mbs-dev-key-heading {
    margin-top: 18px;
}

.design-v2 .mbs-devkey-card {
    margin: 8px 0;
    text-align: left;
}

.design-v2 .mbs-devkey-meta {
    margin-top: 4px;
}

.design-v2 .mbs-devkey-revoke {
    margin-top: 8px;
}

.design-v2 .mbs-skill-detail-wrap {
    padding: 0 1rem 1.5rem;
}

.design-v2 .mbs-skill-loading-card {
    text-align: center;
    padding: 4rem 2rem;
}

.design-v2 .mbs-skill-loading-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.design-v2 .mbs-skill-loading-title {
    color: var(--fg);
    margin-bottom: 0.5rem;
}

.design-v2 .mbs-community-post-list {
    display: grid;
    gap: 8px;
}

.design-v2 .mbs-community-post-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-color: rgba(120, 148, 255, 0.28);
}

.design-v2 .mbs-community-post-card:hover {
    box-shadow: 0 12px 32px rgba(74, 111, 255, 0.2), 0 0 0 1px rgba(88, 166, 255, 0.2) inset;
}

.design-v2 .mbs-community-post-main {
    flex: 1;
    min-width: 0;
}

.design-v2 .mbs-community-post-title {
    margin-bottom: 4px;
}

.design-v2 .mbs-community-post-preview {
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.design-v2 .mbs-community-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: var(--text-xs);
    color: var(--fg-dim);
}

.design-v2 .mbs-community-vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    gap: 3px;
}

.design-v2 .mbs-community-vote-col-sm {
    min-width: 36px;
}

.design-v2 .mbs-community-vote-btn {
    min-width: 36px;
    padding: 4px 8px;
    line-height: 1;
}

.design-v2 .mbs-community-vote-btn-sm {
    min-width: 30px;
    padding: 2px 6px;
}

.design-v2 .mbs-community-vote-btn.is-upvoted {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

.design-v2 .mbs-community-vote-count {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--fg);
}

.design-v2 .mbs-community-vote-count-sm {
    font-size: var(--text-xs);
}

.design-v2 .mbs-community-post-full {
    margin-top: 4px;
    border-color: rgba(170, 132, 255, 0.26);
    box-shadow: 0 12px 30px rgba(73, 47, 111, 0.25);
}

.design-v2 .mbs-community-post-full-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.design-v2 .mbs-community-post-body,
.design-v2 .mbs-community-comment-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.design-v2 .mbs-community-post-body {
    color: var(--fg);
    line-height: 1.7;
}

.design-v2 .mbs-community-comment-form {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.design-v2 .mbs-community-comment-list {
    display: grid;
    gap: 8px;
}

.design-v2 .mbs-community-comment {
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

@media (max-width: 700px) {
    .design-v2 .mbs-community-toolbar {
        align-items: stretch;
    }

    .design-v2 .mbs-community-sort-tabs {
        width: 100%;
    }

    .design-v2 .mbs-community-post-full-header {
        flex-direction: column;
    }
}

.design-v2 .mbs-ml-auto {
    margin-left: auto;
}

/* Dividers */
.design-v2 .mbs-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-md) 0;
}

/* ----------------------------------------------------------
   13. MARKETPLACE SUB-NAV
   ---------------------------------------------------------- */
.design-v2 .mbs-subnav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: rgba(15, 21, 35, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 50;
}

.design-v2 .mbs-subnav-item {
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fg-muted);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}

.design-v2 .mbs-subnav-item:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.04);
}

.design-v2 .mbs-subnav-item.active {
    color: var(--nav);
    background: var(--nav-glow);
    border-color: rgba(56, 189, 248, 0.3);
    font-weight: 600;
}

.design-v2 .mbs-subnav-end {
    margin-left: auto;
}

.design-v2 .mbs-subnav-label {
    padding: 4px 12px 4px 6px;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--fg-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 2px;
    white-space: nowrap;
    user-select: none;
}

/* ----------------------------------------------------------
   14. HERO SECTION
   ---------------------------------------------------------- */
.design-v2 .mbs-hero {
    position: relative;
    padding: 5rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 138, 42, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 110%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 80% at 10% 60%, rgba(45, 212, 191, 0.08) 0%, transparent 40%),
        linear-gradient(170deg, #0d1425 0%, var(--bg) 100%);
    border: 1px solid rgba(255, 138, 42, 0.15);
    box-shadow: 0 0 80px -20px rgba(255, 138, 42, 0.08);
}

.design-v2 .mbs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 138, 42, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 35%);
    pointer-events: none;
    animation: mbs-hero-pulse 6s ease-in-out infinite alternate;
}

@keyframes mbs-hero-pulse {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1.2;
    }
}

.design-v2 .mbs-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.design-v2 .mbs-hero-headline {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: 800;
    color: var(--fg);
    line-height: 1.15;
    margin: 0 0 var(--space-md);
    letter-spacing: -0.02em;
}

.design-v2 .mbs-hero-sub {
    font-size: var(--text-lg);
    color: var(--fg-muted);
    margin: 0 0 var(--space-xl);
    line-height: 1.5;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.design-v2 .mbs-hero-search {
    display: flex;
    gap: var(--space-sm);
    max-width: 560px;
    margin: 0 auto;
    align-items: stretch;
}

.design-v2 .mbs-hero-search .mbs-input {
    flex: 1;
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    font-size: var(--text-md);
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.design-v2 .mbs-hero-search .mbs-btn {
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    flex-shrink: 0;
}

/* -- Split Hero Layout (text left + graphic right) -- */
.design-v2 .mbs-hero-split {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    text-align: left;
    padding: 4rem 2.5rem 4rem 3rem;
}

.design-v2 .mbs-hero-text {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.design-v2 .mbs-hero-split .mbs-hero-headline {
    text-align: left;
    min-height: 4.2em;
}

.design-v2 .mbs-hero-split .mbs-hero-sub {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.design-v2 .mbs-hero-graphic {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    max-width: 320px;
}

.design-v2 .mbs-hero-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(139, 92, 246, 0.15));
    transition: transform 0.4s ease, filter 0.4s ease;
    border: none;
    outline: none;
}

.design-v2 .mbs-hero-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 12px 32px rgba(139, 92, 246, 0.25));
}

/* -- Rotating headline text -- */
#mbs-hero-rotate {
    display: block;
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-height: 4.2em;
}

/* -- Premium pill search bar -- */
.design-v2 .mbs-page-search {
    display: flex;
    align-items: stretch;
    max-width: 640px;
    border-radius: 999px;
    background: rgba(15, 22, 41, 0.85);
    border: 1px solid rgba(255, 138, 42, 0.15);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
    margin-bottom: var(--space-lg);
}

.design-v2 .mbs-page-search:focus-within {
    border-color: rgba(255, 138, 42, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 138, 42, 0.08), 0 4px 20px rgba(255, 138, 42, 0.06);
}

.design-v2 .mbs-page-search .mbs-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 18px;
    font-size: 1.15rem;
    color: var(--accent, #ff8a2a);
    flex-shrink: 0;
    pointer-events: none;
}

.design-v2 .mbs-page-search .mbs-input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 14px 16px;
    font-size: var(--text-md);
    background: transparent;
    color: var(--fg, #f8fafc);
    outline: none;
    min-width: 0;
}

.design-v2 .mbs-page-search .mbs-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.design-v2 .mbs-page-search .mbs-search-btn {
    flex-shrink: 0;
    border: none;
    border-radius: 0;
    padding: 14px 28px;
    font-size: var(--text-md);
    font-weight: 600;
    background: var(--accent, #ff8a2a);
    color: #000;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    letter-spacing: 0.01em;
}

.design-v2 .mbs-page-search .mbs-search-btn:hover {
    background: #ff9d4f;
}

/* Category filter pills (below search bar) */
.design-v2 .mbs-search-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-lg);
}

.design-v2 .mbs-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 22, 41, 0.6);
    color: var(--fg, #f8fafc);
    font-size: var(--text-sm, 0.85rem);
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.design-v2 .mbs-search-pill:hover {
    border-color: rgba(255, 138, 42, 0.35);
    background: rgba(255, 138, 42, 0.08);
}

.design-v2 .mbs-search-pill.active {
    border-color: var(--nav);
    background: var(--nav-glow);
    color: var(--nav);
}

/* -- Responsive split hero (triggers earlier to prevent collision) -- */
@media (max-width: 1024px) {
    .design-v2 .mbs-hero-split {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: var(--space-lg);
    }

    .design-v2 .mbs-hero-split .mbs-hero-headline {
        text-align: center;
        min-height: auto;
    }

    #mbs-hero-rotate {
        min-height: auto;
    }

    .design-v2 .mbs-hero-split .mbs-hero-sub {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .design-v2 .mbs-hero-split .mbs-flex {
        justify-content: center;
        flex-wrap: wrap;
    }

    .design-v2 .mbs-hero-graphic {
        max-width: 260px;
    }
}

@media (max-width: 720px) {
    .design-v2 .mbs-hero-split .mbs-flex {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .design-v2 .mbs-hero-split .mbs-flex .mbs-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ----------------------------------------------------------
   15. PROFILE CARD (Humans & AI Agents)
   ---------------------------------------------------------- */
.design-v2 .mbs-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(145deg, rgba(21, 28, 46, 0.8), rgba(15, 21, 35, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.design-v2 .mbs-profile-card:hover {
    border-color: rgba(255, 138, 42, 0.4);
    box-shadow:
        0 8px 32px -8px rgba(255, 138, 42, 0.2),
        0 0 20px rgba(255, 138, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

.design-v2 .mbs-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-sm);
}

.design-v2 .mbs-profile-avatar-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-elev), var(--bg-hover));
    border: 2px solid rgba(255, 138, 42, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg-muted);
    margin-bottom: var(--space-sm);
}

.design-v2 .mbs-profile-name {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 2px;
}

.design-v2 .mbs-profile-handle {
    font-size: var(--text-xs);
    color: var(--fg-dim);
    margin-bottom: var(--space-sm);
}

.design-v2 .mbs-profile-stats {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.design-v2 .mbs-profile-rate {
    font-family: var(--font-mono);
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--accent);
    margin-top: auto;
    padding-top: var(--space-sm);
}

.design-v2 .mbs-profile-skills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

/* ----------------------------------------------------------
   16. ENHANCED TIER BADGES (with glow)
   ---------------------------------------------------------- */
.design-v2 .mbs-tier-pro {
    background: linear-gradient(135deg, #1a3a5c, #0c2d48);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.design-v2 .mbs-tier-elite {
    background: linear-gradient(135deg, #3a1a5c, #2a1a4a);
    color: #c4a8ff;
    border: 1px solid rgba(196, 168, 255, 0.25);
}

.design-v2 .mbs-tier-verified {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.design-v2 .mbs-tier-top-rated {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* ----------------------------------------------------------
   17. SECTION HEADERS
   ---------------------------------------------------------- */
.design-v2 .mbs-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
}

.design-v2 .mbs-section-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--fg);
    margin: 0;
}

.design-v2 .mbs-section-link {
    font-size: var(--text-sm);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.design-v2 .mbs-section-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ----------------------------------------------------------
   18. PITCH STRIP (Feature highlights)
   ---------------------------------------------------------- */
.design-v2 .mbs-pitch-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-xl);
}

.design-v2 .mbs-pitch-card {
    text-align: center;
    padding: var(--space-lg);
}

.design-v2 .mbs-pitch-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: block;
}

.design-v2 .mbs-pitch-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--fg);
    margin-bottom: var(--space-xs);
}

.design-v2 .mbs-pitch-desc {
    font-size: var(--text-sm);
    color: var(--fg-muted);
    line-height: 1.5;
}

/* ----------------------------------------------------------
   19. HORIZONTAL SCROLL ROW
   ---------------------------------------------------------- */
.design-v2 .mbs-scroll-row {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    -webkit-overflow-scrolling: touch;
}

.design-v2 .mbs-scroll-row::-webkit-scrollbar {
    height: 4px;
}

.design-v2 .mbs-scroll-row::-webkit-scrollbar-track {
    background: transparent;
}

.design-v2 .mbs-scroll-row::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.design-v2 .mbs-scroll-row>* {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 340px;
}

/* ----------------------------------------------------------
   20. STAT CHIPS
   ---------------------------------------------------------- */
.design-v2 .mbs-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--fg-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.design-v2 .mbs-stat-icon {
    font-size: 0.75rem;
    flex-shrink: 0;
}

.design-v2 .mbs-stat-accent {
    color: var(--accent);
    background: rgba(249, 115, 22, 0.08);
}

.design-v2 .mbs-stat-green {
    color: var(--green);
    background: rgba(34, 197, 94, 0.08);
}

/* ----------------------------------------------------------
   21. GLASSMORPHISM & GLOW UTILITIES
   ---------------------------------------------------------- */
.design-v2 .mbs-glass {
    background: rgba(15, 21, 35, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.design-v2 .mbs-glow-orange {
    box-shadow:
        0 0 20px rgba(249, 115, 22, 0.15),
        0 0 40px rgba(249, 115, 22, 0.06);
}

.design-v2 .mbs-glow-purple {
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.15),
        0 0 40px rgba(139, 92, 246, 0.06);
}

.design-v2 .mbs-gradient-border {
    border-image: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(139, 92, 246, 0.3)) 1;
}

/* ----------------------------------------------------------
   22. ANIMATIONS
   ---------------------------------------------------------- */
@keyframes mbs-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mbs-slide-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mbs-pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(249, 115, 22, 0.1);
    }

    50% {
        box-shadow: 0 0 25px rgba(249, 115, 22, 0.2);
    }
}

.design-v2 .mbs-animate-in {
    animation: mbs-fade-in 0.3s ease-out;
}

.design-v2 .mbs-slide-in {
    animation: mbs-slide-up 0.4s ease-out;
}

/* Staggered children: use with JS to add --delay var */
.design-v2 .mbs-stagger>* {
    animation: mbs-slide-up 0.4s ease-out both;
    animation-delay: calc(var(--i, 0) * 60ms);
}

/* ----------------------------------------------------------
   23. CONTENT CONTAINER
   ---------------------------------------------------------- */
.design-v2 .mbs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.design-v2 .mbs-container-narrow {
    max-width: 720px;
}

/* ----------------------------------------------------------
   24. PLACEHOLDER / DEMO LABEL
   ---------------------------------------------------------- */
.design-v2 .mbs-demo-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--yellow);
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

/* ----------------------------------------------------------
   11. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .design-v2 {
        --text-hero: 1.8rem;
        --text-2xl: 1.35rem;
    }

    .design-v2 .mbs-grid {
        grid-template-columns: 1fr;
    }

    .design-v2 .mbs-grid-2col {
        grid-template-columns: 1fr;
    }

    .design-v2 .mbs-grid-4col {
        grid-template-columns: 1fr;
    }

    .design-v2 .mbs-modal {
        max-width: 100%;
        max-height: 95vh;
        margin: var(--space-sm);
        padding: var(--space-md);
    }

    .design-v2 .mbs-hero {
        padding: 2.5rem 1.25rem 2rem;
    }

    .design-v2 .mbs-hero-search {
        flex-direction: column;
    }

    .design-v2 .mbs-pitch-strip {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .design-v2 .mbs-subnav {
        overflow-x: visible;
        flex-wrap: wrap;
        scrollbar-width: auto;
        -ms-overflow-style: auto;
        row-gap: 6px;
    }

    .design-v2 .mbs-subnav-end {
        margin-left: 0;
    }

    .design-v2 .mbs-subnav-label {
        width: 100%;
        border-right: 0;
        margin-right: 0;
        padding-right: 0;
    }

    .design-v2 .mbs-subnav::-webkit-scrollbar {
        display: initial;
    }

    .design-v2 .mbs-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .design-v2 .mbs-tabs {
        gap: 2px;
    }

    .design-v2 .mbs-tab {
        padding: 6px 10px;
        font-size: var(--text-sm);
    }

    .design-v2 .mbs-card {
        padding: 1rem;
    }

    .design-v2 .mbs-subnav-item {
        padding: 6px 12px;
        font-size: var(--text-xs);
    }

    .design-v2 .mbs-profile-avatar,
    .design-v2 .mbs-profile-avatar-fallback {
        width: 56px;
        height: 56px;
    }
}

/* ----------------------------------------------------------
   12. REDUCED MOTION (a11y)
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    .design-v2 .mbs-card,
    .design-v2 .mbs-btn,
    .design-v2 .mbs-tab,
    .design-v2 .mbs-input,
    .design-v2 .mbs-textarea,
    .design-v2 .mbs-select,
    .design-v2 .mbs-subnav-item,
    .design-v2 .mbs-profile-card {
        transition: none;
    }

    .design-v2 .mbs-card-clickable:hover,
    .design-v2 .mbs-btn:hover,
    .design-v2 .mbs-profile-card:hover {
        transform: none;
    }

    .design-v2 .mbs-animate-in,
    .design-v2 .mbs-slide-in,
    .design-v2 .mbs-stagger>*,
    .design-v2 .mbs-gradient-text,
    .design-v2 .mbs-shimmer-border::before,
    .design-v2 .mbs-glow-orb,
    .design-v2 .mbs-hero::before {
        animation: none;
    }
}

/* ===========================================================
   PREMIUM INVESTOR-ATTRACTING EFFECTS
   =========================================================== */

/* ----------------------------------------------------------
   P1. GRADIENT TEXT — animated color-cycling heading text
   ---------------------------------------------------------- */
.design-v2 .mbs-gradient-text {
    background: linear-gradient(90deg,
            #ff8a2a 0%,
            #ffab5c 20%,
            #a78bfa 40%,
            #2dd4bf 60%,
            #ff8a2a 80%,
            #ffab5c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: mbs-gradient-shift 4s linear infinite;
}

@keyframes mbs-gradient-shift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ----------------------------------------------------------
   P2. SHIMMER BORDER — animated gradient border on cards
   ---------------------------------------------------------- */
.design-v2 .mbs-shimmer-border {
    position: relative;
    border: none !important;
    overflow: hidden;
}

.design-v2 .mbs-shimmer-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg,
            rgba(255, 138, 42, 0.5),
            rgba(167, 139, 250, 0.5),
            rgba(45, 212, 191, 0.5),
            rgba(255, 138, 42, 0.5));
    background-size: 300% 100%;
    animation: mbs-shimmer 3s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes mbs-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* ----------------------------------------------------------
   P3. GLOW ORBS — floating ambient background orbs
   ---------------------------------------------------------- */
.design-v2 .mbs-glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.design-v2 .mbs-glow-orb-orange {
    background: rgba(255, 138, 42, 0.25);
    animation: mbs-orb-float 8s ease-in-out infinite alternate;
}

.design-v2 .mbs-glow-orb-purple {
    background: rgba(139, 92, 246, 0.2);
    animation: mbs-orb-float 10s ease-in-out infinite alternate-reverse;
}

.design-v2 .mbs-glow-orb-teal {
    background: rgba(45, 212, 191, 0.15);
    animation: mbs-orb-float 12s ease-in-out infinite alternate;
}

@keyframes mbs-orb-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -15px) scale(1.1);
    }

    66% {
        transform: translate(-15px, 10px) scale(0.95);
    }

    100% {
        transform: translate(10px, -20px) scale(1.05);
    }
}

/* ----------------------------------------------------------
   P4. GLASS CARD — vivid glassmorphism variant
   ---------------------------------------------------------- */
.design-v2 .mbs-glass-vivid {
    background: rgba(13, 18, 32, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 138, 42, 0.12);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------------------------
   P5. ANIMATED GRADIENT RING — pulsing ring around elements
   ---------------------------------------------------------- */
.design-v2 .mbs-glow-ring {
    position: relative;
}

.design-v2 .mbs-glow-ring::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
            #ff8a2a,
            #a78bfa,
            #2dd4bf,
            #ff8a2a);
    z-index: -1;
    animation: mbs-ring-spin 4s linear infinite;
    opacity: 0.6;
}

@keyframes mbs-ring-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ----------------------------------------------------------
   P6. PREMIUM PITCH STRIP — gradient bg + stronger contrast
   ---------------------------------------------------------- */
.design-v2 .mbs-pitch-strip-premium {
    background: linear-gradient(135deg,
            rgba(255, 138, 42, 0.08) 0%,
            rgba(139, 92, 246, 0.06) 50%,
            rgba(45, 212, 191, 0.04) 100%);
    border: 1px solid rgba(255, 138, 42, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.design-v2 .mbs-pitch-strip-premium .mbs-pitch-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--fg);
}

.design-v2 .mbs-pitch-strip-premium .mbs-pitch-icon {
    font-size: 1.3rem;
}

/* ----------------------------------------------------------
   P7. SECTION with glow bg — wrap sections with ambient color
   ---------------------------------------------------------- */
.design-v2 .mbs-section-glow {
    position: relative;
    padding: var(--space-lg) 0;
}

.design-v2 .mbs-section-glow::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 138, 42, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ----------------------------------------------------------
   P8. STAT ACCENT VARIANTS — colored stat chips
   ---------------------------------------------------------- */
.design-v2 .mbs-stat-accent {
    color: var(--accent);
    font-weight: 600;
}

.design-v2 .mbs-stat-green {
    color: var(--green);
}

.design-v2 .mbs-stat-purple {
    color: var(--purple);
}

/* P9 duplicate removed — canonical .mbs-tab defined in §5 (lines 350-380) */

/* ----------------------------------------------------------
   P10. FORM HELPERS — label, input upgrades
   ---------------------------------------------------------- */
.design-v2 .mbs-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--fg-dim);
    margin-bottom: 6px;
    font-weight: 600;
}

/* ----------------------------------------------------------
   P11. STATUS BADGES
   ---------------------------------------------------------- */
.design-v2 .mbs-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.design-v2 .mbs-status-active {
    color: var(--green);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.design-v2 .mbs-status-pending {
    color: var(--yellow);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.design-v2 .mbs-status-confirmed {
    color: var(--blue);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.design-v2 .mbs-status-completed {
    color: var(--green);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

/* ----------------------------------------------------------
   P12. PRICE HIGHLIGHT
   ---------------------------------------------------------- */
.design-v2 .mbs-price {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
}

.design-v2 .mbs-price-lg {
    font-size: var(--text-lg);
}

/* ----------------------------------------------------------
   P13. BADGE — category tags
   ---------------------------------------------------------- */
.design-v2 .mbs-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.design-v2 .mbs-badge-tech {
    color: var(--blue);
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

/* ----------------------------------------------------------
   P14. FLEX / GRID UTILITY overrides for stronger defaults
   ---------------------------------------------------------- */
.design-v2 .mbs-text-mono {
    font-family: var(--font-mono);
}

.design-v2 .mbs-ml-auto {
    margin-left: auto;
}

.design-v2 .mbs-justify-between {
    justify-content: space-between;
}

/* ----------------------------------------------------------
   P15. DASHBOARD – responsive grids
   ---------------------------------------------------------- */
@media (max-width: 640px) {

    .design-v2 .mbs-dash-grid-2,
    .design-v2 .mbs-dash-grid-3 {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 641px) and (max-width: 860px) {
    .design-v2 .mbs-dash-grid-3 {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ----------------------------------------------------------
   P16. TOGGLE SWITCH
   ---------------------------------------------------------- */
.design-v2 .mbs-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.design-v2 .mbs-toggle-track {
    position: absolute;
    inset: 0;
    background: var(--toggle-off);
    border-radius: 11px;
    transition: background 0.2s;
}

.design-v2 .mbs-toggle-knob {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.design-v2 .mbs-toggle.is-on .mbs-toggle-track {
    background: var(--toggle-on);
}

.design-v2 .mbs-toggle.is-on .mbs-toggle-knob {
    left: 20px;
}

/* ----------------------------------------------------------
   P17. COMING SOON CARD
   ---------------------------------------------------------- */
.design-v2 .mbs-coming-soon {
    position: relative;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(45, 212, 191, 0.04) 100%);
    border: 1px dashed rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.design-v2 .mbs-coming-soon::before {
    content: '\1F52E  COMING SOON';
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--purple);
    text-transform: uppercase;
}

.design-v2 .mbs-coming-soon-title {
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 var(--space-xs);
}

.design-v2 .mbs-coming-soon-desc {
    font-size: var(--text-sm);
    color: var(--fg-dim);
    line-height: 1.5;
    margin: 0;
}

/* ----------------------------------------------------------
   P18. STAT CARD (wallet, metrics)
   ---------------------------------------------------------- */
.design-v2 .mbs-stat-card {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 138, 42, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    text-align: center;
}

.design-v2 .mbs-stat-value {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--fg);
    margin: 0;
}

.design-v2 .mbs-stat-label {
    font-size: var(--text-xs);
    color: var(--fg-dim);
    margin-top: 2px;
}

/* ----------------------------------------------------------
   P19. FILTER GROUP (escrow, role filters)
   ---------------------------------------------------------- */
.design-v2 .mbs-filter-group {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.design-v2 .mbs-filter-item {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fg-dim);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.design-v2 .mbs-filter-item:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.04);
}

.design-v2 .mbs-filter-item.active {
    color: var(--nav);
    background: var(--nav-glow);
    font-weight: 600;
}

/* ----------------------------------------------------------
   P20. GAMES PAGE SURFACE HELPERS
   ---------------------------------------------------------- */
.design-v2 .mbs-games-tabs {
    margin-bottom: 14px;
}

.design-v2 .mbs-games-section {
    margin: 12px 0;
    text-align: left;
}

.design-v2 .mbs-games-section-hidden {
    display: none;
}

.design-v2 .mbs-games-loading {
    margin-top: 8px;
}

.design-v2 .mbs-games-live {
    display: none;
}

.design-v2 .mbs-games-card {
    margin: 12px 0;
    text-align: left;
}

.design-v2 .mbs-games-card-left {
    text-align: left;
}

.design-v2 .mbs-games-action-row {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.design-v2 .mbs-games-source-output {
    margin-top: 10px;
}

.design-v2 .mbs-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.design-v2 .mbs-games-card-premium {
    margin: 0;
    padding: 12px;
}

.design-v2 .mbs-games-card-cover {
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background:
        radial-gradient(120% 100% at 20% 0%, rgba(56, 189, 248, 0.24), transparent 60%),
        linear-gradient(135deg, #1a2441, #10172b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.design-v2 .mbs-games-card-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.design-v2 .mbs-games-card-title-row {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.design-v2 .mbs-games-card-meta {
    font-size: var(--text-xs);
}

.design-v2 .mbs-games-card-author {
    margin-top: 6px;
}

.design-v2 .mbs-games-card-desc {
    margin-top: 4px;
    min-height: 34px;
}

.design-v2 .mbs-games-card-stats {
    margin-top: 4px;
}

.design-v2 .mbs-games-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------
   Premium defaults pass — force premium baseline on core UI
   ---------------------------------------------------------- */
.design-v2 .card,
.design-v2 .mbs-card {
    background: linear-gradient(160deg, rgba(19, 26, 46, 0.92), rgba(11, 18, 34, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.design-v2 .btn,
.design-v2 .mbs-btn {
    border-radius: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.design-v2 .btn:hover,
.design-v2 .mbs-btn:hover {
    transform: translateY(-2px);
}

.design-v2 .primary,
.design-v2 .mbs-btn-primary {
    box-shadow: 0 10px 24px rgba(255, 138, 42, 0.28);
}

.design-v2 .secondary,
.design-v2 .mbs-btn-secondary {
    background: linear-gradient(180deg, rgba(20, 29, 52, 0.82), rgba(14, 22, 40, 0.82));
    border-color: rgba(125, 211, 252, 0.35);
}

.design-v2 .secondary:hover,
.design-v2 .mbs-btn-secondary:hover {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.18);
}

.design-v2 .dash-tab {
    background: linear-gradient(180deg, rgba(20, 29, 52, 0.78), rgba(14, 22, 40, 0.78));
    border-color: rgba(255, 255, 255, 0.16);
}

.design-v2 .dash-tab.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.30), rgba(56, 189, 248, 0.16));
    border-color: rgba(56, 189, 248, 0.7);
    color: var(--nav);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.20);
}

.design-v2 .top-nav a {
    position: relative;
}

.design-v2 .top-nav a::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--nav), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.design-v2 .top-nav a:hover::after {
    opacity: 1;
}

/* ----------------------------------------------------------
   AUTOCOMPLETE DROPDOWN (State/City suggestions)
   ---------------------------------------------------------- */
.design-v2 .mbs-ac-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(14, 22, 40, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 200px;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-top: 2px;
}

.design-v2 .mbs-ac-item {
    padding: 8px 12px;
    font-size: var(--text-sm);
    color: var(--fg);
    cursor: pointer;
    transition: background 0.1s;
}

.design-v2 .mbs-ac-item:hover {
    background: rgba(56, 189, 248, 0.12);
    color: var(--nav);
}

/* ----------------------------------------------------------
   PREMIUM VARIANT CLASSES
   Explicit, investor-grade depth. No generic-only reliance.
   ---------------------------------------------------------- */

/* ── Card: Premium ────────────────────────────────────────── */
.design-v2 .mbs-card--premium {
    background: linear-gradient(160deg, rgba(19, 26, 46, 0.95), rgba(10, 17, 32, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.25s,
        box-shadow 0.3s;
}

.design-v2 .mbs-card--premium:hover {
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Card glow variants — hover rim color by context */
.design-v2 .mbs-card--premium[data-mbs-glow="warm"]:hover {
    border-color: rgba(255, 138, 42, 0.25);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 138, 42, 0.08),
        0 0 0 1px rgba(255, 138, 42, 0.12);
}

.design-v2 .mbs-card--premium[data-mbs-glow="cool"]:hover {
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(56, 189, 248, 0.08),
        0 0 0 1px rgba(56, 189, 248, 0.12);
}

.design-v2 .mbs-card--premium[data-mbs-glow="identity"]:hover {
    border-color: rgba(167, 139, 250, 0.25);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(167, 139, 250, 0.08),
        0 0 0 1px rgba(167, 139, 250, 0.12);
}

.design-v2 .mbs-card--premium[data-mbs-glow="success"]:hover {
    border-color: rgba(45, 212, 191, 0.25);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(45, 212, 191, 0.08),
        0 0 0 1px rgba(45, 212, 191, 0.12);
}

/* ── Button: CTA (primary orange) ─────────────────────────── */
.design-v2 .mbs-btn--cta {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    color: #1a0800;
    border: 1px solid rgba(255, 177, 112, 0.4);
    box-shadow: 0 4px 16px rgba(255, 138, 42, 0.25);
    font-weight: 700;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.25s,
        filter 0.2s;
}

.design-v2 .mbs-btn--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 138, 42, 0.35);
    filter: brightness(1.08);
}

.design-v2 .mbs-btn--cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 138, 42, 0.2);
    filter: brightness(0.96);
}

.design-v2 .mbs-btn--cta:focus-visible {
    outline: none;
    box-shadow: 0 4px 16px rgba(255, 138, 42, 0.25),
        0 0 0 3px rgba(255, 138, 42, 0.3);
}

.design-v2 .mbs-btn--cta:disabled,
.design-v2 .mbs-btn--cta[disabled] {
    opacity: 0.5;
    box-shadow: none;
    pointer-events: none;
    filter: saturate(0.6);
}

/* ── Button: Soft (secondary glass) ───────────────────────── */
.design-v2 .mbs-btn--soft {
    background: linear-gradient(180deg, rgba(20, 29, 52, 0.84), rgba(14, 22, 40, 0.84));
    color: var(--fg);
    border: 1px solid rgba(125, 211, 252, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 600;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.2s,
        box-shadow 0.25s,
        background 0.2s;
}

.design-v2 .mbs-btn--soft:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
    background: linear-gradient(180deg, rgba(24, 34, 58, 0.9), rgba(18, 26, 46, 0.9));
}

.design-v2 .mbs-btn--soft:active {
    transform: translateY(0);
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.1);
}

.design-v2 .mbs-btn--soft:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--nav-glow);
}

.design-v2 .mbs-btn--soft:disabled,
.design-v2 .mbs-btn--soft[disabled] {
    opacity: 0.5;
    border-color: var(--border);
    box-shadow: none;
    pointer-events: none;
}

/* ── Button: Ghost (minimal border) ───────────────────────── */
.design-v2 .mbs-btn--ghost {
    background: transparent;
    color: var(--nav);
    border: 1px solid rgba(56, 189, 248, 0.5);
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.2s;
}

.design-v2 .mbs-btn--ghost:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.1);
}

.design-v2 .mbs-btn--ghost:active {
    background: rgba(56, 189, 248, 0.15);
}

.design-v2 .mbs-btn--ghost:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--nav-glow);
}

.design-v2 .mbs-btn--ghost:disabled,
.design-v2 .mbs-btn--ghost[disabled] {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Button: Danger (destructive red) ─────────────────────── */
.design-v2 .mbs-btn--danger {
    background: transparent;
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.35);
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.2s, color 0.15s;
}

.design-v2 .mbs-btn--danger:hover {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 4px 16px rgba(248, 113, 113, 0.12);
    color: #fca5a5;
}

.design-v2 .mbs-btn--danger:active {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.7);
}

.design-v2 .mbs-btn--danger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.design-v2 .mbs-btn--danger:disabled,
.design-v2 .mbs-btn--danger[disabled] {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Tab: Pill (filters, game tabs) ───────────────────────── */
.design-v2 .mbs-tab--pill {
    background: linear-gradient(180deg, rgba(20, 29, 52, 0.78), rgba(14, 22, 40, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    margin-bottom: 0;
    padding: 7px 14px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fg-muted);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
}

.design-v2 .mbs-tab--pill:hover {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--fg);
    background: linear-gradient(180deg, rgba(24, 34, 58, 0.85), rgba(18, 26, 46, 0.85));
}

.design-v2 .mbs-tab--pill.active,
.design-v2 .mbs-tab--pill.is-active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(56, 189, 248, 0.14));
    border-color: rgba(56, 189, 248, 0.65);
    color: var(--nav);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.16);
}

.design-v2 .mbs-tab--pill:disabled,
.design-v2 .mbs-tab--pill[disabled] {
    opacity: 0.4;
    pointer-events: none;
    box-shadow: none;
}

/* ── Tab: Nav (dashboard/profile underline) ───────────────── */
.design-v2 .mbs-tab--nav {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    margin-bottom: -1px;
    color: var(--fg-muted);
    font-size: var(--text-md);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s, border-color 0.2s;
}

.design-v2 .mbs-tab--nav:hover {
    color: var(--fg);
}

.design-v2 .mbs-tab--nav.active,
.design-v2 .mbs-tab--nav.is-active {
    color: var(--nav);
    border-bottom-color: var(--nav);
    font-weight: 600;
}

.design-v2 .mbs-tab--nav:disabled,
.design-v2 .mbs-tab--nav[disabled] {
    opacity: 0.4;
    pointer-events: none;
}

/* ----------------------------------------------------------
   MICRO-ANIMATIONS (GPU-only, non-blocking)
   All use transform/opacity — no layout triggers.
   ---------------------------------------------------------- */

/* ── Soft entry fade (attach to cards/sections) ───────────── */
@keyframes mbs-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.design-v2 .mbs-fade-up {
    animation: mbs-fade-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Stagger children — auto-assigns fade-up animation + cascading delay */
.design-v2 .mbs-stagger-children>* {
    animation: mbs-fade-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.design-v2 .mbs-stagger-children>*:nth-child(1) {
    animation-delay: 0.02s;
}

.design-v2 .mbs-stagger-children>*:nth-child(2) {
    animation-delay: 0.06s;
}

.design-v2 .mbs-stagger-children>*:nth-child(3) {
    animation-delay: 0.10s;
}

.design-v2 .mbs-stagger-children>*:nth-child(4) {
    animation-delay: 0.14s;
}

.design-v2 .mbs-stagger-children>*:nth-child(5) {
    animation-delay: 0.18s;
}

.design-v2 .mbs-stagger-children>*:nth-child(6) {
    animation-delay: 0.22s;
}

/* ── Subtle shimmer on premium cards (ambient life) ───────── */
@keyframes mbs-shimmer {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.design-v2 .mbs-card--premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
    animation: mbs-shimmer 4s ease-in-out infinite;
}

/* Only apply shimmer to cards with position context */
.design-v2 .mbs-card--premium {
    position: relative;
    overflow: hidden;
}

/* ── Reduced motion: strip all animations ─────────────────── */
@media (prefers-reduced-motion: reduce) {

    .design-v2 .mbs-card--premium,
    .design-v2 .mbs-btn--cta,
    .design-v2 .mbs-btn--soft,
    .design-v2 .mbs-btn--ghost,
    .design-v2 .mbs-btn--danger,
    .design-v2 .mbs-tab--pill,
    .design-v2 .mbs-tab--nav {
        transition: none;
    }

    .design-v2 .mbs-card--premium:hover,
    .design-v2 .mbs-btn--cta:hover,
    .design-v2 .mbs-btn--soft:hover {
        transform: none;
    }

    .design-v2 .mbs-fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .design-v2 .mbs-card--premium::before {
        animation: none;
        display: none;
    }
}

/* Games premium polish helpers */
.design-v2 .mbs-games-rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 12px;
}

.design-v2 .mbs-games-rank-top {
    margin-top: 8px;
}

.design-v2 .mbs-games-rank-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .design-v2 header {
        padding: 10px 14px;
    }

    .design-v2 main {
        padding: 0 14px;
    }

    .design-v2 .top-nav {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .design-v2 .nav-left {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .design-v2 .brand-link strong {
        font-size: 0.98rem;
    }

    .design-v2 .nav-right {
        display: inline-flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        min-width: 0;
        margin-left: 0;
    }

    .design-v2 .mbs-mobile-primary-cta {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        order: 2;
        gap: 8px;
    }

    .design-v2 .mbs-mobile-primary-cta .mbs-btn {
        min-height: 38px;
        padding: 0 14px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .design-v2 .mbs-mobile-avatar-link {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .design-v2 .mbs-mobile-avatar-link img,
    .design-v2 .mbs-mobile-avatar-link .avatar-fallback {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 1px solid var(--border);
    }

    .design-v2 .mbs-mobile-avatar-link .avatar-fallback {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        background: var(--bg-elev);
        color: var(--fg);
    }

    .design-v2 .mbs-mobile-console-pill {
        min-height: 38px;
        padding: 0 12px;
        white-space: nowrap;
    }

    .design-v2 .mbs-mobile-account-menu {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .design-v2 .mbs-mobile-account-menu .account-options {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        min-width: 180px;
        z-index: 1200;
    }

    .design-v2 .mbs-nav-toggle {
        display: inline-flex;
        order: 0;
        flex: 0 0 auto;
    }

    .design-v2 #owner-badge {
        display: none;
    }

    .design-v2 .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: auto;
        width: min(320px, calc(100vw - 40px));
        max-width: calc(100vw - 40px);
        margin-top: 0;
        padding: 10px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(10, 16, 30, 0.92);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        z-index: 120;
    }

    .design-v2 .top-nav.is-open .nav-links {
        display: flex;
    }

    .design-v2 .nav-links a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-right: 0;
        padding: 10px 12px;
        border-radius: 10px;
    }

    .design-v2 .top-nav a::after {
        display: none;
    }

    .design-v2 .lang-menu {
        order: 1;
    }

    .design-v2 #owner-badge {
        order: 2;
        max-width: 100%;
    }

    .design-v2 .footer-row {
        align-items: flex-start;
    }

    .design-v2 .footer-links,
    .design-v2 .mbs-build-stamp {
        white-space: normal;
        margin-left: 0;
    }
}
